/* Jakarta's local warm/cool relation, reconstructed from Palette plate 267.
   Digital shades are our UI adaptation, not official city brand specifications. */
@font-face {
  font-family: "Universa Civic";
  src: url("/fonts/universa/universa-civic-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/SourceSans3-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --bg: #081c2d;
  --bg-raised: #0d2b3f;
  --bg-strong: #143d51;
  --raised: #0d2b3f;
  --ink: #edf7f5;
  --dim: #accdd0;
  --line: #82abb8;
  --line-bright: #b4d8df;
  --signal-alert: #ff907c;
  --signal-water: #63c8e2;
  --accent: #fdbf68;
  --accent-ink: #081c2d;
  --accent-hover: #edf7f5;
  --companion: #0c4544;
  --font-sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Universa Civic", "Source Sans 3", sans-serif;
  --font-mono: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: var(--font-mono);
  --type-body: 13px;
  --type-note: 11px;
  --type-title: 20px;
}
:root[data-theme="light"] {
  --bg: #f5f8f6;
  --bg-raised: #fffdf5;
  --bg-strong: #e6f0ec;
  --raised: #fffdf5;
  --ink: #123747;
  --dim: #365861;
  --line: #647f83;
  --line-bright: #365861;
  --signal-alert: #9c3027;
  --signal-water: #08738a;
  --accent: #985200;
  --accent-ink: #fffdf5;
  --accent-hover: #713c00;
  --companion: #ddf0e8;
}
:root[data-theme="contrast"] {
  --bg: #05131d;
  --bg-raised: #05131d;
  --bg-strong: #102c3a;
  --raised: #05131d;
  --ink: #f6fff9;
  --dim: #d8eee7;
  --line: #c5eee6;
  --line-bright: #f6fff9;
  --signal-alert: #ffac98;
  --signal-water: #7bddf5;
  --accent: #ffcf7d;
  --accent-ink: #05131d;
  --accent-hover: #f6fff9;
  --companion: #102c3a;
}
body { font-family: var(--font-sans); font-size: var(--type-body); font-synthesis: none; }
button, input, select, summary { font-family: var(--font-sans); }
body[data-surface="jakarta-dashboard"] h1 { font-size: var(--type-title); font-weight: 650; letter-spacing: -.025em; }
body[data-surface="jakarta-dashboard"] h2,
body[data-surface="jakarta-dashboard"] h3 { font-size: var(--type-body); font-weight: 650; }
body[data-surface="jakarta-dashboard"] .masthead { background: var(--companion); }
body[data-surface="jakarta-dashboard"] .eyebrow { font: 600 var(--type-note)/1.5 var(--font-sans); letter-spacing: .025em; color: var(--dim); }
body[data-surface="jakarta-dashboard"] .meta,
body[data-surface="jakarta-dashboard"] .note,
body[data-surface="jakarta-dashboard"] .utilities label,
body[data-surface="jakarta-dashboard"] .status-strip,
body[data-surface="jakarta-dashboard"] .status-strip button,
body[data-surface="jakarta-dashboard"] th,
body[data-surface="jakarta-dashboard"] caption,
body[data-surface="jakarta-dashboard"] .chart-title,
body[data-surface="jakarta-dashboard"] footer { font-size: var(--type-note); }
body[data-surface="jakarta-dashboard"] .meta { font-family: var(--font-sans); line-height: 1.65; }
body[data-surface="jakarta-dashboard"] .reading strong { font-family: var(--font-sans); font-weight: 650; font-variant-numeric: tabular-nums; }
body[data-surface="jakarta-dashboard"] .reading p,
body[data-surface="jakarta-dashboard"] .result span { font-size: var(--type-note); line-height: 1.65; }
body[data-surface="jakarta-dashboard"] table { font-size: var(--type-body); font-variant-numeric: tabular-nums; }
body[data-surface="jakarta-dashboard"] .forecast-bar { font: var(--type-note)/1.4 var(--font-sans); font-variant-numeric: tabular-nums; }
body[data-surface="jakarta-dashboard"] .warning p,
body[data-surface="jakarta-dashboard"] .method p { max-width: 70ch; }
body[data-surface="jakarta-atlas"] .atlas-title { font-size: var(--type-title); font-weight: 650; }
body[data-surface="jakarta-atlas"] .atlas-kicker,
body[data-surface="jakarta-atlas"] .atlas-theme-control,
body[data-surface="jakarta-atlas"] .atlas-data { font-size: var(--type-body); }
body[data-surface="jakarta-atlas"] .atlas-eyebrow,
body[data-surface="jakarta-atlas"] .atlas-maturity,
body[data-surface="jakarta-atlas"] .atlas-footer,
body[data-surface="jakarta-atlas"] .atlas-inspect-row { font-size: var(--type-note); }
/* The hosted CRM report keeps the publisher's own colours and timestamp labels. */
.crm-intro { background: var(--companion); padding: 20px; border-left: 4px solid var(--line-bright); }
.crm-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 24px; margin-top: 20px; }
.crm-intro p { max-width: 65ch; margin-bottom: 14px; }
.crm-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.crm-actions a { display: inline-flex; align-items: center; padding: 10px 12px; border: 1px solid var(--line); min-height: 44px; }
.crm-process { margin: 0; padding-left: 24px; }
.crm-process li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.crm-process p { font-size: var(--type-note); color: var(--dim); }
.crm-destinations { display: flex; flex-wrap: wrap; gap: 0; margin-top: 16px; border-block: 1px solid var(--line); }
.crm-destinations a { padding: 12px 16px; min-height: 44px; border-right: 1px solid var(--line); }
#crm-viewer-shell { margin-top: 20px; }
#crm-viewer { height: 760px; border: 1px solid var(--line); }
.crm-source { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 800px) {
  .crm-layout { grid-template-columns: 1fr; }
  #crm-viewer { height: 640px; }
  .crm-intro { padding: 16px; }
}

/* One city bar with a transparent mark and a native, theme-aware wordmark. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
body[data-surface="jakarta-dashboard"] .masthead {
  padding: 2px 12px; gap: 4px 12px; align-items: center;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
}
.city-brand { display: flex; align-items: center; gap: 6px; height: 44px; }
.city-brand-icon {
  display: inline-block; width: 32px; height: 36px; flex: none;
  background: url('/brand/jktx-symbol.png') center / auto 44px no-repeat;
}
.city-brand-wordmark {
  flex: none; font: 800 26px/1 var(--font-sans);
  letter-spacing: -.055em; color: var(--ink);
  white-space: nowrap;
}
.city-version {
  flex: none; font: 600 9px/1 var(--font-sans);
  letter-spacing: .04em; color: var(--dim);
  margin-top: 1px;
  white-space: nowrap;
}
.city-brand { text-decoration: none; }
body[data-surface="jakarta-dashboard"] .sections { border: 0; padding: 0; min-width: 0; }
body[data-surface="jakarta-dashboard"] .sections a { padding: 8px; font-size: var(--type-note); display: flex; align-items: center; }
.city-controls { position: relative; margin: 0; padding: 0; border: 0; }
.city-controls > summary {
  display: flex; align-items: center; min-height: 44px; padding: 6px 10px;
  cursor: pointer; font-size: var(--type-note); border: 1px solid var(--line);
}
.city-controls[open] > summary { color: var(--accent); }
body[data-surface="jakarta-dashboard"] .utilities {
  position: absolute; z-index: 20; right: 0; top: 48px;
  display: grid; gap: 12px; width: min(280px, calc(100vw - 24px));
  padding: 16px; background: var(--bg-raised); border: 1px solid var(--line);
}
body[data-surface="jakarta-dashboard"] .utilities label { gap: 4px; }
body[data-surface="jakarta-dashboard"] .utilities select,
body[data-surface="jakarta-dashboard"] .utilities button { width: 100%; }
body[data-surface="jakarta-dashboard"] .status-strip { padding: 6px 0; border: 0; }
body[data-surface="jakarta-dashboard"] .map-heading { padding: 4px 12px; }
body[data-surface="jakarta-dashboard"] .map-heading > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
body[data-surface="jakarta-dashboard"] .map-heading h2 { margin: 0; }
@media (max-width: 1000px) {
  body[data-surface="jakarta-dashboard"] .masthead { grid-template-columns: minmax(0, 1fr) auto; gap: 0; }
  body[data-surface="jakarta-dashboard"] .sections { grid-column: 1 / -1; grid-row: 2; }
  body[data-surface="jakarta-dashboard"] .sections a { padding-block: 6px; }
  .city-controls { grid-column: 2; grid-row: 1; }
}

/* The source status: one line, and the answer to "is anything stale?".
   It sits inside the page's own flow, not above it, so the masthead stays
   the only band standing at the top of the screen — a band the spatial
   instrument can see and a reader can measure. */
.source-status {
  flex: none;
  /* The page's disclosures have their own rule: margin-top, a top border and
     padding-top, so an in-page disclosure reads as a section. This one is not
     an in-page disclosure — it is the first thing under the masthead — and
     it inherited all three. The cost was a 16px hole and a second horizontal
     rule directly under the masthead's own rule, with nothing between them. */
  margin: 0;
  padding-top: 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-strong);
  font-size: var(--type-note);
}
.source-status > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  padding: 3px 12px;
  cursor: pointer;
  color: var(--dim);
  list-style: none;
}
/* A finger is a finger: where the pointer is coarse the disclosure is a
   touch target, and it is as tall as every other control on the page. */
