@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('vendor/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('vendor/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('vendor/ibm-plex-mono-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('vendor/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-2199, U+2212, U+2215;
}

:root {
  color-scheme: dark;
  --night: #07132d;
  --surface: #0b1c3d;
  --deep-blue: #07173f;
  --line: #2a4072;
  --muted: #b0bedb;
  --text: #f5f8ff;
  --yellow: #eafe07;
  --sky: #8bc6ff;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  font-family: Inter, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--text); font-size: 14px; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { opacity: .45; cursor: default; }
button:focus-visible, select:focus-visible, a:focus-visible, #map:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
p, h1, h2, figure { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.topbar { border-bottom: 1px solid #21365c; background: #07132d; }
.topbar-inner, .workspace { width: min(100% - 64px, 1760px); margin-inline: auto; }
.topbar-inner { min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.wordmark { justify-self: start; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 17px; font-weight: 650; }
.wordmark strong { color: var(--yellow); font-weight: 750; }
.site-nav { display: flex; align-items: center; gap: 30px; color: #c7d5ef; font-size: 13px; }
.site-nav a { padding-block: 10px; text-decoration: none; }
.site-nav a:hover, .event:hover { color: var(--yellow); }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #36517d; border-radius: 4px; padding: 8px 12px; background: transparent; font-size: 12px; font-weight: 600; }
.topbar .quiet-button { justify-self: end; }
.quiet-button:hover { background: #173364; border-color: var(--sky); }
.info-icon { border: 1px solid var(--sky); color: var(--sky); border-radius: 50%; display: inline-grid; place-items: center; width: 15px; height: 15px; font-family: var(--mono); font-size: 10px; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .42fr); align-items: center; gap: 32px; padding: 14px 0 11px; }
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 calc((min(100vw - 64px, 1760px) - 100vw) / 2);
  background: radial-gradient(ellipse at 83% 28%, #173976 0%, #102552 33%, #07132d 72%);
}
.hero-copy { padding-block: 4px 8px; }
.event { display: inline-flex; align-items: center; gap: 9px; color: var(--sky); text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.event span { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 13px #eafe0755; }
h1 { font-size: clamp(29px, 3.55vw, 62px); line-height: 1.02; letter-spacing: -.06em; font-weight: 780; margin-top: 9px; }
h1 em { color: var(--yellow); font-style: normal; white-space: nowrap; }
.hero-photo { min-width: 0; }
.hero-frame { height: clamp(55px, 7vw, 100px); background: #02040b; border: 1px solid #5274a8; border-radius: 50px 5px 5px 5px; overflow: hidden; }
.hero-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-photo figcaption { color: #c0d1ef; text-align: right; font-family: var(--mono); font-size: 10px; margin-top: 7px; }
.app-status { color: var(--muted); margin-block: 0 14px; }

.atlas-layout { --map-height: clamp(540px, 67vh, 860px); display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 12px; align-items: start; }
.atlas-stage { min-width: 0; }
.analysis-row { display: grid; grid-template-columns: minmax(265px, .36fr) minmax(0, 1fr); gap: 24px; margin-top: 25px; }
.panel { min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 59px; }
.panel-heading h2 { font-size: clamp(18px, 2vw, 25px); line-height: 1.1; font-weight: 680; letter-spacing: -.04em; }
.panel-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.map-heading, .calendar-heading { margin-bottom: 9px; }
.map-filters { display: flex; align-items: stretch; gap: 8px; }
.map-filters .mobile-layer-link { display: none; }
.source-field { display: flex; }
.source-field select, .period-control { border: 1px solid var(--line); border-radius: 4px; background: #102447; }
.source-field select { min-width: 151px; padding: 8px 7px 8px 9px; font-size: 12px; font-weight: 580; }
.period-control { display: flex; align-items: stretch; min-height: 36px; }
.period-control button { border: 0; background: transparent; width: 31px; font-size: 22px; line-height: 1; }
.period-control button:hover:not(:disabled), .period-control select:hover, .source-field select:hover { background: #204582; }
.period-control select { background: #102447; border: 0; border-inline: 1px solid var(--line); padding: 4px 6px; min-width: 116px; font-size: 12px; font-weight: 580; text-transform: capitalize; }
.map-body { position: relative; border: 1px solid #425e8b; background: #142647; border-radius: 6px; overflow: hidden; }
#map { width: 100%; height: var(--map-height); z-index: 0; background: #122747; font-family: inherit; }
#map .satellite-image { filter: brightness(.74) saturate(.73); }
.map-tools { position: absolute; top: 13px; right: 13px; z-index: 500; display: grid; gap: 5px; }
.map-tools button { display: grid; place-items: center; border: 1px solid #62799f; border-radius: 4px; width: 35px; height: 35px; background: #07173fee; font-size: 20px; }
.map-tools button:hover { background: #1b4384; }
.view-switch { background: #07173fe8; border: 1px solid #425c89; border-radius: 4px; display: flex; padding: 3px; gap: 2px; }
.view-switch button { border: 0; border-radius: 2px; padding: 6px 9px; background: transparent; color: #c2d2ef; font-weight: 570; font-size: 12px; white-space: nowrap; }
.view-switch button[aria-pressed='true'] { background: var(--yellow); color: var(--deep-blue); font-weight: 700; }
.view-switch button:hover:not(:disabled):not([aria-pressed='true']) { background: #23447b; color: white; }
.map-switch { position: absolute; z-index: 500; top: 13px; left: 13px; }
.map-legend { position: absolute; bottom: 15px; left: 13px; z-index: 500; display: grid; grid-template-columns: auto auto auto; gap: 6px 10px; background: #07173fe8; padding: 8px 10px; border: 1px solid #62799f; border-radius: 4px; font: 10px var(--mono); color: #e3ecff; }
.map-legend strong { grid-column: 1 / -1; font: 600 11px Inter, system-ui, sans-serif; }
.map-legend.day-map-legend { grid-template-columns: auto; }
.map-legend span, .map-caption span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 8px; height: 8px; border-radius: 1px; }
.map-level-1 { background: #ff9c57; }
.map-level-2 { background: #ffc064; }
.map-level-3 { background: var(--yellow); }
.map-message { position: absolute; z-index: 550; left: 50%; top: 64px; transform: translateX(-50%); background: #07173ff5; border: 1px solid #62799f; border-radius: 4px; padding: 7px 10px; font-size: 12px; text-align: center; }
.map-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 14px; padding: 8px 1px 0; font-size: 11px; color: var(--muted); }
.map-caption i { width: 16px; border-top: 2px dashed #c4e0fb; }
.timeline { margin-top: 12px; padding: 13px 0 0; border-top: 1px solid var(--line); }
.timeline-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.timeline h3 { font-size: 14px; font-weight: 670; margin: 0 0 4px; }
.timeline-heading p { display: flex; align-items: baseline; gap: 6px; color: var(--sky); }
#frame-date { font: 13px var(--mono); }
.utc-label { color: var(--muted); font: 9px var(--mono); }
#world-view { position: absolute; z-index: 500; top: 13px; left: 152px; min-height: 34px; background: #07173fee; }
#world-view:hover, #world-view[aria-pressed='true'] { border-color: var(--sky); color: var(--sky); }
.atlas-expanded { overflow: hidden; }
.expanded-map { position: fixed; z-index: 1100; inset: 0; overflow-y: auto; background: var(--night); padding: 8px 18px 16px; }
.expanded-map .atlas-layout { --map-height: max(340px, calc(100dvh - 206px)); }
.timeline-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 11px; }
.play-button { background: var(--yellow); color: var(--deep-blue); border: 0; border-radius: 4px; min-width: 143px; min-height: 34px; padding-inline: 9px; font-size: 12px; font-weight: 700; text-align: left; }
.play-button:hover:not(:disabled) { background: #f4ff67; }
.day-slider { display: flex; padding-block: 8px; }
.day-slider input { accent-color: var(--yellow); width: 100%; margin: 0; cursor: pointer; }
.day-slider input:focus-visible, .map-layer-controls input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.timeline-notes { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 9px 0 6px; color: var(--muted); font-size: 10px; }
.peak-day { border: 0; padding: 0; color: var(--sky); background: none; font-size: 11px; text-align: left; }
.peak-day:hover { text-decoration: underline; }
.timeline-ticks { display: flex; gap: 2px; }
.timeline-ticks i { flex: 1; height: 5px; background: #eafe07; opacity: var(--activity, .14); border-radius: 1px; }
.timeline-ticks i.gap { opacity: 1; background: repeating-linear-gradient(135deg, #475f82, #475f82 1px, #243758 1px, #243758 3px); }
.timeline-ticks i.current { opacity: 1; outline: 1px solid #f5f8ff; outline-offset: 1px; }
.map-layer-controls { max-height: calc(var(--map-height) + 2px); overflow-y: auto; padding: 12px; border: 1px solid #355787; border-radius: 6px; background: linear-gradient(160deg, #102449, #091938 55%); }
.map-layer-controls summary { color: var(--text); font-size: 14px; font-weight: 680; cursor: pointer; }
.map-layer-controls fieldset { display: grid; gap: 2px; border: 0; min-width: 0; padding: 5px 0 8px; margin: 2px 0 0; }
.map-layer-controls summary + fieldset { margin-top: 13px; }
.map-layer-controls legend { padding: 0; color: var(--muted); font: 10px var(--mono); }
.map-layer-controls label { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 3px 6px; border-radius: 4px; font-size: 12px; cursor: pointer; }
.map-layer-controls label:hover { background: #152d56; }
.map-layer-controls input { flex: none; accent-color: var(--layer-color); margin: 0; width: 15px; height: 15px; }
.map-layer-controls label:has(input:checked) { color: var(--layer-color); }
.map-layer-controls .weather-choice { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.weather-choice select { width: 100%; border: 1px solid #355787; border-radius: 4px; padding: 5px 4px; background: #102447; color: var(--text); font-size: 12px; }
.layer-caption, .layer-summary { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 7px 0 0; }
.layer-summary { padding-inline-start: 15px; color: #c7ddff; }
.weather-canvas { position: absolute; top: 0; left: 0; pointer-events: none; }
.weather-key { display: grid; gap: 4px; margin: 4px 7px 0; color: var(--muted); font: 10px var(--mono); }
.weather-key strong { color: var(--text); font: 600 11px Inter, system-ui, sans-serif; }
.weather-gradient { display: block; height: 6px; border-radius: 2px; }
.weather-scale { position: relative; height: 13px; }
.weather-scale span { position: absolute; transform: translateX(-50%); }
.weather-scale span:first-child { transform: none; }
.weather-scale span:last-child { transform: translateX(-100%); }
.weather-inspector { display: grid; gap: 4px; padding: 7px; border: 1px solid #365783; border-radius: 4px; background: #102447; font: 10px/1.45 var(--mono); }
.weather-inspector strong { font-weight: 400; color: var(--yellow); }
.weather-inspector span { color: #c9dff7; }
.leaflet-container .leaflet-control-attribution { background: #07173fee; color: #e4edff; font-size: 9px; }
.leaflet-control-attribution a { color: #d3e5ff; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #102447; color: var(--text); }
.leaflet-popup-content { margin: 12px 16px; line-height: 1.55; }
.leaflet-popup-content span { color: #c2d2ef; }
.geo-label, .geo-region { background: none; border: none; white-space: nowrap; width: max-content !important; height: auto !important; text-shadow: 0 1px 3px #07132d, 0 -1px 3px #07132d; pointer-events: none !important; }
.geo-label span { display: inline-block; transform: translate(5px, -75%); font-size: 10px; color: #e2e8fa; }
.geo-label.major span { font-size: 11px; font-weight: 580; }
.geo-label.capital span { color: white; font-size: 13px; font-weight: 730; }
.leaflet-container:not(.detail-zoom) .geo-label.minor span { visibility: hidden; }
#map.world-scale :is(.satellite-image, .leaflet-local-geography-pane, .leaflet-city-labels-pane) { visibility: hidden; }
.geo-region span { display: block; transform: translate(-50%, -50%); color: #d1dff2; font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }

.comparison { align-self: start; display: flex; flex-direction: column; background: linear-gradient(150deg, #112c60, #0b1c3d 66%); border-top: 2px solid var(--yellow); border-radius: 0 0 6px 6px; }
.comparison-content { padding: 20px 19px 16px; display: flex; flex-direction: column; flex: 1; }
.comparison-period { color: var(--sky); font: 12px var(--mono); text-transform: uppercase; }
.deviation { color: var(--yellow); font-weight: 690; font-size: clamp(23px, 2.45vw, 37px); line-height: 1.09; letter-spacing: -.045em; margin-top: 10px; }
.deviation.below { color: #a5d4ff; }
.deviation.neutral { color: #d7e5ff; }
.norm-context { color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 9px; }
.bars { display: grid; gap: 12px; margin: 20px 0; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 12px; }
.bar-row span { color: #d0dbef; }
.bar-row strong { font: 12px var(--mono); }
.bar-track { grid-column: 1 / -1; height: 5px; background: #293f6d; border-radius: 1px; overflow: hidden; }
.bar { width: 0; height: 100%; }
.bar-actual { background: var(--yellow); }
.bar-norm { background: #68aef4; }
.bar-unit { color: var(--muted); font-size: 10px; margin-top: -4px; }
.period-source { color: var(--sky); font: 12px var(--mono); }
.source-explanation { color: #d0dbef; font-size: 12px; line-height: 1.45; margin: 5px 0 14px; }
.reference-check { border-left: 2px solid var(--sky); padding-left: 9px; margin: 0 0 14px; color: #e0eaff; font-size: 12px; line-height: 1.45; }
.coverage { border-top: 1px solid #2c467b; margin-top: auto; padding-top: 11px; display: flex; gap: 9px; align-items: start; font-size: 11px; line-height: 1.45; }
.coverage-icon { color: var(--sky); font-size: 17px; line-height: 1.15; }
.coverage strong { color: #e0eaff; font-weight: 620; }
.coverage p { color: var(--muted); margin-top: 2px; }

.calendar-panel { padding-top: 3px; border-top: 1px solid var(--line); }
.calendar-insight { color: var(--sky); line-height: 1.45; margin: 0 0 12px 4px; }
.calendar-scroll { overflow-x: auto; }
.calendar { width: 100%; min-width: 600px; border-spacing: 4px 4px; table-layout: fixed; }
.calendar th { font: 11px var(--mono); color: var(--muted); }
.calendar thead th { padding-bottom: 4px; }
.calendar tbody th { text-align: left; padding-left: 2px; }
.calendar th:first-child { width: 47px; }
.calendar td { padding: 0; }
.calendar button { display: grid; place-content: center; gap: 2px; width: 100%; min-height: 42px; padding-inline: 0; border-radius: 2px; text-align: center; font: 13px/1 var(--mono); border: 1px solid transparent; color: #fff; }
.calendar-source { font-size: 9px; line-height: 1.2; }
.calendar td.unavailable { height: 42px; border-radius: 2px; }
.calendar button:hover { border-color: #fff; }
.calendar button[aria-current='date'] { outline: 2px solid var(--yellow); outline-offset: 1px; }
.unavailable { background: repeating-linear-gradient(-45deg, #111e38, #111e38 3px, #172946 3px, #172946 5px); }
.activity-0 { background: #21365d; }
.activity-1 { background: #493551; }
.activity-2 { background: #783e4d; }
.activity-3 { background: #a84734; }
.activity-4 { background: #f38b4f; }
.activity-5 { background: #ffd180; }
.calendar .activity-4, .calendar .activity-5, .calendar .above-2, .calendar .below-2 { color: #07132d; }
.below-2 { background: #8ac6fc; }
.below-1 { background: #355d93; }
.near-norm { background: #263a62; }
.above-1 { background: #a34b43; }
.above-2 { background: #ffb067; }
.no-norm { background: #21365d; }
.calendar-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 4px 16px; color: var(--muted); font: 10px var(--mono); }
.calendar-key { display: flex; flex-wrap: wrap; gap: 7px 12px; }
.calendar-key span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-key i { width: 11px; height: 10px; border-radius: 1px; }

.correlation-panel { margin-top: 12px; padding: 9px 0 22px; border-top: 1px solid var(--line); }
.correlation-heading { margin-bottom: 12px; }
.factor-source { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.factor-source select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 12px; }
.factor-view { display: inline-flex; flex-wrap: wrap; max-width: 100%; }
.factor-scope { margin: 11px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.factor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .35fr); gap: 16px; align-items: start; }
.factor-grid { min-width: 0; }
.factor-scroll { overflow-x: auto; border: 1px solid var(--line); background: #091938; border-radius: 4px; }
.factor-scroll:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.factor-matrix { width: 100%; min-width: 650px; border-spacing: 3px; table-layout: fixed; padding: 4px; }
.factor-matrix th { color: var(--muted); font-size: 10px; font-weight: 550; padding: 5px 3px; overflow-wrap: anywhere; }
.factor-matrix th:first-child { width: 124px; position: sticky; left: 0; text-align: left; background: #091938; z-index: 1; }
.factor-matrix tbody tr:first-child th { color: var(--text); }
.factor-matrix td { padding: 0; text-align: center; }
.factor-matrix button { display: block; width: 100%; min-height: 35px; padding: 3px 0; border: 1px solid transparent; border-radius: 2px; color: #fff; font: 11px var(--mono); background: color-mix(in srgb, var(--factor-color, #315677) var(--factor-strength, 0%), #233557); }
.factor-matrix button.factor-dark-text { color: #02050d; }
.factor-matrix button:hover { border-color: var(--text); }
.factor-matrix button[aria-pressed='true'] { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.factor-self { background: #112141; color: #7390ae; font: 11px var(--mono); }
.factor-key { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 9px 1px 0; color: var(--muted); font: 10px var(--mono); }
.factor-key span { display: inline-flex; align-items: center; gap: 5px; }
.factor-key i { background: #233557; width: 10px; height: 10px; border-radius: 2px; }
.factor-key .factor-negative { background: #5c95e6; }
.factor-key .factor-positive { background: #e88b4e; }
.factor-result { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--yellow); border-radius: 4px; padding: 15px; }
.factor-result h3 { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.3; }
.factor-result p { margin-top: 9px; color: #c5d5ef; line-height: 1.5; font-size: 12px; }
.factor-result .factor-value { color: var(--yellow); font: 18px var(--mono); }
.factor-result .factor-check { color: var(--sky); padding-top: 9px; border-top: 1px solid var(--line); font: 11px/1.5 var(--mono); }
.factor-limits { font-size: 12px; line-height: 1.45; color: var(--muted); margin-top: 14px; }
.factor-limits + .factor-limits { margin-top: 5px; }
.factor-scroll-hint { display: none; }
.factor-method { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.factor-method summary { color: var(--sky); cursor: pointer; }
.factor-method p { max-width: 90ch; margin-top: 7px; }
.workspace-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px 16px; border-top: 1px solid var(--line); padding: 14px 0 24px; color: var(--muted); font-size: 11px; }
.workspace-footer a:hover { color: var(--yellow); }

dialog { color: var(--text); background: var(--surface); border: 1px solid #4a6799; border-top: 2px solid var(--yellow); border-radius: 4px; width: min(640px, 100% - 32px); max-height: calc(100% - 32px); padding: 21px; }
dialog::backdrop { background: #030917d4; }
dialog p { color: #c5d5ef; line-height: 1.55; margin-top: 13px; }
dialog strong { color: var(--text); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.dialog-heading h2 { font-size: 21px; font-weight: 680; letter-spacing: -.03em; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 7px 14px; font-size: 12px; }

@media (max-width: 1050px) {
  .topbar-inner, .workspace { width: calc(100% - 48px); }
  .hero::before { inset-inline: -24px; }
  .atlas-layout { grid-template-columns: minmax(0, 1fr) 218px; gap: 9px; }
  .analysis-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 700px) {
  .topbar-inner, .workspace { width: calc(100% - 28px); }
  .topbar-inner { min-height: 56px; grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { padding-block: 19px 9px; grid-template-columns: 1fr; gap: 0; }
  .hero::before { inset-inline: -14px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(28px, 7vw, 46px); }
  .hero-photo { display: none; }
  .atlas-layout { --map-height: clamp(380px, 59svh, 620px); grid-template-columns: minmax(0, 1fr); }
  .map-heading { align-items: start; flex-direction: column; gap: 9px; }
  .map-filters { width: 100%; }
  .map-filters .mobile-layer-link { display: inline-flex; flex: none; padding-inline: 6px; text-decoration: none; white-space: nowrap; }
  .source-field { flex: 1; min-width: 0; }
  .source-field select { min-width: 0; width: 100%; }
  .period-control select { min-width: 89px; }
  .period-control button { width: 24px; }
  .map-layer-controls { max-height: min(54svh, 420px); }
  .map-layer-controls fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-key, .weather-inspector, .map-layer-controls #weather-state { grid-column: 1 / -1; }
  .expanded-map { padding-inline: 9px; }
  .expanded-map .atlas-layout { --map-height: max(330px, calc(100dvh - 280px)); }
  .map-legend { bottom: 24px; }
  #world-view { left: 13px; top: 54px; }
  .calendar-heading { flex-wrap: wrap; }
  .calendar { min-width: 290px; border-spacing: 3px; }
  .calendar th:first-child { width: 39px; }
  .calendar th, .calendar button { font-size: 10px; }
  .calendar-source { font-size: 8px; }
  .calendar .off-season { display: none; }
  .correlation-heading { flex-wrap: wrap; min-height: 0; padding-top: 9px; }
  .factor-source { grid-template-columns: auto auto; align-items: center; gap: 7px; }
  .factor-layout { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .factor-result { grid-row: 1; padding: 11px; }
  .factor-matrix th:first-child { width: 101px; }
  .factor-scroll-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
}
@media (max-width: 360px) {
  .calendar { border-spacing: 2px 3px; }
  .calendar th:first-child { width: 33px; }
  .calendar button { font-size: 9px; }
  .timeline-controls { gap: 7px; }
  .play-button { min-width: 111px; font-size: 10px; padding-inline: 6px; }
  .timeline-controls .quiet-button { padding-inline: 7px; font-size: 11px; }
}
