:root[data-theme="light"]{color-scheme:light;--bg:#f3f6fa;--surface:#fff;--raised:#e8eef5;--line:#a9b8ca;--text:#17263b;--muted:#43566e;--mint:#087650;--amber:#875600}
.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.topbar>.brand{justify-self:start}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;justify-self:end}
.theme-toggle{min-height:44px;gap:6px;font-size:13px;padding:9px 12px}
html[data-theme="light"] .button{background:#087650;color:#fff}
html[data-theme="light"] .button:hover{background:#075e40}
html[data-theme="light"] :is(.spotlight,.floating-note,.showcase,.detail-panel){background:var(--surface);border-color:var(--line)}
html[data-theme="light"] :is(input,select,textarea){background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme="light"] :is(.tag,.preview-label){color:var(--muted);border-color:var(--line)}
html[data-theme="light"] .stats-badge{background:var(--raised)}
html[data-theme="light"] .stats-logo-loaded{background:transparent}
html[data-theme="light"] .stat-rate.high{color:#075c3e;background:#d5f2e6}
html[data-theme="light"] .stat-rate.mid{color:#704b00;background:#fff0cb}
html[data-theme="light"] .stat-rate.low{color:#922e36;background:#fbe0e3}
html[data-theme="light"] :is(.form-w,.form-W){color:#fff;background:#087650}
html[data-theme="light"] :is(.form-l,.form-L){color:#fff;background:#b53330}
html[data-theme="light"] :is(.form-d,.form-D){color:var(--text);background:var(--raised)}
html[data-theme="light"] .form span{background:var(--raised);color:var(--text)}
html[data-theme="light"] .form .win{background:#087650;color:#fff}
html[data-theme="light"] .form .loss{background:#b53330;color:#fff}
html[data-theme="light"] .price-card.premium{background:linear-gradient(150deg,#e0f5eb,var(--surface) 65%)}
html[data-theme="light"] :is(.owner-notice,.owner-panel,.owner-table th){background:var(--surface);border-color:var(--line)}
html[data-theme="light"] .owner-table a{color:var(--mint)}
html[data-theme="light"] .match-research-dialog .research-form-w{background:#087650;color:#fff}
html[data-theme="light"] .match-research-dialog .research-form-l{background:#b53330;color:#fff}
html[data-theme="light"] .match-research-dialog .research-form-d{background:var(--raised);color:var(--text)}
html[data-theme="light"] .match-research-dialog .research-warning{background:#fff0cb}
@media(max-width:1000px){.topbar{display:flex;height:auto;min-height:90px;flex-wrap:wrap;padding-top:14px;padding-bottom:14px;gap:12px}.header-actions{margin-left:auto}.topbar nav{order:3;width:100%;justify-content:center;flex-wrap:wrap;gap:10px 22px}}
@media(max-width:420px){.topbar{padding-left:12px;padding-right:12px}.topbar .brand{font-size:16px}.topbar .brandmark{height:30px;width:30px;margin-right:3px}.header-actions{gap:6px}.header-actions .small{padding:9px 10px}.theme-toggle{font-size:12px;padding:9px}}
