/* Light display theme. Loaded last so page-local dark accents are covered. */
html[data-theme="light"]{
 color-scheme:light;
 --bg:#f3f6fa;--panel:#ffffff;--panel2:#edf2f7;--line:#d4dee8;
 --text:#1a2c40;--muted:#52677e;--green:#087d58;--green2:#066847;
 --red:#bb3045;--gold:#8a610c;--blue:#2d63aa;--purple:#7551a2;
}
html[data-theme="light"] body{color:var(--text);background:var(--bg)}
html[data-theme="light"] :is(.sidebar,.topbar){background:#fff;border-color:var(--line)}
html[data-theme="light"] :is(.breadcrumb b,.brand strong,.section-label,.subhead){color:var(--text)}
html[data-theme="light"] :is(.nav-label,.side-nav a,.sidebar-foot p,.sidebar-foot small,.breadcrumb,.eyebrow){color:var(--muted)}
html[data-theme="light"] .side-nav a:hover{background:#eef3f7;color:var(--text)}
html[data-theme="light"] .side-nav a[aria-current]{background:#e4f3ec;color:#09694d;border-color:#b0d5c3}
html[data-theme="light"] :is(.nav-badge,.local-chip,.native-tag,.state-pill,.record-badge,.quote-tag,.strategy-tag,.validation){background:#e6f4ed;color:#126b4f;border-color:#bddccc}
html[data-theme="light"] :is(.avatar,.theme-toggle,.menu-toggle,.btn){background:#f5f8fb;color:#283f56;border-color:#becddb}
html[data-theme="light"] :is(.theme-toggle,.menu-toggle,.btn):hover{background:#e8f0f6;border-color:#87a2b7}
html[data-theme="light"] :is(.btn.primary,.save-button){background:#087d58;color:#fff;border-color:#087d58}
html[data-theme="light"] :is(.btn.primary,.save-button):hover{background:#066847;color:#fff;border-color:#066847}
html[data-theme="light"] .btn.ghost{background:transparent}
html[data-theme="light"] :is(input,select,textarea){background:#fff;color:var(--text);border-color:#b8c8d7}
html[data-theme="light"] :is(input,select,textarea):hover{border-color:#6f92ab}
html[data-theme="light"] :is(input,textarea)::placeholder{color:#697d91}
html[data-theme="light"] input::file-selector-button{background:#e7eef4;color:var(--text)}
html[data-theme="light"] label{color:#425b72}
html[data-theme="light"] .skip-link{color:#fff}
html[data-theme="light"] :is(.panel,.metric,.summary-card,.strategy-card,.algo-card,.native-metric,.monthly-stat){background:#fff;border-color:var(--line)}
html[data-theme="light"] :is(.run-area,.config-foot,.chart-footer,.panel-caption,.catalogue-note,.card-editor,.daily-axis,.daily-table thead,.native-subnav,.workflow){background:#f0f5f9;color:var(--muted);border-color:var(--line)}
html[data-theme="light"] :is(.algo-card.selected,.strategy-card.selected,.strategy-mode .btn[aria-pressed="true"],.batch-view .btn[aria-pressed="true"],.category-button[aria-pressed="true"],.native-subnav a[aria-current="page"]){background:#e5f3ec;color:#09694d;border-color:#9bc7b2}
html[data-theme="light"] .algo-card:hover{background:#f3f8f5;border-color:#8cb7a2}
html[data-theme="light"] .algo-icon{background:#e6f4ed}
html[data-theme="light"] .algo-card:nth-child(2) .algo-icon{background:#e8f0fc}
html[data-theme="light"] .algo-card:nth-child(3) .algo-icon{background:#f0eafa}
html[data-theme="light"] .algo-card:nth-child(4) .algo-icon{background:#fbf1d9}
html[data-theme="light"] .selection-circle{color:#fff;border-color:#9cb1bf}
html[data-theme="light"] :is(.algo-tag,.algo-card p,.algo-code,.file-meta,.unit-input span,.param-description,.helper,.batch-btn,.run-hint,.metric label,.metric label span,.metric-foot,.chart-legend,.segment-name,.segment-detail,.segment-empty,.segment-note,.research-note,.empty-table,.table-note,.table-caption,.tab,.footer,.chart-empty p,.empty-steps){color:var(--muted)}
html[data-theme="light"] :is(.research-note strong,.panel-caption strong){color:var(--text)}
html[data-theme="light"] :is(.dropzone,.upload-box){background:#edf8f2;border-color:#9ac3ac}
html[data-theme="light"] .dropzone.dragging{background:#dcefe3;border-color:var(--green)}
html[data-theme="light"] :is(.dropzone strong,.upload-box strong){color:#1c6047}
html[data-theme="light"] :is(.dropzone span,.upload-box small,.dropzone svg,.upload-box svg){color:#46715f}
html[data-theme="light"] .upload-box.secondary{background:#f0f5fb;border-color:#b5c9df}
html[data-theme="light"] .upload-box.secondary :is(svg,small){color:#526c8e}
html[data-theme="light"] :is(.empty-icon,.empty-steps b,.step-number,.section-label .ordinal){background:#e4f3eb;color:#186b4f;border-color:#bdd7c9}
html[data-theme="light"] .chart-empty{background:radial-gradient(ellipse at center,#f6fafce8 20%,#ffffff33 80%)}
html[data-theme="light"] :is(.chart-tooltip,.source-file,.result-details pre,.config-result pre){background:#f0f5fa;color:#334f68;border-color:#ccd9e5;box-shadow:none}
html[data-theme="light"] :is(th,.daily-table thead,.archive-table thead){background:#edf3f8;color:#425e78;border-color:var(--line)}
html[data-theme="light"] td{color:#2b455d;border-color:#e1e8ef}
html[data-theme="light"] :is(td .data-sub,.archive-table .sub,.row-sub){color:#5c7187}
html[data-theme="light"] :is(tbody tr.current,.archive-table .current){background:#e6f3ec}
html[data-theme="light"] tbody tr:hover{background:#f0f5f9}
html[data-theme="light"] :is(td button,.archive-table .view-report){background:#e5f3eb;color:#17694d;border-color:#b3d2c1}
html[data-theme="light"] :is(.error,.auto-job[data-state="failed"],.auto-job[data-state="interrupted"]){background:#fff0f0;color:#a42b3c;border-color:#e0a4ac}
html[data-theme="light"] :is(.warnings,.inline-warnings,.gold-badge,.state-pill.pending,.quote-tag.unavailable,.strategy-validation.candidate){background:#fff7e6;color:#805a0f;border-color:#dfc788}
html[data-theme="light"] :is(.native-intro,.research-entry){background:linear-gradient(110deg,#eaf4ec,#f6fafc);border-color:#bfd6c9}
html[data-theme="light"] :is(.native-intro strong,.step-name,.config-result h3,.result-empty strong,.auto-box h3,.launch-panel h2,.comparison-empty h2,.import-disclosure>summary){color:var(--text)}
html[data-theme="light"] :is(.native-intro p,.environment-label,.environment-detail,.step-copy,.config-result ol,.config-result details,.import-bottom p,.file-info,.clear-file,.result-heading p,.native-metric>span,.native-metric small,.graph-caption,.result-details,.result-details dt,.help-panel,.native-footer,.native-section-label,.monthly-note,.daily-note,.native-subnav a,.manual-config,.manual-config summary,.comparison-empty p,.strategy-selector legend,.strategy-preview>p:first-child){color:var(--muted)}
html[data-theme="light"] .native-intro .intro-label{color:var(--gold)}
html[data-theme="light"] .config-body input[readonly]{background:#fff8e9;color:#725014;border-color:#dfcea0}
html[data-theme="light"] :is(.metadata dt,.graph-empty,.graph-empty svg,.result-empty p){color:#5b738a}
html[data-theme="light"] :is(.metadata dd,.graph-empty strong,.result-details summary,.result-details dd,.help-panel summary){color:#29485f}
html[data-theme="light"] :is(.graph-empty,.native-graph,.strategy-choice,.strategy-preview){background:#f6f9fc;border-color:var(--line)}
html[data-theme="light"] :is(.auto-job,.launch-panel,.batch-basket){background:#edf7f1;border-color:#adcfbc;box-shadow:none}
html[data-theme="light"] :is(.launch-panel #auto-ready,.launch-panel .auto-result-link,.strategy-selector .helper a){color:#1c6a4e}
html[data-theme="light"] .monthly-track{background:#eaf0f5;border-color:#d1dce5}
html[data-theme="light"] .monthly-track:before{background:#7e93a7}
html[data-theme="light"] .monthly-bar{background:#1c926c}
html[data-theme="light"] .monthly-bar.loss{background:#ce5365}
html[data-theme="light"] .monthly-bar.zero{background:#778da0}
html[data-theme="light"] .native-subnav a:hover{background:#e7eff5;color:var(--text)}
html[data-theme="light"] .category-button{background:#f4f7fa;color:#425d73;border-color:#ccd8e2}
html[data-theme="light"] .category-button:hover{background:#e8f2ed;border-color:#a8c9b7;color:#1b6048}
html[data-theme="light"] :is(.category-count,.category-button[aria-pressed="true"] .category-count){color:#45745e}
html[data-theme="light"] :is(.summary-label,.summary-help,.category-label,.count,.strategy-description,.strategy-facts,.strategy-facts dt,.activity-note,.activity-note strong,.paused-mark,.note-label,.basket-help,.pick-strategy,.readiness,.readiness summary,details.card-editor>summary){color:var(--muted)}
html[data-theme="light"] :is(.summary-number,.group-heading,.strategy-name,.catalogue-note strong,.basket-title,.readiness strong){color:var(--text)}
html[data-theme="light"] .group-heading .group-count{color:#4c7561;border-color:#bdd3c6}
html[data-theme="light"] .strategy-validation{color:#536b82;border-color:#bfccda}
html[data-theme="light"] .prepare-progress{color:#1b674c;border-color:#bfd8ca}
html[data-theme="light"] .pick-strategy:has(input:disabled){color:#697b8d}
html[data-theme="light"] .readiness{background:#f0f5f8;border-color:#d0dce5}
html[data-theme="light"] .readiness[data-state="ready"]{border-color:#acd1bc}
html[data-theme="light"] :is(.readiness[data-state="blocked"],.readiness[data-state="compile_failed"]){background:#fffaef;border-color:#dac89f}
html[data-theme="light"] :is(.quote-values strong,.account-line span){color:var(--text)}
html[data-theme="light"] :is(.quote-time,.research-entry p,.reports-page .metric-label,.reports-page .metric-label span,.chart-hover,.report-method summary,.report-footer){color:var(--muted)}
/* Preserve positive/negative meaning even inside tables and page-local cards. */
html[data-theme="light"] .positive{color:var(--green)!important}
html[data-theme="light"] .negative,html[data-theme="light"] [data-error="true"]{color:var(--red)!important}
/* Native PNG/JPEG reports retain their original pixels. Only web SVGs adapt. */
html[data-theme="light"] svg text{fill:#526a81}
html[data-theme="light"] svg :is([stroke="#25303d"],[stroke="#263442"],[stroke="#293744"],[stroke="#202d3a"],[stroke="#23303d"],[stroke="#26313d"],[stroke="#293440"]){stroke:#d5e0e9}
html[data-theme="light"] svg :is([stroke="#8ce2bf"],[stroke="#8de0be"]){stroke:#087d58}
html[data-theme="light"] svg :is([fill="#8ce2bf"],[fill="#8de0be"]){fill:#087d58}
html[data-theme="light"] svg [fill="#f08f92"]{fill:#bb3045}
html[data-theme="light"] svg [stroke="#f08f92"]{stroke:#bb3045}
html[data-theme="light"] svg stop[stop-color="#8ce2bf"]{stop-color:#087d58}
