/* Shared palette. Default is the original charcoal home-page theme. */
:root,:root[data-theme="dark"]{color-scheme:dark;--bg:#161921;--page:#161921;--panel:#212633;--ink:#edf1fb;--muted:#b3c2df;--sub:#b3c2df;--line:#3b4355;--brand:#b6a5ff;--accent:#b6a5ff;--on:#171322;--soft:#302b48;--wash:#302b48;--good:#b6a5ff;--bad:#ffb4aa;--error-bg:#39252f;--surface:#1b202b}
:root[data-theme="light"]{color-scheme:light;--bg:#f5f5f8;--page:#f5f5f8;--panel:#fff;--ink:#27232f;--muted:#737582;--sub:#737582;--line:#e5e5ed;--brand:#6750c6;--accent:#6750c6;--on:#fff;--soft:#ede8fb;--wash:#f4f0ff;--good:#6750c6;--bad:#ad3846;--error-bg:#fff1ed;--surface:#faf9fd}
html,body{background:var(--bg);color:var(--ink)}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;min-height:34px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--brand);font:22px/1 system-ui;cursor:pointer;touch-action:manipulation}
.theme-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:3px}.theme-floating{position:fixed;right:18px;top:18px;z-index:30}
header,.simple-order-page .form,dialog{background:var(--panel);color:var(--ink);border-color:var(--line)}
.site-navigation,.simple-order-page .site-navigation{color:var(--ink)}
.site-navigation a,.simple-order-page .site-navigation a{color:var(--muted)}
.site-navigation .site-tabs{border-bottom-color:var(--line)!important}
.site-navigation .site-tabs a[aria-current],.simple-order-page .site-navigation .site-tabs a[aria-current]{background:var(--soft);color:var(--brand);box-shadow:none}
.site-navigation .page-location>a,.simple-order-page .site-navigation .page-location>a{color:var(--brand)}
.site-navigation .page-location span,.simple-order-page .site-navigation .page-location span{color:var(--ink)}
.site-navigation .page-location nav,.simple-order-page .site-navigation .page-location nav{color:var(--muted)}
.resume-session,.order-draft-banner{background:var(--soft);border-color:var(--line);color:var(--ink)}
.order-draft-banner a{color:var(--brand)}
.primary,.remote-page .primary,.remote-page .mark,.remote-page .active .num{background:var(--brand);color:var(--on)}
.error,.message.error,.simple-order-page .message.error{background:var(--error-bg);color:var(--bad);border-color:var(--line)}
.success{background:var(--soft)}
.simple-order-page .logo{background:var(--soft);color:var(--brand)}
.simple-order-page .service{background:var(--bg)}
.simple-order-page .service button{color:var(--muted)}
.simple-order-page .service button[aria-pressed=true]{background:var(--panel);color:var(--ink);box-shadow:0 1px 5px #0002}
.simple-order-page :is(.target,.choice,.preset,.secondary,.login-methods button){background:var(--panel);border-color:var(--line);color:var(--ink)}
.simple-order-page :is(.target,.choice,.preset)[aria-pressed=true]{background:var(--soft);color:var(--brand);border-color:var(--brand);box-shadow:none}
.simple-order-page :is(.target small,.preset small,.choice small,.custom span,.warranty p,.fixed p,.review .preview-note){color:var(--muted)}
.simple-order-page :is(.custom,.warranty,.fixed,.tags span,.remark textarea){background:var(--surface);border-color:var(--line);color:var(--ink)}
.simple-order-page .custom input{color:var(--ink)}
.simple-order-page .note{background:var(--soft);color:var(--muted)}
.simple-order-page .tick{background:var(--soft);color:var(--brand)}
.simple-order-page .remark{border-color:var(--line)}
.simple-order-page .message{background:var(--soft);border-color:var(--line);color:var(--brand)}
.simple-order-page dialog .close{background:var(--bg);color:var(--muted)}
.simple-order-page #logout{color:var(--brand)}
.simple-order-page .bottom{background:var(--bg)}
.simple-order-page .bottom-inner{background:var(--panel);border-color:var(--line)}
.simple-order-page #footerSummary dd{color:var(--ink)}
.simple-order-page #footerSummary>div:last-child dd,.simple-order-page .bottom .total strong{color:var(--brand)}
.simple-order-page .bottom .total{border-color:var(--line)}
.simple-order-page .footer-eta p{color:var(--muted)}
.simple-order-page .bottom .primary{background:var(--brand);color:var(--on)}
@media(max-width:600px){header .theme-toggle{width:30px;height:32px;min-height:32px;font-size:20px;border-radius:8px}.remote-page .header-actions{gap:7px}.partner-page .top>.row{gap:7px}.partner-page .top .quiet{font-size:12px}.simple-order-page .header-actions{gap:8px}}
