:root { --cyan:#0AB4FF; --blue:#0F2864; --orange:#F49100; --green:#76B729; --red:#E61937; --yellow:#EAB308; --bg:#F6F6F6; --card-bg:#fff; --surface:#fafafa; --text:#1a1a1a; --text-secondary:#4a5568; --text-muted:#64748b; --line:#e2e8f0; --shadow:0 2px 16px rgba(0,0,0,.08); --shadow-hover:0 8px 32px rgba(0,0,0,.14); --radius:10px; --font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
* { box-sizing:border-box; } html { min-height:100%; -webkit-text-size-adjust:100%; } body { margin:0; min-width:320px; min-height:100vh; background:var(--bg); color:var(--text); font:16px/1.5 var(--font); -webkit-font-smoothing:antialiased; } button,select { font:inherit; } button { cursor:pointer; } .hidden { display:none!important; }
#app { min-height:100vh; display:flex; flex-direction:column; max-width:1440px; margin:auto; padding:0 16px; }
.app-header { position:sticky; top:0; z-index:1000; height:70px; width:100vw; margin-left:calc(-50vw + 50%); background:var(--cyan); color:#1a1a1a; box-shadow:0 1px 4px rgba(0,0,0,.08); } .header-inner { height:70px; max-width:1440px; margin:auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; } .header-left,.header-right { display:flex; align-items:center; gap:14px; } .header-logo { width:auto; height:36px; object-fit:contain; } h1,h2,p { margin:0; } h1 { font-size:1.35rem; letter-spacing:-.02em; } h2 { font-size:1.12rem; line-height:1.25; } .header-meta { display:flex; align-items:center; gap:7px; font-size:.82rem; font-weight:500; white-space:nowrap; } .theme-toggle { width:36px; height:36px; border:0; border-radius:999px; display:grid; place-items:center; color:inherit; background:rgba(26,26,26,.1); transition:background .15s; } .theme-toggle:hover { background:rgba(26,26,26,.18); } .theme-icon { width:20px; height:20px; } .theme-icon--sun { display:none; }
main { flex:1; padding:0 0 32px; } .dashboard { animation:reveal .35s ease-out; } @keyframes reveal { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:none; } } .page-title { display:flex; justify-content:space-between; align-items:end; gap:20px; padding:28px 2px 20px; } .eyebrow { color:var(--text-muted); font-size:.7rem; font-weight:750; letter-spacing:.1em; text-transform:uppercase; margin-bottom:3px; } .page-title h2 { font-size:1.45rem; letter-spacing:-.025em; } .intro-copy { max-width:62ch; color:var(--text-secondary); font-size:.92rem; margin-top:4px; } .updated-at { color:var(--text-muted); font-size:.78rem; text-align:right; }
.kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:16px; } .kpi-card,.filter-card,.map-card,.chart-card,.state-card,.no-match { border-radius:var(--radius); background:var(--card-bg); box-shadow:var(--shadow); } .kpi-card { padding:18px 18px 12px; min-height:124px; display:flex; flex-direction:column; } .kpi-label { color:var(--text-secondary); font-size:.8rem; font-weight:650; } .kpi-value { color:var(--blue); font-size:1.65rem; letter-spacing:-.045em; line-height:1.25; margin-top:8px; font-variant-numeric:tabular-nums; } .kpi-sub { color:var(--text-muted); font-size:.72rem; margin-top:auto; }
.content-grid { display:grid; grid-template-columns:270px minmax(0,1fr); gap:16px; margin-bottom:16px; } .filter-card,.map-card,.chart-card { padding:18px 18px 12px; } .card-heading { display:flex; align-items:start; justify-content:space-between; gap:12px; margin-bottom:14px; } .card-heading h2 { font-size:1.05rem; } .text-button { border:0; background:transparent; color:var(--blue); padding:1px 0; font-size:.76rem; font-weight:700; } .text-button:hover { color:var(--cyan); text-decoration:underline; } .filter-group { border-top:1px solid var(--line); padding:14px 0; } .filter-group label { display:block; color:var(--text-secondary); font-size:.78rem; font-weight:700; margin-bottom:8px; } .control-header { display:flex; align-items:center; justify-content:space-between; gap:12px; } .control-header label { margin-bottom:0; } .control-header--bounds { color:var(--text-secondary); font-size:.75rem; margin-top:3px; } .font-bold { color:var(--blue); font-size:.85rem; font-weight:750; font-variant-numeric:tabular-nums; } #year-slider { width:100%; margin:10px 0 0; accent-color:var(--cyan); cursor:pointer; } #year-slider:disabled { cursor:not-allowed; } .year-unavailable { display:block; margin-top:8px; color:var(--text-muted); font-size:.78rem; font-weight:600; } .pills { display:flex; flex-wrap:wrap; gap:6px; } .pill { border:0; border-radius:999px; padding:6px 10px; color:var(--text); background:rgba(0,180,255,.12); font-size:.74rem; font-weight:700; transition:background .15s,transform .15s; } .pill:hover { background:rgba(0,180,255,.22); transform:translateY(-1px); } .pill.active { color:#1a1a1a; background:var(--cyan); } .filter-select { width:100%; border:1px solid var(--line); border-radius:8px; padding:8px 10px; color:var(--text); background:var(--card-bg); font-size:.83rem; outline:0; } .filter-select:focus { border-color:var(--cyan); box-shadow:0 0 0 3px rgba(10,180,255,.14); } .filter-summary { margin-top:4px; padding-top:14px; border-top:1px solid var(--line); color:var(--text-muted); font-size:.77rem; font-weight:600; }
.map-card { min-width:0; } .map-note,.chart-note { color:var(--text-muted); font-size:.75rem; white-space:nowrap; } #map { height:540px; border-radius:8px; overflow:hidden; background:var(--surface); } .leaflet-container { font-family:var(--font); } .leaflet-popup-content-wrapper { border-radius:8px; box-shadow:var(--shadow); } .leaflet-popup-content { margin:12px 15px; font-size:.83rem; } .popup-title { font-size:.96rem; margin-bottom:5px; } .popup-address { color:var(--text-secondary); margin-bottom:8px; } .popup-row { display:flex; gap:8px; justify-content:space-between; border-top:1px solid #e8edf2; padding-top:4px; margin-top:4px; } .popup-row span { color:var(--text-muted); } .popup-row strong { text-align:right; }
.chart-card--wide { min-height:325px; } .chart-wrap { position:relative; height:240px; } #power-chart { width:100%!important; height:100%!important; } .chart-empty { position:absolute; inset:0; display:grid; place-items:center; color:var(--text-muted); font-size:.88rem; } .data-note { color:var(--text-muted); font-size:.76rem; margin:12px 2px 0; } .no-match { margin-top:16px; padding:18px; display:flex; align-items:center; justify-content:space-between; gap:16px; } .no-match div { display:flex; flex-direction:column; } .no-match span { color:var(--text-muted); font-size:.85rem; }
.loading-state,.state-card { min-height:280px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:12px; color:var(--text-muted); text-align:center; } .state-card { padding:32px; } .state-card h2 { color:var(--text); } .state-card p { font-size:.9rem; } .spinner { width:28px; height:28px; border:3px solid var(--line); border-top-color:var(--cyan); border-radius:50%; animation:spin .7s linear infinite; } .spinner--small { width:15px; height:15px; border-width:2px; } @keyframes spin { to { transform:rotate(360deg); } } .btn { border:1px solid var(--line); border-radius:8px; padding:8px 14px; color:var(--text-secondary); background:var(--card-bg); font-size:.83rem; font-weight:700; } .btn:hover { border-color:var(--cyan); color:var(--blue); } .btn--primary { border-color:var(--cyan); background:var(--cyan); color:#1a1a1a; }
.app-footer { width:100vw; margin-left:calc(-50vw + 50%); background:var(--cyan); } .footer-inner { max-width:1440px; min-height:70px; margin:auto; padding:16px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; color:#1a1a1a; font-size:.8rem; } .footer-inner strong { font-weight:750; } .app-footer a { color:inherit; text-decoration:underline; }
[data-theme="dark"] { --bg:#0b1220; --card-bg:#111827; --surface:#1a2332; --text:#f8fafc; --text-secondary:#a9b7ca; --text-muted:#7f91a9; --line:rgba(148,163,184,.2); --shadow:0 2px 16px rgba(0,0,0,.35); --shadow-hover:0 8px 32px rgba(0,0,0,.5); } [data-theme="dark"] .theme-toggle { background:rgba(26,26,26,.14); } [data-theme="dark"] .theme-toggle:hover { background:rgba(26,26,26,.24); } [data-theme="dark"] .filter-select { color-scheme:dark; } [data-theme="dark"] .font-bold { color:#67caff; } [data-theme="dark"] .basemap-tiles { filter:brightness(.6) invert(1) contrast(3) hue-rotate(200deg) saturate(.3) brightness(.7); } [data-theme="dark"] .leaflet-container { background:#0b1220; } [data-theme="dark"] .leaflet-popup-content-wrapper,[data-theme="dark"] .leaflet-popup-tip { background:var(--card-bg); color:var(--text); } [data-theme="dark"] .popup-address { color:var(--text-secondary); } [data-theme="dark"] .popup-row { border-color:var(--line); } [data-theme="dark"] .kpi-value { color:#67caff; }
@media (max-width:900px) { .kpi-grid { grid-template-columns:repeat(2,1fr); } .content-grid { grid-template-columns:1fr; } .filter-card { display:grid; grid-template-columns:1fr 1fr; column-gap:18px; } .filter-card .card-heading,.filter-summary { grid-column:1/-1; } .filter-group { margin:0; } }
@media (max-width:640px) { .header-inner { padding:0 16px; } .header-logo { height:28px; } h1 { font-size:1rem; } .header-left { gap:12px; } .header-meta { font-size:.72rem; } #map { height:430px; } }
@media (max-width:600px) { #app { padding:0 12px; } .header-inner { padding:0 16px; } .header-meta { display:none; } .page-title { align-items:start; flex-direction:column; gap:8px; padding-top:20px; } .updated-at { text-align:left; } .kpi-grid { gap:10px; } .kpi-card { min-height:108px; padding:14px 14px 10px; } .kpi-value { font-size:1.38rem; } .content-grid { gap:12px; } .filter-card { display:block; } .map-card,.filter-card,.chart-card { padding:16px 14px 10px; } #map { height:400px; } .chart-wrap { height:215px; } .no-match { align-items:start; flex-direction:column; } .footer-inner { align-items:start; flex-direction:column; gap:3px; padding:16px; } }
@media (max-width:480px) { .header-inner { flex-wrap:wrap; gap:4px; height:auto; padding:8px 12px; } .app-header { height:auto; } .header-right { margin-left:auto; } #map { height:360px; } }
