body { min-width:320px; }
#app { min-height:100dvh; }
#app .tod-window { max-width:1080px; margin-inline:auto; border:0; border-radius:0; overflow:visible; }
#app .tod-page { padding-top:32px; padding-bottom:36px; }
#app .tod-brand { text-decoration:none; color:var(--tod-ink); }
#app .tod-nav-controls { display:flex; align-items:center; gap:10px; }
#app .tod-theme-button { width:44px; height:44px; padding:0; }
#app .tod-time-input { color:var(--tod-accent); border:1px solid transparent; border-radius:6px; text-align:right; width:116px; min-height:36px; padding:5px 7px; font-size:16px; font-weight:650; font-variant-numeric:tabular-nums; background:transparent; }
#app .tod-time-input:hover,#app .tod-time-input:focus { background:var(--tod-panel); border-color:var(--tod-border); }
#app .tod-time-input[aria-invalid=true] { border-color:light-dark(#b53939,#ff9b9b); }
#app .tod-scrubber-head { margin-bottom:7px; }
#app .tod-scrubber { padding-top:15px; padding-bottom:15px; }
#app .tod-date input { min-height:40px; font-size:16px; max-width:175px; }
#app .tod-row { grid-template-columns:minmax(135px,1fr) 160px minmax(180px,1.7fr) 32px; padding-block:22px; }
#app .tod-city { overflow-wrap:anywhere; }
#app .tod-clock-date { font-size:13px; line-height:1.5; }
#app .tod-country { font-size:14px; }
#app .tod-home-change { font-size:14px; min-height:36px; }
#app .tod-status { font-size:13px; }
#app .tod-track { height:26px; }
#app .tod-track-labels { font-size:12px; }
#app .tod-remove { width:32px; height:44px; }
#app .tod-guide,#app .tod-legend,#app .tod-footer { font-size:13px; }
#app .tod-footer { margin-top:25px; }
#app .tod-auto-note { text-align:center; margin:5px 0 0; min-height:28px; }
#app .tod-auto-note button { background:transparent; border:0; color:var(--tod-muted); text-decoration:underline; text-underline-offset:3px; min-height:32px; padding:4px 8px; font-size:12px; }
#app .is-live { color:var(--tod-accent); background:var(--tod-soft); border-color:transparent; }
#app .tod-notice { line-height:1.5; }
#app button:focus-visible,#app input:focus-visible,#app a:focus-visible { outline:3px solid var(--tod-accent); outline-offset:3px; }
#app #location-dialog { padding:24px; width:min(540px,calc(100vw - 32px)); max-height:calc(100dvh - 64px); color:var(--tod-ink); background:var(--tod-panel); border:1px solid var(--tod-border); border-radius:18px; box-shadow:0 24px 100px #0004; }
#app #location-dialog::backdrop { background:#11182780; backdrop-filter:blur(3px); }
#app .tod-dialog-head { display:flex; justify-content:space-between; gap:15px; align-items:center; margin-bottom:18px; }
#app .tod-dialog-head h2 { font-size:21px; line-height:1.4; letter-spacing:-.5px; margin:0; font-weight:650; }
#app .tod-icon-button { width:44px; height:44px; padding:0; flex:none; }
#app .tod-choices { max-height:340px; overflow-y:auto; padding:3px; margin-inline:-3px; }
#app .tod-choice { min-height:68px; }
#app .tod-search-status { color:var(--tod-muted); font-size:13px; margin:14px 0 0; line-height:1.5; }
#app .sr-only { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; white-space:nowrap; }
#app .loading { padding:32px; font-size:16px; }
@container(max-width:780px) {
 #app .tod-row { grid-template-columns:minmax(0,1fr) auto 32px; gap:12px 9px; padding:18px 16px; }
 #app .tod-place { grid-column:1; }
 #app .tod-time { grid-column:2; text-align:right; }
 #app .tod-remove,#app .tod-remove-space { grid-column:3; grid-row:1; width:32px; }
 #app .tod-timeline { grid-column:1/-1; display:grid; grid-template-columns:1fr auto; }
 #app .tod-status { grid-column:2; grid-row:2; margin:6px 0 0; font-size:12px; }
 #app .tod-track { grid-column:1/-1; height:20px; }
 #app .tod-track-labels { grid-column:1; grid-row:2; width:85%; font-size:12px; }
 #app .tod-track-labels span:nth-child(even) { visibility:hidden; }
 #app .tod-clock { font-size:28px; }
 #app .tod-country { font-size:13px; }
 #app .tod-clock-date { font-size:12px; max-width:140px; }
 #app .tod-home-change { font-size:12px; }
}
@container(max-width:480px) {
 #app .tod-page { padding:22px 18px; }
 #app .tod-nav { gap:10px; flex-wrap:wrap; }
 #app .tod-brand { font-size:18px; }
 #app .tod-brand-icon { width:25px; height:25px; }
 #app .tod-nav-controls { gap:6px; }
 #app .tod-format { padding:3px; }
 #app .tod-format button { min-height:36px; padding-inline:8px; font-size:13px; }
 #app .tod-theme-button { width:38px; height:44px; }
 #app .tod-hero { margin-top:28px; }
 #app h1 { font-size:29px; }
 #app .tod-city { font-size:16px; }
 #app .tod-scrubber-head { font-size:14px; }
 #app .tod-time-input { width:112px; }
 #app .tod-row { column-gap:5px; padding-inline:12px; }
 #app .tod-clock { font-size:26px; }
 #app .tod-clock-date { max-width:120px; }
 #app .tod-legend { gap:12px; font-size:12px; }
 #app .tod-guide,#app .tod-footer { font-size:12px; }
 #app .tod-date input { font-size:14px; max-width:150px; }
 #app .tod-topbar { padding-inline:13px; }
 #app .tod-topbar .tod-button { padding:8px; font-size:13px; }
}
@media(pointer:coarse) {
 #app .tod-format button { min-height:44px; min-width:44px; }
 #app .tod-theme-button { width:44px; }
 #app .tod-remove { width:44px; }
 #app .tod-home-change { min-height:44px; }
 @container(max-width:780px) { #app .tod-row { grid-template-columns:minmax(0,1fr) auto 44px; } #app .tod-remove-space { width:44px; } }
}
@media(prefers-reduced-motion:reduce) { #app * { scroll-behavior:auto; } }
