@font-face { font-family: Inter; src: url('fonts/inter.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('fonts/space-grotesk.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('fonts/atkinson.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('fonts/atkinson-bold.ttf') format('truetype'); font-weight: 600 900; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-semibold.ttf') format('truetype'); font-weight: 600 900; font-display: swap; }

:root {
    color-scheme: dark;
    --font-ui: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-code: 'Consolas', 'Monaco', monospace;
    --accent-ink: #ff2fd5;
    --accent2-ink: #bc91ff;
    --action-start: #bd229e;
    --action-end: #813beb;
    --surface: #191b23;
    --muted: #aaaab9;
    --line: #373944;
    --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
    --elevation: 0 4px 0 #07080b, 0 9px 20px #00000038, inset 0 1px 0 #ffffff0a;
    --card-elevation: 0 5px 0 #090a0f, 0 14px 24px #0000003d, inset 0 1px 0 #ffffff0c;
}

body { font-family: var(--font-ui); }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
button, summary, label { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--accent3);
    outline-offset: 4px;
}
button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
button { transition: transform 150ms ease, background 150ms ease, border-color 150ms ease; }
#app { width: 100%; height: 100dvh; }
#navbar { position: relative; z-index: 1; gap: 18px; padding: 18px 28px; box-shadow: 0 8px 25px #00000025; flex-wrap: wrap; }
#navbar::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--gradient); }
.nav-left { min-width: 0; gap: 16px; }
.nav-title { flex-shrink: 0; letter-spacing: -.5px; background: linear-gradient(135deg, var(--accent-ink), var(--accent2-ink)); -webkit-background-clip: text; background-clip: text; }
#file-name { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.nav-right { gap: 9px; flex-wrap: wrap; }
.nav-btn { min-height: 38px; padding: 8px 12px; border-radius: 7px; border-color: #62478e; font-size: .8rem; box-shadow: var(--elevation); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.nav-btn:hover { background: var(--hover); border-color: var(--accent2-ink); }
.nav-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 4px #00000066; }
.nav-btn.danger:hover { background: #3c1923; }
.appearance-trigger { border-color: var(--accent); background: linear-gradient(#201624, #18131d); }
.ui-icon { display: inline-flex; justify-content: center; align-items: center; min-width: 1.1em; font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', system-ui, sans-serif; font-variant-emoji: text; }
:root[data-symbols="emoji"] .ui-icon { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-variant-emoji: emoji; }
:root[data-symbols="text"] .ui-icon { display: none; }
#sidebar { width: 280px; padding: 25px 22px; }
.section-title { font-size: .9rem; margin-bottom: 12px; }
#load-btn, .primary-button { min-height: 44px; background: linear-gradient(135deg, var(--action-start), var(--action-end)); color: #fff; border: 1px solid #ffffff20; border-radius: 8px; box-shadow: var(--elevation); cursor: pointer; font-weight: 600; padding: 12px 18px; }
#load-btn { font-size: .9rem; }
#load-btn:hover, .primary-button:hover { transform: translateY(-2px); }
#load-btn:active, .primary-button:active { transform: translateY(1px); }
.load-help { font-size: .78rem; line-height: 1.65; color: var(--muted); margin: 14px 0 0; }
.sidebar-appearance { position: relative; margin-top: 40px; border: 1px solid var(--line); background: linear-gradient(150deg, #201824, #15151d 70%); border-radius: 12px; padding: 20px 16px 17px; box-shadow: var(--card-elevation); overflow: hidden; }
.sidebar-gradient { position: absolute; inset: 0 0 auto; height: 3px; background: var(--gradient); }
.eyebrow { margin: 0; font-size: .62rem; font-weight: 600; letter-spacing: 1.7px; color: var(--muted); }
.sidebar-appearance .eyebrow { font-size: .58rem; letter-spacing: 1.3px; }
.sidebar-appearance h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.35px; margin: 12px 0 8px; }
#appearance-summary { color: var(--muted); font-size: .72rem; line-height: 1.7; margin: 0 0 18px; }
.secondary-button { min-height: 42px; border: 1px solid #494655; border-radius: 7px; padding: 10px 16px; background: #20212a; color: var(--text); box-shadow: var(--elevation); cursor: pointer; font-size: .8rem; }
.secondary-button:hover { border-color: var(--accent2-ink); background: #29232f; transform: translateY(-1px); }
.sidebar-appearance .secondary-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .7rem; padding: 9px 10px; width: 100%; }
#viewer { min-width: 0; background: radial-gradient(ellipse at 80% 0, #8c40ff08, transparent 55%), var(--bg); }
.workspace-empty { margin: 14vh auto 0; max-width: 500px; text-align: center; padding: 0 12px; }
.empty-mark { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100px; height: 94px; font-family: var(--font-code); font-size: 3.1rem; color: var(--accent2-ink); border: 1px solid #4b345e; border-radius: 19px; background: linear-gradient(145deg, #29162d, #17131e); box-shadow: var(--card-elevation); margin: 0 auto 35px; }
.empty-mark span { font-size: 1.25rem; color: var(--accent-ink); }
.workspace-empty h1 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.8px; margin: 15px 0 12px; }
.workspace-empty > p:last-child { font-size: .88rem; color: var(--muted); line-height: 1.85; margin: 0; }
.json-container, .preview-code { font-family: var(--font-code); }
.json-key { color: var(--accent-ink); }
.json-expand, .breadcrumb { color: var(--accent2-ink); }
.json-collapsed, .stat-label, .empty { color: var(--muted); }
.stats-panel, .breadcrumbs { border: 1px solid var(--border); box-shadow: var(--card-elevation); }
.json-container { margin-top: 28px; width: max-content; min-width: 100%; }

/* The dialog is the front plane; the preview has two smaller depth planes. */
#appearance-dialog { padding: 0; margin: auto; width: min(1000px, calc(100% - 40px)); max-width: none; max-height: min(900px, calc(100dvh - 36px)); color: var(--text); border: 1px solid #574064; border-radius: 18px; background: #14151b; box-shadow: 0 12px 0 #08090d, 0 35px 100px #00000099, inset 0 1px 0 #ffffff14; overflow: hidden; }
#appearance-dialog::backdrop { background: #06060bd1; backdrop-filter: blur(5px); }
#appearance-dialog form { display: flex; flex-direction: column; max-height: min(898px, calc(100dvh - 38px)); }
.appearance-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 32px 18px; border-bottom: 1px solid #30303b; position: relative; flex-shrink: 0; background: linear-gradient(120deg, #24172966, #14151b); }
.appearance-header::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gradient); }
.appearance-header .eyebrow { font-size: .6rem; letter-spacing: 2.1px; color: #b6a9c3; }
#appearance-title { font-weight: 600; font-size: 2.1rem; letter-spacing: -1.3px; line-height: 1.2; margin: 10px 0 6px; }
.accent-dot { color: var(--accent-ink); }
#appearance-description { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.5; }
.close-button { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; background: #22212a; color: #c5becf; border: 1px solid #403849; border-radius: 8px; font-family: system-ui, sans-serif; font-size: 1.5rem; cursor: pointer; }
.close-button:hover { border-color: var(--accent-ink); color: #fff; }
.appearance-scroll { overflow-y: auto; min-height: 0; scrollbar-gutter: stable; }
.appearance-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; padding: 26px 30px 32px; align-items: start; }
.appearance-choices { min-width: 0; }
.appearance-choices fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.appearance-choices legend { padding: 0; font-size: .88rem; font-weight: 600; line-height: 1.6; }
.section-number { display: inline-block; font-family: var(--font-code); color: var(--accent-ink); font-weight: 400; font-size: .65rem; margin-right: 9px; }
.field-help { margin: 8px 0 16px; color: var(--muted); font-size: .73rem; line-height: 1.65; }
.font-options, .symbol-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { display: flex; position: relative; min-width: 0; min-height: 80px; cursor: pointer; border: 1px solid #363642; border-radius: 9px; background: #1a1b23; box-shadow: 0 3px 0 #090a10, inset 0 1px 0 #ffffff05; transition: border-color 150ms ease, transform 150ms ease; }
.choice:first-child.font-choice { grid-column: 1 / -1; min-height: 76px; }
.choice:hover { border-color: #88639f; transform: translateY(-1px); }
.choice:has(input:checked) { border-color: var(--accent-ink); background: linear-gradient(130deg, #302033, #201b2b); box-shadow: 0 3px 0 #090a10, inset 0 0 0 1px var(--accent-ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent3); outline-offset: 4px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice-body { display: block; width: 100%; padding: 10px 14px; }
.choice-top { display: flex; align-items: center; gap: 8px; font-size: .73rem; font-weight: 600; padding-right: 16px; line-height: 1.4; flex-wrap: wrap; }
.font-name { font-family: var(--sample-font); }
.font-sample { display: block; font-family: var(--sample-font); font-size: .94rem; font-weight: 500; line-height: 1.45; letter-spacing: -.2px; margin: 4px 0 1px; }
.choice-detail { display: block; color: var(--muted); font-size: .64rem; line-height: 1.6; }
.original-badge { font-size: .53rem; font-weight: 500; color: #dbbde7; border: 1px solid #664578; border-radius: 4px; padding: 1px 5px; letter-spacing: .2px; }
.choice-check { display: none; position: absolute; right: 10px; top: 12px; font-family: system-ui, sans-serif; font-size: .75rem; color: var(--accent-ink); }
.choice:has(input:checked) .choice-check { display: block; }
.symbol-choice { min-height: 96px; }
.symbol-sample { display: flex; align-items: center; gap: 22px; font-size: 1.45rem; line-height: 1.2; margin: 0 0 13px; font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', system-ui, sans-serif; font-variant-emoji: text; }
.symbol-choice:first-child .symbol-sample { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-variant-emoji: emoji; font-size: 1.25rem; }
.symbol-sample.word-sample { font-family: var(--font-ui); color: #c8bdd4; font-size: .67rem; gap: 13px; padding: 5px 0 2px; }
.extra-options { border: 1px solid #38343f; border-radius: 10px; background: #191820; margin-top: 3px; }
.extra-options summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; padding: 14px; font-size: .8rem; font-weight: 600; list-style: none; min-height: 48px; }
.extra-options summary::-webkit-details-marker { display: none; }
.optional-label { font-size: .65rem; color: var(--muted); font-weight: 400; white-space: nowrap; }
.optional-label > span { display: inline-block; margin-left: 5px; }
.extra-options[open] .optional-label > span { transform: rotate(180deg); }
.extra-content { padding: 0 14px 10px; }
.extra-content .field-help { margin-top: 0; }
.gradient-strip { height: 12px; border-radius: 4px; background: var(--gradient); margin: 15px 0; border: 1px solid #ffffff30; }
.color-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.color-control label { display: block; color: #c9c2d1; font-size: .7rem; margin-bottom: 8px; }
.color-inputs { display: flex; align-items: center; border: 1px solid #48414f; border-radius: 6px; background: #101116; padding: 4px; min-width: 0; gap: 5px; }
.color-inputs input[type="color"] { appearance: none; border: 0; background: transparent; padding: 0; width: 32px; min-width: 32px; height: 32px; cursor: pointer; }
.color-inputs input[type="text"] { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--text); font-family: var(--font-code); font-size: .73rem; padding: 6px 0; }
.text-button { color: var(--accent2-ink); border: 0; background: transparent; padding: 10px 0; min-height: 40px; font-size: .75rem; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; }
.text-button:hover { text-decoration-color: currentColor; }
.appearance-choices .depth-field { border-top: 1px solid #36313e; margin: 12px 0 16px; padding-top: 16px; }
.depth-field legend { font-size: .75rem; padding-top: 18px; }
.depth-options { display: flex; flex-wrap: wrap; gap: 9px; }
.depth-choice { border: 1px solid #48414f; border-radius: 6px; padding: 10px; display: flex; gap: 7px; align-items: center; font-size: .72rem; cursor: pointer; min-height: 42px; }
.depth-choice:has(input:checked) { border-color: var(--accent-ink); }
input[type="radio"] { accent-color: var(--accent-ink); }

.appearance-preview { position: sticky; top: 25px; min-width: 0; padding-top: 3px; }
.preview-label { display: flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: .6rem; letter-spacing: 1.7px; color: #b7b1c2; margin: 0 0 23px 4px; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-ink); box-shadow: 0 0 10px var(--accent); }
.preview-stage { position: relative; padding: 6px 7px 10px 0; isolation: isolate; }
.preview-backplate { position: absolute; inset: 9px 0 1px 8px; border-radius: 13px; border: 1px solid #64387d; background: linear-gradient(145deg, #51234e, #2d1944); z-index: -1; transform: rotate(2deg); }
.preview-window { position: relative; border: 1px solid #5b435f; border-radius: 12px; overflow: hidden; background: #15151d; box-shadow: 0 5px 0 #0c0b12, 0 19px 35px #00000050, inset 0 1px 0 #ffffff0a; }
.preview-windowbar { display: flex; justify-content: space-between; align-items: center; background: #21202a; border-bottom: 1px solid #36313f; padding: 12px 15px; color: #aba3b9; font-size: .58rem; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { display: block; width: 5px; height: 5px; background: #827189; border-radius: 50%; }
.window-dots i:first-child { background: var(--accent); }
.window-dots i:nth-child(2) { background: var(--accent2); }
.preview-content { padding: 24px 20px 20px; }
.preview-brand { font-size: 1.6rem; font-weight: 700; letter-spacing: -1px; color: var(--accent-ink); }
.preview-subtitle { color: var(--muted); font-size: .7rem; line-height: 1.6; margin: 6px 0 23px; }
.preview-file { display: flex; gap: 11px; align-items: center; font-size: .72rem; padding: 14px 10px; border: 1px solid #3d3548; border-radius: 7px; background: #211b2a; box-shadow: var(--elevation); }
.preview-file-icon { font-family: var(--font-code); color: var(--accent2-ink); font-size: .9rem; }
.preview-file > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.preview-file small { display: block; font-size: .57rem; color: var(--muted); margin-top: 5px; }
.preview-ready { margin-left: auto; color: #acdec6; font-size: .85rem; }
.preview-code { background: #0c0d12; border: 1px solid #34303e; border-radius: 7px; font-size: .67rem; line-height: 2; padding: 17px 13px; margin: 16px 0; overflow: auto; }
.preview-code > div { white-space: pre; }
.code-muted { color: #ada4b7; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 19px; }
.preview-action { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #544060; background: #201b29; border-radius: 5px; padding: 7px 8px; font-size: .58rem; color: #d4cedd; box-shadow: 0 2px 0 #09090e; }
.preview-primary { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: linear-gradient(135deg, var(--action-start), var(--action-end)); color: white; padding: 13px; border-radius: 7px; font-size: .72rem; font-weight: 600; box-shadow: var(--elevation); }
.preview-caption { color: var(--muted); font-size: .63rem; line-height: 1.9; text-align: center; margin: 16px 0 28px; }
.original-note { display: flex; align-items: flex-start; gap: 11px; border-top: 1px solid #35303d; padding-top: 20px; }
.gradient-chip { display: block; width: 27px; height: 27px; flex-shrink: 0; border-radius: 8px; background: linear-gradient(135deg, #ff2fd5, #8c40ff); border: 1px solid #ffffff30; box-shadow: 0 3px 0 #07080d; }
.original-note strong { font-size: .68rem; font-weight: 500; }
.original-note p { color: var(--muted); font-size: .63rem; line-height: 1.7; margin: 6px 0 0; }
.appearance-footer { flex-shrink: 0; border-top: 1px solid #37303e; background: #19171f; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 30px 20px; }
.reset-button { font-size: .72rem; min-height: 28px; padding: 3px 0; color: #d7c5e2; }
.appearance-status { font-size: .62rem; line-height: 1.7; color: var(--muted); margin: 5px 0 0; max-width: 310px; }
.footer-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.footer-actions .primary-button { font-size: .78rem; display: flex; gap: 20px; align-items: center; }
.appearance-toast { position: fixed; bottom: 24px; right: 24px; z-index: 5; color: var(--text); background: #23202c; border: 1px solid var(--accent2-ink); border-radius: 9px; box-shadow: var(--card-elevation); padding: 15px 19px; font-size: .8rem; max-width: min(440px, calc(100% - 32px)); opacity: 0; transform: translateY(12px); transition: opacity 150ms, transform 150ms; pointer-events: none; }
.appearance-toast.visible { opacity: 1; transform: none; }

:root[data-depth="flat"] { --elevation: none; --card-elevation: none; }
:root[data-depth="flat"] .preview-backplate { display: none; }
:root[data-depth="flat"] .choice, :root[data-depth="flat"] .preview-window, :root[data-depth="flat"] #appearance-dialog, :root[data-depth="flat"] #navbar, :root[data-depth="flat"] .preview-action, :root[data-depth="flat"] .gradient-chip { box-shadow: none; }
:root[data-depth="flat"] .choice:has(input:checked) { box-shadow: inset 0 0 0 1px var(--accent-ink); }
:root[data-depth="flat"] button:hover, :root[data-depth="flat"] button:active, :root[data-depth="flat"] .choice:hover { transform: none; }

@media (max-width: 1100px) {
    #navbar { padding: 16px 22px; gap: 12px; }
    .nav-title { font-size: 1.35rem; }
    .nav-btn { padding: 8px 10px; font-size: .74rem; }
    .nav-right { gap: 7px; }
    .appearance-grid { gap: 24px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .font-sample { font-size: .9rem; }
    .choice-body { padding: 12px; }
    .preview-content { padding: 22px 15px 17px; }
    .symbol-sample { gap: 17px; }
}
@media (max-width: 800px) {
    .nav-right { width: 100%; }
    #sidebar { width: 240px; padding: 22px 18px; }
    .appearance-grid { grid-template-columns: 1fr; padding: 23px; }
    .appearance-preview { position: static; max-width: 420px; width: 100%; margin: 0 auto; padding: 5px 10px; }
    .appearance-preview .preview-label { margin-bottom: 15px; }
    .appearance-preview .original-note { margin-bottom: 5px; }
    .appearance-header { padding: 24px; }
    .appearance-footer { padding: 15px 22px; }
    .appearance-status { max-width: 210px; }
    .appearance-choices fieldset { margin-bottom: 23px; }
}
@media (max-width: 580px) {
    #navbar { padding: 14px 16px 16px; }
    .nav-left { width: 100%; }
    .nav-btn { flex-grow: 1; min-height: 40px; }
    #layout { overflow: auto; display: block; }
    #sidebar { width: 100%; padding: 20px; border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }
    .sidebar-appearance { margin-top: 25px; padding: 17px 14px 15px; }
    .sidebar-appearance .secondary-button { max-width: 260px; }
    #viewer { overflow: auto; padding: 24px 20px; min-height: 360px; }
    .workspace-empty { margin: 28px auto; }
    .empty-mark { width: 76px; height: 72px; font-size: 2.3rem; gap: 6px; margin-bottom: 25px; }
    .workspace-empty > p:last-child { font-size: .8rem; }
    #appearance-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 13px; }
    #appearance-dialog form { max-height: calc(100dvh - 22px); }
    .appearance-header { padding: 21px 19px 18px; }
    #appearance-title { font-size: 1.85rem; margin-top: 10px; }
    #appearance-description { font-size: .74rem; }
    .appearance-header .eyebrow { font-size: .5rem; letter-spacing: 1.4px; }
    .appearance-grid { padding: 21px 18px 24px; }
    .font-sample { font-size: .86rem; }
    .font-options, .symbol-options { gap: 9px; }
    .choice-body { padding: 12px 10px; }
    .choice-top { font-size: .7rem; }
    .choice-detail { font-size: .6rem; }
    .symbol-sample { gap: 18px; }
    .symbol-sample.word-sample { font-size: .62rem; gap: 10px; }
    .appearance-footer { flex-wrap: wrap; align-items: flex-start; gap: 13px; padding: 12px 18px 16px; }
    .appearance-footer > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; }
    .appearance-status { font-size: .57rem; margin: 0; text-align: right; max-width: 190px; }
    .footer-actions { width: 100%; justify-content: flex-end; }
    .footer-actions .primary-button { flex-grow: 1; justify-content: center; }
    .footer-actions .secondary-button { flex-basis: 30%; }
    .color-controls { gap: 10px; }
    .appearance-toast { bottom: 16px; right: 16px; }
}
@media (max-width: 360px) {
    .font-options, .symbol-options { grid-template-columns: 1fr; }
    .font-choice { min-height: 88px; }
    .symbol-sample { gap: 28px; }
    .color-controls { grid-template-columns: 1fr; }
    .preview-code { font-size: .57rem; }
    .appearance-header { padding-left: 17px; }
    #appearance-description { max-width: 210px; }
    .nav-btn { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    button:hover, button:active, .choice:hover, #load-btn:hover, #load-btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
    #appearance-dialog::backdrop { background: #06060b; backdrop-filter: none; }
}
@media (forced-colors: active) {
    :root { --elevation: none; --card-elevation: none; }
    .nav-title { -webkit-text-fill-color: CanvasText; background: none; }
    #appearance-dialog, .choice, .preview-window, .preview-file, .preview-code, .nav-btn, .secondary-button, .primary-button, #load-btn { border: 1px solid ButtonText; box-shadow: none; }
    .choice:has(input:checked) { border: 2px solid Highlight; box-shadow: none; }
    .choice-check, .accent-dot, .section-number { color: Highlight; }
    .preview-backplate, .sidebar-gradient { display: none; }
    .preview-primary { border: 1px solid ButtonText; }
    #appearance-dialog::backdrop { background: Canvas; opacity: .8; }
}
