:root{color-scheme:dark;--bg:#091419;--panel:#102027;--line:#24373e;--muted:#a5b8bf;--mint:#65e1bd;--amber:#ffc17b;--white:#eef5f5}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--white);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft JhengHei",sans-serif}button,input,select{font:inherit}button,a,select,input{outline-offset:4px}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit;background:transparent;border:1px solid var(--line);border-radius:8px;padding:9px 14px}a{color:var(--mint);text-underline-offset:3px}button:hover{border-color:var(--mint);background:#17352f}button:disabled{opacity:.5;cursor:wait}.skip{position:absolute;top:-100px}.skip:focus{top:8px;left:20px;z-index:9999;background:var(--bg);padding:10px}.top{border-bottom:1px solid var(--line);padding:18px 32px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;gap:12px;align-items:center}.brandmark{width:38px;height:42px;border:1px solid var(--mint);display:grid;place-items:center;color:var(--mint);font-size:25px;border-radius:12px 12px 18px 18px}.brand strong{font-size:19px;letter-spacing:2px}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:2.5px}.topright{display:flex;gap:16px;align-items:center}.status{color:var(--mint);font-size:12px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:7px}.emergency{color:#ffd0c9;border:1px solid #69433f;text-decoration:none;padding:8px 12px;border-radius:7px}.intro{padding:29px 32px 22px;display:flex;justify-content:space-between;align-items:end;gap:24px}.eyebrow{color:var(--mint);font-size:11px;letter-spacing:2.5px}h1{font-size:32px;letter-spacing:1px;line-height:1.3;margin:8px 0}p{margin:8px 0;color:var(--muted)}.liveclock{font-variant-numeric:tabular-nums;text-align:right;color:#c5d5da;font-size:12px}.liveclock strong{display:block;font-size:23px;color:var(--white);letter-spacing:1px}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:0 32px 22px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(110deg,#152a30,#102027);overflow:hidden}.stat{padding:18px 22px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat .label{color:var(--muted);font-size:12px}.stat strong{font-size:30px;font-weight:500;margin-right:8px}.stat small{color:var(--muted);display:block;font-size:11px}.mint{color:var(--mint)}.amber{color:var(--amber)}main{padding:0 32px 30px}.workspace{display:grid;grid-template-columns:minmax(340px,.84fr) minmax(0,1.6fr);gap:18px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}.panelhead{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}h2{font-size:15px;letter-spacing:1px;margin:0}.tag{font-size:10px;color:var(--mint);border:1px solid #315a50;border-radius:4px;padding:2px 7px;white-space:nowrap}.compact{font-size:11px;padding:5px 9px}.tabs{display:flex;gap:0;padding:0 14px;border-bottom:1px solid var(--line)}.tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted);padding:13px 12px}.tabs button[aria-selected=true]{border-color:var(--mint);color:var(--mint)}.filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px 16px}.filters input{grid-column:1/-1}.filters input,.filters select{width:100%;color:var(--white);background:#0b1a20;border:1px solid #33474f;border-radius:7px;padding:9px 11px}.filters input::placeholder{color:#8ba2ac}.listmeta{padding:0 17px 10px;display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.list{height:455px;overflow:auto;padding:0 14px 14px;scrollbar-width:thin}.item{width:100%;text-align:left;background:#14282f;border:1px solid #2c4149;padding:14px;margin-bottom:9px;border-radius:8px;display:block}.item:hover{background:#19343a}.itemtop{display:flex;gap:8px;align-items:center;justify-content:space-between}.chip{font-size:10px;padding:2px 7px;border-radius:4px;background:#59442c;color:#ffd39b}.chip.mint{background:#244c45;color:#98f0d5}.item time{font-size:10px;color:var(--muted)}.item h3{font-size:14px;margin:9px 0 6px;font-weight:600}.item p{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:4px 0}.itemfoot{font-size:10px;color:#a2b8c0;display:flex;justify-content:space-between;gap:8px;margin-top:10px}.empty{padding:45px 20px;text-align:center;color:var(--muted)}.empty b{display:block;color:#d8e6e9;margin-bottom:10px}.mapwrap{position:relative}#map{height:627px;background:#182b34}.maptitle{position:absolute;top:16px;left:16px;z-index:500;padding:10px 14px;background:#0c1d23ed;border:1px solid #35505a;border-radius:8px;max-width:calc(100% - 80px);backdrop-filter:blur(8px);font-size:12px}.maptitle small{display:block;color:var(--muted);font-size:10px}.maptools{display:flex;gap:6px;align-items:center}.maptools button{font-size:11px;padding:6px 9px}#basemap{background:#102027;color:#d8e8ed;border:1px solid #33474f;border-radius:6px;padding:6px;font-size:11px}.maplegend{position:absolute;bottom:26px;left:12px;z-index:500;background:#102027ee;border:1px solid #35505a;border-radius:8px;padding:10px 12px;display:flex;gap:14px;font-size:10px;pointer-events:none}.legenddot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.amberdot{background:#e8a252}.mintdot{background:#21a68c}.reddot{background:#dd6655}.mapfoot{padding:10px 16px;font-size:11px;color:var(--muted);border-top:1px solid var(--line)}.coverage{margin-top:18px;display:grid;grid-template-columns:1.6fr 1fr;gap:18px}.sourcegrid{padding:14px 18px;display:grid;gap:10px}.source{display:flex;justify-content:space-between;align-items:start;gap:12px;border-bottom:1px solid var(--line);padding-bottom:10px;font-size:12px}.source:last-child{border:0;padding-bottom:0}.source small{display:block;color:var(--muted);font-size:10px}.health{font-size:10px;color:var(--mint);white-space:nowrap}.health.warn{color:var(--amber)}.notice{padding:16px 18px}.notice h3{font-size:13px;margin:0 0 8px;color:var(--amber)}.notice p{font-size:12px}.notice nav{display:flex;gap:15px;flex-wrap:wrap;margin-top:14px;font-size:12px}.textbutton{border:0;padding:0;color:var(--mint);font-size:12px}footer{padding:20px 32px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:16px}.banner{margin:0 32px 18px;border-left:3px solid var(--amber);background:#302b22;padding:10px 15px;font-size:12px;color:#ffe0b9}.hidden{display:none!important}.marker{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;border:2px solid white;box-shadow:0 2px 9px #0009;font-weight:bold;color:white;background:#d7883c}.marker.vehicle{background:#158a75}.marker.fire{background:#d35345}.leaflet-control-attribution{font-size:10px!important}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#11262e;color:#edf5f5}.leaflet-container a.leaflet-popup-close-button{color:#fff}.leaflet-popup-content{font-family:inherit;font-size:12px}.leaflet-popup-content p{color:#c9d9dd}dialog{color:var(--white);background:var(--panel);border:1px solid #48616b;border-radius:14px;width:min(620px,calc(100% - 32px));padding:0;max-height:85vh}dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}.dialoghead{display:flex;align-items:start;justify-content:space-between;gap:15px;padding:20px;border-bottom:1px solid var(--line)}.dialoghead h2{font-size:19px}.dialogbody{padding:20px;white-space:normal}.dialogbody p{color:#d2e0e5;white-space:pre-line}.dialogbody dl{display:grid;grid-template-columns:80px 1fr;gap:9px;font-size:12px}.dialogbody dt{color:var(--muted)}.dialogbody dd{margin:0;overflow-wrap:anywhere}.dialogactions{display:flex;gap:10px;margin-top:20px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1600px){.intro,main,.top,footer{padding-left:5vw;padding-right:5vw}.stats,.banner{margin-left:5vw;margin-right:5vw}.list{height:535px}#map{height:707px}}@media(max-width:1000px){.topright .status{display:none}.workspace{grid-template-columns:350px 1fr}.intro h1{font-size:26px}.maptools{flex-wrap:wrap;justify-content:end}.maplegend{gap:8px;flex-wrap:wrap}}@media(max-width:780px){.top{padding:14px 16px}.topright{gap:8px}.topright button{font-size:11px;padding:8px}.brand strong{font-size:15px}.brand small{font-size:8px}.brandmark{display:none}.emergency{font-size:11px;padding:8px}.intro{padding:24px 16px 18px}.intro h1{font-size:25px}.intro p{font-size:12px}.liveclock{display:none}.stats{margin:0 16px 16px;grid-template-columns:repeat(2,1fr)}.stat{padding:13px 15px}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.stat strong{font-size:26px}main{padding:0 16px 20px}.workspace{display:flex;flex-direction:column}.map-panel{order:-1}#map{height:410px}.maptitle{max-width:calc(100% - 70px)}.coverage{grid-template-columns:1fr}.list{height:440px}.banner{margin:0 16px 16px}footer{padding:18px 16px;flex-direction:column;gap:4px}.maptools button{padding:6px;font-size:10px}}
@media(max-width:480px){.top{gap:10px}.brand{min-width:0}.brand strong{white-space:nowrap;font-size:14px}.brand small{font-size:7px;letter-spacing:1px}.topright{flex-shrink:0;gap:6px}.topright button,.emergency{white-space:nowrap;font-size:10px;padding:8px 6px}.map-panel>.panelhead{flex-direction:column;align-items:stretch;gap:9px}.map-panel .maptools{justify-content:flex-start}.map-panel h2{white-space:nowrap}.intro h1{font-size:23px}.stat small{font-size:10px}}
.tabs{flex-wrap:wrap}.tabs button{font-size:12px;padding:12px 9px}.localnotice{margin:0 16px 12px;padding:10px 12px;background:#173039;border-left:2px solid var(--mint);border-radius:4px;color:#c0d5dc;font-size:11px;line-height:1.8}
@media(max-width:480px){.tabs{padding:0 10px}.tabs button{padding:11px 7px;font-size:11px}}
.watchbar{margin:0 32px 18px;padding:16px 20px;display:flex;justify-content:space-between;gap:20px;align-items:center;border:1px solid #68413c;border-left:4px solid #ed6257;border-radius:10px;background:linear-gradient(100deg,#2b2021,#14232a)}.watchbar strong{color:#ffb4aa;letter-spacing:2px}.watchbar p{font-size:12px;margin:5px 0}.watchbar small{font-size:10px;color:var(--muted)}.watchactions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;flex-shrink:0;max-width:400px;font-size:12px}.watchactions label{display:flex;align-items:center;gap:6px}.watchactions input{accent-color:#ff6d61}.watchactions button{font-size:12px;border-color:#83564f}.eventwarning{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:auto;background:#d91b28;color:#fff;z-index:10000;box-shadow:inset 0 0 160px #50000b88}.eventwarning[open]{display:flex;flex-direction:column;justify-content:space-between}.eventwarning::backdrop{background:#180002}.warningstripe{height:35px;min-height:35px;background:repeating-linear-gradient(130deg,#200407 0,#200407 24px,#ff4c4f 24px,#ff4c4f 48px);border-block:4px solid #240408}.warningcontent{width:min(1100px,90%);margin:auto;padding:25px 0}.warningmode{display:inline-block;border:1px solid #ffb5b2;padding:7px 16px;letter-spacing:4px;font-weight:700}.warningcode{font-size:clamp(24px,5vw,64px);letter-spacing:.08em;line-height:1.2;margin-top:25px;color:#320409;font-weight:900}.eventwarning h2{font-size:clamp(48px,9vw,118px);letter-spacing:.06em;line-height:1.15;font-weight:900;margin:12px 0 22px}.eventwarning p{color:#fff;font-size:clamp(17px,2.4vw,30px);max-width:950px;overflow-wrap:anywhere}.eventwarning #warningSource{font-size:14px;color:#ffd1ce;margin-top:12px}.warningfooter{margin-top:30px;border-top:2px solid #ff7d7d;padding-top:20px;display:flex;gap:20px;align-items:center;justify-content:space-between}.warningfooter span{font-size:15px;letter-spacing:2px}.warningfooter button{background:#25070c;color:#fff;border-color:#fff;padding:12px 20px;white-space:nowrap}.warningprogress{height:5px;background:#fff;margin-top:24px;transform-origin:left;animation:warning-countdown 3s linear forwards}@keyframes warning-countdown{to{transform:scaleX(0)}}
@media(prefers-reduced-motion:reduce){.warningprogress{animation:none}}
html:has(#eventWarning[open]){overflow:hidden}
.pushbar{margin:0 32px 18px;border:1px solid #35564c;border-radius:10px;background:#122a29;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px}.pushbar strong{color:#9aedd2;font-size:13px}.pushbar p{font-size:11px;margin:5px 0 0}.pushbar a{font-size:12px;white-space:nowrap}@media(max-width:780px){.pushbar{margin:0 16px 16px;align-items:start;flex-direction:column;gap:10px}}
@media(max-width:780px){.watchbar{margin:0 16px 16px;flex-direction:column;align-items:stretch;padding:14px}.watchactions{max-width:none}.warningcontent{padding:20px 0}.warningfooter{flex-direction:column;align-items:stretch;margin-top:20px}.warningmode{letter-spacing:2px}.warningcode{margin-top:20px}.eventwarning h2{font-size:clamp(40px,12vw,70px)}.warningstripe{min-height:22px;height:22px}}

.banner{display:flex;align-items:center;justify-content:space-between;gap:16px}.banner button{flex-shrink:0;font-size:12px}
.eventwarning[open]{animation:warning-flash 1.5s ease-in-out 2}
@keyframes warning-flash{0%,35%,100%{background-color:#d91b28}55%,75%{background-color:#680d19}}
@media(prefers-reduced-motion:reduce){.eventwarning[open]{animation:none}}
@media(max-width:780px){.banner{align-items:flex-start;flex-direction:column;gap:10px}}

.brand-logo{display:block;flex-shrink:0;width:330px;line-height:0}.brand-logo img{display:block;width:100%;height:auto}.top{gap:20px}@media(max-width:780px){.top{flex-wrap:wrap;gap:12px}.brand-logo{width:260px;max-width:100%}.topright{flex-wrap:wrap}}

/* Use the PNG alpha for both layers; recolor only lettering for the dark header. */
.brand-logo{position:relative;background:transparent}.brand-logo .logo-lettering{position:absolute;inset:0;filter:brightness(0) invert(1);clip-path:inset(0 0 0 33%);pointer-events:none}

@media(max-width:780px){.top{flex-direction:column;align-items:center;justify-content:center}.top .brand-logo{margin-inline:auto}.top .topright{width:100%;justify-content:center}}

/* Brand message shares the header; the clock stays on one right-aligned row. */
.top{display:grid;grid-template-columns:280px minmax(0,1fr) auto;column-gap:32px;row-gap:16px;padding-block:22px}.top .brand-logo{width:280px;margin:0}.brandintro{min-width:0}.brandintro .eyebrow{font-size:10px;letter-spacing:2px;margin-bottom:10px}.brandintro h1{font-size:clamp(20px,1.65vw,28px);line-height:1.45;margin:0 0 8px;text-wrap:balance}.brandintro p{font-size:12px;line-height:1.8;margin:0;color:var(--muted)}.timebar{padding:16px 32px 20px;display:flex;justify-content:flex-end}.liveclock{display:flex;align-items:center;justify-content:flex-end;gap:14px;white-space:nowrap}.liveclock strong{display:inline;font-size:22px;line-height:1.2}.clockzone{font-size:11px;color:var(--muted)}
@media(min-width:1600px){.timebar{padding-inline:5vw}}
@media(min-width:781px) and (max-width:1199px){.top{grid-template-columns:260px minmax(0,1fr);gap:18px 32px}.top .brand-logo{width:260px}.topright{grid-column:1/-1;justify-content:flex-end}.brandintro h1{font-size:25px}}
@media(max-width:780px){.top{display:flex;flex-direction:column;align-items:center;gap:20px;padding:20px 16px}.top .brand-logo{width:260px;max-width:100%;margin-inline:auto}.brandintro{text-align:center;max-width:480px}.brandintro h1{font-size:23px;line-height:1.5;margin-bottom:8px}.brandintro p{font-size:12px}.top .topright{justify-content:center;width:100%}.timebar{padding:14px 16px 18px}.liveclock{display:flex;gap:10px;font-size:11px}.liveclock strong{font-size:18px;letter-spacing:.5px}.clockzone{font-size:10px}}
@media(max-width:360px){.brandintro h1{font-size:21px}.liveclock{gap:7px;font-size:10px}.liveclock strong{font-size:16px}.clockzone{font-size:9px}}

.brandintro h1 span{display:inline-block}

/* Readability: small information +4px, larger information +2px; brand headline/subtitle unchanged. */
body{font-size:16px;line-height:1.7}.status{font-size:16px}.topright button,.topright .emergency{font-size:14px;min-height:44px;padding:10px 12px}.stat .label{font-size:16px}.stat small{font-size:15px;line-height:1.7}.stat strong{font-size:32px}.panelhead h2{font-size:17px}.tag,.chip,.item time,.itemfoot,.health,.source small,.maptitle small,.maplegend{font-size:14px}.compact,.maptools button,#basemap{font-size:15px;min-height:44px}.tabs button{font-size:16px;min-height:48px}.filters input,.filters select{font-size:16px;min-height:46px}.listmeta{font-size:15px;gap:12px;flex-wrap:wrap}.item h3{font-size:16px;line-height:1.7}.item p{font-size:16px;-webkit-line-clamp:3}.itemfoot{flex-wrap:wrap}.source{font-size:16px;overflow-wrap:anywhere}.source small{line-height:1.8}.notice h3{font-size:15px}.notice p,.notice nav,.textbutton,.dialogbody dl,.leaflet-popup-content{font-size:16px}.maptitle{font-size:16px}.mapfoot,footer,.localnotice{font-size:15px}.banner{font-size:16px}.banner button{font-size:16px;min-height:44px}.dialoghead h2{font-size:21px}.dialogactions{flex-wrap:wrap}.dialogbody dl{grid-template-columns:100px minmax(0,1fr)}.leaflet-control-attribution{font-size:12px!important}.liveclock{font-size:16px}.liveclock strong{font-size:24px}.clockzone{font-size:15px}.maplegend{flex-wrap:wrap;gap:8px}.maptools{flex-wrap:wrap}.map-panel>.panelhead{flex-wrap:wrap}.workspace{grid-template-columns:minmax(380px,.9fr) minmax(0,1.6fr)}
.favoritebar{margin:0 32px 22px;padding:20px 24px;border:1px solid #35554e;border-radius:12px;background:#112a28;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;align-items:center}.favoritebar label{font-size:18px;font-weight:600;color:var(--mint)}.favoritebar p{margin:4px 0;font-size:16px}.favoritebar small{grid-column:1/-1;font-size:14px;color:var(--muted)}.favoritecontrols{display:flex;gap:10px}.favoritecontrols select{background:#0b1a20;color:var(--white);border:1px solid #42655b;border-radius:8px;min-height:48px;min-width:140px;padding:9px 12px;font-size:16px}.favoritecontrols button{min-height:48px;font-size:16px;white-space:nowrap}
@media(min-width:1600px){.favoritebar{margin-inline:5vw}}
@media(min-width:781px) and (max-width:1399px){.top{grid-template-columns:260px minmax(0,1fr)}.topright{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:1000px){.workspace{grid-template-columns:minmax(340px,1fr) minmax(0,1.2fr)}.coverage{grid-template-columns:1fr}}
@media(max-width:780px){.stat strong{font-size:28px}.stat small{font-size:14px}.stat{padding:16px 14px}.tabs{display:grid;grid-template-columns:1fr 1fr;padding:0 10px}.tabs button{font-size:16px;padding:12px 8px}.topright button,.topright .emergency{font-size:14px}.map-panel h2{white-space:normal}.maptools{justify-content:flex-start}.maptools button,#basemap{font-size:15px;min-height:44px}.maptitle{top:12px;left:12px;padding:9px 11px}.maptitle small{font-size:14px;line-height:1.5}.maplegend{font-size:14px;max-width:calc(100% - 24px)}.favoritebar{margin:0 16px 18px;padding:16px;grid-template-columns:1fr;gap:12px}.favoritecontrols{width:100%}.favoritecontrols select{flex:1;min-width:0}.source{flex-wrap:wrap}.liveclock{font-size:15px;gap:10px}.liveclock strong{font-size:20px}.clockzone{font-size:13px}.list{height:500px}.panelhead{padding:14px}.listmeta{font-size:14px}.dialogbody dl{grid-template-columns:90px minmax(0,1fr)}}
@media(max-width:360px){.liveclock{font-size:14px;gap:8px}.liveclock strong{font-size:18px}.clockzone{font-size:12px}.stat .label{font-size:16px}}


/* Compact saved county control and a second-row connection status. */
.top .topright{display:grid;grid-template-columns:auto auto;gap:8px 12px;justify-content:end}
.topright #overall{grid-column:1/-1;grid-row:2;text-align:right;font-size:14px;line-height:1.6}
.mapheading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.mapheading h2{white-space:nowrap}
#favoriteCounty{background:#0b1a20;color:var(--white);border:1px solid #33474f;border-radius:7px;padding:8px 10px;font-size:16px;min-height:44px;width:152px;max-width:100%}
@media(max-width:780px){
.top .topright{justify-content:center;width:100%}
.topright #overall{text-align:center}
.mapheading{width:100%;justify-content:space-between;gap:10px}
.map-panel>.panelhead{gap:12px}
.maptools{width:100%;gap:8px}
.maptools #basemap{flex:1;min-width:0;font-size:16px}
}
@media(max-width:420px){
.mapheading{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:8px}
.mapheading h2{font-size:16px;white-space:normal;line-height:1.5}
#favoriteCounty{width:140px}
}
.topright #overall{display:block}

/* 防災整備與民防 */
.preparedness{margin:24px 0;overflow:hidden}.preparegrid{display:grid;grid-template-columns:1fr 1fr}.prepareblock{padding:24px 28px;min-width:0}.prepareblock+ .prepareblock{border-left:1px solid #294047}.prepareblock h3,.shelterhead h3{margin:0 0 12px;font-size:23px}.prepareblock p,.shelterhead p{line-height:1.8;color:#bed0d5}.preparemeta{font-size:16px!important;line-height:1.75;color:#a8bec6}.preparelinks{display:grid;gap:12px;margin:18px 0}.preparelinks a,.preparemeta a{color:#76dec7;text-underline-offset:5px}.preparecontrols{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:20px}.preparecheck{display:flex;align-items:center;gap:10px;margin:18px 0;line-height:1.7}.preparecheck input,.preparecontrols input{width:20px;height:20px;accent-color:#69d8c4}.defenseblock{background:linear-gradient(120deg,#281e22,#102329)}.sheltersection{padding:24px 28px;border-top:1px solid #294047}.shelterhead{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.shelterhead>div{flex:1 1 340px}.shelterhead label{display:grid;gap:8px;font-size:17px}.shelterhead select,.shelterhead input{min-height:44px;max-width:100%;padding:10px;border:1px solid #426069;border-radius:8px;background:#0b191f;color:#e0edef;font:inherit}.shelterlist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.sheltercard{padding:20px;background:#10242a;border:1px solid #29444c;border-radius:12px;display:flex;flex-direction:column;align-items:start}.sheltercard h4{font-size:21px;margin:16px 0 8px}.sheltercard p{overflow-wrap:anywhere;line-height:1.7;margin:8px 0}.sheltercard button{margin-top:auto;min-height:44px}.sheltercard button:disabled{opacity:.6}.eventwarning.defense[open]{animation:warning-flash .6s ease-in-out 5}.eventwarning.reduced[open]{animation:none}
@media(max-width:1000px){.shelterlist{grid-template-columns:repeat(2,minmax(0,1fr))}.preparegrid{grid-template-columns:1fr}.prepareblock+.prepareblock{border-left:0;border-top:1px solid #294047}}
@media(max-width:600px){.prepareblock,.sheltersection{padding:20px 16px}.shelterlist{grid-template-columns:1fr}.shelterhead{align-items:stretch}.shelterhead label{flex:1 1 100%;min-width:0}.preparecontrols button{flex:1 1 100%}.preparedness .panelhead{flex-wrap:wrap;gap:12px}.preparemeta{font-size:16px!important}.shelterhead>div{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.eventwarning.defense[open]{animation:none}}

/* 地圖保持完整：說明與圖例移到圖面外 */
.maptitle{position:static;max-width:none;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#12262e;padding:10px 18px;backdrop-filter:none}.maptitle small{font-size:14px;line-height:1.6}.mapfoot{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}.maplegend{position:static;background:none;border:0;padding:0;max-width:none;font-size:13px;pointer-events:auto}.maplegend span{white-space:nowrap}.timebar{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:16px}.weatherbar{min-width:0;font-size:15px}.weatherline{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center}.weatherline strong{color:var(--mint)}.weatherdetail{margin-top:6px}.weatherdetail summary{cursor:pointer;color:#b9ced5;font-size:14px}.weatherhours{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}.weatherhours span{padding:7px 12px;border:1px solid var(--line);border-radius:8px;font-size:14px}.weatherdetail p{font-size:13px;line-height:1.7}.weatherbar a{font-size:13px}.top,.timebar,.stats{position:static;transform:none}.weathererror{color:var(--amber)}
@media(max-width:780px){.top{gap:9px;padding:10px 14px}.top .brand-logo{width:170px}.brandintro .eyebrow{display:none}.brandintro h1{font-size:18px;line-height:1.4;margin:0 0 3px}.brandintro p{font-size:11px;line-height:1.5}.top .topright{gap:2px 10px}.topright button,.topright .emergency{font-size:13px;min-height:40px;padding:7px 10px}.topright #overall{font-size:12px}.timebar{grid-template-columns:1fr;padding:10px 16px;gap:8px}.liveclock{justify-content:center;font-size:14px}.liveclock strong{font-size:19px}.clockzone{font-size:12px}.weatherline{gap:3px 12px;font-size:14px}.weatherdetail summary{font-size:13px}.stats{margin-bottom:12px}.stat{padding:8px 10px}.stat .label{font-size:13px}.stat strong{font-size:23px}.stat small{font-size:12px;line-height:1.4}.maptitle{padding:8px 12px;font-size:15px}.maptitle small{font-size:13px}.mapfoot{padding:8px 12px;font-size:12px}.maplegend{font-size:12px;gap:8px}.map-panel>.panelhead{gap:8px;padding:10px 12px}#map{height:64svh;min-height:360px;max-height:650px}.maptools button,#basemap,.mapfavorite select{font-size:14px;min-height:40px}.mapfavorite{gap:8px}.weatherhours{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.weatherhours span{padding:6px;font-size:13px}}

@media(max-width:780px){.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.stat{padding:8px}.stat .label{font-size:12px;line-height:1.5;min-height:36px}.stat strong{font-size:22px}.stat small{display:none}.stat:nth-child(-n+2){border-bottom:0}.stat:nth-child(2){border-right:1px solid var(--line)}}

/* 天氣靠左、日期時間靠右；窄螢幕分列，皆保留文件流。 */
.timebar{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"weather clock";gap:12px 24px;align-items:start}.timebar .weatherbar{grid-area:weather;min-width:0;font-size:17px;text-align:left;overflow-wrap:anywhere}.timebar .liveclock{grid-area:clock;justify-self:end;justify-content:flex-end;font-size:18px;gap:12px}.timebar .liveclock strong{font-size:26px}.timebar .clockzone{font-size:17px}.timebar .weatherline{font-size:17px}.timebar .weatherdetail summary{font-size:16px}.timebar .weatherhours span{font-size:16px}.timebar .weatherdetail p,.timebar .weatherbar a{font-size:15px}
@media(max-width:780px){.timebar{grid-template-columns:minmax(0,1fr);grid-template-areas:"clock" "weather";gap:8px;padding:12px 16px}.timebar .liveclock{font-size:16px;gap:8px;max-width:100%}.timebar .liveclock strong{font-size:21px}.timebar .clockzone{font-size:14px}.timebar .weatherbar,.timebar .weatherline{font-size:16px}.timebar .weatherdetail summary,.timebar .weatherhours span{font-size:15px}.timebar .weatherhours{grid-template-columns:repeat(3,minmax(0,1fr))}.timebar .weatherdetail p,.timebar .weatherbar a{font-size:15px}}

/* 時間加強閱讀層級，視覺高度對齊兩行天氣資訊。 */
.timebar{align-items:center}.timebar .liveclock strong{font-size:44px;line-height:1.35;font-weight:650;letter-spacing:1px}.timebar .weatherbar,.timebar .weatherline{font-size:19px}.timebar .weatherdetail summary,.timebar .weatherhours span{font-size:18px}.timebar .weatherdetail p,.timebar .weatherbar a{font-size:17px}
@media(max-width:780px){.timebar .liveclock{gap:6px}.timebar .liveclock strong{font-size:30px;line-height:1.3;letter-spacing:0}.timebar .weatherbar,.timebar .weatherline{font-size:18px}.timebar .weatherdetail summary,.timebar .weatherhours span,.timebar .weatherdetail p,.timebar .weatherbar a{font-size:17px}.timebar .weatherhours{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}}
@media(max-width:360px){.timebar .liveclock strong{font-size:28px}}

/* 氣象固定三排：地區、現在天氣、三天預報入口。 */
.timebar .weatherheading{display:block;color:var(--mint);font-size:19px;line-height:1.7;margin:0 0 3px}.timebar .weatherline{display:flex;flex-wrap:wrap;gap:3px 16px}.timebar .weatherdetail{margin-top:3px}.timebar .weatherhours{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.timebar .weatherhours span{overflow-wrap:anywhere;min-width:0}
@media(max-width:780px){.timebar .weatherheading{font-size:18px}.timebar .weatherline{gap:3px 12px}.timebar .weatherhours{grid-template-columns:1fr}}

/* v1.0 日期與時間雙行、地區選單隨文件捲動。 */
.timebar .liveclock{display:flex;flex-direction:column;align-items:flex-end;gap:0;text-align:right;min-width:0}.clockdate{display:flex;gap:10px;align-items:baseline;justify-content:flex-end}.timebar .clockzone{font-size:13px;color:var(--muted)}
#favoriteTown{font:inherit;font-size:16px;max-width:100%;min-height:44px;padding:8px 10px;color:var(--white);background:var(--panel);border:1px solid var(--line);border-radius:8px}.mapheading{flex-wrap:wrap;min-width:0}#favoriteCounty,#favoriteTown{min-width:0;max-width:100%}
@media(max-width:780px){.timebar .liveclock strong{font-size:34px}.top{position:static!important}.mapheading h2{flex-basis:100%}#favoriteCounty,#favoriteTown{flex:1 1 120px;font-size:16px}.topright{flex-wrap:wrap}.topright button,.topright a{max-width:100%;min-height:44px}.timebar .clockdate{font-size:17px}.stat .label{font-size:13px}}
@media(max-width:780px){.mapheading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:8px}.mapheading h2{grid-column:1/-1}.mapheading #favoriteCounty,.mapheading #favoriteTown{width:100%;max-width:none}.map-panel>.panelhead{align-items:stretch}}

/* 警告明暗由同一計時器控制，避免系統 CSS 動態偏好蓋掉網站明確選擇。 */
.eventwarning[open],.eventwarning.defense[open],.eventwarning.reduced[open]{animation:none}
.eventwarning[data-flash="bright"]{background-color:#e51b2b}
.eventwarning[data-flash="dim"]{background-color:#26060d}
.eventwarning[data-flash="static"]{background-color:#b41425}
.eventwarning[data-flash="dim"] .warningcode{color:#ff929a}
.eventwarning #warningEffect{font-size:16px;font-weight:700;margin-top:12px}
@media(max-width:780px){.eventwarning h2{font-size:clamp(32px,10vw,60px)}.warningcontent{padding:12px 0}.warningcode{margin-top:12px}.warningfooter{margin-top:12px;padding-top:12px}.warningprogress{margin-top:12px}.preparecontrols label{line-height:1.7}}

.warningprogress{animation:none}.eventwarning[open] .warningprogress{animation:warning-countdown 3s linear forwards}@media(prefers-reduced-motion:reduce){.eventwarning[open] .warningprogress{animation:none}}

/* Locally hosted Twemoji; 44px map targets and compact readable list icons. */
.pictomarker{position:relative;width:40px;height:40px;border-radius:13px;background:#fff7e8;border:2px solid #df974c;display:grid;place-items:center;box-shadow:0 2px 7px #0006}.pictomarker.vehicle{background:#effff8;border-color:#169c80}.pictomarker span{position:absolute;right:-4px;bottom:-5px;border-radius:4px;background:#243c43;color:white;font:700 10px/15px system-ui;padding:0 3px}.event-symbol{display:inline-block;object-fit:contain;vertical-align:middle;flex-shrink:0}.item h3 .event-symbol{margin-right:8px;width:28px;height:28px}.maplegend .event-symbol{width:24px;height:24px;margin-right:4px}.icon-credit{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.symbol-marker:focus-visible{outline:3px solid #129dcc;outline-offset:4px}

/* Map-only sizing: list and legend icons retain their readable size. */
#map{--map-symbol-size:22px;--map-symbol-hit:28px}
#map .symbol-marker{width:var(--map-symbol-hit)!important;height:var(--map-symbol-hit)!important;margin-left:calc(var(--map-symbol-hit) / -2)!important;margin-top:calc(var(--map-symbol-hit) / -2)!important;display:grid;place-items:center}
#map .pictomarker{box-sizing:border-box;width:var(--map-symbol-size);height:var(--map-symbol-size);border-width:1px;border-radius:30%;box-shadow:0 1px 3px #0005}
#map .pictomarker .event-symbol{width:78%;height:78%}
#map .pictomarker span{display:none;font-size:8px;line-height:11px;padding:0 2px;right:-3px;bottom:-3px}
#map.marker-details .pictomarker span{display:block}

.case-coverage-notice{margin:0 16px 12px;padding:12px 14px;border:1px solid #45615c;border-left:3px solid #65e1bd;border-radius:8px;background:#14292b;font-size:16px;line-height:1.6;overflow-wrap:anywhere}.case-coverage-notice p{margin:6px 0}.case-coverage-notice small{display:block;font-size:14px}.case-coverage-notice a{display:inline-block;padding:6px 0;color:#65e1bd}.coverage-warning{border-left-color:#e9aa61;background:#2c2920}.case-coverage-all{margin:22px 0;padding:16px}.case-coverage-all summary{cursor:pointer;font-size:19px;font-weight:700;min-height:44px;line-height:1.5}.case-coverage-row{padding:14px 0;border-top:1px solid #31454b;overflow-wrap:anywhere}.case-coverage-row>div{display:flex;gap:12px;flex-wrap:wrap}.case-coverage-row p{margin:6px 0}.case-coverage-row small{display:block;color:#aebfc4;font-size:14px}.case-coverage-row a{display:inline-block;color:#65e1bd;padding:10px 0}.case-meta{font-size:14px!important;color:#b5c9ce!important}@media(max-width:700px){.case-coverage-notice{margin:0 12px 12px;font-size:15px}.case-coverage-row>div{display:block}.case-coverage-row b{display:block;margin-bottom:4px}}

.weatherheading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.weatherheading button,[data-weather-locate]{font-size:14px;padding:8px 12px;min-height:44px}.weather-location-note{font-size:16px;overflow-wrap:anywhere}

.map-follow-status{display:block;flex-basis:100%;font-size:14px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere;max-width:100%}

.map-follow-status{grid-column:1/-1}#officialNotices summary{cursor:pointer;min-height:44px;line-height:1.7;padding:8px 0}#officialNotices a{overflow-wrap:anywhere}

.unlocated-cases{padding:10px 14px;border-top:1px dashed var(--line);background:#14282d}.unlocated-cases[hidden]{display:none}.unlocated-cases>small{display:block;line-height:1.6;font-size:14px;color:#bed0d5}.unlocated-cases>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.unlocated-cases button{display:flex;align-items:center;gap:6px;min-height:44px;padding:6px 9px;font-size:15px}.unlocated-cases img{width:24px;height:24px}
.case-summary{transform:translate(-50%,-50%);width:max-content;max-width:140px;padding:5px 7px;border:1px dashed #e9aa61;border-radius:8px;background:#10242aee;color:#fff;text-align:center;box-shadow:0 1px 3px #0006}.case-summary>b,.case-summary>small{display:block;white-space:nowrap;font:12px/1.5 system-ui}.case-summary>div{display:flex;gap:6px;justify-content:center}.case-summary span{display:flex;align-items:center;gap:2px}.case-summary img{width:var(--map-symbol-size);height:var(--map-symbol-size)}.case-summary small{font-size:12px}.case-summary-marker:focus-visible{outline:3px solid #65e1bd}.unlocated-row{display:flex;gap:10px;width:100%;text-align:left;margin:8px 0;padding:12px}.unlocated-row span{min-width:0;overflow-wrap:anywhere}.unlocated-row small{display:block;margin-top:6px}
@media(max-width:700px){.case-summary{padding:3px 5px;max-width:116px}.case-summary>b,.case-summary>small{font-size:10px}.case-summary span:nth-child(n+2){display:none}.unlocated-cases button{font-size:14px}.unlocated-cases>small{font-size:13px}}

.fold-panel>summary,.inner-fold>summary{cursor:pointer;list-style:none;min-height:48px}.fold-panel>summary::-webkit-details-marker,.inner-fold>summary::-webkit-details-marker{display:none}.fold-panel>summary::after,.inner-fold>summary::after{content:'開啟 ▾';font:600 15px/1.4 system-ui;color:var(--mint);margin-left:auto;flex-shrink:0;white-space:nowrap;border:1px solid #365950;border-radius:7px;padding:6px 10px;background:#132d29}.fold-panel[open]>summary::after,.inner-fold[open]>summary::after{content:'摺收 ▴'}.inner-fold>summary{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:700;line-height:1.6}.fold-panel>summary:focus-visible,.inner-fold>summary:focus-visible{outline:2px solid var(--mint);outline-offset:-4px}.fold-panel:not([open])>summary{border-bottom:0}.inner-fold[open]>summary{margin-bottom:16px}.coverage{align-items:start}.fold-panel>summary .tag{margin-left:auto}

/* Keep map selectors together; status follows the complete toolbar. */
.map-panel .mapheading{display:flex;width:100%;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:10px 14px}
.mapheading h2{flex:0 0 auto}.mapcontrols{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}.mapheading .maptools{display:flex;width:auto;flex-wrap:nowrap;justify-content:flex-start;gap:8px}.mapheading #favoriteCounty{width:152px}.mapheading #favoriteTown{width:auto;max-width:160px}.mapheading .maptools button{white-space:nowrap;font-size:15px;min-height:44px;padding:8px 10px}.mapheading #basemap{flex:none;width:150px;font-size:15px;min-height:44px}.mapheading .map-follow-status{flex:0 0 100%;width:100%}
@media(max-width:780px){.mapheading h2{flex-basis:100%}.mapcontrols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:8px}.mapheading .mapcontrols #favoriteCounty,.mapheading .mapcontrols #favoriteTown{width:100%;max-width:none;font-size:16px}.mapheading .maptools{grid-column:1/-1;width:100%;gap:6px}.mapheading .maptools button{flex:0 0 auto;padding:8px 7px;font-size:14px}.mapheading #basemap{flex:1 1 auto;min-width:0;width:0;font-size:14px;padding:6px}.mapheading .map-follow-status{font-size:13px}}

/* Panels end at their own content; details stay available without dominating the list. */
.workspace{align-items:start}.map-panel{align-self:start;height:auto;min-height:0}.mapfoot{flex:none}
.compact-disclosure{margin:0 16px 6px;padding:0;border:1px solid var(--line);border-radius:7px;background:transparent;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.compact-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;cursor:pointer;min-height:44px;padding:8px 10px;color:var(--muted)}.compact-disclosure>summary::-webkit-details-marker{display:none}.compact-disclosure>summary::after{content:'開啟 ▾';white-space:nowrap;flex-shrink:0;color:var(--mint);font-size:13px}.compact-disclosure[open]>summary::after{content:'摺收 ▴'}.compact-disclosure>summary:focus-visible{outline:2px solid var(--mint);outline-offset:-2px}.disclosure-body{padding:4px 12px 12px;color:var(--muted);font-size:14px;line-height:1.7}.disclosure-body strong{color:var(--white)}.disclosure-body small{font-size:13px}.coverage-warning{border-color:#897041;background:#2c2920}.coverage-warning>summary{color:var(--amber)}.coverage-caution{margin:4px 16px 10px;font-size:13px;line-height:1.6}.coverage-caution a{white-space:nowrap}
@media(max-width:700px){.compact-disclosure{margin-inline:12px}.coverage-caution{margin-inline:12px}}

/* Match the case panel by growing the actual map, never the legend's padding. */
.mapfoot,.mapfoot .maplegend,.mapfoot .icon-credit{font-size:17px;line-height:1.6}.mapfoot .maplegend{gap:10px 16px}.mapfoot .event-symbol{width:28px;height:28px}
@media(min-width:781px){.map-panel{align-self:stretch;display:flex;flex-direction:column}.map-panel>.panelhead,.map-panel>.maptitle,.map-panel>.unlocated-cases,.map-panel>.mapfoot{flex:0 0 auto}.map-panel>.mapwrap{flex:1 1 0;min-height:300px}.map-panel #map{position:absolute;inset:0;height:100%;width:100%;min-height:0;max-height:none}}
@media(max-width:780px){.mapfoot,.mapfoot .maplegend,.mapfoot .icon-credit{font-size:15px;line-height:1.6}.mapfoot .maplegend{gap:8px 12px}.mapfoot .event-symbol{width:26px;height:26px}}
#selectedDetails{align-self:flex-start;width:max-content;max-width:100%;font-size:15px;padding:6px 12px;margin-top:6px;white-space:normal}
.region-summary{margin:0;padding:10px 18px;color:var(--mint);font-size:16px;line-height:1.6;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
@media(max-width:700px){.region-summary{padding:9px 12px;font-size:15px}}

.site-footer{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start;gap:16px 24px}.site-footer p{margin:0;line-height:1.6;overflow-wrap:anywhere}.footer-about{min-width:0}.site-footer .site-owner{text-align:center}.footer-download{text-align:right}@media(max-width:1100px){.site-footer{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.footer-download{grid-column:1/-1;text-align:left}.site-footer .site-owner{text-align:right}}@media(max-width:700px){.site-footer{grid-template-columns:minmax(0,1fr);gap:12px}.site-footer .site-owner,.footer-download{text-align:left}.footer-download{grid-column:auto}}
