/* Branding pieces in the drawer (0.15): the output preview, the overlays
   list and the media manager. Tokens from theme.css; the comic look: solid
   fills, ink outlines, no glass, no glow. */
.out-preview-card { border: 2px solid var(--ink); border-radius: 10px; background: var(--surface-2); padding: 10px 12px; margin: 0 0 14px; box-shadow: 3px 3px 0 var(--ink); }
.out-preview-card strong { display: block; margin-bottom: 8px; color: var(--ink); }
.out-preview { display: block; max-width: 100%; max-height: 340px; width: auto; height: auto; margin: 0 auto; border: 2px solid var(--ink); background: #fff; }
.out-preview-card .hint { margin: 8px 0 0; }

.overlay-card { border-top: 1px dashed var(--line); padding: 8px 0; }
.overlay-card:first-child { border-top: 0; padding-top: 0; }
.overlay-card.open { border: 2px solid var(--ink); border-radius: 10px; padding: 10px; margin: 6px 0; background: var(--surface-2); }
.overlay-head { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.overlay-head .overlay-title { flex: 1; text-align: left; font-weight: 700; }
.check-group { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.inline-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); }

.media-card { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; border-top: 1px dashed var(--line); padding: 10px 0; }
.media-card:first-child { border-top: 0; }
.media-thumb { width: 96px; height: 72px; object-fit: contain; border: 2px solid var(--ink); border-radius: 6px; background: repeating-conic-gradient(#d9d9d9 0% 25%, #ffffff 0% 50%) 0 0 / 14px 14px; }
.media-info { display: grid; gap: 4px; min-width: 0; }
.media-name { width: 100%; font-weight: 700; }
.media-meta, .media-uses { font-size: 12px; color: var(--ink-2); word-break: break-word; }
.custom-grid[hidden] { display: none; }