@media (pointer: coarse) { .source-status > summary { min-height: 32px; } }
.source-status > summary::-webkit-details-marker { display: none; }.source-status > summary::before {
  content: '';
  flex: none;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 120ms ease;
}
.source-status[open] > summary::before { transform: rotate(45deg); }
.source-status #source-status-line { color: var(--ink); font-family: var(--font-mono); }
.source-status .source-status-more { color: var(--dim); margin-inline-start: auto; }
.source-status--attention > summary { color: var(--signal-alert); }
.source-status--attention #source-status-line { color: var(--signal-alert); }
.source-status-rows {
  list-style: none;
  margin: 0;
  padding: 0 12px;
  display: grid;
  gap: 2px;
  font-family: var(--font-mono);
  color: var(--dim);
}
/* The closed list is a box with no content: it costs the page nothing. */
.source-status:not([open]) .source-status-rows { display: none; }
.source-status[open] .source-status-rows { padding-bottom: 8px; }
.source-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  padding-block: 2px;
}
.source-status-row strong { color: var(--ink); font-weight: 650; }
.source-status-row .source-status-verdict { color: var(--ink); }
.source-status-row .source-status-rule { color: var(--dim); }
.source-status-row--attention .source-status-verdict { color: var(--signal-alert); }

/* Live time-zone band inside the masthead: a single top band the spatial
   instrument can see and count, so the receipt matches the page. The clock
   earns its place in the masthead — it is the operator's "now" telemetry
   from India to New Zealand — and adds no second band of chrome. */
.masthead-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: var(--type-note);
  font-family: var(--font-mono);
  color: var(--dim);
}
.masthead-clock .tz { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.masthead-clock .tz-city { color: var(--dim); }
.masthead-clock .tz-time { color: var(--ink); font-variant-numeric: tabular-nums; }
.masthead-clock .tz-zone { color: var(--accent); }
.masthead-clock .tz[data-local] .tz-city,
.masthead-clock .tz[data-local] .tz-time { color: var(--accent); font-weight: 650; }

/* The navigation sits in the masthead's first row only where that row can
   hold it.
   Measured: the links need 733px (English) and the brand, the source status,
   the local clock and the controls need about 370px more, so the row can
   carry the navigation from 1200px up — the same width the workspace's own
   three columns begin. Below that the navigation lives in the Menu
   disclosure, the way it does on the phone, and the masthead stays ONE
   compact row, which is what the dashboard's chrome audit requires: a
   78px masthead is a worse answer than a menu.
   The placements are explicit, because auto-placement put the Menu button
   and the preferences in the same cell, and two controls in one cell
   overlap. */
@media (max-width: 1199px) {
  body[data-surface="jakarta-dashboard"] .masthead { grid-template-columns: auto auto minmax(0, 1fr); gap: 0 8px; }
  body[data-surface="jakarta-dashboard"] .city-brand { grid-column: 1; grid-row: 1; }
  body[data-surface="jakarta-dashboard"] .city-navigation { grid-column: 2; grid-row: 1; }
  body[data-surface="jakarta-dashboard"] .city-preferences { grid-column: 3; grid-row: 1; justify-self: end; }
  body[data-surface="jakarta-dashboard"] .sections { grid-column: 1 / -1; grid-row: 2; }
}

/* The clock yields to the navigation.
   The world clock is a delight for the agency's international audience, and
   the navigation is the product. Measured on the live build: the navigation
   needs 733px and the seven zones take 610px, so from 1200px to 1727px the
   masthead could not hold both — the nav column was left 576px at 1440 and
   336px at 1200, and the last two links were pushed out of the bar, one of
   them cut mid-word ("At"). The zone bar scrolls, so the links were
   reachable, but nothing said so.
   So the range zones show only where the bar can carry them AND the whole
   navigation: 1728px and up. Below that, the local time stays in the
   masthead and the full range is one tap away in Controls. */
@media (max-width: 1727px) {
  .masthead-clock .tz:not([data-local]) { display: none; }
}
}

body[data-surface="jakarta-atlas"] .atlas-title::before {
  content: ''; display: inline-block; vertical-align: middle; margin-right: 8px;
  width: 32px; height: 30px;
  background: url('/brand/jktx-symbol.png') center / contain no-repeat;
}
body[data-surface="jakarta-atlas"] .atlas-map-loading-glyph { border: 0; background: transparent; }

/* The hero is a viewport, not an embedded scrolling document. */
html.atlas-embedded-root { height: 100%; overflow: hidden; }
body.atlas-embedded { height: 100%; overflow: hidden; }
body.atlas-embedded .atlas-page {
  height: 100%; min-height: 0; display: grid;
  grid-template-rows: 36px 28px minmax(0, 1fr);
}
body.atlas-embedded.atlas-showcase .atlas-page > .atlas-map-wrap {
  height: auto; min-height: 0; min-width: 0;
}
body.atlas-embedded .atlas-lenses { min-height: 0; }
body.atlas-embedded .atlas-lenses button { min-height: 32px; padding: 4px 10px; font-size: 12px; }
body.atlas-embedded .atlas-lens-story { display: block; padding: 0 8px; min-height: 0; }
body.atlas-embedded #atlas-lens-evidence { position: relative; width: fit-content; }
body.atlas-embedded #atlas-lens-evidence > summary { min-height: 26px; padding: 3px 0; font-size: 11px; }
body.atlas-embedded .atlas-lens-context { display: none; }
body.atlas-embedded #atlas-lens-evidence[open] .atlas-lens-context {
  display: block; position: absolute; top: 28px; left: 0;
  width: min(480px, calc(100vw - 24px)); background: var(--bg-raised);
  border: 1px solid var(--line); padding: 8px; z-index: 46;
}
body.atlas-embedded .atlas-lens-context > * { display: block; font-size: 12px; }
body.atlas-embedded #atlas-lens-body { top: 90px; left: 0; right: auto; padding: 10px; }
.atlas-embedded-drawer { position: absolute; z-index: 40; top: 8px; right: 48px; max-width: calc(100% - 64px); margin: 0; }
.atlas-embedded-drawer > summary { min-height: 32px; padding: 6px 10px; cursor: pointer; border: 1px solid var(--line); background: var(--bg); font-size: 12px; }
.atlas-embedded-drawer[open] { left: 8px; right: 48px; }
/* Two page-level doors share the corner the drawer already occupied. The row
   is absolutely positioned, so it adds no height and the map keeps every pixel
   it had. Closed, both sit inline; opened, the drawer leaves the flow and
   anchors to the row's right edge. z-index 44 clears the city-watch overlay
   (42) — at 40 this row rendered visibly but was not clickable — and still
   sits under the loading veil (50) and the lens panel (65). */
.atlas-page-tools { position: absolute; z-index: 44; top: 8px; right: 48px; max-width: calc(100% - 64px); display: flex; gap: 6px; align-items: flex-start; }
.atlas-page-tools > .atlas-embedded-drawer { position: relative; right: auto; max-width: none; }
.atlas-page-tools > .atlas-embedded-drawer[open] { position: relative; right: auto; left: auto; width: auto; max-width: none; }
/* The opened drawer hangs BELOW the row of doors, not on top of it. It used
   to be an absolute panel at the row's right edge, which covered the research
   door and the city-watch door — the two actions the reader wanted next —
   while it was open. The panel still overlays the map; the doors stay. */
.atlas-page-tools > .atlas-embedded-drawer[open] > .atlas-embedded-evidence {
  position: absolute; top: calc(100% + 6px); right: 0; left: auto;
  width: min(420px, calc(100vw - 32px));
}
/* A closed drawer must not be laid out at all. Chrome keeps the contents of a
   collapsed <details> in the layout (content-visibility), so a measure of the
   closed page was reading a 94px-wide ghost of the data panel — a shape no
   reader ever sees, and a shape that changes when the panel is opened. */
