
*{box-sizing:border-box}body{margin:0;background:#040e1c;color:#d9edf7;font:14px 'Microsoft YaHei',sans-serif;background-image:linear-gradient(#13334a22 1px,transparent 1px),linear-gradient(90deg,#13334a22 1px,transparent 1px);background-size:42px 42px}header{height:88px;border-bottom:1px solid #164158;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:#05101ee8}h1{color:#49e5ff;font-size:28px;letter-spacing:7px;margin:0;text-shadow:0 0 25px #00bddd55}header small{display:block;text-align:center;color:#64849d;letter-spacing:4px;font-size:10px;margin-top:8px}.brand{color:#5adff3;font-size:16px}button,select{background:#0b2639;border:1px solid #21576b;border-radius:5px;color:#8eeaf8;padding:9px 14px;cursor:pointer}button:hover,button.active{background:#0e485b;border-color:#23d7ed;color:white}nav{display:flex;justify-content:space-between;align-items:center;padding:18px 24px}nav span, .muted{color:#6e91aa;font-size:12px}.layout{display:grid;grid-template-columns:1fr 1.48fr 1fr;gap:18px;padding:0 24px 14px;min-height:740px;height:calc(100vh - 180px)}.column{display:flex;flex-direction:column;gap:18px;min-width:0}.panel{position:relative;border:1px solid #164357;border-radius:10px;background:linear-gradient(135deg,#0a1d2ddd,#061422ee);padding:20px;overflow:hidden;flex:1}.panel:before{content:'';position:absolute;left:0;top:0;width:24px;height:18px;border-top:2px solid #29ddf7;border-left:2px solid #29ddf7;border-radius:10px 0 0}.panel:after{content:'';position:absolute;right:0;bottom:0;width:24px;height:18px;border-bottom:2px solid #328eff;border-right:2px solid #328eff;border-radius:0 0 10px}h2{color:#4cdef3;font-size:17px;letter-spacing:2px;margin:0 0 20px;display:flex;justify-content:space-between}h2 em{font-size:10px;font-style:normal;color:#587c97;letter-spacing:1px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat{background:#0b283b88;padding:18px 12px;border:1px solid #113e53;border-radius:7px}.stat strong{display:block;color:#f1fbff;font: bold 38px Consolas,monospace;margin:12px 0 5px}.stat strong b{font-size:13px;color:#4ad8ef;margin-left:5px}.stat label{color:#8babbe;font-size:12px}.tag{font-size:10px;color:#49d8ab}.progress{margin-top:24px}.progress p{display:flex;justify-content:space-between;color:#91afc0;font-size:12px}.progress b{color:#4ce4ff}.track{height:7px;background:#122c40;border-radius:6px;overflow:hidden}.track i{display:block;height:100%;background:linear-gradient(90deg,#08799c,#3ce5ee);box-shadow:0 0 10px cyan}.chart{height:220px;width:100%}.age{height:175px}.legend-row{display:flex;justify-content:space-between;padding:9px 2px;border-bottom:1px solid #163144;font-size:12px}.legend-row b{color:#bde9f6}.map-panel{display:flex;flex-direction:column}.map-header{text-align:center;margin:6px 0}.map-header strong{font: bold 42px Consolas;color:#51e8ff;text-shadow:0 0 30px #19c6ff55}.map-header p{color:#6e91aa;font-size:12px;letter-spacing:3px}#map{flex:1;min-height:360px}.map-tools{display:flex;justify-content:center;gap:7px}.map-tools button{font-size:12px;padding:6px 12px}.district-card{padding:16px;border:1px solid #176079;background:#092c3e88;display:flex;justify-content:space-between;align-items:center;border-radius:6px}.district-card b{display:block;color:#4ae3f6;font: bold 23px Consolas;margin-top:8px}.district-card span{font-size:11px;color:#83aabd}.note{font-size:11px;color:#5d809b;line-height:1.8;margin-top:12px}.sample-total{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #163749;padding-bottom:14px;margin-bottom:8px}.sample-total strong{font: bold 30px Consolas;color:#4fe4f6}.sample-total small{color:#6f92a8}footer{text-align:center;font-size:11px;color:#57788e;padding:0 0 12px}.live{color:#49dcae}#clock{font-family:Consolas;color:#8acbdc;margin-right:14px}@media(max-width:1100px){.layout{height:auto;grid-template-columns:1fr 1fr}.column:nth-child(2){grid-column:1/-1;grid-row:1}.map-panel{min-height:640px}h1{font-size:20px}header{padding:15px}.brand{display:none}}@media(max-width:650px){.layout{display:flex;flex-direction:column;padding:10px}header{height:auto;flex-wrap:wrap;gap:15px}h1{font-size:18px}nav{padding:15px;gap:12px;flex-wrap:wrap}.panel{min-height:320px}}

/* Fixed dashboard frames; only panel bodies scroll. */
html,body{height:100%;overflow:hidden}body{height:100dvh;display:flex;flex-direction:column;font-size:16px}header,nav,footer{flex-shrink:0}.layout{flex:1;min-height:0;height:auto;grid-template-rows:minmax(0,1fr)}.column{min-height:0}.panel,.map-panel{display:flex;flex-direction:column;min-height:0;padding:18px;flex:1 1 0}.panel>h2{flex-shrink:0;margin-bottom:16px;font-size:19px}.panel-content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#286078 #071725;overscroll-behavior:contain;padding-right:7px}.panel:before,.panel:after{pointer-events:none}.stat label,.progress p,.legend-row,.map-header p,.district-card span,.sample-total small,nav span,.muted{font-size:16px}.note,.tag,footer,header small,h2 em{font-size:14px}.note{color:#85a8bf}.map-tools button,button{font-size:15px}.stat strong b{font-size:16px}.legend-row{gap:8px;padding:12px 2px}.map-panel .panel-content{display:block}#map{height:560px;min-height:560px;flex:none;width:100%}.map-header strong{font-size:48px}.chart{height:240px}.age{height:190px}.district-card{gap:12px}.district-card b{font-size:25px}
@media(max-width:1100px){.layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(420px,1.48fr) minmax(260px,1fr);overflow-x:auto;grid-template-rows:minmax(0,1fr)}.column:nth-child(2){grid-column:auto;grid-row:auto}.map-panel{min-height:0}.panel{min-height:0}header{min-height:80px}nav{flex-wrap:nowrap}h2 em{display:none}}

/* Give the fixed map more drawing space and separate dense district labels. */
.layout{grid-template-columns:minmax(300px,1fr) minmax(520px,1.9fr) minmax(300px,1fr)}
#map{height:680px;min-height:680px}
