.wx-dialog{width:min(1100px,calc(100% - 32px));height:min(940px,94dvh);max-height:94dvh;padding:0;overflow:hidden;border-radius:24px;background:#f7f9f5;color:#183b35;box-shadow:0 25px 100px #102f3b50}.wx-dialog[open]{display:flex;flex-direction:column}.wx-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 23px;background:#fff;border-bottom:1px solid #e2e8df;flex:none}.wx-eyebrow{font-size:9px;font-weight:750;letter-spacing:1.6px;color:#729080;margin:0 0 5px}.wx-head h2{font-size:24px;letter-spacing:-.7px;margin:0}.wx-icon-button{width:44px;height:44px;flex:none;display:grid;place-items:center;border:1px solid #dde6dc;background:#f8faf6;border-radius:14px;font-size:28px;line-height:1;font-family:inherit;color:#30534a;cursor:pointer}.wx-scroll{overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;min-height:0;padding:18px 23px 24px}.wx-place-row{display:flex;align-items:stretch;gap:8px;margin-bottom:13px}.wx-place{display:flex;flex-direction:column;min-width:0;flex:1;border:1px solid #d9e3d5;border-radius:13px;background:#fff;padding:7px 12px}.wx-place>span{font-size:9px;letter-spacing:.5px;color:#708376;margin-bottom:3px}.wx-place select{appearance:auto;width:100%;font-size:15px;line-height:1.3;font-family:inherit;font-weight:600;min-width:0;border:0;background:transparent;color:#214a3f;padding:0 20px 0 0;min-height:25px}.wx-locate{width:57px;flex:none;border:1px solid #d9e3d5;border-radius:13px;background:#fff;color:#315b4f;display:grid;place-items:center;cursor:pointer}.wx-locate svg{width:24px;height:24px}.wx-locate:disabled{opacity:.45}.wx-location-note{font-size:11px;line-height:1.5;background:#e8f1e5;border-radius:9px;margin:0 0 12px;padding:9px 12px}.wx-now{padding:14px 17px 10px;border-radius:16px;background:linear-gradient(125deg,#e5ede0,#f0f4eb);border:1px solid #dce7d5;min-height:142px}.wx-current-main{display:flex;align-items:center;gap:16px}.wx-temperature{font-size:48px;line-height:1.05;font-weight:650;letter-spacing:-3px;font-variant-numeric:tabular-nums}.wx-temperature>span{font-size:37px;vertical-align:top}.wx-current-description{display:flex;flex-direction:column;min-width:0;gap:4px}.wx-current-description strong{font-size:15px}.wx-current-description>span{font-size:10px;color:#5b7464}.wx-current-description small{font-size:11px;color:#66816e}.wx-current-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}.wx-current-stats>div{display:flex;flex-direction:column;border-left:1px solid #ccdac7;padding-left:12px;gap:3px}.wx-current-stats>div:first-child{border:0;padding-left:0}.wx-current-stats span{font-size:10px;color:#607b67;white-space:nowrap}.wx-current-stats strong{font-size:18px;line-height:1.3;font-variant-numeric:tabular-nums}.wx-current-stats small{font-size:10px;font-weight:500}.wx-data-stamp{font-size:9px;line-height:1.6;color:#70836e;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:10px}.wx-data-stamp a{color:#4f715c;text-underline-offset:2px;white-space:nowrap}.wx-map-tabs{display:flex;gap:4px;padding:4px;background:#e8eee4;border-radius:12px;margin-top:17px}.wx-map-tabs button{flex:1;min-height:40px;border:0;border-radius:9px;background:transparent;font-size:12px;font-weight:650;color:#6a7e69;cursor:pointer;white-space:nowrap;padding:7px 8px}.wx-map-tabs button[aria-pressed=true]{background:#fff;color:#264f42;box-shadow:0 2px 6px #38503012}.wx-map-caption{font-size:10px;line-height:1.5;margin:10px 1px 8px;color:#697e6b}.wx-map-wrap{position:relative;height:clamp(330px,52vh,520px);border-radius:16px;overflow:hidden;border:1px solid #d4ded2;background:#e5ece5;isolation:isolate}.wx-radar-map,.wx-windy{height:100%;width:100%;border:0}.wx-windy{display:block}.wx-radar-map[hidden],.wx-windy[hidden]{display:none}.wx-map-state{position:absolute;z-index:800;top:12px;left:50%;transform:translateX(-50%);width:calc(100% - 105px);max-width:360px;padding:10px 12px;border-radius:10px;background:#fffffff5;box-shadow:0 3px 15px #1a2d381f;color:#576e60;font-size:11px;line-height:1.6;text-align:center;pointer-events:none}.wx-map-state[hidden]{display:none}.wx-map-state strong,.wx-map-state span{display:block}.wx-map-state a{pointer-events:auto;display:inline-block;margin-top:6px;color:#264f42}.wx-map-center{position:absolute;z-index:800;right:12px;top:12px;padding:0 11px;min-height:38px;max-width:92px;border:1px solid #cedbd0;border-radius:10px;background:#fffffff5;box-shadow:0 3px 15px #1a2d3810;font-size:11px;font-weight:650;color:#315344;cursor:pointer}.wx-map-wrap .leaflet-top.leaflet-right{top:0;right:0}.wx-map-wrap .leaflet-control-attribution{margin-bottom:0!important;font-size:8px!important}.wx-map-wrap .leaflet-control-zoom{border:1px solid #d3dfd2!important;box-shadow:0 3px 15px #1a2d3810!important}.wx-map-wrap .leaflet-control-zoom a{width:34px!important;height:34px!important;line-height:34px!important;font-size:18px!important}.wx-radar-controls{padding:11px 2px 0}.wx-radar-controls[hidden]{display:none}.wx-radar-time{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}.wx-refresh{font-size:11px;border:0;background:transparent;color:#255f4d;padding:7px 0 7px 8px;min-height:34px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.wx-slider{display:block}.wx-slider input{width:100%;height:28px;margin:0;accent-color:#315f52;cursor:pointer}.wx-slider input:disabled{opacity:.4}.wx-slider-ends{display:flex;justify-content:space-between;font-size:9px;color:#7a8b7c;margin-top:-2px}.wx-map-note{font-size:10px;line-height:1.6;color:#6d806d;padding:12px 0 0}.wx-legend-rain{display:inline-block;width:20px;height:5px;background:linear-gradient(90deg,#73c4d8,#224cb4,#b92184);border-radius:2px;vertical-align:middle;margin-right:5px}.wx-provider-links{display:flex;justify-content:flex-end;gap:10px;font-size:10px;margin:6px 0 14px}.wx-provider-links a{color:#477158;text-underline-offset:3px;line-height:1.8}.wx-hourly{border:1px solid #dde5d8;border-radius:13px;background:#fff;overflow:hidden}.wx-hourly>summary{padding:15px 14px;min-height:48px;font-size:13px;font-weight:650;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:12px;align-items:center}.wx-hourly>summary::after{content:'+';font-size:20px;color:#73866d}.wx-hourly[open]>summary::after{content:'−'}.wx-hourly>summary span{font-size:10px;color:#788773;font-weight:400;margin-left:auto}.wx-hourly-key{font-size:10px;color:#788773;margin:0;padding:0 14px 13px}.wx-hourly-grid{display:flex;overflow-x:auto;gap:0;padding:0 12px 10px;scrollbar-width:thin;overscroll-behavior-x:contain;scroll-snap-type:x proximity}.wx-hour{width:65px;flex:none;display:flex;align-items:center;flex-direction:column;border-right:1px solid #edf1e8;padding:0 4px;gap:5px;scroll-snap-align:start}.wx-hour:last-child{border-right:0}.wx-hour time{font-size:10px;color:#73886d}.wx-hour strong{font-size:19px;letter-spacing:-.5px;margin:3px 0}.wx-hour b{font-size:11px;color:#416b96}.wx-hour>span{font-size:9px;color:#6984a1}.wx-hour small{font-size:9px;color:#8c9a83;margin-top:3px}.wx-prob-bar{width:18px;height:33px;position:relative;background:#f2f6f9;border-radius:4px;overflow:hidden}.wx-prob-bar i{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(#73b5d5,#426fac);min-height:0;border-radius:3px}.wx-hourly-note{font-size:9px;line-height:1.5;color:#8b9787;padding:9px 14px 14px;margin:0}.wx-foot{padding:17px 1px 0;font-size:11px;line-height:1.65;color:#71826d}.wx-foot>strong{font-size:12px;color:#536d50}.wx-foot>p{margin:5px 0 9px}.wx-foot>div{display:flex;gap:10px 18px;flex-wrap:wrap}.wx-foot a{color:#436b49;text-underline-offset:3px}.wx-foot details{margin-top:15px;border-top:1px solid #dce4d5;padding-top:11px;font-size:10px}.wx-foot summary{cursor:pointer;min-height:26px}.wx-foot details p{margin:10px 0}.wx-foot details>a{display:inline-block;margin-right:13px;margin-top:7px}.wx-error strong{font-size:14px;color:#875b46}.wx-error p{font-size:11px;line-height:1.6;color:#836f61;margin:8px 0}.wx-error button{border:1px solid #d4d9c6;border-radius:9px;padding:8px 15px;background:#fff;font-size:12px;color:#4b6953;min-height:40px;cursor:pointer}.wx-loading{color:#66816a;font-size:12px;margin:26px 0;line-height:1.6}.wx-muted{font-size:11px;color:#809079;padding:0 14px;line-height:1.6}.wx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.wx-dialog button:focus-visible,.wx-dialog select:focus-visible,.wx-dialog input:focus-visible,.wx-dialog summary:focus-visible{outline:3px solid #79a99d;outline-offset:3px}
@media(min-width:850px){.wx-scroll{display:grid;grid-template-columns:minmax(280px,320px) minmax(0,1fr);column-gap:22px;align-content:start}.wx-place-row,.wx-location-note,.wx-now,.wx-hourly,.wx-foot{grid-column:1}.wx-place-row{grid-row:1}.wx-location-note{grid-row:2}.wx-now{grid-row:3;align-self:start}.wx-hourly{grid-row:4;margin-top:15px;align-self:start}.wx-foot{grid-row:5 / span 6;align-self:start}.wx-map-tabs{grid-column:2;grid-row:1;align-self:start;margin-top:0}.wx-map-caption{grid-column:2;grid-row:2;margin:0 0 8px}.wx-map-wrap{grid-column:2;grid-row:3 / span 4;height:480px;max-height:55dvh}.wx-radar-controls{grid-column:2;grid-row:7}.wx-map-note{grid-column:2;grid-row:8}.wx-provider-links{grid-column:2;grid-row:9}.wx-now{min-height:0}.wx-current-stats{gap:4px}.wx-current-stats>div{padding-left:9px}.wx-current-stats span{font-size:9px}.wx-hourly>summary{font-size:12px}.wx-hourly>summary span{display:none}.wx-data-stamp{font-size:8px}}
@media(max-width:600px){.wx-dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;border-radius:0}.wx-head{padding:calc(12px + env(safe-area-inset-top)) 17px 12px}.wx-head h2{font-size:23px}.wx-scroll{padding:13px 13px calc(24px + env(safe-area-inset-bottom))}.wx-place-row{margin-bottom:11px}.wx-place select{font-size:16px}.wx-place{padding:6px 10px}.wx-locate{width:53px}.wx-now{padding:12px 14px 9px;border-radius:14px;min-height:145px}.wx-current-main{gap:13px}.wx-temperature{font-size:44px}.wx-current-description strong{font-size:14px}.wx-current-description>span{font-size:9px}.wx-current-stats{margin-top:10px}.wx-current-stats strong{font-size:17px}.wx-data-stamp{font-size:8px;gap:5px}.wx-map-tabs{margin-top:13px;padding:3px;gap:3px}.wx-map-tabs button{min-height:41px;font-size:10px;padding:6px}.wx-map-caption{font-size:9px;margin:8px 1px 6px}.wx-map-wrap{height:47dvh;min-height:340px;border-radius:14px}.wx-map-state{font-size:10px;padding:8px 10px;width:calc(100% - 115px)}.wx-radar-time{font-size:10px}.wx-map-note{font-size:10px}.wx-hourly>summary{font-size:12px}.wx-hourly>summary span{font-size:9px}.wx-foot{font-size:10px}}

