@font-face{font-family:HopHopTrade Icons;src:local("Segoe Fluent Icons"),local("Segoe MDL2 Assets")}
:root{color-scheme:light;--ink:#19271f;--muted:#5b685f;--paper:#f3f5f0;--panel:#fff;--line:#e3e8de;--dark:#14261d;--green:#3f653a;--lime:#d6ef9a;--mint:#eef5e8;--side:244px;--radius:16px;--font:"Inter","Segoe UI",sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}
h1,h2,p{margin:0}
button,select{font:inherit;color:inherit}
button,a,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:default}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #608443;outline-offset:3px}
[hidden]{display:none!important}
.skip-link{position:fixed;left:16px;top:8px;z-index:20;padding:10px;background:var(--lime);transform:translateY(-150%)}
.skip-link:focus{transform:none}
.icon{display:inline-grid;place-items:center;line-height:1;font-family:"HopHopTrade Icons","Segoe Fluent Icons","Segoe MDL2 Assets",sans-serif;font-size:15px;font-weight:400;flex:none}
.shell{min-height:100dvh;display:grid;grid-template-columns:var(--side) minmax(0,1fr)}
.sidebar{background:var(--dark);color:#dbe4dc;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;min-height:0;padding:24px 16px 13px}
.brand{display:flex;align-items:center;gap:10px;padding:1px 7px 25px;font-size:19px;font-weight:800;letter-spacing:-.045em;line-height:1.12;color:#f4f7ff}
.brand-mark{display:block;width:40px;height:40px;flex:none}
.brand-accent{color:#8cf0d5}
.brand small,.side-profile small{display:block;font-size:10px;margin-top:3px;letter-spacing:.115em;color:#b2c4b5;font-weight:650}
.sidebar nav{overflow:auto;scrollbar-width:thin;scrollbar-color:#526851 transparent;padding:0 0 12px}
.nav-group+.nav-group{margin-top:18px}
.nav-label{padding:0 10px 6px;font-size:10px;font-weight:750;letter-spacing:.115em;color:#a8bcad}
.nav-item{border:0;width:100%;background:transparent;border-radius:8px;min-height:38px;padding:7px 10px;display:flex;align-items:center;gap:11px;text-align:left;font-size:13px;line-height:1.2;font-weight:550;color:#dbe4dc}
.nav-item .icon{color:#b5c9b8;width:17px;font-size:14px}
.nav-item:hover{background:#283e30}
.nav-item.active{background:var(--lime);color:#1c2b1f;font-weight:750}
.nav-item.active .icon{color:#31472e}
.sidebar-bottom{margin-top:auto;padding-top:10px;border-top:1px solid #34483b}
.other-panel,.side-profile{min-height:42px;border-radius:8px;width:100%;display:flex;gap:10px;align-items:center;text-align:left;font-size:12px;font-weight:650;padding:7px 8px;color:#edf5eb}
.other-panel{background:#21382a;margin-bottom:8px}
.other-panel:hover,.side-profile:hover{background:#2c4533}
.other-panel>.icon:first-child{color:#cbeba1}
.other-arrow{margin-left:auto;font-size:11px;color:#b4c6b7}
.side-profile{border:0;background:none}
.side-profile small{letter-spacing:0;font-weight:450;margin-top:2px}
.avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:#e3edda;border:0;color:#385439;font-size:11px;font-weight:750}
.side-profile .avatar{background:#385444;color:#e5f0dd}
.workspace{min-width:0}
.topbar{height:65px;display:flex;justify-content:space-between;align-items:center;background:#fbfcf9;border-bottom:1px solid var(--line);padding:0 30px;gap:10px}
.breadcrumbs,.top-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}
.breadcrumbs{font-size:13px;color:var(--muted)}
.breadcrumbs strong{color:var(--ink);font-weight:700}
.breadcrumbs .icon{font-size:9px;color:#778277}
.top-actions{gap:13px}
.panel-switch,.segmented{background:#edf1e9;border:1px solid #e6ebe1;border-radius:9px;padding:3px;display:flex;align-items:center}
.panel-switch a,.segmented button{background:transparent;border:1px solid transparent;border-radius:6px;padding:5px 11px;font-size:12px;font-weight:650;line-height:1.3;color:#58665d}
.panel-switch a[aria-current],.segmented button[aria-pressed=true]{background:#fff;color:#28442b;border-color:#e2e8dd;box-shadow:0 1px 2px #192f2110}
.icon-button{position:relative;display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:8px;background:#fff}
.icon-button:hover{background:var(--mint)}
.notification i{position:absolute;right:6px;top:6px;width:7px;height:7px;background:#9cb761;border-radius:50%;border:1px solid white}
.top-avatar{width:33px;height:33px}
.mobile-menu{display:none}
.content{padding:24px 30px 36px;max-width:1550px;margin:auto}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:19px}
.overline{font-size:10px;font-weight:800;letter-spacing:.125em;color:#59705b;line-height:1.3}
.page-heading h1{font-size:clamp(29px,3.2vw,39px);line-height:1.14;letter-spacing:-.055em;margin-top:5px;font-weight:760}
.preview-label{display:flex;align-items:center;gap:6px;border:1px solid #dce5d6;border-radius:20px;padding:5px 9px;font-size:11px;font-weight:650;color:#4c6151;white-space:nowrap;margin-bottom:2px}
.preview-label i,.hero-tag i,.auto-status i,.good-dot,.idle-dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:#729658;flex:none}
.card{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);min-width:0;box-shadow:0 1px 2px #1c341b07}
.desk-spotlight{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(235px,1fr);gap:15px}
.hero{min-height:237px;overflow:hidden;position:relative;isolation:isolate;color:#f4f7f1;background:#1d3527;border-color:#253d2e}
.hero canvas{position:absolute;z-index:-2;inset:0;width:100%;height:100%;display:block}
.hero::after{content:"";z-index:-1;position:absolute;inset:0;background:linear-gradient(90deg,#1b3224 0%,#1b3224 33%,#1b3224d1 47%,transparent 77%)}
.hero-content{padding:23px 25px 25px;position:relative}
.hero-tag{display:inline-flex;align-items:center;gap:6px;font-size:10px;letter-spacing:.10em;font-weight:750;color:#dce8d6;border:1px solid #67836775;background:#2c4539;padding:4px 8px;border-radius:20px}
.hero-tag i{width:6px;height:6px;background:var(--lime)}
.hero h2{margin-top:12px;font-size:clamp(32px,4vw,51px);font-weight:750;line-height:1;letter-spacing:-.065em}
.hero h2 em{font-style:normal;color:var(--lime)}
.hero p{font-size:13px;color:#d1dfd1;margin-top:10px;line-height:1.5;max-width:355px}
.button{display:inline-flex;gap:8px;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;font-weight:730;min-height:36px;padding:7px 11px;font-size:12px;white-space:nowrap}
.button .icon,.text-button .icon{font-size:11px}
.button.primary{background:var(--lime);color:#263922;margin-top:15px}
.button.primary:hover{background:#e3f6b6}
.button.outline{background:#fbfcf9;border-color:#dce5d8;color:#3c613a}
.button.outline:hover{background:#f1f7ec}
.button:disabled{background:var(--mint);border-color:var(--mint)}
.wallet-card{padding:19px 19px 15px}
.card-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:12px}
.square-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:9px;background:#edf4e6;color:#4b7140}
.square-icon .icon{font-size:17px}
.text-button{display:inline-flex;gap:6px;align-items:center;background:none;border:0;padding:4px 0;color:#3f6639;font-size:12px;font-weight:730;white-space:nowrap}
.text-button:hover{text-decoration:underline}
.metric-label{font-size:12px;font-weight:620;color:var(--muted)}
.wallet-number{font-size:clamp(36px,4vw,50px);line-height:1.12;font-weight:760;letter-spacing:-.065em;margin-top:1px;margin-bottom:17px;font-variant-numeric:tabular-nums}
.wallet-number small{font-size:15px;color:var(--muted);letter-spacing:0;font-weight:600}
.wallet-progress-label{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px;color:#5e6b60;margin-bottom:7px}
.wallet-progress-label strong{color:#334a32}
.progress-track,.mini-track{height:7px;border-radius:8px;background:#e8efe3;display:block;overflow:hidden}
.progress-track span,.mini-track i{display:block;height:100%;border-radius:8px;background:#82a954}
.wallet-note{color:var(--muted);font-size:11px;margin-top:8px}
.streak{display:flex;align-items:center;gap:13px;margin-top:15px;padding:13px 16px}
.streak-icon{width:40px;height:40px}
.streak h2,.section-head h2,.game-card h2{font-size:17px;letter-spacing:-.027em;font-weight:750;line-height:1.24}
.streak-copy p,.section-head p,.game-card p:not(.overline){font-size:12px;color:var(--muted);line-height:1.35;margin-top:3px}
.streak-copy{flex:0 0 auto}
.streak-days{display:flex;justify-content:center;gap:6px;flex:1}
.streak-days>span{display:grid;justify-items:center;gap:3px;color:#68776d;font-size:9px;font-weight:650}
.streak-days b{display:grid;place-items:center;width:25px;height:24px;border-radius:6px;background:#f1f3ee;color:#718075;font-size:10px;font-weight:650}
.streak-days b .icon{font-size:11px}
.streak-days .checked b{background:#e5f0dc;color:#41643b}
.streak-days .today b{background:var(--lime);color:#355030}
.desk-lower{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr);gap:15px;margin-top:15px}
.tasks,.feed-card,.equity-card,.status-card,.trade-card{padding:15px 17px}
.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.task-list{margin-top:8px}
.task-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid #edf0ea;padding:10px 0;color:var(--ink)}
.task-row:last-child{border-bottom:0;padding-bottom:2px}
.task-row:hover{background:#f7faf5}
.task-row .square-icon{width:33px;height:33px}
.task-row .square-icon .icon{font-size:14px}
.task-copy{flex:1;display:grid;gap:3px;min-width:0}
.task-copy strong,.task-reward strong,.feed-post strong{font-size:12px;font-weight:750}
.task-copy small,.task-reward small{font-size:11px;color:var(--muted)}
.task-reward{display:grid;text-align:right;gap:3px;min-width:75px}
.task-reward strong{color:var(--green)}
.mini-track{height:4px;width:min(100%,160px);margin-top:2px}
.desk-secondary{display:grid;gap:12px}
.game-card{display:flex;align-items:center;gap:10px;background:#edf4e5;border-color:#e0e9d9;padding:13px 14px}
.game-card>.square-icon{width:35px;height:35px;background:#dce9cf}
.game-card .overline{font-size:8px;margin-bottom:2px}
.game-card p:not(.overline){font-size:11px}
.circle-button{display:grid;place-items:center;margin-left:auto;flex:none;width:30px;height:30px;border:1px solid #d4e2cc;background:#f8fbf5;color:var(--green);border-radius:50%}
.circle-button:hover{background:var(--lime)}
.circle-button .icon{font-size:12px}
.feed-card{padding-top:11px;padding-bottom:10px}
.feed-post{display:flex;align-items:flex-start;gap:8px;margin-top:8px}
.feed-avatar{width:28px;height:28px;font-size:9px}
.feed-post small,.feed-post span:not(.avatar){color:var(--muted);font-size:10px}
.feed-post p{font-size:12px;line-height:1.35;margin:3px 0}
.feed-post .icon{font-size:10px}
.account-bar{min-height:65px;display:flex;align-items:center;gap:10px;padding:10px 13px}
.account-icon{width:38px;height:38px;background:#e9f1e3;color:#3b5c3c;border-radius:9px;display:grid;place-items:center;font-weight:800;font-size:11px;flex:none}
.account-select{display:grid;gap:2px}
.account-select label{color:var(--muted);font-size:10px;font-weight:650}
.account-select select{width:100%;font-weight:750;font-size:15px;background:#fff;border:0;border-radius:3px;padding:0 2px 0 0;cursor:pointer}
.demo-pill{background:#e9f1e3;color:#3e6237;border-radius:5px;padding:4px 6px;font-size:9px;font-weight:800;letter-spacing:.04em;white-space:nowrap}
.account-type{color:var(--muted);font-size:11px;white-space:nowrap}
.account-actions{margin-left:auto;display:flex;align-items:center;gap:11px}
.auto-status{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;font-weight:650;white-space:nowrap}
.auto-status i,.idle-dot{background:#aaa591}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:13px 0}
.metric-card{position:relative;display:grid;gap:5px;padding:12px 13px;min-height:93px}
.metric-card .metric-label{padding-right:14px}
.metric-card strong{font-size:clamp(21px,2.8vw,32px);font-weight:760;letter-spacing:-.065em;line-height:1.05;white-space:nowrap;font-variant-numeric:tabular-nums}
.metric-card small{font-size:10px;color:var(--muted)}
.metric-card .metric-icon{position:absolute;top:10px;right:10px;color:#6a826b}
.metric-icon .icon{font-size:13px}
.positive,.metric-card small.positive{color:#3e6c3e;font-weight:700}
.negative{color:#98493e;font-weight:700}
.app-middle{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(220px,1fr);gap:13px}
.equity-card,.status-card{min-height:251px}
.chart-legend{display:flex;gap:12px;font-size:11px;color:var(--muted);margin:10px 0 2px}
.chart-legend span{display:inline-flex;align-items:center;gap:4px}
.chart-legend i{display:inline-block;width:12px;border-top:2px solid #477849}
.chart-legend span+span i{border-top:2px dashed #77927d}
.equity-plot{height:164px;min-width:0}
.equity-plot canvas{display:block;width:100%;height:100%}
.status-card .square-icon{width:32px;height:32px}
.status-card .section-head{margin-bottom:7px}
.status-line{display:flex;justify-content:space-between;align-items:center;gap:4px;border-bottom:1px solid #eef1eb;padding:8px 0;font-size:12px;color:var(--muted)}
.status-line strong{color:var(--ink);display:inline-flex;align-items:center;gap:5px;font-size:11px}
.risk-meter{margin:11px 0 6px}
.risk-meter>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:4px;color:var(--muted);font-size:11px;margin-bottom:5px}
.risk-meter strong{color:#38553b}
.trade-card{margin-top:13px}
.trade-tabs{display:flex;gap:13px;margin:8px 0 0;border-bottom:1px solid var(--line);overflow:auto;scrollbar-width:thin}
.trade-tabs button{background:none;border:0;border-bottom:2px solid transparent;font-size:12px;color:var(--muted);padding:6px 0;font-weight:650;white-space:nowrap}
.trade-tabs button[aria-pressed=true]{color:#345b35;border-bottom-color:#61884e}
.trade-tabs span{padding:2px 5px;margin-left:2px;border-radius:4px;background:#eef2eb;font-size:9px}
.table-scroll{overflow:auto;scrollbar-width:thin}
table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;min-width:610px;font-variant-numeric:tabular-nums}
table th,table td{padding:8px 8px 8px 0;white-space:nowrap}
table thead th{font-size:10px;color:var(--muted);font-weight:700;border-bottom:1px solid #edf0eb}
tbody tr+tr{border-top:1px solid #edf0eb}
table th:last-child,table td:last-child{text-align:right;padding-right:2px}
tbody th strong,tbody th small{display:block}
tbody th small{font-weight:500;font-size:10px;color:var(--muted);margin-top:2px}
.direction{border-radius:4px;padding:3px 6px;font-size:9px;font-weight:750}
.direction.buy{color:#396439;background:#eaf3e7}
.direction.sell{color:#8a473d;background:#f9edeb}
dialog{width:min(440px,calc(100vw - 28px));border:1px solid #e0e8dd;border-radius:16px;padding:0;background:white;color:var(--ink);box-shadow:0 18px 55px #1027183d}
dialog::backdrop{background:#13251cd0}
.dialog-header{padding:15px 17px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:center}
.dialog-header h2{font-size:20px;letter-spacing:-.035em}
.dialog-body{padding:5px 17px 13px}
.dialog-body>div{padding:11px 0;line-height:1.4}
.dialog-body>div+div{border-top:1px solid #edf0eb}
.dialog-body p{margin-top:2px;color:var(--muted);font-size:13px}
@media(min-width:1500px){.content{padding:30px 39px 44px}.topbar{padding:0 39px}.hero{min-height:255px}.hero-content{padding:27px 30px}.wallet-card{padding:22px}.equity-plot{height:202px}}
@media(max-width:1050px){:root{--side:202px}.topbar,.content{padding-left:18px;padding-right:18px}.sidebar{padding-left:12px;padding-right:12px}.desk-lower,.desk-spotlight{gap:11px}.account-type{display:none}.streak{gap:8px;padding-inline:10px}.streak-days{gap:4px}.streak-days b{width:22px}}
@media(max-width:820px){.shell{display:block}.sidebar{position:fixed;inset:0 auto 0 0;z-index:9;width:232px;transform:translateX(-105%);visibility:hidden;transition:transform .18s,visibility .18s}.menu-open .sidebar{transform:none;visibility:visible}.scrim{position:fixed;inset:0;z-index:8;border:0;background:#10241bbc}.mobile-menu{display:grid}.mobile-menu .icon{font-size:14px}.topbar{height:55px}.content{padding-top:17px}}
@media(max-width:590px){.topbar,.content{padding-left:12px;padding-right:12px}.breadcrumbs{gap:6px}.breadcrumbs>span:not(.icon),.breadcrumbs>.icon{display:none}.breadcrumbs strong{font-size:12px}.top-actions{gap:6px}.top-avatar{display:none}.panel-switch a,.segmented button{padding:4px 7px}.page-heading{margin-bottom:14px;gap:6px}.page-heading h1{font-size:30px}.preview-label{font-size:9px;padding:4px 6px}.desk-spotlight,.desk-lower,.app-middle{grid-template-columns:minmax(0,1fr)}.hero{min-height:215px}.hero-content{padding:19px 15px}.hero::after{background:linear-gradient(90deg,#1b3224 0%,#1b3224db 52%,#1b322426)}.wallet-card{padding:13px}.wallet-number{margin-bottom:12px}.streak{flex-wrap:wrap;padding:11px;gap:8px}.streak-copy{flex:1 1 auto}.streak .button{order:3;margin-left:auto;min-height:29px;font-size:10px;padding:4px 6px}.streak-days{flex:0 0 100%;order:4;justify-content:space-between}.streak-days b{width:26px}.desk-lower,.streak{margin-top:11px}.tasks,.feed-card,.equity-card,.status-card,.trade-card{padding:12px}.section-head h2,.streak h2,.game-card h2{font-size:16px}.text-button{font-size:11px}.account-bar{flex-wrap:wrap;padding:8px;gap:6px}.account-icon{width:32px;height:32px}.account-select select{font-size:13px}.account-actions{flex:1 0 100%;justify-content:space-between;padding-left:2px}.account-actions .button{min-height:28px;font-size:10px;padding:3px 6px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:9px 0}.metric-card{padding:9px;min-height:75px}.metric-card strong{font-size:24px}.equity-card,.status-card{min-height:0}.equity-plot{height:146px}.trade-card{margin-top:10px}}
@media(max-height:770px) and (min-width:821px){.sidebar{padding-top:18px}.brand{padding-bottom:17px}.nav-group+.nav-group{margin-top:13px}.nav-item{min-height:34px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* Chart and hero colors for each theme. */
:root {
  --header: #fbfcf9;
  --hero-glow: #425c33;
  --hero-base: #182e22;
  --hero-orbit: 218,242,171;
  --hero-rise: 211,238,151;
  --hero-fall: 151,193,121;
  --chart-grid: #e7ebe3;
  --chart-equity: #407042;
  --chart-balance: #77927d;
  --chart-fill-top: rgba(138,180,90,.31);
  --chart-fill-bottom: rgba(220,235,205,.15);
}

.theme-toggle {
  flex: none;
  color: #405744;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .sun-icon,
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f6fe;
  --muted: #a7b1d4;
  --paper: #060810;
  --panel: #0c101d;
  --header: #070a13;
  --line: #1d2740;
  --dark: #03040a;
  --green: #a2b4ff;
  --lime: #93a8fd;
  --mint: #151f3a;
  --raised: #0f1424;
  --selected: #19264b;
  --accent: #4f6ef7;
  --action: #4562eb;
  --focus: #a2b4ff;
  --positive: #3ddc97;
  --negative: #ff929c;
  --hero-glow: #263a8c;
  --hero-base: #101734;
  --hero-orbit: 151,174,255;
  --hero-rise: 132,157,255;
  --hero-fall: 108,126,207;
  --chart-grid: #232d4a;
  --chart-equity: #91a8ff;
  --chart-balance: #a2afca;
  --chart-fill-top: rgba(79,110,247,.32);
  --chart-fill-bottom: rgba(79,110,247,.035);
}

[data-theme="dark"] body[data-page="app"] {
  --paper: #00011f;
  --panel: #070b25;
  --header: #030722;
  --dark: #000114;
  --line: #192446;
  --raised: #0c1331;
  --selected: #172956;
  --accent: #2152f2;
  --chart-grid: #202c51;
  --chart-equity: #85a2ff;
}

[data-theme="dark"] :is(button,a,select,[tabindex]):focus-visible { outline-color: var(--focus); }
[data-theme="dark"] .skip-link { color: var(--dark); }
[data-theme="dark"] .topbar { background: var(--header); }
[data-theme="dark"] .brand { color: var(--ink); }
[data-theme="dark"] :is(.brand small,.side-profile small,.nav-label,.nav-item,.nav-item .icon,.other-arrow,.breadcrumbs .icon) { color: var(--muted); }
[data-theme="dark"] .sidebar nav { scrollbar-color: #364570 transparent; }
[data-theme="dark"] :is(.nav-item:hover,.other-panel:hover,.side-profile:hover) { background: var(--raised); }
[data-theme="dark"] .nav-item.active {
  background: var(--selected);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #718bfc32;
}
[data-theme="dark"] :is(.nav-item.active .icon,.other-panel > .icon:first-child,.overline,.text-button) { color: var(--green); }
[data-theme="dark"] .sidebar-bottom { border-color: var(--line); }
[data-theme="dark"] .other-panel { background: var(--raised); color: var(--ink); }
[data-theme="dark"] :is(.avatar,.side-profile .avatar) { background: var(--selected); color: var(--green); }
[data-theme="dark"] :is(.panel-switch,.segmented) { background: var(--raised); border-color: var(--line); }
[data-theme="dark"] :is(.panel-switch a,.segmented button) { color: var(--muted); }
[data-theme="dark"] :is(.panel-switch a[aria-current],.segmented button[aria-pressed=true]) {
  background: var(--selected);
  color: var(--ink);
  border-color: #304274;
  box-shadow: none;
}
[data-theme="dark"] .icon-button { background: var(--raised); color: var(--muted); }
[data-theme="dark"] .icon-button:hover { background: var(--selected); color: var(--ink); }
[data-theme="dark"] .theme-toggle { color: #f1ca7c; }
[data-theme="dark"] .notification i { border-color: var(--raised); background: var(--green); }
[data-theme="dark"] .preview-label { border-color: var(--line); color: var(--muted); }
[data-theme="dark"] .preview-label i { background: var(--green); }
[data-theme="dark"] .card { box-shadow: 0 3px 12px #0002; }

[data-theme="dark"] .hero {
  color: var(--ink);
  background: var(--hero-base);
  border-color: #26376d;
}
[data-theme="dark"] .hero::after {
  background: linear-gradient(90deg,#0e1530 0%,#0e1530 27%,#0e1530dd 45%,#0e153000 81%);
}
[data-theme="dark"] .hero-tag {
  color: #becaff;
  border-color: #556cc880;
  background: #22326a;
}
[data-theme="dark"] .hero p { color: #c1cbea; }
[data-theme="dark"] .button.primary { background: var(--action); color: white; }
[data-theme="dark"] .button.primary:hover { background: #4a66ef; }
[data-theme="dark"] :is(.button.outline,.circle-button) {
  background: var(--raised);
  border-color: var(--line);
  color: var(--green);
}
[data-theme="dark"] :is(.button.outline:hover,.circle-button:hover) { background: var(--selected); }
[data-theme="dark"] .button:disabled { background: #122b27; border-color: #1c463c; color: var(--positive); }
[data-theme="dark"] :is(.square-icon,.game-card > .square-icon,.account-icon,.demo-pill) {
  background: var(--selected);
  color: var(--green);
}
[data-theme="dark"] :is(.wallet-progress-label,.streak-days > span) { color: var(--muted); }
[data-theme="dark"] :is(.wallet-progress-label strong,.risk-meter strong) { color: var(--ink); }
[data-theme="dark"] :is(.progress-track,.mini-track) { background: #1e2a4b; }
[data-theme="dark"] :is(.progress-track span,.mini-track i) {
  background: linear-gradient(90deg,var(--accent),var(--green));
}
[data-theme="dark"] .streak-days b { background: var(--raised); color: var(--muted); }
[data-theme="dark"] .streak-days .checked b { background: #122b27; color: var(--positive); }
[data-theme="dark"] .streak-days .today b { background: var(--action); color: white; }
[data-theme="dark"] .game-card { background: #111a33; border-color: #233257; }
[data-theme="dark"] :is(.task-row,.status-line,table thead th,tbody tr+tr,.dialog-body > div+div) { border-color: var(--line); }
[data-theme="dark"] .task-row:hover { background: var(--raised); }

[data-theme="dark"] .account-select select { background: var(--panel); }
[data-theme="dark"] .metric-card .metric-icon { color: var(--green); }
[data-theme="dark"] :is(.positive,.metric-card small.positive) { color: var(--positive); }
[data-theme="dark"] .negative { color: var(--negative); }
[data-theme="dark"] .good-dot { background: var(--positive); }
[data-theme="dark"] :is(.auto-status i,.idle-dot) { background: #8290aa; }
.chart-legend i { border-top-color: var(--chart-equity); }
.chart-legend span+span i { border-top-color: var(--chart-balance); }
[data-theme="dark"] .trade-tabs button[aria-pressed=true] { color: var(--green); border-bottom-color: var(--green); }
[data-theme="dark"] .trade-tabs span { background: var(--raised); }
[data-theme="dark"] .direction.buy { color: var(--positive); background: #102d2a; }
[data-theme="dark"] .direction.sell { color: var(--negative); background: #351d31; }
[data-theme="dark"] dialog { background: var(--panel); border-color: var(--line); box-shadow: 0 18px 55px #000a; }
[data-theme="dark"] dialog::backdrop { background: #03040bd9; }
[data-theme="dark"] .scrim { background: #03040bd9; }
@media (max-width: 590px) {
  [data-theme="dark"] .hero::after {
    background: linear-gradient(90deg,#0e1530 0%,#0e1530db 52%,#0e153026);
  }
}
