/* One weather entry and one self-contained card. */
.weather-tools{order:4;display:flex;align-items:center;padding-left:9px;border-left:1px solid #e1e8f2}
.weather-tools button{height:38px;padding:0 12px;border:0;border-radius:6px;background:transparent;color:#30435e;font-size:13px}
.weather-tools button::before{color:#3d6dff}.weather-tools button.active{background:#3566f3;color:white}.weather-tools button.active::before{color:white}
.weather-panel[hidden],.weather-tools[hidden],#weatherDetails[hidden],#weatherState[hidden]{display:none!important}
.weather-panel{position:absolute;top:12px;right:12px;width:336px;max-height:calc(100% - 24px);z-index:9;padding:14px;background:white;border:1px solid #e0e8f3;border-radius:12px;box-shadow:0 6px 25px #23395c16;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d6e0ef transparent;color:#203554}
.weather-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.weather-panel-heading h2{margin:0;font-size:16px;font-weight:700}
.weather-panel button.icon-only{height:26px;min-height:26px;border:0;background:transparent;color:#69809d}
.weather-place-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 7px;color:#75859e;font-size:12px;min-width:0}
#weatherLocation{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.weather-update{margin-left:auto;font-size:10px;white-space:nowrap;color:#8b9ab0}.weather-place-row #weatherLocation{flex:1}.weather-place-row button{flex-shrink:0}
.weather-hint{margin:0;padding:8px 10px;background:#fff6e8;border-radius:7px;font-size:11px;color:#846545;line-height:1.6}
.weather-hint>strong{color:#c1872b;font-size:11px}.weather-hint p{margin:2px 0 0}.weather-hint.is-stale{background:#fff0dd}
.weather-hint:not(.is-stale)>strong{display:none}.weather-hint:not(.is-stale) p{margin:0}
.weather-hero{position:relative;isolation:isolate;display:flex;align-items:center;gap:8px;min-height:83px;margin:8px 0;padding:7px 10px;border:1px solid #e8eef7;border-radius:10px;overflow:hidden;background:linear-gradient(115deg,#eef5ff,#f8fbff)}
.weather-hero[data-scene="sun"]{background:linear-gradient(115deg,#fff5e6,#f9fbff 85%);border-color:#f7e9d2}
.weather-hero[data-scene="night"]{background:linear-gradient(115deg,#e9eefb,#f4f7fd 85%);border-color:#dce5f5}
.weather-hero[data-scene="rain"],.weather-hero[data-scene="storm"]{background:linear-gradient(115deg,#e8f0fb,#f7f9fd 85%);border-color:#dce8f5}
.weather-hero[data-scene="snow"],.weather-hero[data-scene="fog"]{background:linear-gradient(115deg,#eef6fa,#fbfcfd 85%)}
.weather-hero::before{content:"";position:absolute;z-index:0;left:-28px;top:-52px;width:155px;height:150px;border-radius:50%;background:radial-gradient(circle,#ffffffa8,transparent 70%);filter:blur(9px);pointer-events:none}
.weather-particles{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.9;mask-image:linear-gradient(90deg,#000 0%,#000 58%,transparent 96%)}
.weather-hero-icon{position:relative;z-index:1;width:65px;height:67px;flex:0 0 65px}.weather-hero-icon svg{width:100%;height:100%}
.weather-hero>div:last-child{position:relative;z-index:1;min-width:0;flex:1}.weather-hero-value{display:flex;align-items:baseline;gap:3px;white-space:nowrap}.weather-hero-value strong{font-size:39px;line-height:1.12;letter-spacing:-1.5px;color:#10254b;font-weight:700}
.weather-hero-value>span{font-size:14px;color:#415976}.weather-hero-value>b{font-size:15px;margin-left:8px;min-width:0;flex:1;white-space:normal;line-height:1.3}
#weatherComfort{font-size:11px;color:#7889a1;margin:5px 0 0}
.weather-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #e5ebf4;border-radius:8px;overflow:hidden}
.weather-metric{display:flex;align-items:center;gap:8px;padding:9px 8px;min-height:59px;min-width:0;border-bottom:1px solid #edf1f7}.weather-metric:nth-child(odd){border-right:1px solid #edf1f7}.weather-metric:nth-last-child(-n+2){border-bottom:0}
.weather-metric>i{display:grid;place-items:center;font-style:normal;flex-shrink:0;color:#5279c2;width:30px;height:30px;border-radius:50%;background:#f3f7ff}.weather-metric>i::before{width:21px;height:21px;flex-basis:21px}
.weather-metric>div{min-width:0}.weather-metric span{font-size:11px;color:#74849e;display:block;margin-bottom:3px;white-space:nowrap}.weather-metric strong{font-size:15px;line-height:1.2;font-weight:650;color:#20365a;display:block;white-space:nowrap}.weather-metric b{font-weight:650}.weather-metric small{font-size:11px;font-weight:500}
.weather-timeline{margin-top:12px;padding-top:11px;border-top:1px solid #edf1f7;min-width:0}
.weather-timeline-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;min-width:0}.weather-timeline-heading h3{font-size:12px;margin:0;white-space:nowrap;font-weight:600}
.weather-metric-tabs{display:flex;background:#f1f5fc;border-radius:6px;padding:2px;gap:2px}.weather-metric-tabs button{border:0;border-radius:4px;background:transparent;color:#61738f;font-size:11px;height:26px;padding:0 10px;white-space:nowrap}.weather-metric-tabs button.active{background:#3c6cff;color:white}
.weather-forecast-body{min-width:0;width:100%;overflow:hidden}
.weather-forecast-summary{display:grid;grid-template-columns:1fr 1fr;margin:12px 0 9px;text-align:center}.weather-forecast-summary>div+div{border-left:1px solid #edf1f7}.weather-forecast-summary span{display:block;font-size:11px;color:#8090a7;margin-bottom:3px}.weather-forecast-summary strong{font-size:19px;font-weight:650;color:#233858;line-height:1.4}.weather-forecast-summary small{font-size:12px;font-weight:500}.weather-forecast-summary>div+div strong{font-size:17px}
.weather-chart-readout{min-height:28px;display:flex;align-items:center;justify-content:center;padding:4px 5px;background:#f7f9fd;border-radius:5px;font-size:10px;color:#526c94;line-height:1.5;text-align:center}
#weatherChart{display:block;width:100%;height:auto;cursor:crosshair;touch-action:pan-y;outline:none}#weatherChart:focus-visible{outline:2px solid #a8c3ff;outline-offset:-2px;border-radius:5px}
.weather-forecast-legend{display:flex;align-items:center;justify-content:center;gap:18px;font-size:10px;color:#8092ac;margin-top:1px}.weather-forecast-legend span{display:flex;align-items:center;gap:6px}.weather-forecast-legend i{display:inline-block;width:17px;border-top:2px solid #356aff}.weather-forecast-legend i.dashed{border-top:2px dashed #87adff}
@media(min-width:901px) and (max-height:850px){
 .weather-panel{padding:12px}.weather-hero{margin:6px 0}.weather-hero-icon{height:55px;width:60px;flex-basis:60px}.weather-hero-value strong{font-size:36px}
 .weather-metric{min-height:51px;padding:6px 8px}.weather-timeline{margin-top:9px;padding-top:9px}.weather-forecast-summary{margin:7px 0}.weather-chart-readout{min-height:24px;padding:3px}
}
.weather-state{display:flex;min-height:132px;align-items:center;justify-content:center;flex-direction:column;gap:10px;text-align:center;font-size:12px;color:#8291a7;padding:14px;line-height:1.6}
.weather-state[data-state=error] .weather-loading-preview{display:none}
.weather-loading-preview{display:flex;align-items:center;gap:13px;width:100%;max-width:274px;padding:13px;border:1px solid #e8eef8;border-radius:10px;background:linear-gradient(110deg,#f1f5fb,#f8fbff);text-align:left}
.weather-loading-preview i{width:54px;height:54px;flex:0 0 54px;border-radius:17px;background:linear-gradient(110deg,#e6eef9,#f4f8ff,#e6eef9);background-size:200% 100%;animation:weather-shimmer 1.8s ease-in-out infinite}
.weather-loading-preview span{display:grid;gap:8px;flex:1}.weather-loading-preview b{height:10px;border-radius:5px;background:linear-gradient(110deg,#e6eef9,#f4f8ff,#e6eef9);background-size:200% 100%;animation:weather-shimmer 1.8s ease-in-out infinite}.weather-loading-preview b:nth-child(2){width:72%;animation-delay:.15s}.weather-loading-preview b:nth-child(3){width:48%;animation-delay:.3s}
.weather-state button{background:#edf3ff;color:#3566ed;border:1px solid #cddcff;padding:7px 18px;border-radius:5px}
.weather-forecast-empty{font-size:12px;color:#8a9ab2;text-align:center;margin:20px 0}
.weather-open .maplibregl-ctrl-bottom-right{right:360px}
@keyframes weather-shimmer{0%,100%{background-position:100% 0}50%{background-position:0 0}}
@media(max-width:1200px) and (min-width:901px){.weather-tools{padding-left:5px}.weather-tools button{font-size:11px;padding:0 7px}}
@media(max-width:900px){
 .weather-tools{order:3;padding-left:5px}.weather-tools button{height:34px;font-size:11px;padding:0 8px}
 .weather-panel{top:auto;bottom:8px;right:8px;width:min(336px,calc(100% - 16px));max-height:65%;padding:12px;border-radius:10px}
 .weather-panel-heading{position:sticky;top:-12px;background:#fff;z-index:1;padding:4px 0}
 .weather-open .maplibregl-ctrl-bottom-right{right:8px;bottom:calc(65% + 16px)}
}
@media(prefers-reduced-motion:reduce){.weather-loading-preview i,.weather-loading-preview b{animation:none}}
