*{margin:0;padding:0;box-sizing:border-box}body{font-family:'Segoe UI',system-ui,sans-serif;background:#f0f2f5}
.header{background:#1a1f2e;color:#fff;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.header h1{font-size:20px;font-weight:600}.header .subtitle{font-size:13px;color:#94a3b8;margin-top:2px}
.scenario-tabs{display:flex;gap:4px}
.scenario-tab{padding:6px 14px;border-radius:20px;border:1.5px solid #334155;background:transparent;color:#94a3b8;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.scenario-tab:hover{border-color:#64748b;color:#e2e8f0}.scenario-tab.active{background:#0d9488;border-color:#0d9488;color:#fff}
.about-btn{background:transparent;border:1.5px solid #334155;color:#94a3b8;padding:6px 14px;border-radius:20px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.about-btn:hover{border-color:#64748b;color:#e2e8f0}
.controls{background:#fff;padding:10px 24px;display:flex;align-items:center;gap:16px;border-bottom:1px solid #e2e8f0;flex-wrap:wrap}
.year-slider-container{flex:1;min-width:280px;display:flex;align-items:center;gap:10px}
.year-slider{flex:1;-webkit-appearance:none;height:6px;background:#e2e8f0;border-radius:3px;outline:none}
.year-slider::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;background:#0d9488;border-radius:50%;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.year-display{font-size:22px;font-weight:700;color:#0d9488;min-width:50px;text-align:center}
.layer-toggles{display:flex;gap:5px;flex-wrap:wrap}
.layer-btn{padding:4px 10px;border-radius:14px;border:2px solid;font-size:11px;font-weight:600;cursor:pointer;background:#fff}
.layer-btn.active{color:#fff!important}
.play-btn{width:34px;height:34px;border-radius:50%;border:2px solid #0d9488;background:#fff;color:#0d9488;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.play-btn:hover{background:#0d9488;color:#fff}
.conv-toggle{font-size:12px;cursor:pointer;white-space:nowrap}.conv-toggle input{margin-right:4px}
.main-tabs{display:flex;gap:2px;background:#e2e8f0;border-radius:8px;padding:2px;margin-left:16px}
.main-tab{padding:5px 16px;border:none;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;background:transparent;color:#64748b}
.main-tab.active{background:#fff;color:#0d9488;box-shadow:0 1px 3px rgba(0,0,0,.1)}
#map{flex:1;min-width:0;height:100%;}
.legend-panel{position:absolute;bottom:24px;left:24px;background:rgba(255,255,255,.95);border-radius:10px;padding:12px 14px;box-shadow:0 2px 12px rgba(0,0,0,.15);z-index:1000;max-width:300px}
.legend-panel h3{font-size:12px;color:#1e293b;margin-bottom:6px}
.legend-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px}
.legend-item{display:flex;align-items:center;gap:5px;font-size:10px;color:#475569}
.legend-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.legend-section{margin-top:8px;padding-top:6px}.legend-section:first-child{margin-top:0;padding-top:0}
.size-legend{display:flex;align-items:flex-end;gap:6px;margin-top:4px}
.size-circle{border-radius:50%;border:1.5px solid #64748b;background:rgba(100,116,139,.1)}
.size-label{font-size:9px;color:#94a3b8;text-align:center}
.info-popup .leaflet-popup-content-wrapper{border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.15)}
.popup-content h4{font-size:14px;color:#1e293b;margin-bottom:4px}.popup-content table{font-size:11px;width:100%}.popup-content td{padding:2px 4px}.popup-content .mw{font-weight:600;text-align:right}
.state-tip{background:rgba(255,255,255,.97)!important;border:none!important;border-radius:10px!important;padding:0!important;box-shadow:0 4px 20px rgba(0,0,0,.18)!important;pointer-events:none!important}
.state-tip::before,.state-tip::after{display:none!important}
.stt{padding:12px 14px;min-width:200px}.stt h4{font-size:15px;color:#1e293b;margin:0 0 8px}
.stt-section{margin-bottom:8px}.stt-label{font-size:10px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;margin-bottom:3px}
.stt-row{display:flex;justify-content:space-between;align-items:center;padding:1px 0}
.stt-row .k{font-size:11px;color:#475569;display:flex;align-items:center;gap:4px}.stt-row .v{font-size:12px;font-weight:700;color:#1e293b}
.stt-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;display:inline-block}.stt-divider{height:1px;background:#e2e8f0;margin:6px 0}
#dashboard{height:calc(100vh - 130px);overflow-y:auto;display:none;padding:20px 24px}
.dash-section{margin-bottom:24px}.dash-section h2{font-size:16px;color:#1e293b;margin-bottom:12px;font-weight:700}
.chart-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}
.chart-card{background:#fff;border-radius:10px;padding:16px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.chart-card h3{font-size:13px;color:#475569;margin-bottom:8px;font-weight:600}
.chart-card canvas{width:100%!important;height:200px!important}
.state-selector-row{display:flex;gap:20px;align-items:flex-start}
.state-select-wrap{flex-shrink:0;width:200px}
.state-select-wrap>label{font-size:13px;font-weight:600;color:#475569;display:block;margin-bottom:4px}
.state-select{padding:8px 12px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:13px;font-family:inherit;width:100%;background:#fff;cursor:pointer}
.state-detail{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.state-card{background:#fff;border-radius:10px;padding:16px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.state-card h3{font-size:13px;color:#475569;margin-bottom:8px;font-weight:600}
.state-card canvas{width:100%!important;height:180px!important}
.state-big-num{font-size:28px;font-weight:700;color:#0d9488}.state-big-label{font-size:11px;color:#94a3b8;margin-top:2px}
.rankings-table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.rankings-table th{padding:10px 14px;text-align:left;font-size:11px;color:#94a3b8;font-weight:600;text-transform:uppercase;letter-spacing:.5px;border-bottom:2px solid #e2e8f0;cursor:pointer;white-space:nowrap}
.rankings-table th:hover{color:#0d9488}.rankings-table th.sorted{color:#0d9488}
.rankings-table td{padding:8px 14px;font-size:12px;color:#334155;border-bottom:1px solid #f1f5f9}
.rankings-table tr:hover td{background:#f8fafc}.rankings-table td.num{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.stat-grid{display:flex;flex-direction:column;gap:0;padding:4px 0}
.stat-item{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid #f1f5f9}
.stat-item:last-child{border-bottom:none}
.stat-label{font-size:12px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.stat-value{font-size:18px;font-weight:700;color:#1e293b}
.stat-dot{width:10px;height:10px;border-radius:50%;background:#0DC3A8;display:inline-block;margin-right:6px;vertical-align:middle}
.about-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(15,23,42,.6);z-index:2000;backdrop-filter:blur(4px);overflow-y:auto;padding:40px 20px}
.about-overlay.active{display:flex;justify-content:center;align-items:flex-start}
.about-panel{background:#fff;border-radius:14px;max-width:720px;width:100%;padding:32px 36px;box-shadow:0 8px 40px rgba(0,0,0,.2);position:relative;line-height:1.6;color:#334155}
.about-panel h2{font-size:22px;color:#1e293b;margin-bottom:4px}.about-panel .about-sub{font-size:13px;color:#94a3b8;margin-bottom:20px}
.about-panel h3{font-size:15px;color:#0d9488;margin:20px 0 8px;font-weight:700}.about-panel p{font-size:13px;margin-bottom:10px}
.about-panel ul{font-size:13px;margin:0 0 10px 20px}.about-panel li{margin-bottom:4px}
.about-panel .tech-card{background:#f8fafc;border-radius:8px;padding:12px 14px;margin-bottom:8px;border-left:4px solid}
.about-panel .tech-card h4{font-size:13px;margin:0 0 4px;font-weight:700}.about-panel .tech-card p{font-size:12px;margin:0;color:#475569}
.about-close{position:absolute;top:16px;right:16px;background:#f1f5f9;border:none;width:32px;height:32px;border-radius:50%;font-size:18px;cursor:pointer;color:#64748b;display:flex;align-items:center;justify-content:center}
.about-close:hover{background:#e2e8f0}
.about-panel .glossary-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px;font-size:12px;margin-bottom:10px}
.about-panel .glossary-grid .g-item{display:flex;gap:6px}.about-panel .glossary-grid .g-label{font-weight:700;color:#1e293b;min-width:60px}
#mapView{position:relative;height:calc(100vh - 130px);display:flex;flex-direction:row;}
#map{flex:1;height:100%;min-width:0;}
#uprateSummaryBar{display:none;position:absolute;top:0;left:0;right:300px;background:rgba(255,255,255,.97);border-bottom:1px solid #e2e8f0;border-right:1px solid #e2e8f0;padding:8px 16px;z-index:1001;}
#uprateSummaryBar .usb-row{display:flex;flex-wrap:nowrap;align-items:stretch;gap:0 0}
#uprateSummaryBar .usb-group{display:flex;flex-direction:column;gap:3px;padding:0 16px}
#uprateSummaryBar .usb-group:first-child{padding-left:0}
#uprateSummaryBar .usb-group-hdr{font-size:9px;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.07em;margin-bottom:1px}
#uprateSummaryBar .usb-group-stats{display:flex;align-items:center;gap:14px}
#uprateSummaryBar .usb-stat{display:flex;flex-direction:column;line-height:1.2}
#uprateSummaryBar .usb-val{font-size:15px;font-weight:800;color:#814DB1}
#uprateSummaryBar .usb-lbl{font-size:9px;color:#94a3b8;letter-spacing:.02em}
#uprateSummaryBar .usb-div{width:1px;background:#e2e8f0;flex-shrink:0;align-self:stretch}
#upratePanel{width:300px;flex-shrink:0;height:100%;background:#fff;border-left:1px solid #e2e8f0;overflow-y:auto;box-sizing:border-box;}
#uprate-card-content{padding:14px;}
#uprateSummaryBar .usb-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:7px;padding-top:7px;border-top:1px solid #e2e8f0;}
#uprateSummaryBar .usb-legend-hdr{font-size:9px;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.07em;margin-right:4px}
#uprateSummaryBar .usb-legend-item{display:flex;align-items:center;gap:4px;font-size:10px;color:#475569;white-space:nowrap}
.uc-total{font-size:20px;font-weight:700;color:#1e293b;margin:6px 0 2px}.uc-sub{font-size:11px;color:#64748b;margin-bottom:10px}
.uc-row{display:flex;justify-content:space-between;font-size:11px;padding:2px 0;color:#475569}.uc-note{font-size:9px;color:#94a3b8;margin-top:8px;padding-top:6px;border-top:1px solid #e2e8f0;line-height:1.5}
