:root{color-scheme:dark;font-family:Inter,"Segoe UI",sans-serif;color:#ecf4fb;background:#101821;--ink:#ecf4fb;--muted:#a8bdcb;--accent:#72e1c3;--panel:#101923f5;--line:#364756;--radius:14px}
*{box-sizing:border-box}body{margin:0;overflow:hidden}
#map{position:absolute;inset:0;background:#131f2b}
.top,.layers,.bottom,.map-actions,.notice{position:absolute;z-index:1}
.top{display:flex;gap:12px;align-items:center;justify-content:space-between;inset:18px 18px auto}
.brand,.panel,.models,.map-actions,.notice{background:var(--panel);border:1px solid var(--line);box-shadow:0 5px 25px #0005;border-radius:var(--radius)}
.brand{display:flex;gap:12px;align-items:center;padding:10px 16px 10px 12px;min-height:48px}
.brand h1{font-size:1rem;letter-spacing:.015em;margin:0;font-weight:720}
.mark{width:25px;height:25px;border:1px solid #72e1c366;border-radius:7px;display:inline-block;background:repeating-linear-gradient(135deg,#78e7ca 0 2px,transparent 2px 6px) center/13px 13px no-repeat,#17352f}
.models{padding:4px;display:flex;gap:4px}
button{font:inherit;color:var(--muted);background:none;border:0;border-radius:8px;cursor:pointer}
button:hover{color:var(--ink);background:#243747}
button:focus-visible,input:focus-visible{outline:2px solid #94f1d9;outline-offset:2px}
button:disabled{opacity:.42;cursor:default}
.models button{padding:8px 14px;font-size:.85rem;font-weight:750;min-width:62px}
.models button[aria-pressed=true]{color:#092b26;background:var(--accent)}
.layers{top:80px;left:18px;width:235px;padding:13px}
h2{font-size:.875rem;font-weight:670;margin:0}
.layers h2{padding:1px 7px 8px;color:var(--muted)}
.layer-list{display:grid;gap:3px}
.layer-list button{display:flex;align-items:center;gap:10px;min-height:38px;text-align:left;padding:8px;font-size:.89rem;font-weight:560}
.layer-list button[aria-pressed=true]{background:#253847;color:#fff;box-shadow:inset 0 0 0 1px #406173}
.swatch{width:10px;height:10px;border-radius:3px;flex:none}
.radar{background:#6ce378}.rain{background:#59b6f4}.snow{background:#c7a1f5}.jet{background:#f7bb65}
.opacity{border-top:1px solid #40515c99;display:flex;margin:10px 6px 0;padding:10px 0 1px;gap:10px;font-size:.875rem;color:var(--muted);align-items:center}
input[type=range]{min-width:0;accent-color:var(--accent);cursor:pointer;margin:0}
.opacity input,.scrub input{flex:1;width:0}
.map-actions{right:18px;top:80px;padding:4px;display:grid;gap:1px}
.map-actions button{font-size:1.3rem;width:36px;height:38px}
.bottom{left:18px;right:18px;bottom:34px;display:grid;grid-template-columns:minmax(235px,300px) minmax(0,680px);gap:12px;align-items:end;pointer-events:none}
.bottom>*{pointer-events:auto}
.legend,.timeline{padding:13px 15px}
.legend-title,.time-info{display:flex;justify-content:space-between;align-items:center;gap:8px}
.legend-title span,.cycle,#duration{font-size:.82rem;color:var(--muted)}
#ramp{height:7px;margin:11px 0 5px;border-radius:10px}
#scale{display:flex;justify-content:space-between;font-size:.75rem;color:#d1e0eb;font-variant-numeric:tabular-nums}
#field-note{color:var(--muted);font-size:.75rem;margin:8px 0 0}
.timeline h2{font-size:1rem}.cycle{margin-top:4px;line-height:1.25}
.lead{font-size:.8rem;color:var(--accent);border:1px solid #426a69;border-radius:6px;padding:4px 7px;font-variant-numeric:tabular-nums;white-space:nowrap}
.scrub{display:flex;align-items:center;gap:7px;margin-top:11px}
.scrub button{width:32px;height:33px;background:#243545;font-size:1.2rem}
#play{font-size:.83rem;color:var(--accent);width:38px}
#duration{margin-left:4px;white-space:nowrap}
.notice{top:50%;left:50%;transform:translate(-50%,-50%);padding:10px 15px;font-size:.875rem;max-width:min(85vw,520px);text-align:center;pointer-events:none}
.maplibregl-ctrl-bottom-right{right:14px;bottom:4px}
.maplibregl-ctrl.maplibregl-ctrl-attrib{background:#101923e8;color:#adbfcb;border-radius:5px}
.maplibregl-ctrl-attrib a{color:#c2d5e2}
@media(max-width:699px){
  .top{inset:10px 10px auto}.brand{min-height:43px;padding:7px 10px;gap:8px}.brand h1{font-size:.92rem}.models button{padding:7px 9px;min-width:48px}
  .layers{left:10px;top:62px;width:auto;right:56px;padding:5px}.layers h2,.opacity{display:none}
  .layer-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
  .layer-list button{font-size:.82rem;padding:5px 6px;gap:6px;min-height:37px}.swatch{width:7px;height:7px}
  .map-actions{right:10px;top:62px;padding:2px}.map-actions button{width:32px;height:33px}
  .bottom{left:10px;right:10px;bottom:30px;display:flex;flex-direction:column;gap:7px;align-items:stretch}
  .legend,.timeline{padding:9px 11px}#ramp{margin-top:8px}.scrub{margin-top:7px}
}
@media(max-height:450px) and (min-width:700px){.layers{width:215px}.bottom{left:248px}.legend{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
