/* Dashboard-specific, read-only visual layer. No global header or Today overrides. */
.dashboard-page{--dash-bg:#13151b;--dash-line:#32343e;--dash-text:#f3f3f7;--dash-muted:#bec0ca;color:var(--dash-text);max-width:1780px;margin:auto}
.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px}
.dashboard-heading h1{font-size:clamp(26px,2.6vw,38px);line-height:1.15;margin:3px 0 7px;font-weight:730}
.dashboard-heading p{color:var(--dash-muted);font-size:12px;margin:0}
.dashboard-heading .dashboard-overline{color:#ff8293;font-size:10px;letter-spacing:.15em;font-weight:700}
.dashboard-controls{display:flex;gap:8px;align-items:flex-end}
.dashboard-controls label{font-size:11px;color:var(--dash-muted);display:grid;gap:5px}
.dashboard-controls input,.dashboard-controls button,.dashboard-recovery-controls button{border:1px solid var(--dash-line);color:var(--dash-text);background:#1b1d25;border-radius:10px;padding:8px 12px;min-height:44px;font:inherit;font-size:13px}
.dashboard-controls button:focus-visible,.dashboard-controls input:focus-visible,.dashboard-recovery-controls button:focus-visible{outline:2px solid #ff8496;outline-offset:2px}
.dashboard-hero{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:13px}
.dashboard-metric,.dashboard-panel{background:linear-gradient(165deg,#1c1e26,#13161c 80%);border:1px solid var(--dash-line);border-radius:15px;min-width:0;box-shadow:0 12px 35px #00000030}
.dashboard-metric{padding:17px 17px 15px;display:flex;flex-direction:column;gap:11px;position:relative;overflow:hidden}
.dashboard-metric:before{content:"";position:absolute;top:0;left:0;width:42%;height:2px;background:var(--dash-color,#eb566d);opacity:.85}
.dashboard-metric-title{font-size:12px;font-weight:690;color:#e8e8ef}
.dashboard-number{font-size:clamp(21px,2.2vw,34px);font-weight:760;line-height:1.2;display:block;letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-number small{font-size:.41em;letter-spacing:0;color:var(--dash-muted);font-weight:520}
.dashboard-metric-meta{font-size:11px;color:var(--dash-muted);line-height:1.45;overflow-wrap:anywhere}
.dashboard-metric.violet{--dash-color:#a587ee}.dashboard-metric.gold{--dash-color:#e4b953}.dashboard-metric.rose{--dash-color:#fb536b}.dashboard-metric.blue{--dash-color:#70aee9}
.dashboard-layout{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:13px;align-items:stretch}
.dashboard-panel{padding:17px 18px;overflow:hidden}
.dashboard-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;padding-bottom:11px;border-bottom:1px solid #2d313a}
.dashboard-panel-head h2{font-size:15px;font-weight:700;line-height:1.3;margin:0}
.dashboard-panel h3{font-size:12px;font-weight:650;color:#f0eef5;margin:12px 0 9px}
.dashboard-note{color:var(--dash-muted);font-size:11px;line-height:1.5;margin:10px 0 0}
.dashboard-empty{font-size:12px;color:var(--dash-muted);border:1px dashed #454851;padding:14px;border-radius:9px;line-height:1.55;margin:0}
.dashboard-monitor,.dashboard-sleep{grid-column:span 6}
.dashboard-recovery{grid-column:span 7}.dashboard-activity{grid-column:span 5}
.dashboard-nutrition{grid-column:span 5}.dashboard-body{grid-column:span 5}.dashboard-disclaimer{grid-column:span 2}
.dashboard-monitor-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:center}
.dashboard-monitor-head a{font-size:11px;color:#a7c3f9;text-decoration:underline;text-underline-offset:4px}
.dashboard-source-state{font-size:12px;color:#d1d4dd}.dashboard-source-state[data-sync-tone=accent]:before{content:"● ";color:#56d9a1}.dashboard-source-state[data-sync-tone=error]:before,.dashboard-source-state[data-sync-tone=warning]:before{content:"● ";color:#ff9b69}
.dashboard-monitor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:15px}
.dashboard-monitor-grid>div{display:flex;flex-direction:column;gap:5px;padding:10px 7px;background:#ffffff06;border:1px solid #ffffff12;border-radius:9px;min-width:0;overflow-wrap:anywhere}
.dashboard-monitor-grid b{font-size:11px}.dashboard-monitor-grid small{font-size:10px;color:#a8acc0}.dashboard-monitor-grid span{font-size:10px;color:#c5c8d2}
.dashboard-sleep-head{display:flex;align-items:center;gap:20px;justify-content:space-between}
.dashboard-sleep-head>div{display:grid;gap:4px;color:var(--dash-muted);font-size:11px}
.dashboard-sleep-stages{display:grid;grid-template-columns:130px minmax(0,1fr);gap:14px;align-items:center;max-width:100%}
.dashboard-sleep-stages svg{width:125px;max-width:100%;height:auto}
.dashboard-stage-track{fill:none;stroke:#31323d;stroke-width:12}
.dashboard-stage{fill:none;stroke-width:12;stroke-linecap:butt}
.dashboard-stage.slight{stroke:#a995ef}.dashboard-stage.sdeep{stroke:#804fd8}.dashboard-stage.srem{stroke:#64b5f0}.dashboard-stage.sawake{stroke:#f26a84}
.dashboard-sleep-stages dl{margin:0;display:grid;gap:5px}
.dashboard-sleep-stages dl>div{display:flex;justify-content:space-between;gap:9px;align-items:center;font-size:11px;border-bottom:1px solid #ffffff0d;padding-bottom:4px}
.dashboard-sleep-stages dt{color:var(--dash-muted);display:flex;align-items:center;gap:7px}
.dashboard-sleep-stages dt i{width:8px;height:8px;border-radius:50%;display:inline-block;background:var(--accent)}
.dashboard-sleep-stages dt i.slight{background:#a995ef}.dashboard-sleep-stages dt i.sdeep{background:#804fd8}.dashboard-sleep-stages dt i.srem{background:#64b5f0}.dashboard-sleep-stages dt i.sawake{background:#f26a84}
.dashboard-sleep-stages dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.dashboard-recovery-controls{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.dashboard-recovery-controls p{flex:1 1 230px;font-size:11px;color:var(--dash-muted);margin:0}
.dashboard-recovery-controls div{display:flex;gap:5px}
.dashboard-recovery-controls button{font-size:11px;padding:8px 10px}
.dashboard-recovery-controls button[aria-pressed=true]{border-color:#e47a8b;background:#39212e;color:#fff}
.dashboard-recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:11px}
.dashboard-recovery-grid>section{padding:12px;background:#11141b;border:1px solid #2d313a;border-radius:11px;min-width:0}
.dashboard-chart svg{width:100%;height:auto;display:block;min-width:0}
.dashboard-axis{stroke:#626574;stroke-width:.9;fill:none}
.dashboard-plot-line{fill:none;stroke-width:2.5;stroke-linejoin:round}
.dashboard-plot-line.gold{stroke:#e9bb52}.dashboard-plot-line.rose{stroke:#f56c84}.dashboard-plot-line.violet{stroke:#b49af7}
.dashboard-plot-dot.gold{fill:#e9bb52}.dashboard-plot-dot.rose{fill:#f56c84}.dashboard-plot-dot.violet{fill:#b49af7}
.dashboard-plot-bar.gold{fill:#e9bb52}.dashboard-plot-bar.rose{fill:#f56c84}
.dashboard-chart-dates{display:flex;justify-content:space-between;font-size:10px;color:#acafbf;margin-top:-1px}
.dashboard-activity-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dashboard-activity-stats .dashboard-metric,.dashboard-nutrition-stats .dashboard-metric,.dashboard-body-stats .dashboard-metric{padding:11px 12px;box-shadow:none;gap:7px}
.dashboard-activity-stats .dashboard-number,.dashboard-nutrition-stats .dashboard-number,.dashboard-body-stats .dashboard-number{font-size:clamp(17px,1.5vw,25px)}
.dashboard-activity-stats .dashboard-metric-meta{font-size:10px}
.dashboard-actual-list{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:7px}
.dashboard-actual-list li{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#ffffff06;border-radius:9px;padding:10px;font-size:11px;color:var(--dash-muted)}
.dashboard-actual-list b{color:#f5f2f7;overflow-wrap:anywhere}
.dashboard-nutrition-stats,.dashboard-body-stats,.dashboard-body-plots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dashboard-body-plots section{min-width:0}
.dashboard-disclaimer p{font-size:11px;line-height:1.7;color:#c5c6d0;margin:0 0 11px}
.dashboard-disclaimer{border-top:2px solid #d65d72}
.today-dashboard-link{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:9px 12px;border:1px solid #69414d;border-radius:10px;color:#ff9aab;font-size:12px;font-weight:650;text-decoration:none;margin-left:auto}
.today-dashboard-link:focus-visible{outline:2px solid #ff9aab;outline-offset:2px}
@media(max-width:1365px){
 .dashboard-hero{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-monitor,.dashboard-sleep,.dashboard-recovery,.dashboard-activity,.dashboard-nutrition,.dashboard-body{grid-column:span 6}
 .dashboard-disclaimer{grid-column:span 12}
 .dashboard-activity-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-activity-stats .dashboard-metric:last-child{grid-column:span 2}
}
@media(max-width:950px){
 .dashboard-layout{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-monitor,.dashboard-sleep,.dashboard-recovery,.dashboard-activity,.dashboard-nutrition,.dashboard-body,.dashboard-disclaimer{grid-column:span 2}
 .dashboard-recovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .dashboard-heading{align-items:stretch;flex-direction:column}
 .dashboard-controls{justify-content:space-between}
 .dashboard-hero{gap:9px}
 .dashboard-metric{padding:13px 11px;gap:8px}
 .dashboard-number{font-size:24px}
 .dashboard-metric-meta{font-size:10px}
 .dashboard-panel{padding:14px 12px}
 .dashboard-monitor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-recovery-grid{grid-template-columns:1fr}
 .dashboard-sleep-stages{grid-template-columns:100px minmax(0,1fr);gap:8px}
 .dashboard-sleep-stages svg{width:100px}
 .dashboard-sleep-stages dd,.dashboard-sleep-stages dt{font-size:10px}
 .dashboard-activity-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-nutrition-stats,.dashboard-body-stats{gap:7px}
}
@media(max-width:340px){
 .dashboard-hero{grid-template-columns:1fr}
 .dashboard-activity-stats{grid-template-columns:1fr}
 .dashboard-activity-stats .dashboard-metric:last-child{grid-column:auto}
 .dashboard-sleep-stages{grid-template-columns:1fr}
 .dashboard-sleep-stages svg{margin:auto}
}
@media(forced-colors:active){
 .dashboard-panel,.dashboard-metric,.dashboard-recovery-grid>section{border:1px solid CanvasText;box-shadow:none}
 .dashboard-plot-line,.dashboard-plot-bar,.dashboard-plot-dot,.dashboard-stage{forced-color-adjust:auto;stroke:CanvasText;fill:none}
 .dashboard-chart svg{color:CanvasText}
}
@media(prefers-reduced-motion:reduce){.dashboard-page *{scroll-behavior:auto;transition:none}}
