:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#233d51;background:#fff;font-synthesis:none;--ink:#25465e;--muted:#7e909e;--line:#e4eaf0;--blue:#347cb5}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button,select{cursor:pointer}button{border:0}button:focus-visible,select:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #6ca8d1;outline-offset:3px}button:disabled{opacity:.4;cursor:wait}[hidden]{display:none!important}
header{height:64px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:white}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#294a60;font-size:23px;font-weight:600;letter-spacing:2px}.brandmark{font-size:31px;color:#4c7d9c}.brand-en{font-size:11px;letter-spacing:2px;padding-left:15px;margin-left:4px;border-left:1px solid #dce5ec;font-weight:500}.header-right{display:flex;align-items:center;gap:18px;color:var(--muted);font-size:13px}.forecast-badge{font-size:12px;color:#648299;background:#f0f5f8;border-radius:5px;padding:6px 10px}
main{position:relative;height:calc(100dvh - 64px);min-height:440px;display:grid;grid-template-rows:56px minmax(180px,1fr) auto;overflow:hidden}.map-top{grid-row:1;display:flex;justify-content:space-between;align-items:center;padding:0 28px;border-bottom:1px solid var(--line);background:#fff;gap:20px;z-index:500}#map{position:relative;grid-row:2;width:100%;height:100%;background:#dce7ed;outline:0}.layers{display:flex;gap:5px;height:100%;align-items:center}.layers button{background:transparent;color:#7a8b98;font-size:14px;font-weight:500;padding:9px 18px;border-radius:6px;transition:background .15s,color .15s}.layers button:hover{background:#f0f5f8;color:#365f7d}.layers button.active{background:#e8f1f8;color:#285f88;font-weight:600}#loadRegion{background:#294e69;color:#fff;border:1px solid #294e69;padding:8px 15px;border-radius:6px;font-size:13px;white-space:nowrap}#loadRegion:hover{background:#366785}.map-tools{position:absolute;z-index:500;top:73px;right:18px;display:flex;flex-direction:column;background:#fffffff0;border:1px solid #d5dfe6;border-radius:8px;overflow:hidden;box-shadow:0 3px 12px #233c5110}.map-tools button{width:36px;height:37px;color:#607c90;font-size:22px;background:transparent}.map-tools button+button{border-top:1px solid #e3eaf0}.map-tools button:hover{background:#edf4f9}
.province-label{background:none;border:0;text-align:center;white-space:nowrap;color:#657b89;font-size:12px;line-height:24px;letter-spacing:1.2px;text-shadow:0 1px 2px #fff,0 -1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff;pointer-events:none!important}.country-label{font-size:12px;letter-spacing:1.5px;color:#6b7d8b}.leaflet-adminLand-pane,.leaflet-adminBorders-pane,.leaflet-adminLabels-pane,.leaflet-rainRegions-pane{pointer-events:none}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:10px!important;color:#83929b!important;background:#f8fbfcd9!important;padding:2px 7px!important;border-radius:4px 0 0 0}.leaflet-control-attribution a{color:#708997!important}.boundary-error{position:absolute;top:40%;left:50%;transform:translateX(-50%);padding:12px 18px;background:white;border:1px solid #e2e8ed;border-radius:8px;z-index:500;color:#976e58}
.timeline{grid-row:3;position:relative;z-index:600;background:#fff;border-top:1px solid #d8e2ea;padding:9px 28px 5px;box-shadow:0 -5px 24px #243e5310}.dock-meta{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-bottom:7px;margin-bottom:7px;border-bottom:1px solid var(--line)}.detail{display:flex;align-items:center;gap:13px;flex-wrap:wrap;min-width:0}.detail-top,.detail-date,.detail-footer,.trend-heading,#trend,.trend-ticks,.weather-symbol{display:none}#city{max-width:180px;width:120px;border:0;background:#fff;color:#29475b;font-size:17px;font-weight:600;padding:4px 0;margin:0}.metric-label{font-size:12px;color:var(--muted)}.temperature{display:flex;align-items:center}#temp{font-size:24px;letter-spacing:-1px;font-weight:500;line-height:1.1;font-variant-numeric:tabular-nums}.condition{display:none}.stats{display:none}.stats>div{display:flex;gap:6px;align-items:baseline}.stats span{font-size:12px;color:#8795a0}.stats strong{font-size:14px;font-weight:500;color:#4f697d;font-variant-numeric:tabular-nums}.legend{width:230px;flex-shrink:0}#rainStatus{font-size:11px;line-height:1.4;color:#91a0ac;margin-bottom:2px}#retryRain,#retry{font-size:12px;background:#edf3f7;color:#3f6c8d;padding:5px 9px;border-radius:5px}#legendTitle{font-size:12px;color:#5e798c}#legendBar{height:6px;border-radius:4px;margin:4px 0 3px;overflow:hidden}.legend-values{display:flex;justify-content:space-between;font-size:11px;color:#8395a3;font-variant-numeric:tabular-nums}.legend small{display:none;font-size:11px;color:#99a6b0;line-height:1.4;margin-top:4px}
.timeline-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.timeline-top>div{display:flex;align-items:center;gap:15px}.eyebrow{font-size:11px;letter-spacing:1.5px;color:#91a0ac}#selectedTime{font-size:16px;font-weight:550;color:#3a576b;font-variant-numeric:tabular-nums}.timezone{font-size:11px;color:#96a4af}#status{font-size:11px;color:#90a0ad}.timeline-controls{display:flex;align-items:center;gap:15px;margin:8px 0 5px}.play{height:30px;width:30px;flex-shrink:0;border-radius:50%;background:#2d5c7c;color:white;font-size:14px}.play:hover{background:#3b779f}.time-track{flex:1;min-width:0}input[type=range]{display:block;width:100%;height:5px;margin:0;accent-color:#457fa7;cursor:ew-resize}.days{display:flex;justify-content:space-between;margin-top:8px}.days button{padding:0;background:none;font-size:12px;white-space:nowrap;color:#96a3ae}.days button.active{color:#396b8e;font-weight:600}.now{padding:6px 11px;border-radius:5px;background:#eff4f8;color:#6c879b;font-size:12px}.timeline-bottom{display:flex;justify-content:space-between;padding-top:2px;font-size:10px;color:#a0adb7}.timeline-bottom a{color:#8d9eab}.error{color:#b27158!important}
@media(max-width:950px){.detail{gap:8px}#city{width:105px;font-size:15px}.condition{display:none}.stats{gap:9px}.legend{width:190px}.timezone{display:none}.timeline-top .eyebrow{display:none}.metric-label{font-size:11px}#temp{font-size:24px}}
@media(max-width:650px){header{height:56px;padding:0 18px}.brand{font-size:21px}.brandmark{font-size:28px}.brand-en{font-size:9px;letter-spacing:1.2px;padding-left:10px}.header-right>span:first-child{display:none}.forecast-badge{font-size:11px;padding:5px 8px}main{height:calc(100dvh - 56px);min-height:440px;grid-template-rows:51px minmax(180px,1fr) auto}.map-top{padding:0 15px;gap:8px}.layers{gap:0}.layers button{font-size:12px;padding:8px 11px}#loadRegion{padding:7px 10px;font-size:12px}.map-tools{top:66px;right:13px}.map-tools button{width:32px;height:33px;font-size:20px}.timeline{padding:8px 15px 4px}.dock-meta{gap:14px;align-items:center;margin-bottom:6px;padding-bottom:6px}.detail{display:flex;flex-wrap:wrap;gap:3px 7px;align-items:center}#city{width:80px;max-width:100%;font-size:14px;padding:0}.metric-label{font-size:11px}#temp{font-size:22px}.stats{grid-column:1/-1;gap:10px}.stats span{font-size:11px}.stats strong{font-size:12px}.legend{width:140px}#rainStatus{font-size:10px}#legendTitle{font-size:11px}.legend-values{font-size:10px}.legend small{font-size:10px}#legendBar{margin:3px 0;height:5px}.timeline-top{align-items:baseline;flex-wrap:wrap;gap:5px}#selectedTime{font-size:14px}#status{font-size:10px}.timeline-controls{gap:11px;margin:8px 0 4px}.play{width:28px;height:28px;font-size:11px}.days{margin-top:8px}.days button{font-size:10px}.now{padding:5px 8px;font-size:11px}.timeline-bottom>span:first-child{display:none}.timeline-bottom{justify-content:flex-end;font-size:9px}.province-label,.country-label{font-size:11px}.leaflet-control-attribution{font-size:8px!important}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Full-window map with compact, translucent edge controls. */
body{overflow:hidden}
main{height:100dvh;min-height:0;display:block;overflow:hidden}
#map{position:absolute;inset:0;width:100%;height:100%}
header{position:absolute;top:16px;left:16px;z-index:700;height:38px;padding:0 11px;border:0;border-radius:10px;background:#ffffffc7;backdrop-filter:blur(12px);box-shadow:0 2px 14px #233d510a}
.brand{font-size:18px;gap:7px;letter-spacing:1px}.brandmark{font-size:24px}.brand-en,.header-right{display:none}
.map-top{position:absolute;top:66px;left:16px;display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:5px;width:104px;border:1px solid #ffffffa8;border-radius:12px;background:#ffffffc7;backdrop-filter:blur(12px);box-shadow:0 3px 18px #233d5110}
.layers{display:flex;flex-direction:column;align-items:stretch;gap:3px;height:auto}.layers button{font-size:12px;padding:10px 8px;text-align:center;border-radius:8px}.layers button.active{background:#dceaf3d9}
#loadRegion{font-size:11px;padding:8px 4px;border:0;border-top:1px solid #c9d6df;background:transparent;color:#6b8394;border-radius:0}
.map-tools{top:16px;right:16px;background:#ffffffc7;backdrop-filter:blur(12px);border-color:#ffffffa8}.map-tools button{width:32px;height:33px;font-size:20px}
.dock-meta{display:contents}
.detail,.legend{position:absolute;z-index:600;background:#ffffffc7;backdrop-filter:blur(12px);border:1px solid #ffffffa8;border-radius:10px;box-shadow:0 3px 18px #233d510c}
.detail{left:16px;bottom:110px;max-width:calc(100% - 232px);padding:8px 11px;display:flex;gap:5px 8px;flex-wrap:wrap}
#city{width:80px;font-size:13px;background:transparent;padding:0}#temp{font-size:21px}.metric-label{font-size:10px}.condition,.stats{display:none}
.legend{right:16px;bottom:110px;width:180px;padding:8px 10px}#rainStatus{font-size:10px;margin:0 0 3px}#legendTitle{font-size:10px}#legendBar{height:5px;margin:4px 0 3px}.legend-values{font-size:9px}
.timeline{position:absolute;left:16px;right:16px;bottom:27px;max-width:1000px;margin:auto;z-index:600;display:flex;align-items:center;gap:20px;padding:13px 16px;border:1px solid #ffffffa8;border-radius:13px;background:#ffffffc7;backdrop-filter:blur(16px);box-shadow:0 3px 20px #233d5112}
.timeline-top{flex-shrink:0}.timeline-top>div{gap:0}#selectedTime{font-size:13px}.timeline-top .eyebrow,.timezone,#status:not(.error){display:none}#status.error{position:absolute;bottom:100%;left:0;background:#fffdf4;padding:6px;border-radius:5px}
.timeline-controls{flex:1;gap:13px;margin:0;min-width:0}.play{height:29px;width:29px;font-size:11px}.days{margin-top:9px}.days button{font-size:10px;color:#607b8f}.now{font-size:11px;padding:6px 9px;background:#ffffff8c}
.timeline-bottom{position:absolute;right:4px;bottom:-18px;padding:0;font-size:9px}.timeline-bottom>span:first-child{display:none}.timeline-bottom a,.timeline-bottom{color:#6d8798}
.leaflet-control-attribution{font-size:8px!important;max-width:52vw}
@media(max-width:650px){
 header{top:12px;left:12px;height:34px;padding:0 9px}.brand{font-size:16px}.brandmark{font-size:22px}
 .map-top{top:56px;left:12px;width:94px;padding:4px}.layers button{font-size:11px;padding:9px 5px}
 .map-tools{top:12px;right:12px}.map-tools button{width:30px;height:31px}
 .detail{left:12px;bottom:128px;max-width:calc(100% - 182px);padding:7px 9px;gap:3px 6px}#city{width:100%;font-size:12px}#temp{font-size:19px}.metric-label{font-size:9px}
 .legend{right:12px;bottom:128px;width:148px;padding:7px 9px}
 .timeline{left:12px;right:12px;bottom:29px;padding:9px 12px;display:block;border-radius:11px}
 .timeline-top{margin-bottom:10px}#selectedTime{font-size:12px}.timeline-controls{gap:10px}.play{width:28px;height:28px}.days{margin-top:8px}.days button{font-size:10px}.timeline-bottom{font-size:8px}
}

.legend small{display:block;font-size:9px;line-height:1.3;margin-top:4px;color:#607b8f}
.city-name-label{background:none;border:0;white-space:nowrap;text-align:center;font-size:12px;line-height:22px;font-weight:500;color:#425e71;text-shadow:0 1px 2px #fff,0 -1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff;pointer-events:none!important}
.days{display:block;position:relative;height:14px;margin-top:9px}.days button{position:absolute;top:0;transform:translateX(-50%);font-size:9px;padding:0}.days button:first-child{transform:none}.days button:last-child{transform:translateX(-100%)}
@media(max-width:950px){.days button:nth-child(2n):not(.active){color:transparent}}
@media(max-width:650px){.days button:not(:nth-child(3n+1)):not(:last-child):not(.active){color:transparent}.days button:nth-child(3n+1){color:#607b8f}.days button.active{color:#396b8e}.city-name-label{font-size:11px}}
/* Visible, compact page title and a user-readable weather guide. */
header{display:flex;align-items:center;gap:12px}
.weather-intro summary{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;color:#425e71}
.weather-intro summary::-webkit-details-marker{display:none}
.weather-intro h1{font-size:12px;line-height:1.4;font-weight:600;margin:0;letter-spacing:0}
.weather-intro summary:focus-visible{outline:2px solid #396b8e;outline-offset:4px;border-radius:3px}
.weather-guide{position:absolute;top:calc(100% + 8px);left:0;width:min(350px,calc(100vw - 90px));max-height:calc(100dvh - 240px);overflow:auto;padding:18px;background:#fffffff2;backdrop-filter:blur(16px);border:1px solid #dce5eb;border-radius:12px;box-shadow:0 8px 30px #233d511c;color:#425e71}
.weather-guide h2{font-size:14px;line-height:1.5;margin:0 0 8px}.weather-guide p{font-size:12px;line-height:1.8;margin:0 0 16px}.weather-guide p:last-child{margin-bottom:0}.weather-guide a{color:#396b8e}.weather-guide-source{color:#687e8d}
@media(max-width:650px){header{gap:9px}.weather-intro h1{font-size:11px}.weather-guide{padding:14px}}