.wx-coverage{font-size:10px;border:1px solid #d5dfcf;background:#fff;color:#6a7e65;padding:7px 9px;min-height:34px;border-radius:9px;cursor:pointer;margin-left:auto}.wx-coverage[aria-pressed=true]{background:#e6eedf;border-color:#bacfb4;color:#345c3b}.wx-radar-time>span{flex:1;min-width:0;line-height:1.4}.wx-radar-time{gap:8px}

.wx-map-expand{position:absolute;z-index:800;right:12px;top:58px;display:flex;align-items:center;justify-content:center;min-height:40px;padding:8px 11px;border:1px solid #cbd9cc;border-radius:10px;background:#fffffff5;box-shadow:0 3px 15px #1a2d3810;color:#315344;font-size:11px;line-height:1.3;font-family:inherit;font-weight:600;cursor:pointer}.wx-map-expand[aria-pressed=true]{background:#214d43;color:#fff;border-color:#214d43}.wx-current-stats .wx-prob-label{white-space:normal;line-height:1.35}.wx-dialog.wx-expanded .wx-scroll{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:10px 13px calc(10px + env(safe-area-inset-bottom))}.wx-expanded .wx-place-row,.wx-expanded .wx-location-note,.wx-expanded .wx-now,.wx-expanded .wx-foot,.wx-expanded .wx-hourly{display:none}.wx-expanded .wx-map-tabs{flex:none;margin-top:0;width:100%}.wx-expanded .wx-map-caption{flex:none;margin:6px 1px;line-height:1.4}.wx-expanded .wx-map-wrap{flex:1 1 auto;height:auto;min-height:140px;max-height:none;width:100%}.wx-expanded .wx-radar-controls{flex:none;padding-top:7px}.wx-expanded .wx-map-note{flex:none;font-size:9px;line-height:1.4;padding-top:7px}.wx-expanded .wx-provider-links{flex:none;margin:4px 0 0;font-size:9px}.wx-expanded .wx-eyebrow{max-width:calc(100vw - 95px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wx-expanded .wx-head{flex:none}
@media(max-height:540px){.wx-expanded .wx-head{padding-top:8px;padding-bottom:8px}.wx-expanded .wx-head h2{font-size:18px}.wx-expanded .wx-eyebrow{font-size:8px;margin-bottom:3px}.wx-expanded .wx-map-tabs button{min-height:32px}.wx-expanded .wx-map-wrap{min-height:80px}.wx-expanded .wx-map-note{font-size:8px}.wx-expanded .wx-provider-links{display:none}.wx-expanded .wx-slider input{height:22px}.wx-expanded .wx-radar-controls{padding-top:2px}.wx-expanded .wx-map-caption{margin:4px 1px}}

/* Explicit playback and forecast controls retain 44px touch targets on phones. */
.wx-playback{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:10px;font-size:11px}.wx-playback button,.wx-playback select{min-height:44px;border:1px solid #c5d6c7;border-radius:10px;background:#fff;color:#214a3f;font:inherit;padding:8px 12px}.wx-playback button{cursor:pointer;font-weight:650}.wx-playback button[aria-pressed=true]{background:#214d43;color:#fff}.wx-playback button:disabled{opacity:.45;cursor:default}.wx-playback label{display:flex;align-items:center;gap:8px}.wx-playback>span{font-size:10px;color:#627b67}.wx-daily{margin-top:12px}.wx-days{padding:0 14px 10px}.wx-day{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:12px 0;border-top:1px solid #e7eee3;font-size:12px}.wx-day strong{font-size:16px}.wx-day>span,.wx-day small{font-size:10px;color:#627b67}.wx-day small{text-align:right}.wx-map-note .wx-legend-rain{background:linear-gradient(90deg,#87d6fe,#2e85ed,#1457c1,#101e5b);width:44px}
@media(min-width:850px){.wx-daily{grid-row:5}.wx-foot{grid-row:6 / span 6}}
@media(max-height:540px){.wx-expanded .wx-playback{margin-top:3px;gap:4px 10px}.wx-expanded .wx-playback>span{display:none}}
@media(prefers-reduced-motion:reduce){.wx-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Weather owns its dark surfaces: the app's generic dialog rule must not
   leave inherited pale text on the light weather cards. Light mode is unchanged. */
html[data-theme=dark] #weather-dialog.wx-dialog{
  color-scheme:dark;
  --wx-bg:#142320;
  --wx-card:#1d302a;
  --wx-raised:#263d32;
  --wx-border:#425b4b;
  --wx-text:#edf4ed;
  --wx-muted:#b4c8b8;
  --wx-link:#c2e4ae;
  background:var(--wx-bg);
  color:var(--wx-text);
}
html[data-theme=dark] #weather-dialog :is(.wx-head,.wx-place,.wx-locate,.wx-hourly){background:var(--wx-card);border-color:var(--wx-border);color:var(--wx-text)}
html[data-theme=dark] #weather-dialog .wx-head h2{color:var(--wx-text)}
html[data-theme=dark] #weather-dialog .wx-now{background:linear-gradient(125deg,#253c2d,#1d302a);border-color:var(--wx-border);color:var(--wx-text)}
html[data-theme=dark] #weather-dialog :is(.wx-temperature,.wx-current-description strong,.wx-current-stats strong,.wx-hour strong,.wx-day strong){color:var(--wx-text)}
html[data-theme=dark] #weather-dialog :is(.wx-eyebrow,.wx-place>span,.wx-current-description>span,.wx-current-description small,.wx-current-stats span,.wx-data-stamp,.wx-map-caption,.wx-slider-ends,.wx-map-note,.wx-hourly>summary span,.wx-hourly-key,.wx-hour time,.wx-hour small,.wx-hourly-note,.wx-foot,.wx-muted,.wx-playback>span,.wx-day>span,.wx-day small,.wx-loading){color:var(--wx-muted)}
html[data-theme=dark] #weather-dialog :is(.wx-current-stats>div,.wx-hour,.wx-day,.wx-foot details){border-color:var(--wx-border)}
html[data-theme=dark] #weather-dialog :is(.wx-place select,.wx-icon-button,.wx-coverage,.wx-playback button,.wx-playback select,.wx-error button){background:var(--wx-raised);border-color:var(--wx-border);color:var(--wx-text)}
html[data-theme=dark] #weather-dialog .wx-place select{background:transparent}
html[data-theme=dark] #weather-dialog .wx-location-note{background:#284535;color:var(--wx-text)}
html[data-theme=dark] #weather-dialog .wx-map-tabs{background:#1d302a}
html[data-theme=dark] #weather-dialog .wx-map-tabs button{color:var(--wx-muted)}
html[data-theme=dark] #weather-dialog :is(.wx-map-tabs button[aria-pressed=true],.wx-playback button[aria-pressed=true],.wx-coverage[aria-pressed=true],.wx-map-expand[aria-pressed=true]){background:#c9e995;border-color:#c9e995;color:#203a29}
html[data-theme=dark] #weather-dialog .wx-map-wrap{background:#263a31;border-color:var(--wx-border)}
html[data-theme=dark] #weather-dialog :is(.wx-map-state,.wx-map-center,.wx-map-expand){background:#1d302af5;border-color:var(--wx-border);color:var(--wx-text)}
html[data-theme=dark] #weather-dialog :is(.wx-data-stamp a,.wx-provider-links a,.wx-foot a,.wx-map-state a,.wx-refresh){color:var(--wx-link)}
html[data-theme=dark] #weather-dialog :is(.wx-hourly>summary::after,.wx-foot>strong){color:#c9dfbd}
html[data-theme=dark] #weather-dialog :is(.wx-hour b,.wx-hour>span){color:#a4cbee}
html[data-theme=dark] #weather-dialog .wx-prob-bar{background:#31443f}
html[data-theme=dark] #weather-dialog .wx-slider input{accent-color:#c9e995}
html[data-theme=dark] #weather-dialog .wx-error strong{color:#f4cba9}
html[data-theme=dark] #weather-dialog .wx-error p{color:#dec6af}
html[data-theme=dark] #weather-dialog :is(button,select,input,summary):focus-visible{outline-color:#c9e995}