.atlas-page-tools > .atlas-embedded-drawer:not([open]) > *:not(summary) { display: none; }
.atlas-page-tools > .atlas-watch { position: static; right: auto; top: auto; left: auto; width: auto; max-width: none; border: 0; background: transparent; z-index: auto; }
.atlas-page-tools > .atlas-watch .atlas-watch-shell { margin: 0; padding: 0; border: 0; }
.atlas-page-tools > .atlas-watch .atlas-watch-shell > summary { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 12px/1.4 var(--font-sans); cursor: pointer; white-space: nowrap; }
.atlas-page-tools > .atlas-watch .atlas-watch-shell > summary:hover, .atlas-page-tools > .atlas-watch .atlas-watch-shell > summary:focus-visible { border-color: var(--amber); color: var(--amber); }
.atlas-page-tools > .atlas-watch .atlas-watch-content { position: absolute; top: 100%; right: 0; left: auto; width: min(360px, calc(100vw - 16px)); max-height: 60svh; overflow: auto; border: 1px solid var(--line); background: var(--bg); z-index: 50; }
.atlas-research-link { min-height: 32px; display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 12px/1.4 var(--font-sans); text-decoration: none; white-space: nowrap; }
.atlas-research-link:hover, .atlas-research-link:focus-visible { border-color: var(--amber); color: var(--amber); }
.atlas-embedded-evidence { background: var(--bg); border: 1px solid var(--line); max-height: calc(100vh - 130px); overflow: auto; padding: 8px; }
body.atlas-embedded .atlas-embedded-evidence .atlas-menu-body { position: static; width: auto; max-height: none; display: block; border: 0; padding: 0; }
body.atlas-embedded .atlas-embedded-evidence .atlas-environment,
body.atlas-embedded .atlas-embedded-evidence .atlas-data,
body.atlas-embedded .atlas-embedded-evidence .atlas-footer { padding: 8px; }
body.atlas-embedded .atlas-areas { bottom: 26px; }
body.atlas-embedded .atlas-panel-summary { min-height: 32px; padding: 6px 10px; }
body.atlas-embedded #atlas-flyover-btn { min-height: 32px; padding: 6px 10px; font-size: 11px; }
/* Dense readings retain every source, tier and date. */
body[data-surface="jakarta-dashboard"] { line-height: 1.35; }
body[data-surface="jakarta-dashboard"] .panel { padding: 10px; }
body[data-surface="jakarta-dashboard"] .panel-heading { margin-bottom: 6px; }
body[data-surface="jakarta-dashboard"] .feed-body { padding-top: 0; }
body[data-surface="jakarta-dashboard"] .reading { padding: 6px 0; }
body[data-surface="jakarta-dashboard"] .reading p,
body[data-surface="jakarta-dashboard"] .meta { margin-block: 2px; line-height: 1.35; }
body[data-surface="jakarta-dashboard"] .subheading { padding-top: 8px; margin-top: 10px; }
body[data-surface="jakarta-dashboard"] .warning { padding: 6px 8px; margin: 6px 0; }
body[data-surface="jakarta-dashboard"] .warning p { line-height: 1.4; }
body[data-surface="jakarta-dashboard"] .map-actions { padding: 3px 8px; gap: 4px 8px; }
body[data-surface="jakarta-dashboard"] .map-actions label { display: flex; align-items: center; gap: 6px; }
body[data-surface="jakarta-dashboard"] .map-actions button,
body[data-surface="jakarta-dashboard"] .map-actions select { min-height: 30px; padding: 3px 8px; font-size: 12px; }
body[data-surface="jakarta-dashboard"] .map-panel > .note { padding: 2px 8px 4px; margin: 0; font-size: 11px; }
body[data-surface="jakarta-dashboard"] .detail-section { padding: 14px; }
body[data-surface="jakarta-dashboard"] .workspace { align-items: start; }
body[data-surface="jakarta-dashboard"] #city-map { height: clamp(420px, calc(100svh - 140px), 820px); }
@media (min-width: 1200px) {
  body[data-surface="jakarta-dashboard"] .workspace { grid-template-columns: 220px minmax(0, 1fr) 270px; }
  body[data-surface="jakarta-dashboard"] .panel { max-height: none; overflow: visible; }
}
@media (pointer: coarse) {
  body[data-surface="jakarta-dashboard"] .map-actions button,
  body[data-surface="jakarta-dashboard"] .map-actions select,
  body.atlas-embedded .atlas-panel-summary,
  body.atlas-embedded #atlas-flyover-btn,
  .atlas-embedded-drawer > summary { min-height: 44px; }
}

body.atlas-embedded .atlas-embedded-evidence a { color: var(--accent); }
@media (max-width: 600px) {
  :root { --type-body: 14px; --type-note: 12px; }
}
@media (pointer: coarse) {
  body.atlas-embedded .atlas-page { grid-template-rows: 44px 32px minmax(0, 1fr); }
  body.atlas-embedded .atlas-lenses button { min-height: 44px; }
  body.atlas-embedded #atlas-lens-evidence > summary { min-height: 32px; }
}

