.home-dashboard{display:grid;gap:18px;max-width:1600px;margin:0 auto;color:var(--text)}
.home-demo-banner{padding:12px 16px;border:1px solid #efd99f;border-radius:10px;background:#fff8e6;color:#77521f;font-size:14px;line-height:1.5}
@media(max-width:640px){.home-demo-banner{padding:10px 12px;font-size:13px}}
.home-dashboard h1{margin:0;font-size:28px;letter-spacing:-.6px}.home-dashboard h2{margin:0;font-size:19px}.home-dashboard p{margin:0}.home-heading,.home-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.home-controls{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.home-select-label{display:grid;gap:4px;font-size:12px;color:var(--muted)}.home-select-label select{height:37px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:7px 28px 7px 10px;color:var(--text)}.home-market-tag{padding:8px 10px;border-radius:8px;background:var(--surface);border:1px solid var(--line);font-size:13px}.home-small{display:block;color:var(--muted);font-size:12px;line-height:1.45}.home-heading>.home-small,.home-panel-heading .home-small{margin-top:4px}.home-panel{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:20px}.home-panel-heading{margin-bottom:14px}.home-switch{display:flex;gap:3px;padding:3px;border-radius:9px;background:var(--surface-soft);border:1px solid var(--line);max-width:100%}.home-switch button{font:inherit;font-size:12px;padding:7px 12px;border:0;border-radius:6px;background:transparent;color:var(--muted);white-space:nowrap}.home-switch button[aria-pressed="true"]{color:#fff;background:#233247}.home-chart{min-height:235px}.home-chart-svg{width:100%;height:auto;display:block;min-height:170px;max-height:315px;overflow:visible}.home-chart-svg text{font-size:12px;fill:var(--muted);font-family:inherit}.home-chart-grid{stroke:var(--line);stroke-width:1}.home-chart-line{stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.home-chart-series-0{stroke:#2293e9}.home-chart-series-1{stroke:#99d0f5}.home-chart-point{fill:var(--surface);stroke-width:2}.home-chart-legend{display:flex;gap:22px;flex-wrap:wrap;font-size:13px;margin:12px 0 19px}.home-chart-legend span{display:flex;gap:7px;align-items:center}.home-chart-legend i{width:22px;height:3px;background:#2293e9;border-radius:4px}.home-chart-legend span+span i{background:#99d0f5}.home-chart-totals{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid var(--line);padding-top:16px}.home-chart-totals>div{display:grid;gap:5px}.home-chart-totals>div+div{padding-left:24px;border-left:1px solid var(--line)}.home-chart-totals span{font-size:13px;color:var(--muted)}.home-chart-totals strong{font-size:30px;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.home-chart-totals small{font-size:12px;color:var(--muted)}.home-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.home-metric{padding:17px;background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0}.home-label{color:var(--muted);font-size:13px}.home-metric-value{display:block;font-size:25px;font-variant-numeric:tabular-nums;margin:6px 0;overflow-wrap:anywhere}.home-summary-comparison{display:grid;gap:2px;border-top:1px solid var(--line);padding-top:10px;margin-top:12px;font-size:12px}.home-summary-comparison>small{color:var(--muted);font-size:11px}.home-warning{font-size:11px;color:#976321;margin-top:5px!important}.home-status{display:flex;align-items:start;gap:8px;padding:10px 12px;background:var(--surface-soft);border:1px solid var(--line);border-radius:9px;font-size:12px;color:var(--muted)}.home-status-dot{width:7px;height:7px;border-radius:50%;background:var(--amber);flex:0 0 7px;margin-top:5px}.home-status p+p{margin-top:3px}.home-loading,.home-empty{display:grid;place-items:center;min-height:140px;padding:24px;text-align:center;color:var(--muted);font-size:13px;line-height:1.6}.home-loading{min-height:65px;background:var(--surface-soft);border-radius:10px}.home-positive{color:#237546}.home-negative{color:var(--red)}.home-delta-unknown{color:var(--muted)}.home-comparison-note{margin-top:-9px!important}.home-top-scroll{max-height:450px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:9px}.home-top-table{width:100%;min-width:860px;border-collapse:separate;border-spacing:0;font-size:13px}.home-top-table thead th{position:sticky;top:0;z-index:1;background:var(--surface-soft);color:var(--muted);padding:12px 14px;text-align:right;border-bottom:1px solid var(--line);font-size:12px;height:44px;white-space:nowrap}.home-top-table th:first-child{text-align:left;min-width:235px}.home-top-table tbody tr{height:80px}.home-top-table td{padding:11px 14px;border-bottom:1px solid var(--line);background:var(--surface);vertical-align:middle}.home-top-table tbody tr:last-child td{border-bottom:0}.home-product{display:flex;gap:10px;align-items:center;min-height:80px;max-width:340px}.home-product>div{min-width:0}.home-product strong{display:block;font-size:13px;overflow-wrap:anywhere}.home-product small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.home-rank{width:18px;flex:0 0 18px;color:var(--muted);font-size:12px}.home-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.home-number strong{display:block;font-size:14px}.home-number small{display:block;font-size:11px;margin-top:3px}.home-previous{color:var(--muted)}.home-top-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted);padding:9px 0}.home-stock-list{display:grid}.home-stock-row{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-top:1px solid var(--line)}.home-stock-row strong{font-size:13px}.home-stock-row small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.home-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted)}
@media(max-width:1050px){.home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.home-metric-value{font-size:24px}.home-top-scroll{max-height:450px}}
@media(max-width:640px){.home-dashboard{gap:14px}.home-panel{padding:15px}.home-dashboard h1{font-size:24px}.home-dashboard h2{font-size:17px}.home-controls{width:100%;gap:7px}.home-controls>.btn{margin-left:auto}.home-select-label select{max-width:100%}.home-chart{min-height:160px}.home-chart-svg{min-height:160px}.home-chart-totals strong{font-size:23px}.home-chart-totals>div+div{padding-left:15px}.home-metrics{gap:8px}.home-metric{padding:13px}.home-metric-value{font-size:22px}.home-chart-legend{font-size:12px;gap:12px}.home-panel-heading .home-switch{max-width:100%;overflow:auto}.home-top-scroll{max-height:450px}.home-stock-row{gap:12px}.home-footer{font-size:11px}.home-summary-comparison{font-size:11px}}
@media(max-width:380px){.home-metrics{grid-template-columns:1fr}.home-chart-totals{grid-template-columns:1fr}.home-chart-totals>div+div{padding:14px 0 0;border-left:0;border-top:1px solid var(--line)}.home-controls>.btn{margin-left:0}}
@media(pointer:coarse){.home-switch button,.home-controls button,.home-select-label select{min-height:44px}}
.home-top-scroll{max-height:464px}.home-top-table tbody tr{height:80px}.home-top-table td{height:80px;padding:8px 14px;box-sizing:border-box;line-height:1.25}.home-top-table td.home-product{display:table-cell;min-height:0;max-height:80px;vertical-align:middle}.home-product .home-rank{float:left;margin-top:2px}.home-product>div{margin-left:28px}.home-product strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:34px}.home-product small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px}.home-gross-money{font-size:11px;font-weight:400;color:var(--muted)}.home-top-table thead th{height:44px;box-sizing:border-box}.home-chart-svg{max-height:none}.home-switch button:focus-visible,.home-top-scroll:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.home-chart-method{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}.home-chart-method>.home-small{flex:1;min-width:200px}.home-chart-method>.home-switch{flex:0 0 auto}.home-chart-line.home-chart-series-0{stroke-width:3.3}.home-chart-line.home-chart-series-1{stroke-width:2.6}.home-chart-legend span+span i{height:3px;opacity:.85}
.home-chart-status{font-size:12px;color:var(--muted);margin:0 0 14px}.home-chart-status p+p{margin-top:3px}.home-calculation-status strong{display:block;margin-bottom:4px;font-size:12px;font-weight:600}
.home-chart-point-partial{stroke-dasharray:2 2}
.home-chart-plot{position:relative;max-width:100%;outline:none}.home-chart-plot:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:6px}.home-chart-hit-region{fill:transparent;pointer-events:all}.home-chart-crosshair{stroke:var(--muted);stroke-width:1;stroke-dasharray:4 4;pointer-events:none}.home-chart-focus-point{fill:var(--surface);stroke-width:2.5;pointer-events:none}.home-chart-tooltip{position:absolute;top:10px;z-index:4;max-width:calc(100% - 16px);width:300px;padding:12px 14px;color:var(--text);background:var(--surface);border:1px solid var(--line-strong);border-radius:11px;box-shadow:0 6px 24px rgba(30,41,59,.14);font-size:12px;line-height:1.4;pointer-events:none}.home-chart-tooltip[hidden]{display:none}.home-chart-tip-date{font-size:13px;font-weight:700;margin-bottom:9px}.home-chart-tip-row+.home-chart-tip-row{border-top:1px solid var(--line);margin-top:9px;padding-top:9px}.home-chart-tip-label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.home-chart-tip-row strong{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px;font-variant-numeric:tabular-nums;margin-top:3px}.home-chart-tip-row strong span{white-space:nowrap}.home-chart-tip-row small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.home-chart-tip-swatch{display:inline-block;width:16px;height:3px;flex:0 0 16px;border-radius:3px}.home-chart-tip-swatch-0{background:#2293e9}.home-chart-tip-swatch-1{background:#99d0f5}.home-chart-tip-note,.home-chart-tip-freshness{color:var(--muted);font-size:11px;line-height:1.4;margin-top:9px!important}.home-chart-tip-freshness.home-warning{color:#976321}.home-chart-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:420px){.home-chart-method{gap:8px}.home-chart-method>.home-switch{max-width:100%;flex:0 1 auto}.home-chart-method .home-switch button{padding-left:9px;padding-right:9px}.home-chart-method>.home-small{min-width:0;flex-basis:100%}}

/* Financial readiness stays out of the overview until explicitly opened. */
.home-dashboard .home-chart-footer{position:relative}
.home-readiness{position:relative;flex:0 0 auto;color:var(--muted);font-size:12px}
.home-dashboard .home-readiness>summary{display:flex;align-items:center;gap:7px;min-height:30px;padding:3px 0;list-style:none;cursor:pointer;user-select:none;width:fit-content;font-size:12px;line-height:1.5;color:var(--muted);border-radius:5px}
.home-readiness>summary::-webkit-details-marker{display:none}
.home-readiness>summary::marker{content:""}
.home-readiness>summary:hover,.home-readiness[open]>summary{color:var(--text)}
.home-readiness>summary:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.home-readiness-dot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:var(--amber)}
.home-readiness-chevron{flex:0 0 12px;transition:transform .15s ease}
.home-readiness[open] .home-readiness-chevron{transform:rotate(180deg)}
.home-readiness-panel{position:absolute;z-index:20;top:calc(100% + 8px);left:auto;right:0;transform:none;width:min(440px,calc(100vw - 64px));box-sizing:border-box;max-height:min(360px,60vh);overflow:auto;overscroll-behavior:contain;padding:15px 17px;border:1px solid var(--line-strong,var(--line));border-radius:11px;background:var(--surface);box-shadow:0 8px 28px rgb(0 0 0 / .14);color:var(--muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.home-readiness-panel>strong{display:block;margin-bottom:7px;color:var(--text);font-size:12px;font-weight:600;line-height:1.45}
.home-readiness-panel p+p{margin-top:7px}
@media(max-width:640px){.home-readiness{position:static}.home-readiness-panel{left:0;right:0;width:auto;transform:none;max-height:50vh;padding:13px 14px}.home-dashboard .home-readiness>summary{min-height:32px}}
@media(pointer:coarse){.home-dashboard .home-readiness>summary{min-height:44px}}
@media(prefers-reduced-motion:reduce){.home-readiness-chevron{transition:none}}
