/* Analytical shell only. The private development view keeps its existing styles. */
:root {
    color-scheme: dark;
    --background: #0d1218;
    --background-raised: #151d26;
    --sidebar: #111820;
    --text: #edf3f8;
    --text-muted: #aab8c6;
    --line: #2b3947;
    --accent: #65dfc3;
    --accent-tint: #183a35;
    --focus: #ffdc83;
    --warning: #ffdc83;
    --warning-background: #352d1e;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
}
:root[data-theme="light"] {
    color-scheme: light;
    --background: #f1f4f7;
    --background-raised: #ffffff;
    --sidebar: #f9fbfc;
    --text: #172a3b;
    --text-muted: #536578;
    --line: #d2dce5;
    --accent: #087565;
    --accent-tint: #dcefe9;
    --focus: #065bb5;
    --warning: #78500a;
    --warning-background: #fff3d8;
}
[hidden] { display: none !important; }
.dashboard-shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.dashboard-shell a { text-underline-offset: .2em; }
.dashboard-shell :where(button, input) { font: inherit; }
.dashboard-shell :where(a, button, input, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dashboard-shell :where(button, summary) { cursor: pointer; }
.dashboard-shell :where(h1, h2, h3, p) { margin-top: 0; }
.dashboard-shell h2 { font-size: 1.05rem; line-height: 1.4; margin-bottom: .65rem; }
.dashboard-shell h3 { font-size: 1rem; margin-top: 1.5rem; }
.dashboard-shell p { margin-bottom: .65rem; }
.dashboard-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--sidebar); padding: 1.5rem .875rem; display: flex; flex-direction: column; }
.dashboard-brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-size: 1.2rem; font-weight: 750; text-decoration: none; padding: .3rem .55rem; white-space: nowrap; }
.dashboard-brand > span { color: var(--accent); font-size: 1.9rem; line-height: 1; }
.dashboard-nav { display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.dashboard-nav-label { margin: 2rem .7rem .3rem !important; color: var(--text-muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; }
.dashboard-nav a { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: .6rem .7rem; text-decoration: none; border-radius: .45rem; font-size: .9rem; color: var(--text-muted); }
.dashboard-nav a:hover { color: var(--text); background: var(--background-raised); }
.dashboard-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-tint); font-weight: 650; box-shadow: inset 3px 0 var(--accent); }
.dashboard-nav svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-nav-support { margin-top: auto; padding-top: 2.5rem; display: grid; gap: .3rem; }
.dashboard-sidebar-note { color: var(--text-muted); font-size: .8rem; padding: 1.25rem .7rem 0; margin: 1rem 0 0 !important; border-top: 1px solid var(--line); }
.dashboard-workspace { min-width: 0; }
.dashboard-main { width: 100%; max-width: none; min-width: 0; padding: clamp(1rem, 2vw, 2rem); }
.dashboard-heading { margin: .2rem 0 1.5rem; }
.dashboard-heading h1 { font-size: clamp(1.6rem, 2.2vw, 2.15rem); letter-spacing: -.035em; line-height: 1.15; margin: 0 0 .65rem; }
.dashboard-heading p { color: var(--text-muted); font-size: .875rem; }
.dashboard-heading .dashboard-eyebrow { color: var(--accent); margin-bottom: .6rem; font-size: .8rem; font-weight: 600; }
.dashboard-mobile-header, .dashboard-nav-fallback { display: none; }
.dashboard-button, .dashboard-menu-button, .dashboard-menu-heading button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--text); background: var(--background-raised); text-decoration: none; font-size: .85rem; font-weight: 600; }
.dashboard-button:hover { border-color: var(--accent); }
.dashboard-panel { min-width: 0; padding: clamp(1rem, 1.35vw, 1.4rem); border: 1px solid var(--line); border-radius: .65rem; background: var(--background-raised); }
.dashboard-skip { position: fixed; left: 1rem; top: .75rem; z-index: 20; transform: translateY(-200%); padding: .7rem 1rem; color: var(--text); background: var(--background-raised); border: 1px solid var(--focus); }
.dashboard-skip:focus { transform: none; }
.dashboard-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.live-demand { width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.live-heading { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; }
.live-check-time { text-align: right; }
.live-check-time p { max-width: 23rem; font-size: .8rem; }
.live-check-time time { display: block; }
.live-views { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.live-views a { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem 1rem; border-bottom: 3px solid transparent; color: var(--text-muted); font-size: .875rem; text-decoration: none; }
.live-views a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); font-weight: 650; }
.live-views a:hover { color: var(--accent); }
.live-notice { padding: .8rem 1rem; margin-bottom: 1rem; border-left: 3px solid var(--warning); border-radius: .3rem; background: var(--warning-background); color: var(--warning); font-size: .875rem; }
.live-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.live-stat h2 { color: var(--text-muted); font-weight: 500; font-size: .85rem; }
.live-stat-primary { border-top: 3px solid var(--accent); padding-top: calc(clamp(1rem, 1.35vw, 1.4rem) - 2px); }
.live-stat-value { font-size: clamp(1.65rem, 2.65vw, 2.6rem); line-height: 1.2; font-weight: 650; letter-spacing: -.045em; margin: .8rem 0 .65rem; overflow-wrap: anywhere; }
.live-stat-primary .live-stat-value { color: var(--accent); }
.live-stat-value span { font-size: .85rem; letter-spacing: 0; font-weight: 500; color: var(--text-muted); }
.live-stat-detail { font-size: .8rem; line-height: 1.55; }
.live-stat-note { font-size: .75rem; color: var(--text-muted); margin-bottom: 0 !important; }
.live-analysis-grid { display: grid; grid-template-columns: minmax(0, 2.8fr) minmax(15rem, 1fr); gap: 1rem; margin-bottom: 1rem; }
.live-panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; flex-wrap: wrap; }
.live-panel-heading p, .live-panel-heading > a { color: var(--text-muted); font-size: .8rem; }
.live-panel-heading h2 { margin-bottom: .4rem; }
.live-series-key { display: flex; align-items: center; gap: .4rem; color: var(--text-muted); font-size: .8rem; }
.live-series-key > span { width: 1rem; height: 3px; background: var(--accent); }
.live-chart { margin: 1.25rem 0 .75rem; }
.live-chart-unit { color: var(--text-muted); font-size: .75rem; }
.live-chart-body { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .65rem; height: clamp(17.5rem, 25vw, 23rem); }
.live-chart-body svg { display: block; width: 100%; height: 100%; }
.live-chart-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.live-chart-trace { stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.live-chart-scale { display: flex; flex-direction: column; justify-content: space-between; text-align: right; padding: .4rem 0; font-size: .75rem; color: var(--text-muted); }
.live-chart-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: .45rem 0 0 4.15rem; color: var(--text-muted); font-size: .75rem; }
.live-chart-times span:nth-child(2) { text-align: center; }
.live-chart-times span:last-child { text-align: right; }
.live-chart figcaption, .live-coverage { font-size: .8rem; color: var(--text-muted); margin-top: 1rem; }
.live-coverage { border-top: 1px solid var(--line); padding-top: .8rem; }
.live-reading > p, .live-reading > a, .live-source-times { font-size: .85rem; }
.live-reading > p { color: var(--text-muted); margin-top: 1.5rem; }
.live-details { margin: 1.2rem 0; font-size: .85rem; }
.live-details dt { color: var(--text-muted); font-size: .8rem; margin-top: 1.1rem; }
.live-details dd { margin: .35rem 0 0; overflow-wrap: anywhere; }
.live-source-times summary { min-height: 2.75rem; padding: .6rem 0; }
.live-table-hint { display: none; font-size: .8rem; color: var(--text-muted); }
.live-table-scroll { max-width: 100%; overflow: auto; margin-top: .75rem; }
.live-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .85rem; }
.live-table caption { text-align: left; color: var(--text-muted); font-size: .8rem; padding-bottom: .7rem; }
.live-table :where(th, td) { padding: .8rem .75rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.live-table th:first-child { padding-left: 0; }
.live-table th:last-child, .live-table td:last-child { padding-right: 0; }
.live-table thead th { font-size: .75rem; color: var(--text-muted); white-space: nowrap; font-weight: 600; }
.live-table td:nth-child(2), .live-table th:nth-child(2) { text-align: right; white-space: nowrap; }
.live-table tbody tr:last-child > * { border-bottom: none; }
.live-attribution { color: var(--text-muted); font-size: .8rem; margin: 1.5rem .1rem .5rem; overflow-wrap: anywhere; }
.live-method > :where(p, h2, h3) { max-width: 65ch; }
.live-method p { margin-bottom: 1rem; }
.live-empty { padding: 2rem 1.5rem; }
.live-empty p { color: var(--text-muted); }
.dashboard-settings > p { max-width: 65ch; color: var(--text-muted); }
.dashboard-theme-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; border: 0; padding: 0; margin: 1.5rem 0; gap: 1rem; }
.dashboard-theme-option { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: center; padding: 1rem; border: 2px solid var(--line); border-radius: .6rem; cursor: pointer; }
.dashboard-theme-option:has(input:checked) { border-color: var(--accent); }
.dashboard-theme-option input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.dashboard-theme-preview { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; gap: .5rem; height: 6rem; padding: .65rem; border: 1px solid var(--line); border-radius: .3rem; }
.dashboard-theme-preview i { border-radius: .15rem; border: 1px solid; }
.dashboard-theme-preview i:first-child { grid-row: span 2; }
.preview-dark { background: #0d1218; }
.preview-dark i { background: #1b2733; border-color: #35495a; }
.preview-light { background: #edf2f6; }
.preview-light i { background: #ffffff; border-color: #aebcca; }
.dashboard-menu { padding: 1.25rem 1rem; margin: 0 auto 0 0; width: min(20rem, calc(100% - 2rem)); max-width: none; height: 100%; max-height: 100%; border: 0; border-right: 1px solid var(--line); background: var(--sidebar); color: var(--text); }
.dashboard-menu[open] { display: flex; flex-direction: column; }
.dashboard-menu::backdrop { background: rgb(0 0 0 / .6); }
.dashboard-menu-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.dashboard-menu-heading h2 { margin: 0; }
.dashboard-menu-open { overflow: hidden; }
@media (max-width: 79.99rem) {
    .live-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .live-analysis-grid { grid-template-columns: minmax(0, 1fr); }
    .live-reading .live-details { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: .65rem 1rem; }
    .live-reading .live-details :where(dt, dd) { margin: 0; }
}
@media (max-width: 63.99rem) {
    .dashboard-shell { grid-template-columns: minmax(0, 1fr); }
    .dashboard-sidebar { display: none; }
    .dashboard-mobile-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--sidebar); }
    .dashboard-nav-fallback { display: block; padding: .75rem 1rem; background: var(--sidebar); }
    .dashboard-nav-fallback summary { min-height: 2.75rem; padding: .5rem 0; }
    .dashboard-nav-fallback .dashboard-nav-support { padding-top: 1rem; }
    .dashboard-main { padding: 1.25rem 1rem; }
    .live-stat-value { font-size: 2rem; }
}
@media (max-width: 39.99rem) {
    .live-heading { display: block; }
    .live-check-time { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; text-align: left; }
    .live-check-time p { margin: 0; font-size: .75rem; }
    .live-views { gap: 0; }
    .live-views a { flex: 1; padding: .65rem .4rem; font-size: .8rem; }
    .live-stat { padding: .9rem; }
    .live-stat-primary { padding-top: calc(.9rem - 2px); }
    .live-stat-value { font-size: 1.9rem; }
    .live-summary-grid { gap: .75rem; }
    .live-chart-body { height: 17.5rem; grid-template-columns: 3rem minmax(0, 1fr); gap: .4rem; }
    .live-chart-times { margin-left: 3.4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .live-chart-times span:nth-child(2) { display: none; }
    .live-reading .live-details { grid-template-columns: minmax(0, 1fr); }
    .live-reading .live-details dt { margin-top: .65rem; }
    .live-table { min-width: 32rem; }
    .live-table-hint { display: block; margin-top: .75rem; }
    .live-panel-heading { gap: .5rem; }
}
@media (max-width: 23rem) {
    .live-summary-grid, .dashboard-theme-options { grid-template-columns: minmax(0, 1fr); }
    .live-check-time { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .dashboard-shell *, .dashboard-shell *::before, .dashboard-shell *::after { scroll-behavior: auto; animation: none; transition: none; }
}
@media (forced-colors: active) {
    .live-chart-trace { stroke: CanvasText; }
    .live-views a[aria-current="page"], .dashboard-theme-option:has(input:checked) { border-color: Highlight; }
}
