@charset "UTF-8";
:root{color-scheme:dark;--bg:#0b1219;--surface:#111c26;--raised:#192733;--text:#eff5f7;--muted:#9bafbd;--line:#2a3a46;--accent:#61e3c0;--accent-ink:#071f1b;--amber:#ffcc69;--danger:#ffb2a6;--shadow:0 12px 38px #0005;--bottom:168px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;background:var(--bg);color:var(--text);}
:root[data-theme=light]{color-scheme:light;--bg:#eef2f4;--surface:#fff;--raised:#e6edf0;--text:#152c37;--muted:#546a78;--line:#cdd9de;--accent:#087861;--accent-ink:#fff;--amber:#93610b;--danger:#a82825;--shadow:0 12px 38px #1737411c;}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.35}button,a,select,input{touch-action:manipulation}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}a{color:inherit}button{border:0}button svg{pointer-events:none}[hidden]{display:none!important}.skip{position:fixed;left:16px;top:-100px;background:var(--accent);color:var(--accent-ink);padding:12px;z-index:100}.skip:focus{top:8px}
.app-header{height:80px;max-width:1500px;margin:auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand-mark{width:38px;height:42px;display:grid;place-items:center;border:1px solid var(--accent);color:var(--accent);font-size:24px;font-weight:800;transform:skew(-8deg);border-radius:3px}.brand strong{display:block;font-size:17px;letter-spacing:1px;font-weight:750}.brand strong span{font-weight:400;color:var(--muted)}.brand small{display:block;font-size:10px;letter-spacing:1.35px;color:var(--muted);margin-top:3px}.header-actions{display:flex;gap:4px}.icon-button{height:44px;min-width:44px;display:grid;place-items:center;background:transparent;border-radius:9px;font-size:25px;line-height:1}.icon-button:hover{background:var(--raised)}#refresh.is-loading{animation:rotate 1s linear infinite}@keyframes rotate{to{transform:rotate(360deg)}}
.main-nav{display:flex;gap:26px;align-items:center;padding:0 max(32px,calc((100vw - 1436px)/2));background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.main-nav button{min-height:52px;padding:0;background:none;font-size:14px;font-weight:650;border-bottom:2px solid transparent;color:var(--muted)}.main-nav button[aria-selected=true]{color:var(--text);border-color:var(--accent)}.utc-note{margin-left:auto;font-size:12px;color:var(--muted)}main{max-width:1500px;margin:auto;padding:24px 32px calc(var(--bottom) + env(safe-area-inset-bottom) + 24px)}.view-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}.eyebrow{margin:0 0 3px;font-size:11px;font-weight:700;letter-spacing:1.9px;color:var(--accent)}h1{margin:0;font-size:clamp(21px,2.2vw,29px);font-weight:650;letter-spacing:-.7px;line-height:1.25}.text-button{background:none;color:var(--accent);font-size:14px;padding:10px 0 10px 14px;white-space:nowrap}.layer-tabs{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.layer-tabs button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 17px;background:var(--surface);border:1px solid var(--line);border-radius:8px;font-size:14px;color:var(--muted)}.layer-tabs button>span:first-child{font-size:21px;line-height:1}.layer-tabs button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--surface))}.layer-tabs .compare-tab{margin-left:auto}
.map-grid{display:grid;grid-template-columns:1fr;gap:20px}.map-grid.is-compare{grid-template-columns:repeat(2,minmax(0,1fr))}.map-grid.is-stack{grid-template-columns:1fr;max-width:1000px;margin-inline:auto}.map-grid:not(.is-compare){max-width:1060px;margin-inline:auto}.map-card{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden;min-width:0}.map-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px}.map-head h2{margin:0;font-size:16px;font-weight:600}.map-head h2 span{font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}.expand-button{font-size:13px;background:var(--raised);padding:7px 11px;border-radius:6px;min-height:34px}.map-body{position:relative;min-height:200px;aspect-ratio:750/552;background:#dde5e4}.map-body>img{width:100%;height:100%;object-fit:contain;display:block}.map-cover{position:absolute;inset:0;background:var(--surface);display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;text-align:center;padding:24px;color:var(--muted)}.map-cover.is-error{color:var(--danger)}.map-cover p{margin:0;max-width:360px;font-size:14px}.map-cover button{background:var(--raised);border:1px solid var(--line);border-radius:7px;padding:9px 15px;color:var(--text)}.map-cover.is-loading:before{content:"";width:23px;height:23px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:rotate 1s linear infinite}.map-meta{padding:10px 18px;display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}.map-meta time{font-variant-numeric:tabular-nums}.map-source{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;font-size:12px;color:var(--muted)}.map-source a{text-decoration:none}.map-source a:hover{text-decoration:underline}.status{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 20px;padding:12px 16px;border:1px solid #987234;background:color-mix(in srgb,var(--amber) 8%,var(--surface));color:var(--amber);font-size:14px;border-radius:8px}.status button{background:none;color:inherit;border:1px solid currentColor;border-radius:5px;padding:5px 10px;flex-shrink:0}.app-footer{margin-top:30px;display:flex;flex-wrap:wrap;gap:8px 20px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.app-footer span:first-child{color:var(--text);font-weight:650}
.timeline{position:fixed;z-index:20;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -8px 32px #0002;padding-bottom:env(safe-area-inset-bottom)}.timeline-inner{max-width:1436px;margin:auto;padding:12px 0 8px}.time-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.selected-date{display:flex;align-items:baseline;gap:15px}.selected-date>span:first-child{font-size:15px;font-weight:600}.selected-date strong{font-size:26px;letter-spacing:-.8px;font-variant-numeric:tabular-nums;line-height:1.2}.time-zone{font-size:11px;color:var(--muted)}.time-buttons{display:flex;gap:8px}.time-buttons button{border:1px solid var(--line);height:40px;min-width:44px;border-radius:7px;background:var(--raised);font-size:20px}#play{background:var(--accent);color:var(--accent-ink);border-color:transparent;font-size:16px}#time-slider{accent-color:var(--accent);height:26px;width:100%;display:block;margin:6px 0 2px}.days{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:2px 0 3px}.days button{flex:1;min-width:66px;white-space:nowrap;border-radius:6px;background:none;padding:6px 10px;color:var(--muted);font-size:12px}.days button[aria-pressed=true]{background:var(--raised);color:var(--text);font-weight:650}.timeline.is-hidden{display:none}
dialog{color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:22px;max-width:calc(100vw - 24px)}dialog::backdrop{background:#02080ebd;backdrop-filter:blur(3px)}.settings-dialog{width:450px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.dialog-head h2{font-size:21px;margin:0;line-height:1.2}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:15px 0;font-size:14px}select{background:var(--raised);color:var(--text);border:1px solid var(--line);border-radius:7px;padding:10px 12px;font-size:16px;max-width:100%}.settings-note,.install-help{font-size:13px;color:var(--muted);line-height:1.65}.primary-button{background:var(--accent);color:var(--accent-ink);border-radius:8px;padding:12px 18px;font-weight:650}.settings-dialog .primary-button{margin-top:20px;width:100%}.secondary-button{background:var(--raised);border:1px solid var(--line);padding:11px 16px;border-radius:8px;white-space:nowrap;font-size:14px}.map-dialog{width:min(1240px,calc(100vw - 16px));height:min(950px,calc(100dvh - 24px));padding:14px;overflow:hidden}.map-dialog[open]{display:flex;flex-direction:column}.map-dialog .dialog-head{margin:0 0 10px}.map-dialog .dialog-head h2{font-size:17px}.zoom-actions{display:flex;gap:2px}.zoom-canvas{overflow:auto;flex:1;min-height:0;background:#dce4e5;border-radius:4px;touch-action:pan-x pan-y pinch-zoom;display:block}.zoom-canvas img{display:block;width:100%;height:auto;max-width:none}.zoom-caption{font-size:12px;color:var(--muted);padding-top:10px}.no-js{position:fixed;inset:15%;background:var(--surface);padding:30px;z-index:90}
@media(min-width:900px){body[data-view=avalanches] main{max-width:1150px}}@media(max-width:1500px){.timeline-inner{margin-inline:32px}}@media(max-width:760px){.app-header{height:70px;padding:0 16px}.brand{gap:10px}.brand strong{font-size:15px;letter-spacing:.6px}.brand small{font-size:9px;letter-spacing:1px}.brand-mark{width:32px;height:36px;font-size:22px}.main-nav{padding:0 16px;gap:24px}.main-nav button{font-size:14px;min-height:47px}.utc-note{font-size:10px}main{padding:20px 14px calc(var(--bottom) + env(safe-area-inset-bottom) + 20px)}.view-heading{margin-bottom:18px}.eyebrow{font-size:10px}h1{font-size:22px}.layer-tabs{gap:5px;margin-bottom:14px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.layer-tabs button{padding:9px 2px;gap:3px;flex-direction:column;min-height:60px;font-size:11px}.layer-tabs .compare-tab{margin-left:0}.layer-tabs button>span:first-child{font-size:23px}.map-grid.is-compare{grid-template-columns:1fr}.map-grid{gap:16px}.map-head{padding:10px 12px}.map-head h2{font-size:15px}.expand-button{padding:6px 9px;min-height:40px}.map-meta{padding:9px 12px;font-size:11px;gap:7px}.map-source{font-size:11px;gap:4px}.map-body{min-height:170px}.map-cover{padding:16px}.map-cover p{font-size:13px}.timeline-inner{margin:0;padding:10px 16px 5px}.selected-date{gap:9px;flex-wrap:wrap;max-width:190px}.selected-date>span:first-child{font-size:12px;width:100%;line-height:1.2}.selected-date strong{font-size:25px}.time-buttons{gap:6px}.time-buttons button{min-width:41px;height:43px}.days button{padding:5px 9px;min-width:59px;min-height:32px;font-size:11px}.app-footer{font-size:11px}.settings-dialog{padding:20px}.setting-row{font-size:13px}.setting-row select{max-width:62%;font-size:14px}.map-dialog{border-radius:10px;padding:10px}.map-dialog .icon-button{min-width:40px}.zoom-caption{font-size:11px}}@media(max-width:360px){.brand strong{font-size:13px}.brand small{font-size:8px}.brand-mark{display:none}.utc-note{display:none}.time-buttons button{min-width:36px}.selected-date{max-width:155px}h1{font-size:20px}.layer-tabs button{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;scroll-behavior:auto!important}}@media print{.timeline,.app-header,.main-nav,.layer-tabs,.expand-button{display:none}main{padding:0}.map-grid.is-compare{grid-template-columns:1fr}.map-card{break-inside:avoid}}

/* The language choice stays visible, including on a small phone. */
.language-switch{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);border-radius:8px;margin-right:8px}
.language-switch button{min-width:34px;min-height:36px;padding:5px;background:transparent;border-radius:5px;font-size:12px;font-weight:700;color:var(--muted)}
.language-switch button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.header-actions{align-items:center}
.map-stage{min-width:0}
.map-body{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
@media(max-width:899px){.map-grid.is-compare{grid-template-columns:1fr}}

/* Desktop comparison uses the available viewport height, not a fixed map width.
   The image remains contained, so the source's legend and labels are never cut off. */
@media screen and (min-width:900px) and (min-height:400px){
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]){height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .app-header{height:54px;min-height:54px;max-width:none;width:100%;padding:0 20px;flex:none}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .brand-mark{width:29px;height:32px;font-size:21px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .brand small{font-size:8px;margin-top:0}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .main-nav{padding:0 20px;flex:none}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .main-nav button{min-height:36px;font-size:13px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) main{flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:6px 16px 4px;display:flex;flex-direction:column}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .status{flex:none;padding:6px 12px;margin:0 0 6px;font-size:12px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) #maps-view{flex:1;min-height:0;display:grid;grid-template-columns:max-content minmax(0,1fr);grid-template-rows:42px minmax(0,1fr)18px;gap:5px 16px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .view-heading{grid-area:1/1;margin:0;gap:10px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .eyebrow{display:none}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) h1{font-size:18px;letter-spacing:-.4px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .text-button{font-size:12px;padding:6px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .layer-tabs{grid-area:1/2;margin:0;justify-content:flex-end;align-items:center;flex-wrap:nowrap;gap:5px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .layer-tabs button{min-height:32px;font-size:12px;padding:4px 10px;gap:6px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .layer-tabs .compare-tab{margin-left:0}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-stage{grid-area:2/1/3/3;min-height:0;container-type:size}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-grid{height:100%;width:100%;max-width:1200px;margin:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}
  @supports (height:1cqh){
    body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-grid{width:min(100%,calc((100cqh - 72px) * 1.358696 + 12px));max-width:none}
  }
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-card{min-height:0;border-radius:5px;display:grid;grid-template-rows:30px minmax(0,1fr)}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-head{min-height:0;padding:2px 8px;gap:8px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-head h2{font-size:12px;white-space:nowrap}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-head h2 span{font-size:10px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .expand-button{min-height:26px;font-size:11px;padding:3px 8px;background:transparent}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-body{min-height:0;min-width:0;aspect-ratio:auto;background:var(--raised)}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-meta{display:none}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-cover{padding:8px;gap:5px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-cover p{font-size:12px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-source{grid-area:3/1/4/3;flex-wrap:nowrap;align-items:center;margin:0;font-size:10px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .app-footer{display:none}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .timeline{position:static;flex:none;box-shadow:none}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .timeline-inner{max-width:none;margin:0;padding:5px 16px 4px;display:grid;grid-template-columns:320px minmax(0,1fr);grid-template-rows:42px 32px;gap:0 20px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .time-top{grid-area:1/1}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .selected-date{gap:7px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .selected-date>span:first-child{font-size:12px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .selected-date strong{font-size:22px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .time-buttons{gap:4px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .time-buttons button{min-width:36px;height:34px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) #time-slider{grid-area:1/2;margin:auto 0;height:30px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .days{grid-area:2/1/3/3;padding:0}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .days button{padding:4px 8px;font-size:11px}
}

/* A continuous stack of wide maps on mobile, inspired by the original app. */
@media(max-width:760px){
  .app-header{height:60px;padding:0 12px;gap:8px}
  .brand{gap:7px}.brand strong{font-size:13px;letter-spacing:.3px}.brand small{font-size:8px;letter-spacing:.5px}
  .brand-mark{width:25px;height:30px;font-size:19px}
  .header-actions{gap:0}.language-switch{margin-right:3px;padding:2px}.language-switch button{min-width:30px;min-height:36px;font-size:11px}
  .header-actions>.icon-button{min-width:38px;height:44px;font-size:23px}
  .main-nav{padding:0 12px;gap:20px}.main-nav button{min-height:40px;font-size:13px}
  main{padding:10px 10px calc(var(--bottom) + env(safe-area-inset-bottom) + 16px)}
  #maps-view .view-heading{margin-bottom:8px}.eyebrow{display:none}#maps-view h1{font-size:18px}
  .layer-tabs{margin-bottom:10px;gap:4px}.layer-tabs button{min-height:43px;padding:4px 2px;font-size:10px;gap:1px;border-radius:5px}.layer-tabs button>span:first-child{font-size:18px}
  .map-grid.is-compare{gap:4px}.map-grid.is-compare .map-card{border-radius:0;border-left:0;border-right:0}
  .map-grid.is-compare .map-head{padding:1px 10px;min-height:34px}.map-grid.is-compare .map-head h2{font-size:13px}.map-grid.is-compare .expand-button{min-height:32px;font-size:11px;background:none;padding:4px 2px}
  .map-grid.is-compare .map-meta{display:none}
  body[data-mode=all] .map-stage{margin-inline:-10px}
  .timeline-inner{padding:6px 12px 4px}.time-top{gap:6px}.time-buttons button{height:40px;min-width:42px}
  .selected-date{max-width:210px;gap:8px;flex-wrap:nowrap}.selected-date>span:first-child{width:auto;max-width:72px;font-size:11px}.selected-date strong{font-size:22px}.time-zone{font-size:10px}
  #time-slider{height:24px;margin:3px 0 0}.days button{min-height:32px;min-width:58px}
  .settings-dialog{width:min(400px,calc(100vw - 20px));height:100dvh;max-height:100dvh;max-width:100vw;margin:0 0 0 auto;border-radius:0;border-top:0;border-right:0;border-bottom:0;overflow:auto;padding-top:max(18px,env(safe-area-inset-top))}
}
@media(max-width:420px){
  .brand-mark,.brand small{display:none}.brand strong{font-size:13px;line-height:1.25}.brand strong span{display:block;font-size:11px;letter-spacing:1px}
}
@media(max-width:360px){
  .selected-date{gap:4px}.selected-date>span:first-child{max-width:52px;font-size:10px}.selected-date strong{font-size:20px}
  .time-buttons{gap:4px}.time-buttons button{min-width:36px}
}
@media print{.language-switch{display:none}}

/* Shared vector weather symbols and a translucent background, with opaque controls. */
:root{--timeline-rgb:17,28,38;--timeline-alpha:.8}
:root[data-theme=light]{--timeline-rgb:255,255,255}
.weather-icon{display:block;width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.map-head h2{display:flex;align-items:center;gap:6px}
.map-head h2 .weather-icon{width:18px;height:18px}
.map-head h2 span{margin-left:0}
.timeline{background:rgba(var(--timeline-rgb),var(--timeline-alpha));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.selected-date{background:rgba(var(--timeline-rgb),.9);border-radius:5px;padding:2px 4px}
.days button{background:rgba(var(--timeline-rgb),.85)}
.opacity-setting{padding:16px 0;border-bottom:1px solid var(--line);font-size:14px}
.opacity-setting label{display:flex;justify-content:space-between;align-items:center;gap:12px}
.opacity-setting output{color:var(--accent);font-variant-numeric:tabular-nums}
.opacity-setting input{display:block;width:100%;height:36px;margin:6px 0 0;accent-color:var(--accent)}
.opacity-setting p{font-size:12px;color:var(--muted);margin:0}

/* Three complete maps above the timeline on phones. Scroll inside the map stack
   for the fourth map. The stack continues underneath the translucent timeline. */
@media screen and (max-width:899px){
  body[data-view=maps]{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
  body[data-view=maps] .app-header{height:48px;min-height:48px;flex:none;width:100%;max-width:none;margin:0;padding:0 10px}
  body[data-view=maps] .main-nav{flex:none;min-height:38px;padding:0 64px 0 10px;gap:18px}
  body[data-view=maps] .main-nav button{min-height:36px;font-size:12px;white-space:nowrap}
  body[data-view=maps] .utc-note{display:none}
  body[data-view=maps] main{flex:1;min-height:0;max-width:none;width:100%;margin:0;padding:0;display:flex;flex-direction:column}
  body[data-view=maps] .status{flex:none;margin:4px 6px;padding:4px 8px;font-size:11px;gap:8px}
  body[data-view=maps] #maps-view{flex:1;min-height:0;display:flex;flex-direction:column}
  body[data-view=maps] .view-heading{margin:0;display:contents}
  body[data-view=maps] .view-heading>div{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  body[data-view=maps] #now{position:absolute;right:9px;top:49px;height:36px;padding:0 3px;font-size:11px}
  body[data-view=maps] .layer-tabs{flex:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:5px 6px}
  body[data-view=maps] .layer-tabs button{flex-direction:row;gap:4px;min-height:34px;padding:3px 2px;font-size:10px;border-radius:5px}
  body[data-view=maps] .layer-tabs .compare-tab{margin-left:0}
  body[data-view=maps] .layer-tabs .weather-icon{width:17px;height:17px}
  body[data-view=maps] .map-stage{flex:1;min-height:0;min-width:0;width:100%;margin:0;container-type:size;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
  body[data-view=maps] .map-grid{display:grid;width:100%;max-width:none;height:auto;min-height:0;margin:0;grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:calc((100cqh - var(--bottom) - 8px) / 3);align-content:start;gap:4px;padding:0 0 var(--bottom)}
  body[data-view=maps] .map-card{display:grid;grid-template-rows:28px minmax(0,1fr);min-height:0;border-radius:0;border-left:0;border-right:0}
  body[data-view=maps] .map-head{min-height:0;padding:0 10px;gap:6px}
  body[data-view=maps] .map-head h2{font-size:11px;white-space:nowrap}
  body[data-view=maps] .map-head h2 span{font-size:10px}
  body[data-view=maps] .map-head .weather-icon{width:16px;height:16px}
  body[data-view=maps] .expand-button{min-height:28px;padding:2px 6px;font-size:10px;background:transparent}
  body[data-view=maps] .map-body{min-width:0;min-height:0;aspect-ratio:auto;background:var(--raised)}
  body[data-view=maps] .map-meta,body[data-view=maps] .map-source,body[data-view=maps] .app-footer{display:none}
  body[data-view=maps] .map-cover{padding:6px;gap:4px}
  body[data-view=maps] .map-cover p{font-size:11px}
  body[data-view=maps] .timeline-inner{margin:0;padding:4px 10px 2px}
  body[data-view=maps] .time-top{height:36px;gap:5px}
  body[data-view=maps] .selected-date{max-width:none;gap:6px;flex-wrap:nowrap}
  body[data-view=maps] .selected-date>span:first-child{width:auto;max-width:70px;font-size:11px;line-height:1.2}
  body[data-view=maps] .selected-date strong{font-size:21px}
  body[data-view=maps] .time-buttons{gap:4px}
  body[data-view=maps] .time-buttons button{height:34px;min-width:38px}
  body[data-view=maps] #time-slider{height:24px;margin:2px 0 0}
  body[data-view=maps] .days{padding:1px 0}
  body[data-view=maps] .days button{min-height:28px;min-width:54px;padding:3px 7px;font-size:10px}
}
@media screen and (max-width:360px){
  body[data-view=maps] .main-nav{gap:11px;padding-right:53px}
  body[data-view=maps] .main-nav button{font-size:11px}
  body[data-view=maps] .layer-tabs button{flex-direction:column;gap:0;min-height:38px}
  body[data-view=maps] .selected-date{gap:4px}
  body[data-view=maps] .selected-date>span:first-child{max-width:51px;font-size:10px}
  body[data-view=maps] .time-buttons button{min-width:34px}
}

/* Region selection and frame changes keep the current map visible. */
.region-bar{display:flex;align-items:center;gap:12px;margin:0 0 12px;min-width:0}
.region-picker{display:flex;align-items:center;gap:10px;min-width:0;font-size:12px;color:var(--muted)}
.region-picker select{width:250px;max-width:100%;height:34px;padding:3px 10px;font-size:14px;color:var(--text)}
#cloud-region-note{margin:0;color:var(--muted);font-size:11px}
.map-pending{position:absolute;bottom:6px;right:6px;max-width:calc(100% - 12px);padding:5px 8px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--muted);font-size:11px;display:flex;align-items:center;gap:8px;box-shadow:0 2px 9px #0003}
.map-pending button{padding:3px 6px;background:var(--raised);color:var(--text);border-radius:3px;font-size:inherit}
.has-frame-error .map-pending{color:var(--amber)}
.map-card{container-type:inline-size}
.map-head h2{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.map-head h2 .weather-icon{display:inline-block;vertical-align:-3px;margin-right:6px}
.map-head h2 .map-unit,.map-head h2 .map-scope{margin-left:6px}
.expand-button{flex:none}
@container (max-width:270px){
  .map-head h2 .map-scope{display:none}
  .expand-button{font-size:0!important;min-width:25px;padding-inline:3px!important}
  .expand-button::after{content:'↗';font-size:15px}
}
body[data-view=avalanches] #fullscreen-toggle{display:none}

@media screen and (min-width:900px) and (min-height:400px){
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) #maps-view{grid-template-rows:42px 36px minmax(0,1fr) 18px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .region-bar{grid-area:2/1/3/3;margin:0}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-stage{grid-area:3/1/4/3}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-source{grid-area:4/1/5/3}
  body[data-view=maps][data-comparing=false] .map-grid{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr);width:min(100%,calc((100cqh - 32px) * 1.358696 + 2px));max-width:none}
}
@media screen and (max-width:899px){
  body[data-view=maps] .region-bar{flex:none;min-height:38px;padding:2px 6px 4px;margin:0;gap:8px}
  body[data-view=maps] .region-picker{flex:0 1 60%;min-width:0}
  body[data-view=maps] .region-picker>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  body[data-view=maps] .region-picker select{width:100%;height:32px;font-size:16px;padding:2px 7px}
  body[data-view=maps] #cloud-region-note{font-size:10px;line-height:1.2;flex:1}
  body[data-view=maps][data-comparing=false] .map-stage{overflow:hidden}
  body[data-view=maps][data-comparing=false] .map-grid{height:calc(100% - var(--bottom));padding:0;grid-auto-rows:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:0}
  .map-pending{font-size:10px;line-height:1.25;padding:3px 5px}
  .language-switch{margin-right:2px}
  .language-switch button{min-width:28px}
  body[data-view=maps] .app-header{gap:5px}
  body[data-view=maps] .header-actions>.icon-button{min-width:34px}
}

/* Fullscreen leaves only region, time and exit controls around the maps. */
body[data-view=maps][data-fullscreen=true]{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
body[data-view=maps][data-fullscreen=true] .app-header{height:0;min-height:0;padding:0;margin:0;flex:none}
body[data-view=maps][data-fullscreen=true] .brand,
body[data-view=maps][data-fullscreen=true] .language-switch,
body[data-view=maps][data-fullscreen=true] #refresh,
body[data-view=maps][data-fullscreen=true] #settings-open,
body[data-view=maps][data-fullscreen=true] .main-nav,
body[data-view=maps][data-fullscreen=true] .layer-tabs,
body[data-view=maps][data-fullscreen=true] .view-heading>div,
body[data-view=maps][data-fullscreen=true] .map-source,
body[data-view=maps][data-fullscreen=true] .app-footer{display:none}
body[data-view=maps][data-fullscreen=true] #fullscreen-toggle{position:fixed;top:max(4px,env(safe-area-inset-top));right:max(6px,env(safe-area-inset-right));z-index:30;width:36px;height:34px;min-width:36px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--accent)}
body[data-view=maps][data-fullscreen=true] main{flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:0 4px;display:flex;flex-direction:column}
body[data-view=maps][data-fullscreen=true] #maps-view{display:flex;flex:1;min-height:0;flex-direction:column;gap:0}
body[data-view=maps][data-fullscreen=true] .view-heading{display:contents}
body[data-view=maps][data-fullscreen=true] #now{position:fixed;top:max(4px,env(safe-area-inset-top));right:51px;height:34px;font-size:12px;padding:4px 7px;z-index:25}
body[data-view=maps][data-fullscreen=true] .region-bar{flex:none;min-height:42px;padding:4px 100px 4px 2px;margin:0;gap:8px}
body[data-view=maps][data-fullscreen=true] .region-picker>span{display:none}
body[data-view=maps][data-fullscreen=true] .region-picker{flex:0 1 250px}
body[data-view=maps][data-fullscreen=true] .map-stage{flex:1;min-height:0;container-type:size}
body[data-view=maps][data-fullscreen=true] .map-card{border-radius:3px}
@media screen and (max-width:899px){
  body[data-view=maps][data-fullscreen=true] .region-picker{flex:1;max-width:250px}
  body[data-view=maps][data-fullscreen=true] #cloud-region-note{display:none}
}
@media screen and (max-width:899px) and (orientation:landscape){
  body[data-view=maps][data-comparing=true] .map-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:calc(100cqh - var(--bottom))}
  body[data-view=maps]:not([data-fullscreen=true]) .app-header{height:40px;min-height:40px}
  body[data-view=maps] .main-nav{min-height:32px}
  body[data-view=maps] .main-nav button{min-height:30px}
  body[data-view=maps]:not([data-fullscreen=true]) #now{top:41px;height:30px}
  body[data-view=maps] .region-bar{min-height:34px;padding-block:1px}
  body[data-view=maps][data-fullscreen=true] .region-bar{min-height:42px;padding-top:4px}
}
@media print{.region-bar,#fullscreen-toggle,.map-pending{display:none}}

/* Source times and the full-timeline download stay accessible in fullscreen. */
.timeline-details{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;min-height:28px;color:var(--muted);font-size:11px;line-height:1.25}
#cache-summary{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#source-summary{white-space:nowrap;font-variant-numeric:tabular-nums}
#data-info-open{background:none;color:var(--accent);border-radius:5px;min-height:28px;padding:4px 0 4px 8px;font-size:12px;white-space:nowrap}
.data-info-dialog{width:680px;max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain}
.data-info-dialog .dialog-head{position:sticky;top:-22px;z-index:1;background:var(--surface);padding-block:8px;margin-top:-8px;margin-bottom:12px;border-bottom:1px solid var(--line)}
#data-info-content{font-size:13px;line-height:1.55;overflow-wrap:anywhere}
#data-info-content h3{font-size:15px;line-height:1.35;margin:24px 0 10px;color:var(--text)}
#data-info-content h3:first-child{margin-top:0}
#data-info-content p{margin:8px 0;color:var(--muted)}
#data-info-content dl{margin:0;display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:8px 14px}
#data-info-content dt{color:var(--muted)}
#data-info-content dd{margin:0;font-variant-numeric:tabular-nums}
#data-info-content table{border-collapse:collapse;width:100%;font-size:12px}
#data-info-content th,#data-info-content td{padding:9px 7px;vertical-align:top;text-align:left;border-bottom:1px solid var(--line)}
#data-info-content th{color:var(--muted);font-weight:500}
#data-info-content th:first-child,#data-info-content td:first-child{padding-left:0}
#data-info-content a{color:var(--accent)}
#data-info-content ul{padding-left:19px;margin:8px 0}
#data-info-content li{margin:6px 0}
@media(max-width:899px){
  .timeline-details{gap:6px;min-height:25px;font-size:10px}
  #data-info-open{font-size:11px;min-height:25px;padding-left:4px}
  .data-info-dialog{padding:16px;max-height:calc(100dvh - 20px)}
  .data-info-dialog .dialog-head{top:-16px}
  .data-info-dialog .dialog-head h2{font-size:19px}
  #data-info-content dl{grid-template-columns:1fr;gap:2px}
  #data-info-content dd{margin-bottom:10px}
  #data-info-content table{font-size:11px}
  #data-info-content th,#data-info-content td{padding:7px 4px}
}
@media print{.timeline-details,.data-info-dialog{display:none}}

/* Official avalanche bulletins have their own validity, separate from the map timeline. */
.avalanche-view-switch{display:flex;gap:8px;margin:0 0 18px}
.avalanche-view-switch button{padding:10px 14px;min-height:44px;background:var(--surface);border:1px solid var(--line);border-radius:8px;font-size:13px}
.avalanche-view-switch button[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}
.avalanche-embed-note{font-size:12px;color:var(--muted);margin:0 0 8px}
#avalanche-embed-panel>.avalanche-source{margin:8px 0 12px}
#avalanche-embed-frame{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
#avalanche-embed-frame iframe{display:block;width:100%;height:max(550px,75dvh);border:0;color-scheme:normal}
@media(max-width:600px){.avalanche-view-switch button{padding:8px 10px;font-size:12px}#avalanche-embed-frame iframe{height:80dvh;min-height:500px}}
body[data-view=avalanches] main{max-width:1100px;padding-bottom:32px}
body[data-view=avalanches] #status{display:none}
#avalanches-view{min-width:0}
#avalanches-view .view-heading{margin-bottom:24px}
.avalanche-heading-icon{width:42px;height:42px;color:var(--accent)}
.avalanche-region-picker{display:flex;align-items:center;gap:16px;margin-bottom:22px;font-size:13px;color:var(--muted)}
.avalanche-region-picker select{min-width:240px;max-width:100%;color:var(--text)}
#avalanche-status{padding:12px 16px;margin-bottom:18px;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:14px;background:var(--surface)}
#avalanche-status button{margin-left:10px;background:var(--raised);padding:7px 12px;border:1px solid var(--line);border-radius:6px;color:var(--text)}
#avalanche-content{overflow-wrap:anywhere}
.avalanche-summary{padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-bottom:18px}
.avalanche-summary h2{font-size:23px;line-height:1.3;margin:0 0 16px;font-weight:650}
.avalanche-summary p{margin:12px 0;color:var(--muted)}
.avalanche-danger{display:flex;align-items:center;gap:14px;padding:16px 18px;border:1px solid var(--line);border-radius:9px;background:var(--raised);color:var(--text);margin:14px 0}
.avalanche-danger strong{font-size:40px;line-height:1;font-weight:700;flex:none}
.avalanche-danger span{font-size:17px;font-weight:650;line-height:1.4}
.avalanche-danger[data-level="1"]{background:#ccff66;color:#1a340d;border-color:#a4cc52}
.avalanche-danger[data-level="2"]{background:#ffff00;color:#353000;border-color:#dbd500}
.avalanche-danger[data-level="3"]{background:#ff9900;color:#392000;border-color:#cc7a00}
.avalanche-danger[data-level="4"]{background:#ff0000;color:#fff;border-color:#ff6666}
.avalanche-danger[data-level="5"]{background:#8c0000;color:#fff;border-color:#c23a3a}
.avalanche-dates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:6px 18px;margin:20px 0 0;font-size:13px;font-variant-numeric:tabular-nums}
.avalanche-dates dt{color:var(--muted)}
.avalanche-dates dd{margin:0}
.avalanche-section{margin:18px 0;padding:22px 24px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.avalanche-section h2,.avalanche-section h3{margin:0 0 10px;font-size:18px;font-weight:650;line-height:1.4}
.avalanche-section p{margin:8px 0;white-space:pre-line;line-height:1.7}
.avalanche-original{font-size:12px;color:var(--muted);margin:20px 0 8px}
.avalanche-problems{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.avalanche-problems>*{min-width:0}
.avalanche-problems>h3{grid-column:1/-1;font-size:18px;margin:8px 0 0}
.avalanche-problem{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:18px}
.avalanche-problem h4{font-size:16px;line-height:1.4;margin:0 0 12px}
.avalanche-problem p{white-space:pre-line;line-height:1.6;font-size:14px}
.avalanche-problems .avalanche-section{margin:0}
.avalanche-context{font-size:13px;color:var(--muted);line-height:1.6;margin:16px 0}
.avalanche-refresh-note{font-size:12px;color:var(--muted);margin:12px 0}
.avalanche-outlook{margin:20px 0}
.avalanche-outlook>h3{font-size:17px;margin:0 0 12px}
.avalanche-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.avalanche-days article{display:flex;flex-direction:column;gap:6px;padding:14px 12px;border:1px solid var(--line);border-top:3px solid var(--muted);border-radius:8px;background:var(--surface);font-size:13px}
.avalanche-days time{font-size:12px;color:var(--muted)}
.avalanche-days strong{font-size:23px;line-height:1.2}
.avalanche-days article[data-level="1"]{border-top-color:#ccff66}
.avalanche-days article[data-level="2"]{border-top-color:#ffff00}
.avalanche-days article[data-level="3"]{border-top-color:#ff9900}
.avalanche-days article[data-level="4"]{border-top-color:#ff0000}
.avalanche-days article[data-level="5"]{border-top-color:#8c0000}
.avalanche-source{font-size:13px;color:var(--muted);line-height:1.6;margin:16px 0;display:flex;flex-wrap:wrap;gap:8px 20px}
a.avalanche-source,.avalanche-source a,.avalanche-archive a{color:var(--accent);text-underline-offset:3px}
.avalanche-archive{margin:24px 0;border:1px solid var(--line);border-radius:9px;padding:0 18px;background:var(--surface);font-size:14px}
.avalanche-archive>summary{cursor:pointer;min-height:48px;padding:13px 0;color:var(--muted);font-weight:600}
.avalanche-archive>summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.avalanche-archive .avalanche-section{padding:16px 0;border:0;border-top:1px solid var(--line);border-radius:0}
.avalanche-archive p{white-space:pre-line;line-height:1.65}
@media(max-width:899px){
  body[data-view=avalanches] .app-header{height:48px;min-height:48px;padding:0 10px}
  body[data-view=avalanches] .main-nav{padding:0 10px;gap:18px}
  body[data-view=avalanches] .main-nav button{min-height:38px;white-space:nowrap;font-size:12px}
  body[data-view=avalanches] .utc-note{font-size:10px}
  body[data-view=avalanches] main{padding:18px 12px 24px}
  #avalanches-view .view-heading{margin-bottom:18px;gap:8px}
  #avalanches-view h1{font-size:24px}
  .avalanche-heading-icon{width:32px;height:32px}
  .avalanche-region-picker{display:block;margin-bottom:16px}
  .avalanche-region-picker>span{display:block;margin-bottom:6px;font-size:12px}
  .avalanche-region-picker select{width:100%;min-width:0;height:44px;padding-block:8px}
  .avalanche-summary,.avalanche-section{padding:18px 16px}
  .avalanche-summary h2{font-size:20px}
  .avalanche-summary p,.avalanche-section p{font-size:14px}
  .avalanche-danger{padding:14px 12px;gap:12px}
  .avalanche-danger strong{font-size:34px}
  .avalanche-danger span{font-size:15px}
  .avalanche-dates{grid-template-columns:1fr;gap:3px;margin-top:16px;font-size:12px}
  .avalanche-dates dd{margin-bottom:8px}
  .avalanche-problems{grid-template-columns:1fr;gap:10px}
  .avalanche-section h2,.avalanche-section h3{font-size:17px}
  .avalanche-source{display:block;font-size:12px}
  .avalanche-source>*{display:block;margin:6px 0}
  .avalanche-archive{padding-inline:14px}
}

/* Group frequently used controls around the maps, including in wide windows. */
.data-toolbar{display:flex;flex:none;align-items:center;justify-content:center;gap:18px;min-height:38px;padding:3px 12px;background:var(--surface);border-bottom:1px solid var(--line);font-size:12px}
.data-toolbar #data-info-open{background:var(--raised);border:1px solid var(--accent);padding:4px 12px;min-height:30px;font-weight:650}
#source-summary,#avalanche-updated{color:var(--accent);font-variant-numeric:tabular-nums}
#source-summary[data-stale=true],#avalanche-updated[data-stale=true]{color:var(--amber)}
body[data-view=avalanches] #source-summary{display:none}
body[data-view=avalanches] #avalanche-updated{display:block!important}
.timeline-details{grid-template-columns:1fr}
#cache-summary{text-align:center}
.map-body img{cursor:zoom-in}
.zoom-timeline{display:flex;align-items:center;justify-content:center;gap:16px;flex:none;padding-top:8px}
.zoom-timeline>div{text-align:center;font-variant-numeric:tabular-nums}
.zoom-timeline button{background:var(--raised);border:1px solid var(--line);color:var(--accent)}
#zoom-status{display:block;color:var(--amber);font-size:11px;min-height:0}
#zoom-time[data-pending=true]{color:var(--amber)}
.zoom-canvas:not([data-zoomed=true]){touch-action:pan-y pinch-zoom;display:flex;align-items:center;justify-content:center;overflow:hidden}
.zoom-canvas:not([data-zoomed=true]) img{width:100%;height:100%;object-fit:contain}
.zoom-canvas[data-zoomed=true] img{height:auto}
@media screen and (min-width:900px){
  body .app-header,body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .app-header{justify-content:center;gap:70px}
  body .main-nav{justify-content:center;gap:26px}
  .utc-note{margin-left:12px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) #maps-view{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .view-heading{justify-content:flex-end}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .layer-tabs{justify-content:flex-start}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .region-bar{justify-content:center}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .timeline-inner{max-width:1100px;margin-inline:auto;width:100%}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-source{justify-content:center;gap:20px}
}
@media screen and (max-width:899px){
  .data-toolbar{min-height:32px;font-size:10px;gap:8px;padding:2px 8px}
  .data-toolbar #data-info-open{font-size:11px;min-height:28px;padding:3px 7px}
  #avalanche-updated{white-space:normal;line-height:1.3}
  .zoom-timeline{gap:8px;font-size:12px}
  .zoom-caption{font-size:10px;line-height:1.3}
}
body[data-view=maps][data-fullscreen=true] .data-toolbar{padding-right:50px;min-height:36px}
body[data-view=maps][data-fullscreen=true] #now{top:40px;right:8px}
body[data-view=maps][data-fullscreen=true] .region-bar{padding-right:65px}
.map-controls{display:contents}
@media screen and (min-width:900px) and (min-height:400px){
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-controls{display:grid;grid-area:1/1/3/3;grid-template-columns:max-content max-content;grid-template-rows:42px 36px;gap:5px 16px;justify-content:center}
  body[data-view=maps][data-fullscreen=true] .map-controls{display:contents}
}

/* Source-specific freshness is shown once in the upper toolbar. */
#updated{display:none}


/* 1.10: wider primary navigation, explicit actions and source details to the side. */
#app-header{justify-content:space-between;gap:20px;max-width:1600px;width:100%;padding-inline:24px}
#main-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px max(16px,calc((100vw - 1500px)/2));min-height:52px}
#main-navigation>button{flex:1;max-width:240px;min-height:40px;font-size:14px;border-radius:6px;background:var(--raised)}
#main-navigation>button[aria-selected=true]{color:var(--accent);border-color:var(--accent)}
.primary-actions{display:flex;flex:1.4;gap:10px;justify-content:flex-end}
#main-navigation .primary-actions button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:135px;min-height:40px;height:40px;padding:5px 12px;border:1px solid var(--accent);background:var(--raised);color:var(--accent);font-size:13px;font-weight:650;white-space:nowrap}
#refresh.is-loading{animation:none}
#refresh.is-loading>.weather-icon{animation:rotate 1s linear infinite}
.data-toolbar{background:none;border:0;justify-content:flex-end;margin-left:auto;min-height:0;padding:0;font-size:11px;gap:10px}
.data-toolbar #data-info-open{font-size:11px;min-height:28px;padding:3px 8px}
#source-summary{white-space:normal;line-height:1.2;text-align:right}
.layer-tabs .compare-tab{margin-left:0}
#map-grid:focus{outline:none}
.map-heading{min-width:0;flex:1}
.map-run{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;line-height:1.4;color:var(--muted);font-variant-numeric:tabular-nums}
#zoom-run{font-size:11px;margin-top:3px}
.zoom-canvas{scrollbar-width:none;overscroll-behavior:contain}
.zoom-canvas::-webkit-scrollbar{display:none}
.zoom-canvas[data-zoomed=true]{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.zoom-canvas.is-dragging{cursor:grabbing}
.zoom-canvas img{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
#days{position:relative;display:block;overflow:visible;min-height:36px;height:36px;padding:0 9px;margin:0 8px;scrollbar-width:none}
.axis-day{position:absolute;top:0;transform:translateX(-50%);font-size:10px;line-height:1.25;text-align:center;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;padding-top:5px}
.axis-day:before{content:'';position:absolute;top:0;left:50%;height:4px;width:1px;background:var(--muted)}
.axis-day b,.axis-day>span{display:block;font-weight:400}
.axis-day.is-selected{color:var(--accent);font-weight:700}
.axis-day.is-selected:before{background:var(--accent);width:2px}
.axis-day.is-compact>*{visibility:hidden}
#timeline #now{position:static;top:auto;right:auto;font-size:11px;padding:3px 7px;min-width:36px;height:34px}
body[data-view=avalanches] main{width:100%;max-width:none;padding:16px 24px}
#avalanches-view{width:100%;max-width:none}
#avalanches-view .view-heading{margin-bottom:12px}
#avalanches-view .avalanche-region-picker{margin-bottom:8px}
#avalanche-embed-panel{width:100%;display:flex;flex-direction:column}
#avalanche-embed-link{align-self:flex-end;margin:0 0 8px}
#avalanche-embed-frame iframe{display:block;width:100%;height:max(560px,calc(100dvh - 245px));border:0}
@media screen and (min-width:900px) and (min-height:400px){
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .map-controls{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);justify-content:stretch}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .view-heading{justify-content:flex-start}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .layer-tabs{justify-content:flex-end}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .layer-tabs button{flex:1;max-width:150px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .region-bar{justify-content:flex-start}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) #map-grid{width:min(100%,calc((100cqh - 92px) * 1.358696 + 12px))}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) #map-grid:not(.is-compare){width:min(100%,calc((100cqh - 42px) * 1.358696 + 2px))}
  #map-grid .map-card{grid-template-rows:40px minmax(0,1fr)}
  #map-grid .map-head{padding:2px 8px}
  body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) .timeline-inner{grid-template-columns:340px minmax(0,1fr);grid-template-rows:40px 36px;max-width:1500px}
  body[data-view=maps] #days{grid-area:2/2/3/3}
  body[data-view=maps] .timeline-details{grid-area:2/1;min-height:0}
}
@media screen and (max-width:899px){
  #app-header{padding-inline:10px}
  #main-navigation{padding:3px 6px;gap:4px;flex-wrap:wrap;min-height:0}
  #main-navigation>button{min-height:30px;font-size:12px}
  .primary-actions{flex:1 0 100%;gap:6px}
  #main-navigation .primary-actions button{flex:1;min-width:0;height:32px;min-height:32px;font-size:11px;padding:3px 7px}
  .primary-actions .weather-icon{width:17px;height:17px}
  body[data-view=maps] .region-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;min-height:42px;padding:2px 6px}
  body[data-view=maps] .region-picker{display:block;width:100%;max-width:none}
  body[data-view=maps] #cloud-region-note{display:none}
  .data-toolbar{display:flex;flex-direction:column;align-items:flex-end;gap:1px;max-width:145px;padding:0}
  .data-toolbar #data-info-open{min-height:20px;padding:1px 5px;font-size:10px;border:0;background:none}
  #source-summary{font-size:9px}
  body[data-view=maps] #map-grid{gap:0;grid-auto-rows:calc((100cqh - var(--bottom)) / 3)}
  #map-grid .map-card{position:relative;display:block;border:0;border-radius:0}
  #map-grid .map-body{height:100%;min-height:0}
  #map-grid .map-body>img{width:100%;height:100%;object-fit:contain}
  #map-grid .map-head{position:absolute;z-index:2;top:1px;left:2px;right:auto;min-height:0;max-width:calc(100% - 4px);padding:1px 4px;pointer-events:none;background:rgba(var(--timeline-rgb),.88);border-radius:3px}
  #map-grid .map-head h2{font-size:10px;line-height:1.2}
  #map-grid .map-head .weather-icon,#map-grid .map-scope,#map-grid .expand-button{display:none}
  #map-grid .map-run{font-size:8px;line-height:1.2}
  #days{height:30px;min-height:30px;margin-inline:7px}
  .axis-day{font-size:9px}
  body[data-view=maps] .time-top{height:36px}
  body[data-view=maps] .time-buttons{gap:3px}
  body[data-view=maps] .time-buttons button{min-width:30px}
  body[data-view=avalanches] main{padding:12px 8px}
  #avalanche-embed-link{font-size:11px}
}
body[data-view=maps][data-fullscreen=true] #main-navigation{display:contents}
body[data-view=maps][data-fullscreen=true] #main-navigation>button{display:none}
body[data-view=maps][data-fullscreen=true] .primary-actions{display:contents}
body[data-view=maps][data-fullscreen=true] #fullscreen-toggle{position:fixed;display:grid;min-width:36px;width:36px;top:4px;right:6px;padding:4px;z-index:30}
body[data-view=maps][data-fullscreen=true] #fullscreen-toggle [data-fullscreen-label]{display:none}
body[data-view=maps][data-fullscreen=true] .region-bar{padding-right:52px}
body[data-view=maps][data-fullscreen=true] .data-toolbar{padding:0}
@media screen and (max-width:899px) and (orientation:landscape){
  body[data-view=maps][data-comparing=true] #map-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:calc(100cqh - var(--bottom))}
}
body[data-view=avalanches] #main-navigation #fullscreen-toggle{display:none}
@media screen and (max-width:899px) and (orientation:landscape){
  #main-navigation{flex-wrap:nowrap}
  .primary-actions{flex:0 0 auto}
  #main-navigation .primary-actions button{min-width:36px;width:36px;padding:4px}
  #main-navigation .primary-actions button>span:not(:first-child),#main-navigation [data-fullscreen-label]{display:none}
}

/* 1.11: one stable header across views, regions in navigation. */
body:not([data-fullscreen=true]) #app-header{height:60px;min-height:60px;max-width:none;margin:0;padding:0 18px;gap:20px;flex:none;justify-content:flex-start}
#app-header .brand-mark{width:29px;height:32px;font-size:21px}
#app-header .brand small{font-size:8px;margin-top:0}
#app-header .header-actions{margin-left:auto;flex:none}
.header-forecast{font-size:11px;line-height:1.6;color:var(--muted);font-variant-numeric:tabular-nums;min-width:0}
.header-forecast span{display:block}
.header-forecast span:first-child{color:var(--accent);font-weight:700}
.header-forecast[data-stale=true] span:first-child{color:var(--amber)}
body[data-view=avalanches] .header-forecast{visibility:hidden}
body:not([data-fullscreen=true]) #main-navigation{flex:none;padding:6px 16px;gap:10px;min-height:52px;flex-wrap:nowrap}
#main-navigation>button{flex:1;max-width:190px}
.nav-regions{flex:1.3;min-width:140px;max-width:290px}
#main-navigation .nav-regions label{display:block;margin:0;width:100%;max-width:none}
.nav-regions label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#main-navigation .nav-regions select{width:100%;min-width:0;max-width:none;height:36px;padding:4px 10px;font-size:12px}
body[data-view=maps] #main-navigation .avalanche-region-picker,body[data-view=avalanches] #main-navigation .region-picker{display:none}
.primary-actions{flex:none}
body[data-view=avalanches] #main-navigation #fullscreen-toggle{display:flex;visibility:hidden;pointer-events:none}
#maps-view .view-heading{display:none}
#maps-view .map-controls{display:flex;align-items:center;justify-content:center;position:relative;gap:10px;min-height:42px;flex:none;grid-area:auto}
#maps-view .layer-tabs{justify-content:center;margin:0;flex:none;gap:5px}
#maps-view .layer-tabs button{flex:none;min-width:76px;max-width:none}
#maps-view .region-bar{position:absolute;right:0;top:0;bottom:0;display:flex;align-items:center;min-height:0;padding:0;margin:0}
#map-grid .map-run{display:none}
#map-grid .map-card{grid-template-rows:26px minmax(0,1fr)}
body[data-view=avalanches] main{padding:6px 16px;margin:0;width:100%;max-width:none}
#avalanche-embed-link{margin:0 0 4px;font-size:11px}
#avalanche-embed-frame iframe{height:max(560px,calc(100dvh - 146px))}
#zoom-canvas{touch-action:none}
/* Day tiles remain aligned to the timeline, not clickable forecast buttons. */
.axis-day{border-radius:4px;padding:5px 4px 2px;min-width:27px}
.axis-day:not(.is-compact){background:var(--raised)}
.axis-day.is-selected{background:var(--accent);color:var(--bg)}
.axis-day.is-selected b{font-weight:750}
@media screen and (min-width:900px) and (min-height:400px){
 body[data-view=maps]:is([data-comparing=false],[data-layout=grid],[data-fullscreen=true]) #maps-view{display:flex;flex-direction:column;gap:5px}
 body[data-view=maps] #maps-view .map-controls{display:flex;grid-template:none;justify-content:center}
 body[data-view=maps] #maps-view .layer-tabs{justify-content:center}
 body[data-view=maps] #maps-view .map-stage{flex:1;min-height:0}
 body[data-view=maps] #maps-view #map-grid{width:min(100%,calc((100cqh - 64px) * 1.358696 + 12px))}
 body[data-view=maps] #maps-view #map-grid:not(.is-compare){width:min(100%,calc((100cqh - 28px) * 1.358696 + 2px))}
 #maps-view .map-source{min-height:18px}
}
@media screen and (min-width:900px) and (max-width:1199px){
 #maps-view .data-toolbar{flex-direction:column;gap:0}
 #maps-view .data-toolbar #data-info-open{min-height:20px;padding:0 4px}
 #main-navigation .primary-actions button{min-width:40px;width:40px;padding:4px}
 #main-navigation .primary-actions button>span:not(:first-child),#main-navigation [data-fullscreen-label]{display:none}
}
@media screen and (max-width:899px){
 body:not([data-fullscreen=true]) #app-header{height:62px;min-height:62px;padding:0 8px;gap:8px}
 #app-header .brand{flex:none}
 #app-header .brand-mark,#app-header .brand small{display:none}
 #app-header .brand strong{font-size:11px}
 #app-header .brand strong span{display:block;font-size:10px}
 #app-header .header-actions{gap:0}
 #app-header .header-actions .icon-button{min-width:28px;width:28px;font-size:22px}
 #app-header .language-switch button{min-width:25px;padding:3px}
 .header-forecast{font-size:8px;line-height:1.4;flex:1}
 body:not([data-fullscreen=true]) #main-navigation{padding:3px 6px;gap:4px;flex-wrap:wrap;min-height:0}
 #main-navigation>button{flex:1 0 25%;max-width:none;min-height:30px}
 .nav-regions{flex:1 1 45%;max-width:none;min-width:0}
 #main-navigation .nav-regions select{height:32px;font-size:11px}
 #main-navigation .primary-actions{flex:0 0 auto;gap:4px}
 #main-navigation .primary-actions button{min-width:36px;width:36px;height:32px;min-height:32px;padding:4px}
 #main-navigation .primary-actions button>span:not(:first-child),#main-navigation [data-fullscreen-label]{display:none}
 #maps-view .map-controls{display:flex;flex-direction:column;gap:0;min-height:0}
 #maps-view .layer-tabs{display:flex;width:100%;padding:4px 6px;flex-wrap:nowrap}
 #maps-view .layer-tabs button{min-width:0;flex:1;font-size:10px}
 #maps-view .region-bar{position:static;min-height:18px;width:100%;padding:0 6px}
 #maps-view .data-toolbar{flex-direction:row;max-width:none;align-items:center;gap:8px}
 #map-grid .map-head{padding:1px 3px}
 body[data-view=avalanches] main{padding:4px 6px}
}
body[data-view=maps][data-fullscreen=true] #header-forecast,body[data-view=maps][data-fullscreen=true] .nav-regions{display:none}
body[data-view=maps][data-fullscreen=true] #maps-view .map-controls{display:flex;min-height:40px;align-items:flex-end;justify-content:center;padding-right:48px}

/* Keep the outer viewport stable; the original bulletin scrolls inside its frame. */
body[data-view=avalanches]{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
body[data-view=avalanches] main{flex:1;min-height:0;display:flex;flex-direction:column}
body[data-view=avalanches] .app-footer{display:none}
#avalanches-view{flex:1;min-height:0;display:flex;flex-direction:column}
#avalanche-embed-panel{flex:1;min-height:0}
#avalanche-embed-frame{flex:1;min-height:0}
#avalanche-embed-frame iframe{height:100%;min-height:0}
body[data-view=maps][data-fullscreen=true] #maps-view .layer-tabs{display:none}

/* 1.12: full-width mobile maps, edge arrows and a compact, non-overlapping timeline. */
.map-edge-navigation{display:none}
@media screen and (max-width:899px){
 body[data-view=maps],body[data-view=avalanches]{padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
 body[data-view=maps] #maps-view{position:relative}
 body[data-view=maps] #maps-view .map-stage{scrollbar-width:none;container-type:normal}
 body[data-view=maps] #maps-view .map-stage::-webkit-scrollbar{display:none}
 body[data-view=maps] #maps-view #map-grid,body[data-view=maps][data-fullscreen=true] #maps-view #map-grid{display:flex;flex-direction:column;width:100%;max-width:none;height:auto;gap:0;padding:0;grid-template:none}
 body[data-view=maps] #map-grid .map-card{flex:none;width:100%;height:auto;min-height:0;display:block;border:0}
 body[data-view=maps] #map-grid .map-body{height:auto;min-height:0;aspect-ratio:1.358696}
 body[data-view=maps] #map-grid .map-body:has(img:not([hidden])){aspect-ratio:auto}
 body[data-view=maps] #map-grid .map-body>img{display:block;width:100%;height:auto;max-width:none;object-fit:contain}
 body[data-view=maps] .map-edge-navigation{display:flex;justify-content:space-between;position:absolute;inset:50% 0 auto;z-index:8;transform:translateY(-50%);pointer-events:none}
 .map-edge-navigation button{pointer-events:auto;width:54px;height:64px;display:grid;place-items:center;font-size:48px;line-height:1;color:var(--accent);background:rgba(var(--timeline-rgb),.72);border:1px solid rgba(var(--timeline-rgb),.85);box-shadow:0 2px 8px #0003;touch-action:manipulation}
 #map-previous{border-radius:0 14px 14px 0}
 #map-next{border-radius:14px 0 0 14px}
 .map-edge-navigation button:disabled{opacity:.3}
 body[data-view=maps] #timeline{position:static;flex:none;box-shadow:none;z-index:10}
 body[data-view=maps] #timeline .timeline-inner{display:grid;grid-template-columns:minmax(120px,1fr) minmax(120px,1.2fr);grid-template-rows:44px 27px;gap:0 10px;padding:2px 8px 3px;margin:0}
 body[data-view=maps] #timeline .time-top{display:contents}
 body[data-view=maps] #timeline .selected-date{grid-area:1/1;align-self:center;justify-self:start;padding:0;background:none;gap:4px}
 body[data-view=maps] #timeline .selected-date strong{font-size:20px}
 body[data-view=maps] #timeline .selected-date>span:first-child{font-size:10px;max-width:46px}
 body[data-view=maps] #timeline .time-zone{font-size:8px}
 body[data-view=maps] #timeline .time-buttons{grid-area:1/2;justify-content:flex-end;gap:4px}
 body[data-view=maps] #timeline #previous,body[data-view=maps] #timeline #next{display:none}
 body[data-view=maps] #timeline #now,body[data-view=maps] #timeline #play{min-width:44px;height:44px;padding:2px 6px}
 body[data-view=maps] #timeline #time-slider{grid-area:2/1/3/3;height:27px;margin:0;width:100%}
 body[data-view=maps] #timeline #days{grid-area:3/1/4/3;height:24px;min-height:24px;margin:0 6px}
 body[data-view=maps] #timeline .axis-day{padding-top:3px;font-size:8px;line-height:1.1}
 body[data-view=maps] #timeline .timeline-details{display:none}
 body[data-view=maps] #map-dialog{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px);margin:auto}
 body[data-view=maps] #map-dialog .zoom-timeline button{width:54px;height:48px;font-size:26px}
 body[data-view=maps][data-fullscreen=true] #fullscreen-toggle{top:calc(env(safe-area-inset-top) + 4px);right:calc(env(safe-area-inset-right) + 6px)}
}

@media screen and (max-width:899px){body[data-view=maps][data-fullscreen=true] main{padding:0}}

/* 1.13: grouped desktop navigation aligned with the inset brand. */
@media screen and (min-width:900px){
 body:not([data-fullscreen=true]) #app-header{padding-inline:max(18px,calc((100vw - 1100px)/2));gap:20px}
 body:not([data-fullscreen=true]) #main-navigation{justify-content:flex-start;padding-inline:max(18px,calc((100vw - 1100px)/2));gap:8px}
 #main-navigation>button{flex:0 0 auto;max-width:none;padding-inline:18px}
 #main-navigation .nav-regions{flex:0 1 240px;max-width:240px;margin-left:12px}
 #main-navigation .primary-actions{margin-left:auto}
}
/* The exit control owns a separate right-hand slot, even when source text wraps. */
body[data-view=maps][data-fullscreen=true] #maps-view .map-controls{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;padding:4px 56px 4px 8px;min-height:44px}
body[data-view=maps][data-fullscreen=true] #maps-view .region-bar{position:static;inset:auto;width:auto;flex:1;min-width:0;padding:0;margin:0}
body[data-view=maps][data-fullscreen=true] #maps-view .data-toolbar{padding:0;max-width:100%;margin-left:auto;flex-wrap:wrap}

/* 1.13.1: breathing room around the fullscreen toolbar. */
body[data-view=maps][data-fullscreen=true] #maps-view .map-controls{padding:14px 76px 10px 16px;min-height:64px}
body[data-view=maps][data-fullscreen=true] #fullscreen-toggle{top:calc(env(safe-area-inset-top) + 14px);right:calc(env(safe-area-inset-right) + 16px)}

/* Extra inset for the fullscreen source information and controls. */
body[data-view=maps][data-fullscreen=true] #maps-view .map-controls{padding:24px 100px 16px 28px;min-height:80px}
body[data-view=maps][data-fullscreen=true] #fullscreen-toggle{top:calc(env(safe-area-inset-top) + 24px);right:calc(env(safe-area-inset-right) + 28px)}
/* 1.16: mobile map-first view with a compact, accessible navigation drawer. */
#mobile-bar{display:none}
#time-slider{touch-action:none}
#mobile-menu{margin:env(safe-area-inset-top) auto auto;width:100%;max-width:600px;max-height:calc(100dvh - env(safe-area-inset-top) - 12px);border-radius:0 0 16px 16px;padding:12px;overflow:auto}
#mobile-menu .dialog-head{margin:0 0 8px;padding:0}
#mobile-menu .dialog-head h2{font-size:14px}
#mobile-menu::backdrop{background:#0007}
@media screen and (max-width:899px){
 #mobile-bar{display:flex;flex:none;align-items:center;height:36px;min-height:36px;padding:0 8px 0 4px;gap:8px;background:rgba(var(--timeline-rgb),.35)}
 #mobile-menu-open{display:grid;place-items:center;flex:none;width:40px;height:36px;background:transparent;color:var(--accent);font-size:23px;border-radius:5px}
 #mobile-updated{font-size:10px;font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #mobile-updated[data-stale=true]{color:var(--amber)}
 body[data-view=maps] #maps-view .map-controls,body[data-view=maps][data-fullscreen=true] #maps-view .map-controls{display:none;min-height:0;padding:0}
 body #mobile-menu #app-header{display:flex!important;position:static;height:auto;min-height:58px;max-height:none;margin:0;padding:6px 0;gap:8px;width:100%;flex-wrap:wrap}
 body #mobile-menu #header-forecast{display:block!important;visibility:visible;font-size:9px;flex:1}
 body #mobile-menu #app-header .brand strong{font-size:12px}
 body #mobile-menu #app-header .header-actions{margin-left:auto}
 body #mobile-menu #main-navigation{display:flex!important;position:static;flex-wrap:wrap;padding:6px 0;gap:5px;min-height:0;background:none;border:0}
 body #mobile-menu #main-navigation>button{display:block!important;flex:1 0 25%;min-height:38px;padding:4px;font-size:12px}
 body #mobile-menu .nav-regions{display:block!important;flex:1;max-width:none;margin:0;min-width:120px}
 body #mobile-menu .primary-actions{display:flex!important;flex:none;gap:5px;margin:0}
 body #mobile-menu .primary-actions button,body #mobile-menu #fullscreen-toggle{position:static!important;display:grid!important;visibility:visible;pointer-events:auto;min-width:36px;width:36px;height:36px;min-height:36px;padding:5px}
 body #mobile-menu #main-navigation .nav-regions select{height:36px}
 body #mobile-menu .layer-tabs{display:flex;width:100%;justify-content:center;flex-wrap:nowrap;gap:4px;margin:8px 0;padding:0}
 body #mobile-menu .layer-tabs[hidden]{display:none!important}
 body #mobile-menu .layer-tabs button{flex:1;min-width:0;min-height:42px;max-width:none;font-size:10px;padding:3px;display:flex;flex-direction:column;align-items:center;gap:2px}
 body #mobile-menu .layer-tabs .weather-icon{width:18px;height:18px}
 body #mobile-menu .data-toolbar{display:flex;flex-direction:row;justify-content:flex-end;max-width:none;gap:10px;padding:8px 0}
 body #mobile-menu #data-info-open{min-height:36px;padding:4px 8px;border:1px solid var(--line);font-size:12px}
 body[data-view=maps] #maps-view .map-stage{container-type:size}
 body[data-view=maps] #maps-view #map-grid,body[data-view=maps][data-fullscreen=true] #maps-view #map-grid{display:grid;grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:calc(100cqh / 3);width:100%;height:auto;padding:0;gap:0;align-content:start}
 body[data-view=maps] #maps-view #map-grid:not(.is-compare){grid-auto-rows:100cqh}
 body[data-view=maps] #map-grid .map-card{height:100%;width:100%;min-height:0}
 body[data-view=maps] #map-grid .map-body,body[data-view=maps] #map-grid .map-body:has(img:not([hidden])){height:100%;aspect-ratio:auto;background:transparent}
 body[data-view=maps] #map-grid .map-body>img{width:100%;height:100%;object-fit:contain;object-position:center}
 body[data-view=maps] #map-grid .map-head{font-size:9px;top:1px;left:3px;background:rgba(var(--timeline-rgb),.65)}
 body[data-view=maps] .map-edge-navigation button{width:32px;height:44px;font-size:30px;background:rgba(var(--timeline-rgb),.35);box-shadow:none;border:0;opacity:.85}
 body[data-view=maps] #map-previous{border-radius:0 8px 8px 0}
 body[data-view=maps] #map-next{border-radius:8px 0 0 8px}
 body[data-view=maps] .map-edge-navigation button:disabled{opacity:.18}
 body[data-view=maps] #timeline{background:rgba(var(--timeline-rgb),min(.35,var(--timeline-alpha)));backdrop-filter:blur(4px);border-top:0;padding-bottom:env(safe-area-inset-bottom)}
 body[data-view=maps] #timeline .timeline-inner{grid-template-columns:1fr auto;grid-template-rows:28px 22px 20px;padding:0 8px 2px;gap:0 6px}
 body[data-view=maps] #timeline .selected-date strong{font-size:18px}
 body[data-view=maps] #timeline .selected-date>span:first-child{font-size:10px;max-width:none}
 body[data-view=maps] #timeline .time-buttons{height:28px}
 body[data-view=maps] #timeline #now,body[data-view=maps] #timeline #play{position:static;min-width:32px;width:auto;height:28px;min-height:28px;padding:2px 5px;font-size:12px;background:transparent;color:var(--accent)}
 body[data-view=maps] #timeline #time-slider{height:22px;margin:0}
 body[data-view=maps] #timeline #days{height:20px;min-height:20px;margin:0 7px}
 body[data-view=maps] #timeline .axis-day{font-size:8px;padding:1px 3px;line-height:1.1}
 body[data-view=maps] #timeline .axis-day:not(.is-selected){background:transparent}
}
@media screen and (max-width:899px) and (orientation:landscape){
 body[data-view=maps] #maps-view #map-grid.is-compare{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:100cqh}
}
@media screen and (max-width:899px){
 body #mobile-menu .brand,body #mobile-menu .language-switch,body #mobile-menu #settings-open{display:flex!important}
 body #mobile-menu .language-switch{align-items:center}
 body #mobile-menu #app-header .header-actions{display:flex;align-items:center}
 body #mobile-menu #settings-open{align-items:center;justify-content:center}
}
@media screen and (max-width:899px){body[data-view=avalanches] #mobile-menu #fullscreen-toggle{visibility:hidden;pointer-events:none}}
/* 1.16.1: reclaim mobile height without cropping or stretching the forecast. */
@media screen and (max-width:899px){
 #mobile-menu{padding:5px 10px 8px}
 #mobile-menu .dialog-head{height:28px;min-height:28px;margin:0;padding:0;align-items:center}
 #mobile-menu .dialog-head h2{font-size:12px;line-height:1.2;margin:0}
 #mobile-menu #mobile-menu-close{width:32px;min-width:32px;height:28px;min-height:28px;padding:0;font-size:22px}
 body #mobile-menu #app-header{min-height:50px;padding:4px 0}
 #mobile-bar{height:28px;min-height:28px;gap:5px}
 #mobile-menu-open{height:28px;font-size:21px}
 body[data-view=maps] #timeline .timeline-inner{grid-template-rows:24px 22px 16px;padding-bottom:2px}
 body[data-view=maps] #timeline .time-buttons,body[data-view=maps] #timeline #now,body[data-view=maps] #timeline #play{height:24px;min-height:24px}
 body[data-view=maps] #timeline #days{height:16px;min-height:16px}
 body[data-view=maps] #timeline .axis-day{font-size:8px;padding:0 3px;line-height:1}
}
.mobile-install-link{display:block;margin:0 0 0 auto;background:transparent;color:var(--accent);font-size:11px;padding:4px 6px;min-height:28px;text-decoration:underline}
#mobile-install-help{max-width:420px}
#mobile-install-help p{font-size:14px;line-height:1.65}
/* 1.16.2: no empty title row; close lives alongside the first controls. */
@media screen and (max-width:899px){
 #mobile-menu{padding:5px 8px 6px}
 #mobile-menu>.dialog-head{position:absolute;top:4px;right:4px;height:28px;min-height:28px;width:28px;margin:0;padding:0;z-index:2}
 #mobile-menu-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #mobile-menu #mobile-menu-close{width:28px;min-width:28px;height:28px;line-height:1}
 body #mobile-menu #app-header{min-height:44px;padding:0 28px 0 0;gap:5px}
 body #mobile-menu #main-navigation{padding:4px 0;gap:4px}
 body #mobile-menu .layer-tabs{margin:4px 0}
 body #mobile-menu #data-info-open{display:none!important}
 body #mobile-menu .data-toolbar{min-height:14px;padding:0;gap:0}
 body #mobile-menu #source-summary{font-size:9px;line-height:14px}
 .mobile-install-link{width:100%;margin:5px 0 0;min-height:38px;padding:7px 8px;border-radius:7px;background:var(--accent);color:var(--accent-ink);text-decoration:none;font-size:12px;font-weight:700;text-align:center}
}
.install-platforms h3{font-size:14px;margin:12px 0 4px;color:var(--accent)}
#mobile-install-help .install-platforms p{margin:0;font-size:13px;line-height:1.55}
#mobile-install-help .install-launch{padding-top:12px;border-top:1px solid var(--line);font-size:13px}
/* 1.17: readable mobile controls and independent native fullscreen. */
#fullscreen-notice{position:fixed;z-index:100;top:calc(env(safe-area-inset-top) + 8px);left:50%;transform:translateX(-50%);width:min(92vw,520px);display:flex;align-items:center;gap:8px;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);font-size:13px}
#fullscreen-notice-close{flex:none;width:40px;height:40px;background:var(--raised);border-radius:6px;font-size:24px}
@media screen and (max-width:899px){
 #mobile-menu{padding:8px 10px 10px}
 #mobile-menu>.dialog-head{top:8px;right:8px;width:44px;height:44px;min-height:44px}
 #mobile-menu #mobile-menu-close{width:44px;min-width:44px;height:44px;min-height:44px;font-size:30px;border:1px solid var(--line);border-radius:8px;background:var(--raised)}
 body #mobile-menu #app-header{display:grid!important;grid-template-columns:auto minmax(0,1fr) 44px;grid-template-rows:minmax(44px,auto) 44px;height:auto;min-height:0;padding:0;gap:6px 8px}
 body #mobile-menu #app-header .brand{grid-area:1/1}
 body #mobile-menu #app-header .brand strong{font-size:14px}
 body #mobile-menu #app-header .brand strong span{font-size:12px}
 body #mobile-menu #header-forecast{grid-area:1/2;font-size:10px;line-height:1.4}
 body #mobile-menu #app-header .header-actions{grid-area:2/1/3/4;margin:0;justify-content:flex-start;width:100%;gap:10px}
 body #mobile-menu #app-header .language-switch button{min-width:46px;min-height:40px;font-size:13px;padding:6px}
 body #mobile-menu #app-header #settings-open{width:44px;min-width:44px;height:44px;font-size:25px}
 body #mobile-menu #main-navigation{padding:6px 0;gap:6px}
 body #mobile-menu #main-navigation>button{min-height:44px;font-size:14px;padding:6px 3px}
 body #mobile-menu #main-navigation .nav-regions select{height:44px;font-size:14px;padding:5px 8px}
 body #mobile-menu .primary-actions button,body #mobile-menu #fullscreen-toggle{width:44px;min-width:44px;height:44px;min-height:44px;padding:8px}
 body #mobile-menu .primary-actions .weather-icon{width:22px;height:22px}
 body #mobile-menu .layer-tabs{gap:5px;margin:6px 0}
 body #mobile-menu .layer-tabs button{min-height:54px;font-size:12px;padding:4px 2px;gap:3px}
 body #mobile-menu .layer-tabs .weather-icon{width:22px;height:22px}
 body #mobile-menu #source-summary{font-size:10px;line-height:18px}
 .mobile-install-link{min-height:44px;font-size:13px;margin-top:7px}
 /* The chosen alpha applies across the entire slider range. Content can scroll
    underneath, while three complete maps initially fit above the timeline. */
 body[data-view=maps] #timeline{position:fixed;bottom:0;left:env(safe-area-inset-left);right:env(safe-area-inset-right);background:rgba(var(--timeline-rgb),var(--timeline-alpha));backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
 body[data-view=maps] #timeline .timeline-inner{grid-template-rows:28px 24px 30px;padding:0 8px 3px}
 body[data-view=maps] #timeline .time-buttons,body[data-view=maps] #timeline #now,body[data-view=maps] #timeline #play{height:28px;min-height:28px}
 body[data-view=maps] #timeline .selected-date>span:first-child{font-size:12px}
 body[data-view=maps] #timeline .selected-date strong{font-size:20px}
 body[data-view=maps] #timeline #time-slider{height:24px}
 body[data-view=maps] #timeline #days{height:30px;min-height:30px;margin-inline:10px}
 body[data-view=maps] #timeline .axis-day{top:6px;font-size:10px;line-height:1.1;padding:0 4px;min-width:32px}
 body[data-view=maps] #timeline .axis-day:before{top:-5px;height:3px}
 body[data-view=maps] #maps-view #map-grid,body[data-view=maps][data-fullscreen=true] #maps-view #map-grid{grid-auto-rows:calc((100cqh - var(--bottom)) / 3);padding-bottom:var(--bottom)}
 body[data-view=maps] #maps-view #map-grid:not(.is-compare){grid-auto-rows:calc(100cqh - var(--bottom))}
}
@media screen and (max-width:899px) and (orientation:landscape){
 body[data-view=maps] #maps-view #map-grid.is-compare{grid-auto-rows:calc(100cqh - var(--bottom))}
}

/* 1.18: larger mobile navigation, optional full-width maps and a true
   edge-to-edge map detail that also responds to device rotation. */
#max-toggle{display:none}
:root[data-theme=light]{--timeline-rgb:222,232,236}
@media screen and (max-width:899px){
 #mobile-bar{height:44px;min-height:44px;padding:0 8px 0 2px;gap:7px}
 #mobile-menu-open{width:52px;height:44px;font-size:32px;line-height:1}
 #mobile-updated{font-size:11px}
 #mobile-menu{position:relative}
 #mobile-menu>.dialog-head{top:8px;right:8px}
 body #mobile-menu #settings-open{position:absolute!important;z-index:3;top:8px;right:60px;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--raised)}
 body #mobile-menu #settings-open .weather-icon{width:24px;height:24px}
 body #mobile-menu .language-switch{display:none!important}
 body #mobile-menu #app-header{grid-template-columns:auto minmax(0,1fr) 104px;grid-template-rows:minmax(44px,auto);padding:0;gap:8px}
 body #mobile-menu #app-header .header-actions{display:contents!important}
 body #mobile-menu #app-header .brand{grid-area:1/1}
 body #mobile-menu #header-forecast{grid-area:1/2}
 body #mobile-menu .layer-tabs button>span:last-child{max-width:100%;font-size:clamp(8.5px,2.65vw,11px);line-height:1.05;letter-spacing:-.12px;white-space:normal;overflow-wrap:normal}
 body #mobile-menu #max-toggle{display:grid!important;width:54px;min-width:54px;font-size:11px;font-weight:800;letter-spacing:.3px;border:1px solid var(--line);border-radius:8px;color:var(--muted)}
 body #mobile-menu #max-toggle[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
 body[data-view=maps][data-max-maps=true] #maps-view #map-grid.is-compare{grid-auto-rows:calc(100vw / 1.358696)}
 body[data-view=maps] .map-edge-navigation button{background:rgba(236,244,247,.78);color:#087861;border:1px solid rgba(174,196,204,.8);box-shadow:0 2px 8px #0002;opacity:.92}
 body[data-view=maps] .map-edge-navigation button:disabled{opacity:.28}
 body[data-view=maps] #map-dialog{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));border:0;border-radius:0}
 body[data-view=maps] #map-dialog .dialog-head{flex:none;min-height:44px;margin:0 0 4px;padding:0 2px}
 body[data-view=maps] #map-dialog .zoom-caption{display:none}
 body[data-view=maps] #zoom-canvas:not([data-zoomed=true]){align-items:flex-start;justify-content:flex-start;overflow-x:hidden;overflow-y:auto}
 body[data-view=maps] #zoom-canvas:not([data-zoomed=true]) img{width:100%;height:auto;object-fit:initial}
}
@media screen and (max-width:899px) and (orientation:landscape){
 body[data-view=maps] #map-dialog{padding:0}
 body[data-view=maps] #map-dialog .dialog-head{position:absolute;z-index:4;top:env(safe-area-inset-top);left:env(safe-area-inset-left);right:env(safe-area-inset-right);min-height:46px;margin:0;padding:3px 8px;background:rgba(var(--timeline-rgb),.82);backdrop-filter:blur(4px)}
 body[data-view=maps] #map-dialog .zoom-timeline{position:absolute;z-index:4;left:env(safe-area-inset-left);right:env(safe-area-inset-right);bottom:env(safe-area-inset-bottom);margin:0;padding:3px 8px;background:rgba(var(--timeline-rgb),.82);backdrop-filter:blur(4px)}
 body[data-view=maps] #zoom-canvas{width:100%;height:100%;border-radius:0}
}

/* 1.19: zoomed maps are the mobile default. Navigation floats above the
   forecast, settings are centered, and edge arrows stay large but subtle. */
@media screen and (max-width:899px){
 body[data-view=maps]{position:relative}
 body[data-view=maps] #mobile-bar{position:absolute;z-index:15;top:0;left:0;right:0;flex:none;background:rgba(var(--timeline-rgb),.66);border-bottom:1px solid rgba(174,196,204,.22);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
 #settings.settings-dialog{width:min(560px,calc(100vw - 24px));height:auto;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:20px;border:1px solid var(--line);border-radius:16px;overflow:auto}
 #settings .settings-note[data-i18n="navigationHelp"]{display:none}
 body #mobile-menu #max-toggle{width:60px;min-width:60px;font-size:10px;letter-spacing:0}
 body[data-view=maps] .map-edge-navigation button{width:52px;height:72px;font-size:42px;background:rgba(236,244,247,.42);border-color:rgba(174,196,204,.38);box-shadow:0 2px 10px #0002;opacity:.9;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
 body[data-view=maps] .map-edge-navigation button:disabled{opacity:.2}
}

/* 1.19.1: keep the mobile toolbar in normal layout flow, give the timeline
   controls breathing room, and render time arrows as a glass outline. */
@media screen and (max-width:899px){
 body[data-view=maps] #mobile-bar{position:relative;top:auto;left:auto;right:auto;background:rgba(var(--timeline-rgb),.58)}
 body[data-view=maps] #timeline .timeline-inner{padding:6px 8px 5px}
 body[data-view=maps] .map-edge-navigation button{background:rgba(236,244,247,.1);border:1px solid rgba(236,244,247,.58);box-shadow:0 2px 10px #0001;opacity:.95}
 body[data-view=maps] .map-edge-navigation button:disabled{opacity:.24}
}

/* 1.19.2: desktop fullscreen dedicates more of the viewport to the source
   images. Mobile navigation moves to the right and uses a lighter dark bar. */
@media screen and (min-width:900px){
 #max-toggle{display:none!important}
}
@media screen and (min-width:900px) and (min-height:400px){
 body[data-view=maps][data-fullscreen=true] #maps-view .map-controls{min-height:34px}
 body[data-view=maps][data-fullscreen=true] #maps-view #map-grid.is-compare{width:min(100%,calc((100cqh - 8px) * 1.358696 + 8px))}
 body[data-view=maps][data-fullscreen=true] #map-grid .map-card{grid-template-rows:minmax(0,1fr)}
 body[data-view=maps][data-fullscreen=true] #map-grid .map-head{display:none}
 body[data-view=maps][data-fullscreen=true] .timeline-inner{grid-template-rows:34px 26px;padding:2px 16px}
 body[data-view=maps][data-fullscreen=true] #time-slider{height:26px}
 body[data-view=maps][data-fullscreen=true] #days{height:26px;min-height:26px}
 body[data-view=maps][data-fullscreen=true] .time-buttons button{height:30px}
}
@media screen and (max-width:899px){
 #mobile-bar{padding:0 2px 0 8px}
 #mobile-updated{order:1}
 #mobile-menu-open{order:2;margin-left:auto}
 :root:not([data-theme=light]) body[data-view=maps] #mobile-bar{background:rgba(46,66,80,.82)}
}

/* 1.19.3: mobile forecast controls stay crisp and adjacent source maps are
   separated without sacrificing the three-map fitted layout. */
@media screen and (max-width:899px){
 body[data-view=maps] #maps-view #map-grid{row-gap:2px!important;column-gap:0!important;background:#071018}
 body[data-view=maps]:not([data-max-maps=true]) #maps-view #map-grid.is-compare{grid-auto-rows:calc((100cqh - var(--bottom) - 4px) / 3)}
 body[data-view=maps] .map-edge-navigation button{background:transparent;border:1px solid rgba(236,244,247,.55);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
}

/* 1.19.6: show the selected region in the mobile bar, simplify mobile
   settings, and keep the complete desktop timeline clear of the maps. */
@media screen and (max-width:899px){
 #mobile-updated{display:grid;grid-template-rows:auto auto;align-content:center;line-height:1.15;white-space:normal}
 #mobile-updated .mobile-region{font-size:10px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #settings .install-help,#settings .settings-note[data-i18n="about"]{display:none}
}
@media screen and (min-width:900px) and (min-height:400px){
 body[data-view=maps][data-fullscreen=true] #maps-view .map-controls{min-height:44px;max-height:44px;padding:6px 100px 2px 28px}
 body[data-view=maps][data-fullscreen=true] .map-stage{padding-bottom:6px}
 body[data-view=maps][data-fullscreen=true] .timeline-inner{grid-template-rows:30px 32px;padding:2px 16px}
 body[data-view=maps][data-fullscreen=true] #days{height:32px;min-height:32px}
}

/* 1.19.8: larger desktop maps, bottom-right fullscreen source controls and
   brighter mobile arrow glyphs without changing their transparent frames. */
@media screen and (max-width:899px){
 body[data-view=maps] .map-edge-navigation button{color:#52f2c9;text-shadow:0 1px 2px rgba(0,20,25,.88),0 0 7px rgba(97,227,192,.9)}
}
@media screen and (min-width:900px) and (min-height:400px){
 body[data-view=maps]:not([data-fullscreen=true]) #app-header{height:50px;min-height:50px}
 body[data-view=maps]:not([data-fullscreen=true]) #main-navigation{min-height:46px;padding-block:4px}
 body[data-view=maps]:not([data-fullscreen=true]) main{padding-top:2px}
 body[data-view=maps]:not([data-fullscreen=true]) #maps-view .map-controls{min-height:36px;max-height:36px}
 body[data-view=maps]:not([data-fullscreen=true]) #map-grid .map-card{grid-template-rows:24px minmax(0,1fr)}
 body[data-view=maps]:not([data-fullscreen=true]) #maps-view #map-grid.is-compare{width:min(100%,calc((100cqh - 60px) * 1.358696 + 12px))}
 body[data-view=maps][data-fullscreen=true] #maps-view .map-controls{height:0;min-height:0;max-height:0;padding:0;overflow:visible}
 body[data-view=maps][data-fullscreen=true] #maps-view .region-bar{position:fixed;right:18px;bottom:76px;left:auto;top:auto;width:auto;z-index:29;padding:4px 6px;border:1px solid var(--line);border-radius:8px;background:rgba(var(--timeline-rgb),.9);box-shadow:0 3px 14px #0003}
 body[data-view=maps][data-fullscreen=true] #maps-view .data-toolbar{width:auto;max-width:none;margin:0;flex-wrap:nowrap}
}

/* 1.20.0: concise settings and compact desktop source controls. */
#main-navigation #refresh{width:30px;min-width:30px;height:30px;min-height:30px;padding:0;border-bottom:0;font-size:23px}
@media screen and (min-width:900px) and (min-height:400px){
 body[data-view=maps]:not([data-fullscreen=true]) #maps-view .region-bar{position:fixed;right:14px;bottom:96px;left:auto;top:auto;width:auto;z-index:19;padding:3px 5px;border:1px solid var(--line);border-radius:7px;background:rgba(var(--timeline-rgb),.82);box-shadow:0 2px 10px #0002}
 body[data-view=maps]:not([data-fullscreen=true]) #maps-view .data-toolbar{width:auto;max-width:none;margin:0;flex-flow:row nowrap}
 body[data-view=maps][data-fullscreen=true] #maps-view .region-bar{right:14px;bottom:75px;padding:2px 5px;border-color:rgba(155,175,189,.28);background:rgba(var(--timeline-rgb),.5);box-shadow:none}
 body[data-view=maps][data-fullscreen=true] #maps-view #data-info-open{min-height:24px;padding:1px 4px;border:0;background:transparent;color:var(--muted);font-weight:500}
}

/* 1.20.1: a small desktop fullscreen inset below the timeline. */
@media screen and (min-width:900px) and (min-height:400px){
 body[data-view=maps][data-fullscreen=true] #timeline{margin-bottom:10px}
 body[data-view=maps][data-fullscreen=true] #maps-view .region-bar{bottom:85px}
}

/* 1.20.4: geometrically centred refresh icon and the same quiet source
   controls in normal and fullscreen desktop layouts. */
#main-navigation #refresh{display:grid;place-items:center;line-height:0;border:1px solid var(--accent)}
#main-navigation #refresh .weather-icon{width:20px;height:20px;margin:0}
@media screen and (min-width:900px) and (min-height:400px){
 body[data-view=maps]:is([data-fullscreen=true],:not([data-fullscreen=true])) #maps-view .region-bar{height:30px;min-height:30px;padding:2px 5px;border:1px solid rgba(155,175,189,.22);border-radius:7px;background:rgba(var(--timeline-rgb),.42);box-shadow:none}
 body[data-view=maps]:is([data-fullscreen=true],:not([data-fullscreen=true])) #maps-view .data-toolbar{width:auto;max-width:none;margin:0;flex-flow:row nowrap}
 body[data-view=maps]:is([data-fullscreen=true],:not([data-fullscreen=true])) #maps-view #data-info-open{min-height:24px;padding:1px 4px;border:0;background:transparent;color:var(--muted);font-weight:500}
}

/* 1.21: full-viewport map detail, clear icon controls and themed scrolling. */
html,dialog,.map-stage{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--accent) 70%,var(--line)) color-mix(in srgb,var(--surface) 72%,transparent)}
html::-webkit-scrollbar,dialog::-webkit-scrollbar,.map-stage::-webkit-scrollbar{width:9px;height:9px}
html::-webkit-scrollbar-track,dialog::-webkit-scrollbar-track,.map-stage::-webkit-scrollbar-track{background:color-mix(in srgb,var(--surface) 72%,transparent);border-radius:8px}
html::-webkit-scrollbar-thumb,dialog::-webkit-scrollbar-thumb,.map-stage::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--accent) 62%,var(--line));border:2px solid var(--surface);border-radius:8px}
html::-webkit-scrollbar-thumb:hover,dialog::-webkit-scrollbar-thumb:hover,.map-stage::-webkit-scrollbar-thumb:hover{background:var(--accent)}
body[data-view=maps] #map-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);margin:auto;padding:10px;border-radius:10px}
body[data-view=maps] #map-dialog .dialog-head{flex:none;min-height:42px;margin:0 0 6px}
#map-dialog .zoom-actions{gap:6px}
#map-dialog .zoom-actions .icon-button{width:40px;min-width:40px;height:40px;min-height:40px;padding:8px;border:1px solid color-mix(in srgb,var(--accent) 68%,var(--line));border-radius:8px;background:color-mix(in srgb,var(--accent) 7%,var(--raised));color:var(--accent)}
#map-dialog .zoom-actions .weather-icon{width:22px;height:22px;stroke-width:2.2}
#map-dialog .zoom-actions .zoom-close{border-color:color-mix(in srgb,var(--danger) 62%,var(--line));background:color-mix(in srgb,var(--danger) 8%,var(--raised));color:var(--danger)}
#map-dialog .zoom-actions .icon-button:disabled{color:var(--muted);border-color:var(--line);background:transparent;opacity:.48}
body[data-view=maps][data-fullscreen=true] #fullscreen-toggle{width:40px;min-width:40px;height:40px;min-height:40px;padding:8px;border:2px solid var(--accent);border-radius:8px;background:color-mix(in srgb,var(--accent) 7%,var(--surface));color:var(--accent)}
body[data-view=maps][data-fullscreen=true] #fullscreen-toggle .weather-icon{width:22px;height:22px;stroke-width:2}
@media screen and (max-width:899px){
 body[data-view=maps] #map-dialog{inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));border:0;border-radius:0}
 body[data-view=maps] #zoom-canvas:not([data-zoomed=true]){display:flex;align-items:center;justify-content:center;overflow:hidden}
 body[data-view=maps] #zoom-canvas:not([data-zoomed=true]) img{width:100%;height:100%;object-fit:contain;object-position:center}
 body[data-view=maps] .map-edge-navigation button,body[data-view=maps] #map-dialog .zoom-timeline button{color:#ffd166;border:2px solid rgba(255,209,102,.9);background:rgba(7,16,24,.32);box-shadow:0 0 0 1px rgba(7,16,24,.3);text-shadow:0 1px 2px #000,0 0 6px rgba(255,209,102,.55);backdrop-filter:none;-webkit-backdrop-filter:none;opacity:.98}
 body[data-view=maps] .map-edge-navigation button:disabled,body[data-view=maps] #map-dialog .zoom-timeline button:disabled{opacity:.3}
}

/* 1.21.1: equal-height desktop actions and an explicit legend control. */
@media screen and (min-width:900px){
 #main-navigation #refresh{width:40px;min-width:40px;height:40px;min-height:40px}
}
body[data-view=maps][data-fullscreen=true] #main-navigation #refresh{display:none!important}
@media screen and (min-width:900px) and (min-height:400px){
 body[data-view=maps]:is([data-fullscreen=true],:not([data-fullscreen=true])) #maps-view #data-info-open{min-height:24px;padding:1px 6px;border:1px solid rgba(155,175,189,.38);border-radius:5px;background:transparent;color:var(--muted);font-weight:500}
}

/* 1.21.2: lower, clear mobile arrow controls with hairline borders. */
@media screen and (max-width:899px){
 body[data-view=maps] .map-edge-navigation{top:62%}
 body[data-view=maps] .map-edge-navigation button,body[data-view=maps] #map-dialog .zoom-timeline button{border-width:1px;background:transparent;box-shadow:none}
}

/* 1.21.4: crisp blue outlines glow without filling or blurring the map. */
@media screen and (max-width:899px){
 body[data-view=maps] .map-edge-navigation button,body[data-view=maps] #map-dialog .zoom-timeline button{color:#80d5ff;border-color:#80d5ff;background:transparent;box-shadow:0 0 5px rgba(80,190,255,.8),0 0 12px rgba(80,190,255,.35);text-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
 body[data-view=maps] .map-edge-navigation .weather-icon,body[data-view=maps] #map-dialog .zoom-timeline .weather-icon{width:30px;height:30px;stroke-width:2.25;filter:drop-shadow(0 0 2px rgba(128,213,255,.85))}
 body[data-view=maps] #map-dialog .zoom-timeline button{display:grid;place-items:center}
 :root[data-theme=light] body[data-view=maps] .map-edge-navigation button,:root[data-theme=light] body[data-view=maps] #map-dialog .zoom-timeline button{color:#173f5f;border-color:#248ac6}
 body[data-view=maps] .map-edge-navigation button:disabled,body[data-view=maps] #map-dialog .zoom-timeline button:disabled{box-shadow:none}
 body[data-view=maps] .map-edge-navigation button:disabled .weather-icon,body[data-view=maps] #map-dialog .zoom-timeline button:disabled .weather-icon{filter:none}
}

/* 1.21.5: the compact mobile layout is always marked as expanded. Keep the
   refresh action available inside its drawer; desktop fullscreen still hides it. */
@media screen and (max-width:899px){
 body[data-view=maps][data-fullscreen=true] #mobile-menu #main-navigation #refresh{display:grid!important;visibility:visible!important;pointer-events:auto!important}
}

/* 1.21.6: a held mobile map can be moved without covering the source image. */
@media screen and (max-width:899px){
 #map-grid .map-card.is-reordering{opacity:.4}
 #map-grid .map-card,#map-grid .map-body img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
 #map-grid .map-card.is-reorder-progress::before{content:"";position:absolute;top:0;left:0;height:4px;width:100%;background:#80d5ff;box-shadow:0 0 8px #1689cf;transform-origin:left;animation:map-hold-progress 1s linear both;z-index:5;pointer-events:none}
 .map-reorder-ghost{position:fixed;left:50%;z-index:100;width:min(58vw,240px);height:min(28vh,170px);overflow:hidden;transform:translateX(-50%);border:2px solid #80d5ff;border-radius:9px;background:var(--surface);box-shadow:0 8px 24px #0008,0 0 12px rgba(80,190,255,.6);pointer-events:none}
 .map-reorder-ghost img{display:block;width:100%;height:100%;object-fit:contain}
 .map-reorder-ghost strong{position:absolute;top:4px;left:4px;padding:2px 5px;border-radius:4px;background:var(--surface);color:var(--text);font-size:12px}
}
@keyframes map-hold-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* 1.21.7: reserve one-finger gestures before contact; keep browser pinch zoom. */
@media screen and (max-width:899px){
 body[data-view=maps][data-comparing=true] #map-grid .map-card,
 body[data-view=maps][data-comparing=true] #map-grid .map-body{touch-action:pinch-zoom}
}
#app-header .brand-logo{display:block;flex:none;width:34px;height:34px;object-fit:contain;padding:0;background:#014479;border-radius:6px}
@media screen and (max-width:899px){
 body #mobile-menu #app-header .brand{gap:6px}
 #app-header .brand-logo{width:30px;height:30px}
}

/* Three compact mobile facts: source check, model calculation, selected region. */
@media screen and (max-width:899px){
 #mobile-bar{height:56px;min-height:56px}
 #mobile-updated{display:grid;grid-template-rows:repeat(3,auto);align-content:center;flex:1;line-height:1.12;min-width:0;font-size:10px}
 #mobile-updated>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #mobile-updated .mobile-run{font-weight:600;color:var(--text)}
 #mobile-updated .mobile-region{font-size:10px;font-weight:700;color:#80d5ff;border-left:2px solid currentColor;padding-left:5px;margin-top:2px;width:max-content;max-width:100%}
 :root[data-theme=light] #mobile-updated .mobile-region{color:#17587d}
 body[data-view=maps] .map-edge-navigation{position:fixed;inset:auto env(safe-area-inset-right) calc(100px + env(safe-area-inset-bottom)) env(safe-area-inset-left);transform:none}
 body[data-view=maps] .map-edge-navigation button{color:#153d60;border-color:#76bbd6;box-shadow:0 0 5px rgba(97,193,229,.75),0 0 12px rgba(97,193,229,.32);background:transparent}
 body[data-view=maps] .map-edge-navigation .weather-icon{filter:drop-shadow(0 0 1px #e5f7ff) drop-shadow(0 0 4px #84d0ef)}
}

/* Glass preserves the compact timeline; Transparent is available on phones. */
.mobile-timeline-setting{display:none}
@media screen and (max-width:899px){
 .mobile-timeline-setting{display:flex}
 body #mobile-menu #main-navigation #refresh{height:44px;min-height:44px;width:44px;min-width:44px;padding:8px}
 body #mobile-menu #main-navigation #refresh .weather-icon{width:22px;height:22px}
 body[data-view=maps] .map-edge-navigation{bottom:calc(var(--bottom) + 7px)}
}

/* Transparent follows the reference's floating yellow day strip and time
   label. Only the native range is interactive; day labels remain informative. */
@media screen and (max-width:899px){
 body[data-view=maps][data-timeline-style=transparent] #timeline{bottom:calc(42px + env(safe-area-inset-bottom));background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:none}
 body[data-view=maps][data-timeline-style=transparent] #timeline .timeline-inner{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px 30px;gap:10px;padding:0 16px}
 body[data-view=maps][data-timeline-style=transparent] #timeline .selected-date{position:absolute;top:-60px;left:50%;z-index:2;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:max-content;min-width:116px;height:52px;max-width:calc(100vw - 32px);padding:4px 9px;border-radius:5px;background:#ffca28;color:#172a35;text-align:center;text-shadow:none}
 body[data-view=maps][data-timeline-style=transparent] #timeline .selected-date>span:first-child{font-size:16px;line-height:1.2;color:#172a35}
 body[data-view=maps][data-timeline-style=transparent] #timeline .selected-date strong{font-size:20px;line-height:1.2;color:#172a35}
 body[data-view=maps][data-timeline-style=transparent] #timeline .time-zone,body[data-view=maps][data-timeline-style=transparent] #timeline .time-buttons{display:none}
 body[data-view=maps][data-timeline-style=transparent] #timeline #days{grid-area:1/1;display:flex;align-items:stretch;justify-content:space-between;gap:0;width:100%;height:44px;min-height:44px;margin:0;padding:3px 5px;overflow:hidden;border-radius:28px;background:#ffca28;pointer-events:auto}
 body[data-view=maps][data-timeline-style=transparent] #timeline .axis-day{position:relative;top:auto;left:auto!important;transform:none;display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:2px 0;border-radius:24px;background:transparent;color:#172a35;font-size:12px;line-height:1.12;text-shadow:none}
 body[data-view=maps][data-timeline-style=transparent] #timeline .axis-day.is-compact>*{visibility:visible}
 body[data-view=maps][data-timeline-style=transparent] #timeline .axis-day.is-selected{background:rgba(255,255,255,.22);color:#172a35}
 body[data-view=maps][data-timeline-style=transparent] #timeline .axis-day b{font-size:14px;font-weight:500}
 body[data-view=maps][data-timeline-style=transparent] #timeline .axis-day>span{font-size:11px}
 body[data-view=maps][data-timeline-style=transparent] #timeline .axis-day:before{display:none}
 body[data-view=maps][data-timeline-style=transparent] #timeline #time-slider{grid-area:2/1;width:calc(100% - 28px);height:30px;margin:0 14px;appearance:none;-webkit-appearance:none;background:transparent;pointer-events:auto}
 body[data-view=maps][data-timeline-style=transparent] #time-slider::-webkit-slider-runnable-track{height:5px;background:rgba(12,28,38,.55)}
 body[data-view=maps][data-timeline-style=transparent] #time-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:23px;height:23px;margin-top:-9px;border:0;border-radius:50%;background:#288fe1;box-shadow:0 1px 5px #06172455}
 body[data-view=maps][data-timeline-style=transparent] #time-slider::-moz-range-track{height:5px;background:rgba(12,28,38,.55)}
 body[data-view=maps][data-timeline-style=transparent] #time-slider::-moz-range-thumb{width:23px;height:23px;border:0;background:#288fe1;box-shadow:0 1px 5px #06172455}
 body[data-view=maps][data-timeline-style=transparent] .map-edge-navigation{left:8px;right:8px;bottom:calc(var(--bottom) + 50px + env(safe-area-inset-bottom))}
 body[data-view=maps][data-timeline-style=transparent] .map-edge-navigation button{width:62px;height:62px;border:0;border-radius:21px;background:rgba(101,112,187,.72);color:#071d32;box-shadow:none;opacity:1}
 body[data-view=maps][data-timeline-style=transparent] #map-previous,body[data-view=maps][data-timeline-style=transparent] #map-next{border-radius:21px}
 body[data-view=maps][data-timeline-style=transparent] .map-edge-navigation .weather-icon{width:34px;height:34px;filter:none}
 body[data-view=maps][data-timeline-style=transparent] .map-edge-navigation button:disabled{opacity:.28}
}

/* Glass keeps the arrow's dark blue outline in both color themes. */
@media screen and (max-width:899px){
 body[data-view=maps][data-timeline-style=glass] .map-edge-navigation{bottom:calc(var(--bottom) + 17px)}
 body[data-view=maps][data-timeline-style=glass] .map-edge-navigation button{border-color:#153d60}
}

/* Station forecasts share the weather-card grid, touch reorder and scroll area. */
.station-body{container-type:size;display:grid;place-items:start center;background:#dce9ee}
.station-map{position:relative;width:min(100cqw,calc(100cqh * var(--station-ratio,1.384615)));aspect-ratio:var(--station-ratio,1.384615);background:#dce9ee;overflow:hidden;isolation:isolate;cursor:zoom-in}
.station-base{display:block;width:100%;height:100%;object-fit:fill}
body[data-view=maps] #maps-view #map-grid .station-body{background:#dce9ee}
#station-card .station-map{width:min(100cqw,calc(90cqh * var(--station-ratio,1.384615)));transform:translateY(5px);overflow:visible}
.station-card .map-head{position:relative;z-index:2;background:var(--surface)}
.station-point{position:absolute;width:8.4%;min-width:23px;text-align:center;line-height:1.02;color:#102a3f;text-shadow:0 1px 2px #fff,0 -1px 2px #fff;pointer-events:none;font-size:clamp(11px,1.1vw,14px);font-weight:800}
.station-point img{display:block;width:100%;height:auto;aspect-ratio:40/44;object-fit:contain}
.station-point span{display:block;white-space:nowrap;font-variant-numeric:tabular-nums;padding:1px 2px}
.station-card .map-meta a{color:var(--muted);text-decoration:none}
.station-card .map-meta a:hover{text-decoration:underline}
#zoom-canvas{container-type:size}
#zoom-canvas:has(#station-zoom-map:not([hidden])):not([data-zoomed=true]){align-items:flex-start;justify-content:center}
#station-zoom-map{flex:none;width:min(100cqw,calc(88cqh * var(--station-ratio,1.384615)));max-height:88cqh;height:auto;overflow:visible;cursor:default}
#zoom-canvas[data-zoomed=true] #station-zoom-map{max-height:none}
#zoom-canvas #station-zoom-map .station-base{width:100%;height:100%;object-fit:fill}
#zoom-canvas #station-zoom-map .station-point{font-size:clamp(12px,1.35vw,18px)}
#zoom-canvas #station-zoom-map .station-point img{width:100%;height:auto;object-fit:contain}
@media screen and (min-width:900px){
 body[data-view=maps] .map-stage:has(.station-card:not([hidden])){overflow-y:auto}
 body[data-view=maps] .map-grid.is-compare:has(.station-card:not([hidden])){height:auto;min-height:100%;grid-template-rows:repeat(3,minmax(280px,calc((100cqh - 15px)/2)));grid-auto-rows:auto;padding-bottom:12px}
}
@media screen and (max-width:899px){
 body #mobile-menu #main-navigation>button{flex:1 1 calc(50% - 5px)}
 .station-point{font-size:clamp(10px,2vw,12px)}
 body[data-view=maps] #map-grid .station-body{padding-top:14px}
 #station-card .station-map{width:min(100cqw,calc(88cqh * var(--station-ratio,1.384615)));transform:translateY(2px)}
 #zoom-canvas:has(#station-zoom-map:not([hidden])):not([data-zoomed=true]){align-items:center}
 #zoom-canvas #station-zoom-map .station-point{font-size:clamp(12px,3vw,17px)}
}

body[data-view=maps] #maps-view .map-stage,body[data-view=maps] #maps-view #map-grid{background:#30363d}
body[data-view=maps] #maps-view .map-stage{scrollbar-width:thin;scrollbar-color:#738b98 #30363d}
body[data-view=maps] #maps-view .map-stage:hover{scrollbar-color:#9ec2d1 #30363d}
body[data-view=maps] #maps-view .map-stage::-webkit-scrollbar{display:block;width:10px}
body[data-view=maps] #maps-view .map-stage::-webkit-scrollbar-track{background:#30363d}
body[data-view=maps] #maps-view .map-stage::-webkit-scrollbar-thumb{background:#738b98;border:2px solid #30363d;border-radius:9px}
body[data-view=maps] #maps-view .map-stage:hover::-webkit-scrollbar-thumb{background:#9ec2d1}

.aurora-view{max-width:1150px;margin:0 auto;color:var(--text)}
.aurora-header{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:16px}
.aurora-header>span{font-size:12px;color:var(--muted)}
.aurora-tabs{display:flex;gap:8px;margin-bottom:16px}
.aurora-tabs button{padding:10px 15px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted);font-weight:650}
.aurora-tabs button[aria-selected=true]{border-color:var(--accent);color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}
.aurora-status{min-height:1.2em;color:var(--muted);font-size:13px;margin:0 0 10px}
.aurora-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.aurora-metrics>div{display:flex;flex-direction:column;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:15px}
.aurora-metrics span{color:var(--muted);font-size:13px}.aurora-metrics strong{color:var(--accent);font-size:clamp(28px,4vw,52px);line-height:1.15;font-variant-numeric:tabular-nums}.aurora-metrics small{color:var(--muted)}
.aurora-note{padding:12px 0;color:var(--muted);font-size:13px}
.aurora-cloud{max-width:760px;margin:0 auto}.aurora-cloud h2,.aurora-panel h2{font-size:17px;margin:12px 0}.aurora-cloud img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:8px}
.aurora-rows{display:grid;gap:3px;max-width:900px}.aurora-row{display:grid;grid-template-columns:minmax(128px,190px) minmax(0,1fr) 65px;align-items:center;gap:10px;min-height:37px;font-size:13px}.aurora-row time{color:var(--muted)}.aurora-track{height:22px;background:var(--raised);border-radius:5px;overflow:hidden}.aurora-track>span{display:block;height:100%;border-radius:5px}.aurora-row strong{text-align:right;font-variant-numeric:tabular-nums}
.aurora-chart{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:15px}.aurora-chart svg{display:block;width:100%;height:auto;max-height:210px}
.aurora-chart h3,.aurora-solar-chart h3{margin:0 0 8px;font-size:13px;color:var(--muted)}
.aurora-solar-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.aurora-solar-chart{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px}
.aurora-solar-chart svg{display:block;width:100%;height:auto}
.aurora-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.aurora-panel figure{margin:20px auto;max-width:850px}.aurora-panel figure img{display:block;width:100%;height:auto;border-radius:8px}.aurora-panel figcaption{color:var(--muted);font-size:12px;margin-top:6px}
.aurora-sources{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0;color:var(--muted);font-size:12px}
body[data-view=aurora] .nav-regions,body[data-view=aurora] .max-toggle{display:none}
@media screen and (max-width:899px){.aurora-view{padding:4px}.aurora-header{align-items:start;flex-direction:column}.aurora-tabs button{flex:1;padding:9px 4px;font-size:12px}.aurora-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.aurora-solar-charts{grid-template-columns:1fr}.aurora-row{grid-template-columns:100px minmax(0,1fr) 44px;gap:5px;font-size:11px}}

.aurora-region-picker{display:grid;grid-template-columns:minmax(120px,auto) minmax(180px,310px);align-items:center;gap:8px 12px;margin:0 0 15px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.aurora-region-picker label{font-weight:700}
.aurora-region-picker select{width:100%;min-height:40px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--raised);color:var(--text);font:inherit}
.aurora-region-picker span{grid-column:1/-1;color:var(--muted);font-size:12px}
.aurora-cloud-window{width:100%;aspect-ratio:540/397;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--raised)}
.aurora-cloud-window img{display:block;width:100%;height:100%;object-fit:fill;transition:transform .3s ease}
.aurora-cloud-window img[hidden]{display:none}
.aurora-cloud-focus{min-height:1.2em;margin:6px 0;color:var(--muted);font-size:12px}
.aurora-forecast-note{color:var(--muted);font-size:13px;line-height:1.4}
.aurora-kp-legend{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 18px}
.aurora-kp-legend span{padding:4px 10px;border-radius:5px;color:#17202a;font-size:12px;font-weight:700}
.aurora-kp-legend .kp-low{background:#a6eb00}.aurora-kp-legend .kp-mid{background:#f4d51c}.aurora-kp-legend .kp-high{background:#ef422d;color:white}.aurora-kp-legend .kp-storm{background:#9a37bb;color:white}
.aurora-day{margin:20px 0 5px;padding-bottom:5px;border-bottom:1px solid var(--line);font-size:15px;text-transform:capitalize}
.aurora-row{grid-template-columns:minmax(100px,150px) minmax(0,1fr) 35px;min-height:38px}
.aurora-row time{font-variant-numeric:tabular-nums}
.aurora-track{height:27px;border-radius:0;background:repeating-linear-gradient(to right,transparent 0,transparent calc(11.111% - 1px),color-mix(in srgb,var(--line) 90%,transparent) calc(11.111% - 1px),color-mix(in srgb,var(--line) 90%,transparent) 11.111%),var(--raised)}
.aurora-track>span{border-radius:0}
.aurora-source-graph{margin:20px 0!important;max-width:100%!important;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.aurora-source-graph h3{margin:0 0 10px;font-size:16px}
.aurora-source-graph img{display:block;width:100%;height:auto;max-width:800px;object-fit:contain;background:#fff;margin-inline:auto}
.aurora-source-graph .aurora-graph-preview{overflow-x:auto;overflow-y:hidden;border-radius:6px;scrollbar-color:var(--accent) var(--raised)}
.aurora-source-graph[data-graph=solar-wind] .aurora-graph-preview img{width:100%;max-width:640px;margin-inline:auto}
.aurora-source-graph[data-graph=solar-wind] img,.aurora-source-graph[data-graph=vedur-leirvogur] img{background:#000}
.aurora-source-graph figcaption a{color:var(--accent)}
.aurora-source-graph figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 14px;font-size:12px}
.aurora-source-graph{cursor:zoom-in}
.aurora-source-graph:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.aurora-graph-dialog{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;overflow:hidden;padding:0;border:0;border-radius:0}
.aurora-graph-dialog[open]{display:flex;flex-direction:column}
.aurora-graph-dialog .dialog-head{flex:none;min-height:56px;margin:0;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));background:var(--surface);border-bottom:1px solid var(--line)}
.aurora-graph-dialog .dialog-head h2{font-size:clamp(15px,2vw,20px);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aurora-graph-dialog .zoom-actions{flex:none;gap:6px}
.aurora-graph-dialog .zoom-actions .icon-button{width:42px;min-width:42px;height:42px;min-height:42px;padding:9px;border:1px solid color-mix(in srgb,var(--accent) 68%,var(--line));border-radius:8px;background:color-mix(in srgb,var(--accent) 7%,var(--raised));color:var(--accent)}
.aurora-graph-dialog .zoom-actions .icon-button:disabled{color:var(--muted);border-color:var(--line);background:transparent;opacity:.48}
.aurora-graph-dialog .zoom-actions .graph-close{border-color:color-mix(in srgb,var(--danger) 62%,var(--line));background:color-mix(in srgb,var(--danger) 8%,var(--raised));color:var(--danger)}
.aurora-graph-dialog .zoom-actions .weather-icon{width:22px;height:22px;stroke-width:2.2}
.aurora-graph-scroll{flex:1;min-height:0;overflow:auto;background:#0a111a;touch-action:none;overscroll-behavior:contain}
.aurora-graph-stage{display:flex;align-items:center;justify-content:center;min-width:100%;min-height:100%}
.aurora-graph-scroll img{display:block;max-width:none;max-height:none;height:auto;object-fit:contain;user-select:none;-webkit-user-select:none}
@media screen and (max-width:899px){.aurora-graph-dialog .dialog-head{min-height:54px}.aurora-graph-dialog .zoom-actions .icon-button{width:40px;min-width:40px;height:40px;min-height:40px}}
@media screen and (max-width:899px){.aurora-region-picker{grid-template-columns:1fr}.aurora-region-picker span{grid-column:1}.aurora-row{grid-template-columns:100px minmax(0,1fr) 28px;gap:5px;font-size:11px}.aurora-source-graph{padding:7px}.aurora-source-graph h3{font-size:14px}}

/* The phone menu uses five large section tiles instead of the old layer shortcuts. */
#main-navigation .nav-view-icon{display:none}
@media screen and (max-width:899px){
 body #mobile-menu #main-navigation{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
 body #mobile-menu #main-navigation>button{grid-row:2;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;width:100%;min-height:86px;padding:7px 2px;border:1px solid var(--line);border-radius:8px;background:var(--raised);color:var(--text);font-size:clamp(10px,3.1vw,13px);font-weight:650;line-height:1.12;text-align:center;white-space:normal;overflow-wrap:normal}
 body #mobile-menu #main-navigation>button[aria-selected=true],body #mobile-menu #main-navigation>button[aria-expanded=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--raised));color:var(--accent)}
 body #mobile-menu #main-navigation .nav-view-icon{display:block;width:37px;height:37px;flex:none}
 body #mobile-menu #main-navigation .nav-regions{grid-column:1/3;grid-row:1;min-width:0;max-width:none;margin:0}
 body #mobile-menu #main-navigation .primary-actions{grid-column:3/6;grid-row:1;min-width:0;width:max-content;justify-self:end;justify-content:flex-end}
 body #mobile-menu #main-navigation .primary-actions button{flex:0 0 44px!important;width:44px;max-width:44px}
 body #mobile-menu #main-navigation #max-toggle{flex-basis:60px!important;width:60px;max-width:60px}
 body[data-view=aurora] #mobile-menu #main-navigation .nav-regions{display:none!important}
 body[data-view=aurora] #mobile-menu #main-navigation .primary-actions{grid-column:1/-1}
 body[data-view=avalanches] #mobile-menu #main-navigation .region-picker{display:none!important}
 body #mobile-menu .layer-tabs{display:none!important}
 body[data-view=aurora] #mobile-menu #max-toggle,body[data-view=avalanches] #mobile-menu #max-toggle{display:none!important}
 body[data-view=avalanches] #mobile-menu #fullscreen-toggle{display:none!important}
}
:root[data-theme=light] body #mobile-menu #main-navigation .nav-view-icon{filter:brightness(.58) saturate(1.15)}
@media screen and (max-width:360px){
 body #mobile-menu #main-navigation{grid-template-columns:repeat(6,minmax(0,1fr))}
 body #mobile-menu #main-navigation>button{grid-column:span 2;grid-row:2;min-height:82px;font-size:12px}
 body #mobile-menu #main-navigation>button:nth-of-type(n+4){grid-column:span 3;grid-row:3}
 body #mobile-menu #main-navigation .nav-regions{grid-column:1/4;width:calc(100% - 8px)}
 body #mobile-menu #main-navigation .primary-actions{grid-column:4/7}
 body #mobile-menu #main-navigation .primary-actions button{flex-basis:40px!important;width:40px;max-width:40px}
 body #mobile-menu #main-navigation #max-toggle{flex-basis:52px!important;width:52px;max-width:52px}
}

/* Keep the station forecast on one white sheet, including the free margins. */
body[data-view=maps] #maps-view #map-grid .station-body,.station-map,#station-zoom-map,#zoom-canvas:has(#station-zoom-map:not([hidden])){background:#fff}
.station-wind-arrow{display:inline-block;color:#185a7a;font-size:1.14em;font-style:normal;font-weight:900;line-height:1;vertical-align:-.04em;transform-origin:center}
.station-point .station-values{display:flex;align-items:center;justify-content:center;width:max-content;max-width:none;margin-left:50%;padding:2px 4px;line-height:1.15;transform:translateX(-50%)}

/* The official interactive Veður map gets the whole screen, while the current app view stays intact. */
#interactive-map-dialog{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;overflow:hidden}
#interactive-map-dialog[open]{display:flex;flex-direction:column}
.interactive-map-head{display:flex;align-items:center;gap:12px;min-height:52px;padding:5px max(12px,env(safe-area-inset-right)) 5px max(12px,env(safe-area-inset-left));background:var(--surface);border-bottom:1px solid var(--line)}
.interactive-map-head h2{margin:0;font-size:17px;white-space:nowrap}
.interactive-map-head a{margin-left:auto;color:var(--accent);font-size:13px;font-weight:650;white-space:nowrap}
.interactive-map-head .icon-button{display:grid;place-items:center;flex:none;width:40px;min-width:40px;height:40px;min-height:40px;border:1px solid var(--line);border-radius:7px;background:var(--raised)}
.interactive-map-head .weather-icon{width:22px;height:22px}
#interactive-map-frame{display:block;flex:1;min-height:0;width:100%;border:0;background:var(--raised)}
@media screen and (max-width:899px){.interactive-map-head{min-height:49px;gap:7px}.interactive-map-head h2{font-size:14px}.interactive-map-head a{font-size:11px}}
.axis-day{cursor:pointer;font-family:inherit;touch-action:manipulation}
#days button.axis-day{flex:none;min-width:27px;padding:5px 4px 2px;font-size:10px}
@media screen and (max-width:899px){#days button.axis-day{padding:1px 3px;font-size:8px}}
.axis-day:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.accent-setting{align-items:flex-start;flex-direction:column;gap:11px}
.accent-palette{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;width:100%}
.accent-choice{display:grid;place-items:center;min-width:0;height:47px;padding:4px;border:1px solid var(--line);border-radius:9px;background:var(--raised)}
.accent-choice-sample{display:block;width:100%;height:100%;border-radius:6px}
.accent-choice[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
@media screen and (max-width:380px){.accent-palette{gap:4px}.accent-choice{height:42px;padding:3px}.accent-choice-sample{font-size:21px}}
@media screen and (max-width:899px){#settings .desktop-layout-setting{display:none}}

/* Transparent controls now honour the same opacity setting as Glass. */
@media screen and (max-width:899px){
 body[data-view=maps][data-timeline-style=transparent] #timeline #days,
 body[data-view=maps][data-timeline-style=transparent] #timeline .selected-date{background:rgba(255,202,40,var(--timeline-alpha))}
 body[data-view=maps][data-timeline-style=transparent] #timeline .axis-day.is-selected{background:rgba(169,88,0,.94);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,231,170,.75)}
 body[data-view=maps][data-timeline-style=transparent] #timeline .axis-day.is-selected b{font-weight:800}
}

/* The expanded map has its own controls because a modal makes the page timeline inert. */
#map-dialog .zoom-timeline{display:flex;flex-direction:column;flex:none;gap:4px;width:100%;padding:7px 10px 5px;border:1px solid var(--line);border-radius:10px;background:rgba(var(--timeline-rgb),var(--timeline-alpha));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
#map-dialog .zoom-time-row{display:flex;align-items:center;justify-content:center;gap:12px;min-height:40px}
#map-dialog .zoom-selected-date{min-width:170px;text-align:center;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}
#map-dialog #zoom-time{display:block}
#map-dialog #zoom-status{display:block;min-height:0}
#map-dialog .zoom-days{display:flex;gap:4px;align-items:stretch;width:100%;min-height:34px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
#map-dialog .zoom-axis-day{display:flex;flex:1 0 52px;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:2px 4px;border:0;border-radius:6px;background:rgba(var(--timeline-rgb),.72);color:var(--muted);line-height:1.1;white-space:nowrap;touch-action:manipulation}
#map-dialog .zoom-axis-day b{font-size:12px;font-weight:600}
#map-dialog .zoom-axis-day span{font-size:10px}
#map-dialog .zoom-axis-day.is-selected{background:var(--accent);color:var(--accent-ink)}
body[data-view=maps] #map-dialog .zoom-timeline button.zoom-axis-day{border:0;background:rgba(var(--timeline-rgb),.72);color:var(--muted);box-shadow:none;text-shadow:none}
body[data-view=maps] #map-dialog .zoom-timeline button.zoom-axis-day.is-selected{background:var(--accent);color:var(--accent-ink)}
#map-dialog #zoom-time-slider{display:block;flex:none;width:100%;height:29px;margin:0;accent-color:var(--accent);cursor:pointer}
@media screen and (max-width:899px){
 body[data-view=maps] #map-dialog .zoom-timeline{padding:6px 7px 3px}
 body[data-view=maps] #map-dialog .zoom-time-row{gap:8px}
 body[data-view=maps] #map-dialog .zoom-selected-date{min-width:0;flex:1;font-size:13px}
 body[data-view=maps] #map-dialog .zoom-days{min-height:35px}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog .zoom-timeline{gap:7px;padding:7px 7px 2px;border:0;border-radius:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog .zoom-time-row{justify-content:space-between;min-height:62px}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog .zoom-time-row button{flex:none;width:62px;min-width:62px;height:62px;border:0;border-radius:20px;background:rgba(101,112,187,.72);color:#071d32;box-shadow:none;opacity:1}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog .zoom-time-row button:disabled{opacity:.3}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog .zoom-time-row .weather-icon{width:32px;height:32px;filter:none}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog .zoom-selected-date{flex:0 1 145px;min-width:116px;max-width:calc(100% - 140px);min-height:54px;display:flex;flex-direction:column;justify-content:center;padding:4px 7px;border-radius:7px;background:rgba(255,202,40,var(--timeline-alpha));color:#172a35;font-size:15px;font-weight:750;line-height:1.15}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog #zoom-time,
 body[data-view=maps][data-timeline-style=transparent] #map-dialog #zoom-status{color:#172a35}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog #zoom-time{white-space:pre-line}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog .zoom-days{gap:0;min-height:48px;overflow:hidden;padding:3px 4px;border-radius:26px;background:rgba(255,202,40,var(--timeline-alpha))}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog .zoom-timeline button.zoom-axis-day{flex:1 1 0;min-width:0;padding:2px 0;border-radius:23px;background:transparent;color:#172a35}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog .zoom-axis-day b{font-size:12px;font-weight:500}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog .zoom-axis-day span{font-size:10px}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog .zoom-timeline button.zoom-axis-day.is-selected{background:rgba(169,88,0,.94);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,231,170,.75)}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog .zoom-axis-day.is-selected b{font-weight:800}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog #zoom-time-slider{width:calc(100% - 24px);height:32px;margin:0 12px;appearance:none;-webkit-appearance:none;background:transparent}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog #zoom-time-slider::-webkit-slider-runnable-track{height:5px;background:rgba(12,28,38,.55)}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog #zoom-time-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:23px;height:23px;margin-top:-9px;border:0;border-radius:50%;background:#288fe1;box-shadow:0 1px 5px #06172455}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog #zoom-time-slider::-moz-range-track{height:5px;background:rgba(12,28,38,.55)}
 body[data-view=maps][data-timeline-style=transparent] #map-dialog #zoom-time-slider::-moz-range-thumb{width:23px;height:23px;border:0;border-radius:50%;background:#288fe1;box-shadow:0 1px 5px #06172455}
}

/* Give the station forecast the full comparison row and the same single-map space as a weather layer. */
@media screen and (min-width:900px){
 body[data-view=maps][data-comparing=true] #maps-view #map-grid:has(#station-card:not([hidden])){grid-template-rows:repeat(2,minmax(280px,calc((100cqh - 15px)/2))) minmax(480px,90cqh)}
 body[data-view=maps][data-comparing=true] #maps-view #map-grid #station-card{grid-column:1/-1}
 body[data-view=maps][data-comparing=true] #map-grid #station-card .station-body{place-items:center}
 body[data-view=maps][data-comparing=true] #map-grid #station-card .station-map{width:min(100cqw,calc(76cqh * var(--station-ratio,1.384615)));transform:none}
}
body[data-view=maps][data-mode=symbols] #maps-view #map-grid #station-card{height:100%}
body[data-view=maps][data-mode=symbols] #map-grid #station-card .station-body{place-items:center}
body[data-view=maps][data-mode=symbols] #map-grid #station-card .station-map{width:min(100cqw,calc(78cqh * var(--station-ratio,1.384615)));transform:none}
body[data-view=maps][data-mode=symbols] #map-grid #station-card .station-point{font-size:clamp(13px,1.25vw,18px)}
@media screen and (max-width:899px){
 body[data-view=maps][data-comparing=true] #map-grid #station-card .station-map{width:min(100cqw,calc(80cqh * var(--station-ratio,1.384615)));transform:none}
}
