/* Weather Hannun first-entry GPS prompt and multi-place shortcuts.
   Always use existing Stitch light/dark design tokens. */
.location-shortcuts{display:flex;align-items:center;min-height:52px;margin:0 auto 14px;padding:6px 10px;border:1px solid var(--st-line);border-radius:15px;background:var(--st-surface);color:var(--st-fg);box-shadow:0 5px 18px rgba(9,36,68,.05)}
.location-switcher-head{display:flex;align-items:center;gap:10px;min-width:0;border-right:1px solid var(--st-line);padding-right:12px}
.location-switcher-heading{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;font-weight:850;color:var(--st-muted)}
.location-switcher-heading b{display:grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--panel2);color:var(--st-accent);font-size:10px}
.location-current-label{display:flex;align-items:center;gap:5px;min-width:0;white-space:nowrap;padding:3px 0;font-size:13px}
.location-current-label strong{font-size:14px;max-width:170px;overflow:hidden;text-overflow:ellipsis}
.location-current-label small{font-size:10px;color:var(--st-muted);margin-left:5px}
.location-fast-items{display:flex;flex:1;align-items:center;gap:7px;overflow-x:auto;scrollbar-width:thin;padding:5px 0}
.location-fast-items button{flex:0 0 auto;min-height:38px;border-radius:100px;background:var(--panel2);border:1px solid var(--st-line);color:var(--st-fg);padding:8px 13px;white-space:nowrap;font-size:12px;font-weight:750}
.location-fast-items button:focus-visible,.location-place-row button:focus-visible{outline-offset:1px}
.location-fast-items .location-fast-gps{color:var(--st-accent);border-color:var(--st-accent)}
.location-fast-place{display:inline-flex;align-items:center;gap:5px;max-width:180px}
.location-fast-name{display:block;overflow:hidden;text-overflow:ellipsis}
.location-fast-check{display:none;place-items:center;width:17px;height:17px;border-radius:50%;background:rgba(255,255,255,.24);font-size:10px}
.location-fast-items .location-fast-place.active{background:var(--st-accent);border-color:var(--st-accent);color:#fff;box-shadow:0 4px 12px rgba(75,169,255,.28)}
.location-fast-place.active .location-fast-check{display:grid}
html[data-weather-theme="dark"] .location-fast-items .location-fast-place.active{color:#10223a}
.location-fast-items .location-fast-save{color:var(--st-accent);border-color:rgba(75,169,255,.5);background:rgba(75,169,255,.09)}
.favorite-save.save-attention{box-shadow:0 0 0 4px color-mix(in srgb,var(--st-accent) 20%,transparent);animation:save-region-pulse 1.2s ease-out 2}
@keyframes save-region-pulse{50%{transform:translateY(-1px);box-shadow:0 0 0 8px color-mix(in srgb,var(--st-accent) 8%,transparent)}}
.location-fast-items .location-fast-manage{background:transparent;border-style:dashed;color:var(--st-accent)}
.location-fast-empty{flex:0 0 auto;color:var(--st-muted);font-size:11px;padding:0 3px}
.favorite-list{display:grid;border-top:1px solid var(--st-line)}
.location-place-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:8px 2px;border-bottom:1px solid var(--st-line);background:transparent}
.location-place-row.is-active{background:color-mix(in srgb,var(--st-accent) 6%,transparent)}
.location-place-row button{border:0;background:transparent;color:var(--st-fg);cursor:pointer}
.location-place-select{display:flex;align-items:center;gap:9px;min-width:0;min-height:50px;padding:5px 7px!important;text-align:left;border-radius:11px!important}
.location-place-select:hover{background:color-mix(in srgb,var(--st-accent) 6%,transparent)}
.location-place-symbol{flex:0 0 auto;color:var(--st-accent);font-size:20px!important}
.location-place-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:14px}
.location-place-current{margin-left:auto;color:var(--st-accent);font-weight:800;border-radius:99px;padding:4px 8px;font-size:10px;white-space:nowrap;background:color-mix(in srgb,var(--st-accent) 11%,var(--panel2))}
.location-row-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}
.location-edit-button,.location-delete-button{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--st-line)!important;border-radius:10px!important;padding:0!important;flex:0 0 auto}
.location-edit-button .material-symbols-outlined,.location-delete-button .material-symbols-outlined{font-size:18px}
.location-delete-button{color:#dd6872!important}
.location-order-buttons{display:flex;gap:4px;flex:0 0 auto}
.location-order-buttons button{display:grid;place-items:center;width:36px;height:40px;border:1px solid var(--st-line)!important;border-radius:10px;color:var(--st-accent);font-size:13px;font-weight:900}
.location-order-buttons .material-symbols-outlined{font-size:19px}
.location-order-buttons button:disabled{opacity:.28;cursor:not-allowed}
.location-undo{border:0;background:var(--st-accent);color:#fff;border-radius:9px;padding:5px 8px;font-size:12px;font-weight:750;margin-left:5px}
.location-permission-status{font-size:12px;color:var(--st-muted);margin:7px 0;line-height:1.45}
.location-empty{display:grid;place-items:center;gap:4px;width:100%;padding:24px 8px;color:var(--st-muted);text-align:center}
.location-empty .material-symbols-outlined{color:var(--st-accent);font-size:28px}
.location-empty p{margin:0;font-size:12px}
.location-onboarding,.location-rename-dialog{background:var(--st-surface)!important;color:var(--st-fg)!important;border:1px solid var(--st-line)!important;box-shadow:0 24px 90px rgba(7,24,51,.33)!important;max-width:440px;padding:28px!important;text-align:center}
.location-onboarding::backdrop,.location-rename-dialog::backdrop{background:rgba(5,15,34,.65);backdrop-filter:blur(5px)}
.onboard-illustration{display:grid;place-items:center;margin:0 auto 13px;width:86px;height:86px;background:var(--panel2);border:1px solid var(--st-line);border-radius:25px;font-size:43px}
.location-onboarding h2{font-size:clamp(23px,5vw,29px);letter-spacing:-.9px;line-height:1.4;margin:8px 0 13px}
.location-onboarding p{color:var(--st-muted);font-size:13px;line-height:1.7}
.location-onboarding .onboard-note{font-size:12px;padding:11px 13px;margin:15px 0;background:var(--panel2);border:1px solid var(--st-line);border-radius:12px}
.location-onboarding button{width:100%;padding:13px;margin:5px 0;border-radius:13px;font-size:14px;font-weight:800}
.location-onboarding .onboard-primary{background:var(--st-accent);border:1px solid var(--st-accent);color:#fff}
html[data-weather-theme="dark"] .location-onboarding .onboard-primary{color:#15233d}
.location-onboarding .onboard-secondary{background:var(--panel2);border:1px solid var(--st-line);color:var(--st-fg)}
.location-onboarding .onboard-later{border:0;background:transparent;color:var(--st-muted);font-weight:500}
.location-onboarding .onboard-privacy{font-size:10px;margin:13px 0 0}
.location-onboarding .onboard-privacy a{color:var(--st-accent)}
.location-rename-dialog{text-align:left}
.location-rename-dialog h2{font-size:21px;letter-spacing:-.5px}
.location-rename-dialog label{display:block;font-size:12px;color:var(--st-muted);margin:17px 0 6px}
.location-rename-dialog input{width:100%;padding:12px;border-radius:11px;border:1px solid var(--st-line);color:var(--st-fg);background:var(--panel2);box-sizing:border-box}
.location-rename-dialog .location-validation{color:#d35a5a;min-height:21px;font-size:11px}
.rename-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:12px}
.rename-actions button{border-radius:10px;border:1px solid var(--st-line);padding:10px 15px;color:var(--st-fg);background:var(--panel2);font-weight:700}
.rename-actions button[type=submit]{background:var(--st-accent);border-color:var(--st-accent);color:#fff}
html[data-weather-theme="dark"] .rename-actions button[type=submit]{color:#15233d}
@media(max-width:850px){.location-shortcuts{grid-template-columns:1fr;gap:3px}.location-switcher-head{border-right:0;border-bottom:1px solid var(--st-line);padding:2px 3px 8px}.location-current-label{flex:1;justify-content:start}.location-fast-items{width:100%}}
@media(max-width:640px){.location-shortcuts{margin-bottom:11px;border-radius:14px;min-height:0;padding:7px 9px}.location-switcher-head{gap:8px}.location-switcher-heading{font-size:10px}.location-current-label{font-size:12px}.location-current-label strong{font-size:14px;max-width:120px}.location-current-label small{margin-left:auto}.location-fast-items{padding:5px 0 3px;scroll-snap-type:x proximity}.location-fast-items button{padding:7px 11px;font-size:12px;scroll-snap-align:start}.location-fast-place{max-width:145px}.location-onboarding,.location-rename-dialog{padding:21px!important;max-height:calc(100dvh - 30px)}.location-place-row{grid-template-columns:minmax(0,1fr);gap:2px;padding:7px 0}.location-row-actions{justify-content:flex-end;padding:0 6px 5px}.location-place-select{width:100%}}
@media(prefers-reduced-motion:reduce){.location-shortcuts *,.location-onboarding *{transition:none!important;animation:none!important}}

/* GPS: administrative district and nearby street below current location label. */
.location-label-stack{display:flex;flex-direction:column;align-items:flex-start;min-width:0;max-width:min(430px,40vw);line-height:1.38;gap:3px}
.location-label-stack>strong{display:block;font-size:14px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.location-address-line{display:block;color:var(--st-muted);font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.location-current-label:has(.location-address-line){align-items:center}
.location-place-text{min-width:0;display:flex;flex-direction:column;gap:3px;flex:1}
.location-place-address{display:block;color:var(--st-muted);font-size:11px;white-space:normal;line-height:1.35}
.location-place-select:has(.location-place-address){align-items:center}
@media(max-width:850px){.location-label-stack{max-width:100%;flex:1}.location-current-label{align-items:center}}
@media(max-width:640px){.location-address-line{white-space:normal;line-height:1.3;max-width:100%}.location-current-label:has(.location-address-line){align-items:flex-start}.location-label-stack>strong{font-size:14px}}

/* Keep saved-region switching one tap away on the exact Stitch Today screen. */
html[data-stitch-live=true] #locationQuickBar{width:min(670px,calc(100% - 24px));margin-top:10px;margin-bottom:16px}
@media(max-width:710px){
 html[data-stitch-live=true] #locationQuickBar{width:calc(100% - 20px);margin-top:8px;margin-bottom:12px}
 .location-shortcuts{display:flex;align-items:center;gap:7px;min-height:48px;padding:6px 8px;border-radius:8px}
 .location-switcher-head{flex:0 0 auto;border:0;padding:0}
 .location-switcher-heading{font-size:10px}
 .location-current-label{display:none}
 .location-fast-items{min-width:0;padding:0;gap:6px}
 .location-fast-items button{min-height:34px;padding:6px 10px;font-size:11px}
 .location-fast-items .location-fast-place.active{display:none}
 .location-fast-place{max-width:118px}
}

/* The app bar owns the current region; editing stays in the location dialog. */
html .topbar .top-inner{gap:8px;flex-wrap:nowrap}
html .topbar .top-inner>.brand{display:none!important}
html .topbar #locationQuickBar.header-current-location{display:flex;flex:1;min-width:0;width:auto;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden}
html .topbar .header-current-button{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;min-height:44px;padding:4px 0;border:0;background:transparent;color:var(--st-fg,#10213a);text-align:left}
html .topbar .header-current-button strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:700}
html .topbar .header-current-button .material-symbols-outlined{flex:none;font-size:19px;color:var(--st-muted,#65758a)}
html .topbar #siteAccountSlot{flex:none;margin-left:auto}
@media(max-width:710px){
 html #locationDialog{position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:85dvh;margin:0;padding:20px 16px max(20px,env(safe-area-inset-bottom));border-radius:20px 20px 0 0;overflow-y:auto}
}
html .topbar #siteAccountSlot{width:auto;min-width:0;max-width:44px}
html .topbar #siteAccountSlot:empty{display:none}
html .topbar .top-inner{justify-content:flex-start}

html .topbar .header-save-location{flex:0 0 40px;width:40px;min-height:44px;margin-left:4px;padding:0;border:0;background:transparent;color:var(--st-muted,#65758a);font-size:26px;cursor:pointer}
html .topbar .header-save-location:disabled{color:#b77c16;opacity:1;cursor:default}
html[data-weather-theme="dark"] .topbar .header-save-location:disabled{color:#f3c76b}

html .topbar .header-find-location{display:grid;place-items:center;flex:0 0 40px;width:40px;min-height:44px;margin-left:4px;padding:0;border:0;background:transparent;color:var(--st-accent,#2563eb);cursor:pointer}
html .topbar .header-find-location .material-symbols-outlined{font-size:21px}
html .topbar .header-find-location:disabled{opacity:.45;cursor:wait}
@media(max-width:360px){html .topbar .header-current-button{gap:3px}html .topbar .header-current-button>.material-symbols-outlined:first-child{display:none}html .topbar .header-save-location,html .topbar .header-find-location{margin-left:0}}

/* Keep header controls centered below the device's safe area. */
html[data-stitch-live="true"] .topbar{display:flex;flex-direction:column;height:calc(57px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px)}
html[data-stitch-live="true"] .topbar .top-inner{width:100%;height:56px;min-height:56px;flex:0 0 56px;padding-block:0;align-items:center}
html .topbar #locationQuickBar.header-current-location{align-items:center;align-self:center}
html .topbar .header-current-button,html .topbar .header-find-location,html .topbar .header-save-location,html .topbar #headerMenuButton{height:44px;min-height:44px;align-self:center;line-height:1}
html .topbar .header-save-location{display:grid;place-items:center}

/* Android reserves system-bar space outside the web header. Browser/PWA keeps its own safe area. */
html[data-native-insets="true"][data-stitch-live="true"] .topbar{height:57px;padding-top:0}
