:root{color-scheme:light;--bg:#f5f7fa;--paper:#ffffff;--navy:#172e4b;--ink:#20334d;--muted:#596b82;--line:#dce3ec;--orange:#245b9b;--orange-light:#edf3fb;--green:#26745e;--surface-soft:#edf1f6;--accent-ink:#ffffff;--shadow:0 9px 25px #1a355b0a}
:root[data-theme=dark]{color-scheme:dark;--bg:#121b27;--paper:#1b2737;--navy:#142031;--ink:#e8eef6;--muted:#aab9cd;--line:#34455c;--orange:#96bdf0;--orange-light:#233b58;--green:#91cdb8;--surface-soft:#213044;--accent-ink:#152842;--shadow:0 9px 25px #0002}
body{background:var(--bg);color:var(--ink)}
.topbar,.stat,.model-card,.panel,.person-card,.offer-row,.offer-tabs button,.empty-state,dialog,.bottom-nav,.btn.secondary,.account-button,.language-picker select{background:var(--paper);border-color:var(--line);color:var(--ink)}
input,select,textarea{background:var(--paper);color:var(--ink);border-color:var(--line)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
input:focus,select:focus,textarea:focus{border-color:var(--orange);box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 20%,transparent)}
button:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.global-search,.segmented,.callout,.listing-settings,.photo-picker,.bubble,.studio-compare figcaption{background:var(--surface-soft);color:var(--muted);border-color:var(--line)}
.global-search input{background:transparent}
.btn.primary,.offer-count{background:var(--orange);color:var(--accent-ink);box-shadow:none}
.btn.light{background:var(--paper);color:var(--ink)}
.btn.secondary,.filters select,.icon-button,.dialog-body label,.dialog-body label small,.panel label,.check-row b,.private-total b,.profile-metric b,.empty-state h2{color:var(--ink)}
.card-make,.card-info,.card-state,.card-owner,.fine-print,.source-link,.community-rules,.person-card p,.person-card .location,.offer-row p,.target-summary p,.profile-identity small,.profile-metric,.private-total small,.filters>span,.browse-tabs button,footer,.bubble small{color:var(--muted)}
.browse-tabs,.card-bottom,.dialog-head,.private-total,.profile-metric,.submission-item,.moderate-listing,.listing-settings{border-color:var(--line)}
.card-action,.card-offer,.bubble.mine,.profile-identity .avatar{background:var(--orange-light);color:var(--orange)}
.card-state.owned,.badge.green{color:var(--green)}
.segmented button.active,.icon-button:hover{background:var(--paper);color:var(--ink)}
.person-count,.photo-picker.has-photo b{color:var(--orange)}
.banner{background:var(--orange-light);border-color:var(--line);color:var(--orange)}
.model-card:hover{box-shadow:var(--shadow)}
.hero{background:linear-gradient(110deg,#17232d,#2b404c)}
.hero-tag,.hero p{color:#c0ccd1}
.sidebar{background:var(--paper);color:var(--ink);border-right:1px solid var(--line)}.sidebar-caption,.sidebar-tip,.side-account small,.brand-tagline{color:var(--muted)}.sidebar-tip>span,.nav-item,.side-account{color:var(--ink)}.nav-item.active,.nav-item:hover{background:var(--orange-light);color:var(--orange)}.nav-item.active svg,.apk-link{color:var(--orange)}.side-account{border-color:var(--line)}.side-account .avatar{background:var(--surface-soft);color:var(--muted)}.sidebar .brand-logo{filter:none}[data-theme=dark] .sidebar .brand-logo{filter:brightness(0) invert(1)}
.card-photo,.model-cover,.studio-compare img,.studio-compare figure,.photo-picker>img,.hero-photo,.offer-row img,.target-summary img{background:#fff;color-scheme:light}
.card-photo,.model-cover{border-color:var(--line)}
.theme-toggle{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--orange)}
.theme-toggle:hover{background:var(--orange-light)}.theme-toggle svg{width:20px;height:20px}.theme-sun{display:none}[data-theme=dark] .theme-sun{display:block}[data-theme=dark] .theme-moon{display:none}
.theme-reset{color:var(--muted);font-size:10px;min-height:44px;text-align:center}
[data-theme=dark] .mobile-brand .brand-logo{filter:brightness(0) invert(1)}
[data-theme=dark] .stat-icon.orange,[data-theme=dark] .badge.orange{background:var(--orange-light);color:var(--orange)}
[data-theme=dark] .stat-icon.blue{background:#23384b;color:#a4c4e6}[data-theme=dark] .stat-icon.red{background:#3d2b35;color:#e1aebd}[data-theme=dark] .stat-icon.green,[data-theme=dark] .badge.green{background:#203c34;color:#9dd1b8}
[data-theme=dark] .badge{background:#2b3a47;color:#cad4de}[data-theme=dark] .badge.gold{background:#344153;color:#dbe4ef}
[data-theme=dark] .form-message{color:#f1aaa0}[data-theme=dark] .offer-tabs button.active{background:var(--orange);color:var(--accent-ink);border-color:var(--orange)}
[data-theme=dark] .toast{background:var(--orange);color:var(--accent-ink)}
@media(max-width:800px){.topbar{gap:8px}.topbar .global-search{order:6}.topbar .language-picker{margin-left:0}.language-picker select{width:82px;font-size:11px}.topbar .mobile-brand{flex:1}.topbar #addModel span{display:none}.topbar .btn.compact{margin-left:0;min-width:38px}.topbar .account-button{max-width:88px}.theme-toggle{width:40px;height:40px}.topbar .mobile-brand .brand-logo{width:105px}}
@media(max-width:380px){.topbar{padding-inline:12px;gap:6px}.topbar .mobile-brand .brand-logo{width:90px}.language-picker select{width:72px;padding-inline:4px}.topbar .account-button{max-width:72px;padding-inline:7px}}

/* Neutral status surfaces; color remains reserved for actions and meaning. */
.badge.orange{background:var(--orange-light);color:var(--orange)}.badge.gold{background:var(--surface-soft);color:var(--ink)}.toast{background:var(--ink);color:var(--paper)}
.sidebar #iosInstall{color:var(--ink)}