/* Detailed sections belong to native modals, never the hero document flow. */
body[data-surface="jakarta-dashboard"] {
  height: 100svh; overflow: hidden; display: flex; flex-direction: column;
}
body[data-surface="jakarta-dashboard"] > .masthead { flex: none; }
body[data-surface="jakarta-dashboard"] > main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body[data-surface="jakarta-dashboard"] .workspace { flex: 1 1 auto; height: auto; min-height: 0; align-items: stretch; }
body[data-surface="jakarta-dashboard"] .map-panel {
  height: 100%; min-height: 0; display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
body[data-surface="jakarta-dashboard"] #city-map { height: 100%; min-height: 0; }
body[data-surface="jakarta-dashboard"] .workspace > .panel { height: 100%; min-height: 0; overflow: auto; }
body[data-surface="jakarta-dashboard"] footer { flex: none; padding: 3px 10px; line-height: 1.2; }
body[data-surface="jakarta-dashboard"] .sections button {
  flex: none; min-height: 44px; padding: 8px; border: 0; background: transparent;
  font-size: var(--type-note); color: var(--ink); white-space: nowrap;
}
body[data-surface="jakarta-dashboard"] .sections button:hover { color: var(--accent); }
.dashboard-modal {
  width: min(1100px, calc(100vw - 24px)); max-height: calc(100svh - 32px);
  padding: 0; border: 1px solid var(--line); border-radius: 0;
  background: var(--bg); color: var(--ink);
}
.dashboard-modal[open] { display: flex; flex-direction: column; }
.dashboard-modal::backdrop { background: rgb(0 0 0 / .65); }
.modal-toolbar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 4px 12px; gap: 12px; border-bottom: 1px solid var(--line); margin: 0; font-weight: 650; }
.modal-toolbar button { min-height: 36px; padding: 4px 12px; }
.modal-content { overflow: auto; min-height: 0; overscroll-behavior: contain; }
.dashboard-modal .detail-section { border: 0; }
body[data-surface="jakarta-dashboard"] .modal-content > .panel { height: auto; max-height: none; overflow: visible; }
@media(max-width:1199px) {
  body[data-surface="jakarta-dashboard"] .workspace { grid-template-columns: minmax(0, 1fr); }
  body[data-surface="jakarta-dashboard"] footer > span { display: none; }
  /* The map takes the room the page has left, rather than a number worked
     out by hand. The hand-worked number was how a 91px hole appeared below
     the map: the frame was given a fixed height inside a grid row that was
     taller, and the difference was white paper at the foot of the phone.
     Filling the row cannot disagree with the page it sits in. */
  body[data-surface="jakarta-dashboard"] #city-map { height: 100%; min-height: 0; }
  /* The footer's phone-visible child was the clock, and the clock now lives
     in the masthead. All four of the footer's children are hidden below this
     width, which left an empty band two pixels tall at the foot of the
     screen: a band that exists for no reason. If a clock ever comes back to
     the footer, this stops hiding it. */
  body[data-surface="jakarta-dashboard"] footer:not(:has(> #clock)) { display: none; }
}
@media(pointer:coarse) { .modal-toolbar button { min-height: 44px; } }

.explore-layout { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.35fr); gap: 20px; padding: 16px; }
.explore-layout h2 { margin-bottom: 10px; }
.explore-layout label { margin-block: 8px; }
.explore-range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.explore-check { display: flex; align-items: center; gap: 8px; }
.explore-check input { min-height: auto; }
.explore-layout .result-list { max-height: 280px; margin: 12px 0; }
#explore-height-legend { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 8px; }
#explore-height-legend span { display: flex; align-items: center; gap: 5px; }
#explore-height-legend i { width: 20px; height: 12px; border: 1px solid var(--line); }
@media(max-width:700px) { .explore-layout { grid-template-columns: minmax(0,1fr); } }
/* A visible language action shares the existing compact toolbar footprint. */
.city-preferences{display:flex;align-items:center;gap:6px;min-width:0}.city-preferences .language-toggle{font-size:var(--type-note);padding:6px 8px;white-space:nowrap;min-height:36px}.city-preferences .city-controls{grid-column:auto;grid-row:auto}@media(max-width:1000px){.city-preferences{grid-column:2;grid-row:1}}
.modal-toolbar [data-language-switch]{margin-inline-start:auto;font-size:var(--type-note);white-space:nowrap}.modal-toolbar{gap:8px}

/* Embedded evidence has one bounded popup: context and body cannot overlap. */
body.atlas-embedded .atlas-lens-popup { position:absolute; top:28px; left:0; width:min(520px,calc(100vw - 32px)); max-height:55svh; overflow:auto; z-index:46; background:var(--bg); border:1px solid var(--line); }
body.atlas-embedded #atlas-lens-evidence[open] .atlas-lens-popup .atlas-lens-context { position:static; width:auto; padding:8px; border:0; border-bottom:1px solid var(--line); }
body.atlas-embedded #atlas-lens-evidence .atlas-lens-popup #atlas-lens-body { position:static; width:auto; max-height:none; overflow:visible; padding:10px; border:0; }
body.atlas-embedded[data-lens="arrival"] #atlas-lens-evidence[open] .atlas-lens-popup .atlas-lens-context { display:none; }

/* Map-first workbench: two compact rows, all secondary content on demand. */
/* Chrome is the frame, not the subject. Two rows of it spent 64px of the
   viewport before the map started; 28 + 26 hands 10px straight back to the map,
   which is the product. Touch targets stay at 44px in the media query below. */
body.atlas-workbench { --atlas-header-row:28px; --atlas-lenses-row:26px; height:100svh; overflow:hidden; }
body.atlas-workbench .atlas-page { height:100%; min-height:0; display:grid; grid-template-rows:minmax(var(--atlas-header-row),auto) minmax(var(--atlas-lenses-row),auto) minmax(0,1fr); }
body.atlas-workbench.atlas-embedded .atlas-page { grid-template-rows:minmax(var(--atlas-lenses-row),auto) minmax(0,1fr); }
body.atlas-workbench .atlas-header { padding:2px 8px; display:flex; gap:8px; flex-wrap:nowrap; min-height:0; }
body.atlas-workbench .atlas-header-meta { display:block; min-width:0; flex:1; }
body.atlas-workbench .atlas-title { font-size:14px; margin:0; line-height:1; white-space:nowrap; }
body.atlas-workbench .atlas-title::before { width:20px; height:24px; margin-right:4px; }
body.atlas-workbench .atlas-header-nav { display:flex; gap:6px; flex:none; width:auto; }
body.atlas-workbench .atlas-header-nav > .atlas-theme-control { display:flex; flex-direction:row; gap:0; font-size:0; }
/* THE BAND FITS ITS CONTENTS, OR IT CROPS THEM.
   The header row is 28px with 2px of padding, so its content box is 24px.
   These two controls were 30px — the last two in the app still carrying the
   old fat frame, after every other control had come down to the house size of
   24px. A 30px control in a 24px box does not fit: the language select (the
   page's FIRST control) sat 1.5px ABOVE the top of the document, cut by the
   edge of the page, and the Controls summary hung 0.5px into the lens strip
   below it. Measured on the deployed build at 768, 1024 and 1440px. The band
   now grows rather than crops (see the minmax() above), and these two
   controls are the size of their labels. */
body.atlas-workbench .atlas-header-nav > .atlas-theme-control select { width:auto; padding:2px 4px; min-height:24px; font-size:12px; }
body.atlas-workbench .atlas-menu { margin:0; align-self:center; }
body.atlas-workbench .atlas-menu > summary { min-height:24px; padding:2px 8px; font-size:12px; }
body.atlas-workbench .atlas-menu-body { z-index:65; width:min(360px,calc(100vw - 16px)); }
body.atlas-workbench .atlas-lens-story { display:none; }
.atlas-map-loading.is-unavailable { z-index:1; pointer-events:none; padding:12px; text-align:center; }
/* The strip scrolls past the viewport edge with no affordance, so the last lens
   was cut mid-word. A mask would be the obvious way to fade it, but the lens
   evidence panel is a position:fixed DESCENDANT of this scroller, and a mask on
   an ancestor establishes a containing block — which trapped the panel and hid
   it entirely. Verified: removing the mask alone restored it. So the edge is
   done with scroll shadows instead: the two `local` covers ride with the
   content and mask the two `scroll` shadows at each end, so the shadow appears
   only when there is genuinely more strip in that direction.
   MSH: zero gradients. Scroll shadows are drawn with box-shadow on pseudo-elements,
   not background-image gradients. */
body.atlas-workbench .atlas-lenses { min-height:0; align-items:center; padding:0 26px 0 0; gap:0; position:relative; }
body.atlas-workbench .atlas-lenses::before,
body.atlas-workbench .atlas-lenses::after {
  content:""; position:absolute; top:0; bottom:0; width:26px; pointer-events:none;
  box-shadow:inset 14px 0 14px -14px rgba(0,0,0,.16), inset 26px 0 26px -26px var(--bg);
}
body.atlas-workbench .atlas-lenses::before { left:0; }
body.atlas-workbench .atlas-lenses::after { right:0; }
body.atlas-workbench .atlas-lenses button { min-height:30px; padding:4px 8px; font-size:12px; }
body.atlas-workbench #atlas-lens-evidence { position:sticky; left:0; order:-1; flex:none; background:var(--bg); z-index:60; margin:0; border:0; padding:0; }
body.atlas-workbench #atlas-lens-evidence > summary { display:flex; align-items:center; min-height:30px; padding:4px 8px; font-size:12px; white-space:nowrap; cursor:pointer; border-right:1px solid var(--line); }
/* The map is the product. At 520px this popup covered 22.6% of the map and sat
   hard against the lens row, so it read as the screen rather than as evidence
   about it. Narrower, and dropped clear of the row so the top-left of the map -
   where Jakarta is - stays visible. A narrower column wraps, so the height is
   spent on avoiding scroll rather than saved: the popup opens 128px down
   (36 header + 36 lenses + 56), leaving 100svh - 208px before it would run off
   the bottom. That space is the real bound - 84svh only stops a long panel
   (flood monitoring carries 1812px) from swallowing a tall screen.
   MSH: zero gradients. The fade mask is replaced by a bottom border + padding
   strategy; the content simply scrolls and the last line sits on its padding. */
body.atlas-workbench .atlas-lens-popup { position:fixed; top:max(calc(var(--atlas-header-row) + var(--atlas-lenses-row) + 56px), calc(var(--atlas-map-top, 0px) + 4px)); left:8px; width:min(240px,calc(100vw - 16px)); max-height:min(84svh,calc(100svh - 208px)); overflow:auto; z-index:65; border:1px solid var(--line); background:var(--bg); padding-bottom:26px; }
body.atlas-workbench.atlas-embedded .atlas-lens-popup { top:var(--atlas-lenses-row); }
body.atlas-workbench #atlas-lens-evidence[open] .atlas-lens-popup .atlas-lens-context { display:block; position:static; width:auto; padding:8px; border:0; border-bottom:1px solid var(--line); background:var(--bg-raised); }
body.atlas-workbench .atlas-lens-context > * { display:block; font-size:12px; }
body.atlas-workbench #atlas-lens-evidence .atlas-lens-popup #atlas-lens-body { position:static; width:auto; max-height:none; overflow:visible; padding:10px; border:0; }
body.atlas-workbench[data-lens="arrival"] #atlas-lens-evidence[open] .atlas-lens-popup .atlas-lens-context { display:none; }
body.atlas-workbench .atlas-map-wrap { height:auto; min-height:0; }
body.atlas-workbench .atlas-watch { top:8px; right:8px; left:auto; width:auto; border:0; background:transparent; z-index:42; }
body.atlas-workbench .atlas-watch-shell { margin:0; padding:0; border:0; }
body.atlas-workbench .atlas-watch-shell > summary { display:block; min-height:30px; padding:4px 8px; background:var(--bg); }
body.atlas-workbench .atlas-watch-content { position:absolute; right:0; top:100%; width:min(360px,calc(100vw - 16px)); max-height:60svh; overflow:auto; border:1px solid var(--line); background:var(--bg); }
body.atlas-workbench .atlas-watch-grid { grid-template-columns:1fr 1fr; }
body.atlas-workbench .atlas-watch-notice-body { position:static; }
/* A card's last line should sit on its padding, not on padding PLUS the
   element's own bottom margin. Stacked, they left ~24px of dead space under the
   "Data dan sumber" link — a box taller than its contents for no reason. */
body.atlas-workbench .atlas-watch-content > :last-child,
body.atlas-workbench .atlas-watch-notice-body > :last-child,
body.atlas-workbench .atlas-watch-action > :last-child { margin-bottom:0; }
body.atlas-workbench .atlas-menu-body .atlas-watch, body.atlas-workbench .atlas-embedded-evidence .atlas-watch { position:static; width:100%; }
body.atlas-workbench .atlas-menu-body .atlas-watch-content, body.atlas-workbench .atlas-embedded-evidence .atlas-watch-content { position:static; width:auto; }
body.atlas-workbench .atlas-layers { top:8px; width:auto; padding:0 8px; font-family:var(--font-sans); }
body.atlas-workbench .atlas-layers:has(details[open]) { width:min(250px,calc(100vw - 72px)); max-height:60svh; overflow:auto; }
body.atlas-workbench .atlas-panel-summary { min-height:30px; gap:6px; }
body.atlas-workbench .atlas-panel-summary .atlas-eyebrow { margin:0; font-family:var(--font-sans); letter-spacing:0; text-transform:none; font-size:12px; }
body.atlas-workbench .atlas-quick { padding:0 8px; max-height:55svh; }
body.atlas-workbench .atlas-quick-details { min-width:0; }
body.atlas-workbench .atlas-quick-heading { font-size:11px; }
body.atlas-workbench .atlas-observation-hud { top:48px; }
body.atlas-workbench .atlas-embedded-drawer { right:8px; }
body.atlas-workbench .atlas-embedded-drawer > summary { min-height:30px; padding:4px 8px; }
body.atlas-workbench .atlas-page-tools { right:8px; }
body.atlas-workbench .atlas-page-tools > .atlas-watch .atlas-watch-shell > summary { min-height:30px; padding:4px 8px; font-size:12px; }
body.atlas-workbench .atlas-research-link { min-height:30px; padding:4px 8px; }
body.atlas-workbench .water-scenario-location { bottom:76px; }
body.atlas-workbench .maplibregl-ctrl-group button { width:30px; height:30px; min-width:30px; min-height:30px; }
body.atlas-workbench .maplibregl-ctrl-attrib { font-size:10px; }
body.atlas-workbench .maplibregl-ctrl-attrib-button { min-width:30px; min-height:30px; }

/* Dashboard masthead and tools use the same density. */
body[data-surface="jakarta-dashboard"] .masthead { padding:0 8px; gap:6px; }
body[data-surface="jakarta-dashboard"] .city-brand { height:36px; gap:4px; }
body[data-surface="jakarta-dashboard"] .city-brand-icon { width:22px; height:28px; background-size:auto 34px; }
body[data-surface="jakarta-dashboard"] .city-brand-wordmark { font-size:22px; }
.city-navigation { margin:0; padding:0; border:0; min-width:0; }
.city-navigation > summary { display:none; }
body[data-surface="jakarta-dashboard"] .sections a, body[data-surface="jakarta-dashboard"] .sections button { min-height:34px; padding:4px 6px; }
body[data-surface="jakarta-dashboard"] .city-controls > summary, body[data-surface="jakarta-dashboard"] .language-toggle { min-height:30px; padding:4px 6px; }
body[data-surface="jakarta-dashboard"] .utilities { top:34px; max-height:75svh; overflow:auto; gap:8px; padding:10px; width:min(300px,calc(100vw - 16px)); }
body[data-surface="jakarta-dashboard"] .utilities .map-actions { display:grid; grid-template-columns:1fr 1fr; padding:8px 0; border-block:1px solid var(--line); }
body[data-surface="jakarta-dashboard"] .utilities .map-actions label, body[data-surface="jakarta-dashboard"] .utilities .map-actions a { grid-column:1/-1; }
body[data-surface="jakarta-dashboard"] .utilities .map-actions label { display:grid; grid-template-columns:auto minmax(0,1fr); }
body[data-surface="jakarta-dashboard"] .map-panel { position:relative; grid-template-rows:18px minmax(0,1fr); }
body[data-surface="jakarta-dashboard"] .map-heading { padding:1px 8px; font-size:11px; }
body[data-surface="jakarta-dashboard"] .map-heading h2 { font-size:11px; }
body[data-surface="jakarta-dashboard"] .map-heading .eyebrow { display:none; }
body[data-surface="jakarta-dashboard"] .map-panel > .note { position:absolute; top:62px; left:130px; right:60px; z-index:12; background:var(--bg-raised); border:1px solid var(--line); padding:4px 6px; }
body[data-surface="jakarta-dashboard"] .map-panel > .note[hidden] { display:none; }
@media(max-width:1000px) {
 body[data-surface="jakarta-dashboard"] .masthead { grid-template-columns:auto minmax(0,1fr) auto; }
 .city-navigation { grid-column:2; grid-row:1; position:relative; justify-self:end; }
 .city-navigation > summary { display:block; min-height:36px; padding:8px; cursor:pointer; }
 /* Anchor the drawer to the trigger's trailing edge and cap it with the inline
    space the viewport actually has. Anchoring at left:0 let a min-width panel
    start at the trigger and end past the viewport at 390px. */
 body[data-surface="jakarta-dashboard"] .city-navigation .sections { position:absolute; top:100%; right:0; width:min(180px,calc(100vw - 16px)); max-height:70svh; overflow:auto; display:grid; z-index:70; background:var(--bg-raised); border:1px solid var(--line); }
 body[data-surface="jakarta-dashboard"] .city-navigation .sections > * { min-height:44px; padding:8px 12px; }
 .city-preferences { grid-column:3; grid-row:1; }
 body[data-surface="jakarta-dashboard"] .map-panel > .note { left:8px; top:100px; }
}
@media(pointer:coarse), (max-width:600px) {
 body.atlas-workbench { --atlas-header-row:44px; --atlas-lenses-row:44px; }
 body.atlas-workbench .atlas-header { padding:0 6px; }
 body.atlas-workbench .atlas-header-nav > .atlas-theme-control select, body.atlas-workbench .atlas-menu > summary, body.atlas-workbench .atlas-lenses button, body.atlas-workbench #atlas-lens-evidence > summary, body.atlas-workbench .atlas-panel-summary, body.atlas-workbench .atlas-watch-shell > summary, body.atlas-workbench .atlas-embedded-drawer > summary, body.atlas-workbench .atlas-research-link { min-height:44px; }
 body.atlas-workbench .maplibregl-ctrl-group button { width:44px; height:44px; min-width:44px; min-height:44px; }
 body.atlas-workbench .maplibregl-ctrl-attrib-button { min-width:44px; min-height:44px; }
 body.atlas-workbench .water-scenario-location { bottom:92px; }
 body[data-surface="jakarta-dashboard"] .city-brand, body[data-surface="jakarta-dashboard"] .language-toggle, body[data-surface="jakarta-dashboard"] .city-controls > summary, .city-navigation > summary { min-height:44px; }
 body[data-surface="jakarta-dashboard"] .utilities { top:44px; }
}

body.atlas-workbench.atlas-embedded .atlas-header { display:none; }
body.atlas-workbench .atlas-quick:not(:has(details[open])) { right:auto; width:fit-content; }
body[data-surface="jakarta-dashboard"] .map-panel > .note { right:140px; }
@media(max-width:1000px) { body[data-surface="jakarta-dashboard"] .map-panel > .note { top:140px; right:8px; } }
body.atlas-workbench .atlas-lenses { scrollbar-width:none; }
body.atlas-workbench .atlas-lenses::-webkit-scrollbar { display:none; }
body.atlas-workbench .atlas-watch { overflow:visible; max-height:none; }

/* Requested phone masthead: half the previous 46px, all actions retained. */
@media(max-width:600px) {
 body[data-surface="jakarta-dashboard"] .masthead { padding:0 6px; gap:4px; }
 body[data-surface="jakarta-dashboard"] .city-brand { height:21px; min-height:21px; }
 body[data-surface="jakarta-dashboard"] .city-brand-icon { width:16px; height:20px; background-size:auto 24px; }
 body[data-surface="jakarta-dashboard"] .city-brand-wordmark { font-size:18px; }
 body[data-surface="jakarta-dashboard"] .language-toggle,
 body[data-surface="jakarta-dashboard"] .city-controls > summary,
 body[data-surface="jakarta-dashboard"] .city-navigation > summary { display:flex; align-items:center; height:21px; min-height:21px; padding:0 6px; font-size:12px; line-height:19px; }
 body[data-surface="jakarta-dashboard"] .utilities { top:100%; }
}


/* Slim control frames: labels carry the action, padding stays secondary. */
body.atlas-workbench { --atlas-lenses-row:26px; }
body.atlas-workbench .atlas-lenses button,
body.atlas-workbench #atlas-lens-evidence > summary,
body.atlas-workbench .atlas-panel-summary,
body.atlas-workbench .atlas-watch-shell > summary,
body.atlas-workbench .atlas-embedded-drawer > summary { min-height:24px; padding:2px 6px; line-height:18px; }
body.atlas-workbench .atlas-research-link { min-height:24px; padding:2px 6px; line-height:18px; }
body.atlas-workbench .atlas-layers,
body.atlas-workbench .atlas-quick { padding:0 4px; }
body.atlas-workbench .maplibregl-ctrl-group button { width:28px !important; height:28px !important; min-width:28px; min-height:28px; }
body.atlas-workbench .maplibregl-ctrl-attrib-button { width:24px; height:24px; min-width:24px; min-height:24px; background-repeat:no-repeat; }
body.atlas-workbench .maplibregl-ctrl-attrib.maplibregl-compact { min-height:24px; padding:2px 24px 2px 0; }
body[data-surface="jakarta-dashboard"] footer { padding:1px 8px; font-size:11px; }
@media(max-width:600px) {
 body.atlas-workbench { --atlas-header-row:24px; --atlas-lenses-row:24px; }
 body.atlas-workbench .atlas-page { grid-template-columns:minmax(0,1fr); }
 body.atlas-workbench .atlas-header { padding:0 4px; flex-wrap:wrap; }
 body.atlas-workbench .atlas-header-meta { flex-basis:25%; }
 body.atlas-workbench .atlas-header-nav { max-width:100%; margin-inline-start:auto; }
 body.atlas-workbench .atlas-header-nav > .atlas-theme-control { min-width:0; }
 body.atlas-workbench .atlas-menu { flex:none; }
 body.atlas-workbench .atlas-title { overflow:hidden; text-overflow:ellipsis; }
 body.atlas-workbench .atlas-page-tools {
   flex-wrap:wrap; justify-content:flex-end; row-gap:3px;
   max-width:calc(100% - 88px); pointer-events:none;
 }
 body.atlas-workbench .atlas-page-tools > * { pointer-events:auto; }
 body.atlas-workbench .atlas-layers > details > summary { width:fit-content; }
 body.atlas-workbench .atlas-layers:has(> details[open]) { z-index:45; }
 body.atlas-workbench .atlas-quick {
   flex-wrap:wrap; max-width:calc(100% - 72px);
 }
 body.atlas-workbench .atlas-quick .atlas-panel-summary { flex-wrap:wrap; }
 body.atlas-workbench .atlas-quick .atlas-panel-summary > span { white-space:normal; }
 body.atlas-workbench .atlas-header-nav > .atlas-theme-control select,
 body.atlas-workbench .atlas-menu > summary { min-height:24px; padding:0 4px; line-height:22px; } /* 24px: the WCAG 2.2 floor, and the header row's own height */
 body.atlas-workbench .atlas-title::before { width:16px; height:20px; }
}

/* Observation lenses retain compact chrome; details contain their reading tools. */
.network-section { padding:6px 0; }
.network-section > button, .network-results > button { display:block; width:100%; text-align:left; margin:2px 0; min-height:28px; padding:4px 6px; }
.network-results { max-height:30svh; overflow:auto; }
.network-section iframe { display:block; width:100%; aspect-ratio:16/9; border:1px solid var(--line); margin-top:6px; }
.network-calculator { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.network-calculator label { display:grid; gap:2px; }
.network-section input, .network-section select, #atlas-lens-body > input { width:100%; min-width:0; font:inherit; padding:4px; }
.network-location { color:var(--signal-alert,#d74841); font-family:var(--font-mono); }
.network-section a { display:inline-block; margin:4px 8px 4px 0; }

.network-section video { display:block; width:100%; max-height:36svh; background:#000; margin-top:6px; }

/* Universa identifies the city; functional text uses the reading face. */
.modal-toolbar > span,
body.atlas-workbench .atlas-title {
 font-family:var(--font-display); font-weight:400;
}
body[data-surface="jakarta-dashboard"] h2,
body[data-surface="jakarta-dashboard"] h3,
body[data-surface="jakarta-dashboard"] .sections > *,
.city-navigation > summary,
.city-controls > summary,
body.atlas-workbench .atlas-lenses button,
body.atlas-workbench .atlas-panel-summary .atlas-eyebrow {
 font-family:var(--font-sans); font-weight:600;
}

/* Shared reading edges: borders create deliberate insets, unframed rows do not. */
:root { --reading-gutter:12px; --rail-gutter:8px; }
.modal-toolbar { padding-inline:var(--reading-gutter); }
body[data-surface="jakarta-dashboard"] .dashboard-modal .detail-section,
body[data-surface="jakarta-dashboard"] .modal-content > .panel,
.explore-layout { padding:var(--reading-gutter); }
body[data-surface="jakarta-dashboard"] .workspace > .panel { padding-inline:var(--rail-gutter); }
#project-results .official-project > summary { padding-inline:0; column-gap:12px; align-items:baseline; }
#project-results .official-project-fields,
#project-results .crm-actions { padding-inline:0; }
.dashboard-modal .result { padding-inline:0; }
.dashboard-modal .section-heading { align-items:baseline; }
.dashboard-modal .section-heading:has(label) { align-items:end; }
/* Native selects add a browser-specific text inset; draw a consistent chevron. */
.dashboard-modal .modal-content select { appearance:none; padding:9px 32px 9px 12px; line-height:1.35; }
.dashboard-modal .modal-content input[type="search"] { appearance:none; padding:9px 12px; line-height:1.35; }
.dashboard-modal .modal-content label:has(> select) { position:relative; min-width:0; }
.dashboard-modal .modal-content label:has(> select)::after {
 content:""; position:absolute; right:14px; bottom:20px; width:6px; height:6px;
 border-right:1px solid currentColor; border-bottom:1px solid currentColor;
 transform:rotate(45deg); pointer-events:none;
}
.dashboard-modal .modal-content input,
.dashboard-modal .modal-content select { min-width:0; width:100%; }
.explore-range, .network-calculator { align-items:end; }
.paper-bar-row { padding-inline:12px; }
body.atlas-workbench #atlas-lens-evidence[open] .atlas-lens-popup .atlas-lens-context,
body.atlas-workbench #atlas-lens-evidence .atlas-lens-popup #atlas-lens-body { padding:var(--reading-gutter); }
body.atlas-embedded .atlas-embedded-evidence { padding:var(--reading-gutter); }
body.atlas-embedded .atlas-embedded-evidence .atlas-environment,
body.atlas-embedded .atlas-embedded-evidence .atlas-data,
body.atlas-embedded .atlas-embedded-evidence .atlas-footer { padding-inline:0; }

body.atlas-workbench .atlas-lens-popup a { color:var(--accent); }
input[type="range"], input[type="checkbox"] { accent-color:var(--accent); }

/* A reference-layer checkbox fits the existing evidence gutter. */
.network-section .network-check { display:flex; align-items:center; gap:6px; }
.network-section .network-check input { width:auto; flex:0 0 auto; padding:0; }

#atlas-lens-body button[hidden] { display:none; }

#atlas-lens-body table { width:100%; border-collapse:collapse; }
#atlas-lens-body table caption { text-align:left; margin-block:6px; }
#atlas-lens-body table th, #atlas-lens-body table td { text-align:left; vertical-align:top; padding:4px 0; border-bottom:1px solid var(--line); }
#atlas-lens-body table td:not(:first-child), #atlas-lens-body table th:not(:first-child) { text-align:right; padding-left:6px; font-variant-numeric:tabular-nums; }
body.atlas-workbench .lens-hours { grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 8px; font-variant-numeric:tabular-nums; }
body.atlas-workbench .atlas-lens-popup .lens-table { background:var(--bg-raised); }
body.atlas-workbench .atlas-lens-popup .lens-row {
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline;
  gap:2px 8px; padding:4px 0; border:0; border-bottom:1px solid var(--line);
  background:transparent; font-size:12px;
}
body.atlas-workbench .atlas-lens-popup .lens-row--button {
  width:100%; border:0; border-bottom:1px solid var(--line);
  background:transparent; text-align:left; cursor:pointer; border-radius:0;
}
body.atlas-workbench .atlas-lens-popup .lens-row strong {
  font-variant-numeric:tabular-nums;
}
body.atlas-workbench .atlas-lens-popup .lens-sub {
  width:100%; color:var(--dim); font-size:11px; line-height:1.45;
}

/* Air lens: the evidence panel stays a slim side rail (≤ ~21% of a 1440 map). */
@media (min-width: 701px) {
  body.atlas-workbench[data-lens="air"] .atlas-lens-popup { width:min(240px, 21vw); }
}
.wind-chip { display:none; }
@media (max-width: 700px) {
  body[data-lens="air"] .wind-chip { display:block; position:absolute; left:8px; bottom:64px; z-index:40; padding:2px 8px; font-size:11px; line-height:18px; white-space:nowrap; background:var(--bg); color:var(--fg, inherit); border:1px solid var(--line); }
}

/* Real-estate law (Dr Non, 2026-10-16): a control is as big as its label,
   never as wide as its container. Empty panel space is taken from the map,
   which is the product. Choice groups are chips that wrap; the selected one
   is solid ink, never coloured text on a pale fill. */
#atlas-lens-body .synoptic-toggles, #atlas-lens-body .synoptic-scrub { display:flex; flex-wrap:wrap; align-items:center; gap:4px; margin:6px 0; }
#atlas-lens-body .synoptic-toggles button, #atlas-lens-body .synoptic-scrub button {
  display:inline-flex; align-items:center; justify-content:center; width:auto; min-height:30px; margin:0;
  /* 10px a side made "Hujan satelit IMERG" + "Tampilan kota" 220px inside a
     214px rail — 6px over — so four controls sprawled over three bordered rows.
     7px a side brings the pair to 208px and the rail holds two per row. */
  padding:3px 7px; border:1px solid var(--line); background:transparent; color:var(--ink);
  font:500 12px/1.2 var(--font-sans); letter-spacing:0; text-transform:none; text-align:center; white-space:nowrap;
}
#atlas-lens-body .synoptic-toggles button[aria-pressed="true"] { background:var(--ink); color:var(--bg); border-color:var(--ink); }
#atlas-lens-body .synoptic-hour { min-width:0; padding:0 6px; white-space:nowrap; }

/* Reading order for the evidence rail.
   The rail used to run 13 / 12 / 12 / 11 — lens name, values, controls and
   caveats all within two pixels of each other, so nothing could win and the
   eye had no order to follow. The scale is now 14 / 13 / 12 / 11:

     what this lens is        14px, weight 600, full ink
     what it says             13px, weight 500, full ink  (values carry it)
     what I can change        12px, unchanged — borders already mark them
     what the limits are      11px, dimmed — a caveat is subordinate to the
                                        claim it qualifies, never equal to it

   Labels drop below their own values so a number and the thing naming it no
   longer arrive as one undifferentiated block of grey. */
body.atlas-workbench .atlas-lens-popup .synoptic-title { font-size:14px; font-weight:650; letter-spacing:-.01em; }
body.atlas-workbench .atlas-lens-popup .synoptic-facts { font-size:13px; }
body.atlas-workbench .atlas-lens-popup .synoptic-facts dt { font-size:11px; color:var(--dim); opacity:1; }
/* 550 against the title's 650 is the step that actually separates first from
   second rank at this size; a 14-to-13 pixel nudge is not a step. */
body.atlas-workbench .atlas-lens-popup .synoptic-facts dd { font-weight:550; }
/* The whole ladder is restated here rather than split across two stylesheets,
   so the order the rail reads in cannot drift one file at a time. */
body.atlas-workbench .atlas-lens-popup .synoptic-note { font-size:11px; color:var(--dim); opacity:.8; }
body.atlas-workbench .atlas-lens-popup .synoptic-toggles button,
body.atlas-workbench .atlas-lens-popup .synoptic-scrub button { font-size:12px; }
#atlas-lens-body > button { min-height:32px; padding:4px 8px; margin:0; border:0; border-bottom:1px solid var(--line); background:transparent; font:12px/1.3 var(--font-sans); letter-spacing:0; }
@media (pointer:coarse) {
  #atlas-lens-body .synoptic-toggles button, #atlas-lens-body .synoptic-scrub button, #atlas-lens-body > button { min-height:32px; }
}

/* Wind compass: on the map beside the zoom controls (phone: above the wind chip), never over the lens panel. */
.wind-compass { display:none; }
body[data-lens="air"] .wind-compass { display:flex; align-items:center; gap:6px; position:absolute; right:52px; bottom:44px; z-index:40; max-width:min(320px, calc(100% - 64px)); padding:4px 8px; font-size:12px; line-height:16px; background:var(--bg); color:var(--fg, inherit); border:1px solid var(--line); }
body[data-lens="air"] .wind-compass svg { flex:none; }
@media (max-width: 700px) { body[data-lens="air"] .wind-compass { right:auto; left:8px; bottom:96px; font-size:11px; } }

/* Evidence prose has a shared measure; the containing rail owns vertical scroll. */
.dashboard-modal .modal-content p, .paper-methods p { max-width:65ch; }

/* Haze evidence: one reading edge, four comparable age intervals. */
.haze-evidence-root { margin-bottom:12px; }
.haze-histogram { margin:8px 0; }
.haze-histogram figcaption { font-size:11px; margin-bottom:6px; opacity:.78; }
.haze-age-row { display:grid; grid-template-columns:56px minmax(20px,64px) auto; gap:6px; align-items:center; font-variant-numeric:tabular-nums; margin-bottom:2px; }
.haze-age-row span:first-child { font-size:11px; opacity:.78; }
.haze-age-row meter { width:100%; height:6px; accent-color:var(--amber); }
.haze-age-row > :last-child { text-align:right; font-size:11px; font-weight:600; }
.haze-evidence-root details { margin:8px 0; }
.haze-evidence-root details summary { font-size:12px; font-weight:600; cursor:pointer; }
.haze-evidence-root details button {
  display:flex; justify-content:space-between; align-items:baseline; width:100%; margin:2px 0; padding:4px 0;
  text-align:left; border:0; border-bottom:1px solid var(--line); background:transparent; font:11px/1.3 var(--font-sans);
  border-radius:0; min-height:auto; color:var(--ink);
}
.haze-evidence-root details button:hover { color:var(--accent); }
.haze-official-image { display:block; width:100%; height:auto; margin:6px 0; }
#atlas-lens-body .haze-evidence-root button { width:fit-content; min-height:26px; padding:3px 6px; font:11px/1.3 var(--font-sans); border:1px solid var(--line); }
.haze-age-row meter::-webkit-meter-optimum-value { background:var(--amber); }
.haze-age-row meter::-moz-meter-bar { background:var(--amber); }
#atlas-lens-body .haze-total { font-size:15px; font-weight:600; line-height:1.25; color:var(--ink); margin:6px 0; }
.haze-age-row meter::-webkit-meter-bar { background:var(--line); border:0; border-radius:0; }
.haze-local-links a { display:block; width:fit-content; max-width:100%; font-size:11px; margin:2px 0; }

/* Phone overlays, measured on the live build at 390x844 and 360x640 (a rendered
   probe: overlapping blocks, hit-tested controls). Four things were on top of
   each other, and one of them was information:
   - the lens panel covered the left 40-56px of the observation card, the box
     that names the layer's source, tier and date, on every lens;
   - in the air lens the panel ran down over the wind compass, whose own CSS
     says it is never to sit over the lens panel, and over the forecast slider;
   - "Layers" and the page tools collided by 22px at 360px (fixed below).
   The panel and the card now share the row: the panel is 62vw at most, the card
   takes what is left, and the air panel stops above the compass and the chip.
   The compact masthead and lens strip are the owner's ruling and are untouched. */
@media (max-width: 700px) {
  body.atlas-workbench .atlas-lens-popup { width:min(240px, 62vw); }
  body:has(#atlas-lens-evidence[open]) .atlas-observation-hud { max-width:calc(100vw - min(240px, 62vw) - 28px); }
  body.atlas-workbench[data-lens="air"] .atlas-lens-popup { max-height:calc(100svh - 252px); }
}
/* "Layers +" lost its "+" under "City watch" at 360px: three buttons of 71, 113
   and 99px do not fit beside it. A wrapped button was worse (it dropped onto the
   observation card), so the three give up 5px of padding each side instead. */
/* "Data & sources" sat 8px left of its slot at every width: the workbench rule
   `.atlas-embedded-drawer { right:8px }` (specificity 0,2,1) beat the page-tools
   rule that sets `right:auto` (0,2,0), and on a position:relative element
   `right:8px` is a leftward nudge. At 360px that was the whole overlap with
   "Research & method". The same element still carried `top:8px` from when it
   was absolutely placed, a downward nudge: "Data & sources" hung 8px below its
   two neighbours at every width, on desktop too. */
body.atlas-workbench .atlas-page-tools > .atlas-embedded-drawer { right:auto; left:auto; top:auto; }
body.atlas-workbench .atlas-page-tools > .atlas-embedded-drawer > summary { min-height:30px; }
/* The three tools were 30, 24 and 30px tall on a flex-start row, so "Data &
   sources" hung 11px below "Research & method". One row, one height, so their
   top and bottom edges meet. */
body.atlas-workbench .atlas-page-tools { align-items:stretch; }
@media (max-width: 380px) {
  body.atlas-workbench .atlas-page-tools { gap:3px; }
  body.atlas-workbench .atlas-page-tools > .atlas-watch .atlas-watch-shell > summary,
  body.atlas-workbench .atlas-page-tools > .atlas-embedded-drawer > summary,
  body.atlas-workbench .atlas-page-tools .atlas-research-link { padding-inline:2px; }
  /* The header's minimum width was 362px (brand 159 + language 115 + Controls
     65 + gaps), so every phone under 362px scrolled sideways (2px at 360, 42px
     at 320) and the title ran under the language select. The title now yields
     and ends in an ellipsis, and the select gives back 15px. */
  body.atlas-workbench .atlas-header { min-width:0; max-width:100%; }
  body.atlas-workbench .atlas-header-meta { min-width:0; overflow:hidden; }
  body.atlas-workbench .atlas-title { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  body.atlas-workbench .atlas-header-nav .atlas-theme-control select { width:100px; }
}
/* Below 340px the three tools cannot sit beside Layers: they wrap to a second
   row, and the observation card moves down to clear it. */
@media (max-width: 340px) {
  body.atlas-workbench .atlas-observation-hud { top:86px; }
}
/* Touch, under MSH (workspace CLAUDE.md 11.12). Map zoom/rotate are icon buttons
   on the map's edge, three stacked at 28px with an !important no un-flagged
   rule could beat: they get real 44px. Controls inside a lens panel are a dense
   group of text controls: a box is its label plus padding, 32px high on touch,
   4px apart, never a 44px slab. (This block briefly set them to 44px and made
   the haze panel's chips and link rows two and three times taller than their
   words. The owner called that spatial hallucination, and it was.) Links in
   running text get a hit area 16px taller than the text, not a taller line. */
@media (pointer: coarse) {
  body.atlas-workbench .maplibregl-ctrl-group button { width:44px !important; height:44px !important; }
  #atlas-lens-body button, #atlas-lens-body summary, #atlas-lens-body select, #atlas-lens-body input[type="range"] { min-height:32px; min-width:32px; }
  #atlas-lens-body .haze-evidence-root button, #atlas-lens-body .haze-evidence-root details button { min-height:32px; }
  /* Links in running text cannot be 44px without breaking the line, so they get
     a hit area 16px taller than the text. Not 44: stacked links sit about 19px
     apart, and a taller extension makes the later one cover the centre of the
     earlier. Links that stand alone on their own line are real 44px rows. */
  #atlas-lens-body a { position:relative; }
  #atlas-lens-body a::after { content:""; position:absolute; left:-6px; right:-6px; top:-8px; bottom:-8px; }
}

/* The observation card's closed state on a phone was `display:list-item;
   min-height:44px; padding:12px`: a one-word disclosure drawn as a 188x112px box,
   and once I narrowed the card the marker wrapped onto its own line above the
   word. It is a chip: marker and label on one line, label plus padding. */
@media (max-width: 700px) {
  .atlas-hud-details > summary { display:flex; align-items:center; gap:6px; min-height:32px; padding:4px 8px; white-space:nowrap; }
}

/* "Play wind field" and "Now" (and the green lens's mode buttons) sit in a flex
   row, but `#atlas-lens-body button { display:block; width:100%; min-height:44px }`
   made each a full-width 44px slab on its own row, with a stray hairline down the
   right. A row of actions is a row of chips: label plus padding, side by side. */
#atlas-lens-body .crm-actions { gap:4px; }
#atlas-lens-body .crm-actions button { display:inline-flex; align-items:center; width:auto; min-height:32px; margin:0; padding:3px 10px; border:1px solid var(--line); background:transparent; color:var(--ink); font:500 12px/1.2 var(--font-sans); text-align:center; white-space:nowrap; }
#atlas-lens-body .crm-actions button[aria-pressed="true"] { background:var(--ink); color:var(--bg); border-color:var(--ink); }

/* The observation card's "Data & sources" link was `min-height:44px`: a 16px line
   in a 44px row, so every card ended in a band of nothing. A link is its text;
   the hit area is invisible and 16px taller than the line. */
.atlas-observation-hud a { min-height:0; display:inline-block; position:relative; padding:0; }
.atlas-observation-hud a::after { content:""; position:absolute; left:-6px; right:-6px; top:-8px; bottom:-8px; }

/* A scenario belongs to its selected boundary, inside the existing evidence drawer. */
#atlas-lens-body .polder-budget { min-width:0; }
#atlas-lens-body .polder-budget label { display:block; margin:6px 0; }
#atlas-lens-body .polder-budget select { width:100%; max-width:100%; min-width:0; font:inherit; }
#atlas-lens-body .polder-budget input[type="number"] { display:block; width:10ch; max-width:100%; padding:3px 5px; font:inherit; }
#atlas-lens-body .polder-budget input[type="range"] { display:block; width:100%; }
#atlas-lens-body .polder-budget button { width:fit-content; min-height:28px; padding:4px 6px; margin:2px 0; font:12px/1.3 var(--font-sans); }
.budget-actions { display:flex; flex-wrap:wrap; gap:4px; margin:6px 0; }
.budget-fields { display:flex; flex-wrap:wrap; gap:6px 16px; }
.budget-total { font:600 24px/1.2 var(--font-sans); font-variant-numeric:tabular-nums; }
.budget-excess { color:var(--signal-alert,#d74841); }
.budget-chart { margin:8px 0; }
.budget-chart svg { display:block; width:100%; height:auto; overflow:visible; font:11px var(--font-sans); }
.budget-chart text { fill:var(--ink); }
.budget-rain { fill:var(--amber); }
.budget-grid { stroke:var(--line); stroke-width:.5; }
.budget-account { fill:none; stroke:var(--signal-water); stroke-width:2.5; }
.budget-baseline { fill:none; stroke:var(--ink); stroke-opacity:.65; stroke-dasharray:4 3; stroke-width:1.5; }
.budget-space { stroke:var(--signal-alert,#d74841); stroke-dasharray:2 2; stroke-width:1.5; }
.budget-cursor { stroke:var(--ink); stroke-width:.6; }
.budget-dot { fill:var(--signal-water); }

#atlas-lens-body .polder-budget [hidden] { display:none; }

/* The explicit scenario has a two-series hourly plot: keep its 11px labels
   readable instead of shrinking a 360px plot into the normal 206px column.
   Closed evidence and every other lens keep their earned compact width. */
body.atlas-workbench .atlas-lens-popup:has(details[open] > .polder-budget) { width:min(384px,calc(100vw - 16px)); }

.budget-actions > div { display:flex; gap:4px; flex-wrap:wrap; }

/* Waterways with the polder budget open, on a phone. The budget widens the panel
   to min(384px, 100vw - 16px), which on a phone is the whole width, and the panel
   then sat over the map's zoom and rotate buttons (top 88px of the group covered
   at 360x640). It keeps its width but stops short of the map-control column.
   And the first line of every lens body sat 26px below the heading, the first
   line of an opened section 20px below its summary: a padding plus a margin that
   nobody chose. The padding stays; the stacked margin goes. */
@media (max-width: 700px) {
  body.atlas-workbench .atlas-lens-popup:has(details[open] > .polder-budget) { width:calc(100vw - 68px); }
  /* With the budget open, the two paragraphs about the whole waterways layer (feature
     count, what OSM maps) pushed the budget's answer 70px below the fold at 360x640.
     They describe the layer, not the budget, and come back when the budget closes. */
  body.atlas-workbench .atlas-lens-popup:has(details[open] > .polder-budget) #atlas-lens-body > p:not(details ~ p) { display:none; }
}
#atlas-lens-body > :first-child, #atlas-lens-body .network-section > :first-child { margin-top:0; }
/* The budget's own button rule (min-height 28px, specificity 1,1,1) outranked the
   touch rule for lens panels, so on a phone its five buttons stayed 28px. Same
   floor as every other panel control: label plus padding, 32px on touch. */
@media (pointer: coarse) {
  #atlas-lens-body .polder-budget button, #atlas-lens-body .polder-budget input[type="number"] { min-height:32px; }
}
/* On a phone the budget's heading repeats, word for word, the boundary name the
   select directly above it already shows: a line spent saying the same thing
   twice. It stays in the accessibility tree as the section's heading. */
@media (max-width: 700px) {
  #atlas-lens-body .polder-budget > h3 { position:absolute; width:1px; height:1px; margin:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}
/* Below 340px the page tools wrap to a second row: the wider budget panel starts
   under that row and gives back the same height at the bottom; the budget's
   how-to line yields so its answer stays on the first screen; and the air panel
   stops above a wind compass that is taller here because it wraps. */
@media (max-width: 340px) {
  body.atlas-workbench .atlas-lens-popup:has(details[open] > .polder-budget) { top:calc(var(--atlas-header-row) + var(--atlas-lenses-row) + 90px); max-height:calc(100svh - 242px); }
  #atlas-lens-body .polder-budget > p:first-child { display:none; }
  body.atlas-workbench[data-lens="air"] .atlas-lens-popup { max-height:calc(100svh - 272px); }
}
/* The budget's action buttons carried a lone right-edge hairline, so "Locate
   boundary | Refresh rain |" read as a rule-separated list. They are chips like
   every other action row: a full hairline, the selected one in solid ink. */
#atlas-lens-body .budget-actions button { border:1px solid var(--line); background:transparent; color:var(--ink); }
#atlas-lens-body .budget-actions button[aria-pressed="true"] { background:var(--ink); color:var(--bg); border-color:var(--ink); }

/* Reference lookup stays behind its own disclosure; no permanent map chrome. */
.preparedness-context input[type="search"] { width:100%; min-width:0; max-width:100%; font:inherit; padding:4px; }
.preparedness-list { list-style:none; margin:8px 0; padding:0; }
.preparedness-list li { margin:8px 0; }
.preparedness-list small { display:block; color:var(--dim); }
#atlas-lens-body .preparedness-context button { max-width:100%; white-space:normal; }

.preparedness-selection { position:absolute; bottom:64px; left:8px; max-width:min(52ch,calc(100% - 80px)); padding:6px 8px; background:var(--bg); color:var(--ink); font:13px/1.4 var(--font-sans); z-index:5; }
.preparedness-selection p { margin:0; }
body:has(#atlas-lens-evidence[open]) .preparedness-selection { display:none; }
#atlas-lens-body .preparedness-list button { border:1px solid var(--line); background:transparent; color:var(--ink); text-align:left; line-height:1.35; }

/* A scoped recovery action stays a label-sized chip, including on touch. */
#atlas-lens-body .network-retry { width:fit-content; max-width:100%; min-height:32px; margin:4px 0 0; padding:4px 6px; border:1px solid var(--line); background:transparent; color:var(--ink); font:12px/1.3 var(--font-sans); white-space:normal; }

/* MSH: a ranking row is a line of text, not a 44px slab. The base
   `#atlas-lens-body button { min-height:44px }` reached the exposure rows
   because they sit inside a table wrapper, out of reach of the
   `> button` rule above. Touch keeps its 32px via the coarse block. */
#atlas-lens-body .lens-row--button { min-height:0; margin:0; padding:4px 0; }
@media (pointer: coarse) { #atlas-lens-body .lens-row--button { min-height:32px; } }

/* Shared request state follows the watch grid's reading edge, once. */
#atlas-watch-request-status { margin: 0; padding: 6px 10px; }

/* Full regional reference is reachable in Controls at every viewport. */
.regional-times-list { display:grid; gap:4px; padding-block:4px; }
.regional-times-list .tz { display:grid; grid-template-columns:1fr auto auto; gap:8px; font-variant-numeric:tabular-nums; }

/* Modular map workspace: one compact source instrument in the existing header. */
body[data-surface="jakarta-dashboard"] .masthead .source-status { position:relative; flex:none; border:0; margin:0; background:transparent; }
body[data-surface="jakarta-dashboard"] .masthead .source-status > summary { min-height:24px; padding:2px 4px; gap:4px; white-space:nowrap; line-height:19px; }
body[data-surface="jakarta-dashboard"] .masthead .source-status-more { display:none; }
body[data-surface="jakarta-dashboard"] .source-status-popover { box-sizing:border-box; position:fixed; top:var(--source-popup-top,40px); left:var(--source-popup-left,8px); right:auto; z-index:90; width:min(560px,calc(100vw - 16px)); max-height:60svh; overflow:auto; padding:8px; background:var(--bg); border:1px solid var(--line); }
body[data-surface="jakarta-dashboard"] .source-status:not([open]) .source-status-popover { display:none; }
body[data-surface="jakarta-dashboard"] .source-status-toolbar { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; }
body[data-surface="jakarta-dashboard"] #source-status-overview { flex:1; min-width:12ch; margin:0; max-width:65ch; }
body[data-surface="jakarta-dashboard"] .source-status-toolbar #refresh { min-height:32px; padding:4px 8px; line-height:1.4; }
body[data-surface="jakarta-dashboard"] .source-status-rows { padding:8px 0 0; }
body[data-surface="jakarta-dashboard"] .source-status-row { max-width:65ch; }
@media(max-width:1000px) {
 body[data-surface="jakarta-dashboard"] .masthead { grid-template-columns:auto auto minmax(0,1fr); }
 body[data-surface="jakarta-dashboard"] .city-preferences { justify-content:flex-end; flex-wrap:wrap; gap:4px; max-width:100%; }
 body[data-surface="jakarta-dashboard"] .city-navigation { justify-self:start; }
 body[data-surface="jakarta-dashboard"] .masthead-clock .tz-city { display:none; }
 body[data-surface="jakarta-dashboard"] .source-status-popover { position:fixed; }
}
@media(max-width:600px) {
 body[data-surface="jakarta-dashboard"] .language-toggle,
 body[data-surface="jakarta-dashboard"] .city-controls > summary,
 body[data-surface="jakarta-dashboard"] .city-navigation > summary { height:auto; min-height:24px; padding:2px 4px; }
}

body[data-surface="jakarta-dashboard"] .masthead #source-status-line { display:inline-block; min-inline-size:8ch; }

body[data-surface="jakarta-dashboard"] .city-preferences { flex-wrap:wrap; justify-content:flex-end; }
body[data-surface="jakarta-dashboard"] .masthead-clock { flex-wrap:wrap; min-width:0; flex-shrink:1; }

/* The city is already named in the masthead. Preserve its accessible map
   heading/readiness without making a second strip above the map. */
body[data-surface="jakarta-dashboard"] .map-panel { grid-template-rows:minmax(0,1fr); }
body[data-surface="jakarta-dashboard"] .map-panel > .map-heading.visually-hidden { padding:0; }
body[data-surface="jakarta-dashboard"] #city-map { grid-row:1; }

/* The thin version chip beside JKTX fits on desktop and standard phones (>=346px)
   but causes the masthead to wrap to 56px at narrow phone widths (320–345px).
   Hide it there; the footer already carries the build stamp. */
@media (max-width: 345px) {
  body[data-surface="jakarta-dashboard"] .city-version { display:none; }
}
