/* Appearance is independent of Preview/Progress copy provenance. */
html[data-theme=light]{color-scheme:light}html[data-theme=dark]{color-scheme:dark}
[data-theme=light] body{background:#f5f3ec;color:#293b30;--muted:#58685b;--line:#6879623d;--ink:#314b3b;--paper:#f5f3ec}
[data-theme=light] .mast,[data-theme=light] .project-nav{background:#f4f4ebf5;color:#293b30;border-color:#6879623d}
[data-theme=light] .wordmark span,[data-theme=light] .contact-link,[data-theme=light] .opening-deck,[data-theme=light] .opening-note,[data-theme=light] .opening-base{color:#596c59}
[data-theme=light] .project-nav a{color:#53634f}[data-theme=light] .project-nav a span{color:#66745b}[data-theme=light] .project-nav a.active{color:#223e2b;border-color:#385e38}[data-theme=light] .project-nav a.active span{color:#385e38}
[data-theme=light] .project-nav-shell.can-scroll:after{background:linear-gradient(90deg,transparent,#f4f4eb 45%);color:#53634f}
[data-theme=light] .provenance{background:#eae5d4;color:#5c563d}
[data-theme=light] #gl{opacity:.065}
[data-theme=light] .scene{--muted:#58685f;--line:#6879623d;--ink:#314b3b;--paper:#f1f3ed;color:#293b30;background:#f1f3ed}
[data-theme=light] .phone-scene{background:#f4f0e6;--paper:#f4f0e6}
[data-theme=light] .notebook-scene{background:#edf1f2;--paper:#edf1f2;--muted:#52666c;--ink:#304d56}
[data-theme=light] .mobile-scene{background:#eff3e9;--paper:#eff3e9}
[data-theme=light] .gaming-scene{background:#ededf1;--paper:#ededf1;--muted:#5d6070;--ink:#424b64}
[data-theme=light] .unicode-scene{background:#edf0f4;--paper:#edf0f4;--muted:#54677b;--ink:#344d70}
[data-theme=light] .past-scene{background:#f2eee6;--paper:#f2eee6;--muted:#696657;--ink:#514c41}
[data-theme=light] .about,[data-theme=light] footer{background:#e8ede3;color:#2c4030;--muted:#586b55;border-color:#6879623d}
[data-theme=light] .experience span,[data-theme=light] .experience p,[data-theme=light] footer details p{color:#536a4b}
[data-theme=light] .config-gallery figcaption b{color:#394257}
[data-theme=light] dialog{background:#f7f7ef;color:#293b30;border-color:#879779}
[data-theme=light] .dialog-top,[data-theme=light] .dialog-bottom p,[data-theme=light] .dialog-bottom a,[data-theme=light] .dialog-top button,[data-theme=light] .dialog-bottom button{color:#4e6547}
[data-theme=dark] body{background:#17201b;color:#e6ecdf;--muted:#afbfab;--line:#b1c1a033;--ink:#dfe8d7;--paper:#253528}
[data-theme=dark] .scene{background:#202b24;color:#e6ecdf;--muted:#afbfab;--line:#b1c1a033;--ink:#dfe8d7;--paper:#253528}
[data-theme=dark] .phone-scene{background:#252d24;--paper:#252d24}
[data-theme=dark] .notebook-scene{background:#1b2932;--paper:#1b2932;--muted:#adbdc2}
[data-theme=dark] .mobile-scene{background:#223226;--paper:#223226}
[data-theme=dark] .gaming-scene{background:#222631;--paper:#222631;--muted:#b9becd}
[data-theme=dark] .unicode-scene{background:#26303d;--paper:#26303d;--muted:#b1bfd0}
[data-theme=dark] .past-scene{background:#302e25;--paper:#302e25;--muted:#c0bba9}
[data-theme=dark] .within-index a,[data-theme=dark] .within-index a>span,[data-theme=dark] .concept-routes button,[data-theme=dark] .video-action,[data-theme=dark] .type-lab input,[data-theme=dark] .style-options button,[data-theme=dark] .small-steps span:before{color:var(--muted,#b8c7af)}
[data-theme=dark] .human-quote{color:#c0d2ad!important}
[data-theme=dark] .concept-routes button[aria-pressed=true],[data-theme=dark] .style-options button[aria-pressed=true]{background:#cfdfc3;color:#243a28;border-color:#cfdfc3}
[data-theme=dark] .phone-scene :focus-visible,[data-theme=dark] .unicode-scene :focus-visible,[data-theme=dark] .mobile-scene :focus-visible,[data-theme=dark] .past-scene :focus-visible{outline-color:#c5dea7}
[data-theme=light] :focus-visible{outline-color:#315f42}
.mode-switch,.appearance-toggle{border-color:#87927a}.appearance-toggle{background:none;border:1px solid #87927a;border-radius:20px;font:9px Duo,monospace;padding:8px 11px;color:inherit;white-space:nowrap;min-height:32px}
[data-theme=light] .mode-switch button{color:#56654d}[data-theme=light] .mode-switch button[aria-pressed=true]{background:#354b35;color:#f0f3e7}
.header-controls{display:flex;align-items:center;gap:10px;flex-shrink:0}.mast{gap:20px}
[data-theme=light] [data-ai]{text-decoration-color:#b38a3270}
@media(max-width:600px){.mast{gap:10px;padding-left:4vw;padding-right:4vw}.wordmark{font-size:11px}.wordmark span{display:none}.header-controls{gap:6px}.mode-switch button{padding:5px 8px;font-size:8px}.appearance-toggle{font-size:8px;padding:7px 8px}.contact-link{display:none}.mast{min-height:68px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}#gl{display:none}}
/* Provisional-copy highlighting must not erase actionable button contrast. */
[data-mode=progress] .button[data-ai]:not(.secondary){background:var(--ink,#314b3b);color:var(--paper,#f5f3ec);text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:4px}
