/* Shared appearance, including login, live display, tablet wheels and television. */
:root{color-scheme:light;--on-accent:#fff;--warm-surface:#faead8;--warm-ink:#81532f;--sleep-surface:#ebe7f5;--sleep-ink:#685184;--green-surface:#e1eee2;--green-ink:#3c6547;--error:#9b352d;--error-surface:#fff0ea}
:root[data-theme=dark]{color-scheme:dark;--bg:#101b19;--surface:#1b2a25;--card:#1b2a25;--ink:#e7f0eb;--muted:#a9bdb1;--line:#35483f;--accent:#8bd4bd;--accent-soft:#243f34;--shadow:0 4px 24px #00000015;--on-accent:#102d23;--warm-surface:#3c2d22;--warm-ink:#efbe99;--sleep-surface:#2f2b41;--sleep-ink:#cbc1ec;--green-surface:#243d2c;--green-ink:#afd5b3;--error:#ffb7aa;--error-surface:#412b28}
:root[data-theme=dark] body{color:var(--ink);background:var(--bg)}
[data-theme=dark] .skip-link,[data-theme=dark] .chip,[data-theme=dark] #timelineList,[data-theme=dark] .metric,[data-theme=dark] .milestone-group,[data-theme=dark] .kb-section,[data-theme=dark] .fold,[data-theme=dark] .tool-card,[data-theme=dark] .destination,[data-theme=dark] .chat-surface,[data-theme=dark] .bottom-nav,[data-theme=dark] .timer button,[data-theme=dark] .station-actions button,[data-theme=dark] .auth-card,[data-theme=dark] .walk-sources[open], [data-theme=dark] dialog{background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] input:not([type=checkbox]):not([type=hidden]),[data-theme=dark] select,[data-theme=dark] textarea{background:var(--bg);color:var(--ink);border-color:var(--line)}
[data-theme=dark] #pinForm input,[data-theme=dark] .pin-dialog input{background:var(--bg);color:var(--ink);border-color:var(--line)}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:var(--muted)}
[data-theme=dark] .family-avatar,[data-theme=dark] .ask-update,[data-theme=dark] .assistant-mark,[data-theme=dark] .segmented,[data-theme=dark] .progress,[data-theme=dark] .station-routine{background:var(--accent-soft)}
[data-theme=dark] .quick-grid button,[data-theme=dark] .composer,[data-theme=dark] .chat-proposal{background:var(--bg);border-color:var(--line)}
[data-theme=dark] .tool-card:hover,[data-theme=dark] .destination:hover,[data-theme=dark] .quick-grid button:hover,[data-theme=dark] .station-actions button:active,[data-theme=dark] .segmented .active{background:var(--accent-soft);border-color:var(--accent)}
[data-theme=dark] .primary,[data-theme=dark] .chip.active,[data-theme=dark] .auth-card .primary{background:var(--accent);color:var(--on-accent)}
[data-theme=dark] .primary:hover{background:#a4e4cf}[data-theme=dark] .secondary,[data-theme=dark] .auth-card .secondary{background:var(--accent-soft);color:var(--accent)}
[data-theme=dark] .secondary:hover{background:#315442}
[data-theme=dark] #syncStatus.sync-error,[data-theme=dark] .form-error,[data-theme=dark] .mini-delete:hover{color:var(--error);background:var(--error-surface)}
[data-theme=dark] .danger-link,[data-theme=dark] .pin-dialog [role=status],[data-theme=dark] #stationFormError,[data-theme=dark] #authMessage,[data-theme=dark] .passkey-row button{color:var(--error)}
[data-theme=dark] .urgent-note,[data-theme=dark] .safety-banner,[data-theme=dark] .answer-urgent{background:var(--warm-surface);color:var(--warm-ink)}
[data-theme=dark] .kb-section.urgent{border-color:var(--warm-ink)}[data-theme=dark] .kb-section.urgent>summary{color:var(--warm-ink)}
[data-theme=dark] .care-feed>span,[data-theme=dark] .update-feed .ui-icon,[data-theme=dark] .station-actions>.station-log-formula>.ui-icon{background:var(--warm-surface);color:var(--warm-ink)}
[data-theme=dark] .care-sleep>span,[data-theme=dark] .update-sleep .ui-icon{background:var(--sleep-surface);color:var(--sleep-ink)}
[data-theme=dark] .care-diaper>span,[data-theme=dark] .update-diaper .ui-icon,[data-theme=dark] .station-actions>.station-log-diaper>.ui-icon{background:var(--green-surface);color:var(--green-ink)}
[data-theme=dark] .updates-display .update-feed,[data-theme=dark] .station-feed{background:var(--warm-surface);color:var(--warm-ink)}
[data-theme=dark] .updates-display .update-sleep,[data-theme=dark] .station-sleep{background:var(--sleep-surface);color:var(--sleep-ink)}
[data-theme=dark] .updates-display .update-diaper,[data-theme=dark] .station-diaper{background:var(--green-surface);color:var(--green-ink)}
[data-theme=dark] .updates-display .update-walk-card{background:#223940;color:#bee2e8}
[data-theme=dark] .update-overview button{background:var(--surface)}[data-theme=dark] .update-overview button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent)}
[data-theme=dark] .updates-display .update-label .ui-icon{background:#ffffff10;color:inherit}
[data-theme=dark] .update-board-title>span,[data-theme=dark] .update-board-clock>span,[data-theme=dark] .update-overview-label,[data-theme=dark] body.updates-display #syncStatus,[data-theme=dark] .station-title>span,[data-theme=dark] .station-clock>span,[data-theme=dark] .station-actions small,[data-theme=dark] .station-actions [aria-hidden=true]:not(svg),[data-theme=dark] .station-routine p,[data-theme=dark] .station-footer,[data-theme=dark] #stationFormLast,[data-theme=dark] .wheel-label,[data-theme=dark] #stationExact{color:var(--muted)}
[data-theme=dark] .updates-display .update-board-actions button,[data-theme=dark] .station-routine button{color:var(--accent)}
[data-theme=dark] .station-routine button[aria-pressed=false]{color:var(--muted)}
[data-theme=dark] .station-wheel{background:linear-gradient(to bottom,var(--bg) 0 52px,var(--accent-soft) 52px 104px,var(--bg) 104px)}
[data-theme=dark] .station-wheel .wheel-option{color:var(--muted)}[data-theme=dark] .station-wheel .wheel-option[aria-selected=true]{color:var(--ink)}
[data-theme=dark] .pattern-strip g[aria-pressed=true] .day-highlight{fill:var(--accent-soft)}[data-theme=dark] .chat-history-menu select,[data-theme=dark] #savedPasskeys,[data-theme=dark] #savedPinDevices{border-color:var(--line)}
[data-theme=dark] .auth-card .eyebrow,[data-theme=dark] #authDescription,[data-theme=dark] .auth-card .quiet,[data-theme=dark] .auth-card .privacy,[data-theme=dark] .auth-card .hint{color:var(--muted)}
[data-theme=dark] #toast{background:var(--ink);color:var(--bg)}[data-theme=dark] dialog::backdrop{background:#000000a0}
/* TV uses the same preference while retaining its large-screen proportions. */
:root[data-theme=light]{--bg:#f6f8f7;--surface:#fff;--ink:#253c37;--muted:#61756d;--line:#e1e9e3;--accent:#287267;--accent-soft:#e7f2ed}
[data-theme] .tv-surface{background:var(--bg);color:var(--ink)}
[data-theme] .tv-surface .latest article,[data-theme] .tv-surface .chart{background:var(--surface);border-color:var(--line)}
[data-theme] .tv-surface .clock span,[data-theme] .tv-surface #range,[data-theme] .tv-surface .eyebrow,[data-theme] .tv-surface .chart h3,[data-theme] .tv-surface .average small,[data-theme] .tv-surface .chart-foot,[data-theme] .tv-surface .today small,[data-theme] .tv-surface .weather>span:last-child,[data-theme] .tv-surface footer,[data-theme] .tv-surface .stamp{color:var(--muted)}
[data-theme] .tv-surface .chart text{fill:var(--muted)}[data-theme] .tv-surface .bottom{border-color:var(--line)}
[data-theme] .tv-surface .feed{--accent:var(--warm-ink);color:var(--warm-ink)}[data-theme] .tv-surface .sleep{--accent:var(--sleep-ink);color:var(--sleep-ink)}[data-theme] .tv-surface .diaper{--accent:var(--green-ink);color:var(--green-ink)}
[data-theme] .tv-surface .latest .elapsed,[data-theme] .tv-surface .latest .detail{color:var(--ink)}
[data-theme] .tv-surface button,[data-theme] .tv-surface a{color:var(--ink);border-color:var(--line)}[data-theme] .tv-surface .unlock{background:var(--bg)}
#displayDialog{width:min(430px,calc(100vw - 32px));padding:28px}#displayDialog label{display:block;margin:20px 0 8px;font-weight:600}#displayDialog select{width:100%}#displayDialog .primary{width:100%;margin-top:24px}#displayDialog p{font-size:12px;color:var(--muted)}
