*{box-sizing:border-box;margin:0;padding:0}body{color:#e2e8f0;background:#0f172a;height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overflow:hidden}.app-layout{grid-template-rows:56px 1fr;grid-template-columns:1fr 320px;height:100vh;display:grid}.header{background:linear-gradient(135deg,#1e293b 0%,#0f172a 100%);border-bottom:1px solid #334155;grid-column:1/-1;justify-content:space-between;align-items:center;padding:0 20px;display:flex}.header-left{align-items:center;gap:16px;display:flex}.header h1{color:#60a5fa;font-size:1.2rem;font-weight:600}.severity-pill{text-transform:uppercase;letter-spacing:.05em;border-radius:12px;padding:4px 12px;font-size:.75rem;font-weight:700}.severity-pill.severity-0{color:#86efac;background:#166534}.severity-pill.severity-1{color:#fde047;background:#854d0e}.severity-pill.severity-2{color:#fdba74;background:#9a3412}.severity-pill.severity-3{color:#fca5a5;background:#991b1b;animation:1.5s infinite pulse-bg}@keyframes pulse-bg{0%,to{opacity:1}50%{opacity:.7}}.header-right{align-items:center;gap:16px;display:flex}.status-indicator{color:#94a3b8;align-items:center;gap:6px;font-size:.8rem;display:flex}.status-dot{background:#22c55e;border-radius:50%;width:7px;height:7px;animation:2s infinite pulse}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.interval-selector{gap:4px;display:flex}.interval-btn{cursor:pointer;color:#94a3b8;background:#0f172a;border:1px solid #334155;border-radius:4px;padding:4px 8px;font-size:.7rem}.interval-btn.active{color:#fff;background:#3b82f6;border-color:#3b82f6}.refresh-btn{color:#94a3b8;cursor:pointer;background:0 0;border:1px solid #334155;border-radius:6px;align-items:center;gap:4px;padding:6px 10px;font-size:.8rem;display:flex}.refresh-btn:hover{color:#60a5fa;border-color:#60a5fa}.refresh-btn:disabled{opacity:.4;cursor:not-allowed}.left-column{flex-direction:column;display:flex;overflow:hidden}.charts-row{border-bottom:1px solid #334155;flex-shrink:0;height:40%;display:flex}.chart-panel{background:#1e293b;flex-direction:column;flex:1;min-width:0;padding:8px 14px 10px;display:flex}.chart-panel+.chart-panel{border-left:1px solid #334155}.chart-header{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.chart-label{color:#64748b;text-transform:uppercase;letter-spacing:.06em;font-size:.68rem;font-weight:600}.chart-tabs{gap:4px;display:flex}.chart-tab{cursor:pointer;color:#94a3b8;background:#0f172a;border:1px solid #334155;border-radius:5px;padding:3px 8px;font-size:.65rem;font-weight:500;transition:all .15s}.chart-tab.active{color:#fff;background:#3b82f6;border-color:#3b82f6}.chart-tab:hover:not(.active){color:#e2e8f0;border-color:#60a5fa}.chart-canvas-wrap{flex:1;min-height:0}.map-section{background:#1e293b;flex:1;min-height:0}#map{width:100%;height:100%}.event-panel{background:#1e293b;border-left:1px solid #334155;flex-direction:column;display:flex;overflow-y:auto}.panel{border-bottom:1px solid #334155;padding:14px 16px}.panel-title{color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;font-size:.7rem;font-weight:600}.severity-gauge{align-items:center;gap:14px;display:flex}.severity-level{background:#0f172a;border-radius:3px;flex:1;height:6px;overflow:hidden}.severity-bar{border-radius:3px;height:100%;transition:width .5s,background .5s}.severity-info{min-width:140px}.severity-label{font-size:1.1rem;font-weight:700}.severity-detail{color:#94a3b8;margin-top:2px;font-size:.72rem}.severity-rain-trend{margin-top:3px;font-size:.68rem}.metrics-row{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.metric-card{text-align:center;background:#0f172a;border:1px solid #334155;border-radius:6px;padding:10px}.metric-value{font-size:1.5rem;font-weight:700;line-height:1}.metric-label{color:#64748b;text-transform:uppercase;letter-spacing:.03em;margin-top:4px;font-size:.65rem}.metric-card.metric-waze .metric-value{color:#f97316}.metric-card.metric-areas .metric-value{color:#eab308}.metric-card.metric-overlap .metric-value{color:#dc2626}.metric-card.metric-stations .metric-value{color:#3b82f6}.metric-card.metric-rain .metric-value{color:#60a5fa}.metric-card.metric-max-rain .metric-value{color:#ef4444}.event-list{max-height:200px;overflow-y:auto}.event-item{cursor:pointer;background:#0f172a;border-radius:5px;align-items:center;gap:8px;margin-bottom:4px;padding:7px 8px;transition:background .15s;display:flex}.event-item:hover{background:#1e3a5f}.event-status-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.event-info{flex:1;min-width:0}.event-title{white-space:nowrap;text-overflow:ellipsis;font-size:.8rem;font-weight:500;overflow:hidden}.event-sub{color:#64748b;white-space:nowrap;text-overflow:ellipsis;font-size:.68rem;overflow:hidden}.event-meta{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:2px;display:flex}.event-waze-count{color:#f97316;font-size:.65rem}.event-empty{color:#22c55e;padding:8px 0;font-size:.8rem}.badge{white-space:nowrap;border-radius:10px;padding:2px 6px;font-size:.6rem;font-weight:600}.badge-normal{color:#86efac;background:#166534}.badge-attention{color:#fde047;background:#854d0e}.badge-alert{color:#fdba74;background:#9a3412}.badge-critical{color:#fca5a5;background:#991b1b}.rain-summary{justify-content:space-between;margin-bottom:6px;display:flex}.rain-avg{color:#60a5fa;font-size:.85rem;font-weight:600}.rain-active{color:#64748b;font-size:.75rem}.rain-top-item{justify-content:space-between;padding:3px 0;font-size:.75rem;display:flex}.rain-top-name{color:#94a3b8}.rain-top-value{color:#60a5fa;font-weight:500}.timeline-list{max-height:160px;overflow-y:auto}.timeline-item{align-items:flex-start;gap:8px;padding:5px 0;display:flex}.timeline-dot{border-radius:50%;flex-shrink:0;width:6px;height:6px;margin-top:5px}.timeline-content{flex:1;min-width:0}.timeline-time{color:#64748b;margin-right:6px;font-size:.65rem}.timeline-msg{color:#cbd5e1;font-size:.75rem}.city-trend{background:#0f172a;border-radius:8px;align-items:center;gap:12px;margin-bottom:12px;padding:12px;display:flex}.city-trend-icon{font-size:2rem}.city-trend-text{flex:1}.city-trend-title{font-size:1rem;font-weight:600}.city-trend-subtitle{color:#94a3b8;font-size:.75rem}.summary-grid{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.summary-card{background:#0f172a;border:1px solid #334155;border-radius:8px;padding:12px}.summary-card.alert{border-color:#ea580c}.summary-card.attention{border-color:#eab308}.summary-value{font-size:1.75rem;font-weight:700;line-height:1}.summary-label{color:#94a3b8;margin-top:4px;font-size:.75rem}.station-list{max-height:200px;overflow-y:auto}.station-item{cursor:pointer;background:#0f172a;border-left:3px solid #0000;border-radius:5px;justify-content:space-between;align-items:center;margin-bottom:3px;padding:6px 10px;font-size:.8rem;transition:background .15s;display:flex}.station-item:hover{background:#1e3a5f}.station-item.raining{background:linear-gradient(90deg,#3b82f614 0%,#0f172a 100%);border-left-color:#3b82f6}.station-item.heavy{background:linear-gradient(90deg,#ef444414 0%,#0f172a 100%);border-left-color:#ef4444}.station-name{font-weight:500}.station-value{color:#60a5fa;font-weight:600}.station-trend{margin-left:6px;font-size:.7rem}.trend-up{color:#ef4444}.trend-down{color:#22c55e}.trend-stable{color:#94a3b8}.filter-controls{gap:6px;margin-bottom:8px;display:flex}.filter-btn{cursor:pointer;color:#94a3b8;background:#0f172a;border:1px solid #334155;border-radius:4px;padding:3px 8px;font-size:.65rem}.filter-btn.active{color:#e2e8f0;background:#334155}.panel-header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.panel-header .panel-title{margin-bottom:0}.panel-badge{color:#94a3b8;background:#334155;border-radius:10px;padding:2px 8px;font-size:.65rem;font-weight:600}.alert-list{max-height:160px;overflow-y:auto}.alert-item{cursor:pointer;background:#0f172a;border-left:3px solid #f97316;border-radius:5px;gap:8px;margin-bottom:3px;padding:6px 8px;transition:background .15s;display:flex}.alert-item:hover{background:#1e3a5f}.alert-icon{font-size:1rem}.alert-content{flex:1;min-width:0}.alert-street{white-space:nowrap;text-overflow:ellipsis;font-size:.78rem;font-weight:500;overflow:hidden}.alert-time{color:#64748b;font-size:.65rem}.loading-overlay{z-index:10000;background:#0f172ae6;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.loading-spinner{border:3px solid #334155;border-top-color:#3b82f6;border-radius:50%;width:40px;height:40px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.hidden{display:none}.error-toast{color:#fff;z-index:10001;background:#991b1b;border-radius:8px;padding:10px 20px;font-size:.85rem;display:none;position:fixed;bottom:20px;left:50%;transform:translate(-50%)}.error-toast.show{animation:.3s slideUp;display:block}@keyframes slideUp{0%{opacity:0;transform:translate(-50%)translateY(20px)}to{opacity:1;transform:translate(-50%)translateY(0)}}.leaflet-popup-content-wrapper{color:#e2e8f0;background:#1e293b;border-radius:8px}.leaflet-popup-tip{background:#1e293b}.popup-title{margin-bottom:6px;font-size:.85rem;font-weight:600}.popup-row{justify-content:space-between;padding:2px 0;font-size:.78rem;display:flex}.popup-label{color:#94a3b8}
