/* Library appearance: a flat section inside the library sheet; buttons and fields come from the explorer vocabulary. */
.ex-library-appearance{margin:16px 0 0;padding:16px 0 0;border-top:1px solid var(--line);color:var(--ink);overflow-wrap:break-word}
.ex-library-appearance[hidden],.ex-appearance-review[hidden]{display:none}
.ex-library-appearance h3,.ex-library-appearance h4{margin:0 0 10px}
.ex-appearance-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.ex-library-appearance button:disabled,.ex-appearance-review button:disabled{opacity:.55;cursor:not-allowed}
.ex-library-appearance label,.ex-appearance-review label{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.ex-appearance-choice{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;font-weight:500}
.ex-library-appearance :is(button,a,summary):focus-visible,.ex-appearance-review :is(button,a,summary):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* Colour and marker choices read as selectable chips; the chosen one takes the selection tint. */
.ex-appearance-palette,.ex-appearance-stickers{display:flex;gap:7px;flex-wrap:wrap}
.ex-library-appearance :is(.ex-appearance-palette,.ex-appearance-stickers) label,.ex-appearance-review :is(.ex-appearance-palette,.ex-appearance-stickers) label{flex-direction:row;align-items:center;gap:6px;margin:0;padding:6px 10px;border:1px solid var(--control-line);border-radius:var(--radius);background:var(--surface);font-weight:500;cursor:pointer;transition:background-color var(--t-fast) var(--ease-out),border-color var(--t-fast) var(--ease-out)}
:is(.ex-appearance-palette,.ex-appearance-stickers) label:has(input:checked){background:var(--green-soft);border-color:var(--green-line);color:var(--ink)}
.ex-appearance-card{padding:12px;border-radius:var(--radius-card);margin:8px 0;background:var(--surface-2)}
.ex-appearance-status{line-height:1.5;min-height:1.5em}
.ex-appearance-error{padding:10px 12px;border:1px solid var(--red-line);border-radius:var(--radius-card);background:var(--red-soft);color:var(--red)}
.ex-appearance-notice{padding:10px 12px;border:1px solid var(--amber-line);border-radius:var(--radius-card);background:var(--amber-soft);color:var(--amber-ink)}
/* Swatches match the node colours the library map draws (figure colours, as in library_appearance.mjs). */
.ex-appearance-color-dot{display:inline-block;width:11px;height:11px;border-radius:50%;border:1px solid color-mix(in oklch,var(--ink) 18%,transparent);margin-right:5px;flex:none}
.ex-appearance-color-slate{background:#7a8a83}
.ex-appearance-color-blue{background:#5482c5}
.ex-appearance-color-teal{background:#419d97}
.ex-appearance-color-green{background:#589760}
.ex-appearance-color-amber{background:#c6a34e}
.ex-appearance-color-orange{background:#ca8851}
.ex-appearance-color-red{background:#bd6363}
.ex-appearance-color-purple{background:#9c73b7}
.ex-appearance-color-pink{background:#be759f}
.ex-appearance-collection-badge,.ex-appearance-sticker-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;margin:3px;border-radius:var(--radius);background:var(--surface-2);color:var(--ink);font-size:12.5px;line-height:1.5}
.ex-appearance-sticker-glyph{font-family:'Segoe UI Emoji','Apple Color Emoji',sans-serif;font-size:1.2rem}
.ex-appearance-svg-sticker{font-family:'Segoe UI Emoji','Apple Color Emoji',sans-serif;font-size:17px;pointer-events:none}
.ex-appearance-node-colors{pointer-events:none}
.ex-appearance-review{max-width:740px;width:calc(100% - 40px);max-height:84vh;overflow:auto;border:0;border-radius:var(--radius-frame);padding:22px;color:var(--ink);background:var(--surface);box-shadow:var(--shadow-lg)}
.ex-appearance-review::backdrop{background:var(--scrim)}
.ex-appearance-review h3{margin-top:0;font-size:18px}
@media(max-width:600px){.ex-appearance-palette label,.ex-appearance-stickers label{flex:1}.ex-appearance-review{padding:16px}}
@media(prefers-reduced-motion:reduce){:is(.ex-appearance-palette,.ex-appearance-stickers) label{transition:none}}
