/* Coordinated display palettes. Trading profit/loss and risk colors stay semantic. */
:root,[data-theme="gold"]{--bg:#0e1014;--panel:#15191f;--surface:#1d232c;--border:#303844;--text:#ecf0f6;--muted:#9aa5b6;--accent:#f0cc56;--accent-hover:#ffe59b;}
[data-theme="blue"]{--bg:#0b121c;--panel:#111d2c;--surface:#192a3e;--border:#2b435e;--text:#edf5ff;--muted:#99afca;--accent:#79b9ff;--accent-hover:#b3d9ff;}
[data-theme="violet"]{--bg:#12101c;--panel:#1c182a;--surface:#282239;--border:#443957;--text:#f4efff;--muted:#b2a5c8;--accent:#bd9bff;--accent-hover:#ddc7ff;}
[data-theme="orange"]{--bg:#16120f;--panel:#221c18;--surface:#30271f;--border:#4b3d30;--text:#fff2e5;--muted:#bfa995;--accent:#f6b36c;--accent-hover:#ffd6a2;}
[data-theme="indigo"]{--bg:#0e1120;--panel:#171d32;--surface:#222b47;--border:#364366;--text:#edf0ff;--muted:#a3afd1;--accent:#99aaff;--accent-hover:#c7d0ff;}
[data-theme="silver"]{--bg:#101214;--panel:#191d21;--surface:#252b31;--border:#3e474f;--text:#f3f5f7;--muted:#a4afb9;--accent:#bdcbd8;--accent-hover:#e4edf5;}

:root{--gold:var(--accent);--text-soft:color-mix(in srgb,var(--text) 78%,var(--muted));--accent-soft:color-mix(in srgb,var(--accent) 12%,var(--panel));--accent-faint:color-mix(in srgb,var(--accent) 5%,var(--panel));--accent-line:color-mix(in srgb,var(--accent) 36%,var(--border));--accent-ink:#111820;--hover:color-mix(in srgb,var(--surface) 85%,var(--accent));--field:color-mix(in srgb,var(--bg) 82%,var(--panel));--ambient:color-mix(in srgb,var(--accent) 11%,transparent);--header:color-mix(in srgb,var(--bg) 94%,transparent);--border-strong:color-mix(in srgb,var(--border) 70%,var(--muted))}
body{background:radial-gradient(ellipse at 8% 0%,var(--ambient),transparent 38%),var(--bg)}
.brand .g18-logo{padding:0;box-shadow:0 4px 22px var(--ambient);background:linear-gradient(145deg,var(--accent-hover),var(--accent));color:var(--accent-ink)}
.g18-logo svg{display:block;width:100%;height:100%}.brand .g18-logo{width:48px;height:48px;border-radius:15px}
.tv-brand .g18-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-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;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 strong{font-size:clamp(36px,3vw,88px);line-height:1.1}.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);white-space:normal;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 .g18-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}}
