/* Neutral surfaces shared by every theme; only accents change. */
:root{--bg:#0e1014;--panel:#15191f;--surface:#1d232c;--border:#303844;--text:#ecf0f6;--muted:#9aa5b6;--accent:#f0cc56;--accent-hover:#ffe59b}
[data-theme="gold"]{--accent:#f0cc56;--accent-hover:#ffe59b}
[data-theme="blue"]{--accent:#389feb;--accent-hover:#8bcaff}
[data-theme="violet"]{--accent:#a879e9;--accent-hover:#ceacf9}
[data-theme="orange"]{--accent:#e8963f;--accent-hover:#ffc27b}
[data-theme="indigo"]{--accent:#31bfc5;--accent-hover:#87e0e1}
[data-theme="silver"]{--accent:#d274c7;--accent-hover:#efa7e5}

:root{--gold:var(--accent);--text-soft:color-mix(in srgb,var(--text) 78%,var(--muted));--accent-soft:#24282f;--accent-faint:#191d23;--accent-line:color-mix(in srgb,var(--accent) 36%,var(--border));--accent-ink:#111820;--hover:#282e36;--field:#101318;--ambient:transparent;--header:color-mix(in srgb,var(--bg) 94%,transparent);--border-strong:color-mix(in srgb,var(--border) 70%,var(--muted))}
body{background:var(--bg)}
.brand .h19-logo{padding:0;box-shadow:0 4px 22px var(--ambient);background:linear-gradient(145deg,var(--accent-hover),var(--accent));color:var(--accent-ink)}
.h19-logo svg{display:block;width:100%;height:100%}.brand .h19-logo{width:48px;height:48px;border-radius:15px}
.tv-brand .h19-logo{display:block;width:40px;height:40px;background:var(--accent);color:var(--accent-ink);border-radius:12px}.tv-brand{align-items:center}
.theme-settings{padding:18px 20px;margin:18px 24px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.theme-settings-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px}.theme-settings-head h3{margin:0}.theme-settings-head small{color:var(--muted);font-size:11px}
.theme-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.theme-picker button{display:grid;grid-template-columns:1fr auto;gap:10px 4px;padding:10px;border-radius:10px;text-align:left;background:var(--panel);color:var(--text);border:1px solid var(--border);font-size:12px;position:relative}
.theme-picker button b{visibility:hidden;color:var(--accent)}.theme-picker button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}.theme-picker button[aria-pressed=true] b{visibility:visible}
.theme-preview{grid-column:1/-1;display:grid;grid-template-columns:1.4fr 1fr;gap:5px;background:var(--bg);border-radius:5px;padding:8px;height:48px}.theme-preview i{background:var(--surface);border-radius:2px}.theme-preview i:first-child{grid-column:1/-1;height:4px;width:42%;background:var(--accent)}.theme-preview i:last-child{border-left:2px solid var(--accent)}
.cost-metric{min-width:0}.cost-metric>span{display:block;color:var(--muted);font-size:12px}
.cost-metric>.cost-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 7px}.cost-heading .cost-entry-price{font:inherit;font-variant-numeric:tabular-nums;white-space:nowrap}.cost-values.both-sides .cost-entry-price{margin-bottom:2px}

.cost-values{display:flex;gap:12px;min-width:0}.cost-value{min-width:0;flex:1}.cost-value strong{display:block;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:750;line-height:1.25}.cost-value small{display:block;color:var(--muted);font-size:11px;white-space:nowrap}.metrics .cost-value strong{font-size:40px;font-weight:750;line-height:1.25}
.cost-metric [data-liquidation-note]{display:block;border-top:1px solid var(--border);padding-top:6px;margin-top:7px;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted);line-height:1.3}
.metrics .cost-values.both-sides strong{font-size:28px}.cost-values.both-sides{flex-wrap:wrap}.cost-values.both-sides .cost-value{min-width:max-content}.cost-values.both-sides .cost-value+.cost-value{border-left:1px solid var(--border);padding-left:12px}
.position-values .cost-value strong{font-size:25px;font-weight:750;line-height:1.4}.position-values .cost-value small{font-size:10px}.position-risk{flex-wrap:wrap;justify-content:flex-start;gap:6px 18px}.position-risk .negative b{color:inherit}
.tv-metrics .cost-value small{font-size:clamp(11px,.8vw,20px);line-height:1.2}.tv-metrics .both-sides strong{font-size:clamp(28px,2.2vw,64px)}.tv-metrics .cost-metric [data-liquidation-note]{font-size:clamp(10px,.75vw,18px);margin-top:5px;padding-top:4px;line-height:1.2}.tv-metrics .cost-metric{justify-content:center;padding-block:clamp(10px,.7vw,16px)}.tv-metrics .cost-metric>span{line-height:1.2}
@media(max-height:800px) and (min-width:901px){#tv-screen{grid-template-rows:34px 116px minmax(0,1fr) 166px 18px}.tv-metrics article{padding-block:10px}.tv-metrics .cost-metric [data-liquidation-note]{margin-top:5px;padding-top:4px}}
@media(max-width:1000px){.theme-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.brand .h19-logo{width:38px;height:38px;border-radius:12px}.theme-settings{margin:14px 16px;padding:16px 12px}.theme-picker{gap:11px}.theme-settings-head{flex-wrap:wrap;gap:4px}.cost-values.both-sides{gap:6px}.cost-values.both-sides .cost-value+.cost-value{padding-left:6px}.metrics .cost-value strong{font-size:36px}.metrics .cost-values.both-sides strong{font-size:24px}.metrics .cost-values.both-sides small{font-size:9px}.position-values .cost-value strong{font-size:23px}.cost-metric [data-liquidation-note]{font-size:10px}}
