:root {
  --bg: #060b0f;
  --surface: #0d151b;
  --surface-2: #111d25;
  --surface-3: #172630;
  --line: rgba(171, 207, 220, .15);
  --line-strong: rgba(171, 207, 220, .28);
  --text: #f3f7f8;
  --muted: #91a4ad;
  --cyan: #6ee7f5;
  --green: #50e3ac;
  --yellow: #f6df45;
  --l1: #f39a35;
  --l2: #ef3f3d;
  --l3: #d61ecf;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 65% -10%, rgba(42, 145, 170, .14), transparent 34rem),
    linear-gradient(180deg, #071016 0, var(--bg) 38rem);
  color: var(--text);
  font: 15px/1.5 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 15, .86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { display: block; width: 116px; height: auto; }
.brand span { display: flex; flex-direction: column; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.brand strong { font-size: 13px; line-height: 1.35; }
.brand small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.top-actions a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #c2d0d5;
  font-size: 12px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.top-actions a:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }
.live { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.live i, .observation-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(80, 227, 172, .1);
}

main { width: min(1540px, 100%); margin: 0 auto; padding: 0 clamp(15px, 3vw, 44px) 72px; }
.hero {
  min-height: 278px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, .55fr);
  align-items: end;
  gap: 44px;
  padding: 64px 0 38px;
  border-bottom: 1px solid var(--line);
}
.eyebrow, .kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.hero h1 { margin: 0; font-size: clamp(46px, 6.7vw, 94px); font-weight: 800; letter-spacing: -.065em; line-height: .94; }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(243, 247, 248, .7); }
.lead { max-width: 850px; margin: 25px 0 0; color: #afbec5; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.65; }
.lead b { color: var(--text); font-weight: 650; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-facts span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.hero-facts b { margin-right: 4px; color: var(--cyan); }
.stamp {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(25, 47, 58, .84), rgba(11, 20, 26, .92));
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}
.stamp::after { content: ""; position: absolute; right: -35px; top: -45px; width: 120px; height: 120px; border: 1px solid rgba(110, 231, 245, .18); border-radius: 50%; }
.stamp span, .detail-top span, .live-context > div > span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.stamp strong { display: block; margin: 8px 0 6px; font-size: 22px; letter-spacing: -.02em; }
.stamp small { color: var(--cyan); font-size: 11px; }

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 20px 0 45px;
  padding: 16px 18px;
  border: 1px solid rgba(246, 223, 69, .24);
  border-radius: 13px;
  background: rgba(246, 223, 69, .055);
}
.notice div { display: flex; flex-direction: column; }
.notice strong { color: #fff5a6; font-size: 12px; }
.notice span, .notice p { margin: 0; color: #aeb5a0; font-size: 11px; }
.notice p { max-width: 420px; text-align: right; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-head > div { display: flex; align-items: center; gap: 12px; }
.section-head h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.section-head p { margin: 0; color: var(--muted); font-size: 11px; }
.section-no { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.timeline-section { margin-bottom: 28px; }
.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(172px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 12px;
  scrollbar-color: var(--line-strong) transparent;
}
.slot {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  padding: 14px 14px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(13, 21, 27, .72);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform .18s, border-color .18s, background .18s;
}
.slot:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-2); }
.slot.active { border-color: rgba(110, 231, 245, .62); background: linear-gradient(145deg, rgba(23, 50, 61, .95), rgba(12, 24, 31, .95)); box-shadow: 0 0 0 1px rgba(110, 231, 245, .1) inset; }
.slot-top { display: flex; align-items: center; justify-content: space-between; }
.slot-top b { color: #d8e2e6; font-size: 11px; text-transform: uppercase; }
.slot-top i { padding: 2px 5px; border-radius: 4px; background: var(--green); color: #04100c; font-size: 8px; font-style: normal; font-weight: 800; }
.slot > strong { display: block; margin-top: 9px; font-size: 17px; letter-spacing: -.025em; }
.slot > strong small { color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.slot > span:not(.slot-top) { display: block; color: var(--muted); font-size: 9px; }
.slot > em { display: block; margin-top: 10px; color: #cbd5d9; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .06em; }
.risk-line { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: #38444d; }
.slot[data-level="0"] .risk-line { background: var(--yellow); }
.slot[data-level="1"] .risk-line { background: var(--l1); }
.slot[data-level="2"] .risk-line { background: var(--l2); }
.slot[data-level="3"] .risk-line { background: var(--l3); }

.workspace { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(350px, .72fr); gap: 18px; align-items: start; }
.map-card, .detail-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 21, 27, .88); box-shadow: 0 28px 80px rgba(0, 0, 0, .2); }
.map-card { overflow: hidden; }
.map-head { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.map-head h2 { margin: -3px 0 0; font-size: 27px; letter-spacing: -.035em; }
.local-window { margin: 1px 0 0; color: var(--muted); font-size: 10px; }
.summary-chip { max-width: 46%; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: #cad8dd; font-size: 10px; text-align: right; }
.map-head-actions { min-width: 0; max-width: 62%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.map-head-action-row { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.map-head-action-row .summary-chip { max-width: none; }
.export-png { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; border: 1px solid rgba(110, 231, 245, .38); border-radius: 9px; background: rgba(15, 39, 48, .9); color: #e8f7fa; font: inherit; font-size: 10px; font-weight: 800; letter-spacing: .035em; white-space: nowrap; cursor: pointer; transition: border-color .18s, background .18s, opacity .18s; }
.export-png:hover:not(:disabled) { border-color: rgba(110, 231, 245, .76); background: rgba(22, 55, 65, .98); }
.export-png:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.export-png:disabled { cursor: not-allowed; opacity: .46; }
.export-png.busy svg { animation: spin .8s linear infinite; }
.export-status { min-height: 14px; color: var(--muted); font-size: 9px; text-align: right; }
.export-status.error { color: #ffaaa2; }

.map-shell { position: relative; height: clamp(520px, 61vw, 680px); min-height: 520px; background: #08131a; }
#outlookMap { position: absolute; inset: 0; }
.map-loading {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(6, 14, 19, .76);
  color: #d8e4e8;
  font-size: 11px;
  letter-spacing: .04em;
  transition: opacity .25s, visibility .25s;
}
.map-loading.hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.map-loading.error { background: rgba(25, 8, 10, .74); color: #ffb7b2; }
.map-loading i { width: 18px; height: 18px; border: 2px solid rgba(110, 231, 245, .25); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
.map-loading.error i { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.domain-chip {
  position: absolute;
  z-index: 8;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  background: rgba(5, 14, 19, .84);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.domain-chip b { color: var(--cyan); font-size: 9px; letter-spacing: .13em; }
.domain-chip span { color: var(--muted); font-size: 8px; }
.layer-control {
  position: absolute;
  z-index: 9;
  top: 62px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.layer-panel-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 11px;
  background: rgba(5, 14, 19, .9);
  color: #d6e3e7;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.layer-panel-toggle:hover { border-color: rgba(110, 231, 245, .56); background: rgba(13, 32, 40, .94); }
.layer-panel-toggle[aria-expanded="true"] { border-color: rgba(110, 231, 245, .46); color: var(--cyan); }
.layer-panel-toggle svg { display: block; pointer-events: none; }
.layer-panel {
  display: grid;
  gap: 5px;
  width: 152px;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  background: rgba(5, 14, 19, .86);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.layer-panel[hidden] { display: none; }
.layer-panel legend { float: left; width: 100%; padding: 0 3px 5px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.layer-panel label { display: grid; grid-template-columns: 20px 10px 1fr; align-items: center; gap: 7px; min-height: 27px; padding: 3px 5px; border-radius: 6px; color: #c8d5da; font-size: 10px; cursor: pointer; }
.layer-panel label:hover { background: rgba(255, 255, 255, .055); }
.layer-panel input { appearance: none; position: relative; width: 20px; height: 12px; margin: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 99px; background: #27333a; }
.layer-panel input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: #94a3aa; transition: transform .16s, background .16s; }
.layer-panel input:checked { background: rgba(80, 227, 172, .2); border-color: rgba(80, 227, 172, .62); }
.layer-panel input:checked::after { transform: translateX(8px); background: var(--green); }
.toggle-swatch { display: block; width: 9px; height: 9px; border-radius: 50%; }
.toggle-swatch.outlook { background: linear-gradient(135deg, var(--yellow) 0 30%, var(--l1) 30% 55%, var(--l2) 55% 78%, var(--l3) 78%); }
.toggle-swatch.radar { background: #52a7ff; box-shadow: 0 0 0 2px rgba(82, 167, 255, .14); }
.toggle-swatch.lightning { background: #fff; box-shadow: 0 0 7px var(--yellow); }
.toggle-swatch.cells { border: 2px solid var(--cyan); background: rgba(110, 231, 245, .15); }
.map-key {
  position: absolute;
  z-index: 8;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 13px;
  max-width: calc(100% - 145px);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(5, 14, 19, .86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
.map-key span { display: flex; align-items: center; gap: 5px; color: #c5d2d6; font-size: 9px; white-space: nowrap; }
.map-key i { display: block; width: 17px; height: 7px; border: 1px solid rgba(255, 255, 255, .44); border-radius: 2px; }
.map-key .none { background: repeating-linear-gradient(135deg, transparent 0 3px, #59666d 3px 4px); }
.map-key .l0 { background: var(--yellow); }
.map-key .l1 { background: var(--l1); }
.map-key .l2 { background: var(--l2); }
.map-key .l3 { background: var(--l3); }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 55px; padding: 12px 18px; border-top: 1px solid var(--line); background: #0b141a; }
.map-foot p { margin: 0; color: var(--muted); font-size: 10px; }
.map-foot b { color: #dce6e9; }
.observation-status { color: #c2d0d5 !important; text-align: right; }
.observation-status.ready { color: var(--green) !important; }
.observation-status.stale { color: #f0b36b !important; }
.observation-status i { width: 5px; height: 5px; margin-right: 4px; box-shadow: 0 0 0 3px currentColor; }

.maplibregl-ctrl-group { overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); border-radius: 9px; background: rgba(7, 17, 23, .88); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.maplibregl-ctrl-group button { filter: invert(1); opacity: .8; }
.maplibregl-ctrl-top-right { top: 7px; right: 7px; }
.maplibregl-ctrl-scale { border-color: rgba(255, 255, 255, .45); background: rgba(5, 14, 19, .65); color: #fff; }
.maplibregl-ctrl-attrib { background: rgba(5, 14, 19, .7) !important; color: #aab9bf; }
.maplibregl-ctrl-attrib a { color: #d8e4e7; }
.maplibregl-canvas { cursor: crosshair; }

.detail-card { position: sticky; top: 88px; padding: 22px; }
.detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.detail-top h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.035em; }
.detail-top small { color: var(--muted); font-size: 10px; }
.level-badge { min-width: 61px; padding: 9px 8px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 11px; color: #071016; font-size: 22px; text-align: center; }
.level-none { background: #66747c; color: white; }
.level-0 { background: var(--yellow); }
.level-1 { background: var(--l1); }
.level-2 { background: var(--l2); color: white; }
.level-3 { background: var(--l3); color: white; }
.data-origin { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.data-origin span { overflow: hidden; color: var(--cyan); font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.data-origin i { color: var(--muted); font-size: 8px; font-style: normal; white-space: nowrap; }
.narrative { min-height: 60px; margin: 16px 0; color: #b7c5ca; font-size: 12px; line-height: 1.65; }
.stage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stage-grid section { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.stage-grid .joint-stage { grid-column: 1 / -1; }
.stage-label { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.stage-grid h3 { margin: 4px 0 9px; font-size: 13px; }
.stage-grid p { margin: 7px 0 0; color: var(--muted); font-size: 8px; }
.stage-grid p strong { color: #e9f0f2; font-size: 11px; }
.meter { height: 5px; overflow: hidden; border-radius: 99px; background: #25333a; }
.meter i { display: block; width: 0; height: 100%; border-radius: inherit; transition: width .35s ease; }
.meter.occurrence i { background: var(--yellow); }
.meter.severity i { background: linear-gradient(90deg, var(--l1), var(--l2), var(--l3)); }
.meter.joint i { background: linear-gradient(90deg, var(--cyan), #5ee39f); }
.hazards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.hazard { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.hazard span { color: #ccd8dc; font-size: 10px; font-weight: 650; }
.hazard span small { display: block; color: var(--muted); font-size: 7px; font-weight: 500; }
.hazard b { font-size: 13px; }
.hazard > i { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 9px; background: #26343b; }
.hazard > i em { display: block; height: 100%; border-radius: inherit; background: var(--cyan); }
.hazard.hail > i em { background: #ae93ff; }
.hazard.wind > i em { background: #59dcb7; }
.hazard.rain > i em { background: #54a8ff; }
.hazard.rotation > i em { background: #ff6b79; }
.diag-title { margin: 20px 0 9px; font-size: 12px; }
.diagnostics { display: grid; grid-template-columns: 1fr 1fr; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.diagnostics div { min-width: 0; padding: 9px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diagnostics div:nth-child(even) { border-right: 0; }
.diagnostics dt { color: var(--muted); font-size: 8px; }
.diagnostics dd { overflow: hidden; margin: 2px 0 0; color: #e5edef; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.diag-note { margin: 10px 0 0; color: #778b94; font-size: 8px; line-height: 1.55; }
.live-context { margin-top: 18px; padding: 14px; border: 1px solid rgba(80, 227, 172, .22); border-radius: 12px; background: rgba(80, 227, 172, .045); }
.live-context h3 { margin: 3px 0 0; font-size: 13px; }
.live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 11px; }
.live-stats p { margin: 0; padding: 8px 6px; border-radius: 8px; background: rgba(0, 0, 0, .16); text-align: center; }
.live-stats b, .live-stats span { display: block; }
.live-stats b { color: var(--green); font-size: 14px; }
.live-stats span { color: var(--muted); font-size: 7px; }
.live-context > p { margin: 10px 0 0; color: #91a9a1; font-size: 8px; line-height: 1.5; }
.live-context > p b { color: #c9ddd6; }

.method { margin-top: 70px; padding-top: 34px; border-top: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.method-grid article { min-height: 205px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(17, 30, 38, .78), rgba(10, 18, 23, .78)); }
.method-grid article > b { color: var(--cyan); font-size: 10px; letter-spacing: .12em; }
.method-grid h3 { margin: 24px 0 10px; font-size: 17px; letter-spacing: -.025em; }
.method-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.sources { display: grid; grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr); gap: 40px; margin-top: 40px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sources h2 { margin: 8px 0 0; font-size: 20px; }
.source-copy p { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.source-copy b { color: #cbd8dc; }
.source-copy a { color: var(--cyan); text-underline-offset: 3px; }
footer { width: min(1540px, 100%); display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 24px clamp(15px, 3vw, 44px) 34px; color: #64777f; font-size: 9px; }

button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 1fr; }
  .detail-card { position: static; display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 0 22px; }
  .detail-top, .data-origin, .narrative, .stage-grid, .hazards { grid-column: 1; }
  .diag-title, .diagnostics, .diag-note, .live-context { grid-column: 2; }
  .diag-title { grid-row: 1; margin: 0 0 9px; align-self: end; }
  .diagnostics { grid-row: 2 / span 3; align-self: start; }
  .diag-note { grid-row: 5; }
  .live-context { grid-row: 6 / span 3; }
  .method-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar { height: 62px; padding: 0 14px; }
  .brand img { width: 96px; }
  .brand span { display: none; }
  .top-actions { gap: 8px; }
  .top-actions a { padding: 7px 8px; font-size: 10px; }
  .live { font-size: 8px; }
  main { padding-right: 11px; padding-left: 11px; padding-bottom: 45px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 30px; padding: 45px 3px 26px; }
  .hero h1 { font-size: clamp(47px, 17vw, 72px); }
  .lead { margin-top: 20px; font-size: 15px; }
  .hero-facts { margin-top: 18px; }
  .stamp { padding: 17px; }
  .notice { align-items: flex-start; flex-direction: column; gap: 8px; margin: 14px 0 36px; }
  .notice p { text-align: left; }
  .section-head { align-items: flex-end; }
  .section-head p { max-width: 150px; text-align: right; }
  .section-head h2 { font-size: 18px; }
  .timeline { grid-auto-columns: 162px; }
  .slot { min-height: 122px; }
  .map-head { min-height: 90px; align-items: flex-start; padding: 16px; }
  .map-head h2 { font-size: 22px; }
  .summary-chip { max-width: 48%; border: 0; padding: 2px 0; font-size: 9px; }
  .map-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .map-head-actions { max-width: none; align-items: stretch; }
  .map-head-action-row { justify-content: space-between; }
  .map-head-action-row .summary-chip { flex: 1 1 auto; max-width: none; text-align: left; }
  .export-png { flex: 0 0 auto; }
  .export-status { min-height: 0; text-align: left; }

  .map-shell { height: 52vh; height: clamp(340px, 52svh, 440px); min-height: 340px; max-height: 440px; }
  .domain-chip { top: 9px; left: 9px; }
  .layer-control { top: auto; right: 8px; bottom: 54px; }
  .layer-panel { width: 138px; }
  .map-key { right: 8px; bottom: 8px; left: 8px; max-width: none; gap: 6px 9px; padding: 8px 9px; }
  .map-key span { font-size: 8px; }
  .map-key span:first-child { display: none; }
  .map-foot { align-items: flex-start; flex-direction: column; gap: 4px; }
  .observation-status { text-align: left; }
  .detail-card { display: block; padding: 17px; }
  .diag-title { margin-top: 20px; }
  .method { margin-top: 48px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 0; }
  .method-grid h3 { margin-top: 16px; }
  .sources { grid-template-columns: 1fr; gap: 20px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .hero-facts span { font-size: 9px; }
  .map-shell { height: 48vh; height: clamp(320px, 48svh, 390px); min-height: 320px; max-height: 390px; }
  .stage-grid, .hazards { grid-template-columns: 1fr; }
  .stage-grid .joint-stage { grid-column: auto; }
  .diagnostics { grid-template-columns: 1fr; }
  .diagnostics div, .diagnostics div:nth-child(even) { border-right: 0; }
  .layer-panel { grid-template-columns: 1fr 1fr; width: 184px; }
  .layer-panel legend { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
