:root {
  color-scheme: dark;
  --bg: #061827;
  --surface: #0a2537;
  --surface-2: #102f42;
  --edge: #275063;
  --text: #f0f8fa;
  --muted: #a4bcc8;
  --quiet: #7899aa;
  --mint: #67e8d9;
  --amber: #ffc278;
  --coral: #ff8870;
  --blue: #79b7ff;
  --violet: #cfaaed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font-size: 16px; line-height: 1.5;
  background: radial-gradient(ellipse 55% 35% at 88% 1%, #10445c88, transparent 75%),
    radial-gradient(ellipse 45% 30% at -10% 35%, #0a314381, transparent 80%), var(--bg);
  min-height: 100vh;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--mint); outline-offset: 3px;
}
[hidden] { display: none !important; }
.shell { width: min(1510px, calc(100% - 72px)); margin: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; z-index: 100; top: -90px; left: 12px; background: white; color: #061827; padding: 12px 18px; }
.skip-link:focus { top: 12px; }
section[id] { scroll-margin-top: 92px; }

.site-header {
  position: sticky; top: 0; z-index: 30; background: #071c2aeb;
  border-bottom: 1px solid #31566999; backdrop-filter: blur(22px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: clamp(24px, 3vw, 58px); }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 20px; font-weight: 850; letter-spacing: -.055em; }
.brand:hover { text-decoration: none; }
.brand-accent { color: var(--mint); }
.brand-mark { position: relative; display: block; width: 35px; height: 35px; border: 2px solid var(--mint); border-radius: 50%; transform: rotate(-27deg); box-shadow: 0 0 25px #67e8d93c; }
.brand-mark span { position: absolute; top: 8px; left: 5px; right: 5px; height: 2px; background: var(--mint); border-radius: 2px; }
.brand-mark span:nth-child(2) { top: 15px; left: 3px; right: 3px; }
.brand-mark span:nth-child(3) { top: 22px; left: 8px; right: 8px; }
.main-nav { display: flex; gap: clamp(17px, 1.9vw, 33px); align-items: center; font-size: 14px; font-weight: 680; color: #b7cbd4; }
.main-nav a { position: relative; padding: 25px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--mint); transition: right .2s; }
.main-nav a:hover { color: white; text-decoration: none; }
.main-nav a:hover::after { right: 0; }
.header-status { margin-left: auto; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.header-alerts, .connection-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #335265; border-radius: 999px; padding: 7px 11px; background: #102d3e; font-size: 12px; font-weight: 720; }
.header-alerts { color: #ffe0bc; border-color: #916a4b; background: #5339276b; }
.header-alerts:hover { text-decoration: none; background: #6c4630; }
.header-alerts.clear { color: #c9f8ef; border-color: #457d77; background: #20534880; }
.header-alerts.clear .header-alert-dot { background: var(--mint); box-shadow: 0 0 0 4px #67e8d928; }
.header-alert-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px #ffbb6b22; }
.status-light { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px #ffcd7020; }
.status-light.good { background: var(--mint); box-shadow: 0 0 0 4px #67e8d928; }
.status-light.bad { background: var(--coral); box-shadow: 0 0 0 4px #ff887029; }
.connection-pill { color: #c7dde3; }
.header-time { font-size: 12px; font-variant-numeric: tabular-nums; color: #9bb7c4; border-left: 1px solid #355668; padding-left: 14px; }

.intro-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 42px 0 30px; }
.eyebrow, .micro-label { margin: 0 0 8px; color: var(--mint); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-line { display: inline-block; width: 19px; height: 2px; background: var(--mint); }
.intro-row h1 { font-size: clamp(38px, 4.2vw, 66px); line-height: 1.04; letter-spacing: -.075em; font-weight: 780; margin: 0; }
.intro-row h1 em { font-style: normal; color: var(--mint); }
.intro-description { margin: 9px 0 0; font-size: 15px; color: #a7c1cb; }
.intro-actions { display: flex; align-items: center; gap: 14px; color: #a5c0ca; font-size: 12px; text-align: right; }
.refresh-button { white-space: nowrap; padding: 10px 14px; color: #effcfa; background: #194054; border: 1px solid #397284; border-radius: 10px; font-size: 13px; font-weight: 760; box-shadow: inset 0 1px #ffffff16; }
.refresh-button:hover { background: #265568; }
.refresh-button:disabled { opacity: .55; cursor: wait; }
.refresh-button span { font-size: 19px; line-height: 0; vertical-align: -1px; margin-right: 5px; }

.alert-banner {
  --alert: var(--amber); display: flex; align-items: center; gap: 20px; min-height: 105px;
  padding: 20px 24px; border-radius: 16px; margin-bottom: 20px;
  border: 1px solid #96714c; border-left: 4px solid var(--alert);
  background: radial-gradient(circle at 85% 0%, #75512c44, transparent 42%), linear-gradient(105deg, #423520, #172f3b 65%, #112b3c);
  box-shadow: 0 10px 35px #03101c44;
}
.alert-banner.clear { --alert: var(--mint); border-color: #3d797a; border-left-color: var(--alert); background: linear-gradient(105deg, #114c53, #103348 60%, #112b3c); }
.alert-banner.error { --alert: var(--coral); border-color: #83575b; border-left-color: var(--alert); background: linear-gradient(105deg, #573a37, #172e3e 68%); }
.alert-banner.loading { border-color: #3d6676; background: #153648; }
.alert-symbol { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 15px; color: var(--alert); background: #ffc27822; border: 1px solid #ffc27842; box-shadow: inset 0 1px #ffffff20; }
.alert-banner.clear .alert-symbol { background: #67e8d91e; border-color: #67e8d942; }
.alert-banner.error .alert-symbol { background: #ff88701f; border-color: #ff88703f; }
.alert-banner-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alert-banner-copy .micro-label { color: var(--alert); margin: 0 0 2px; }
.alert-banner-copy strong { font-size: 20px; line-height: 1.25; letter-spacing: -.03em; }
.alert-banner-copy > span:last-child { color: #c7d3d1; font-size: 13px; }
.alert-banner-link { margin-left: auto; border: 1px solid #ac8b617f; padding: 11px 14px; border-radius: 9px; white-space: nowrap; font-size: 13px; font-weight: 740; }
.alert-banner-link:hover { text-decoration: none; background: #ffffff13; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, .85fr); gap: 20px; }
.panel { overflow: hidden; background: linear-gradient(160deg, #0f2d40 0%, #0a2435 100%); border: 1px solid var(--edge); border-radius: 17px; box-shadow: 0 16px 40px #02131f33, inset 0 1px #ffffff08; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 23px 24px 20px; }
.panel-heading h2 { margin: 0; font-weight: 760; font-size: 23px; line-height: 1.15; letter-spacing: -.045em; }
.panel-heading .micro-label { color: #78b9c5; margin-bottom: 5px; }
.heading-annotation { font-size: 14px; font-weight: 560; color: #91afbb; letter-spacing: 0; }
.segmented { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; background: #071e2f; border: 1px solid #2a5061; }
.segmented button { border: 0; background: none; color: #9eb9c6; border-radius: 7px; padding: 8px 12px; white-space: nowrap; font-size: 12px; font-weight: 720; transition: background .15s, color .15s; }
.segmented button.selected { color: #06202b; background: var(--mint); box-shadow: 0 2px 9px #0415226e; }
.segmented button:hover:not(.selected) { color: white; background: #20475a; }
.segmented.small button { padding: 7px 10px; }

.map-surface { position: relative; height: 490px; margin: 0 13px; overflow: hidden; isolation: isolate; border-radius: 11px; background: #103946; cursor: grab; touch-action: none; border: 1px solid #397081; }
.map-surface.dragging { cursor: grabbing; }
.map-surface::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #07233435, transparent 55%), linear-gradient(180deg, #0b2a3633, transparent 42%); }
.map-tiles, .map-markers { position: absolute; inset: 0; }
.map-tiles { filter: grayscale(.38) saturate(.9) brightness(.64) contrast(1.06); }
.map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; pointer-events: none; }
.map-markers { z-index: 2; pointer-events: none; }
.map-topline { position: absolute; z-index: 5; top: 17px; left: 17px; display: flex; gap: 8px; align-items: center; border-radius: 7px; color: #c9ebe9; background: #082939de; border: 1px solid #477780; font-size: 10px; font-weight: 850; letter-spacing: .12em; padding: 8px 10px; pointer-events: none; }
.map-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px #67e8d921; }
.map-topline.uncertain .map-live-dot { background: var(--coral); box-shadow: 0 0 0 4px #ff887029; }
.map-marker { position: absolute; z-index: 2; transform: translate(-50%, -50%); padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px #ff88702d, 0 4px 16px #030f19b5; pointer-events: auto; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.map-marker:hover, .map-marker:focus-visible { z-index: 4; transform: translate(-50%, -50%) scale(1.45); box-shadow: 0 0 0 7px #ff88704a, 0 4px 20px #030f19d9; }
.map-marker.strong { background: #ffb575; box-shadow: 0 0 0 7px #ffb5755c, 0 5px 15px #071522bd; }
.map-marker.volcano { border-radius: 4px; background: #bd9fe7; transform: translate(-50%, -50%) rotate(45deg); width: 15px !important; height: 15px !important; box-shadow: 0 0 0 5px #bd9fe73a, 0 4px 15px #030f19; }
.map-marker.volcano.active { background: var(--amber); box-shadow: 0 0 0 7px #ffc27846, 0 4px 15px #030f19; }
.map-marker.volcano:hover { transform: translate(-50%, -50%) rotate(45deg) scale(1.4); }
.alert-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.alert-overlay path { pointer-events: auto; cursor: pointer; stroke: #ffc078; stroke-width: 2; fill: #ffb96b53; }
.map-controls { position: absolute; z-index: 5; top: 15px; right: 15px; display: grid; gap: 1px; background: #082a3deb; border: 1px solid #5d8490; border-radius: 10px; overflow: hidden; }
.map-controls button { width: 37px; height: 37px; border: 0; background: none; color: white; font-size: 21px; line-height: 1; }
.map-controls button + button { border-top: 1px solid #456371; }
.map-controls button:hover { background: #2e5a6a; }
.map-key { position: absolute; z-index: 5; bottom: 15px; left: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 15px; background: #071e30ed; border: 1px solid #4a6d7d; border-radius: 9px; padding: 9px 12px; box-shadow: 0 5px 18px #010f1bad; color: white; font-size: 12px; font-weight: 720; }
.key-scale { display: flex; align-items: center; gap: 5px; color: #b5cdd4; font-size: 11px; border-left: 1px solid #496677; padding-left: 14px; }
.key-scale i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.key-scale i:nth-child(2) { width: 8px; height: 8px; }
.key-scale i:nth-child(3) { width: 12px; height: 12px; margin-right: 4px; background: #ffbf7d; }
.map-attribution { position: absolute; z-index: 6; right: 4px; bottom: 4px; color: #122c39; background: #ffffffc7; padding: 1px 4px; font: 10px Arial, sans-serif; }
.map-popup { position: absolute; z-index: 7; min-width: 185px; max-width: 240px; padding: 13px 15px; background: #082536f5; color: white; border: 1px solid #7ab5bc; border-radius: 10px; box-shadow: 0 16px 36px #020d17c7; pointer-events: none; font-size: 13px; }
.map-popup strong { display: block; font-size: 15px; }
.map-popup span { display: block; color: #b6cfd4; margin-top: 5px; }
.map-footer { padding: 13px 24px 16px; display: flex; justify-content: space-between; gap: 8px; color: #8eacb9; font-size: 12px; }
.map-footer strong { color: var(--mint); font-weight: 740; }

.weather-panel { display: flex; flex-direction: column; background: radial-gradient(circle at 95% 25%, #24566e70, transparent 48%), linear-gradient(155deg, #12344a, #0a2537 80%); }
.weather-tag { color: #83e4d7; border: 1px solid #3c7a80; border-radius: 6px; padding: 5px 8px; font-size: 10px; font-weight: 780; letter-spacing: .06em; white-space: nowrap; }
.station-control { margin: 2px 24px 0; }
.select-label { display: block; margin-bottom: 7px; color: #88b5c1; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.weather-panel select { width: 100%; padding: 11px 13px; border: 1px solid #487187; border-radius: 9px; color: #f3fafc; background: #103248; font-size: 15px; font-weight: 710; }
.weather-visual { display: grid; grid-template-columns: 1fr; place-items: center; position: relative; height: 173px; margin: 8px 24px 0; }
.weather-orbit { position: absolute; width: 175px; height: 175px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.weather-orbit svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.orbit-track, .orbit-progress { fill: none; stroke-width: 2; }
.orbit-track { stroke: #4e7b8957; }
.orbit-progress { stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 553; transition: stroke-dasharray .7s; filter: drop-shadow(0 0 4px #5cebdab0); }
.orbit-sun { position: absolute; top: 2px; right: 3px; color: var(--amber); font-size: 25px; line-height: 1; }
.weather-reading { position: relative; z-index: 1; text-align: center; }
.temp { font-size: clamp(56px, 5vw, 80px); letter-spacing: -.09em; line-height: .97; font-weight: 760; font-variant-numeric: tabular-nums; }
.temp span { font-size: .48em; vertical-align: top; letter-spacing: 0; margin-left: 3px; color: var(--mint); }
.weather-description { display: block; color: #c7dce2; font-size: 13px; margin-top: 4px; }
.weather-humidity-label { display: block; margin-top: 4px; font-size: 11px; color: #84c8c7; }
.weather-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 1px 24px 15px; padding: 13px 7px; border: 1px solid #31566b; border-radius: 10px; background: #071e30a8; }
.weather-facts div { display: flex; flex-direction: column; gap: 3px; padding: 0 9px; }
.weather-facts div + div { border-left: 1px solid #36566b; }
.weather-facts span { color: #9cb8c5; font-size: 11px; white-space: nowrap; }
.weather-facts strong { font-size: 15px; white-space: nowrap; }
.trend-card { margin: 0 24px; padding: 13px 15px 10px; border-radius: 10px; border: 1px solid #315b6f; background: linear-gradient(145deg, #13394b, #0b2a3e); min-height: 129px; }
.trend-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.trend-heading .micro-label { display: block; color: #79b5c0; font-size: 9px; margin-bottom: 2px; }
.trend-heading strong { font-size: 14px; font-weight: 760; }
.trend-heading > span { font-size: 14px; font-weight: 820; }
.trend-up { color: var(--amber); }.trend-down { color: var(--mint); }
.weather-trend { height: 70px; display: grid; place-items: center; }
.weather-trend svg { display: block; width: 100%; height: 70px; overflow: visible; }
.trend-grid { stroke: #416778; stroke-width: .7; stroke-dasharray: 2 5; }
.trend-area { fill: #5de4d21f; }
.trend-line { fill: none; stroke: var(--mint); stroke-width: 2.7; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.trend-dot { fill: #a1fff0; stroke: #113749; stroke-width: 2; }
.trend-empty { color: #9eb9c5; font-size: 12px; }
.trend-axis { display: flex; justify-content: space-between; font-size: 10px; color: #91b2bf; }
.trend-source { margin-top: 5px; color: #8baeb9; font-size: 10px; }
.weather-bottom { margin-top: auto; padding: 12px 24px 17px; display: flex; justify-content: space-between; align-items: end; gap: 10px; color: #8ba8b7; font-size: 11px; }
.weather-bottom > span { max-width: 67%; }
.weather-bottom a { color: var(--mint); font-weight: 750; white-space: nowrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0 28px; }
.stat-card { position: relative; display: flex; flex-direction: column; min-height: 137px; padding: 19px 20px 16px; background: linear-gradient(135deg, #112f42, #0d2a3b); border: 1px solid #31536a; border-radius: 13px; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--amber); }
.stat-card:nth-child(2)::before { background: var(--blue); }.stat-card:nth-child(3)::before { background: var(--mint); }.stat-card:nth-child(4)::before { background: var(--violet); }
.stat-card > span { color: #b7cbd5; font-size: 13px; font-weight: 680; }
.stat-card strong { font-size: 36px; line-height: 1.2; letter-spacing: -.065em; margin: 4px 0 1px; font-variant-numeric: tabular-nums; }
.stat-card small { color: #8caaba; font-size: 11px; }
.stat-icon { position: absolute; top: 14px; right: 17px; font-size: 24px; line-height: 1; }
.stat-icon.orange { color: var(--amber); }.stat-icon.blue { color: var(--blue); }.stat-icon.cyan { color: var(--mint); }.stat-icon.pink { color: var(--violet); }
.stat-mini { position: absolute; right: 18px; bottom: 21px; display: flex; align-items: end; gap: 3px; width: 76px; height: 25px; opacity: .75; }
.stat-mini span { flex: 1; min-height: 2px; background: #6fbaef; border-radius: 2px 2px 0 0; }

.swarm-section { margin: 0 0 20px; background: radial-gradient(circle at 90% 0%, #2b5c6138, transparent 42%), linear-gradient(130deg, #123649, #0b2839); }
.swarm-section .panel-heading { padding-bottom: 12px; }
.clear-swarm { border: 1px solid #5da2a3; background: #184c57; color: #dbfffa; padding: 8px 11px; border-radius: 8px; font-size: 12px; font-weight: 720; }
.clear-swarm:hover { background: #296677; }
.swarm-results { padding: 0 23px 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.swarm-results > .empty { grid-column: 1 / -1; margin: 2px 0; }
.swarm-card { position: relative; display: flex; flex-direction: column; align-items: stretch; min-height: 158px; gap: 8px; text-align: left; color: var(--text); background: #0d2c3e; border: 1px solid #3e6877; border-radius: 12px; padding: 16px; }
.swarm-card:hover, .swarm-card:focus-visible { border-color: #7cdbd0; background: #174357; }
.swarm-card.selected { border-color: var(--mint); background: #1b4d58; box-shadow: inset 0 0 0 1px #67e8d957; }
.swarm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #9ddbd4; font-size: 10px; font-weight: 820; letter-spacing: .08em; }
.swarm-card-top span:last-child { color: #adc9ce; letter-spacing: 0; }
.swarm-card-main { display: flex; align-items: baseline; gap: 8px; }
.swarm-card-main strong { font-size: 37px; letter-spacing: -.065em; line-height: 1; }
.swarm-card-main span { color: #c9dce0; font-size: 13px; }
.swarm-card-place { font-size: 14px; font-weight: 740; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swarm-card-facts { margin-top: auto; color: #a9c5ce; font-size: 11px; }
.swarm-method { color: #a0bdc7; font-size: 11px; line-height: 1.55; margin: 0; padding: 0 23px 18px; }
.swarm-method strong { color: #d3efec; }

.quake-dialog { width: min(590px, calc(100% - 26px)); max-height: calc(100vh - 30px); padding: 0; color: var(--text); background: #0c293a; border: 1px solid #60939b; border-radius: 16px; box-shadow: 0 26px 90px #010d18e6; overflow: auto; }
.quake-dialog::backdrop { background: #020f1bc9; backdrop-filter: blur(6px); }
.quake-dialog-header { padding: 21px 24px 17px; display: flex; align-items: start; justify-content: space-between; gap: 12px; border-bottom: 1px solid #345e70; }
.quake-dialog-header h2 { margin: 0; font-size: 23px; line-height: 1.2; }
.quake-dialog-header .micro-label { color: #82c3c5; font-size: 9px; }
.quake-dialog-header button { width: 34px; height: 34px; flex: none; font-size: 24px; line-height: 1; border: 1px solid #4d7786; border-radius: 8px; color: white; background: #153d50; }
.quake-dialog-body { padding: 20px 24px 12px; }
.quake-detail-lead { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.quake-detail-mag { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 15px; background: #276278; border: 1px solid #5c9daf; font-size: 30px; font-weight: 820; }
.quake-detail-mag.large { background: #794d38; border-color: #b97852; }
.quake-detail-lead strong { display: block; font-size: 19px; line-height: 1.25; }
.quake-detail-lead span { display: block; color: #acc7d0; font-size: 12px; margin-top: 3px; }
.quake-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.quake-facts div { background: #12374a; border: 1px solid #315d6d; border-radius: 8px; padding: 10px 12px; min-width: 0; }
.quake-facts dt { color: #90b9c3; font-size: 10px; margin: 0 0 3px; }
.quake-facts dd { margin: 0; font-size: 14px; font-weight: 720; overflow-wrap: anywhere; }
.quake-extra-title { color: #a5d9d3; text-transform: uppercase; letter-spacing: .09em; font-size: 11px; font-weight: 780; margin: 19px 0 8px; }
.quake-detail-note { color: #a9c3cc; font-size: 11px; line-height: 1.55; margin: 14px 0 2px; }
.quake-detail-status { color: #a3c1c9; font-size: 11px; margin: 12px 0 0; }
.quake-dialog-actions { padding: 14px 24px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid #345e70; }
.quake-dialog-actions button, .quake-dialog-actions a { display: inline-flex; align-items: center; border-radius: 8px; padding: 9px 12px; font-size: 12px; font-weight: 750; }
.quake-dialog-actions button { border: 1px solid #5da9a4; background: #22636a; color: white; }
.quake-dialog-actions button:hover { background: #31818a; }
.quake-dialog-actions a { border: 1px solid #436b7b; color: var(--mint); }
.quake-dialog-actions a:hover { background: #1b4857; text-decoration: none; }

.content-grid { display: grid; grid-template-columns: minmax(310px, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.content-grid .panel { min-height: 560px; }
.count-pill { background: #285467; color: #dff8f6; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 760; }
.alert-filters { display: flex; gap: 7px; padding: 0 23px 15px; }
.alert-filters button { border-radius: 7px; border: 1px solid #365e6e; padding: 6px 11px; background: transparent; color: #a4bdc8; font-size: 12px; font-weight: 730; }
.alert-filters button.selected { background: #235a65; border-color: #46989b; color: #dbfffa; }
.alert-filters button:hover:not(.selected) { background: #1e4255; }
.warning-list { max-height: 670px; overflow: auto; padding: 0 23px 23px; }
.warning-card { border-top: 1px solid #2d5363; padding: 17px 0; }
.warning-card:first-child { border-top: 0; }
.warning-card-header { display: flex; align-items: start; gap: 11px; }
.severity-indicator { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; background: var(--amber); box-shadow: 0 0 0 5px #ffc27820; }
.severity-indicator.extreme, .severity-indicator.severe { background: var(--coral); box-shadow: 0 0 0 5px #ff887020; }
.severity-indicator.minor { background: #eed074; }
.warning-card h3 { font-size: 17px; line-height: 1.33; margin: 0; font-weight: 760; }
.warning-card p { margin: 10px 0 0 21px; color: #b3cbd4; font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.warning-card.expanded p { display: block; }
.warning-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 11px 0 0 21px; color: #91aebb; font-size: 11px; }
.region-chip, .severity-chip { padding: 4px 7px; border-radius: 5px; background: #204658; color: #c9e0e6; font-weight: 680; }
.severity-chip { background: #615039; color: #ffe6bd; }
.severity-severe .severity-chip, .severity-extreme .severity-chip { background: #663d40; color: #ffd2ce; }
.warning-card button { margin-left: 21px; padding: 9px 0 0; border: 0; background: none; color: var(--mint); font-size: 12px; font-weight: 780; }
.warning-card button:hover { text-decoration: underline; }
.source-line { padding: 0 23px 20px; color: #819fac; font-size: 11px; }
.empty { margin: 8px 0 12px; padding: 23px; border: 1px dashed #4a7180; border-radius: 9px; color: #bbd0d8; font-size: 14px; }
.empty.ok { background: #194450; border-color: #43877e; }
.empty.problem { background: #44313d; border-color: #93676b; }

.quake-section { padding-bottom: 15px; }
.quake-section .panel-heading { padding-bottom: 12px; }
.chart-header { padding: 7px 23px 0; display: flex; justify-content: space-between; color: #adcad2; font-size: 12px; }
.chart-header span:last-child { color: var(--mint); font-weight: 740; }
.quake-chart { height: 145px; margin: 0 23px; padding: 22px 2px 0; display: flex; align-items: end; gap: 4px; background: repeating-linear-gradient(to top, #33586b5c 0, #33586b5c 1px, transparent 1px, transparent 36px); border-bottom: 1px solid #457184; }
.chart-bar { flex: 1; min-width: 2px; position: relative; background: linear-gradient(0deg, #3997ac, #83e1d8); border-radius: 3px 3px 0 0; box-shadow: 0 0 12px #4adacc20; }
.chart-bar.zero { height: 2px !important; background: #466878; box-shadow: none; }
.chart-bar:hover { filter: brightness(1.35); }
.chart-axis { display: flex; justify-content: space-between; margin: 5px 23px 12px; color: #8ca9b6; font-size: 10px; }
.quake-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 23px 10px; }
.quake-list-heading strong { font-size: 15px; }
.quake-list-heading label { display: inline-flex; gap: 7px; align-items: center; color: #bdd0d8; font-size: 12px; white-space: nowrap; }
.quake-list-heading input { accent-color: var(--mint); }
.quake-list { max-height: 440px; overflow: auto; margin: 0 23px; }
.quake-row { display: grid; grid-template-columns: 49px minmax(0, 1fr) auto; align-items: center; gap: 13px; width: 100%; padding: 11px 3px; border: 0; border-top: 1px solid #2c5263; background: none; color: inherit; text-align: left; }
.quake-row:hover { background: #ffffff0c; }
.quake-size { display: grid; place-items: center; width: 45px; height: 39px; border-radius: 9px; background: #245b70; color: #d9fff9; font-weight: 810; font-size: 15px; font-variant-numeric: tabular-nums; }
.quake-size.large { background: #795240; color: #ffe8c9; }
.quake-row-main { display: flex; flex-direction: column; min-width: 0; }
.quake-row-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 720; }
.quake-row-main small, .quake-row-time { color: #91afbc; font-size: 11px; }
.quake-pagination { margin: 4px 23px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #93b3bf; font-size: 11px; }
.quake-pagination button { color: var(--mint); background: #174352; border: 1px solid #367481; border-radius: 7px; padding: 7px 10px; font-size: 11px; font-weight: 750; }
.quake-pagination button:hover { background: #245a69; }
.quake-limit-note { margin: 11px 23px 0; color: var(--amber); font-size: 11px; }
.section-source { display: block; margin: 14px 23px 0; color: var(--mint); font-size: 12px; font-weight: 710; }

.volcano-section { margin: 20px 0 34px; }
.volcano-section .panel-heading { padding-bottom: 8px; }
.search-wrap input { background: #0b293b; color: white; border: 1px solid #42697b; border-radius: 9px; padding: 10px 12px; min-width: 220px; font-size: 13px; }
.search-wrap input::placeholder { color: #9bb5c1; }
.section-note { margin: 0 24px 18px; color: #acc5cf; font-size: 13px; }
.volcano-list { max-height: 560px; overflow: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 23px 24px; }
.volcano-item { display: flex; flex-direction: column; gap: 13px; align-items: stretch; min-height: 184px; padding: 16px; color: inherit; text-align: left; border: 1px solid #2e5466; border-radius: 11px; background: linear-gradient(145deg, #0d2a3d, #0b2536); transition: border-color .18s, background .18s, transform .18s; }
.volcano-item:hover:not(:disabled) { border-color: #78c9c6; background: #123a4b; transform: translateY(-2px); }
.volcano-item.elevated { border-color: #966e51; background: linear-gradient(145deg, #28363d, #0d2939); }
.volcano-item:disabled { cursor: default; opacity: .74; }
.volcano-item-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.volcano-item-head > span:first-child { display: flex; flex-direction: column; }
.volcano-item-head strong { font-size: 17px; letter-spacing: -.02em; }
.volcano-item-head small { color: #9bb6c2; font-size: 11px; margin-top: 1px; }
.volcano-code { color: #79a9b5; font-weight: 800; font-size: 11px; letter-spacing: .08em; border: 1px solid #426475; border-radius: 5px; padding: 3px 6px; }
.volcano-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 9px; border-top: 1px solid #345669; }
.volcano-status-label { color: #c7dde1; font-size: 12px; font-weight: 680; }
.volcano-level-track { display: flex; gap: 3px; flex: none; }
.volcano-level-track i { display: block; width: 8px; height: 16px; border-radius: 2px; background: #456171; }
.volcano-level-track i.filled { background: var(--amber); }
.volcano-item:not(.elevated) .volcano-level-track i.filled { background: var(--mint); }
.volcano-badges { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.v-badge { padding: 5px 7px; border-radius: 5px; background: #315c6a; color: #d7f4ef; font-size: 10px; font-weight: 780; }
.v-badge.orange, .v-badge.red { background: #89513e; color: #ffe4be; }
.v-badge.yellow { background: #6d653f; color: #ffe8aa; }
.volcano-description { color: #a8c2cb; font-size: 11px; }
.volcano-published { margin-top: auto; color: #88aaba; font-size: 10px; }

.site-footer { background: #071c2a; border-top: 1px solid #285064; padding: 30px 0 36px; }
.mobile-nav { display: none; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 30px; color: #9bb6c2; font-size: 12px; }
.footer-inner strong { color: var(--mint); font-size: 15px; letter-spacing: .1em; }
.footer-inner p { margin: 6px 0 0; max-width: 820px; }
.footer-inner a { color: #c7e5e5; text-decoration: underline; text-underline-offset: 3px; }
.footer-inner > a { white-space: nowrap; }
@media (max-width: 1190px) {
  .shell { width: calc(100% - 42px); }
  .header-inner { gap: 25px; }
  .main-nav { gap: 16px; }
  .header-time { display: none; }
  .overview-grid { grid-template-columns: minmax(0, 1.5fr) minmax(320px, .85fr); }
  .volcano-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  body { padding-bottom: 83px; }
  .mobile-nav { position: fixed; z-index: 35; bottom: max(10px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 22px)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px; border-radius: 15px; border: 1px solid #397080; background: #092739f5; box-shadow: 0 12px 38px #020f19d9; backdrop-filter: blur(20px); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; gap: 2px; border-radius: 10px; color: #c2d9de; font-size: 10px; font-weight: 770; }
  .mobile-nav a span { color: var(--mint); font-size: 18px; line-height: 1; }
  .mobile-nav a:hover, .mobile-nav a:focus-visible { color: white; text-decoration: none; background: #1b485a; }
  .shell { width: min(100% - 32px, 760px); }
  .header-inner { min-height: 65px; }
  .main-nav { display: none; }
  .intro-row { padding: 31px 0 24px; }
  .overview-grid, .content-grid { grid-template-columns: 1fr; }
  .map-surface { height: 445px; }
  .weather-panel { min-height: 0; }
  .weather-visual { height: 175px; }
  .weather-bottom > span { max-width: 76%; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swarm-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid .panel { min-height: 0; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 24px); }
  .header-inner { gap: 8px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; }
  .connection-pill { display: none; }
  .header-alerts { font-size: 11px; padding: 6px 8px; }
  .intro-row { align-items: start; gap: 12px; }
  .intro-row h1 { font-size: 39px; }
  .intro-description { font-size: 13px; max-width: 300px; }
  .intro-actions { flex-direction: column; align-items: end; gap: 7px; max-width: 115px; font-size: 10px; }
  .refresh-button { padding: 7px 9px; }
  .alert-banner { padding: 15px; gap: 12px; align-items: start; min-height: 0; }
  .alert-symbol { width: 38px; height: 38px; border-radius: 9px; }
  .alert-symbol svg { width: 19px; height: 19px; }
  .alert-banner-copy strong { font-size: 17px; }
  .alert-banner-link { display: none; }
  .panel-heading { padding: 19px 16px 16px; }
  .panel-heading h2 { font-size: 20px; }
  .map-heading { align-items: start; flex-direction: column; gap: 12px; }
  .segmented button { padding: 7px 10px; font-size: 11px; }
  .map-surface { height: 365px; margin: 0 8px; }
  .map-key { bottom: 12px; left: 10px; padding: 8px; font-size: 10px; }
  .key-scale { display: none; }
  .map-footer { padding: 10px 15px 13px; font-size: 11px; }
  .weather-tag { font-size: 9px; }
  .station-control, .trend-card { margin-left: 16px; margin-right: 16px; }
  .weather-facts { margin-left: 16px; margin-right: 16px; }
  .weather-bottom { padding-left: 16px; padding-right: 16px; }
  .stat-grid { gap: 9px; margin: 12px 0 20px; }
  .stat-card { padding: 13px; min-height: 120px; }
  .stat-card strong { font-size: 31px; }
  .stat-icon { right: 11px; top: 10px; }
  .stat-mini { display: none; }
  .swarm-results { grid-template-columns: 1fr; padding: 0 16px 14px; }
  .swarm-section .panel-heading { align-items: start; flex-wrap: wrap; }
  .clear-swarm { max-width: 120px; }
  .swarm-card { min-height: 130px; }
  .swarm-method { padding: 0 16px 16px; }
  .quake-dialog-header, .quake-dialog-body, .quake-dialog-actions { padding-left: 16px; padding-right: 16px; }
  .quake-facts { gap: 6px; }
  .alert-filters { padding: 0 16px 12px; }
  .warning-list { padding: 0 16px 16px; }
  .quake-section .panel-heading { align-items: start; flex-direction: column; }
  .quake-chart, .chart-axis, .quake-list { margin-left: 16px; margin-right: 16px; }
  .quake-pagination, .quake-limit-note { margin-left: 16px; margin-right: 16px; }
  .chart-header, .quake-list-heading { padding-left: 16px; padding-right: 16px; }
  .quake-row { grid-template-columns: 44px minmax(0,1fr) auto; gap: 8px; }
  .volcano-section .panel-heading { flex-direction: column; align-items: stretch; }
  .search-wrap input { width: 100%; }
  .section-note { margin: 3px 16px 16px; }
  .volcano-list { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .volcano-item { min-height: 0; }
  .source-line { padding-left: 16px; padding-right: 16px; }
  .footer-inner { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map-marker, .orbit-progress, .volcano-item, .main-nav a::after { transition: none; }
}
