/* Breakout Lab color modes. Loaded last so every workspace shares one preference. */
html[data-theme="dark"]{color-scheme:dark;--ink:#e5f0f0;--muted:#9bafb7;--line:#2c414a;--bg:#0c161e;--mint:#1b433a;--green:#74daad;--nav:#10251f}
html[data-theme="light"]{color-scheme:light;--ink:#17372f;--muted:#6d8380;--line:#dbe7e3;--bg:#f4f8f6;--mint:#dcf3e8;--green:#157e61;--nav:#e5f1eb}
html[data-theme] body{background:var(--bg);color:var(--ink);transition:background .2s,color .2s}
html[data-theme] .topbar{background:var(--theme-topbar);border-bottom-color:var(--line)}
html[data-theme] .theme-control{display:flex;gap:2px;align-items:center;flex-shrink:0;background:var(--theme-switch-bg);border:1px solid var(--theme-switch-border);border-radius:99px;padding:3px;color:var(--theme-switch-text)}
html[data-theme] .theme-control>span{font-size:8px;letter-spacing:.9px;font-weight:800;padding:0 6px 0 9px;color:var(--theme-switch-muted)}
html[data-theme] .theme-control button{display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 10px;border:0;border-radius:99px;background:transparent;color:var(--theme-switch-text);font-size:10px;font-weight:700;line-height:1.3}
html[data-theme] .theme-control button>span{font-size:13px;line-height:1}
html[data-theme] .theme-control button.active{background:var(--theme-switch-selected);color:var(--theme-switch-selected-text);box-shadow:0 1px 7px #041e1420}
html[data-theme] .theme-control button:hover:not(.active){background:var(--theme-switch-hover)}
html[data-theme] .theme-control button:focus-visible{outline:2px solid #56b99b;outline-offset:3px}
html[data-theme="light"]{--theme-topbar:#ffffff;--theme-switch-bg:#edf5f1;--theme-switch-border:#d2e2da;--theme-switch-text:#466b5b;--theme-switch-muted:#7c998d;--theme-switch-selected:#ffffff;--theme-switch-selected-text:#195d43;--theme-switch-hover:#dfebe5}
html[data-theme="dark"]{--theme-topbar:#15212a;--theme-switch-bg:#22313b;--theme-switch-border:#344954;--theme-switch-text:#a6c0c2;--theme-switch-muted:#79939e;--theme-switch-selected:#376a59;--theme-switch-selected-text:#eafff1;--theme-switch-hover:#2d4551}
html[data-theme="dark"] .breadcrumb{color:#92abb6}html[data-theme="dark"] .breadcrumb strong{color:#d9e9e9}html[data-theme="dark"] .breadcrumb span{color:#637d87}
html[data-theme="dark"] .sample-badge{color:#9bb8a4}html[data-theme="dark"] .iconbtn{background:#263843;border-color:#405660;color:#c8ddde}
html[data-theme="dark"] .avatar{background:#294a43;color:#d1f5e5}
html[data-theme="light"] .sidebar{background:#e7f1eb;color:#214337;border-right:1px solid #cbdcd2}
html[data-theme="light"] .sidebar .brand{color:#214d3b}html[data-theme="light"] .sidebar .brandlight{color:#638978}
html[data-theme="light"] .sidebar .brand small{color:#67917c}html[data-theme="light"] .sidebar .workspace{color:#82998e}
html[data-theme="light"] .sidebar nav button{color:#567467}html[data-theme="light"] .sidebar nav button:hover{background:#d8e8de}
html[data-theme="light"] .sidebar nav button.active{background:#c5e6d6;color:#15583f}html[data-theme="light"] .sidebar nav em{background:#d1e3d7;color:#4d7765}
html[data-theme="light"] .side-note{border-top-color:#cbdcd2}html[data-theme="light"] .side-note h3{color:#315743}
html[data-theme="light"] .side-note p{color:#728d7f}html[data-theme="light"] .side-note button{color:#257154}
html[data-theme="light"] .profile{border-top-color:#d2e1d7;color:#2f5b48}html[data-theme="light"] .profile small{color:#83a191}
html[data-theme="light"] .theme-control>span{color:#779589}
html[data-theme="dark"] .theme-control>span{color:#8ea8b4}
@media(max-width:1040px){html[data-theme] .theme-control>span{display:none}}
@media(max-width:650px){html[data-theme] .theme-control{padding:2px}html[data-theme] .theme-control button{padding:6px 8px;gap:3px}html[data-theme] .theme-control button b{display:none}html[data-theme] .sample-badge{display:none}}

/* Dark mode: originally light Scanners, Intraday, Institutional Radar and utilities. */
html[data-theme="dark"] main:not(.discovery-redesign):not(.leadership-redesign){background:#0c161e;color:#e5f0f1}
html[data-theme="dark"] .panel,html[data-theme="dark"] .pulse,html[data-theme="dark"] .scan-card,html[data-theme="dark"] .guide-card,html[data-theme="dark"] .view-intro,html[data-theme="dark"] .risk-capital{background:#17242e;border-color:#30444c;color:#e2eef0}
html[data-theme="dark"] .panel-head,html[data-theme="dark"] .toolbar,html[data-theme="dark"] .detail-tabs,html[data-theme="dark"] .table-wrap,html[data-theme="dark"] .stock-head,html[data-theme="dark"] .chart-workspace-toolbar{border-color:#314650}
html[data-theme="dark"] .scan-card:hover,html[data-theme="dark"] tbody tr:hover{background:#203a36}html[data-theme="dark"] .scan-card.selected,html[data-theme="dark"] tbody tr.chosen{background:#254a3d;border-color:#5fba90}
html[data-theme="dark"] .scan-card,.theme-control{transition:background .16s,border-color .16s}
html[data-theme="dark"] .scan-icon,html[data-theme="dark"] .stock-logo,html[data-theme="dark"] .count-pill,html[data-theme="dark"] .vol,html[data-theme="dark"] .seg.active{background:#284638;color:#a7e6bf;border-color:#3a614e}
html[data-theme="dark"] .scan-desc,html[data-theme="dark"] .metric-foot,html[data-theme="dark"] .metric-label,html[data-theme="dark"] .sectiontitle p,html[data-theme="dark"] .guide-card p,html[data-theme="dark"] .guide-card ol,html[data-theme="dark"] .stock-id small,html[data-theme="dark"] td small,html[data-theme="dark"] .note-help,html[data-theme="dark"] .guide-meta{color:#91a9ad}
html[data-theme="dark"] .btn,html[data-theme="dark"] select,html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] .notes-input{background:#20313b;border-color:#3c525d;color:#d8ecec}
html[data-theme="dark"] .btn:hover:not(:disabled){background:#2b4851}html[data-theme="dark"] .btn.primary{background:#46b889;border-color:#46b889;color:#102b21}
html[data-theme="dark"] .search input{background:#1d2e37;border-color:#3b5159;color:#e6f2f2}
html[data-theme="dark"] th{background:#1c2b36;color:#9cb2bc;border-bottom-color:#354954}html[data-theme="dark"] td{border-bottom-color:#2b4049;color:#d8e9ec}
html[data-theme="dark"] .demo-note{background:#27382f;border-color:#455b45;color:#b6cfb6}html[data-theme="dark"] .demo-note b{color:#dfebd4}
html[data-theme="dark"] .view-intro p,html[data-theme="dark"] .rule,html[data-theme="dark"] .modal-content p{color:#a3b8b4}
html[data-theme="dark"] .rule .tick,.theme-dark .badge{background:#29473e;color:#89dbac}
html[data-theme="dark"] .empty{color:#9fb4b6}html[data-theme="dark"] .empty h3{color:#dde9ed}
html[data-theme="dark"] .calc-results,html[data-theme="dark"] .chart-tooltip{background:#233b35;color:#c7e6d4;border-color:#426052}
html[data-theme="dark"] .chart-label,html[data-theme="dark"] .legend,html[data-theme="dark"] .detail-tabs button,html[data-theme="dark"] .table-foot{color:#95adae}
html[data-theme="dark"] .detail-tabs button.active{color:#9ce7bd}html[data-theme="dark"] .stock-price{color:#ecf5f2}
html[data-theme="dark"] dialog:not(.ml-drawer){background:#17252f;color:#e6f0f1;border-color:#40525d}
html[data-theme="dark"] dialog .modal-content input,html[data-theme="dark"] dialog .modal-content select,html[data-theme="dark"] dialog .modal-content textarea{background:#213540;border-color:#455e64;color:#eef4f4}
html[data-theme="dark"] dialog .modal-head,html[data-theme="dark"] dialog .chart-modal-head{border-color:#344b55}
html[data-theme="dark"] .chart-workspace-toolbar,html[data-theme="dark"] .chart-data-strip,html[data-theme="dark"] .native-chart-toolbar,html[data-theme="dark"] .chart-annotation-tools{background:#1b2b36;color:#b4c9c9}
html[data-theme="dark"] #nativeChart,html[data-theme="dark"] .linked-chart-grid>div,html[data-theme="dark"] .linked-chart-grid{background:#17252f}
html[data-theme="dark"] .toast{background:#285b48}

/* Intraday: contrast and surfaces in the global dark mode. */
html[data-theme="dark"] .it-page{color:#dce9eb}
html[data-theme="dark"] .it-market-strip,html[data-theme="dark"] .it-scanner,html[data-theme="dark"] .it-inspector{background:#172630;border-color:#344750;box-shadow:none}
html[data-theme="dark"] .it-market-cell,html[data-theme="dark"] .it-price-strip,html[data-theme="dark"] .it-price-strip>div{border-color:#30434d}
html[data-theme="dark"] .it-market-cell>strong,html[data-theme="dark"] .it-scanner-heading h2,html[data-theme="dark"] .it-inspector-head h2,html[data-theme="dark"] .it-section-head h3,html[data-theme="dark"] .it-price-strip b,html[data-theme="dark"] .it-detail-quickfacts b,html[data-theme="dark"] .it-score>b,html[data-theme="dark"] .it-price{color:#e0f1ec}
html[data-theme="dark"] .it-market-cell>span,html[data-theme="dark"] .it-market-cell>small,html[data-theme="dark"] .it-inspector-head h2 small,html[data-theme="dark"] .it-chart-caption,html[data-theme="dark"] .it-detail-quickfacts span{color:#91aaad}
html[data-theme="dark"] .it-source-chip,html[data-theme="dark"] .it-filter-pills button,html[data-theme="dark"] .it-search-label,html[data-theme="dark"] .it-filter-bar select,html[data-theme="dark"] .it-view-btn,html[data-theme="dark"] .it-scan-footer button,html[data-theme="dark"] .it-expand,html[data-theme="dark"] .it-overlays button{background:#20333c;border-color:#39545b;color:#bbd4d0}
html[data-theme="dark"] .it-filter-pills button.selected,html[data-theme="dark"] .it-overlays button.on{background:#28604d;border-color:#459c75;color:#d8ffeb}
html[data-theme="dark"] .it-search-label input{background:transparent;color:#e0efeb}
html[data-theme="dark"] .it-table th{background:#1d343e;color:#9cb4bc;border-color:#39515a}
html[data-theme="dark"] .it-table td{color:#bdd1d2;border-color:#2c444d}
html[data-theme="dark"] .it-table tbody tr:hover td{background:#203a3e}html[data-theme="dark"] .it-table tbody tr.is-selected td{background:#245044}
html[data-theme="dark"] .it-table td small,html[data-theme="dark"] .it-scan-footer,html[data-theme="dark"] .it-chart-legend{color:#99aeb7}
html[data-theme="dark"] .it-ticker{color:#83dcaf}html[data-theme="dark"] .it-score i{background:#344a52}
html[data-theme="dark"] .it-chart-wrap,html[data-theme="dark"] .it-chart-tools,html[data-theme="dark"] .it-scan-footer,html[data-theme="dark"] .it-expanded-shell header,html[data-theme="dark"] .it-expanded-shell>p{background:#1b2c36;border-color:#334c56}
html[data-theme="dark"] .it-detail-quickfacts>div,html[data-theme="dark"] .it-level-note,html[data-theme="dark"] .it-disclosure,html[data-theme="dark"] .it-score-chip{background:#203b36;border-color:#3f5a51;color:#bcd6c8}
html[data-theme="dark"] .it-level-note b,html[data-theme="dark"] .it-decision-primary,html[data-theme="dark"] .it-evidence-item b{color:#bbe9cd}
html[data-theme="dark"] .it-inspector-empty{background:radial-gradient(circle at 55% 5%,#264b41,#172630 65%)}
html[data-theme="dark"] .it-inspector-empty h3,html[data-theme="dark"] .it-empty-results b{color:#d3ede1}
html[data-theme="dark"] .it-empty-chart-icon{background:#234239;border-color:#41665a;color:#95d1b0}
html[data-theme="dark"] .it-expanded-shell header h2{color:#e3f4ee}

/* Institutional Radar: dark data tables, research cards and right drawer. */
html[data-theme="dark"] .fund-study-grid article:not(.fund-study-hero),html[data-theme="dark"] .fund-impact-grid article,html[data-theme="dark"] .fund-v5-dossier,html[data-theme="dark"] .fund-audit-kpis>div,html[data-theme="dark"] .fund-mini-stats>div,html[data-theme="dark"] .fund-drawer-grid>div{background:#1b2d35;border-color:#38525a;color:#dbecee}
html[data-theme="dark"] .fund-study-grid h3,html[data-theme="dark"] .fund-impact-grid h3,html[data-theme="dark"] .fund-table td strong{color:#e2f2ed}
html[data-theme="dark"] .fund-study-grid p,html[data-theme="dark"] .fund-study-grid small,html[data-theme="dark"] .fund-impact-grid p,html[data-theme="dark"] .fund-table-footnote{color:#9aafae}
html[data-theme="dark"] .fund-table-toolbar,html[data-theme="dark"] .fund-compact-tabs,html[data-theme="dark"] .fund-result-context{background:#1b2c35;border-color:#314952;color:#c3dcdb}
html[data-theme="dark"] .fund-table th{background:#1c313b;color:#9db6bc}html[data-theme="dark"] .fund-table td{background:#172630;border-color:#304550;color:#dcebee}
html[data-theme="dark"] .fund-table tbody tr:hover td{background:#24423b}
html[data-theme="dark"] dialog.fund-drawer{background:#182630;color:#e1eff1;border-color:#3b525e}
html[data-theme="dark"] .fund-drawer-header,html[data-theme="dark"] .fund-drawer-section,html[data-theme="dark"] .fund-drawer-more{background:#1b3038;border-color:#3c555c}
html[data-theme="dark"] .fund-drawer-fact,html[data-theme="dark"] .fund-drawer-metric,html[data-theme="dark"] .fund-drawer-holding{background:#223740;border-color:#3a515c;color:#d6e6e9}

/* Discovery Desk: a complete light treatment, with the same dense information hierarchy. */
html[data-theme="light"] #main.discovery-redesign{background:#f3f7f6;color:#1b3935}
html[data-theme="light"] .dd-page{--dd-ink:#203b39;--dd-muted:#6c858b;--dd-line:#dce7e5;--dd-bg:#fff;--dd-surface:#f5faf8;--dd-green:#117c57;--dd-blue:#206eb2;--dd-amber:#a96817;--dd-red:#b84c4f;color:#23443f}
html[data-theme="light"] .dd-overline,html[data-theme="light"] .dd-top-meta,html[data-theme="light"] .dd-asof,html[data-theme="light"] .dd-sort-label,html[data-theme="light"] .dd-footer{color:#647f82}
html[data-theme="light"] .dd-hero-copy{background:radial-gradient(ellipse at 85% 10%,#dbf4e7 0,transparent 55%),linear-gradient(120deg,#fff,#f1faf5 75%,#e6f4ef);border-color:#d2e6dd;box-shadow:0 10px 27px #123d2b09}
html[data-theme="light"] .dd-hero-copy:before{border-color:#77b69e35;box-shadow:0 0 0 55px #71ad940e,0 0 0 110px #71ad9409}
html[data-theme="light"] .dd-hero-label,html[data-theme="light"] .dd-section-title .dd-overline,html[data-theme="light"] .dd-workspace-header .dd-overline{color:#147c57}
html[data-theme="light"] .dd-hero h1,html[data-theme="light"] .dd-section-title h2,html[data-theme="light"] .dd-workspace-header h2{color:#173d35}
html[data-theme="light"] .dd-hero h1 em,html[data-theme="light"] .dd-heading-accent{color:#16845b}
html[data-theme="light"] .dd-hero-copy>p,html[data-theme="light"] .dd-section-title p,html[data-theme="light"] .dd-workspace-header p{color:#698381}
html[data-theme="light"] .dd-btn{background:#fff;color:#28534b;border-color:#c8ded5}
html[data-theme="light"] .dd-btn:hover:not(:disabled){background:#e9f7f0;border-color:#80b49f}
html[data-theme="light"] .dd-btn-primary{background:#147a53;color:#fff;border-color:#147a53}
html[data-theme="light"] .dd-btn-primary:hover:not(:disabled){background:#116342;color:#fff;border-color:#116342}
html[data-theme="light"] .dd-channel{background:#e9f5ee;border-color:#c7e1d3}
html[data-theme="light"] .dd-channel>span,html[data-theme="light"] .dd-channel button{color:#52786c}
html[data-theme="light"] .dd-channel button.active{background:#147a53;color:#fff;box-shadow:0 2px 6px #194b2b21}
html[data-theme="light"] .dd-channel button:hover:not(.active){color:#126c4c;background:#d7ebdf}
html[data-theme="light"] .dd-hero-brief{background:linear-gradient(140deg,#fff,#f0f8f5);border-color:#d7e7e0;box-shadow:0 9px 25px #123d2b07}
html[data-theme="light"] .dd-brief-eyebrow,html[data-theme="light"] .dd-brief-value>span,html[data-theme="light"] .dd-brief-breakdown span,html[data-theme="light"] .dd-brief-progress>div:first-child{color:#69847f}
html[data-theme="light"] .dd-brief-value,html[data-theme="light"] .dd-brief-breakdown b{color:#1c413b}
html[data-theme="light"] .dd-brief-breakdown>div,html[data-theme="light"] .dd-brief-progress,html[data-theme="light"] .dd-regime{border-color:#d8e7e2}
html[data-theme="light"] .dd-brief-progress strong,html[data-theme="light"] .dd-regime strong{color:#147b56}
html[data-theme="light"] .dd-track{background:#dbede6}
html[data-theme="light"] .dd-regime>span,html[data-theme="light"] .dd-stat>span,html[data-theme="light"] .dd-stat small{color:#6e8886}
html[data-theme="light"] .dd-stat{background:#fff;border-color:#dde8e4;box-shadow:0 4px 17px #133f3208}
html[data-theme="light"] .dd-stat strong{color:#183c36}
html[data-theme="light"] .dd-stat.green strong{color:#17815a}
html[data-theme="light"] .dd-stat.blue strong{color:#2677b6}
html[data-theme="light"] .dd-stat.amber strong{color:#aa6d27}
html[data-theme="light"] .dd-quick-card{background:linear-gradient(160deg,#fff,#f9fcfa);border-color:#d9e7e1;color:#24463f;box-shadow:0 4px 13px #183d3106}
html[data-theme="light"] .dd-quick-card:hover{background:#eff9f4;border-color:#7eb8a1;box-shadow:0 10px 20px #254d3616}
html[data-theme="light"] .dd-quick-main strong,html[data-theme="light"] .dd-quick-bottom{color:#23443f}
html[data-theme="light"] .dd-quick-number,html[data-theme="light"] .dd-quick-main small,html[data-theme="light"] .dd-quick-reason,html[data-theme="light"] .dd-score small{color:#6e8886}
html[data-theme="light"] .dd-quick-bottom{border-color:#dce9e3}
html[data-theme="light"] .dd-score{color:#647f7e}
html[data-theme="light"] .dd-score-high{color:#17845a}
html[data-theme="light"] .dd-score-mid{color:#b07723}
html[data-theme="light"] .dd-quick-empty{background:#fff;border-color:#c8ded5}
html[data-theme="light"] .dd-quick-empty b{color:#274941}
html[data-theme="light"] .dd-workspace{background:#fff;border-color:#d4e4dd;box-shadow:0 9px 30px #163c2b0b}
html[data-theme="light"] .dd-workspace-header,html[data-theme="light"] .dd-table-side,html[data-theme="light"] .dd-tabs,html[data-theme="light"] .dd-table-bottom,html[data-theme="light"] .dd-chart-toolbar,html[data-theme="light"] .dd-chart-foot{border-color:#dce8e3}
html[data-theme="light"] .dd-workspace-header h2>span{background:#e7f4eb;color:#227751;border-color:#c8e0d0}
html[data-theme="light"] .dd-quality-check,html[data-theme="light"] .dd-table-bottom{color:#6f8482}
html[data-theme="light"] .dd-tabs button{color:#617b7b}
html[data-theme="light"] .dd-tabs button:hover{color:#196c50}
html[data-theme="light"] .dd-tabs button.active{color:#127c55;border-bottom-color:#168c64}
html[data-theme="light"] .dd-tabs button span{color:#77918b}
html[data-theme="light"] .dd-table-controls{background:#f5f9f7}
html[data-theme="light"] .dd-search,html[data-theme="light"] .dd-sort-label select{background:#fff;border-color:#cfdfd8;color:#315d50}
html[data-theme="light"] .dd-search input{color:#173f36}
html[data-theme="light"] .dd-search input::placeholder{color:#829b92}
html[data-theme="light"] .dd-table thead,html[data-theme="light"] .dd-page .dd-table thead th{background:#eaf3ee!important;color:#53746b!important;border-color:#d6e5df!important}
html[data-theme="light"] .dd-table td{color:#3f615b;border-color:#e3ede8}
html[data-theme="light"] .dd-table tbody tr:hover{background:#eff9f4}
html[data-theme="light"] .dd-table tbody tr.selected{background:#e5f5ed;box-shadow:inset 3px 0 #1b9668}
html[data-theme="light"] .dd-table .dd-stock-cell strong,html[data-theme="light"] .dd-table .dd-num strong{color:#21463d}
html[data-theme="light"] .dd-table .dd-stock-cell small,html[data-theme="light"] .dd-table-note,html[data-theme="light"] .dd-table .dd-num small{color:#728c87}
html[data-theme="light"] .dd-table .dd-num.up strong,html[data-theme="light"] .dd-table .up{color:#0b8259}
html[data-theme="light"] .dd-table .dd-num.down strong,html[data-theme="light"] .dd-table .down{color:#bc5355}
html[data-theme="light"] .dd-open-stock{background:#e5f4eb;color:#16734e;border-color:#b6d9c5}
html[data-theme="light"] .dd-table-bottom button{background:#fff;color:#31584d;border-color:#cfdfd8}
html[data-theme="light"] .dd-inspector{background:#fbfdfb;border-left:1px solid #e2ebe5}
html[data-theme="light"] .dd-inspector-head h3,html[data-theme="light"] .dd-inspector-price strong,html[data-theme="light"] .dd-inspector-empty h3{color:#21443c}
html[data-theme="light"] .dd-inspector-head p,html[data-theme="light"] .dd-inspector-price small{color:#728b85}
html[data-theme="light"] .dd-chart{background:#fff}
html[data-theme="light"] .dd-chart-legend,html[data-theme="light"] .dd-chart-foot,html[data-theme="light"] .dd-chart-loading,html[data-theme="light"] .dd-chart-unavailable{color:#758d89}
html[data-theme="light"] .dd-chart-switch{background:#eaf3ee}
html[data-theme="light"] .dd-chart-switch button{color:#5c7e72}
html[data-theme="light"] .dd-chart-switch button.active{background:#cce9d9;color:#126b4b}
html[data-theme="light"] .dd-inspector-numbers{border-color:#d8e7e0}
html[data-theme="light"] .dd-inspector-numbers>div{background:#f4faf7;border-color:#d8e7e0}
html[data-theme="light"] .dd-inspector-numbers small,html[data-theme="light"] .dd-evidence-block li,html[data-theme="light"] .dd-evidence-block p,html[data-theme="light"] .dd-inspector-provenance{color:#6c8680}
html[data-theme="light"] .dd-inspector-numbers b,html[data-theme="light"] .dd-list-heading{color:#24473f}
html[data-theme="light"] .dd-inspector-numbers b.up{color:#14845b}
html[data-theme="light"] .dd-inspector-provenance{border-color:#dce9e3}

/* Market Leadership: bright executive research dashboard, readable quadrant & drawer. */
html[data-theme="light"] #main.leadership-redesign{background:#f3f7f6;color:#223e39}
html[data-theme="light"] #main.leadership-redesign .ml-page{color:#24473f;--ml-line:#dce7e1;--ml-mut:#6f8584;--ml-green:#167e55;--ml-red:#bd5558;--ml-amber:#ae762a;--ml-blue:#367ab2}
html[data-theme="light"] .ml-overline,html[data-theme="light"] .ml-section-meta{color:#637f79}
html[data-theme="light"] .ml-hero{background:radial-gradient(ellipse at 65% -40%,#d1eedf 0,transparent 62%),linear-gradient(120deg,#fff,#eff9f3 77%,#eaf3f6);border-color:#d3e6dd;box-shadow:0 10px 25px #173e2909}
html[data-theme="light"] .ml-hero:before{border-color:#63a58b35;box-shadow:0 0 0 50px #63a58b10,0 0 0 100px #63a58b07}
html[data-theme="light"] .ml-hero .ml-overline{color:#13754d}
html[data-theme="light"] .ml-hero h1{color:#1b4034}
html[data-theme="light"] .ml-hero h1 em{color:#16805a}
html[data-theme="light"] .ml-hero p{color:#648078}
html[data-theme="light"] .ml-hero-side{background:#ffffffe0;border-color:#cfdfd5;box-shadow:0 9px 22px #123f2b0a}
html[data-theme="light"] .ml-hs-title,html[data-theme="light"] .ml-hero-meta span,html[data-theme="light"] .ml-hero-side>p{color:#6b857b}
html[data-theme="light"] .ml-hero-side>strong,html[data-theme="light"] .ml-hero-meta b{color:#184532}
html[data-theme="light"] .ml-delayed{background:#e2f2e8;color:#2b6b4f}
html[data-theme="light"] .ml-hero-divider{background:#dce7df}
html[data-theme="light"] .ml-button{background:#fff;color:#265247;border-color:#c8dbd2}
html[data-theme="light"] .ml-button:hover{background:#eaf5ef;border-color:#86ae9d}
html[data-theme="light"] .ml-button.ml-primary{background:#167c54;color:#fff;border-color:#167c54}
html[data-theme="light"] .ml-button.ml-primary:hover{background:#106942;color:#fff}
html[data-theme="light"] .ml-section-head h2,html[data-theme="light"] .ml-panel-top h2,html[data-theme="light"] .ml-list-head h2,html[data-theme="light"] .ml-notes h2{color:#1e4139}
html[data-theme="light"] .ml-metric{background:#fff;border-color:#dae6e1;box-shadow:0 4px 16px #22452d07}
html[data-theme="light"] .ml-metric-title{color:#496f65}
html[data-theme="light"] .ml-metric small{color:#728d85}
html[data-theme="light"] .ml-panel{background:#fff;border-color:#d6e4de;box-shadow:0 5px 19px #1a40300a}
html[data-theme="light"] .ml-panel-top p,html[data-theme="light"] .ml-list-head p,html[data-theme="light"] .ml-mini-legend{color:#6a837b}
html[data-theme="light"] .ml-side-rank{background:#f8fbf9;border-color:#dbe8e1}
html[data-theme="light"] .ml-rank-top h3{color:#254e42}
html[data-theme="light"] .ml-rank-top p,html[data-theme="light"] .ml-rank-cols,html[data-theme="light"] .ml-rank-no,html[data-theme="light"] .ml-rank-identity small{color:#738d86}
html[data-theme="light"] .ml-page select,html[data-theme="light"] .ml-page input{background:#fff;border-color:#cadcd2;color:#264b42}
html[data-theme="light"] .ml-rank-cols,html[data-theme="light"] .ml-rank-row{border-color:#e0eae5}
html[data-theme="light"] .ml-rank-row{color:#31564c}
html[data-theme="light"] .ml-rank-row:hover,html[data-theme="light"] .ml-rank-row.selected{background:#e7f5ec}
html[data-theme="light"] .ml-rank-identity b{color:#20483b}
html[data-theme="light"] .ml-map-pane{background:radial-gradient(ellipse at 55% 48%,#eaf6f1,#fff 73%)}
html[data-theme="light"] .ml-map-heading b,html[data-theme="light"] .ml-map-footer b{color:#315c4e}
html[data-theme="light"] .ml-map-heading small,html[data-theme="light"] .ml-map-footer{color:#758e86}
html[data-theme="light"] .ml-dataset-tag{background:#e8f5ef;border-color:#cfe5da;color:#237a56}
html[data-theme="light"] .ml-map-label,html[data-theme="light"] .ml-chart-axis,html[data-theme="light"] .ml-zero{fill:#637e86}
html[data-theme="light"] .ml-map-point:hover circle:nth-child(2),html[data-theme="light"] .ml-map-point.selected circle:nth-child(2){stroke:#174a34}
html[data-theme="light"] .ml-data-strip{background:#f4f9f5;border-color:#dbe7e1;color:#718982}
html[data-theme="light"] .ml-data-strip button,html[data-theme="light"] .ml-text-action{color:#147b54}
html[data-theme="light"] .ml-switch,html[data-theme="light"] .ml-time-controls{background:#ebf3ee}
html[data-theme="light"] .ml-switch button,html[data-theme="light"] .ml-time-controls button{color:#6a8279}
html[data-theme="light"] .ml-switch button.active,html[data-theme="light"] .ml-time-controls button.active{background:#158256;color:#fff}
html[data-theme="light"] .ml-list-item,html[data-theme="light"] .ml-stock-row{color:#264a3e;border-color:#e3ede7}
html[data-theme="light"] .ml-list-item:hover,html[data-theme="light"] .ml-stock-row:hover{background:#eff8f2}
html[data-theme="light"] .ml-list-item-name small,html[data-theme="light"] .ml-list-num small,html[data-theme="light"] .ml-stock-row small{color:#788d85}
html[data-theme="light"] .ml-chip{background:#f6faf8;border-color:#d6e6de;color:#50776a}
html[data-theme="light"] .ml-chip:hover{background:#eaf6ef}
html[data-theme="light"] .ml-chip.active{background:#e3f4e9;border-color:#a8d1bd;color:#176e4e}
html[data-theme="light"] .ml-chart-title b{color:#20433a}
html[data-theme="light"] .ml-chart-title span:not(.ml-dataset-tag),html[data-theme="light"] .ml-chart-legend span,html[data-theme="light"] .ml-chart-caption,html[data-theme="light"] .ml-card-footer{color:#738980}
html[data-theme="light"] .ml-card-footer{border-color:#dbe6e0}
html[data-theme="light"] .ml-notes{background:radial-gradient(ellipse at 90% 0%,#d8f1e5,#fff 65%)}
html[data-theme="light"] .ml-notes strong{color:#23483c}
html[data-theme="light"] .ml-notes small,html[data-theme="light"] .ml-note-line,html[data-theme="light"] .ml-footer{color:#718981}
html[data-theme="light"] .ml-notes h2 em{color:#178358}
html[data-theme="light"] .ml-empty{color:#637d76}

html[data-theme="light"] dialog.ml-drawer{background:#fcfefc;color:#264339;box-shadow:-20px 0 90px #133b302d}
html[data-theme="light"] .ml-drawer-head{background:#eff8f3;border-color:#d7e8dd}
html[data-theme="light"] .ml-drawer-head h2,html[data-theme="light"] .ml-drawer-section-title h3{color:#20473b}
html[data-theme="light"] .ml-drawer-sub,html[data-theme="light"] .ml-drawer-explain,html[data-theme="light"] .ml-member-note,html[data-theme="light"] .ml-drawer-foot{color:#728b84}
html[data-theme="light"] .ml-close{background:#fff;border-color:#cbded4;color:#254b3f}
html[data-theme="light"] .ml-close:hover{background:#e2f2e8}
html[data-theme="light"] .ml-drawer-prime>div{background:linear-gradient(135deg,#f5faf7,#eaf5ef);border-color:#d2e5d8}
html[data-theme="light"] .ml-drawer-prime span,html[data-theme="light"] .ml-drawer-grid small,html[data-theme="light"] .ml-participation small{color:#69847b}
html[data-theme="light"] .ml-drawer-prime b{color:#1d4739}
html[data-theme="light"] .ml-drawer-section,html[data-theme="light"] .ml-member-row{border-color:#dce8e2}
html[data-theme="light"] .ml-drawer-grid>div,html[data-theme="light"] .ml-participation>div{background:#f5faf7;border-color:#d9e9de}
html[data-theme="light"] .ml-drawer-grid b,html[data-theme="light"] .ml-participation b,html[data-theme="light"] .ml-member-row b{color:#214d3e}
html[data-theme="light"] .ml-drawer .pos{color:#138057}
html[data-theme="light"] .ml-drawer .neg{color:#bd5154}
html[data-theme="light"] .ml-member-row>button{background:#e7f5eb;color:#16704d;border-color:#b9d8c5}
html[data-theme="light"] .ml-member-progress>div{background:#dfede5}

/* Finish dark-mode details across legacy cards, search controls and Radar. */
html[data-theme="dark"] .strategy-search{background:#1c2e38;border-color:#3a5360;color:#b6cdcc}
html[data-theme="dark"] .strategy-search input{background:transparent;border-color:transparent;color:#e1ecec}
html[data-theme="dark"] .strategy-search input::placeholder{color:#94abae}
html[data-theme="dark"] .scan-name,html[data-theme="dark"] .scan-count,html[data-theme="dark"] .scan-trader,html[data-theme="dark"] .scan-select-hint{color:#e0eeea}
html[data-theme="dark"] .scan-card .scan-type-label,html[data-theme="dark"] .scan-card .scan-timeframe{color:#9eb8b3}
html[data-theme="dark"] .scan-card.selected .scan-icon{background:#35664f;color:#d0ffdc}
html[data-theme="dark"] .catalog-tabs .btn:not(.primary){background:#20313b;border-color:#3c535b;color:#c8dce0}
html[data-theme="dark"] .fund-mini-stats{background:#1b2e37;border-color:#405860}
html[data-theme="dark"] .fund-mini-stats>div{border-color:#3d515c}
html[data-theme="dark"] .fund-mini-stats b,html[data-theme="dark"] .fund-mini-stats b small{color:#def0e9}
html[data-theme="dark"] .fund-mini-stats span,html[data-theme="dark"] .fund-compact-head .subtitle{color:#adc3bf}
html[data-theme="dark"] .fund-compact-tabs button{background:#22353e;border-color:#40565c;color:#bdd6d0}
html[data-theme="dark"] .fund-compact-tabs button.active{background:#2a6048;border-color:#48936a;color:#e0f7e6}
html[data-theme="dark"] .fund-table-first{border-color:#3a525b}
html[data-theme="dark"] .fund-table-first .fund-table-scroll{border-color:#344a54}
html[data-theme="dark"] .fund-table-first .fund-table th{background:#1d323e;color:#afc7cc;border-color:#3d545d}
html[data-theme="dark"] .fund-table-first .fund-table td,html[data-theme="dark"] .fund-table-first .fund-table tr:hover td{border-color:#344a55}
html[data-theme="dark"] .fund-table-first .fund-table tr:hover td{background:#24413c}
html[data-theme="dark"] .fund-table-first .fund-table td:first-child b{color:#d6f0e3}
html[data-theme="dark"] .fund-table-footnote{background:#1e323b;border-color:#39505a;color:#a2bab6}
html[data-theme="dark"] .fund-donchian-pill{background:#213741;border-color:#425e65;color:#bad5cf}
html[data-theme="dark"] .fund-inspect{background:#204636!important;border-color:#508a65!important;color:#d7f3dd!important}
html[data-theme="dark"] .fund-inspect:hover{background:#306749!important}
html[data-theme="dark"] .fund-table-first .fund-quality-score,html[data-theme="dark"] .fund-table-first .fund-combined-score{color:#d5ece0}
html[data-theme="dark"] .fund-drawer-header,html[data-theme="dark"] .fund-drawer-hero{background:#1b3039}
html[data-theme="dark"] .fund-drawer-hero strong,html[data-theme="dark"] .fund-drawer-section-title h3{color:#e2f2ed}
html[data-theme="dark"] .fund-drawer-close{background:#2a414c;color:#e0eded;border-color:#526871}
html[data-theme="dark"] .fund-drawer-body,html[data-theme="dark"] .fund-drawer-sub{color:#bbd0ca}
