/* V4.79.7 -- opt-in daylight theme. Scoped: never changes original dark theme. */
html[data-theme="daylight"]{
  color-scheme:light;
  --ink:#172b3b;--muted:#536a7d;--line:#cedbe4;--bg:#f3f7fb;--card:#fff;
  --org-bg:#edf4f9;--org-card:#fff;--org-line:#c6d7e5;--org-fg:#173047;--org-muted:#556c7e;--org-accent:#096881;
  --wg-bg:#f3f7fb;--wg-surface:#fff;--wg-soft:#ecf3f9;--wg-text:#172b3b;--wg-muted:#567083;--wg-line:#c9d8e5;--wg-green:#147f99;--wg-green-hover:#09677d;--wg-green-soft:#dceef4;
  --warm-bg:#f3f7fb;--warm-card:#fff;--warm-line:#cbdbe6;--warm-text:#172b3b;--warm-muted:#52697b;--warm-green:#177b94;--warm-green-dark:#0b647b;--warm-green-soft:#e1f0f5;
}
html[data-theme="daylight"],html[data-theme="daylight"] body{background:#f3f7fb!important;color:#1a3044!important;background-image:none!important}
html[data-theme="daylight"] :is(.top,.footer){color:#3e576a!important;border-color:#cbdbe6!important}
html[data-theme="daylight"] .brand,html[data-theme="daylight"] :is(h1,h2,h3,h4,h5,h6,strong,.heading h2,.operation-head h2){color:#162c40!important}
html[data-theme="daylight"] .brand small,html[data-theme="daylight"] :is(.info,.meta,.eyebrow,.labnote,.advnote,.daily-hint,.shape-hint,.footer,.fb-note,.operation-note,.fs-compare-note){color:#4f6578!important}
html[data-theme="daylight"] :is(.panel,.operation-center,.operation-card,.historyfold,details,.historyfold-content,.position-omission,.omission-ranking,.position-blindspot-panel,.sum-rule-panel,.sum-choice-panel,.shape-filters,.shape-grid,.customrules,.filterstats,.windowstats,.backtest-lab,.backtest-metrics,.backtest-metric,.detailcell,.filterstat,.statbox,.pair-history-scroll,.fm-content,.fm-scroll,.fm-test,.fm-metrics>div,.backup-tools,.data-integrity,.daily-panel,.advdetails,#sumRulePanel,#sumChoicePanel,#shapeFilters,#historyFold,#positionBlindspotPanel,#calculator,#trend,#results,#fullstats,#simulator,#formation){background-color:#fff!important;background-image:none!important;color:#20384b!important;border-color:#ccdbe6!important;box-shadow:0 5px 18px #26435b0d!important}
html[data-theme="daylight"] .hero{background:linear-gradient(125deg,#e2eff8,#f7fbfd)!important;color:#17364e!important;border:1px solid #c0d5e5!important;box-shadow:0 8px 20px #23415b16!important}
html[data-theme="daylight"] .hero :is(.digit,.issue,.plus){color:#17384f!important}
html[data-theme="daylight"] .hero .total{color:#91610d!important}
html[data-theme="daylight"] .hero :is(.eyebrow,.meta,.countbox small){color:#536b7e!important}
html[data-theme="daylight"] :is(.status,.hero .tag,.hero .countbox,.omit-badge,.record-rule-chip){background:#e9f3f8!important;color:#20516c!important;border-color:#c2d8e6!important}
html[data-theme="daylight"] .status.ok{background:#e1f6ed!important;color:#126448!important;border-color:#a3dec7!important}
html[data-theme="daylight"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.customrules input){background:#fff!important;color:#1a3044!important;-webkit-text-fill-color:#1a3044!important;border:1px solid #9ab4c7!important;box-shadow:none!important}
html[data-theme="daylight"] :is(input,textarea)::placeholder{color:#627c8e!important;-webkit-text-fill-color:#627c8e!important;opacity:1}
html[data-theme="daylight"] :is(input,select,textarea):focus-visible{outline:2px solid #147f9b!important;outline-offset:1px!important}
html[data-theme="daylight"] :is(button,.lightbtn,.sum-presets button,.customrules button,.fb-action){background:#e7f0f7!important;color:#19394e!important;-webkit-text-fill-color:#19394e!important;border:1px solid #afc6d7!important;box-shadow:none!important}
html[data-theme="daylight"] :is(button,.lightbtn,.sum-presets button,.customrules button,.fb-action):hover{background:#d6e9f3!important;border-color:#7daec5!important}
html[data-theme="daylight"] :is(#refresh,#applySumRule,#applyrules,#save,#backtestRun,#simSubmit,#botStart,#dailyExtraApply,#calcGo,#advRun,#batchGo,#cloudUpload,button.primary,#v90CopyResults,.v4790-copy-actions button){background:#166f8b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#0c6480!important}
html[data-theme="daylight"] nav.tabs,html[data-theme="daylight"] .organized-tabs{background:#edf4f9f7!important;border:1px solid #c2d4e2!important;box-shadow:0 6px 16px #21405a1b!important}
html[data-theme="daylight"] .organized-nav .org-link,html[data-theme="daylight"] nav.tabs>.tab{background:#fff!important;color:#244358!important;border:1px solid #c1d4e2!important;-webkit-text-fill-color:#244358!important}
html[data-theme="daylight"] .organized-nav .org-link.is-active,html[data-theme="daylight"] nav.tabs>.tab.active{background:#126f8e!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#0b6887!important}
html[data-theme="daylight"] .org-drawer,html[data-theme="daylight"] .org-group{background:#fff!important;color:#223d52!important;border-color:#c6d8e5!important}
html[data-theme="daylight"] .org-drawer-head,html[data-theme="daylight"] .org-drawer-head strong,html[data-theme="daylight"] .org-group>summary,html[data-theme="daylight"] .org-group-content button{color:#183b51!important;-webkit-text-fill-color:#183b51!important}
html[data-theme="daylight"] .org-drawer-head span,html[data-theme="daylight"] .org-group>summary small,html[data-theme="daylight"] .org-directory-hint,html[data-theme="daylight"] .org-home-tip{color:#567084!important}
html[data-theme="daylight"] .org-group-content{border-color:#d3e0e8!important}
html[data-theme="daylight"] .org-home,html[data-theme="daylight"] .org-home-grid{background:transparent!important}
html[data-theme="daylight"] .org-home-card,html[data-theme="daylight"] .org-home-secondary button{background:#fff!important;border-color:#c6d7e3!important;color:#1c3a4e!important}
html[data-theme="daylight"] .org-intro h2,html[data-theme="daylight"] .org-home-card strong{color:#203c50!important}
html[data-theme="daylight"] .org-intro p,html[data-theme="daylight"] .org-home-card small{color:#526d80!important}
html[data-theme="daylight"] .org-home-card span{color:#096b87!important}
html[data-theme="daylight"] :is(.draw-table,.unified-records,.fm-table,.fm-heat,table){color:#1c364a!important;border-color:#cbdce7!important}
html[data-theme="daylight"] :is(.draw-table,.unified-records,.fm-table,.fm-heat) :is(th,td){background:#fff!important;color:#1b3549!important;border-color:#d2e0e9!important}
html[data-theme="daylight"] :is(.draw-table,.unified-records,.fm-table,.fm-heat) th{background:#e9f3f9!important}
html[data-theme="daylight"] :is(.draw-table,.unified-records) tbody tr:nth-child(even) td{background:#f5f9fc!important}
html[data-theme="daylight"] :is(.sum-btn-wrapper>button,button[data-sum-value],#calcSumGrid.calc-sum-grid>button[aria-pressed="false"]){background:#e8f2f8!important;color:#24465b!important;-webkit-text-fill-color:#24465b!important;border:1px solid #a8c3d4!important}
html[data-theme="daylight"] :is(.sum-btn-wrapper>button.selected,button[data-sum-value].selected,button[data-sum-value][aria-pressed="true"],#calcSumGrid.calc-sum-grid>button[aria-pressed="true"]){background:#116f91!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#056487!important}
html[data-theme="daylight"] :is(.result-rule-help,.sum-choice-panel .info,#sumRulePanel .info,#sumChoicePanel .info,.fs-landscape-tip,.fs-picked,.fs-advanced-tools,.fs-compare,.fs-modes,.fs-view-switch,.fs-pages,.fs-daily,.fs-range,.fs-quick-actions,.fb-lists,.fb-plan-output){background:#f3f8fb!important;color:#2b4659!important;border-color:#cbdde8!important}
/* Previously dark-only components without theme guards */
html[data-theme="daylight"] #results :is(.ym-results-fold,.ym-results-history-4792),html[data-theme="daylight"] #calculator :is(.ym-filter-card,.ym-filter-fold,.ym-advanced-subgroup,.ym-advanced-explain){background:#fff!important;color:#1b364a!important;border-color:#c2d5e3!important}
html[data-theme="daylight"] #results :is(.ym-results-fold-head,.ym-results-history-4792>summary),html[data-theme="daylight"] #calculator :is(.ym-filter-card h3,.ym-filter-fold-title,.ym-advanced-subgroup>summary,.ym-advanced-explain>summary){color:#193a50!important;-webkit-text-fill-color:#193a50!important}
html[data-theme="daylight"] #results :is(.ym-results-fold[open]>summary,.ym-results-history-4792[open]>summary),html[data-theme="daylight"] #calculator :is(.ym-filter-fold[open]>.ym-filter-fold-title,.ym-advanced-subgroup[open]>summary){background:#e8f3f8!important;border-color:#bfd5e2!important}
html[data-theme="daylight"] #results .ym-results-fold-body>.customrules,html[data-theme="daylight"] #calculator .ym-filter-primary>div{background:#f6fafc!important;color:#213a4e!important;border-color:#c4d7e3!important}
html[data-theme="daylight"] #calculator .ym-advanced-fields>label,html[data-theme="daylight"] #calculator .ym-filter-fold label{color:#28465b!important}
html[data-theme="daylight"] #calculator .ym-advanced-fields :is(input,select),html[data-theme="daylight"] #calculator .ym-filter-fold :is(input,select){background:#fff!important;color:#19384e!important;-webkit-text-fill-color:#19384e!important;border-color:#9bb7ca!important}
html[data-theme="daylight"] #calculator :is(.ym-filter-fold-title small,.ym-advanced-subgroup>summary small,.ym-advanced-subgroup>.ym-group-note,.ym-filter-fold .advnote,.ym-advanced-intro,.ym-advanced-explain){color:#516c80!important}
html[data-theme="daylight"] #calculator .ym-filter-run-actions button,html[data-theme="daylight"] #calculator .ym-filter-primary #calcSumPresets button{background:#176f8b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#0c6982!important}
html[data-theme="daylight"] #calculator .ym-filter-run-actions #advClear{background:#eaf3f8!important;color:#1f465a!important;-webkit-text-fill-color:#1f465a!important;border-color:#b2cada!important}
html[data-theme="daylight"] #calculator :is(.v4790-copy-tools,#v90ManualCopy){background:#fff!important;color:#233f53!important;border-color:#bad0df!important}
html[data-theme="daylight"] #calculator #v90ManualCopy summary{color:#203f54!important}
html[data-theme="daylight"] #calculator #v90CodeText{background:#f7fbfe!important;color:#193348!important;-webkit-text-fill-color:#193348!important;border-color:#adcadb!important}
html[data-theme="daylight"] #calculator #v90CopyStatus{color:#14624f!important;-webkit-text-fill-color:#14624f!important}
html[data-theme="daylight"] #calculator #advResult .calcchips span{background:#eaf3f8!important;color:#1f3a4e!important;-webkit-text-fill-color:#1f3a4e!important;border-color:#aac6d8!important}
html[data-theme="daylight"] #set100Monitor,html[data-theme="daylight"] #set100Monitor .set100-detail{background:#fff!important;color:#263f52!important;border-color:#bfd3e1!important}
html[data-theme="daylight"] #set100Monitor :is(h3,.set100-note,.set100-status,.set100-count,.set100-codes,.set100-detail p,.set100-controls label){color:#254459!important;-webkit-text-fill-color:#254459!important}
html[data-theme="daylight"] #set100Monitor :is(input,select){background:#fff!important;color:#17384e!important;-webkit-text-fill-color:#17384e!important;border-color:#9db9c9!important}
html[data-theme="daylight"] #set100Monitor button{background:#176e89!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme="daylight"] #set100Monitor th{background:#e6f1f7!important;color:#27465b!important}
html[data-theme="daylight"] #set100Monitor td,html[data-theme="daylight"] #set100Monitor tr:nth-child(even) td{background:#fff!important;color:#1b374b!important}
html[data-theme="daylight"] #set100Monitor tr:nth-child(even) td{background:#f3f8fb!important}
html[data-theme="daylight"] #results #ymPlans4793{background:#fff!important;border-color:#c4d7e4!important}
html[data-theme="daylight"] #results #ymPlans4793>.ym-filter-fold-title{color:#213c50!important}
/* Preserve original semantic heatmap cell colors; only container chrome is themed. */
html[data-theme="daylight"] #fullstats :is(.fs-gridpanel,.fs-hundred-grid,.fs-advanced-tools,.fs-compare,.fs-modes,.fs-view-switch,.fs-pages,.fs-daily,.fs-range){background:#fff!important;color:#244256!important;border-color:#c8d9e4!important}
html[data-theme="daylight"] #fullstats :is(.fs-view-switch button,.fs-modes button,.fs-pages button,.fs-hundred-bar select,#fsHundred){background:#e7f2f8!important;color:#1e4055!important;-webkit-text-fill-color:#1e4055!important;border-color:#a8c2d3!important}
html[data-theme="daylight"] #fullstats :is(.fs-view-active,.fs-active){background:#176f8a!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme="daylight"] :is(.compact-live-draw,.compact-live-tag){background:#e8f3f9!important;color:#1f4055!important;border-color:#b9d1e2!important}
html[data-theme="daylight"] .compact-live-digits,html[data-theme="daylight"] .compact-live-result{color:#162f44!important}
/* Theme switch itself remains readable in either mode */
.ym-theme-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:7px;padding:1px 2px 6px;min-height:35px}
.ym-theme-toggle{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:33px;padding:5px 12px!important;border-radius:999px!important;font-size:12px!important;font-weight:700!important;line-height:1.1;cursor:pointer}
html[data-theme="quant-dark"] .ym-theme-toggle{background:#21354b!important;color:#f0f7ff!important;border:1px solid #456782!important}
html[data-theme="daylight"] .ym-theme-toggle{background:#fff!important;color:#18506a!important;-webkit-text-fill-color:#18506a!important;border:1px solid #9dbed0!important}
.ym-theme-toggle:focus-visible{outline:3px solid #2697b1!important;outline-offset:2px}
