:root{color-scheme:light;--bg:#f7f7f5;--panel:#fff;--panel2:#f1f1ee;--text:#171714;--muted:#66645f;--line:#deddd7;--green:#238653}
:root[data-theme="dark"]{color-scheme:dark;--bg:#090909;--panel:#121212;--panel2:#181818;--text:#f5f1e8;--muted:#a9a49b;--line:#2a2926;--green:#65c98a}
.theme-toggle{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;color:var(--text);background:var(--panel);cursor:pointer;font-size:19px;line-height:1;box-shadow:0 4px 14px rgba(0,0,0,.06)}
:root:not([data-theme="dark"]) .topbar{background:rgba(255,255,253,.9)}
:root:not([data-theme="dark"]) .button.secondary,:root:not([data-theme="dark"]) .button.ghost{background:#fff;color:#171714}
:root:not([data-theme="dark"]) .status-pill,:root:not([data-theme="dark"]) .quiet-badge{background:#fff}
:root:not([data-theme="dark"]) .hero-card,:root:not([data-theme="dark"]) .empty-state,:root:not([data-theme="dark"]) .course-preview{background:linear-gradient(145deg,#fff,#f4f4f0);box-shadow:0 18px 55px rgba(35,30,20,.08)}
:root:not([data-theme="dark"]) .stat,:root:not([data-theme="dark"]) .price-line span{background:#f4f4f0;border-color:var(--line)}
:root:not([data-theme="dark"]) .result-row.header,:root:not([data-theme="dark"]) .contracts-block h4,:root:not([data-theme="dark"]) .update-note,:root:not([data-theme="dark"]) .store-strip{background:#f4f1e9}
:root:not([data-theme="dark"]) .closed-trade-detail{background:#fff;color:#27251f}:root:not([data-theme="dark"]) .closed-trade-detail[open]>summary{background:#f7f2e7;border-color:#e6e0d7}:root:not([data-theme="dark"]) .closed-trade-body section{border-color:#e6e0d7}:root:not([data-theme="dark"]) .closed-trade-body section p,:root:not([data-theme="dark"]) .closed-trade-detail>summary small{color:#6f6a61}:root:not([data-theme="dark"]) .closed-trade-status span,:root:not([data-theme="dark"]) .closed-timeline li{background:#faf8f3;border-color:#e4ded4}:root:not([data-theme="dark"]) .closed-trade-status small{color:#777168}:root:not([data-theme="dark"]) .closed-trade-body section h3,:root:not([data-theme="dark"]) .closed-risk>summary{color:#74551e}:root:not([data-theme="dark"]) .closed-contracts>div,:root:not([data-theme="dark"]) .closed-risk{border-color:#e4ded4}
:root:not([data-theme="dark"]) .locked-state,:root:not([data-theme="dark"]) .smartincome-ecosystem{background:radial-gradient(circle at 50% 0,rgba(216,173,85,.10),transparent 45%),#fff}
:root:not([data-theme="dark"]) dialog,:root:not([data-theme="dark"]) .toast{background:#fff;color:var(--text);box-shadow:0 30px 90px rgba(0,0,0,.18)}
:root:not([data-theme="dark"]) .portfolio-entry-dialog{--panel:#fff;--panel2:#f7f6f2;--text:#191816;--muted:#66615a;--line:#d9d5cc}
:root[data-theme="dark"] .portfolio-entry-dialog{--panel:#121212;--panel2:#1b1a18;--text:#f5f1e8;--muted:#aaa49a;--line:#34312b}
:root[data-theme="dark"] .portfolio-entry-dialog .eyebrow,:root[data-theme="dark"] .portfolio-entry-dialog h2 span,:root[data-theme="dark"] .entry-calculation strong,:root[data-theme="dark"] .fallback-allocation button.selected{color:var(--gold2)}
:root:not([data-theme="dark"]) .dialog-features span,:root:not([data-theme="dark"]) .contract-line b,:root:not([data-theme="dark"]) .member-banner b{color:var(--text)}
:root:not([data-theme="dark"]) .mobile-nav{background:rgba(255,255,253,.96)}
:root:not([data-theme="dark"]) .brand b{color:#171714}
:root:not([data-theme="dark"]) .top-links a{color:#8b651f;background:#fff;border-color:#ddd7ca}
:root:not([data-theme="dark"]){--gold:#765215;--gold2:#765215}
:root:not([data-theme="dark"]) .button.primary{background:linear-gradient(135deg,#f2d18a,#d8ad55);color:#15120b}
:root:not([data-theme="dark"]) .course-card{color:#f5f1e8}
:root:not([data-theme="dark"]) .course-card>p,:root:not([data-theme="dark"]) .course-card ul{color:#d5cfc3}
:root:not([data-theme="dark"]) .course-card .button.secondary{background:#fff;color:#171714}
:root:not([data-theme="dark"]) .course-card .course-label,:root:not([data-theme="dark"]) .academy-card>span,:root:not([data-theme="dark"]) .academy-card b{color:#f2d18a}
:root:not([data-theme="dark"]) .academy-card{color:#f5f1e8}
:root:not([data-theme="dark"]) .academy-card li{color:#d7d1c6}
:root:not([data-theme="dark"]) .hero h1 span,:root:not([data-theme="dark"]) .course-hero h1 span,:root:not([data-theme="dark"]) .statistics-hero h1 span,:root:not([data-theme="dark"]) .overview-hero h1 span{color:#765215}
@media(max-width:800px){
  .topbar{gap:10px}.theme-toggle{width:40px;height:40px;flex-basis:40px}.hero{padding-top:34px}.hero h1{font-size:clamp(36px,11vw,46px);line-height:1.14}.hero-card{padding:18px}.opportunity-card{padding:17px}.top-links{margin-right:0}
  .brand{min-width:0}.brand span{min-width:0}.brand b{display:block;font-size:17px;font-weight:850;white-space:nowrap}.brand small{white-space:nowrap}
  :root[data-theme="dark"]{--mobile-bg:#090909;--mobile-card:#131313;--mobile-text:#f5f1e8;--mobile-muted:#aaa59b;--mobile-line:#302e29}
  :root[data-theme="dark"] body{background:#090909;color:var(--mobile-text)}
  :root[data-theme="dark"] .topbar{color:#f7f3ea;background:rgba(9,9,9,.97);border-color:#2b2925}
  :root[data-theme="dark"] .theme-toggle,:root[data-theme="dark"] .top-links a{color:#e4bf70;background:#141311;border-color:#3a342b}
  :root[data-theme="dark"] .hero-copy{color:#f7f3ea;background:radial-gradient(circle at 15% 0,rgba(216,173,85,.16),transparent 45%),#111}
  :root[data-theme="dark"] .hero-card,:root[data-theme="dark"] .opportunity-card,:root[data-theme="dark"] .steps article,:root[data-theme="dark"] .course-preview,:root[data-theme="dark"] .course-card,:root[data-theme="dark"] .results-wrap{color:var(--mobile-text);border-color:var(--mobile-line);background:#131313;box-shadow:0 12px 34px rgba(0,0,0,.28)}
  :root[data-theme="dark"] .stat,:root[data-theme="dark"] .price-line span,:root[data-theme="dark"] .opportunity-meta span{color:var(--mobile-muted);border-color:#302e29;background:#0d0d0d}
  :root[data-theme="dark"] .stat strong,:root[data-theme="dark"] .price-line b,:root[data-theme="dark"] .ticker{color:var(--mobile-text)}
  :root[data-theme="dark"] .card-reading,:root[data-theme="dark"] .update-note,:root[data-theme="dark"] .opportunity-card summary{color:var(--mobile-text);border-color:#4b3d27;background:#18150f}
  :root[data-theme="dark"] .card-reading p,:root[data-theme="dark"] .update-note span{color:#c3beb4}
  :root[data-theme="dark"] .contracts-block,:root[data-theme="dark"] .contract-line{color:var(--mobile-text);border-color:#302d27;background:#101010}
  :root[data-theme="dark"] .contracts-block h4{color:var(--gold2);background:#19150e}
  :root[data-theme="dark"] .contract-line b{color:var(--mobile-text)}
  :root[data-theme="dark"] .contract-line span{color:var(--mobile-muted)}
  :root[data-theme="dark"] .result-row{color:var(--mobile-text);border-color:#302e29}
  :root[data-theme="dark"] .result-row.header{color:var(--mobile-muted);background:#181818}
  :root[data-theme="dark"] .smartincome-ecosystem,:root[data-theme="dark"] .store-strip,:root[data-theme="dark"] .platform-link,:root[data-theme="dark"] .locked-state{color:var(--mobile-text);border-color:#4b3d27;background:#15120d}
  :root[data-theme="dark"] .mobile-nav{color:var(--mobile-text);border-color:#2d2b27;background:rgba(10,10,10,.97);box-shadow:0 -8px 28px rgba(0,0,0,.3)}
  :root[data-theme="dark"] .mobile-nav a,:root[data-theme="dark"] .mobile-nav button{color:#aaa59b}
  :root[data-theme="dark"] .mobile-nav span{color:#ddd7cd}
  :root[data-theme="dark"] .overview-page .pulse-card,:root[data-theme="dark"] .overview-page .overview-section,:root[data-theme="dark"] .courses-page .academy-card{color:var(--mobile-text);border-color:var(--mobile-line);background:#121212}
  :root[data-theme="dark"] .overview-page .panel-section:before{background:#0d0d0d;box-shadow:0 10px 30px rgba(0,0,0,.22)}
  :root[data-theme="dark"] .overview-page .overview-kpis article,:root[data-theme="dark"] .overview-page .criteria-grid article,:root[data-theme="dark"] .overview-page .reading-points article,:root[data-theme="dark"] .overview-page .risk-ladder article,:root[data-theme="dark"] .overview-page .access-cards article,:root[data-theme="dark"] .overview-page .flow-compare article{color:var(--mobile-text);border-color:var(--mobile-line);background:#141414;box-shadow:none}
  :root[data-theme="dark"] .overview-page .pulse-directions div{color:var(--mobile-text);border-color:var(--mobile-line);background:#0b0b0b}
  :root[data-theme="dark"] .overview-page .sample-card{color:var(--mobile-text);border-color:#4b3d27;background:#15120d}
  :root[data-theme="dark"] .overview-page .sample-prices span{color:var(--mobile-muted);background:#0a0a0a}
  :root[data-theme="dark"] .overview-page .flow-compare .bullish-side{background:rgba(50,168,115,.08)}
  :root[data-theme="dark"] .overview-page .flow-compare .bearish-side{background:rgba(219,104,104,.08)}
  :root[data-theme="dark"] .overview-page .signal-note{border-color:#4b3d27;background:rgba(216,173,85,.06)}
  :root[data-theme="dark"] .overview-page .signal-note p{color:#c4beb2}
}
