#wbDraftPanel .wb-draft-image{position:relative;display:block;width:48px;height:64px;padding:0;overflow:hidden;border:1px solid var(--wb-line);border-radius:4px;background:var(--wb-surface,#fff)}
.wb-draft-image img{display:block;width:100%;height:100%;object-fit:contain}.wb-draft-image b{position:absolute;right:0;bottom:0;padding:1px 5px;border-radius:4px 0 0;background:var(--wb-ink);color:#fff;font-size:11px;line-height:17px}
#wbDraftPanel .wb-draft-image:hover{border-color:var(--wb-accent)}.wb-draft-image:focus-visible,#wbDraftGalleryDialog button:focus-visible{outline:2px solid var(--wb-accent);outline-offset:2px}
#wbDraftGalleryDialog{width:min(780px,calc(100vw - 24px));overflow:hidden}#wbDraftGalleryDialog .wb-dialog-content{height:min(850px,calc(100dvh - 40px));max-height:none;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto auto;gap:8px}#wbDraftGalleryTitle{font-size:16px;overflow-wrap:anywhere}
.wb-draft-gallery-stage{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:12px;min-height:0}.wb-draft-gallery-stage>button{display:grid;place-items:center;width:40px;height:48px;padding:0}.wb-draft-gallery-main{display:grid;place-items:center;height:100%;background:var(--wb-surface);border-radius:4px;min-width:0;min-height:0;position:relative;overflow:hidden}.wb-draft-gallery-main img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.wb-draft-gallery-main p{text-align:center;padding:12px}
.wb-draft-gallery-thumbs{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;overflow:visible;padding:3px;min-height:0}.wb-draft-gallery-thumbs button{width:100%;min-width:0;min-height:0;height:64px;padding:2px;border:1px solid var(--wb-line);cursor:grab}.wb-draft-gallery-thumbs button[aria-pressed=true]{border:2px solid var(--wb-accent);background:var(--wb-accent-soft)}.wb-draft-gallery-thumbs button.is-dragging{opacity:.55;cursor:grabbing}.wb-draft-gallery-thumbs button.is-drop-target{outline:2px solid var(--wb-accent);outline-offset:1px}.wb-draft-gallery-thumbs img{width:100%;height:100%;object-fit:contain;pointer-events:none}#wbDraftGalleryNote{font-size:12px;color:var(--wb-muted);margin:0;line-height:1.6}
@media(max-width:620px){.wb-draft-gallery-stage{grid-template-columns:28px minmax(0,1fr) 28px;gap:5px}.wb-draft-gallery-stage>button{width:28px;height:40px}.wb-draft-gallery-thumbs{gap:3px;padding:2px}.wb-draft-gallery-thumbs button{height:42px;padding:1px}#wbDraftGalleryDialog .wb-dialog-footer button{flex:1}}
@media(max-height:650px){#wbDraftGalleryDialog .wb-dialog-content{gap:5px;padding:10px}.wb-draft-gallery-thumbs button{height:36px}#wbDraftGalleryNote{font-size:11px;line-height:1.35}}
