:root{--pine:#143b31;--pine-2:#1c5141;--pine-deep:#102c27;--ink:#1b2825;--muted:#6d7973;--border:#e5eae4;--cream:#f6f8f5;--white:#fff;--amber:#d49e45;--pale:#eaf2ed;--shadow:0 14px 36px rgba(25,60,46,.045);font-family:'Segoe UI',Inter,-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:not-allowed}a{color:#1f614d}a:hover{text-decoration:none}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:29px;line-height:1.18;letter-spacing:-.9px;margin-bottom:9px;font-weight:720}h2{font-size:19px;letter-spacing:-.45px}h3{font-size:17px;letter-spacing:-.35px;margin-bottom:7px}p{line-height:1.6}.muted,.subtitle{color:var(--muted)}.subtitle{font-size:14px;margin-bottom:0}.eyebrow,.control-label{font-size:10px;letter-spacing:1.45px;font-weight:800;color:#428063}.eyebrow{margin-bottom:10px}.eyebrow.inverse{color:#e5c489}.demo-ribbon{position:fixed;z-index:40;top:0;left:0;right:0;height:25px;line-height:25px;background:#e6c57f;color:#4e3816;text-align:center;font-size:10px;letter-spacing:1.4px;font-weight:850}.login-screen,.app-shell{margin-top:25px;min-height:calc(100vh - 25px)}
.login-screen{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(430px,.96fr);background:white}.login-story{padding:45px 58px 40px;background:radial-gradient(circle at 80% 70%,#2f654f 0,transparent 48%),linear-gradient(145deg,#103129,#1c473a);color:white;display:flex;flex-direction:column;min-height:calc(100vh - 25px);position:relative;overflow:hidden}.login-story:before{content:'';position:absolute;right:-230px;bottom:-340px;width:670px;height:670px;border-radius:50%;border:1px solid #a0c8b332;box-shadow:0 0 0 95px #a0c8b30b,0 0 0 190px #a0c8b306;pointer-events:none}.story-brand{display:flex;gap:14px;align-items:center;position:relative;z-index:1}.sun-logo{width:43px;height:43px;display:flex;color:#e7bd69}.sun-logo svg{width:43px}.story-brand b{font-size:17px;letter-spacing:.1px}.brand-cross{color:#dcaf60}.story-brand small{display:block;color:#c0d5ca;font-size:11px;margin-top:4px}.story-center{position:relative;z-index:1;margin:auto 0;padding:95px 0 65px}.story-center h1{font-size:clamp(45px,4.2vw,69px);line-height:1.14;letter-spacing:-2.8px;font-weight:680}.story-center em{font-style:normal;color:#f2d3a0}.story-center p{max-width:450px;color:#d1e1d8;font-size:15px;line-height:1.8;margin-top:22px}.story-line{margin-top:38px;width:min(100%,580px);height:145px;opacity:.9}.story-line svg{width:100%;height:100%}.story-bottom{font-size:11px;color:#bdccbf;position:relative;z-index:1}.story-bottom span{margin:0 6px}.login-panel{display:flex;align-items:center;justify-content:center;padding:45px}.login-card{width:min(100%,410px)}.login-mobile-brand{display:none}.mini-tag{display:inline-flex;padding:7px 11px;background:var(--pale);color:#376c50;font-weight:750;letter-spacing:1.3px;font-size:10px;border-radius:50px}.login-card h2{font-size:34px;letter-spacing:-1.2px;line-height:1.2;margin:24px 0 12px}.login-card>p{font-size:14px}.form-label{display:block;font-size:12px;color:#485950;font-weight:700;margin:27px 0 10px}.role-switch{display:flex;background:#f2f6f2;padding:5px;border-radius:10px;gap:5px}.role-button{flex:1;border:none;border-radius:8px;padding:11px;background:transparent;color:#566a5f;font-weight:700;font-size:13px}.role-button.selected{background:#fff;color:var(--pine);box-shadow:0 2px 8px #00000012}.password-wrap{display:flex;border:1px solid #dbe3dc;border-radius:10px;overflow:hidden;background:#fff}.password-wrap:focus-within{border-color:#40765b;box-shadow:0 0 0 3px #8ebca524}.password-wrap input{border:0;outline:0;flex:1;min-width:0;padding:14px 13px}.icon-button{border:0;background:transparent;font-size:12px;font-weight:700;color:#536f61;padding:0 16px}.primary-button,.secondary-button,.light-button,.mini-button,.text-button{border-radius:8px;font-size:13px;font-weight:730;transition:background .15s,border .15s}.primary-button{display:inline-flex;justify-content:center;align-items:center;gap:12px;border:1px solid var(--pine);background:var(--pine);color:#fff;padding:12px 16px}.primary-button:hover:not(:disabled){background:#235843}.primary-button.full{width:100%;justify-content:space-between;padding:15px 17px;margin-top:20px}.primary-button.small{padding:10px 15px}.secondary-button{border:1px solid #c7d6cb;background:white;color:#295842;padding:10px 15px}.secondary-button:hover{background:#eff5ef}.light-button{border:1px solid #e1e6e1;background:white;color:#455a4e;padding:9px 13px}.light-button:hover{background:#f5f8f4}.demo-creds{padding:18px;background:#f6f8f4;border-radius:9px;margin-top:22px;display:flex;gap:8px;flex-direction:column}.demo-creds div{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#607064}.demo-creds code{font-family:Consolas,monospace;color:#224e3b;font-weight:700}.security-note{color:#839087!important;font-size:11px!important;line-height:1.65!important;margin-top:18px}.form-error{font-size:12px;color:#b63a3a;margin:8px 0 0}
.app-shell{display:flex;background:var(--cream)}.sidebar{width:238px;flex:none;position:sticky;top:25px;align-self:flex-start;height:calc(100vh - 25px);background:var(--pine-deep);color:#f1f8f0;padding:29px 16px 18px;display:flex;flex-direction:column;z-index:30}.sidebar-brand{display:flex;gap:10px;align-items:center;padding:4px 12px 42px}.sidebar-sun{font-size:28px;color:#dfbb6b}.sidebar-brand strong{font-size:13px;white-space:nowrap;letter-spacing:.1px}.sidebar-brand strong span{color:#d5b879}.sidebar-brand small{display:block;color:#acc7b9;margin-top:6px;font-size:11px}.sidebar-section-label{font-size:10px;letter-spacing:1.4px;color:#86a898;font-weight:700;padding:0 13px 14px}.nav-list{display:flex;flex-direction:column;gap:6px}.nav-item{border:0;width:100%;background:transparent;color:#c4d7cd;text-align:left;display:flex;gap:14px;align-items:center;border-radius:9px;padding:13px 14px;font-size:13px;font-weight:620}.nav-item:hover,.nav-item.active{background:#2b5748;color:#fff}.nav-item.active:before{content:'';position:absolute;left:1px;height:26px;width:3px;border-radius:4px;background:#e7be72}.nav-icon{width:19px;font-size:21px;line-height:1;text-align:center;font-weight:500}.sidebar-spacer{flex:1}.sidebar-bottom{padding:10px 9px}.sidebar-project{padding:16px 8px;border-top:1px solid #ffffff1e;display:flex;gap:11px;align-items:center}.project-dot{width:9px;height:9px;border-radius:50%;background:#dfb55c;box-shadow:0 0 0 4px #dfb55c25}.sidebar-project strong{font-size:12px;font-weight:700}.sidebar-project small{display:block;color:#b4cabc;font-size:11px;margin-top:4px}.sidebar-version{font-size:9px;letter-spacing:1.25px;color:#88a395;margin-top:18px;text-align:center}.app-main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:79px;flex:none;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 33px;gap:15px}.topbar-title{display:flex;flex-direction:column;gap:5px}.topbar-pre{font-size:9px;font-weight:850;color:#679276;letter-spacing:1.4px}.topbar-title b{font-size:15px}.topbar-actions{display:flex;align-items:center;gap:11px}.demo-badge{font-size:11px;background:#fff6e1;color:#906520;padding:8px 11px;border-radius:30px;font-weight:750;white-space:nowrap}.status-dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:#9dc17c;margin-right:5px}.demo-badge .status-dot{background:#dcad50}.user-badge{border-left:1px solid var(--border);padding-left:14px;color:#587364;font-size:12px;font-weight:800}.mobile-menu{display:none}.content{padding:36px 35px 55px;width:100%;max-width:1540px;margin:0 auto;flex:1}.heading-row{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:30px}.publish-info{display:flex;gap:12px;align-items:center;background:#edf5ed;border:1px solid #dbeadd;border-radius:10px;padding:11px 16px;min-width:235px}.publish-symbol{width:32px;height:32px;border-radius:50%;background:#d0e6d3;display:grid;place-items:center;color:#2f7652;font-weight:850}.publish-info b{font-size:12px;display:block}.publish-info small{font-size:10px;color:#708479;display:block;margin-top:5px}.selection-panel,.chart-card,.table-card,.download-card,.upload-card{background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow)}.selection-panel{padding:22px 23px 24px}.selection-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:23px}.control-label{display:block;margin-bottom:10px;color:#7b8c80}.week-control{display:flex;align-items:center;gap:13px}.week-control strong{font-size:15px;white-space:nowrap}.mini-button{border:1px solid #dce5dd;background:#fff;color:#4f6e58;width:32px;height:32px;padding:0;font-size:16px}.mini-button:hover:not(:disabled){background:#edf4ed}.horizon-tabs{background:#eef4ef;border-radius:9px;padding:4px;display:flex;gap:2px}.horizon-tabs button{background:transparent;border:0;border-radius:7px;color:#607666;padding:9px 15px;white-space:nowrap;font-size:12px;font-weight:800}.horizon-tabs button.active{color:#fff;background:var(--pine);box-shadow:0 3px 6px #153e3030}.day-cards{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.day-card{border:1px solid #e2e8e2;background:#fff;border-radius:11px;padding:15px 12px 14px;text-align:left;min-height:118px;transition:border .15s,transform .15s,background .15s}.day-card:hover{transform:translateY(-2px);border-color:#a3c4ac}.day-card.active{border:2px solid #265d47;padding:14px 11px 13px;background:#f2f8f2}.day-name{display:block;color:#718173;font-size:11px;font-weight:750;letter-spacing:.35px}.day-date{display:block;margin-top:8px;font-size:21px;letter-spacing:-.6px;color:#21372a;font-weight:760}.day-status{display:flex;align-items:center;gap:6px;margin-top:14px;font-size:10px;color:#6f8a73;font-weight:750}.day-status i{width:6px;height:6px;background:#4a9b68;border-radius:50%}.section-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:32px 0 17px}.section-row h2{margin:0;font-size:21px}.section-row .eyebrow{margin-bottom:7px}.soft-pill{display:flex;align-items:center;background:#e8f2eb;border-radius:50px;color:#37674a;font-size:11px;font-weight:750;padding:9px 12px}.metrics-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;margin-bottom:20px}.metric-card{border:1px solid var(--border);border-radius:12px;background:white;padding:19px 17px 17px;box-shadow:var(--shadow);min-width:0}.metric-card .metric-label{display:block;color:#7b887f;font-size:11px;font-weight:720;margin-bottom:10px;white-space:nowrap}.metric-card .metric-value{display:block;font-size:27px;line-height:1.1;letter-spacing:-.8px;font-weight:750;color:#1a4333;white-space:nowrap}.metric-card .metric-unit{font-size:11px;color:#7a8c81;display:block;margin-top:8px}.chart-card{padding:23px 24px 15px;margin-bottom:20px}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}.panel-header h3{margin-bottom:5px}.panel-header p{color:#88938a;font-size:11px;margin:0}.legend{display:flex;gap:18px;align-items:center;font-size:11px;color:#52695c;font-weight:650}.legend span{white-space:nowrap}.line-key{display:inline-block;width:19px;vertical-align:middle;margin-right:7px;border-top:3px solid}.line-key.actual{border-color:var(--pine-2)}.line-key.predicted{border-color:var(--amber);border-top-style:dashed}.chart-frame{width:100%;position:relative}.chart-frame svg{display:block;width:100%;height:auto;max-height:345px;min-height:250px}.axis-text{font:11px 'Segoe UI',Arial,sans-serif;fill:#92a197}.gridline{stroke:#e8eee9;stroke-width:1}.chart-tooltip{position:absolute;z-index:8;pointer-events:none;min-width:140px;padding:10px 12px;background:#1e3d32;color:#fff;box-shadow:0 7px 18px #1a3c3450;border-radius:7px;font-size:11px;line-height:1.8}.chart-footer{display:flex;justify-content:space-between;border-top:1px solid #eff3ef;padding-top:12px;color:#9aa59b;font-size:10px}.table-card{overflow:hidden}.table-card>.panel-header{padding:21px 24px 16px;margin-bottom:0}.header-actions,.button-row{display:flex;gap:8px;align-items:center}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}thead{background:#f8faf7}th{font-size:10px;letter-spacing:.9px;font-weight:850;color:#8a978d;padding:15px 24px;border-top:1px solid #eff1ee;border-bottom:1px solid #eff1ee}td{font-size:12px;color:#435348;padding:15px 24px;border-bottom:1px solid #f0f3ee}td.actual-cell{color:#24523f;font-weight:730}td.pred-cell{color:#96692c;font-weight:730}tbody tr:hover{background:#f7faf7}.table-bottom{padding:15px 24px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8c9a8d;gap:12px}.text-button{padding:8px 0;border:none;background:transparent;color:#2c7550}.text-button:hover{text-decoration:underline}.text-button.danger{color:#aa514d;display:block;margin-top:10px}.footer{padding:16px 35px 22px;display:flex;justify-content:space-between;gap:14px;color:#9ba79e;font-size:10px;max-width:1540px;width:100%;margin:0 auto}.page{animation:pageIn .2s ease}@keyframes pageIn{from{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:none}}
.condensed{margin-top:0}.weekly-bars{min-height:245px;display:grid;grid-template-columns:repeat(7,1fr);gap:20px;align-items:end;padding:24px 25px 16px}.bar-item{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:10px}.bar-value{font-size:11px;color:#607367;font-weight:750}.bar-track{height:165px;width:min(100%,64px);background:#f3f7f2;display:flex;align-items:flex-end;border-radius:8px 8px 4px 4px;overflow:hidden}.bar-fill{background:linear-gradient(180deg,#6fa080,#245d43);width:100%;border-radius:7px 7px 0 0;min-height:3px}.bar-day{color:#677c6e;font-size:11px;font-weight:750}.download-grid,.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}.download-card,.upload-card{padding:26px}.download-icon,.upload-icon{height:45px;width:45px;border-radius:11px;display:grid;place-items:center;background:#eaf4ea;color:#386a4b;font-size:24px;margin-bottom:24px}.download-card h3,.upload-card h3{font-size:19px}.download-card p,.upload-card p{color:#809086;font-size:13px;max-width:380px}.download-card .button-row{margin-top:25px}.notice-card{background:#eff5ef;border:1px solid #dbe8dd;padding:20px 23px;border-radius:10px}.notice-card strong{font-size:13px;color:#2b5c40}.notice-card p{color:#6b806e;font-size:12px;margin:7px 0}.security-alert{border:1px solid #eed8a9;background:#fff9ec;border-radius:11px;padding:17px 19px;display:flex;gap:13px;margin-bottom:20px;color:#8c6b2b}.security-alert>span{font-size:19px}.security-alert strong{font-size:13px}.security-alert p{font-size:12px;color:#866e42;margin:5px 0 0}.upload-label{display:inline-flex;cursor:pointer;background:var(--pine);color:#fff;border-radius:8px;padding:12px 17px;font-size:12px;font-weight:750;margin:12px 0}.upload-label:hover{background:#235843}#uploadCsv{display:none}.upload-hint{font-size:11px!important;color:#788a7d}.upload-preview{max-height:140px;overflow:auto;background:#f7faf6;padding:10px 13px;margin:12px 0;border-radius:9px;font-size:11px;color:#476450;white-space:pre-wrap}.upload-card #publishCsv{margin-top:14px}.about-dialog{width:min(550px,calc(100vw - 30px));max-height:86vh;overflow:auto;border:1px solid #e0e8df;border-radius:16px;padding:29px 33px 30px;box-shadow:0 25px 100px #0a281f3d;color:var(--ink)}.about-dialog::backdrop{background:#0c2f29a8}.about-dialog h2{font-size:25px}.about-dialog h3{font-size:14px;margin-bottom:8px}.about-dialog p{font-size:12px;color:#63766a;line-height:1.8}.about-dialog hr{border:0;border-top:1px solid #e5ebe4;margin:18px 0}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.modal-icon{height:35px;width:35px;background:#e8f2e9;color:#2f6f4b;border-radius:9px;font-size:24px;text-align:center;line-height:35px}.modal-close{background:#f7faf6;border:none;border-radius:8px;padding:8px 12px;color:#547063}.about-disclaimer{padding:12px;background:#fff5dc;border-radius:8px;font-size:11px;color:#8a652a}.toast{position:fixed;right:24px;bottom:24px;z-index:90;background:#234e3c;color:#fff;font-size:12px;border-radius:9px;padding:14px 18px;box-shadow:0 12px 35px #0003;max-width:340px}
@media(max-width:1270px){.day-cards{gap:7px}.day-card{padding:12px 8px}.day-card.active{padding:11px 7px}.metric-card{padding:15px 12px}.metric-card .metric-value{font-size:23px}.sidebar{width:215px}.content{padding:28px 24px 40px}}
@media(max-width:1080px){.day-cards{grid-template-columns:repeat(4,1fr)}.metrics-grid{grid-template-columns:repeat(3,1fr)}.selection-head{align-items:start}.topbar{padding:0 18px}.sidebar{width:205px}.topbar-title b{font-size:13px}.topbar-pre{font-size:8px}}
@media(max-width:800px){.login-screen{grid-template-columns:1fr}.login-story{display:none}.login-panel{min-height:calc(100vh - 25px);padding:25px}.login-mobile-brand{display:block;color:#245844;font-size:13px;font-weight:800;margin-bottom:25px}.sidebar{position:fixed;top:25px;bottom:0;left:-250px;width:238px;transition:left .2s;box-shadow:20px 0 40px #0002}.sidebar.mobile-open{left:0}.mobile-menu{display:block;border:0;background:transparent;font-size:21px;color:#335745}.topbar{gap:12px}.topbar-actions{gap:7px}.topbar-actions .signout{padding:9px}.topbar-title .topbar-pre{display:none}.content{padding:24px 16px 34px}.publish-info{display:none}.selection-head{flex-direction:column;gap:18px}.heading-row{margin-bottom:24px}.day-cards{grid-template-columns:repeat(4,1fr)}.metrics-grid{grid-template-columns:repeat(3,1fr)}.chart-card{padding:17px 14px}.table-card>.panel-header{padding:17px 14px}.footer{padding:15px 18px;flex-direction:column;gap:5px}}
@media(max-width:530px){.topbar{height:67px}.topbar-title b{font-size:12px}.topbar-actions .user-badge,.topbar-actions .demo-badge,.topbar-actions .light-button span{display:none}.topbar-actions .light-button{padding:7px 9px}.heading-row h1{font-size:24px}.day-cards{grid-template-columns:repeat(4,1fr);gap:6px}.day-card{min-height:95px;padding:10px 7px}.day-card.active{padding:9px 6px}.day-date{font-size:18px}.day-name,.day-status{font-size:9px}.day-status{margin-top:10px}.selection-panel{padding:18px 13px}.metrics-grid{grid-template-columns:repeat(2,1fr);gap:9px}.metric-card .metric-value{font-size:25px}.section-row{align-items:start}.section-row h2{font-size:17px}.soft-pill{font-size:10px}.panel-header{align-items:start;flex-direction:column}.chart-frame svg{min-height:210px}.chart-footer{align-items:start;gap:8px;flex-direction:column}.weekly-bars{gap:7px;padding:20px 4px}.download-grid,.admin-grid{grid-template-columns:1fr}.footer{font-size:9px}.table-heading{flex-direction:column}.login-card h2{font-size:29px}}


/* =========================================
   Theme toggle (present in both themes)
   ========================================= */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 730;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}
.theme-toggle:hover { background: var(--pale); }
.theme-toggle:focus-visible { outline: 2px solid #65d6a5; outline-offset: 3px; }
.theme-icon { font-size: 16px; line-height: 1; }
.login-panel { position: relative; }
.login-theme-toggle { position: absolute; top: 28px; right: 28px; z-index: 2; }
:root { --chart-actual: #1c5b45; }

/* =========================================
   Dark theme - default on first visit
   ========================================= */
:root[data-theme="dark"] {
  color-scheme: dark;
  --pine: #286e51;
  --pine-2: #65d6a5;
  --pine-deep: #10241d;
  --ink: #e8f3ee;
  --muted: #a6b9af;
  --border: #2d4238;
  --cream: #0b1412;
  --white: #14231f;
  --amber: #e3bc71;
  --pale: #20362a;
  --shadow: 0 12px 32px rgba(0,0,0,.18);
  --chart-actual: #65d6a5;
  background: var(--cream);
}
:root[data-theme="dark"] body,
:root[data-theme="dark"] .app-shell,
:root[data-theme="dark"] .login-screen,
:root[data-theme="dark"] .login-panel {
  background: var(--cream);
  color: var(--ink);
}
:root[data-theme="dark"] .sidebar { background: #10241d; }
:root[data-theme="dark"] .nav-item:hover,
:root[data-theme="dark"] .nav-item.active { background: #285344; }
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .selection-panel,
:root[data-theme="dark"] .chart-card,
:root[data-theme="dark"] .table-card,
:root[data-theme="dark"] .download-card,
:root[data-theme="dark"] .upload-card,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .about-dialog {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border);
}
:root[data-theme="dark"] .day-card {
  background: #182b24;
  border-color: var(--border);
  color: var(--ink);
}
:root[data-theme="dark"] .day-card:hover { border-color: #65d6a5; }
:root[data-theme="dark"] .day-card.active {
  background: #214736;
  border-color: #65d6a5;
}
:root[data-theme="dark"] .day-date,
:root[data-theme="dark"] .metric-card .metric-value { color: #e8f3ee; }
:root[data-theme="dark"] .day-date small { color: #a6b9af !important; }
:root[data-theme="dark"] .day-name,
:root[data-theme="dark"] .day-status,
:root[data-theme="dark"] .metric-card .metric-label,
:root[data-theme="dark"] .metric-card .metric-unit,
:root[data-theme="dark"] .control-label,
:root[data-theme="dark"] .panel-header p,
:root[data-theme="dark"] .legend,
:root[data-theme="dark"] .chart-footer,
:root[data-theme="dark"] .table-bottom,
:root[data-theme="dark"] .bar-day,
:root[data-theme="dark"] .bar-value {
  color: #a6b9af;
}
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .topbar-pre { color: #79cc9e; }
:root[data-theme="dark"] .publish-info,
:root[data-theme="dark"] .soft-pill,
:root[data-theme="dark"] .horizon-tabs,
:root[data-theme="dark"] .notice-card,
:root[data-theme="dark"] .role-switch,
:root[data-theme="dark"] .demo-creds,
:root[data-theme="dark"] .upload-preview,
:root[data-theme="dark"] .mini-tag {
  background: #203a2d;
  border-color: var(--border);
  color: #c9e0d2;
}
:root[data-theme="dark"] .publish-info { min-width: 220px; }
:root[data-theme="dark"] .publish-info b { color: #e8f3ee; }
:root[data-theme="dark"] .publish-info small { color: #a8c4b5; }
:root[data-theme="dark"] .notice-card strong,
:root[data-theme="dark"] .notice-card p,
:root[data-theme="dark"] .download-card p,
:root[data-theme="dark"] .upload-card p,
:root[data-theme="dark"] .upload-hint { color: #adc5b6; }
:root[data-theme="dark"] .download-icon,
:root[data-theme="dark"] .upload-icon,
:root[data-theme="dark"] .modal-icon { background: #28503b; color: #8ae7b6; }
:root[data-theme="dark"] .horizon-tabs button { color: #b9d0c1; }
:root[data-theme="dark"] .horizon-tabs button.active { background: #286e51; color: #fff; }
:root[data-theme="dark"] .mini-button,
:root[data-theme="dark"] .light-button,
:root[data-theme="dark"] .secondary-button,
:root[data-theme="dark"] .modal-close,
:root[data-theme="dark"] .icon-button {
  background: #20392c;
  color: #e2f0e7;
  border-color: #365242;
}
:root[data-theme="dark"] .mini-button:hover:not(:disabled),
:root[data-theme="dark"] .light-button:hover,
:root[data-theme="dark"] .secondary-button:hover { background: #2b4d3a; }
:root[data-theme="dark"] .primary-button,
:root[data-theme="dark"] .upload-label { background: #286e51; border-color: #286e51; color: #fff; }
:root[data-theme="dark"] .primary-button:hover:not(:disabled),
:root[data-theme="dark"] .upload-label:hover { background: #347d5e; }
:root[data-theme="dark"] .role-button { color: #b3ccbc; }
:root[data-theme="dark"] .role-button.selected { background: #2b5941; color: #fff; }
:root[data-theme="dark"] .password-wrap { background: #1a3025; border-color: var(--border); }
:root[data-theme="dark"] .password-wrap input { background: transparent; color: #e8f3ee; }
:root[data-theme="dark"] .password-wrap input::placeholder { color: #8aa493; }
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .demo-creds div { color: #bcd0c2; }
:root[data-theme="dark"] .demo-creds code,
:root[data-theme="dark"] .text-button { color: #85dbac; }
:root[data-theme="dark"] .security-note { color: #9eafa5 !important; }
:root[data-theme="dark"] .security-note strong { color: #dceadf; }
:root[data-theme="dark"] .form-error { color: #ff9b95; }
:root[data-theme="dark"] .demo-badge { background: #48371d; color: #e8ca88; }
:root[data-theme="dark"] .user-badge { color: #c8dacd; }
:root[data-theme="dark"] .soft-pill { color: #cae4d1; }
:root[data-theme="dark"] .chart-footer,
:root[data-theme="dark"] .about-dialog hr { border-color: var(--border); }
:root[data-theme="dark"] .axis-text { fill: #acc2b4; }
:root[data-theme="dark"] .gridline { stroke: #30483b; }
:root[data-theme="dark"] .line-key.actual { border-color: var(--chart-actual); }
:root[data-theme="dark"] .line-key.predicted { border-color: #e3bc71; }
:root[data-theme="dark"] thead { background: #1a3228; }
:root[data-theme="dark"] th { color: #bed0c1; border-color: var(--border); }
:root[data-theme="dark"] td { color: #dae8df; border-color: var(--border); }
:root[data-theme="dark"] td.actual-cell { color: #87e1ad; }
:root[data-theme="dark"] td.pred-cell { color: #e3bc71; }
:root[data-theme="dark"] tbody tr:hover { background: #203a2d; }
:root[data-theme="dark"] .bar-track { background: #20392d; }
:root[data-theme="dark"] .bar-fill { background: linear-gradient(180deg,#65d6a5,#286e51); }
:root[data-theme="dark"] .security-alert { background: #362d1d; border-color: #65532c; color: #e8ca88; }
:root[data-theme="dark"] .security-alert p { color: #d9c29a; }
:root[data-theme="dark"] .upload-preview { color: #c6dfcd; }
:root[data-theme="dark"] .about-dialog p { color: #b9ccc0; }
:root[data-theme="dark"] .about-disclaimer { background: #3f331c; color: #efd39b; }
:root[data-theme="dark"] .footer { color: #9db3a4; }
:root[data-theme="dark"] .mobile-menu { color: #e2f0e7; }
:root[data-theme="dark"] .login-mobile-brand { color: #9cdbb5; }
:root[data-theme="dark"] .theme-toggle { background: #20392c; border-color: #365242; color: #e2f0e7; }
:root[data-theme="dark"] .theme-toggle:hover { background: #2b4d3a; }

@media(max-width: 530px) {
  .theme-toggle { padding: 8px 9px; }
  .topbar .theme-toggle .theme-label { display: none; }
  .login-theme-toggle { right: 18px; top: 16px; }
}



/* Remove background tracks from weekly RMSE bars */
.bar-track {
    background: transparent !important;
}
