:root {
  --ink: #0c2424;
  --ink-soft: #38504e;
  --paper: #f4f1e8;
  --paper-deep: #eae6da;
  --white: #fffdf7;
  --line: #cbc9be;
  --line-dark: #9fa8a2;
  --green: #21a866;
  --green-dark: #0b7f4b;
  --green-pale: #d8eedc;
  --aqua: #b9dadd;
  --orange: #e46f38;
  --red: #b84b3c;
  --shadow: 0 18px 50px rgba(12, 36, 36, .12);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-snap: cubic-bezier(.2, .8, .2, 1);
  --topbar: 64px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { cursor: pointer; }
img, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #f19a50; outline-offset: 2px; }
::selection { color: var(--white); background: var(--green-dark); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; left: 16px; top: 10px;
  min-height: 44px; padding: 10px 14px; color: white; background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky; z-index: 100; top: 0;
  height: var(--topbar);
  display: grid; grid-template-columns: minmax(205px, 1fr) auto minmax(205px, 1fr);
  align-items: center; gap: 24px;
  padding: 0 clamp(18px, 2.4vw, 42px);
  background: rgba(244, 241, 232, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { position: relative; width: 34px; height: 34px; flex: 0 0 auto; }
.brand-mark::before {
  position: absolute; content: ""; inset: 10px;
  border-radius: 50%; background: var(--green);
}
.brand-mark::after {
  position: absolute; content: ""; inset: 7px 1px;
  border: 1.8px solid var(--ink); border-radius: 50%; transform: rotate(-28deg);
}
.brand-mark i { position: absolute; z-index: 1; width: 4px; height: 4px; right: 4px; top: 7px; border-radius: 50%; background: var(--ink); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 14px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--ink-soft); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: stretch; gap: 4px; height: 100%; }
.primary-nav a {
  position: relative; display: grid; place-items: center;
  padding: 0 12px; color: var(--ink-soft); font-size: 13px; font-weight: 650;
  text-decoration: none;
}
.primary-nav a::after { position: absolute; content: ""; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--green); transform: scaleX(0); transition: transform 180ms var(--ease-snap); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.demo-lozenge { display: inline-flex; align-items: center; gap: 7px; font: 600 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.demo-lozenge > span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(33, 168, 102, .11); }
.account-button { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--ink); background: transparent; font-size: 12px; font-weight: 700; }
.account-button:hover { color: var(--white); background: var(--ink); }
.nav-toggle { display: none; }
.truth-strip { min-height: 31px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 5px 40px; color: #eaf1ed; background: var(--ink); font-size: 10px; letter-spacing: .02em; }
.truth-strip > span { color: #87d3aa; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.truth-strip p { margin: 0; }
.truth-strip-close { position: absolute; right: 18px; width: 26px; height: 26px; color: inherit; background: transparent; border: 0; font-size: 18px; }

.eyebrow { margin: 0; color: var(--green-dark); font: 750 9px/1.25 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 6rem); line-height: .93; }
h2 { font-size: clamp(1.8rem, 3.1vw, 3.7rem); line-height: .98; }
h3 { font-size: 1.05rem; line-height: 1.16; }

.button {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 17px; border: 1px solid var(--ink);
  font-size: 12px; font-weight: 750; text-decoration: none;
  transition: color 160ms var(--ease-snap), background-color 160ms var(--ease-snap), transform 120ms var(--ease-snap);
}
.button:active { transform: translateY(1px); }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { border-color: var(--green-dark); background: var(--green-dark); }
.button-secondary { background: transparent; }
.button-secondary:hover { color: var(--white); background: var(--ink); }
.button-wide { width: 100%; }
.button-small { min-height: 36px; padding: 0 12px; font-size: 11px; }
.text-button { padding: 4px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-dark); font-size: 11px; font-weight: 750; }
.text-button:hover { border-color: var(--green-dark); color: var(--green-dark); }
.icon-button { width: 44px; height: 44px; border: 0; background: transparent; }

.field { display: grid; gap: 6px; }
.field > span:first-child, .segment-field legend { color: var(--ink-soft); font-size: 10px; font-weight: 750; letter-spacing: .035em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 41px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 0; background: rgba(255, 253, 247, .64);
  font-size: 12px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-dark); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-dark); outline: 2px solid rgba(33, 168, 102, .18); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.input-with-icon { position: relative; display: block; }
.input-with-icon > span { position: absolute; z-index: 1; left: 11px; top: 50%; color: var(--green-dark); transform: translateY(-50%); }
.input-with-icon input { padding-left: 32px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--green-dark); }
.check-row > span { display: grid; gap: 2px; font-size: 12px; }
.check-row small { color: var(--ink-soft); font-size: 10px; font-weight: 400; }
.check-row.compact { min-height: 40px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); }
.form-note { margin: 12px 0 0; color: var(--ink-soft); font-size: 10px; }

