/* One toolbar, one compact row for location, page and clock. */
.display-frame{display:flex;flex-direction:column;flex:1;min-width:0}
/* Long hourly rows must scroll inside their card, never widen the page. */
.main,.summary-grid,.section-card,.hour-scroll,.day-selector{min-width:0;max-width:100%}
.hour-scroll{overscroll-behavior-x:contain}
.nav-shell .nav{flex-wrap:wrap;overflow:visible}
.nav-shell .nav-button{min-width:0;white-space:normal}
.nav-shell .nav-button.active::after{bottom:2px}
.selected-weather>div{min-width:0}
.selected-weather h2{overflow-wrap:anywhere}
.sunrise-line{flex-wrap:wrap}
.nav-tools{display:flex;align-items:center;gap:14px;flex-shrink:0}
.nav-tools .sources-button{flex-shrink:0;width:40px;height:40px}
:fullscreen :is(.footer,.onboard-footer){display:none}
@media(display-mode:fullscreen),(display-mode:standalone){.footer,.onboard-footer{display:none}}
.topbar .header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto}
.display-context{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 0 18px;min-height:94px}
.context-place{flex:1;min-width:0}
.context-location{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:16px;row-gap:6px}
.display-context .location-button,[data-design=atmosphere] .display-context .location-button{border:0;padding:0;margin:0;background:transparent;gap:9px;min-width:0;max-width:100%;border-radius:8px;display:flex;align-items:baseline;flex-wrap:wrap;text-align:left}
.display-context .location-button strong,[data-design=atmosphere] .display-context .location-button strong{font-size:clamp(28px,3.1vw,44px);line-height:1.15;font-weight:550;letter-spacing:-.035em;overflow-wrap:anywhere;min-width:0}
.display-context .location-region{color:var(--muted);font-size:17px;line-height:1.4;margin-left:7px}
.display-context .pin{width:18px;height:22px;flex-shrink:0;align-self:center;color:var(--gold)}
.display-context .location-button,[data-design=atmosphere] .display-context .location-button{column-gap:0}
.display-context .pin{margin-right:9px}
.context-topic{font-size:18px;font-weight:400;line-height:1.4;color:var(--muted);display:flex;gap:16px;align-items:center}
.context-topic::before{content:'';width:1px;height:1em;background:var(--line);flex-shrink:0}
.clock-block{flex-shrink:0;text-align:right;min-width:155px}
.clock-toggle{display:flex;justify-content:flex-end;align-items:center;background:transparent;color:var(--text);padding:0;border:0;border-radius:8px;width:100%;height:70px;cursor:pointer}
.clock-toggle:hover{color:var(--gold)}
.display-context .top-clock,[data-design=atmosphere] .display-context .top-clock{font-size:clamp(44px,4.5vw,64px);line-height:1;font-weight:300;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.display-context .top-date,[data-design=atmosphere] .display-context .top-date{font-size:12px;line-height:1.4;margin-top:4px;max-width:none;color:var(--muted)}
.analog-clock{height:68px;width:68px;overflow:visible}
.clock-face{fill:var(--surface);stroke:var(--line);stroke-width:1.5}
.clock-ticks{stroke:var(--muted);stroke-width:2;stroke-linecap:round}
.clock-hand{fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round}
.clock-minute{stroke-width:2.5}
.clock-second{fill:none;stroke:var(--gold);stroke-width:1.2;stroke-linecap:round}
.clock-center{fill:var(--gold)}
.clock-toggle[data-mode=digital] .analog-clock,.clock-toggle[data-mode=analog] .digital-clock{display:none}
@media(min-width:801px){[data-design=classic] .overview{height:clamp(280px,calc(100vh - 415px),550px)}[data-design=classic] .map-card{min-height:280px}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:801px) and (max-height:820px){.display-context{padding:4px 0 12px;min-height:84px}.display-context .location-button strong,[data-design=atmosphere] .display-context .location-button strong{font-size:34px}.clock-toggle{height:54px}.analog-clock{height:52px;width:52px}.display-context .top-clock,[data-design=atmosphere] .display-context .top-clock{font-size:48px}.clock-block{min-width:125px}}
@media(max-width:800px){.topbar .header-actions{flex-wrap:wrap;gap:7px}.display-context{padding:10px 0 16px;gap:12px;min-height:88px}.context-location{column-gap:8px;row-gap:4px}.display-context .location-button strong,[data-design=atmosphere] .display-context .location-button strong{font-size:27px}.display-context .location-region{font-size:13px}.display-context .pin{display:none}.context-topic{font-size:14px;gap:8px}.clock-block{min-width:105px}.clock-toggle{height:54px}.analog-clock{height:52px;width:52px}.display-context .top-clock,[data-design=atmosphere] .display-context .top-clock{font-size:44px}.display-context .top-date,[data-design=atmosphere] .display-context .top-date{font-size:10px}}
@media(max-width:600px){.topbar .header-actions{width:100%;justify-content:space-between;flex-wrap:nowrap;gap:5px}.header-actions .appearance-controls{gap:5px}.header-actions .design-switch{padding:3px}.header-actions .design-switch button{font-size:10px;padding:6px 8px;min-height:28px}.header-actions .design-spark{margin-left:2px}.header-actions .appearance-button{width:30px;height:30px}.header-actions .round-button,[data-design=atmosphere] .header-actions .round-button{width:30px;height:30px;flex-shrink:0}.header-actions .auto-pages-toggle{font-size:10px;padding:6px 8px;gap:4px;min-height:32px}.header-actions .auto-pages-toggle svg{width:16px;height:16px}}
