:root {
  color-scheme: light;
  --ink: #151c2b;
  --muted: #4d596c;
  --quiet: #5a6679;
  --line: #e3e7ef;
  --surface: #fff;
  --soft: #f5f6f8;
  --blue: #0025ff;
  --accent: var(--blue);
  --blue-ink: #1533bd;
  --blue-light: #eef2ff;
  --map-sea: #eff4fa;
  --map-land: #e6ebf2;
  --map-border: #d1dbe8;
  --map-country-label: #5f7187;
  --map-water-label: #647e97;
  --frame: 1450px;
  --gutter: clamp(16px, 3.4vw, 52px);
  --header-height: 62px;
  font-family: Inter, system-ui, sans-serif;
  background: var(--surface);
  color: var(--ink);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
body { min-width: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--blue-ink); text-underline-offset: .19em; }
::selection { color: #fff; background: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 9;
  top: 8px;
  left: 8px;
  padding: 9px 12px;
  border: 1px solid #b8c7ff;
  border-radius: 6px;
  color: var(--blue-ink);
  background: #fff;
  font-size: 13px;
  transform: translateY(calc(-100% - 12px));
}
.skip-link:focus { transform: none; }
.icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.workspace-header-inner, .atlas, .notice {
  width: min(100%, var(--frame));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.workspace-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-height);
  gap: 16px;
}
.workspace-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: #111722;
  text-decoration: none;
}
.wordmark { font-size: 24px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.workspace-tag {
  padding: 3px 6px;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  color: #4c5769;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}
.workspace-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.header-action,
.editorial-link,
.quiet-button,
.icon-button,
.primary-button,
.workspace-search {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #3e485a;
  background: var(--soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.header-action,
.editorial-link,
.quiet-button,
.primary-button,
.workspace-search { padding: 0 10px; }
.icon-button { width: 34px; flex: none; padding: 0; }
.icon-button .icon, .quiet-button .icon, .header-action .icon, .editorial-link .icon,
.workspace-search .icon { width: 15px; height: 15px; }
.header-action:hover, .editorial-link:hover, .quiet-button:hover,
.icon-button:not(:disabled):hover { color: var(--ink); background: #e9edf3; }
.icon-button:disabled, .quiet-button:disabled { opacity: .48; }
.workspace-search, .primary-button { color: #fff; background: var(--blue); }
.workspace-search { margin-left: 3px; }
.workspace-search:hover, .primary-button:hover { background: #152dcd; }
.workspace-search kbd {
  margin-left: 2px;
  padding: 2px 4px;
  border: 1px solid #ffffff65;
  border-radius: 4px;
  font: inherit;
  font-size: 10px;
  font-weight: 500;
}
.page-intro { padding-top: clamp(15px, 2.4vh, 24px); padding-bottom: 8px; }
.page-kicker {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.15;
  text-transform: uppercase;
}
.page-intro h1 {
  margin: 7px 0 5px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 360;
  letter-spacing: -.043em;
  line-height: 1.1;
}
.page-lead { color: var(--muted); font-size: 14px; line-height: 1.45; }
.notice { padding-block: 20px; color: var(--muted); font-size: 14px; }

.atlas { padding-bottom: 21px; }
.catalogue { min-width: 0; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.theme-nav { display: flex; align-items: stretch; gap: clamp(3px, 1.3vw, 18px); }
.theme-nav button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}
.theme-nav button .icon { width: 16px; height: 16px; }
.theme-nav button:hover { color: var(--blue-ink); }
.theme-nav button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue-ink); font-weight: 660; }
.theme-nav button:focus-visible { outline-offset: -2px; }

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  height: clamp(455px, calc(100svh - 247px), 710px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.map-panel,
.detail-panel { min-width: 0; min-height: 0; background: var(--surface); }
.map-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.map-top, .panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 61px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}
.map-title { min-width: 0; }
#map-view-scope { display: block; }
#map-view-scope, .panel-toolbar-label, .eyebrow {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .045em;
  line-height: 1.25;
  text-transform: uppercase;
}
#map-view-title { margin-top: 2px; font-size: 17px; font-weight: 620; letter-spacing: -.025em; line-height: 1.2; }
#map-view-description { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.map-controls { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.layer-controls, .map-view-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8fa;
}
.layer-controls button, .map-view-controls button {
  display: flex;
  min-height: 29px;
  align-items: center;
  gap: 4px;
  padding-inline: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #4d5768;
  background: transparent;
  font-size: 11px;
  font-weight: 590;
  white-space: nowrap;
}
.map-view-controls button .icon { width: 15px; height: 15px; }
.layer-controls button:not(:disabled):hover, .map-view-controls button:hover { background: #e9edf4; }
.layer-controls button:disabled { opacity: .49; }
.layer-controls button[aria-pressed="true"], .map-view-controls button[aria-pressed="true"] {
  color: var(--blue-ink);
  background: #fff;
  border-color: var(--line);
}
.map-body { position: relative; isolation: isolate; min-width: 0; min-height: 0; overflow: hidden; background: var(--map-sea); }
.map-stage { position: absolute; inset: 0; }
.atlas-map { display: block; width: 100%; height: 100%; }
.atlas-map .map-country-label { paint-order: stroke fill; stroke: #f4f8fe; stroke-width: 2px; }
.atlas-map .map-water-label { letter-spacing: .1em; }
.atlas-map.world-map .world-country .world-country-shape { stroke: #f9fbff; }
.atlas-map.winerix-map .map-department .map-shape { stroke: #f8fbff; }
svg.atlas-map :is(.world-country, .map-department):focus { outline: none; }
svg.atlas-map :is(.world-country, .map-department):focus-visible > :is(.world-country-shape, .map-shape) {
  stroke: #183b9e;
  stroke-width: 2.2;
  filter: brightness(.86);
}
.atlas-map .map-selection path:last-child { stroke: #233f99; }
.map-tools {
  border: 1px solid #e0e6ef;
  border-radius: 7px;
  background: rgb(255 255 255 / .92);
  box-shadow: 0 2px 7px #1b2c4610;
  backdrop-filter: blur(9px);
}
.map-tools { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; padding: 2px; }
.map-tools .icon-button, .period-controls .icon-button { border-color: transparent; background: transparent; }
.map-tools .icon-button:not(:disabled):hover, .period-controls .icon-button:not(:disabled):hover { background: var(--soft); }
.map-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}
.map-key { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
.key-title { display: contents; }
.key-title h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#legend-unit { padding: 2px 5px; border-radius: 4px; color: var(--muted); background: var(--soft); font-size: 10px; }
#coverage { flex-basis: 100%; color: var(--muted); font-size: 10px; }
.legend { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 0; margin: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 4px; color: #42506a; font-size: 10px; white-space: nowrap; }
.swatch { display: inline-block; width: 9px; height: 9px; border: 1px solid #1d376523; border-radius: 2px; flex: none; }
.swatch.circle { border-radius: 50%; }
.period-controls {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}
.period-controls .icon-button .icon, .map-tools .icon-button .icon { width: 15px; height: 15px; }
.period-picker { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.period-picker select { min-height: 29px; font-size: 12px; }
.period-picker > .icon:first-child { width: 14px; height: 14px; color: var(--blue-ink); }
.snapshot-date { padding: 8px 10px; color: var(--muted); font-size: 11px; }
.map-attribution { position: absolute; right: 12px; bottom: 6px; display: flex; gap: 4px; color: #4f6480; font-size: 9px; }
.map-attribution a { color: inherit; }
.map-tooltip {
  position: absolute;
  z-index: 3;
  padding: 7px 9px;
  border-radius: 5px;
  color: white;
  background: #18253c;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
}

.detail-panel { overflow-y: auto; border-left: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #dce2ec transparent; }
.panel-toolbar { position: sticky; z-index: 2; top: 0; justify-content: flex-start; background: #fff; }
.panel-toolbar-label { white-space: nowrap; }
.territory-picker {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding-inline: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--quiet);
  background: #f7f8fa;
}
.territory-picker > .icon:first-child { width: 15px; height: 15px; color: var(--blue-ink); }
.territory-picker select, .period-picker select {
  appearance: none;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 610;
  cursor: pointer;
}
.territory-picker select { flex: 1; min-height: 33px; font-size: 13px; }
.select-chevron { width: 13px; height: 13px; pointer-events: none; }
#detail { padding: 18px 17px 21px; }
.territory-eyebrow { display: flex; gap: 6px; align-items: center; }
.territory-eyebrow .icon { width: 13px; height: 13px; color: var(--blue-ink); }
#detail-heading {
  margin: 5px 0;
  font-size: clamp(27px, 2.6vw, 37px);
  font-weight: 480;
  letter-spacing: -.04em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.reading-meta { color: var(--muted); font-size: 12px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.reading-context { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.reading-source {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 590;
  text-decoration: none;
}
.reading-source:hover { color: var(--blue-ink); text-decoration: underline; }
.reading-source .icon { width: 11px; height: 11px; }
.territory-link, .variety-button { max-width: 100%; margin-top: 11px; color: var(--blue-ink); }
.variety-button span { overflow: hidden; text-overflow: ellipsis; }
.variety-button .icon:last-child { margin-left: 5px; color: var(--quiet); }
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 0;
  padding: 9px 0 11px;
  border-block: 1px solid var(--line);
}
.metrics-single { grid-template-columns: minmax(0, 1fr); }
.metric { min-width: 0; }
.metric + .metric { padding-left: 10px; border-left: 1px solid var(--line); }
.metric dt { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 580; }
.metric dt .icon, .area-meta .icon { color: var(--blue-ink); width: 13px; height: 13px; }
.metric dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(25px, 2.8vw, 38px);
  font-weight: 460;
  line-height: 1.1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.metric small { color: var(--quiet); font-size: 11px; font-weight: 560; letter-spacing: 0; white-space: nowrap; }
.area-meta { display: flex; gap: 5px; align-items: center; margin-top: 8px; }
.detail-panel .history-chart, .detail-panel .rank-chart { padding-inline: 0; border: 0; border-radius: 0; }
.detail-panel .history-chart { margin-top: 14px; }
.detail-panel .rank-chart { margin-top: 8px; border-top: 1px solid var(--line); }
.chart-source { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: var(--quiet); font-size: 11px; line-height: 1.4; }
.chart-source a { min-width: 0; overflow-wrap: anywhere; }
.chart-source .icon { width: 12px; height: 12px; }
.comparison { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.comparison strong { color: var(--blue-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.empty-reading { margin-top: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--soft); font-size: 12px; line-height: 1.45; }
.view-controls { display: flex; flex-wrap: wrap; gap: 3px; width: fit-content; margin-top: 11px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.view-controls button { padding: 5px 7px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 600; }
.view-controls button[aria-pressed="true"] { color: var(--blue-ink); border-color: var(--line); background: #fff; }
.detail-note { margin-top: 8px; }
.mix { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.mix figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 9px; font-size: 13px; font-weight: 650; }
.mix-total { color: var(--quiet); font-size: 10px; font-weight: 600; white-space: nowrap; }
.mix-track { display: flex; overflow: hidden; height: 9px; margin-bottom: 10px; border-radius: 4px; background: var(--soft); }
.mix-track > span { background: var(--category); }
.mix-list { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.mix-row { display: grid; grid-template-columns: 20px minmax(48px, 1fr) auto auto; align-items: center; gap: 7px; font-size: 11px; }
.mix-icon { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 4px; background: var(--category); color: var(--category-ink, white); }
.mix-icon .icon { width: 12px; height: 12px; }
.mix-value, .mix-share { font-variant-numeric: tabular-nums; }
.mix-share { color: var(--muted); text-align: right; min-width: 38px; }

.map-panel[data-mode="table"] .map-body { background: #f8f9fb; }
[data-mode="table"] :is(.map-stage, .map-tools, .map-key, .map-attribution) { display: none; }
[data-mode="table"] .map-bottom { justify-content: flex-end; }
#data-table-panel {
  position: absolute;
  inset: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.dataset-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.table-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 120px;
  max-width: 260px;
  padding-inline: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--quiet);
  background: var(--soft);
}
.table-search .icon { width: 14px; height: 14px; }
.table-search input { width: 100%; min-width: 0; min-height: 32px; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 12px; }
.table-search:focus-within, .command-input:focus-within { border-color: #8da0f5; }
.table-search input:focus, .command-input input:focus { outline: 0; }
#table-empty { margin: 8px; }
.dataset-table-scroll { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.dataset-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.dataset-table th, .dataset-table td { padding: 9px 10px; border-bottom: 1px solid #edf0f5; text-align: left; }
.dataset-table thead th { position: sticky; z-index: 1; top: 0; color: var(--muted); background: var(--soft); font-size: 11px; font-weight: 650; white-space: nowrap; }
.dataset-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.dataset-table tbody tr:hover, .dataset-table tbody tr[aria-selected="true"] { background: #f1f4ff; }
.dataset-table :is(#table-metric, td) { text-align: right; white-space: nowrap; }
.dataset-table button { padding: 0; border: 0; color: var(--blue-ink); background: transparent; font-size: inherit; font-weight: 590; text-align: left; }
.dataset-table button:hover { text-decoration: underline; }
.dataset-table button[aria-pressed="true"] { font-weight: 710; }
.table-swatch { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border: 1px solid #20386019; border-radius: 2px; }

dialog {
  width: min(540px, calc(100% - 28px));
  max-height: calc(100dvh - 30px);
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 14px 42px #14264a30;
}
dialog::backdrop { background: rgb(17 26 44 / .3); backdrop-filter: blur(2px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.dialog-heading h2 { font-size: 21px; font-weight: 570; letter-spacing: -.025em; }
dialog dl { display: grid; gap: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
dialog dt { color: var(--ink); font-weight: 650; }
dialog dt:not(:first-child) { margin-top: 6px; }
.command-dialog { width: min(570px, calc(100% - 22px)); padding: 0; margin: min(13vh, 104px) auto auto; }
.command-dialog .dialog-heading { margin: 0; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.command-dialog .dialog-heading h2 { font-size: 16px; }
.command-input { display: flex; align-items: center; gap: 8px; margin: 9px; padding-inline: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--blue-ink); background: var(--soft); }
.command-input input { flex: 1; min-width: 0; min-height: 38px; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 14px; }
.command-results { display: grid; gap: 2px; max-height: min(48vh, 390px); overflow: auto; padding: 0 9px 9px; }
.command-section-label { padding: 5px 7px; color: var(--quiet); font-size: 10px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.command-option { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; min-height: 39px; padding: 7px 8px; border: 1px solid transparent; border-radius: 5px; color: var(--ink); background: transparent; font-size: 12px; text-align: left; }
.command-option:hover, .command-option[aria-selected="true"] { border-color: #e5eafa; color: var(--blue-ink); background: #f0f3ff; }
.command-label { display: grid; flex: 1; min-width: 0; gap: 2px; }
.command-label strong { font-weight: 650; }
.command-label small { color: var(--quiet); font-size: 11px; line-height: 1.4; }
.command-option .icon:last-child { width: 14px; height: 14px; color: var(--quiet); }
.command-hint { padding: 8px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.4; }
.workspace-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 12px; padding-top: 12px; color: var(--quiet); font-size: 11px; }
.workspace-footer a { color: inherit; }

@media (max-width: 1020px) {
  .workbench { grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr); }
  .map-top, .panel-toolbar { padding-inline: 11px; }
  .layer-controls button, .map-view-controls button { padding-inline: 6px; }
  #detail { padding-inline: 14px; }
}
@media (max-width: 840px) {
  .map-view-controls button span { display: none; }
  .map-controls { gap: 4px; }
}
@media (max-width: 770px) {
  :root { --header-height: 58px; }
  .workbench { grid-template-columns: minmax(0, 1fr); height: auto; }
  .map-body { min-height: clamp(350px, 50svh, 475px); }
  .detail-panel { overflow: visible; border-top: 1px solid var(--line); border-left: 0; scroll-margin-top: 12px; }
  .panel-toolbar { position: static; min-height: 54px; }
  .page-intro { padding-top: 22px; padding-bottom: 14px; }
  .workspace-search kbd { display: none; }
}
@media (max-width: 610px) {
  .theme-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 3px; }
  .theme-nav button { min-height: 37px; gap: 4px; padding-inline: 2px; font-size: 12px; }
  .theme-nav button .icon { width: 14px; height: 14px; }
  .workspace-actions { gap: 4px; }
  .header-action, .editorial-link, .workspace-search { padding-inline: 6px; }
  .header-action span, .editorial-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .workspace-brand { gap: 6px; }
  .wordmark { font-size: 22px; }
  .map-top { align-items: flex-start; flex-direction: column; gap: 8px; }
  .map-controls { justify-content: flex-start; }
}
@media (max-width: 440px) {
  :root { --gutter: 12px; }
  .workspace-search { margin-left: 0; }
  .workspace-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .theme-nav button { font-size: 11px; }
  .page-lead { font-size: 13px; }
  .map-tools { right: 8px; top: 8px; }
  .map-bottom { padding-inline: 8px; gap: 5px; }
  .legend { gap: 3px 5px; }
  .legend li { font-size: 9px; }
  .period-controls .icon-button { width: 25px; }
  .period-picker { gap: 3px; }
  .period-picker > .icon:first-child, #period-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .territory-picker select, .command-input input, .table-search input { font-size: 16px; }
  #data-table-panel { inset: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .theme-nav button, .header-action, .editorial-link, .workspace-search, .quiet-button, .primary-button, .icon-button {
    transition: color .13s ease, background-color .13s ease, border-color .13s ease;
  }
}