/* Viewer */
.workspace {
  min-height: calc(100vh - var(--topbar) - 31px);
  display: grid; grid-template-columns: clamp(290px, 23.5vw, 352px) minmax(470px, 1fr) clamp(270px, 21.5vw, 326px);
  border-bottom: 1px solid var(--line);
}
.search-pane, .detail-pane { min-width: 0; background: var(--paper); }
.search-pane { display: flex; min-height: 700px; max-height: calc(100vh - var(--topbar) - 31px); flex-direction: column; border-right: 1px solid var(--line); }
.search-intro { padding: clamp(20px, 2.4vh, 31px) clamp(18px, 2vw, 28px) 13px; }
.search-intro h1 { max-width: 310px; margin: 9px 0 10px; font-size: clamp(2rem, 2.8vw, 2.8rem); line-height: .96; }
.search-intro > p:last-child { max-width: 300px; margin-bottom: 0; color: var(--ink-soft); font-size: 11px; }
.search-form { display: grid; gap: 10px; padding: 9px clamp(18px, 2vw, 28px) 15px; border-bottom: 1px solid var(--line); }
.segment-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.segment-field legend { margin-bottom: 6px; }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.segments label { position: relative; min-width: 0; }
.segments label + label { border-left: 1px solid var(--line); }
.segments input { position: absolute; opacity: 0; }
.segments span { min-height: 36px; display: grid; place-items: center; font-size: 11px; font-weight: 650; cursor: pointer; }
.segments input:checked + span { color: var(--white); background: var(--ink); }
.segments input:focus-visible + span { outline: 3px solid #f19a50; outline-offset: -3px; }
.range-field > span { display: flex; justify-content: space-between; }
.range-field output { color: var(--ink); font: 700 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.range-field input { min-height: 10px; height: 3px; padding: 0; border: 0; accent-color: var(--green-dark); }
.filter-more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-more summary { min-height: 34px; display: flex; align-items: center; justify-content: space-between; list-style: none; color: var(--ink-soft); font-size: 10px; font-weight: 750; cursor: pointer; }
.filter-more summary::-webkit-details-marker { display: none; }
.filter-more[open] summary span { transform: rotate(45deg); }
.sensor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 8px; padding: 1px 0 10px; }
.sensor-grid label { display: flex; align-items: center; gap: 5px; font-size: 10px; }
.sensor-grid input { margin: 0; accent-color: var(--green-dark); }
.search-submit { justify-content: space-between; }
.results-heading { display: flex; align-items: end; justify-content: space-between; padding: 14px clamp(18px, 2vw, 28px) 9px; }
.results-heading h2 { margin: 4px 0 0; font-size: 18px; }
.results-list { min-height: 132px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-dark) transparent; }
.result-card { width: 100%; display: grid; grid-template-columns: 57px 1fr auto; gap: 11px; align-items: center; padding: 10px clamp(18px, 2vw, 28px); text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; }
.result-card:hover { background: rgba(255, 253, 247, .62); }
.result-card.active { background: var(--green-pale); box-shadow: inset 3px 0 var(--green-dark); }
.result-thumb { position: relative; width: 57px; height: 48px; overflow: hidden; background: #7f9864; }
.result-thumb::before { position: absolute; content: ""; inset: -12px; background: repeating-linear-gradient(24deg, transparent 0 9px, rgba(255,255,255,.16) 9px 10px), linear-gradient(135deg, #496b4f, #c6a974 45%, #4b8082 46%, #365f62 52%, #869659 53%); transform: rotate(-4deg); }
.result-thumb.radar::before { background: repeating-linear-gradient(18deg, #182727 0 4px, #5f7470 4px 5px, #273b3a 5px 11px); }
.result-thumb i { position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.46); }
.result-copy { min-width: 0; }
.result-copy strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.result-copy span { display: block; margin-top: 3px; color: var(--ink-soft); font: 9px/1.25 ui-monospace, SFMono-Regular, Consolas, monospace; }
.result-meta { display: grid; justify-items: end; gap: 4px; }
.result-meta strong { font-size: 11px; }
.result-meta span { color: var(--ink-soft); font-size: 9px; }
.result-skeleton { height: 69px; border-top: 1px solid var(--line); background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.58) 50%, transparent 70%); background-size: 220% 100%; animation: skeleton 1.2s var(--ease-in-out) infinite; }

.map-pane { min-width: 0; display: grid; grid-template-rows: 48px minmax(570px, 1fr) 35px; background: #cfdbd1; }
.map-toolbar { position: relative; z-index: 3; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; background: rgba(255,253,247,.94); border-bottom: 1px solid var(--line); }
.layer-switch { display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--paper-deep); }
.layer-switch button { min-height: 31px; padding: 0 10px; border: 0; color: var(--ink-soft); background: transparent; font-size: 10px; font-weight: 700; }
.layer-switch button.active { color: var(--white); background: var(--ink); }
.map-tool-actions { display: flex; align-items: center; gap: 4px; }
.tool-button { min-height: 35px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid transparent; color: var(--ink-soft); background: transparent; font-size: 10px; font-weight: 700; }
.tool-button:hover, .tool-button[aria-pressed="true"] { border-color: var(--line-dark); color: var(--ink); background: var(--white); }
.tool-count { min-width: 17px; height: 17px; display: grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; font-size: 8px; }
.map-stage { position: relative; min-height: 0; overflow: hidden; background: #cadad6; }
#map-canvas { width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
#map-canvas.is-panning { cursor: grabbing; }
#map-canvas.is-drawing { cursor: crosshair; }
.map-attribution, .map-coordinate { position: absolute; z-index: 2; bottom: 8px; padding: 4px 7px; color: rgba(255,255,255,.84); background: rgba(12,36,36,.78); font: 8px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.map-attribution { left: 8px; }
.map-coordinate { right: 8px; }
.map-zoom { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; box-shadow: 0 6px 22px rgba(12,36,36,.16); }
.map-zoom button { width: 37px; height: 37px; border: 0; border-bottom: 1px solid var(--line); background: var(--white); font-size: 18px; font-weight: 500; }
.map-zoom button:last-child { border-bottom: 0; font-size: 14px; }
.map-zoom button:hover { color: var(--white); background: var(--ink); }
.map-legend { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 10px; background: rgba(255,253,247,.91); box-shadow: 0 6px 22px rgba(12,36,36,.1); font-size: 8px; font-weight: 700; }
.map-legend span { display: flex; align-items: center; gap: 4px; }
.map-legend i { width: 11px; height: 8px; display: block; border: 1px solid; background: rgba(33,168,102,.18); }
.map-legend .legend-radar { border-color: var(--orange); background: rgba(228,111,56,.18); }
.map-legend .legend-selected { border-width: 2px; border-color: var(--ink); background: rgba(255,255,255,.5); }
.map-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; background: var(--paper); border-top: 1px solid var(--line); }
.map-caption p { min-width: 0; margin: 0; overflow: hidden; color: var(--ink-soft); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.compare-overlay { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.compare-overlay > div { position: absolute; inset: 0 50% 0 0; overflow: hidden; border-right: 2px solid var(--white); }
.compare-overlay > div:nth-child(2) { inset: 0 0 0 50%; border: 0; }
.compare-overlay > div span { position: absolute; top: 68px; left: 14px; min-width: 27px; height: 27px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 50%; font: 700 10px ui-monospace, monospace; }
.compare-overlay > div:nth-child(2) span { left: auto; right: 14px; background: var(--green-dark); }
.compare-overlay label { position: absolute; inset: 0; pointer-events: auto; }
.compare-overlay input { width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.aoi-panel { position: absolute; z-index: 4; left: 14px; bottom: 34px; width: 220px; padding: 13px; background: var(--white); box-shadow: var(--shadow); border-left: 3px solid var(--green); }
.aoi-panel strong { display: block; margin: 6px 0 10px; font-size: 12px; }
.aoi-panel > div { display: flex; align-items: center; gap: 10px; }
.band-panel { position: absolute; z-index: 4; left: 14px; bottom: 34px; width: 245px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 13px; background: var(--white); box-shadow: var(--shadow); border-left: 3px solid var(--orange); }
.band-panel > div, .band-panel > strong, .band-panel > button, .band-panel > small { grid-column: 1/-1; }
.band-panel > div { display: flex; align-items: center; justify-content: space-between; }
.band-panel > div button { width: 27px; height: 27px; border: 0; background: transparent; font-size: 17px; }
.band-panel > strong { font-size: 11px; }
.band-panel label { display: grid; grid-template-columns: 17px 1fr; align-items: center; font: 700 9px ui-monospace, monospace; }
.band-panel select { min-width: 0; width: 100%; height: 31px; padding: 3px; border: 1px solid var(--line); background: var(--paper); font-size: 8px; }
.band-panel small { color: var(--ink-soft); font-size: 8px; }
.map-empty { position: absolute; z-index: 5; inset: 50% auto auto 50%; min-width: 240px; display: grid; gap: 4px; padding: 18px; text-align: center; background: var(--white); box-shadow: var(--shadow); transform: translate(-50%,-50%); }
.map-empty span { color: var(--ink-soft); font-size: 11px; }

.detail-pane { min-height: 700px; max-height: calc(100vh - var(--topbar) - 31px); overflow: auto; border-left: 1px solid var(--line); }
.detail-empty { min-height: 100%; display: grid; place-content: center; justify-items: center; padding: 34px; text-align: center; }
.detail-empty > span { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--green-dark); font-size: 25px; }
.detail-empty h2 { margin: 15px 0 6px; font-size: 23px; }
.detail-empty p { max-width: 220px; color: var(--ink-soft); font-size: 11px; }
.scene-detail { animation: detail-in 320ms var(--ease-out) both; }
.scene-detail > header { padding: clamp(20px, 2.4vw, 29px) clamp(19px, 2vw, 27px) 15px; }
.detail-status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.type-lozenge { padding: 4px 7px; color: var(--green-dark); background: var(--green-pale); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.type-lozenge.radar { color: #9a3f1e; background: #f3d6c8; }
.availability { color: var(--green-dark); font-size: 9px; font-weight: 700; }
.availability::before { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; content: ""; vertical-align: 1px; }
.availability.restricted { color: var(--orange); }
.scene-id { margin: 14px 0 5px; overflow: hidden; color: var(--ink-soft); font: 8px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.scene-detail h2 { margin: 0; font-size: clamp(1.7rem, 2.3vw, 2.3rem); line-height: .98; }
.detail-date { margin: 8px 0 0; color: var(--ink-soft); font-size: 10px; }
.scene-preview { position: relative; height: 118px; overflow: hidden; background: #617956; }
.scene-preview::before { position: absolute; content: ""; inset: -26px; background: repeating-linear-gradient(35deg, transparent 0 18px, rgba(244,241,232,.12) 18px 20px), linear-gradient(145deg, #365f4c 0 30%, #b19b61 30% 52%, #4e7f86 52% 59%, #87955e 59%); transform: rotate(-3deg) scale(1.08); }
.scene-preview.radar::before { background: repeating-linear-gradient(20deg, #172727 0 7px, #7c8a83 7px 8px, #2f4543 8px 17px); }
.scene-preview.ndvi::before { background: repeating-linear-gradient(35deg, transparent 0 18px, rgba(255,255,255,.14) 18px 20px), linear-gradient(145deg, #572d1a, #dc912e 33%, #4a9c46 33% 68%, #154c29 68%); }
.scene-preview.custom::before { background: repeating-linear-gradient(35deg, transparent 0 18px, rgba(255,255,255,.16) 18px 20px), linear-gradient(145deg, #45216e, #b8538d 32%, #3c9c9b 32% 66%, #d4a44d 66%); }
.scene-preview span { position: absolute; z-index: 1; left: 9px; bottom: 8px; padding: 3px 5px; color: white; background: rgba(12,36,36,.72); font: 7px ui-monospace, monospace; letter-spacing: .08em; }
.scene-preview i { position: absolute; z-index: 1; inset: 8px; border: 1px solid rgba(255,255,255,.38); }
.metadata-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 4px clamp(19px, 2vw, 27px); border-bottom: 1px solid var(--line); }
.metadata-grid > div { min-width: 0; padding: 9px 0; border-top: 1px solid var(--line); }
.metadata-grid > div:nth-child(odd) { padding-right: 8px; }
.metadata-grid > div:nth-child(even) { padding-left: 11px; border-left: 1px solid var(--line); }
.metadata-grid .metadata-wide { grid-column: 1/-1; padding-right: 0; }
.metadata-grid dt { color: var(--ink-soft); font: 8px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.metadata-grid dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 700; }
.band-block { padding: 12px clamp(19px, 2vw, 27px); border-bottom: 1px solid var(--line); }
.band-block > span { color: var(--ink-soft); font: 8px ui-monospace, monospace; text-transform: uppercase; }
.band-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.band-list span { padding: 3px 6px; border: 1px solid var(--line); font-size: 8px; }
.license-note { margin: 0; padding: 11px clamp(19px, 2vw, 27px); color: var(--ink-soft); background: var(--paper-deep); font-size: 9px; }
.detail-actions { display: grid; gap: 7px; padding: 14px clamp(19px, 2vw, 27px) 8px; }
.detail-action-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.detail-action-row .button { padding-right: 8px; padding-left: 8px; }
.detail-link { justify-self: start; margin-top: 3px; }
.detail-disclaimer { padding: 0 clamp(19px, 2vw, 27px) 18px; color: var(--ink-soft); font-size: 8px; }

.evidence-band { display: grid; grid-template-columns: 2fr repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.evidence-band > div, .evidence-band > a { min-height: 148px; padding: 24px clamp(18px, 2.2vw, 34px); border-right: 1px solid var(--line); }
.evidence-band > div h2 { max-width: 450px; margin: 9px 0 0; font-size: clamp(1.6rem, 2.2vw, 2.5rem); }
.evidence-band > a { display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; transition: color 180ms var(--ease-snap), background-color 180ms var(--ease-snap); }
.evidence-band > a:last-child { border-right: 0; }
.evidence-band > a:hover { color: var(--white); background: var(--ink); }
.evidence-band > a > span { margin-bottom: auto; color: var(--green-dark); font: 700 9px ui-monospace, monospace; }
.evidence-band > a:hover > span { color: #74d8a5; }
.evidence-band > a strong { font-size: 13px; }
.evidence-band > a small { margin-top: 3px; color: var(--ink-soft); font-size: 9px; }
.evidence-band > a:hover small { color: #bed0cc; }

/* Dialogs and messages */
.dialog { width: min(470px, calc(100% - 28px)); padding: 0; color: var(--ink); background: var(--white); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(7, 24, 24, .64); backdrop-filter: blur(3px); }
.dialog > form, .dialog > div { position: relative; padding: clamp(25px, 4vw, 42px); }
.dialog h2 { margin: 9px 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); }
.dialog p { color: var(--ink-soft); font-size: 12px; }
.dialog .field, .dialog .check-row { margin: 14px 0; }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 37px; height: 37px; border: 1px solid var(--line); background: transparent; font-size: 20px; }
.dialog-close:hover { color: white; background: var(--ink); }
.code-block { margin: 19px 0; border: 1px solid var(--line); background: var(--paper); }
.code-block > div { display: flex; justify-content: space-between; padding: 8px 11px; border-bottom: 1px solid var(--line); font: 8px ui-monospace, monospace; }
.code-block button { padding: 0; color: var(--green-dark); border: 0; background: transparent; font: inherit; font-weight: 700; }
.code-block code { display: block; overflow-x: auto; padding: 17px 12px; color: var(--ink); font-size: 11px; white-space: nowrap; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; font-weight: 700; }
.tour-dialog ol { display: grid; gap: 15px; margin: 21px 0 25px; padding: 0; list-style: none; }
.tour-dialog li { display: grid; grid-template-columns: 33px 1fr; gap: 11px; }
.tour-dialog li > span { width: 29px; height: 29px; display: grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; font: 700 9px ui-monospace, monospace; }
.tour-dialog li strong { font-size: 12px; }
.tour-dialog li p { margin: 3px 0 0; font-size: 10px; }
.toast-region { position: fixed; z-index: 500; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { width: min(350px, calc(100vw - 36px)); padding: 13px 15px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); border-left: 3px solid var(--green); animation: toast-in 260ms var(--ease-out) both; font-size: 11px; }
.toast.error { border-color: var(--orange); }

/* Story pages */
.story-page { overflow: hidden; }
.story-hero { min-height: 510px; display: grid; grid-template-columns: 1.55fr .75fr; gap: 8vw; align-items: end; padding: clamp(58px, 9vw, 125px) clamp(22px, 6vw, 94px) clamp(48px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.story-hero h1 { max-width: 1000px; margin: 17px 0 0; }
.story-lede { padding-bottom: 9px; }
.story-lede > p { margin-bottom: 26px; color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.5; }
.story-lede > small { display: block; margin-top: 14px; color: var(--ink-soft); font-size: 9px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-facts span { display: grid; gap: 3px; padding: 14px 10px 14px 0; }
.hero-facts span + span { padding-left: 12px; border-left: 1px solid var(--line); }
.hero-facts strong { font-size: clamp(1.1rem, 1.8vw, 1.6rem); letter-spacing: -.04em; }
.hero-facts small { color: var(--ink-soft); font-size: 8px; }
.section-kicker { display: flex; align-items: center; gap: 13px; }
.section-kicker > span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; font: 700 8px ui-monospace, monospace; }

.architecture-map { padding: clamp(60px, 8vw, 120px) clamp(22px, 6vw, 94px); color: var(--white); background: var(--ink); }
.architecture-map .eyebrow { color: #73d7a3; }
.architecture-map .section-kicker > span { color: var(--ink); background: var(--green); }
.architecture-map > h2 { max-width: 820px; margin: 24px 0 50px; }
.architecture-flow { display: grid; grid-template-columns: 1fr 50px 1.5fr 50px 1fr; gap: 12px; align-items: center; }
.flow-lane { min-width: 0; display: grid; gap: 8px; }
.flow-label { margin-bottom: 2px; color: #9db1ae; font: 8px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.flow-node { position: relative; min-height: 91px; display: flex; flex-direction: column; justify-content: end; padding: 15px; border: 1px solid #46605c; background: #102e2d; }
.flow-node small { position: absolute; top: 12px; right: 12px; color: #72d5a2; font: 8px ui-monospace, monospace; }
.flow-node strong { font-size: 12px; }
.flow-node span { margin-top: 3px; color: #9db1ae; font-size: 8px; }
.accent-node { color: var(--ink); background: var(--green); border-color: var(--green); }
.accent-node small, .accent-node span { color: #103d2b; }
.core-node { min-height: 116px; background: #163c39; border-color: #71918a; }
.accent-outline { border-color: var(--green); }
.flow-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flow-arrow { color: var(--green); text-align: center; font-size: 25px; }
.architecture-rails { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-top: 1px solid #46605c; border-bottom: 1px solid #46605c; }
.architecture-rails span { padding: 13px 10px; color: #b8c9c5; font-size: 9px; }
.architecture-rails span + span { border-left: 1px solid #46605c; }
.architecture-rails i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--green); }

.decision-grid { padding: clamp(60px, 8vw, 120px) clamp(22px, 6vw, 94px); }
.decision-intro { display: grid; grid-template-columns: 1fr .52fr; gap: 8vw; margin: 24px 0 48px; }
.decision-intro h2 { max-width: 790px; margin: 0; }
.decision-intro p { align-self: end; margin: 0; color: var(--ink-soft); }
.decision-list { border-top: 1px solid var(--line-dark); }
.decision-list article { display: grid; grid-template-columns: 55px 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.decision-list article > span { color: var(--green-dark); font: 700 9px ui-monospace, monospace; }
.decision-list article > div { display: grid; grid-template-columns: .7fr 1fr; gap: 7vw; }
.decision-list h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 2rem); }
.decision-list p { max-width: 600px; margin: 0; color: var(--ink-soft); }
.truth-table-section { display: grid; grid-template-columns: .55fr 1.45fr; gap: 7vw; padding: clamp(60px, 8vw, 120px) clamp(22px, 6vw, 94px); background: var(--paper-deep); border-top: 1px solid var(--line); }
.truth-table-section h2 { margin: 14px 0 0; }
.truth-table { border-top: 1px solid var(--ink); }
.truth-row { display: grid; grid-template-columns: .54fr 1fr 1fr; border-bottom: 1px solid var(--line-dark); }
.truth-row > * { padding: 16px 13px; border-left: 1px solid var(--line); font-size: 11px; }
.truth-row > *:first-child { padding-left: 0; border-left: 0; }
.truth-head > * { color: var(--ink-soft); font: 700 8px ui-monospace, monospace; text-transform: uppercase; }
.truth-row > span { color: var(--ink-soft); }
.page-cta { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: clamp(55px, 7vw, 90px) clamp(22px, 6vw, 94px); color: var(--white); background: var(--green-dark); }
.page-cta .eyebrow { color: #c7efda; }
.page-cta h2 { margin: 12px 0 0; }
.page-cta > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.page-cta .button { border-color: var(--white); }
.page-cta .button-secondary { color: white; }
.page-cta .button-secondary:hover { color: var(--ink); background: var(--white); }

/* Operations */
.operations-hero, .help-hero { min-height: 450px; }
.report-period { display: inline-block; padding: 8px 10px; border: 1px solid var(--line-dark); font: 8px ui-monospace, monospace; text-transform: uppercase; }
.operations-dashboard { padding: clamp(58px, 7vw, 100px) clamp(22px, 6vw, 94px); border-top: 1px solid var(--line); }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 23px 0 36px; }
.dashboard-heading h2 { max-width: 750px; margin: 0; }
.live-status { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font: 8px ui-monospace, monospace; text-transform: uppercase; }
.live-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.ops-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-dark); }
.ops-kpis article { min-width: 0; display: flex; flex-direction: column; padding: clamp(18px, 2.4vw, 34px); border-right: 1px solid var(--line); }
.ops-kpis article:last-child { border-right: 0; }
.ops-kpis small { color: var(--ink-soft); font: 8px ui-monospace, monospace; text-transform: uppercase; }
.ops-kpis strong { margin: 18px 0 13px; font-size: clamp(2rem, 3.3vw, 3.7rem); letter-spacing: -.065em; }
.ops-kpis span { margin-top: auto; color: var(--ink-soft); font-size: 9px; }
.ops-detail-grid { display: grid; grid-template-columns: 1.7fr .8fr; gap: 1px; margin-top: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.ops-chart, .ops-log { padding: clamp(24px, 3.5vw, 48px); background: var(--paper); }
.ops-chart { display: grid; grid-template-columns: .55fr 1fr; gap: 6vw; }
.ops-chart h3, .ops-log h3 { margin: 10px 0 0; font-size: clamp(1.6rem, 2.5vw, 2.7rem); }
.bar-list { display: grid; gap: 18px; }
.bar-list > div { display: grid; grid-template-columns: 115px 1fr 68px; gap: 10px; align-items: center; }
.bar-list span { color: var(--ink-soft); font-size: 9px; }
.bar-list i { height: 7px; background: linear-gradient(to right, var(--green) var(--value), var(--paper-deep) var(--value)); }
.bar-list strong { text-align: right; font: 700 9px ui-monospace, monospace; }
.ops-log ol { margin: 26px 0; padding: 0; list-style: none; counter-reset: updates; }
.ops-log li { position: relative; padding: 13px 0 13px 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; counter-increment: updates; }
.ops-log li::before { position: absolute; left: 0; content: "0" counter(updates); color: var(--green-dark); font: 700 8px ui-monospace, monospace; }
.ops-log a { font-size: 10px; font-weight: 700; }
.ingestion-lab { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; align-items: center; padding: clamp(65px, 8vw, 120px) clamp(22px, 8vw, 130px); color: var(--white); background: var(--ink); }
.ingestion-copy .eyebrow { color: #7bdaa8; }
.ingestion-copy .section-kicker > span { color: var(--ink); background: var(--green); }
.ingestion-copy h2 { margin: 23px 0; }
.ingestion-copy > p { max-width: 500px; color: #b8c9c5; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { padding: 10px 0; border-top: 1px solid #46605c; color: #d7e2df; font-size: 10px; }
.check-list li::before { margin-right: 8px; color: var(--green); content: "✓"; }
.lab-form { padding: clamp(22px, 3vw, 36px); color: var(--ink); background: var(--white); box-shadow: 0 26px 65px rgba(0,0,0,.22); }
.lab-form-head { display: flex; justify-content: space-between; margin: calc(clamp(22px, 3vw, 36px) * -1) calc(clamp(22px, 3vw, 36px) * -1) 23px; padding: 11px 14px; color: #b9cbc7; background: #081a1a; }
.lab-form-head code { font-size: 8px; }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { width: 6px; height: 6px; border-radius: 50%; background: #49615e; }
.lab-form > .field, .lab-form > .field-pair { margin-bottom: 12px; }
.check-pair { margin-top: 4px; }
.lab-result { max-height: 170px; margin: 12px 0 0; padding: 12px; overflow: auto; color: #c5e6d4; background: var(--ink); font-size: 8px; line-height: 1.55; white-space: pre-wrap; }
.lab-result.error { color: #ffd0bd; }
.operations-principles { padding: clamp(60px, 8vw, 110px) clamp(22px, 6vw, 94px); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 35px; border-top: 1px solid var(--line-dark); }
.principle-grid article { padding: 30px 7vw 10px 0; border-right: 1px solid var(--line); }
.principle-grid article + article { padding-left: 2vw; }
.principle-grid article:last-child { border-right: 0; }
.principle-grid article > span { color: var(--green-dark); font-size: 22px; }
.principle-grid h3 { margin: 55px 0 10px; font-size: clamp(1.4rem, 2.1vw, 2rem); }
.principle-grid p { color: var(--ink-soft); }

/* Help */
.language-switch { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.language-switch button { min-height: 39px; padding: 0 15px; border: 0; background: transparent; font-size: 10px; font-weight: 700; }
.language-switch button.active { color: white; background: var(--ink); }
.help-journey { padding: clamp(60px, 8vw, 110px) clamp(22px, 6vw, 94px); }
.help-journey h2 { max-width: 750px; margin: 23px 0 47px; }
.journey-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--line-dark); list-style: none; }
.journey-steps li { min-width: 0; padding: 19px 25px 30px 0; border-right: 1px solid var(--line); }
.journey-steps li + li { padding-left: 24px; }
.journey-steps li:last-child { border-right: 0; }
.journey-steps li > span { color: var(--green-dark); font: 700 9px ui-monospace, monospace; }
.journey-steps h3 { margin: 65px 0 12px; font-size: clamp(1.3rem, 1.8vw, 1.8rem); }
.journey-steps p { color: var(--ink-soft); font-size: 11px; }
.support-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10vw; padding: clamp(62px, 8vw, 115px) clamp(22px, 8vw, 130px); color: var(--white); background: var(--ink); }
.support-copy .eyebrow { color: #76d9a5; }
.support-copy .section-kicker > span { color: var(--ink); background: var(--green); }
.support-copy h2 { margin: 24px 0; }
.support-copy > p { color: #b8c9c5; }
.support-promise { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-top: 35px; padding-top: 18px; border-top: 1px solid #49615e; }
.support-promise strong { color: var(--green); font-size: 28px; letter-spacing: -.05em; }
.support-promise span { color: #b8c9c5; font-size: 9px; }
.support-form { padding: clamp(22px, 3vw, 38px); color: var(--ink); background: var(--white); }
.support-form .field, .support-form .field-pair { margin-bottom: 14px; }
.form-result { margin-top: 13px; color: var(--green-dark); font-size: 11px; font-weight: 700; }
.form-result.error { color: var(--red); }
.faq-section { display: grid; grid-template-columns: .55fr 1.2fr; gap: 8vw; padding: clamp(62px, 8vw, 115px) clamp(22px, 6vw, 94px); }
.faq-section h2 { margin: 13px 0 0; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line-dark); }
.faq-list summary { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; font-size: 13px; font-weight: 700; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 20px; font-weight: 400; transition: transform 180ms var(--ease-snap); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 720px; margin: -3px 50px 22px 0; color: var(--ink-soft); font-size: 11px; }

@keyframes skeleton { from { background-position: 140% 0; } to { background-position: -70% 0; } }
@keyframes detail-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) {
  .demo-lozenge { display: none; }
  .workspace { grid-template-columns: 300px minmax(440px, 1fr) 280px; }
  .search-intro { padding-top: 21px; }
  .search-intro h1 { font-size: 2.1rem; }
  .tool-button { width: 38px; justify-content: center; overflow: hidden; white-space: nowrap; }
  .tool-button > span:first-child { font-size: 14px; }
  .tool-button .tool-count { display: none; }
  .evidence-band { grid-template-columns: 1.5fr repeat(4, 1fr); }
}

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav-toggle { display: grid; grid-column: 2; grid-row: 1; place-items: center; }
  .primary-nav { position: fixed; top: var(--topbar); left: 0; right: 0; height: auto; display: none; flex-direction: column; align-items: stretch; padding: 10px 18px 18px; background: var(--paper); border-bottom: 1px solid var(--ink); box-shadow: var(--shadow); }
  .primary-nav.open { display: flex; }
  .primary-nav a { min-height: 44px; display: flex; justify-content: space-between; padding: 0; border-bottom: 1px solid var(--line); }
  .primary-nav a::after { display: none; }
  .topbar-actions { display: none; }
  .workspace { grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "search map" "detail detail"; }
  .search-pane { grid-area: search; }
  .map-pane { grid-area: map; }
  .detail-pane { grid-area: detail; min-height: 0; max-height: none; border-top: 1px solid var(--line); border-left: 0; }
  .detail-empty { min-height: 260px; }
  .scene-detail { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .scene-detail > header { grid-row: span 2; }
  .scene-preview { height: auto; min-height: 160px; }
  .metadata-grid { grid-row: span 2; }
  .band-block, .license-note { grid-column: span 1; }
  .detail-actions { grid-column: span 2; }
  .detail-disclaimer { align-self: end; }
  .evidence-band { grid-template-columns: repeat(2, 1fr); }
  .evidence-band > div { grid-column: 1/-1; }
  .evidence-band > * { border-bottom: 1px solid var(--line); }
  .story-hero { min-height: 420px; grid-template-columns: 1fr; gap: 45px; }
  .story-lede { max-width: 620px; }
  .architecture-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .architecture-rails { grid-template-columns: 1fr; }
  .architecture-rails span + span { border-top: 1px solid #46605c; border-left: 0; }
  .decision-intro, .truth-table-section, .ingestion-lab, .support-section, .faq-section { grid-template-columns: 1fr; }
  .ops-detail-grid { grid-template-columns: 1fr; }
  .ops-chart { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: 1fr 1fr; }
  .journey-steps li:nth-child(2) { border-right: 0; }
  .journey-steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --topbar: 58px; }
  body { font-size: 14px; }
  .topbar { padding: 0 15px; }
  .brand { min-height: 44px; }
  .truth-strip { justify-content: flex-start; min-height: 35px; padding: 6px 42px 6px 15px; }
  .truth-strip > span { display: none; }
  .truth-strip-close { width: 44px; height: 44px; right: 2px; }
  .truth-strip p { max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workspace { display: flex; flex-direction: column; }
  .search-pane { order: 1; min-height: 0; max-height: none; border-right: 0; }
  .search-intro { padding: 27px 18px 16px; }
  .search-intro h1 { max-width: 520px; font-size: clamp(2.4rem, 12vw, 4.2rem); }
  .search-form { padding: 8px 18px 19px; }
  .field input, .field select { min-height: 44px; }
  .segments span { min-height: 44px; }
  .filter-more summary { min-height: 44px; }
  .sensor-grid label { min-height: 44px; }
  .results-heading { padding: 18px 18px 10px; }
  .results-list { display: flex; gap: 8px; padding: 0 18px 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .result-card { min-width: min(84vw, 330px); grid-template-columns: 57px 1fr auto; padding: 10px; border: 1px solid var(--line); scroll-snap-align: start; }
  .map-pane { order: 2; min-height: 580px; grid-template-rows: auto 510px 45px; border-top: 1px solid var(--line); }
  .map-toolbar { min-height: 94px; flex-direction: column; align-items: stretch; padding: 8px 10px; }
  .layer-switch { grid-template-columns: repeat(4, 1fr); display: grid; }
  .layer-switch button { min-height: 44px; }
  .map-tool-actions { justify-content: stretch; }
  .tool-button { width: auto; min-height: 44px; flex: 1; }
  .tool-button .tool-count { display: grid; }
  .map-caption { min-height: 45px; }
  .map-caption p { display: none; }
  .map-caption .text-button { margin-left: auto; }
  .text-button { min-height: 44px; display: inline-flex; align-items: center; }
  .map-legend { right: 12px; max-width: calc(100% - 78px); }
  .band-panel { left: 10px; bottom: 42px; width: min(300px, calc(100% - 20px)); }
  .band-panel > div button, .band-panel select, .band-panel .button-small { min-height: 44px; }
  .band-panel > div button { width: 44px; height: 44px; }
  .map-zoom button { width: 44px; height: 44px; }
  .detail-pane { order: 3; max-height: none; border-left: 0; }
  .scene-detail { display: block; }
  .scene-preview { min-height: 170px; }
  .detail-actions { display: grid; }
  .detail-action-row { grid-template-columns: 1fr; }
  .evidence-band { order: 4; grid-template-columns: 1fr 1fr; }
  .evidence-band > div, .evidence-band > a { min-height: 130px; padding: 20px 18px; }
  .evidence-band > a:nth-child(odd) { border-right: 0; }
  .story-hero { min-height: 0; padding-top: 64px; }
  .story-hero h1 { font-size: clamp(3.1rem, 16vw, 5.2rem); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts span + span { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .flow-split { grid-template-columns: 1fr; }
  .decision-intro { gap: 25px; }
  .decision-list article > div { grid-template-columns: 1fr; gap: 10px; }
  .truth-table { overflow-x: auto; }
  .truth-row { min-width: 680px; }
  .page-cta { align-items: stretch; flex-direction: column; }
  .ops-kpis { grid-template-columns: 1fr 1fr; }
  .ops-kpis article:nth-child(2) { border-right: 0; }
  .ops-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .bar-list > div { grid-template-columns: 94px 1fr 55px; }
  .check-list, .principle-grid, .journey-steps { grid-template-columns: 1fr; }
  .principle-grid article, .principle-grid article + article, .journey-steps li, .journey-steps li + li { padding: 24px 0; border-top: 1px solid var(--line); border-right: 0; }
  .principle-grid h3, .journey-steps h3 { margin-top: 28px; }
  .support-promise { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; }
  .dialog > form, .dialog > div { padding: 27px 20px; }
}

@media (max-height: 780px) and (min-width: 721px) {
  .search-intro { padding-top: 14px; padding-bottom: 7px; }
  .search-intro h1 { margin-top: 6px; font-size: 1.9rem; }
  .search-form { gap: 7px; padding-top: 5px; padding-bottom: 9px; }
  .field input, .field select { min-height: 35px; padding-top: 6px; padding-bottom: 6px; }
  .segments span { min-height: 31px; }
  .filter-more summary { min-height: 29px; }
  .search-submit { min-height: 37px; }
  .results-heading { padding-top: 9px; }
  .map-pane { grid-template-rows: 44px minmax(500px, 1fr) 32px; }
  .scene-detail > header { padding-top: 15px; }
  .scene-detail h2 { font-size: 1.65rem; }
  .scene-preview { height: 94px; }
  .metadata-grid > div { padding-top: 6px; padding-bottom: 6px; }
  .band-block { padding-top: 8px; padding-bottom: 8px; }
  .detail-actions { padding-top: 9px; }
}

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