/* Global day/night controls. Day overrides are color-only. */
html[data-theme="night"]{color-scheme:dark}
html[data-theme="day"]{color-scheme:light;--g1:#eaf4fb;--g2:#dfe9f3;--g3:#e6edf5;--text:#0f172a;--text2:#334155;--text3:#087557;--text-dim:#475569;--accent:#087557;--accent2:#07654e;--accent-dim:#e1f3ec;--glass:#ffffff;--glass2:#f8fafc;--glass3:#f8fafc;--border:#c2d4de;--border-h:#087557;--amber:#8b5600;--amber-dim:#fff1d7;--red:#b02b3c;--red-dim:#fce8ed;--blue:#076b9a;--blue-dim:#e6f1f8}
.panel-theme-switch{display:flex;align-items:center;flex:none;border:1px solid #1c4555;border-radius:8px;background:#062734;overflow:hidden}
.panel-theme-switch button{display:flex;align-items:center;gap:6px;border:0;background:transparent;color:#bdd2dc;padding:9px 10px;font:500 11px var(--panel-font);cursor:pointer;min-height:36px}
.panel-theme-switch button+button{border-left:1px solid #1c4555}
.panel-theme-switch .ov-icon{width:19px;height:19px}
.panel-theme-switch button[aria-pressed="true"]{background:#0c3b46;color:#eafff6}
.panel-theme-switch [data-panel-theme="day"] .ov-icon{color:#ffcc53}
.panel-theme-switch button:focus-visible{outline:2px solid #36caf0;outline-offset:-3px}
html[data-theme="day"] .panel-theme-switch{background:#ffffff;border-color:#b5ccd8}
html[data-theme="day"] .panel-theme-switch button{color:#334155}
html[data-theme="day"] .panel-theme-switch button+button{border-left-color:#b5ccd8}
html[data-theme="day"] .panel-theme-switch button[aria-pressed="true"]{background:#dceee8;color:#07654e}
html[data-theme="day"] .panel-theme-switch [data-panel-theme="day"] .ov-icon{color:#8b5600}
html[data-theme="day"] .panel-theme-switch button:focus-visible{outline-color:#076b9a}
html[data-theme="day"] .blob:nth-child(1){background:#e1f3ec!important}
html[data-theme="day"] .blob:nth-child(2){background:#e6f1f8!important}
html[data-theme="day"] .nav{background:#f8fafc!important}
html[data-theme="day"] .nav-logo{color:#0f172a!important}
html[data-theme="day"] select.sel{background:#f8fafc!important}
html[data-theme="day"] table.tbl td{border-bottom:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .dot.on{box-shadow:0 0 8px #087557!important}
html[data-theme="day"] .bar{background:rgba(15,23,42,0.07)!important}
html[data-theme="day"] .bar.warn i{background:linear-gradient(90deg,#fff1d7,#fff1d7)!important}
html[data-theme="day"] .bar.danger i{background:linear-gradient(90deg,#fce8ed,#fce8ed)!important}
html[data-theme="day"] .skel{background:linear-gradient(90deg,rgba(15,23,42,0.05),rgba(15,23,42,0.12),rgba(15,23,42,0.05))!important}
html[data-theme="day"] body{background:#f8fafc!important}
html[data-theme="day"] .app-side{background:linear-gradient(180deg,#f8fafc,#f8fafc)!important;border-right:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .brand{border-bottom:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .brand b{color:#0f172a!important}
html[data-theme="day"] .brand b span{color:#087557!important}
html[data-theme="day"] .brand small{color:#475569!important}
html[data-theme="day"] .side-menu button{color:#475569!important}
html[data-theme="day"] .side-menu button:hover{background:rgba(8,117,87,0.08)!important;color:#0f172a!important}
html[data-theme="day"] .side-menu button.active{background:linear-gradient(90deg,rgba(8,117,87,0.35),rgba(8,117,87,0.14))!important;color:#087557!important;box-shadow:inset 3px 0 #087557!important}
html[data-theme="day"] .side-foot{border:1px solid rgba(43,88,111,0.22)!important;color:#475569!important}
html[data-theme="day"] .side-foot b{color:#0f172a!important}
html[data-theme="day"] .side-foot b span{color:#087557!important}
html[data-theme="day"] .side-foot button{color:#475569!important}
html[data-theme="day"] .app-top{background:#f8fafc!important;border-bottom:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .top-select{background:#f8fafc!important;border:1px solid rgba(43,88,111,0.25)!important;color:#0f172a!important}
html[data-theme="day"] .top-select span{color:#475569!important}
html[data-theme="day"] .top-select select{color:#0f172a!important}
html[data-theme="day"] .top-live{background:rgba(8,117,87,0.12)!important;color:#087557!important}
html[data-theme="day"] .top-live:before{background:#e1f3ec!important}
html[data-theme="day"] .top-sync{color:#475569!important}
html[data-theme="day"] .top-user{color:#0f172a!important}
html[data-theme="day"] .avatar{background:#e1f3ec!important;border:1px solid rgba(43,88,111,0.45)!important}
html[data-theme="day"] .future-note{color:#475569!important}
html[data-theme="day"] .ov-heading .leaf{color:#087557!important}
html[data-theme="day"] .ov-heading p{color:#475569!important}
html[data-theme="day"] .state-pill{background:rgba(8,117,87,0.13)!important;color:#087557!important}
html[data-theme="day"] .crop-summary{background:#f8fafc!important;border:1px solid rgba(43,88,111,0.24)!important}
html[data-theme="day"] .crop-summary p{color:#475569!important}
html[data-theme="day"] .crop-stats div{border:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .crop-stats span{color:#475569!important}
html[data-theme="day"] .crop-stats small{color:#087557!important}
html[data-theme="day"] .crop-nav{border:1px solid rgba(43,88,111,0.28)!important}
html[data-theme="day"] .crop-nav button{color:#475569!important}
html[data-theme="day"] .crop-nav button.active{background:linear-gradient(180deg,rgba(8,117,87,0.35),rgba(8,117,87,0.12))!important;color:#087557!important;box-shadow:inset 0 0 0 1px #087557!important}
html[data-theme="day"] .ov-panel{background:#f8fafc!important;border:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .ov-panel-title{color:#0f172a!important}
html[data-theme="day"] .measure{background:#f8fafc!important;border:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .measure span{color:#475569!important}
html[data-theme="day"] .measure small{color:#475569!important}
html[data-theme="day"] .measure small{color:#087557!important}
html[data-theme="day"] .forecast{border:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .forecast-day{border-right:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .forecast-day span{color:#475569!important}
html[data-theme="day"] .forecast-day em{color:#087557!important}
html[data-theme="day"] .status-item{background:#f8fafc!important;border:1px solid rgba(43,88,111,0.22)!important;color:#475569!important}
html[data-theme="day"] .status-item b{color:#0f172a!important}
html[data-theme="day"] .quick-grid a{border:1px solid rgba(43,88,111,0.22)!important;color:#0f172a!important}
html[data-theme="day"] .quick-grid i{color:#087557!important}
html[data-theme="day"] .crop-icon{background:#f8fafc!important}
html[data-theme="day"] .ov-tag.model{background:rgba(29,78,216,0.15)!important;color:#1d4ed8!important}
html[data-theme="day"] .ov-tag.fcast{background:rgba(139,86,0,0.15)!important;color:#8b5600!important}
html[data-theme="day"] .fz-sub{color:#475569!important}
html[data-theme="day"] .fz-tbl th{color:#475569!important;border-bottom:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .fz-tbl td{border-bottom:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .fz-tbl td.nn{color:#087557!important}
html[data-theme="day"] .fz-tbl td.np{color:#8b5600!important}
html[data-theme="day"] .fz-tbl td.nk{color:#b02b3c!important}
html[data-theme="day"] .fz-tbl td.nt{color:#475569!important}
html[data-theme="day"] .fz-tbl tr.now td{background:linear-gradient(135deg,#e1f3ec,#e1f3ec)!important;color:#0f172a!important}
html[data-theme="day"] .fz-tbl tr.now td.nn{color:#0f172a!important}
html[data-theme="day"] .fz-tbl tr.now td.np{color:#0f172a!important}
html[data-theme="day"] .fz-tbl tr.now td.nk{color:#0f172a!important}
html[data-theme="day"] .fz-tbl tr.now td.nt{color:#0f172a!important}
html[data-theme="day"] .fz-tbl tr.rdinow td{background:linear-gradient(135deg,#e6f1f8,#e6f1f8)!important;color:#0f172a!important}
html[data-theme="day"] .fz-now{background:#e1f3ec!important;color:#0f172a!important}
html[data-theme="day"] .fz-rec .st b{color:#087557!important}
html[data-theme="day"] .fz-rec .pri{border-left:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .fz-rec .pri h4{color:#087557!important}
html[data-theme="day"] .pp-filter button{background:#f8fafc!important;border:1px solid rgba(43,88,111,0.25)!important;color:#0f172a!important}
html[data-theme="day"] .pp-filter button.on{background:#e1f3ec!important;border-color:rgba(43,88,111,0.45)!important;color:#0f172a!important}
html[data-theme="day"] .pp-card{border:1px solid rgba(43,88,111,0.22)!important;background:rgba(15,23,42,0.025)!important}
html[data-theme="day"] .pp-card.act{border-color:rgba(43,88,111,0.45)!important;background:linear-gradient(135deg,rgba(176,43,60,0.13),rgba(176,43,60,0.03))!important}
html[data-theme="day"] .pp-bdg{color:#0f172a!important;background:#ffffff!important}
html[data-theme="day"] .pp-card.act .pp-bdg{background:#fce8ed!important}
html[data-theme="day"] .pp-info{background:#e6f1f8!important;color:#0f172a!important}
html[data-theme="day"] .pp-tgt{color:#475569!important}
html[data-theme="day"] .pp-tbl th{color:#475569!important;border-bottom:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .pp-tbl td{border-bottom:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .pp-tbl td.phi{color:#8b5600!important}
html[data-theme="day"] .pp-tbl td.nt{color:#475569!important}
html[data-theme="day"] .pp-sum div{background:rgba(15,23,42,0.04)!important;border:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .pp-sum span{color:#475569!important}
html[data-theme="day"] .pp-disc{background:linear-gradient(135deg,#fce8ed,#e8f4ef)!important;border:1px solid rgba(43,88,111,0.45)!important;color:#0f172a!important}
html[data-theme="day"] .pp-disc b{color:#b02b3c!important}
html[data-theme="day"] .pp-modal{background:#f8fafc!important}
html[data-theme="day"] .pp-mbox{background:#f8fafc!important;border:1px solid rgba(43,88,111,0.35)!important;color:#0f172a!important}
html[data-theme="day"] .pp-mbox .sci{color:#475569!important}
html[data-theme="day"] .pp-mbox h4{color:#087557!important}
html[data-theme="day"] .pp-x{color:#0f172a!important}
html[data-theme="day"] .fz-need div{background:rgba(15,23,42,0.04)!important;border:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .fz-need span{color:#475569!important}
html[data-theme="day"] .stage{background:#f8fafc!important;border:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .stage .ic{background:#f8fafc!important;border:2px solid rgba(43,88,111,0.25)!important}
html[data-theme="day"] .stage b{color:#0f172a!important}
html[data-theme="day"] .stage span{color:#475569!important}
html[data-theme="day"] .stage.done .ic{border-color:rgba(43,88,111,0.45)!important}
html[data-theme="day"] .stage.now{background:rgba(8,117,87,0.14)!important;border-color:rgba(43,88,111,0.45)!important}
html[data-theme="day"] .stage.now .ic{border-color:rgba(43,88,111,0.45)!important;box-shadow:0 0 12px #087557!important}
html[data-theme="day"] .stage.now b{color:#087557!important}
html[data-theme="day"] .sched td:first-child{color:#475569!important}
html[data-theme="day"] .sched .need.rain{color:#1d4ed8!important}
html[data-theme="day"] .rec-bar{background:#f8fafc!important}
html[data-theme="day"] .ph-chip{background:#f8fafc!important;border:1px solid rgba(43,88,111,0.22)!important;color:#475569!important}
html[data-theme="day"] .ph-chip b{color:#0f172a!important}
html[data-theme="day"] .ph-chip.now{background:rgba(8,117,87,0.16)!important;border-color:rgba(43,88,111,0.45)!important;color:#087557!important}
html[data-theme="day"] .ph-chip.now b{color:#087557!important}
html[data-theme="day"] .ph-foot{color:#475569!important}
html[data-theme="day"] .ph-foot span b{color:#0f172a!important}
html[data-theme="day"] .rk-chips span{background:#f8fafc!important;border:1px solid rgba(43,88,111,0.22)!important;color:#475569!important}
html[data-theme="day"] .rk-chips span b{color:#0f172a!important}
html[data-theme="day"] .rk{background:#f8fafc!important;border:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] .rk .hd b{color:#0f172a!important}
html[data-theme="day"] .rk .bdg{color:#0f172a!important}
html[data-theme="day"] .rk .lat{color:#475569!important}
html[data-theme="day"] .rk .sub{color:#475569!important}
html[data-theme="day"] .rk-ctx div{background:#f8fafc!important;border:1px solid rgba(43,88,111,0.22)!important;color:#475569!important}
html[data-theme="day"] .rk-ctx div b{color:#0f172a!important}
html[data-theme="day"] .alert .pri{color:#0f172a!important}
html[data-theme="day"] .wx-kpis .kpi em{color:#0f172a!important}
html[data-theme="day"] .wx-win .big{color:#087557!important}
html[data-theme="day"] .wx-win .big.warn{color:#8b5600!important}
html[data-theme="day"] .wx-win .big.bad{color:#b02b3c!important}
html[data-theme="day"] .wx-strip i{background:#f8fafc!important}
html[data-theme="day"] .wx-strip i.ideal{background:#e1f3ec!important}
html[data-theme="day"] .wx-strip i.marginal{background:#fff1d7!important}
html[data-theme="day"] .wx-strip i.bad{background:#fce8ed!important}
html[data-theme="day"] .wx-strip-lab{color:#475569!important}
html[data-theme="day"] .wx-legend{color:#475569!important}
html[data-theme="day"] #view-reports{--rep-accent:#087557!important;--rep-blue:#1d4ed8!important;--rep-muted:#475569!important;--rep-border:rgba(43,88,111,0.25)!important;color:#0f172a!important}
html[data-theme="day"] #view-reports .rep-heading>.rep-icon{color:#086b85!important}
html[data-theme="day"] #view-reports .rep-type{background:linear-gradient(140deg,#f8fafc,#f8fafc)!important}
html[data-theme="day"] #view-reports .rep-type.selected{background:linear-gradient(140deg,#e8f4ef,#f8fafc)!important}
html[data-theme="day"] #view-reports .rep-panel{background:linear-gradient(120deg,#f8fafc,#f8fafc)!important}
html[data-theme="day"] #view-reports .rep-filters{border-top:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] #view-reports select{background:#f8fafc!important;color:#0f172a!important}
html[data-theme="day"] #view-reports .rep-primary{background:#e1f3ec!important;color:#475569!important;border:1px solid rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-reports .rep-outline{border:1px solid rgba(43,88,111,0.45)!important;color:#087557!important}
html[data-theme="day"] #view-reports .rep-table-wrap{border:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] #view-reports .rep-table th{background:rgba(8,107,133,0.1)!important;color:#0f172a!important;border-bottom:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] #view-reports .rep-empty b{color:#0f172a!important}
html[data-theme="day"] #view-reports .rep-format.pdf{border-color:rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-reports .rep-format.pdf .rep-icon{color:#b02b3c!important}
html[data-theme="day"] #view-reports button.rep-type{color:#0f172a!important}
html[data-theme="day"] #view-reports button.rep-type:hover{background:#f8fafc!important}
html[data-theme="day"] #view-reports button:focus-visible{outline:2px solid rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-reports select:focus-visible{outline:2px solid rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-reports input:focus-visible{outline:2px solid rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-reports input[type=date]{background:#f8fafc!important;color:#0f172a!important;color-scheme:light!important}
html[data-theme="day"] #view-reports .rep-metrics legend{color:#0f172a!important}
html[data-theme="day"] #view-reports .rep-summary{color:#0f172a!important;background:rgba(8,117,87,0.06)!important}
html[data-theme="day"] #view-reports .rep-error{color:#b02b3c!important}
html[data-theme="day"] #view-reports .rep-format{color:#0f172a!important}
html[data-theme="day"] #view-reports .rep-format.selected{background:rgba(8,117,87,0.07)!important}
html[data-theme="day"] #view-reports .rep-primary:not(:disabled){background:#e1f3ec!important}
html[data-theme="day"] #view-reports .rep-kpi{background:#f8fafc!important}
html[data-theme="day"] #view-reports .rep-kpi b{color:#0f172a!important}
html[data-theme="day"] #view-reports #reportStatsBody td{border-bottom:1px solid rgba(43,88,111,0.22)!important;color:#0f172a!important}
html[data-theme="day"] #view-reports #reportDayRows td{border-bottom:1px solid rgba(43,88,111,0.22)!important;color:#0f172a!important}
html[data-theme="day"] #view-reports .rep-filters input{background:#f8fafc!important;color:#0f172a!important}
html[data-theme="day"] #view-reports #reportMetrics label{background:#f8fafc!important}
html[data-theme="day"] #view-reports #reportMetrics label:has(input:checked){background:rgba(8,117,87,0.09)!important;color:#0f172a!important}
html[data-theme="day"] #view-reports{--rep-accent:#087557!important;--rep-blue:#1d4ed8!important;--rep-muted:#475569!important;--rep-border:rgba(43,88,111,0.25)!important;--rep-surface:#f8fafc!important;--rep-text:#0f172a!important;color-scheme:light!important}
html[data-theme="day"] #view-reports .rep-panel{background:linear-gradient(120deg,#f8fafc,#f8fafc)!important;box-shadow:0 3px 14px #475569!important}
html[data-theme="day"] #view-reports button.rep-type{background:linear-gradient(140deg,#f8fafc,#f8fafc)!important}
html[data-theme="day"] #view-reports button.rep-type.selected{background:linear-gradient(140deg,#e8f4ef,#f8fafc)!important}
html[data-theme="day"] #view-reports button.rep-type:hover{background:linear-gradient(140deg,#e8f4ef,#f8fafc)!important}
html[data-theme="day"] #view-reports select{color-scheme:light!important}
html[data-theme="day"] #view-reports input[type=date]{color-scheme:light!important}
html[data-theme="day"] #view-reports .rep-filters input{color-scheme:light!important}
html[data-theme="day"] #view-reports .rep-primary{color:#475569!important}
html[data-theme="day"] #view-reports .rep-primary:not(:disabled){color:#475569!important}
html[data-theme="day"] #view-reports .rep-outline{color:#087557!important;border-color:rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-reports .rep-summary{background:rgba(8,117,87,0.08)!important;color:#0f172a!important}
html[data-theme="day"] #view-reports .rep-error{color:#b02b3c!important}
html[data-theme="day"] #view-reports .rep-preview-badge{background:rgba(8,117,87,0.08)!important}
html[data-theme="day"] #view-reports .rep-format.selected{background:rgba(8,117,87,0.08)!important}
html[data-theme="day"] #view-reports .rep-table th{background:rgba(8,107,133,0.12)!important;color:#0f172a!important}
html[data-theme="day"] #view-reports #reportMetrics label:has(input:checked){color:#087557!important;background:rgba(8,117,87,0.09)!important}
html[data-theme="day"] #view-reports .rep-report-brand img{background:#ffffff!important}
html[data-theme="day"] #view-reports .rep-banner{background:rgba(8,117,87,0.09)!important;border:1px solid rgba(43,88,111,0.3)!important}
html[data-theme="day"] #view-reports .rep-banner.warn{background:#e8f4ef!important;border-color:rgba(43,88,111,0.45)!important;border-left-color:rgba(43,88,111,0.45)!important;color:#8b5600!important}
html[data-theme="day"] #view-reports .rep-insight-card{background:#f8fafc!important}
html[data-theme="day"] #view-reports .rep-insight-card.warn{border-left:3px solid rgba(43,88,111,0.45)!important;background:#e8f4ef!important}
html[data-theme="day"] #view-reports .rep-insight-status{color:#087557!important;background:#e8f4ef!important}
html[data-theme="day"] #view-reports .warn .rep-insight-status{color:#8b5600!important;background:#e8f4ef!important}
html[data-theme="day"] #view-reports .rep-coverage-track{background:#f8fafc!important}
html[data-theme="day"] #view-reports .rep-coverage-track.model{border:2px dashed rgba(43,88,111,0.45)!important;background:#e8f4ef!important}
html[data-theme="day"] #view-reports .rep-numbers summary{color:#0f172a!important}
html[data-theme="day"] #view-reports a{color:#087557!important}
html[data-theme="day"] #view-health{--health-accent:#087557!important;--health-blue:#086b85!important;--health-text:#0f172a!important;--health-muted:#475569!important;--health-border:rgba(43,88,111,0.25)!important;color-scheme:light!important}
html[data-theme="day"] #view-health .health-heading-icon{background:rgba(8,117,87,0.05)!important}
html[data-theme="day"] #view-health .panel{background:linear-gradient(120deg,#f8fafc,#f8fafc)!important}
html[data-theme="day"] #view-health .health-table-wrap{border:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] #view-health #healthTbl th{color:#475569!important;background:#f8fafc!important}
html[data-theme="day"] #view-health #healthTbl td{border-bottom:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] #view-health #healthTbl td:first-child>small{color:#086b85!important}
html[data-theme="day"] #view-health #healthTbl tbody tr:hover{background:rgba(8,107,133,0.06)!important}
html[data-theme="day"] #view-health .dot.on{background:#e1f3ec!important;box-shadow:0 0 5px #087557!important}
html[data-theme="day"] #view-health .dot.stale{background:#fff1d7!important}
html[data-theme="day"] #view-health .dot.off{background:#fce8ed!important}
html[data-theme="day"] #view-health .health-status.ok{color:#087557!important;border-color:rgba(43,88,111,0.45)!important;background:rgba(8,117,87,0.09)!important}
html[data-theme="day"] #view-health .health-status.warn{color:#8b5600!important;border-color:rgba(43,88,111,0.45)!important;background:rgba(139,86,0,0.09)!important}
html[data-theme="day"] #view-health .health-status.err{color:#b02b3c!important;border-color:rgba(43,88,111,0.45)!important;background:rgba(176,43,60,0.09)!important}
html[data-theme="day"] #view-health .health-status.unknown{color:#475569!important;background:rgba(8,107,133,0.06)!important}
html[data-theme="day"] #view-health summary{color:#475569!important}
html[data-theme="day"] #view-health .kpi{background:linear-gradient(130deg,#f8fafc,#f8fafc)!important}
html[data-theme="day"] #view-health .kpi>span{color:#475569!important}
html[data-theme="day"] #view-health .kpi strong>.u{color:#475569!important}
html[data-theme="day"] #view-health .kpi small{color:#475569!important}
html[data-theme="day"] #view-health .health-charts-head h3{color:#475569!important}
html[data-theme="day"] #view-health #healthRange{background:#f8fafc!important}
html[data-theme="day"] #view-health .health-chart-card{background:linear-gradient(135deg,#f8fafc,#f8fafc)!important}
html[data-theme="day"] #view-health .health-chart-card .panel-head>b{color:#475569!important}
html[data-theme="day"] #view-health .health-buffer-size{color:#475569!important}
html[data-theme="day"] #view-health .health-chart-details{border-top:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] #view-health .health-bottom-grid>.panel{background:linear-gradient(130deg,#f8fafc,#f8fafc)!important}
html[data-theme="day"] #view-health #hEvtCount{color:#475569!important}
html[data-theme="day"] #view-health .evt.ok{border-left-color:rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-health .evt.warn{border-left-color:rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-health .evt.err{border-left-color:rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-health .evt .t{color:#475569!important}
html[data-theme="day"] #view-health .evt.ok .l{color:#087557!important}
html[data-theme="day"] #view-health .evt.warn .l{color:#8b5600!important}
html[data-theme="day"] #view-health .evt.err .l{color:#b02b3c!important}
html[data-theme="day"] #view-health .evt .m{color:#475569!important}
html[data-theme="day"] #view-health #healthTech td{border-bottom:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] #view-health .health-energy-details{border:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] #view-health #healthChartsNote{color:#b02b3c!important;border:1px solid rgba(43,88,111,0.3)!important}
html[data-theme="day"] #view-quality{--quality-accent:#087557!important;--quality-muted:#475569!important;--quality-border:rgba(43,88,111,0.25)!important;color:#0f172a!important;color-scheme:light!important}
html[data-theme="day"] #view-quality .quality-range{background:#f8fafc!important}
html[data-theme="day"] #view-quality .quality-range span{color:#475569!important}
html[data-theme="day"] #view-quality .quality-range input:checked+span{color:#087557!important;border-color:rgba(43,88,111,0.45)!important;background:rgba(8,117,87,0.12)!important}
html[data-theme="day"] #view-quality .quality-range input:focus-visible+span{outline:2px solid rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-quality .quality-model{color:#8b5600!important}
html[data-theme="day"] #view-quality .quality-card{background:linear-gradient(130deg,#f8fafc,#f8fafc)!important}
html[data-theme="day"] #view-quality .quality-card-icon{background:rgba(8,117,87,0.08)!important}
html[data-theme="day"] #view-quality .quality-card-icon.blue{color:#1d4ed8!important;background:rgba(29,78,216,0.08)!important}
html[data-theme="day"] #view-quality .quality-card-icon.red{color:#b02b3c!important;background:rgba(176,43,60,0.08)!important}
html[data-theme="day"] #view-quality .quality-card>div>span{color:#475569!important}
html[data-theme="day"] #view-quality .quality-card-bar{background:#f8fafc!important}
html[data-theme="day"] #view-quality .quality-card-bar i{background:linear-gradient(90deg,#e1f3ec,#e1f3ec)!important}
html[data-theme="day"] #view-quality .panel{background:linear-gradient(120deg,#f8fafc,#f8fafc)!important}
html[data-theme="day"] #view-quality .quality-table-wrap{border:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] #view-quality .tbl th{background:#f8fafc!important;color:#475569!important}
html[data-theme="day"] #view-quality .tbl td{border-bottom:1px solid rgba(43,88,111,0.22)!important}
html[data-theme="day"] #view-quality .tbl tbody tr:hover{background:rgba(8,107,133,0.05)!important}
html[data-theme="day"] #view-quality .quality-dot{background:#ffffff!important}
html[data-theme="day"] #view-quality .quality-dot.ok{background:#e1f3ec!important}
html[data-theme="day"] #view-quality .quality-dot.warn{background:#fff1d7!important}
html[data-theme="day"] #view-quality .quality-dot.err{background:#fce8ed!important}
html[data-theme="day"] #view-quality .quality-bar{background:#f8fafc!important}
html[data-theme="day"] #view-quality .quality-bar i{background:#e1f3ec!important}
html[data-theme="day"] #view-quality .quality-bar.warn i{background:#fff1d7!important}
html[data-theme="day"] #view-quality .quality-bar.err i{background:#fce8ed!important}
html[data-theme="day"] #view-quality .quality-badge{color:#475569!important}
html[data-theme="day"] #view-quality .quality-badge.ok{color:#087557!important;border-color:rgba(43,88,111,0.45)!important;background:rgba(8,117,87,0.09)!important}
html[data-theme="day"] #view-quality .quality-badge.warn{color:#8b5600!important;border-color:rgba(43,88,111,0.45)!important;background:rgba(139,86,0,0.09)!important}
html[data-theme="day"] #view-quality .quality-badge.err{color:#b02b3c!important;border-color:rgba(43,88,111,0.45)!important;background:rgba(176,43,60,0.09)!important}
html[data-theme="day"] #view-quality .quality-info{background:rgba(8,107,133,0.06)!important;color:#475569!important}
html[data-theme="day"] #view-quality .quality-info strong{color:#0f172a!important}
html[data-theme="day"] #view-quality .quality-field{background:rgba(139,86,0,0.1)!important;border:1px solid rgba(43,88,111,0.3)!important;color:#8b5600!important}
html[data-theme="day"] #view-quality .quality-good{color:#087557!important}
html[data-theme="day"] #view-quality .quality-source-note.model{color:#8b5600!important;border-left:3px solid rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-quality .quality-bar.observed>i{background:#e6f1f8!important}
html[data-theme="day"] body.overview-active #cropHeader{--ov-surface:#f8fafc!important;--ov-tile:#f8fafc!important;--ov-border:rgba(43,88,111,0.45)!important;--ov-text:#0f172a!important;--ov-muted:#475569!important;--ov-green:#087557!important;--ov-blue:#086b85!important;--ov-warn:#8b5600!important}
html[data-theme="day"] #view-overview{--ov-surface:#f8fafc!important;--ov-tile:#f8fafc!important;--ov-border:rgba(43,88,111,0.45)!important;--ov-text:#0f172a!important;--ov-muted:#475569!important;--ov-green:#087557!important;--ov-blue:#086b85!important;--ov-warn:#8b5600!important}
html[data-theme="day"] body.overview-active #cropHeader .ov-crop-heading .ov-icon{color:#763fad!important}
html[data-theme="day"] #view-overview .ov-panel{background:linear-gradient(130deg,var(--ov-surface),#f8fafc)!important}
html[data-theme="day"] #view-overview .measure:first-child i{color:#b02b3c!important}
html[data-theme="day"] #view-overview .alert.danger{border-left-color:rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-overview .alert.danger .ai{color:#b02b3c!important}
html[data-theme="day"] #view-overview .bar{background:#f8fafc!important}
html[data-theme="day"] #view-overview .forecast-source{color:#8b5600!important}
html[data-theme="day"] #view-overview .micro-six .cell:first-child .ic{color:#b02b3c!important}
html[data-theme="day"] #view-overview .status-item.err>.ov-icon{color:#b02b3c!important}
html[data-theme="day"] #view-overview .quick-grid a:hover{background:#f8fafc!important}
html[data-theme="day"] #view-compare{--cmp-bg:#f8fafc!important;--cmp-tile:#f8fafc!important;--cmp-border:rgba(43,88,111,0.45)!important;--cmp-text:#0f172a!important;--cmp-muted:#475569!important;--cmp-c0:#087557!important;--cmp-c1:#1d4ed8!important;--cmp-c2:#8b5600!important;--cmp-c3:#086b85!important;--cmp-c4:#b02b3c!important;--cmp-c5:#763fad!important}
html[data-theme="day"] #view-compare .cmp-panel{background:linear-gradient(130deg,var(--cmp-bg),#f8fafc)!important}
html[data-theme="day"] #view-compare .cmp-card{background:linear-gradient(130deg,var(--cmp-bg),#f8fafc)!important}
html[data-theme="day"] #view-compare .cmp-filters{background:linear-gradient(130deg,var(--cmp-bg),#f8fafc)!important}
html[data-theme="day"] #view-compare .cmp-picker[open] .cmp-picker-content{box-shadow:0 12px 30px #475569!important}
html[data-theme="day"] #view-compare .cmp-card-values .ov-icon{color:#b02b3c!important}
html[data-theme="day"] #view-compare .cmp-source{color:#8b5600!important}
html[data-theme="day"] #view-compare .cmp-map-marker span{border:2px solid rgba(43,88,111,0.45)!important;box-shadow:0 2px 6px #475569!important}
html[data-theme="day"] #view-compare .leaflet-tooltip{background:#f8fafc!important;color:#0f172a!important;border:1px solid rgba(43,88,111,0.45)!important;box-shadow:0 2px 8px #475569!important}
html[data-theme="day"] #view-compare .leaflet-tooltip-top:before{border-top-color:rgba(43,88,111,0.45)!important}
html[data-theme="day"] #view-compare .leaflet-popup-content-wrapper{background:#f8fafc!important;color:#0f172a!important}
html[data-theme="day"] #view-compare .leaflet-popup-tip{background:#f8fafc!important;color:#0f172a!important}
html[data-theme="day"] #view-compare .cmp-track{background:#f8fafc!important}
html[data-theme="day"] body{background:linear-gradient(135deg,#eaf4fb,#dfe9f3,#e6edf5)!important;background-attachment:fixed;color:#0f172a}
html[data-theme="day"] .bg-blobs{opacity:.12}
html[data-theme="day"] .app-side,html[data-theme="day"] .app-top{background:#f8fbfd!important;border-color:#c2d4de}
html[data-theme="day"] #view-overview,html[data-theme="day"] body.overview-active #cropHeader{--ov-surface:#ffffff!important;--ov-tile:#f8fafc!important;--ov-border:#bfd3de!important;--ov-text:#0f172a!important;--ov-muted:#475569!important;--ov-green:#087557!important;--ov-blue:#076b9a!important;--ov-warn:#8b5600!important}
html[data-theme="day"] :is(#view-reports,#view-quality,#view-health){color-scheme:light;color:#0f172a!important;--rep-muted:#475569!important;--quality-muted:#475569!important;--health-muted:#475569!important;--health-text:#0f172a!important}
html[data-theme="day"] .hero-weather,html[data-theme="day"] .hero-chip{color:#ffffff!important;background:rgba(3,23,30,.82)!important}
html[data-theme="day"] .hero-weather small,html[data-theme="day"] .hero-chip b{color:#eef8fc!important}
html[data-theme="day"] #view-reports .rep-primary{background:#087557!important;color:#ffffff!important;border-color:#087557!important}
html[data-theme="day"] :is(.bar,.quality-bar,.quality-card-bar)>i,html[data-theme="day"] .rep-coverage-fill{background:#087557!important}
html[data-theme="day"] :is(.bar.warn,.quality-bar.warn)>i{background:#a56800!important}
html[data-theme="day"] :is(.bar.danger,.quality-bar.err)>i{background:#b02b3c!important}
html[data-theme="day"] :is(.dot.on,.quality-dot.ok){background:#087557!important;box-shadow:none!important}
html[data-theme="day"] :is(.dot.stale,.quality-dot.warn){background:#a56800!important}
html[data-theme="day"] :is(.dot.off,.quality-dot.err){background:#b02b3c!important}
html[data-theme="day"] input,html[data-theme="day"] textarea,html[data-theme="day"] select,html[data-theme="day"] option{color:#0f172a;background-color:#ffffff;color-scheme:light}
html[data-theme="day"] #view-overview .forecast-source{color:#8b5600!important}
html[data-theme="day"] :focus-visible{outline-color:#076b9a}
#view-overview .forecast-table .weather-code .ov-icon{width:25px;height:25px;color:#20c9f4}
#view-overview .forecast-table .weather-code.sun .ov-icon{color:#ffcc53}
html[data-theme="day"] #view-overview .forecast-table .weather-code .ov-icon{color:#076b9a}
html[data-theme="day"] #view-overview .forecast-table .weather-code.sun .ov-icon{color:#8b5600}
@media(max-width:760px){.panel-theme-switch{position:fixed;right:10px;top:78px;z-index:115;box-shadow:0 2px 8px rgba(0,0,0,.15)}body .page{padding-top:127px}}
