:root{color-scheme:light}
.header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.theme-toggle{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font-size:13px;line-height:1.5;cursor:pointer}
.theme-toggle[hidden]{display:none}.theme-toggle:hover{border-color:#8ca5ec}.theme-toggle svg{height:18px;width:18px;flex:none}.theme-moon{display:none}
[data-theme=dark]{color-scheme:dark;--ink:#e4eaf5;--muted:#a8b6cd;--blue:#4268e8;--blue-hover:#3659cf;--nav:#0b1220;--line:#2c3a50;--surface:#182438;--canvas:#101827;--shadow:0 4px 20px #00000012}
[data-theme=dark] .theme-sun{display:none}[data-theme=dark] .theme-moon{display:block}
[data-theme=dark] a{color:#a4bdff}[data-theme=dark] a:hover{color:#c6d5ff}
[data-theme=dark] .brand,[data-theme=dark] .brand:hover,[data-theme=dark] nav a[aria-current=page],[data-theme=dark] a.primary{color:#fff}
[data-theme=dark] nav a{color:#b9c7df}[data-theme=dark] nav a:hover{color:#fff}
[data-theme=dark] .guest{background:var(--canvas)}
[data-theme=dark] .summary>div,[data-theme=dark] form,[data-theme=dark] .table-wrap,[data-theme=dark] .record,[data-theme=dark] .message,[data-theme=dark] .empty-state,[data-theme=dark] .filter,[data-theme=dark] .page>details:not(.demo-notice),[data-theme=dark] .skip-link{background:var(--surface)}
[data-theme=dark] .sidebar-bottom form,[data-theme=dark] .inline,[data-theme=dark] .embedded,[data-theme=dark] .auth form{background:transparent}
[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select{background:#111d2f;border-color:#41516b;color:var(--ink)}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#98a9c3}
[data-theme=dark] input::file-selector-button{background:#293e62;color:#d7e4ff}
[data-theme=dark] .secondary,[data-theme=dark] header .badge{background:#1b2a41;color:#d6e2fa;border-color:#41516b}
[data-theme=dark] .secondary:hover{background:#253a59;border-color:#819dd4}
[data-theme=dark] .eyebrow{color:#9db7e1}
[data-theme=dark] th{background:#142035;color:#b7c8e3}
[data-theme=dark] td,[data-theme=dark] th{border-bottom-color:var(--line)}
[data-theme=dark] tbody tr:hover{background:#1e2d45}
[data-theme=dark] .badge,[data-theme=dark] .status,[data-theme=dark] .status-new{background:#263b60;color:#c1d2ff}
[data-theme=dark] .status-accepted,[data-theme=dark] .status-qualified,[data-theme=dark] .status-order,[data-theme=dark] .status-paid,[data-theme=dark] .status-completed,[data-theme=dark] .feedback.success{background:#183d34;color:#a1e0bf;border-color:#2d6150}
[data-theme=dark] .status-calculation,[data-theme=dark] .status-proposal{background:#44361d;color:#efd092}
[data-theme=dark] .status-rejected,[data-theme=dark] .errorlist{background:#462730;color:#ffbdc6;border-color:#774452}
[data-theme=dark] [aria-invalid=true]{border-color:#f092a2}
[data-theme=dark] .notice,[data-theme=dark] .empty-banner,[data-theme=dark] .panel .message{background:#1c2e49;color:#bbcee9;border-color:#344e72}
[data-theme=dark] .demo-notice{background:#332e20;border-color:#5a4d2e;color:#e1c991}
[data-theme=dark] .demo-notice summary{color:#e1c991}
[data-theme=dark] .metrics strong{color:#d2deff}
[data-theme=dark] .metrics>div:first-child{background:#213555;border-color:#354f7d}
[data-theme=dark] .metrics>div:first-child strong{color:#a6bfff}
[data-theme=dark] summary{color:#b2c9ff}[data-theme=dark] summary:hover{color:#e1eaff}
[data-theme=dark] .auth-story .eyebrow{color:#a7bbec}
@media(max-width:760px){
.header-actions{gap:8px}.theme-toggle{font-size:12px;padding-inline:10px}
header>span:first-child{flex:1 1 130px}
[data-theme=dark] tbody tr{background:var(--surface)}
[data-theme=dark] tbody td:first-child{background:#142035}
[data-theme=dark] tbody tr:last-child td{border-bottom-color:var(--line)}
[data-theme=dark] .table-wrap{background:transparent}
}
