/* One editorial palette, with explicit theme overrides on every route. */
html[data-theme=light]{color-scheme:light;--paper:#fff9eb;--bg:#fff9eb;--ink:#302e29;--muted:#686155;--line:#ded7c8;--surface:#f5efdf;--cream:#f5efdf;--mint:#f8ecc3;--green:#f8e8ad;--accent:#5a503a;--white:#fffdf7;--button-ink:#fffdf7;--emphasis:#746546;--brand-filter:none}
html[data-theme=dark]{color-scheme:dark;--paper:#24221e;--bg:#24221e;--ink:#f6eedc;--muted:#c9bdab;--line:#514b40;--surface:#302d27;--cream:#302d27;--mint:#433c2b;--green:#f1d77e;--accent:#f1d77e;--white:#24221e;--button-ink:#24221e;--emphasis:#edcf87;--brand-filter:invert(1)}
html[data-theme] body{background:var(--bg);color:var(--ink)}
html[data-theme] body.dark{--bg:inherit;--ink:inherit;--muted:inherit;--line:inherit;--surface:inherit;--green:inherit;--accent:inherit;--white:inherit}
h1,h2,.section h2,.closing h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.045em}h1 em,h1 span,.section h2,.closing h2{font-style:italic}.brand{white-space:nowrap;font-size:22px!important;letter-spacing:-.7px}.brand-sub{display:block;font:italic 19px/1.1 Georgia,serif;letter-spacing:-.3px;margin-top:3px}.assistant-wordmark{font:500 25px/1.2 system-ui,sans-serif;letter-spacing:-1px}.assistant-wordmark em{display:block;font:italic 34px/1.15 Georgia,serif;letter-spacing:-1px}.assistant-wordmark .brief-network{top:.2em}.theme{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);cursor:pointer;font:18px system-ui;padding:0}.theme:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
header{border-color:var(--line)}.brand,.brief-brand,.brief-network,.header-note,.eyebrow{color:var(--ink)}.intro,.hint,.caution,.bottom p,footer{color:var(--muted)}.result,.pill{background:var(--mint);color:var(--ink);border-color:var(--line)}.quotes,aside{background:var(--surface);border-color:var(--line)}input,textarea,select{background:var(--surface);color:var(--ink);border-color:var(--line)}button{color:var(--ink)}button.primary,.primary,.button,.bubble.you{background:var(--ink);color:var(--bg)}button.primary:hover,.button:hover{background:var(--accent);color:var(--bg)}.quiet{background:transparent;color:var(--ink)}.actions button:not(.primary){background:var(--surface);color:var(--ink);border-color:var(--line)}#issues p{color:var(--muted)}h1 em{color:var(--emphasis)}.tabs button[aria-selected=true]{color:var(--ink)}.tabs button[data-example][aria-selected=true]{color:#302e29}.disconnected{border-color:var(--line)}
.companion-intro img,.mascot img{animation:companion-hello 4s ease-in-out 1;transform-origin:50% 85%}
@keyframes companion-hello{0%,100%{transform:rotate(0) translateY(0)}25%{transform:rotate(-3deg) translateY(-5px)}60%{transform:rotate(3deg) translateY(-3px)}}
@media(max-width:700px){h1,.extension .hero h1{font-size:47px}.hero{gap:30px}.brand{font-size:20px!important}.assistant-wordmark{font-size:22px}.assistant-wordmark em{font-size:30px}header{gap:12px}.brand-sub{font-size:17px}}
@media(prefers-reduced-motion:reduce){.companion-intro img,.mascot img{animation:none!important}}
html[data-theme=dark]{--error:#ffaaa0}
html[data-theme=dark] .logo-area{background:#fff;border-radius:6px;padding:12px}
h2,.section h2,.closing h2{font-style:italic;color:var(--muted)}
