:root { --ink:#15213a; --muted:#63708a; --line:#dde4ef; --panel:#ffffff; --blue:#2355d9; --purple:#663ee7; --pale:#f5f8fc; }
* { box-sizing:border-box; }
body { margin:0; background:var(--pale); color:var(--ink); font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:390px minmax(0, 1fr); }
.control-panel { position:relative; z-index:2; display:flex; flex-direction:column; padding:28px 24px; overflow-y:auto; background:#fff; box-shadow:5px 0 24px rgba(22,44,78,.06); }
.brand { display:flex; align-items:center; gap:11px; padding:0 4px 25px; }
.brand-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:linear-gradient(135deg,#19b4cf,#265adf); color:#fff; font-size:29px; line-height:1; }
h1,h2,p { margin:0; } h1 { font-size:20px; letter-spacing:-.5px; } .brand p { color:var(--muted); font-size:12px; margin-top:2px; }
.selection-card,.metrics-card { border:1px solid var(--line); border-radius:16px; padding:18px; margin-bottom:16px; }
.section-heading,.metrics-heading { display:flex; justify-content:space-between; gap:8px; align-items:flex-start; margin-bottom:17px; } .section-heading { align-items:center; } h2 { font-size:15px; letter-spacing:-.15px; }
.mode-badge,.source-chip { border-radius:20px; padding:5px 8px; font-size:10px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; background:#edf1fb; color:#405170; white-space:nowrap; }
.selection-tabs { display:flex; gap:4px; padding:4px; margin:0; border-radius:10px; background:#f0f3f8; }.selection-tab,.kind-button { border:0; border-radius:7px; padding:8px 9px; color:#63708a; background:transparent; font:inherit; font-size:11px; font-weight:800; line-height:1.1; cursor:pointer; }.selection-tab.is-active,.kind-button.is-active { background:#fff; color:#244fc9; box-shadow:0 1px 4px rgba(23,38,70,.12); }.place-kind-toggle { display:flex; gap:5px; margin:-3px 0 15px; }.kind-button { border:1px solid #d8e0ec; padding:7px 14px; }.kind-button.is-active { border-color:#c9d6fa; }
label { display:block; margin:0 0 6px; color:#4b5871; font-size:12px; font-weight:700; }
input { width:100%; border:1px solid #cbd5e4; border-radius:9px; padding:10px 11px; color:var(--ink); font:inherit; font-size:13px; outline:none; }
input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(35,85,217,.13); }
.search-row { display:flex; gap:8px; }.search-row input { min-width:0; }.primary-button { border:0; border-radius:9px; padding:0 13px; background:var(--blue); color:#fff; font-weight:750; cursor:pointer; }
.search-results { max-height:190px; margin-top:7px; overflow-y:auto; border:1px solid #ccd6e6; border-radius:10px; background:#fff; box-shadow:0 8px 18px rgba(30,48,81,.12); }.search-result { display:block; width:100%; padding:10px 11px; border:0; border-bottom:1px solid #edf0f5; background:#fff; color:var(--ink); text-align:left; cursor:pointer; font:inherit; }.search-result:last-child { border-bottom:0; }.search-result:hover,.search-result:focus { background:#f1f5ff; outline:0; }.search-result strong { display:block; font-size:12px; }.search-result span { display:block; margin-top:2px; color:#71809a; font-size:10px; }.coordinate-intro { margin-top:0; }
.coordinate-entry-hint { margin-bottom:14px; }
.field-hint { margin:8px 0 15px; font-size:11px; line-height:1.4; color:var(--muted); }
.coordinate-fields { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:0 0 15px; }.coordinate-fields[hidden] { display:none; }.coordinate-fields input { background:#f7f9fc; color:#52617a; }
.radius-row { position:relative; margin-bottom:0; }.radius-row input { padding-right:42px; }.radius-row span { position:absolute; right:12px; top:10px; font-size:13px; color:var(--muted); }
.metrics-card { background:linear-gradient(150deg,#172d72,#442b9c); border:0; color:#fff; box-shadow:0 12px 25px rgba(54,43,138,.15); }.metrics-card .eyebrow,.metrics-card .simulation-date,.metric-note { color:#cbd6ff; }
.eyebrow { font-size:10px; font-weight:850; letter-spacing:.11em; }.metrics-heading h2 { margin-top:3px; }.live-status { display:flex; align-items:center; gap:5px; color:#aeeafe; font-size:10px; font-weight:850; letter-spacing:.08em; }.live-status i { width:7px; height:7px; border-radius:50%; background:#46e3b8; box-shadow:0 0 0 3px rgba(70,227,184,.2); }.simulation-date { margin:13px 0 14px; font-size:13px; font-weight:650; }
.metric-grid { display:grid; grid-template-columns:1fr 1fr; overflow:hidden; border:1px solid rgba(255,255,255,.18); border-radius:11px; }.metric-grid article { min-height:77px; padding:11px; background:rgba(255,255,255,.07); }.metric-grid article:nth-child(1),.metric-grid article:nth-child(2) { border-bottom:1px solid rgba(255,255,255,.18); }.metric-grid article:nth-child(odd) { border-right:1px solid rgba(255,255,255,.18); }.metric-grid span,.accumulation span { display:block; color:#ced7fb; font-size:10px; }.metric-grid strong { display:block; margin-top:6px; font-size:20px; letter-spacing:-.6px; }.accumulation { display:flex; justify-content:space-between; align-items:center; margin-top:12px; padding:9px 1px 0; }.accumulation strong { font-size:13px; }.metric-note { margin-top:11px; font-size:10px; }
.advanced-link { margin-top:7px; padding:0; border:0; background:transparent; color:#cbd6ff; cursor:pointer; font:inherit; font-size:10px; text-decoration:underline; }.advanced-panel { position:relative; margin-top:8px; padding:12px 11px 11px; border-radius:9px; background:rgba(0,0,0,.13); }.advanced-close { position:absolute; top:6px; right:6px; display:grid; place-items:center; width:21px; height:21px; border:0; border-radius:5px; background:rgba(255,255,255,.12); color:#e3e9ff; cursor:pointer; font-size:17px; line-height:1; }.advanced-close:hover { background:rgba(255,255,255,.23); }.advanced-panel label { color:#dce4ff; }.threshold-setting { display:grid !important; grid-template-columns:minmax(0,1fr) 105px; align-items:center; gap:10px; padding-right:25px; }.threshold-setting label { margin:0; white-space:nowrap; }.threshold-row { position:relative; min-width:0; }.threshold-row input { border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.1); color:#fff; padding:8px 44px 8px 9px; }.threshold-row span { position:absolute; top:9px; right:8px; color:#d7e0ff; font-size:10px; }.contrast-toggle { display:flex !important; align-items:center; justify-content:space-between; margin:12px 0 0 !important; cursor:pointer; font-size:11px !important; }.contrast-toggle input { appearance:none; flex:none; order:2; width:34px; height:20px; margin:0; padding:2px; border:1px solid rgba(255,255,255,.38); border-radius:20px; background:rgba(255,255,255,.16); box-shadow:none; cursor:pointer; transition:background .16s ease; }.contrast-toggle input::after { display:block; width:14px; height:14px; border-radius:50%; background:#fff; content:""; transition:transform .16s ease; }.contrast-toggle input:checked { border-color:#a8baff; background:#8da9ff; }.contrast-toggle input:checked::after { transform:translateX(14px); }.advanced-panel p { margin-top:7px; color:#ced7fb; font-size:10px; line-height:1.35; }
.legend { padding:0 5px; color:var(--muted); font-size:11px; }.legend-bar { height:7px; margin-top:8px; border-radius:4px; background:linear-gradient(90deg,#7bd7ff,#3478f6,#7447d9,#ce3bbd,#ff5742); }.legend-labels { display:flex; justify-content:space-between; margin-top:4px; font-size:10px; }.data-license { margin:auto 5px 0; padding-top:21px; font-size:10px; }.data-license a { color:#63708a; text-decoration:none; }.data-license a:hover { text-decoration:underline; }
.map-area { position:relative; min-height:670px; }.map-area,#map { height:100vh; }.leaflet-control-attribution { font-size:9px !important; }.map-topbar { position:absolute; z-index:500; top:20px; left:23px; display:flex; align-items:center; gap:9px; padding:8px 10px; border:1px solid rgba(204,216,233,.85); border-radius:10px; background:rgba(255,255,255,.93); box-shadow:0 4px 12px rgba(30,52,87,.08); font-size:12px; font-weight:750; }.source-chip { background:#ffedcd; color:#9c5612; text-decoration:none; }.source-chip:hover { text-decoration:underline; }
.leaflet-bottom.leaflet-right .leaflet-control-zoom { position:absolute; right:0; bottom:185px; }
.click-prompt { position:absolute; z-index:500; left:50%; top:21px; transform:translateX(-50%); padding:9px 13px; border-radius:10px; background:rgba(21,33,58,.87); color:#fff; font-size:12px; box-shadow:0 6px 16px rgba(15,27,58,.18); pointer-events:none; opacity:0; transition:opacity .22s; }.click-prompt.visible { opacity:1; }
.timeline-card { position:absolute; z-index:500; right:23px; bottom:27px; width:min(550px,calc(100% - 46px)); padding:17px 18px 13px; border:1px solid rgba(216,225,239,.95); border-radius:15px; background:rgba(255,255,255,.96); box-shadow:0 10px 30px rgba(21,39,74,.18); }.timeline-topline { display:flex; justify-content:space-between; align-items:center; }.timeline-topline .eyebrow { color:#526ec3; }.timeline-topline strong { display:block; margin-top:3px; font-size:14px; }.play-button { display:grid; place-items:center; flex:none; width:35px; height:35px; border:0; border-radius:50%; background:#244fce; color:#fff; cursor:pointer; font-size:13px; }
.timeline-range-wrap input[type="range"] { width:100%; padding:0; margin:16px 0 4px; accent-color:#3459d4; cursor:pointer; }.timeline-labels { display:flex; justify-content:space-between; color:#71809a; font-size:10px; }.timeline-help { margin-top:12px; color:#70809c; font-size:10px; }
.rain-cell { transition:fill .2s ease, fill-opacity .2s ease; pointer-events:none; }
@media (max-width:760px) { .app-shell { display:block; }.control-panel { padding:19px 16px; }.map-area,#map { height:68vh; min-height:560px; }.map-topbar { top:12px; left:12px; max-width:calc(100% - 24px); }.click-prompt { top:59px; }.timeline-card { right:12px; bottom:13px; width:calc(100% - 24px); }.brand { padding-bottom:18px; } }
