:root {
  --bg: #edf2f6;
  --surface: #ffffff;
  --surface-subtle: #f6f8fb;
  --surface-tint: #eaf6f4;
  --surface-alt: #f1f5f9;
  --surface-muted: #eef3f7;
  --text: #151a2d;
  --text-primary: #151a2d;
  --text-secondary: #4b586c;
  --text-muted: #748096;
  --text-faint: #5f6f83;
  --brand: #006f76;
  --brand-strong: #005c62;
  --on-brand: #ffffff;
  --brand-soft: #e1f2f0;
  --brand-border: #b9ddd9;
  --blue: #315f9f;
  --blue-soft: #e7eef8;
  --amber: #8a6410;
  --amber-soft: #fbf1d9;
  --warning: #8a6410;
  --ok: #18794e;
  --primary-strong: #005c62;
  --border: #d8e0e8;
  --border-soft: #e7edf2;
  --success: #18794e;
  --danger: #b42318;
  --shadow-sm: 0 2px 8px rgba(23, 35, 52, 0.055);
  --shadow-map: 0 16px 38px rgba(23, 35, 52, 0.085);
  --radius: 8px;
  --radius-sm: 6px;
  --transition: 160ms ease;
  --shell-header-height: 62px;
}

[data-theme="dark"] {
  --bg: #11161b;
  --surface: #181e24;
  --surface-subtle: #20272e;
  --surface-tint: #173638;
  --surface-alt: #20272e;
  --surface-muted: #252d34;
  --text: #f0f3f5;
  --text-primary: #f0f3f5;
  --text-secondary: #bbc3cc;
  --text-muted: #8f9aa6;
  --text-faint: #8f9aa6;
  --brand: #55c1bd;
  --brand-strong: #82d4d0;
  --on-brand: #11161b;
  --brand-soft: #183c3d;
  --brand-border: #24585a;
  --blue: #8db7f0;
  --blue-soft: #1d3048;
  --amber: #efb554;
  --amber-soft: #463617;
  --warning: #efb554;
  --ok: #67cf9a;
  --primary-strong: #82d4d0;
  --border: #333c45;
  --border-soft: #293139;
  --success: #67cf9a;
  --danger: #ff8c82;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-map: 0 12px 30px rgba(0, 0, 0, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; letter-spacing: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  min-width: 320px;
  background: linear-gradient(180deg, #f5f8fb 0, var(--bg) 310px) fixed;
  color: var(--text);
  font-family: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[data-theme="dark"] body { background: var(--bg); }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button, input, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(40, 90, 159, 0.34); outline-offset: 2px; }

.container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.container--wide { width: min(1560px, calc(100% - 48px)); }
.map-page .header-inner,
.map-page .footer-inner,
.map-page-container { width: min(1640px, calc(100% - 48px)); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 8px 12px; background: var(--surface); border: 1px solid var(--brand); border-radius: var(--radius-sm); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, transparent); backdrop-filter: blur(16px) saturate(1.12); }
.header-inner { min-height: 58px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; font-size: 1.05rem; font-weight: 760; transition: opacity var(--transition); }
.logo:hover { opacity: 0.82; }
.logo-mark { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--border)); background: var(--brand-soft); border-radius: 5px; }
.logo-mark i { display: block; background: var(--brand); border-radius: 1px; }
.logo-mark i:nth-child(2), .logo-mark i:nth-child(3) { background: var(--blue); }
.logo-mark i:nth-child(4) { background: #d9a12e; }
.logo-badge { padding: 2px 5px; color: var(--brand); background: var(--brand-soft); border-radius: 4px; font-size: 0.62rem; font-weight: 750; }
.site-nav { display: flex; align-items: stretch; align-self: stretch; gap: 4px; }
.site-nav a { position: relative; display: inline-flex; align-items: center; padding: 0 10px; color: var(--text-secondary); font-size: 0.82rem; font-weight: 620; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--brand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.service-state { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 0.76rem; font-weight: 600; transition: color var(--transition); }
.service-state:hover,
.service-state:focus-visible { color: var(--brand); }
.service-state span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 12%, transparent); }
.service-state.is-degraded span { background: var(--danger); }
.language-switch { display: inline-flex; align-items: center; min-height: 30px; padding: 0 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-secondary); font-size: 0.74rem; font-weight: 720; letter-spacing: 0; }
.language-switch__current { color: var(--text); font-weight: 800; }
.language-switch__separator { margin-inline: 5px; color: var(--text-faint); }
.language-switch:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.theme-toggle, .icon-command { display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); box-shadow: 0 1px 1px rgba(23, 35, 52, 0.03); cursor: pointer; transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition); }
.theme-toggle { width: 34px; height: 34px; font-size: 1rem; }
.theme-toggle:hover, .icon-command:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }

main { padding: 24px 0 50px; }
.showcase-intro { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(500px, 0.78fr); gap: 44px; align-items: end; margin-bottom: 22px; }
.eyebrow { margin-bottom: 7px; color: var(--brand); font-size: 0.7rem; line-height: 1.2; font-weight: 800; text-transform: uppercase; }
.showcase-copy h1 { max-width: 880px; font-size: clamp(2rem, 2.35vw, 2.55rem); line-height: 1.08; font-weight: 760; text-wrap: balance; }
.showcase-copy p { max-width: 900px; margin-top: 11px; color: var(--text-secondary); font-size: 0.96rem; line-height: 1.55; }
.data-pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.data-pulse div { min-width: 0; padding: 13px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.data-pulse dt { color: var(--text); font-size: 1.12rem; line-height: 1.15; font-weight: 760; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-pulse dd { margin-top: 4px; color: var(--text-muted); font-size: 0.72rem; line-height: 1.25; }
.workspace-brief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.workspace-brief-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 46%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.workspace-brief-card__top { min-width: 0; }
.workspace-brief-card__eyebrow { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 0.64rem; font-weight: 800; text-transform: uppercase; }
.workspace-brief-card strong { display: block; margin-top: 10px; color: var(--text); font-size: 0.98rem; line-height: 1.2; font-weight: 760; }
.workspace-brief-card p { margin-top: 6px; color: var(--text-secondary); font-size: 0.78rem; line-height: 1.45; }
.workspace-brief-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.workspace-brief-card__facts div { min-width: 0; padding: 10px 11px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border-soft); }
.workspace-brief-card__facts dt { color: var(--text-muted); font-size: 0.64rem; line-height: 1.2; }
.workspace-brief-card__facts dd { margin-top: 4px; color: var(--text); font-size: 0.73rem; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.workspace-brief-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.workspace-brief-card__footer small { color: var(--text-muted); font-size: 0.66rem; line-height: 1.35; }
.workspace-brief-card__footer a { flex: 0 0 auto; min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-size: 0.68rem; font-weight: 750; background: var(--surface); }
.workspace-brief-card__footer a:hover { border-color: var(--brand); background: var(--brand-soft); }

.map-workspace { overflow: hidden; margin-bottom: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(23, 35, 52, 0.075); }
.workspace-topbar { min-height: 66px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.workspace-topbar h2 { font-size: 1.08rem; line-height: 1.2; }
.workspace-topbar p { margin-top: 3px; color: var(--text-muted); font-size: 0.77rem; }
.map-toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.map-toolbar__select { height: 34px; max-width: 190px; padding: 0 28px 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-subtle); color: var(--text); font-size: 0.78rem; }
.map-view-switch { height: 34px; display: inline-grid; grid-template-columns: repeat(2, auto); gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.map-view-button { min-width: 66px; padding: 0 9px; border: 0; border-radius: 4px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 0.68rem; font-weight: 700; transition: background var(--transition), color var(--transition), box-shadow var(--transition); }
.map-view-button:hover { color: var(--text); }
.map-view-button[aria-pressed="true"] { background: var(--surface); color: var(--brand-strong); box-shadow: 0 1px 3px rgba(23, 35, 52, 0.12); }
.map-view-button:disabled { cursor: not-allowed; opacity: 0.45; }
.icon-command { min-width: 38px; height: 34px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-secondary); font-size: 0.76rem; font-weight: 720; }
.icon-command:disabled { cursor: wait; opacity: 0.52; box-shadow: none; transform: none; }
.icon-command[aria-disabled="true"],
.icon-command[aria-disabled="true"]:hover { cursor: not-allowed; opacity: 0.58; box-shadow: none; transform: none; }
.command-label { font-size: 0.69rem; font-weight: 680; }
.icon-command.btn-active { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }

.map-search { position: relative; display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px; padding: 11px 18px; background: var(--surface-subtle); border-bottom: 1px solid var(--border-soft); }
.map-search input { height: 40px; width: 100%; padding: 0 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 0.84rem; }
.map-search input:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); }
.btn { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.78rem; font-weight: 700; transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { border-color: var(--border); background: var(--surface); color: var(--text-secondary); }
.btn-secondary:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.btn.btn-active { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.search-result { grid-column: 1 / -1; min-height: 0; color: var(--text-secondary); font-size: 0.75rem; }
.search-result:empty { display: none; }

.scenario-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 7px; border-bottom: 1px solid var(--border-soft); background: var(--surface-subtle); }
.scenario-card { min-width: 0; min-height: 58px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--text-secondary); cursor: pointer; text-align: left; transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition); }
.scenario-card:hover { border-color: var(--border); background: var(--surface); color: var(--text); }
.scenario-card.is-active { border-color: color-mix(in srgb, var(--brand) 24%, var(--border)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.scenario-card strong { display: block; color: var(--text); font-size: 0.78rem; line-height: 1.2; font-weight: 760; }
.scenario-card small { display: block; overflow: hidden; margin-top: 2px; color: var(--text-muted); font-size: 0.66rem; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.scenario-card__icon { position: relative; width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--border)); border-radius: var(--radius-sm); background: var(--brand-soft); overflow: hidden; }
.scenario-card__icon--columns { display: flex; align-items: end; justify-content: center; gap: 3px; padding: 6px; }
.scenario-card__icon--columns i { width: 5px; border-radius: 2px 2px 0 0; background: var(--brand); }
.scenario-card__icon--columns i:nth-child(1) { height: 11px; opacity: 0.58; }
.scenario-card__icon--columns i:nth-child(2) { height: 20px; }
.scenario-card__icon--columns i:nth-child(3) { height: 15px; opacity: 0.74; }
.scenario-card__icon--grid { grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 3px; }
.scenario-card__icon--grid i { width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.scenario-card__icon--grid i:nth-child(2), .scenario-card__icon--grid i:nth-child(3) { background: var(--blue); opacity: 0.76; }
.scenario-card__icon--pulse i { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 5px color-mix(in srgb, var(--danger) 16%, transparent), 0 0 0 11px color-mix(in srgb, var(--danger) 8%, transparent); }
.scenario-card__icon--orbit::before { content: ''; width: 21px; height: 21px; border: 1px solid color-mix(in srgb, var(--blue) 70%, transparent); border-radius: 50%; transform: rotate(-24deg) scaleY(0.58); }
.scenario-card__icon--orbit i { position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: -10px 11px 0 color-mix(in srgb, var(--brand) 86%, var(--blue)); }

.map-storybar { min-height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 8px 18px; border-bottom: 1px solid var(--border-soft); background: color-mix(in srgb, var(--surface-tint) 55%, var(--surface)); }
.map-storybar__copy { min-width: 0; display: grid; grid-template-columns: auto minmax(0, auto) minmax(0, 1fr); align-items: baseline; gap: 8px; }
.map-storybar__kicker { color: var(--brand); font-size: 0.66rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.map-storybar__copy strong { min-width: 0; overflow: hidden; color: var(--text); font-size: 0.78rem; line-height: 1.25; font-weight: 760; white-space: nowrap; text-overflow: ellipsis; }
.map-storybar__copy small { min-width: 0; overflow: hidden; color: var(--text-muted); font-size: 0.69rem; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.map-storybar__progress { display: inline-grid; grid-template-columns: repeat(4, 20px); gap: 4px; align-items: center; }
.map-storybar__progress span { height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 18%, var(--border)); transition: background var(--transition), transform var(--transition); }
.map-storybar__progress span.is-active { background: var(--brand); transform: scaleY(1.35); }
.map-storybar__actions { display: inline-flex; align-items: center; gap: 6px; }
.story-step-btn { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--brand); cursor: pointer; font-size: 1rem; line-height: 1; transition: border-color var(--transition), background var(--transition), color var(--transition); }
.story-step-btn:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }

.map-source-pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--border-soft); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 35%, var(--surface)) 0%, var(--surface) 100%); }
.map-source-pulse__card { min-width: 0; display: grid; gap: 7px; padding: 10px 11px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.map-source-pulse__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.map-source-pulse__card span { color: var(--brand); font-size: 0.62rem; font-weight: 780; text-transform: uppercase; }
.map-source-pulse__card em {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 2px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-subtle) 78%, var(--surface));
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-source-pulse__card strong { color: var(--text); font-size: 0.84rem; line-height: 1.2; }
.map-source-pulse__card p { margin: 0; color: var(--text-muted); font-size: 0.68rem; line-height: 1.4; }
.map-source-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.map-source-facts div { min-width: 0; padding: 7px 8px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface-subtle) 82%, var(--surface)); }
.map-source-facts dt { color: var(--text-faint); font-size: 0.55rem; font-weight: 800; text-transform: uppercase; }
.map-source-facts dd { margin-top: 4px; color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.67rem; line-height: 1.3; font-weight: 740; overflow-wrap: anywhere; }
.map-source-pulse__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 3px;
  border-top: 1px solid var(--border-soft);
}
.map-source-pulse__footer small {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.63rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.map-source-pulse__footer a { width: fit-content; min-height: 28px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-size: 0.66rem; font-weight: 740; }
.map-source-pulse__footer a:hover { border-color: var(--brand); background: var(--brand-soft); }

.map-method-panel { min-height: 58px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(520px, 0.9fr) auto; gap: 14px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.map-method-panel__kicker { display: block; margin-bottom: 2px; color: var(--brand); font-size: 0.64rem; font-weight: 800; text-transform: uppercase; }
.map-method-panel strong { display: block; color: var(--text); font-size: 0.84rem; line-height: 1.2; }
.map-method-panel small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 0.69rem; line-height: 1.35; }
.map-method-panel dl { min-width: 0; display: grid; grid-template-columns: 0.8fr 0.85fr minmax(125px, 1.15fr) 0.7fr minmax(145px, 1.35fr); gap: 8px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.map-method-panel dl div { min-width: 0; padding: 7px 9px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.map-method-panel dt { color: var(--text-muted); font-size: 0.62rem; line-height: 1.2; }
.map-method-panel dd { margin-top: 2px; overflow: hidden; color: var(--text); font-size: 0.68rem; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.map-method-panel > a { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-size: 0.68rem; font-weight: 740; }

.layer-registry-panel { min-height: 48px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: start; gap: 13px; padding: 9px 18px; border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.layer-registry-heading { min-width: 0; display: flex; align-items: baseline; gap: 7px; flex: 0 0 auto; padding: 5px 6px 5px 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; transition: color var(--transition), background var(--transition); }
.layer-registry-heading:hover { color: var(--brand); }
.layer-registry-heading:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 24%, transparent); outline-offset: 2px; background: var(--brand-soft); }
.layer-registry-title { font-size: 0.78rem; font-weight: 750; }
.layer-registry-meta, .layer-registry-status, .layer-registry-loading { color: var(--text-muted); font-size: 0.68rem; }
.layer-registry-disclosure { width: 18px; height: 18px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--brand); font-size: 0.8rem; line-height: 1; }
.layer-registry-panel--collapsed { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.layer-registry-panel--collapsed .layer-registry-controls,
.layer-registry-panel--collapsed .layer-date-control { display: none; }
.layer-registry-controls { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.layer-control-group { min-width: 0; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.layer-control-group > summary { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; cursor: pointer; list-style: none; }
.layer-control-group > summary::-webkit-details-marker { display: none; }
.layer-control-group > summary::after { content: '+'; width: 18px; height: 18px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; color: var(--brand); background: var(--surface); font-size: 0.8rem; line-height: 1; }
.layer-control-group[open] > summary::after { content: '−'; }
.layer-control-group__title { color: var(--text); font-size: 0.72rem; font-weight: 760; }
.layer-control-group__note { overflow: hidden; color: var(--text-muted); font-size: 0.63rem; white-space: nowrap; text-overflow: ellipsis; }
.layer-control-group__body { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 8px 8px; }
.layer-toggle { position: relative; min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-subtle); color: var(--text-secondary); cursor: pointer; font-size: 0.69rem; font-weight: 620; transition: border-color var(--transition), color var(--transition), background var(--transition); }
.layer-toggle:hover { border-color: var(--brand); color: var(--text); }
.layer-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.layer-toggle-marker { width: 8px; height: 8px; border: 1px solid var(--text-muted); border-radius: 50%; background: var(--surface); }
.layer-toggle input:checked + .layer-toggle-marker { border-color: var(--layer-color, var(--brand)); background: var(--layer-color, var(--brand)); box-shadow: 0 0 0 2px var(--brand-soft); }
.layer-toggle input:disabled + .layer-toggle-marker { opacity: 0.72; }
.layer-toggle[data-state="loading"] { opacity: 0.72; }
.layer-toggle[data-state="error"] { border-color: color-mix(in srgb, var(--danger) 42%, var(--border)); color: var(--danger); }
.layer-toggle[data-state="degraded"] { border-color: color-mix(in srgb, var(--amber) 48%, var(--border)); }
.layer-registry-status[data-state="ok"] { color: var(--success); }
.layer-registry-status[data-state="error"] { color: var(--danger); }
.layer-date-control { min-height: 30px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: var(--text-muted); font-size: 0.66rem; font-weight: 650; }
.layer-date-control[hidden] { display: none; }
.layer-date-control input { width: 118px; height: 30px; padding: 0 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-subtle); color: var(--text); font-size: 0.68rem; }
.layer-date-control input:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); }

.active-layer-summary { min-height: 34px; display: flex; align-items: center; gap: 10px; overflow-x: auto; padding: 6px 16px; border-bottom: 1px solid var(--border); background: var(--surface-tint); scrollbar-width: thin; }
.active-layer-summary[hidden] { display: none; }
.active-layer-summary__title { flex: 0 0 auto; color: var(--text-muted); font-size: 0.66rem; font-weight: 750; text-transform: uppercase; }
.active-layer-summary__item { min-width: 0; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--text-secondary); font-size: 0.68rem; }
.active-layer-summary__item strong { color: var(--text); font-size: 0.69rem; font-weight: 700; }
.active-layer-summary__item small { color: var(--text-muted); font-size: 0.64rem; }
.active-layer-summary__item[data-state="error"] small { color: var(--danger); }
.active-layer-summary__item[data-state="degraded"] small { color: var(--amber); }
.active-layer-summary__item--health { padding-left: 10px; border-left: 1px solid var(--border); }
.active-layer-summary__item--health[data-state="fresh"] small { color: var(--success); }
.active-layer-summary__item--health[data-state="stale"] small { color: var(--danger); }
.active-layer-summary__item--health[data-state="loading"] small { color: var(--text-muted); }
.active-layer-summary__marker { width: 9px; height: 9px; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--layer-color) 68%, #ffffff); background: var(--layer-color); }
.active-layer-summary__marker--point { border-radius: 50%; }
.active-layer-summary__marker--line { width: 13px; height: 3px; border: 0; }
.active-layer-summary__marker--polygon { border-radius: 2px; opacity: 0.78; }
.active-layer-summary__marker--raster { border-radius: 2px; background: linear-gradient(135deg, var(--layer-color), #a6c58f); }

#map { position: relative; width: 100%; height: clamp(620px, 64vh, 780px); background: var(--surface-subtle); }
.map-workspace[data-visualization="columns"] #map { background: color-mix(in srgb, var(--blue-soft) 36%, var(--surface-subtle)); }
.workspace-actions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-soft); background: var(--surface); }
.workspace-actions > * { position: relative; min-width: 0; padding: 14px 17px 14px 46px; display: flex; flex-direction: column; align-items: flex-start; border: 0; border-right: 1px solid var(--border-soft); background: transparent; cursor: pointer; text-align: left; }
.workspace-actions > *:last-child { border-right: 0; }
.workspace-actions > *:hover { background: var(--surface-subtle); }
.workspace-actions > *::before { content: ''; position: absolute; left: 15px; top: 14px; width: 16px; height: 16px; border-radius: 5px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border)); }
.workspace-actions > *:nth-child(1)::before { background: linear-gradient(135deg, var(--brand-soft), var(--blue-soft)); }
.workspace-actions > *:nth-child(2)::before { border-radius: 50%; box-shadow: inset 0 0 0 4px var(--surface), 0 0 0 1px color-mix(in srgb, var(--brand) 24%, var(--border)); }
.workspace-actions > *:nth-child(3)::before { background: linear-gradient(90deg, var(--brand) 0 28%, var(--brand-soft) 28% 100%); }
.workspace-actions > *:nth-child(4)::before { background: linear-gradient(135deg, var(--blue-soft), var(--surface)); }
.workspace-actions strong { font-size: 0.82rem; line-height: 1.2; }
.workspace-actions span { margin-top: 4px; color: var(--text-muted); font-size: 0.7rem; line-height: 1.3; }

.layer-dossier-panel { padding: 13px 16px 15px; border-bottom: 1px solid var(--border); background: var(--surface); }
.layer-dossier-panel[hidden] { display: none; }
.layer-dossier-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.layer-dossier-kicker { color: var(--brand); font-size: 0.67rem; font-weight: 800; text-transform: uppercase; }
.layer-dossier-title { margin-top: 2px; font-size: 0.95rem; font-weight: 750; }
.layer-dossier-meta { margin-top: 3px; color: var(--text-muted); font-size: 0.72rem; }
.layer-dossier-close { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-subtle); cursor: pointer; font-size: 1.1rem; transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition); }
.layer-dossier-close:hover,
.layer-dossier-close:focus-visible { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.layer-dossier-close:active { transform: translateY(1px); }
.layer-dossier-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.layer-dossier-section { min-width: 0; padding: 9px 11px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.layer-dossier-section-title { margin-bottom: 5px; color: var(--text-muted); font-size: 0.66rem; font-weight: 800; text-transform: uppercase; }
.layer-dossier-row { display: grid; grid-template-columns: minmax(86px, 0.55fr) minmax(0, 1fr); gap: 10px; padding: 4px 0; border-top: 1px solid var(--border-soft); font-size: 0.72rem; }
.layer-dossier-row:first-of-type { border-top: 0; }
.layer-dossier-key { color: var(--text-muted); }
.layer-dossier-value { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-weight: 650; text-align: right; }

.workspace-reference--tools { margin-bottom: 22px; }
.workspace-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 0 16px; }
.workspace-tools a { min-width: 0; min-height: 82px; display: flex; flex-direction: column; justify-content: center; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.workspace-tools a:hover { border-color: var(--brand); background: var(--surface-subtle); }
.workspace-tools strong { color: var(--text); font-size: 0.79rem; line-height: 1.25; }
.workspace-tools span { margin-top: 4px; color: var(--text-muted); font-size: 0.71rem; line-height: 1.38; }

.map-runtime-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}
.map-runtime-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 15px 16px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.map-runtime-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--brand) 0%, var(--blue) 100%);
}
.map-runtime-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.map-runtime-card span {
  min-width: 0;
  color: var(--brand);
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.map-runtime-card em {
  color: var(--text-faint);
  font-size: 0.67rem;
  font-style: normal;
  line-height: 1.2;
  white-space: nowrap;
}
.map-runtime-card strong {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.35;
}
.map-runtime-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.74rem;
  line-height: 1.5;
}
.map-runtime-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.map-runtime-facts div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}
.map-runtime-facts dt {
  color: var(--text-muted);
  font-size: 0.66rem;
  line-height: 1.2;
}
.map-runtime-facts dd {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.data-section { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 30px; }
.data-section__status { display: grid; grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.32fr); gap: 30px; align-items: center; padding: 18px 20px; color: #fff; background: linear-gradient(125deg, #123b57 0%, #075f65 68%, #08777b 100%); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .data-section__status { background: #153348; }
.data-section__status .eyebrow { color: #8ed6d2; }
.data-section__status h2 { font-size: 1.2rem; }
.data-section__intro > p { max-width: 460px; margin-top: 7px; color: #d2dee6; font-size: 0.79rem; line-height: 1.45; }
.data-section__footer { display: grid; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.data-section__footer small { color: #d2dee6; font-size: 0.69rem; line-height: 1.42; }
.data-section__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.data-section__actions a { min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius-sm); color: #fff; font-size: 0.68rem; font-weight: 740; background: rgba(255, 255, 255, 0.04); }
.data-section__actions a:hover { border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.12); }
.live-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border: 0; border-radius: 0; }
.live-facts div { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 5px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-sm); font-size: 0.72rem; }
.live-facts dt { color: #bad0dd; }
.live-facts dd { color: #fff; font-weight: 680; font-variant-numeric: tabular-nums; }
.region-directory { overflow: hidden; align-self: start; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.region-directory summary { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; cursor: pointer; list-style: none; }
.region-directory summary::-webkit-details-marker { display: none; }
.region-directory summary span:first-child { display: flex; flex-direction: column; }
.region-directory summary strong { font-size: 0.9rem; }
.region-directory summary small { margin-top: 3px; color: var(--text-muted); font-size: 0.72rem; }
.region-directory summary span:last-child { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 0.7rem; font-weight: 750; }
.region-directory[open] summary { border-bottom: 1px solid var(--border); }
.region-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 282px; overflow: auto; padding: 8px; gap: 3px; }
.region-item { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr) 18px; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; cursor: pointer; text-align: left; }
.region-item:hover { background: var(--surface-subtle); border-color: var(--border-soft); }
.region-code { color: var(--brand); font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; font-weight: 750; }
.region-name { min-width: 0; overflow-wrap: anywhere; font-size: 0.78rem; font-weight: 650; }
.region-name small { display: block; margin-top: 1px; color: var(--text-muted); font-size: 0.66rem; font-weight: 400; }
.region-arrow { color: var(--text-muted); }

.workspace-reference { border-top: 1px solid var(--border); }
.workspace-reference > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 0.86rem; font-weight: 720; }
.workspace-reference > summary::-webkit-details-marker { display: none; }
.workspace-reference > summary::before { content: '+'; margin-right: 10px; color: var(--brand); font-size: 1rem; }
.workspace-reference[open] > summary::before { content: '−'; }
.workspace-reference > summary span:last-child { margin-left: auto; color: var(--text-muted); font-size: 0.72rem; font-weight: 500; }
.integration-public { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: 22px; padding: 18px 0 6px; }
.integration-public h2 { font-size: 1rem; }
.integration-public p { margin-top: 6px; color: var(--text-secondary); font-size: 0.8rem; line-height: 1.45; }
.endpoint-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.endpoint-list .endpoint-item,
.endpoint-list a { min-width: 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.endpoint-list a:hover { border-color: var(--brand); }
.endpoint-item--contract { border-style: dashed; opacity: 0.82; }
.endpoint-list code { display: block; overflow: hidden; color: var(--brand); font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-list span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 0.68rem; }
.endpoint-list em { display: inline-block; margin-top: 6px; color: var(--text-faint); font-size: 0.63rem; font-style: normal; text-transform: uppercase; letter-spacing: 0.04em; }
.endpoint-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}
.endpoint-section h3 {
  margin-bottom: 3px;
  color: var(--brand);
  font-size: 0.72rem;
  line-height: 1.2;
}
.endpoint-subsection {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.endpoint-subsection h3 {
  margin-bottom: 2px;
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.2;
}
.runtime-contracts { width: 100%; }
.catalog-runtime-reference,
.workbench-contract-reference,
.status-contracts { margin-top: 18px; }
.catalog-runtime-reference__note { margin: 12px 0 4px; color: var(--text-muted); font-size: 0.72rem; line-height: 1.45; }
.catalog-runtime-reference__note a { color: var(--brand); font-weight: 730; }
.integration-code { max-width: 100%; overflow-x: auto; margin-top: 10px; padding: 12px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #111827; color: #e6edf3; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; line-height: 1.55; }
.runtime-facts { display: grid; gap: 1px; overflow: hidden; margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--border); }
.runtime-facts div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 11px; background: var(--surface); font-size: 0.72rem; }
.runtime-facts dt { color: var(--text-muted); }
.runtime-facts dd { text-align: right; font-weight: 700; }

.status-main,
.catalog-main,
.workbench-main {
  width: min(1600px, calc(100% - 48px));
  margin: 0 auto;
}
.status-main { padding-top: 28px; }
.status-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-tint) 36%, var(--surface)) 0%, var(--surface) 62%);
  box-shadow: var(--shadow-sm);
}
.status-hero h1 { max-width: 760px; font-size: 1.85rem; line-height: 1.14; text-wrap: balance; }
.status-hero p { max-width: 760px; margin-top: 10px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; }
.status-hero__state {
  min-height: 124px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-alt) 78%, var(--surface)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-sm);
}
.status-hero__state span { width: 11px; height: 11px; border-radius: 50%; background: var(--text-muted); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text-muted) 12%, transparent); }
.status-hero__state[data-state="ok"] span { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 13%, transparent); }
.status-hero__state[data-state="warn"] span { background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 16%, transparent); }
.status-hero__state strong { font-size: 1.05rem; line-height: 1.2; }
.status-hero__state small { color: var(--text-muted); font-size: 0.74rem; }
.status-hero__state .status-hero__checked { color: var(--text-faint); font-size: 0.64rem; }
.status-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.status-highlight-card { min-width: 0; display: grid; gap: 10px; padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 48%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.status-highlight-card,
.status-operator-card,
.catalog-route-card,
.workbench-route-card,
.workbench-live-card,
.workbench-strip__card,
.workbench-pulse-card,
.catalog-live-card,
.workspace-brief-card {
  position: relative;
  overflow: hidden;
}
.status-highlight-card::before,
.status-operator-card::before,
.catalog-route-card::before,
.workbench-route-card::before,
.workbench-live-card::before,
.workbench-strip__card::before,
.workbench-pulse-card::before,
.catalog-live-card::before,
.workspace-brief-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--blue) 70%, var(--brand)));
  opacity: 0.88;
}
.status-highlight-card strong { color: var(--text-primary); font-size: 1rem; line-height: 1.2; }
.status-highlight-card p { margin: 0; color: var(--text-secondary); font-size: 0.74rem; line-height: 1.45; }
.status-highlight-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.status-highlight-card dl div { min-width: 0; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.status-highlight-card dt { color: var(--text-muted); font-size: 0.61rem; line-height: 1.2; text-transform: uppercase; }
.status-highlight-card dd { margin-top: 4px; color: var(--text); font-size: 0.72rem; line-height: 1.35; font-weight: 720; white-space: nowrap; }
.status-operator-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.status-operator-card { min-width: 0; display: grid; gap: 10px; padding: 14px 15px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 46%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.status-operator-card span { color: var(--brand); font-size: 0.62rem; font-weight: 780; text-transform: uppercase; }
.status-operator-card strong { color: var(--text); font-size: 0.94rem; line-height: 1.2; }
.status-operator-card p { margin: 0; color: var(--text-secondary); font-size: 0.7rem; line-height: 1.42; }
.status-operator-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.status-operator-card dl div { min-width: 0; padding: 8px 9px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.status-operator-card dt { color: var(--text-faint); font-size: 0.56rem; line-height: 1.2; text-transform: uppercase; }
.status-operator-card dd { margin-top: 4px; color: var(--text); font-size: 0.68rem; line-height: 1.35; font-weight: 740; overflow-wrap: anywhere; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; padding: 18px 0 28px; }
.status-card[data-status-card="quality"] { grid-column: 1 / -1; grid-row: 2; }
.status-card { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.status-card[data-state="ok"] { border-top: 3px solid var(--success); }
.status-card[data-state="warn"] { border-top: 3px solid var(--amber); }
.status-card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.status-card__head span { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); }
.status-card[data-state="ok"] .status-card__head span { background: var(--success); }
.status-card[data-state="warn"] .status-card__head span { background: var(--amber); }
.status-card h2 { font-size: 0.95rem; line-height: 1.2; }
.status-card dl { display: grid; gap: 8px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.status-card dl div { min-width: 0; display: flex; justify-content: space-between; gap: 14px; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-subtle); font-size: 0.72rem; }
.status-card dt { color: var(--text-muted); }
.status-card dd { min-width: 0; max-width: 58%; overflow-wrap: anywhere; text-align: right; font-weight: 720; }
@media (min-width: 721px) {
  .status-card[data-status-card="quality"] dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .status-card[data-status-card="quality"] dl div { display: grid; gap: 3px; align-content: start; }
  .status-card[data-status-card="quality"] dd { max-width: none; text-align: left; }
}
.status-queue { display: grid; gap: 12px; align-items: start; margin: 0 0 22px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface)) 0%, var(--surface) 64%); box-shadow: var(--shadow-sm); }
.status-queue h2 { font-size: 1.05rem; line-height: 1.2; }
.status-queue p { margin-top: 5px; color: var(--text-secondary); font-size: 0.74rem; line-height: 1.45; }
.status-queue__hero { display: grid; grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr); gap: 12px; align-items: start; }
.status-queue__intro { min-width: 0; }
.status-queue__topline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 0.54fr); gap: 10px; align-items: stretch; }
.status-queue__summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.status-queue__summary div { min-width: 0; padding: 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.status-queue__summary strong { display: block; overflow-wrap: anywhere; font-size: 0.92rem; line-height: 1.15; }
.status-queue__summary span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; }
.status-queue__dashboard { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr); gap: 8px; align-items: start; }
.status-queue__windows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.status-window-card { min-width: 0; display: grid; gap: 6px; padding: 10px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.status-window-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-window-card__head strong { font-size: 0.76rem; line-height: 1.2; }
.status-window-card__head span { color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; font-weight: 760; }
.status-window-card p { margin: 0; color: var(--text-secondary); font-size: 0.66rem; line-height: 1.35; }
.status-queue__pulse { display: grid; grid-template-columns: 1fr; gap: 8px; }
.status-queue__pulse article { min-width: 0; padding: 10px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.status-queue__pulse span { display: block; margin-bottom: 4px; color: var(--brand); font-size: 0.62rem; font-weight: 760; text-transform: uppercase; }
.status-queue__pulse strong { display: block; font-size: 0.88rem; line-height: 1.2; }
.status-queue__pulse p { margin: 6px 0 0; color: var(--text-secondary); font-size: 0.65rem; line-height: 1.35; }
.status-latest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.status-latest-card { min-width: 0; display: grid; gap: 9px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 42%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.status-latest-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.status-latest-card__head strong { font-size: 0.8rem; line-height: 1.25; }
.status-latest-card__head span { flex: 0 0 auto; min-height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--brand-strong); font-size: 0.63rem; font-weight: 760; background: var(--surface); }
.status-latest-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.status-latest-card__chip { min-height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid var(--border-soft); border-radius: 999px; background: color-mix(in srgb, var(--surface-subtle) 82%, var(--surface)); color: var(--text-secondary); font-family: 'IBM Plex Mono', monospace; font-size: 0.61rem; font-weight: 740; }
.status-latest-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.status-latest-card dl div { min-width: 0; padding: 7px 8px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.status-latest-card dt { color: var(--text-muted); font-size: 0.58rem; line-height: 1.2; text-transform: uppercase; }
.status-latest-card dd { margin-top: 4px; color: var(--text); font-size: 0.69rem; line-height: 1.35; font-weight: 720; overflow-wrap: anywhere; }
.status-latest-card p { margin: 0; color: var(--text-secondary); font-size: 0.68rem; line-height: 1.45; }
.status-latest-card__source { display: block; margin-top: -1px; padding-top: 8px; border-top: 1px solid var(--border-soft); color: var(--text-muted); font-size: 0.62rem; line-height: 1.35; overflow-wrap: anywhere; }
.status-latest-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
  border-top: 1px solid var(--border-soft);
}
.status-latest-card__footer small {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.63rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.status-latest-card a { width: fit-content; min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-size: 0.66rem; font-weight: 740; }
.status-latest-card a:hover { border-color: var(--brand); background: var(--brand-soft); }
.status-queue__items { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.status-queue__items li { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 9px; align-items: start; padding: 8px 9px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.status-queue__items span { grid-row: span 3; display: inline-flex; align-items: center; justify-content: center; min-height: 24px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); font-size: 0.62rem; font-weight: 800; }
.status-queue-item__head { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.status-queue-item__head a { flex: 0 0 auto; color: var(--brand); font-size: 0.61rem; font-weight: 760; }
.status-queue__items strong { min-width: 0; overflow-wrap: anywhere; font-size: 0.73rem; line-height: 1.25; }
.status-queue__items small { min-width: 0; color: var(--text-muted); font-size: 0.64rem; line-height: 1.32; overflow-wrap: anywhere; }
.status-queue-item__summary { grid-column: 2; margin: 0; color: var(--text-secondary); font-size: 0.66rem; line-height: 1.42; }
.status-queue__items dl { grid-column: 2; display: grid; gap: 3px; margin: 5px 0 0; }
.status-queue__items dl div { min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 6px; }
.status-queue__items dt { color: var(--text-faint); font-size: 0.58rem; font-weight: 780; text-transform: uppercase; }
.status-queue__items dd { min-width: 0; color: var(--text-secondary); font-size: 0.62rem; line-height: 1.32; overflow-wrap: anywhere; }
.status-queue-item__footer { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 5px; padding-top: 6px; border-top: 1px solid var(--border-soft); }
.status-queue-item__footer small { color: var(--text-muted); font-size: 0.62rem; }
.status-queue-item__footer code { color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 0.59rem; overflow-wrap: anywhere; }
.status-queue__links { display: grid; gap: 7px; align-content: start; }
.status-queue__link { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--brand); font-size: 0.72rem; font-weight: 760; white-space: nowrap; }
.status-queue__link:hover { border-color: var(--brand); background: var(--brand-soft); }
.status-queue__details { border-top: 1px solid var(--border-soft); padding-top: 10px; }
.status-queue__details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; cursor: pointer; color: var(--text-secondary); font-size: 0.72rem; font-weight: 760; list-style: none; }
.status-queue__details > summary span:first-child { color: var(--text-primary); }
.status-queue__details > summary small { display: block; margin-left: auto; color: var(--text-muted); font-size: 0.64rem; font-weight: 650; line-height: 1.3; }
.status-queue__details > summary::-webkit-details-marker { display: none; }
.status-queue__details > summary::after { content: '+'; width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--brand); background: var(--surface); font-size: 0.9rem; }
.status-queue__details[open] > summary { margin-bottom: 10px; }
.status-queue__details[open] > summary::after { content: '−'; }
.status-contracts { margin-bottom: 34px; }

.catalog-main { padding-top: 24px; }
.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.76fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-tint) 32%, var(--surface)) 0%, var(--surface) 68%);
  box-shadow: var(--shadow-sm);
}
.catalog-intro h1 { max-width: 760px; font-size: 1.85rem; line-height: 1.14; text-wrap: balance; }
.catalog-intro > div > p:last-child { max-width: 760px; margin-top: 10px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; }
.catalog-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.catalog-summary div { min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
.catalog-summary dt { overflow-wrap: anywhere; font-size: 1rem; line-height: 1.2; font-weight: 760; }
.catalog-summary dd { margin-top: 4px; color: var(--text-muted); font-size: 0.68rem; line-height: 1.3; }
.status-sources-main .catalog-summary dt { overflow-wrap: normal; word-break: normal; hyphens: none; font-size: 0.86rem; line-height: 1.15; }
.catalog-summary-note { margin-top: 9px; max-width: 420px; color: var(--text-muted); font-size: 0.72rem; line-height: 1.45; text-align: right; justify-self: end; }
.catalog-summary-pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.catalog-summary-pulse article { min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-alt) 86%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.catalog-summary-pulse span { display: block; margin-bottom: 4px; color: var(--brand); font-size: 0.66rem; font-weight: 760; text-transform: uppercase; }
.catalog-summary-pulse strong { display: block; font-size: 1.25rem; line-height: 1.1; font-weight: 780; }
.catalog-summary-pulse p { margin: 6px 0 0; color: var(--text-muted); font-size: 0.72rem; line-height: 1.45; }
.catalog-search {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-subtle));
  box-shadow: var(--shadow-sm);
}
.catalog-search > input { grid-column: span 4; }
.catalog-search > select { grid-column: span 2; }
.catalog-search > a,
.catalog-search > button { grid-column: span 2; justify-content: center; }
.catalog-search > span { grid-column: 1 / -1; min-width: 0; color: var(--text-muted); font-size: 0.69rem; text-align: left; }
.catalog-search input, .catalog-search select { min-width: 0; height: 38px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 0.78rem; }
.catalog-search input:focus, .catalog-search select:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); }
.catalog-search > a { min-width: 0; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); background: var(--surface); font-size: 0.72rem; font-weight: 700; overflow-wrap: anywhere; text-align: center; }
.catalog-search > a:hover { border-color: var(--brand); background: var(--brand-soft); }
.catalog-search > button { min-width: 0; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); background: var(--surface-subtle); font: inherit; font-size: 0.72rem; font-weight: 700; overflow-wrap: anywhere; text-align: center; cursor: pointer; }
.catalog-search > button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.catalog-search > button:focus-visible { border-color: var(--brand); outline: 3px solid var(--brand-soft); outline-offset: 1px; }
.data-hub-main { padding-bottom: 44px; }
.data-hub-search { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.data-hub-search form { display: flex; min-width: 0; flex: 1; gap: 8px; }
.data-hub-search input { min-width: 0; flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-subtle); color: var(--text); font: inherit; font-size: 0.8rem; }
.data-hub-search input:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); }
.data-hub-search .btn { min-height: 40px; white-space: nowrap; }
.data-hub-search__advanced { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); background: var(--surface); font-size: 0.72rem; font-weight: 720; }
.data-hub-search__advanced:hover { border-color: var(--brand); background: var(--brand-soft); }
.data-hub-pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.data-hub-pulse article { min-width: 0; display: grid; gap: 4px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 18%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.data-hub-pulse span { color: var(--brand); font-size: 0.64rem; font-weight: 780; text-transform: uppercase; }
.data-hub-pulse strong { color: var(--text-primary); font-size: 1.2rem; line-height: 1.15; }
.data-hub-pulse small { color: var(--text-muted); font-size: 0.7rem; line-height: 1.35; }
.data-hub-subnav { position: sticky; z-index: 4; top: var(--shell-header-height, 62px); display: flex; gap: 7px; overflow-x: auto; margin: 0 0 16px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); scrollbar-width: none; }
.data-hub-subnav::-webkit-scrollbar { display: none; }
.data-hub-subnav.is-clipped-end { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%); }
.data-hub-subnav.is-clipped-start:not(.is-clipped-end) { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 100%); }
.data-hub-subnav.is-clipped-start.is-clipped-end { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.data-hub-subnav a { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid transparent; border-radius: 999px; color: var(--text-secondary); font-size: 0.7rem; font-weight: 720; white-space: nowrap; }
.data-hub-subnav a:hover, .data-hub-subnav a[aria-current="page"] { border-color: color-mix(in srgb, var(--brand) 28%, var(--border)); color: var(--brand); background: var(--brand-soft); }
.data-hub-section { padding-block: 18px; }
.data-hub-routes { margin-bottom: 8px; }
.data-hub-cta { margin-top: 18px; }
@media (min-width: 981px) {
  .catalog-search select {
    padding-inline: 9px;
    font-size: 0.72rem;
    letter-spacing: -0.01em;
  }
}
@media (min-width: 981px) and (max-width: 1240px) {
  .catalog-search {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .catalog-search > input { grid-column: span 1; }
  .catalog-search > select,
  .catalog-search > a,
  .catalog-search > button { grid-column: span 1; }
}
@media (min-width: 1241px) {
  .catalog-search {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .catalog-search > input,
  .catalog-search > select,
  .catalog-search > a,
  .catalog-search > button { grid-column: span 3; }
}
.catalog-live-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.catalog-live-card { min-width: 0; display: grid; gap: 8px; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 38%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.catalog-live-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.catalog-live-card span { color: var(--brand); font-size: 0.62rem; font-weight: 780; text-transform: uppercase; }
.catalog-live-card em {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-subtle) 78%, var(--surface));
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-live-card strong { color: var(--text-primary); font-size: 0.84rem; line-height: 1.25; overflow-wrap: anywhere; }
.catalog-live-card p { margin: 0; color: var(--text-secondary); font-size: 0.69rem; line-height: 1.4; }
.catalog-live-card__lede { color: var(--text); font-size: 0.72rem; font-weight: 620; }
.catalog-live-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.catalog-live-facts div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-subtle) 82%, var(--surface));
}
.catalog-live-facts dt {
  color: var(--text-faint);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}
.catalog-live-facts dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  font-weight: 740;
}
.catalog-live-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--border-soft);
}
.catalog-live-card__footer small {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.63rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.catalog-live-card a { width: fit-content; min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-size: 0.66rem; font-weight: 740; }
.catalog-live-card a:hover { border-color: var(--brand); background: var(--brand-soft); }
[data-catalog-item][hidden], .catalog-item--truncated { display: none !important; }
.catalog-jump,
.status-jump,
.map-jump,
.territory-jump {
  position: sticky;
  top: var(--shell-header-height, 62px);
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 8px 0 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.catalog-jump a,
.status-jump a,
.map-jump a,
.territory-jump a {
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
}
.catalog-jump__item {
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.catalog-jump__item:hover,
.catalog-jump__item:focus-within {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.catalog-jump__item a {
  min-height: 0;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.73rem;
  font-weight: 760;
  line-height: 1.2;
}
.catalog-jump__item a:hover,
.catalog-jump__item a:focus-visible {
  border: 0;
  background: transparent;
  color: var(--brand-strong);
}
.catalog-jump__item span {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.63rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.catalog-jump a:hover,
.catalog-jump a:focus-visible,
.status-jump a:hover,
.status-jump a:focus-visible,
.map-jump a:hover,
.map-jump a:focus-visible,
.territory-jump a:hover,
.territory-jump a:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.catalog-jump strong,
.status-jump strong,
.map-jump strong,
.territory-jump strong {
  min-width: 0;
  font-size: 0.73rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.catalog-jump span,
.status-jump span,
.map-jump span,
.territory-jump span {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.63rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
@media (min-width: 1241px) {
  .catalog-jump { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}
.catalog-action-strip { display: grid; grid-template-columns: minmax(250px, 0.26fr) minmax(0, 1fr); gap: 12px; align-items: stretch; margin-top: 10px; }
.catalog-action-strip > div:first-child { min-width: 0; padding: 14px 15px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.catalog-action-strip h2 { margin-top: 5px; font-size: 1rem; line-height: 1.2; }
.catalog-action-strip__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.catalog-action-strip article { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 9px; align-content: start; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--surface-subtle)); box-shadow: var(--shadow-sm); }
.catalog-action-strip span { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 0.62rem; font-weight: 800; }
.catalog-action-strip strong { min-width: 0; align-self: center; font-size: 0.78rem; line-height: 1.2; overflow-wrap: anywhere; }
.catalog-action-strip em { align-self: center; color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; font-style: normal; font-weight: 740; }
.catalog-action-strip__facts { grid-column: 1 / -1; display: grid; gap: 4px; margin: 2px 0 0; padding-top: 7px; border-top: 1px solid var(--border-soft); }
.catalog-action-strip__facts div { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
.catalog-action-strip__facts dt { color: var(--text-faint); font-size: 0.58rem; font-weight: 800; text-transform: uppercase; }
.catalog-action-strip__facts dd { min-width: 0; overflow: hidden; color: var(--text-secondary); font-size: 0.62rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.catalog-action-strip p { grid-column: 1 / -1; color: var(--text-secondary); font-size: 0.68rem; line-height: 1.35; overflow-wrap: anywhere; }
.catalog-action-strip a { color: var(--brand); font-size: 0.66rem; font-weight: 760; }
.catalog-route-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0 0; }
.catalog-route-card { min-width: 0; display: grid; gap: 10px; padding: 14px 15px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-alt) 90%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.catalog-route-card span { color: var(--brand); font-size: 0.62rem; font-weight: 780; text-transform: uppercase; }
.catalog-route-card strong { color: var(--text-primary); font-size: 0.88rem; line-height: 1.25; overflow-wrap: anywhere; }
.catalog-route-card p { margin: 0; color: var(--text-secondary); font-size: 0.69rem; line-height: 1.42; }
.catalog-route-card__source { display: block; margin-top: -2px; color: var(--text-muted); font-size: 0.62rem; line-height: 1.35; }
.catalog-route-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.catalog-route-card__facts div { min-width: 0; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.catalog-route-card__facts dt { color: var(--text-muted); font-size: 0.59rem; line-height: 1.2; text-transform: uppercase; }
.catalog-route-card__facts dd { margin-top: 4px; color: var(--text); font-size: 0.71rem; line-height: 1.35; font-weight: 720; overflow-wrap: anywhere; }
.catalog-route-card > a { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-size: 0.72rem; font-weight: 760; background: var(--surface); }
.catalog-route-card > a:hover { border-color: var(--brand); background: var(--brand-soft); }
.catalog-freshness-panel { margin: 14px 0 18px; }
.catalog-freshness-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.catalog-freshness-card { min-width: 0; display: grid; gap: 8px; padding: 12px 13px; border: 1px solid var(--border-soft); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface-subtle) 82%, var(--surface)); }
.catalog-freshness-card--operational { border-left-color: var(--success); }
.catalog-freshness-card--daily { border-left-color: var(--blue); }
.catalog-freshness-card--reference { border-left-color: var(--amber); }
.catalog-freshness-card__head { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.catalog-freshness-card__marker { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent); }
.catalog-freshness-card--operational .catalog-freshness-card__marker { background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 13%, transparent); }
.catalog-freshness-card--daily .catalog-freshness-card__marker { background: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 13%, transparent); }
.catalog-freshness-card--reference .catalog-freshness-card__marker { background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 13%, transparent); }
.catalog-freshness-card__head strong { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: 0.75rem; line-height: 1.25; }
.catalog-freshness-card__head em { color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; font-style: normal; font-weight: 760; }
.catalog-freshness-card progress { width: 100%; height: 8px; display: block; border: 0; border-radius: 999px; overflow: hidden; background: var(--border-soft); accent-color: var(--brand); }
.catalog-freshness-card progress::-webkit-progress-bar { background: var(--border-soft); border-radius: 999px; }
.catalog-freshness-card progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--blue) 65%, var(--brand))); }
.catalog-freshness-card--operational progress::-webkit-progress-value { background: linear-gradient(90deg, var(--success), color-mix(in srgb, var(--brand) 70%, var(--success))); }
.catalog-freshness-card--daily progress::-webkit-progress-value { background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--brand) 70%, var(--blue))); }
.catalog-freshness-card--reference progress::-webkit-progress-value { background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--brand) 70%, var(--amber))); }
.catalog-freshness-card progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--blue) 65%, var(--brand))); }
.catalog-freshness-card small { color: var(--text-muted); font-size: 0.63rem; line-height: 1.35; }
.catalog-freshness-evidence { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; margin-top: 10px; padding: 9px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface-alt) 72%, var(--surface)); }
.catalog-freshness-evidence__label { display: inline-flex; align-items: center; padding: 0 6px; color: var(--text-muted); font-size: 0.6rem; font-weight: 800; text-transform: uppercase; }
.catalog-freshness-evidence__item { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 7px; padding: 7px 9px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.catalog-freshness-evidence__item strong { color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; line-height: 1.1; }
.catalog-freshness-evidence__item span { min-width: 0; overflow-wrap: anywhere; color: var(--text-secondary); font-size: 0.62rem; line-height: 1.2; }
.catalog-freshness-evidence__item small { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.58rem; line-height: 1.25; }
.catalog-freshness-evidence__item--runtime_observed { border-color: color-mix(in srgb, var(--success) 38%, var(--border)); }
.catalog-freshness-evidence__item--versioned_snapshot { border-color: color-mix(in srgb, var(--blue) 38%, var(--border)); }
.catalog-freshness-evidence__item--contract_only { border-color: color-mix(in srgb, var(--amber) 42%, var(--border)); }
.catalog-methodology { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }

.territory-search-panel,
.territory-ai-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.territory-search-panel h2,
.territory-ai-panel h2,
.territory-section-head h2 { font-size: 1.02rem; line-height: 1.2; }
.territory-search-panel p,
.territory-ai-panel p { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.5; }
.territory-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.28fr) minmax(160px, 0.28fr) auto;
  gap: 8px;
}
.territory-search-form input,
.territory-search-form select {
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 0.78rem;
}
.territory-search-form button,
.territory-primary-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.76rem;
  font-weight: 760;
  cursor: pointer;
}
.territory-live-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.territory-live-card { min-width: 0; display: grid; gap: 8px; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 36%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.territory-live-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.territory-live-card span { color: var(--brand); font-size: 0.62rem; font-weight: 780; text-transform: uppercase; }
.territory-live-card em { min-width: 0; width: fit-content; max-width: 100%; padding: 2px 8px; border: 1px solid var(--border-soft); border-radius: 999px; background: color-mix(in srgb, var(--surface-subtle) 78%, var(--surface)); color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; font-style: normal; font-weight: 760; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.territory-live-card strong { color: var(--text-primary); font-size: 0.84rem; line-height: 1.25; overflow-wrap: anywhere; }
.territory-live-card p { margin: 0; color: var(--text-secondary); font-size: 0.7rem; line-height: 1.42; }
.territory-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.territory-card-facts div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-subtle) 82%, var(--surface));
}
.territory-card-facts dt {
  color: var(--text-faint);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}
.territory-card-facts dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  font-weight: 740;
}
.territory-live-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; border-top: 1px solid var(--border-soft); }
.territory-live-card__footer small { min-width: 0; color: var(--text-muted); font-size: 0.64rem; line-height: 1.35; overflow-wrap: anywhere; }
.territory-live-card a { width: fit-content; min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-size: 0.66rem; font-weight: 740; }
.territory-live-card a:hover { border-color: var(--brand); background: var(--brand-soft); }
.territory-route-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.territory-route-card { min-width: 0; display: grid; gap: 10px; padding: 14px 15px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-alt) 90%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.territory-route-card span { color: var(--brand); font-size: 0.62rem; font-weight: 780; text-transform: uppercase; }
.territory-route-card strong { color: var(--text-primary); font-size: 0.88rem; line-height: 1.25; overflow-wrap: anywhere; }
.territory-route-card p { margin: 0; color: var(--text-secondary); font-size: 0.69rem; line-height: 1.42; }
.territory-route-card__source { display: block; margin-top: -2px; color: var(--text-muted); font-size: 0.62rem; line-height: 1.35; }
.territory-route-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.territory-route-card__facts div { min-width: 0; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.territory-route-card__facts dt { color: var(--text-muted); font-size: 0.59rem; line-height: 1.2; text-transform: uppercase; }
.territory-route-card__facts dd { margin-top: 4px; color: var(--text); font-size: 0.71rem; line-height: 1.35; font-weight: 720; overflow-wrap: anywhere; }
.territory-route-card > a { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-size: 0.72rem; font-weight: 760; background: var(--surface); }
.territory-route-card > a:hover { border-color: var(--brand); background: var(--brand-soft); }
.territory-evidence-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.territory-evidence-card { min-width: 0; display: grid; gap: 8px; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 34%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.territory-evidence-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.territory-evidence-card span { color: var(--brand); font-size: 0.62rem; font-weight: 780; text-transform: uppercase; }
.territory-evidence-card em {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 2px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-subtle) 78%, var(--surface));
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.territory-evidence-card strong { color: var(--text-primary); font-size: 0.82rem; line-height: 1.25; overflow-wrap: anywhere; }
.territory-evidence-card p { margin: 0; color: var(--text-secondary); font-size: 0.69rem; line-height: 1.42; }
.territory-evidence-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 3px;
  border-top: 1px solid var(--border-soft);
}
.territory-evidence-card__footer small {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.63rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.territory-evidence-state {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
  padding: 16px 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 28%, var(--surface)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-sm);
}
.territory-evidence-state__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.territory-evidence-state__head h2 { margin-top: 4px; color: var(--text-primary); font-size: 1rem; line-height: 1.25; }
.territory-evidence-state__head p:not(.eyebrow) { max-width: 760px; margin-top: 6px; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.45; }
.territory-evidence-state__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.territory-evidence-state__item { min-width: 0; padding: 11px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.territory-evidence-state__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.territory-evidence-state__top span { color: var(--text-muted); font-size: 0.65rem; font-weight: 760; text-transform: uppercase; }
.territory-evidence-state__top strong { color: var(--text-primary); font-size: 0.72rem; line-height: 1.25; text-align: right; }
.territory-evidence-state__item::before { content: ''; display: block; width: 10px; height: 10px; margin-bottom: 8px; border-radius: 50%; background: var(--text-muted); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text-muted) 13%, transparent); }
.territory-evidence-state__item--ready::before { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent); }
.territory-evidence-state__item--reference::before { background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 14%, transparent); }
.territory-evidence-state__item--missing::before { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent); }
.territory-evidence-state__item p { margin: 6px 0 0; color: var(--text-secondary); font-size: 0.68rem; line-height: 1.42; }
.territory-evidence-state__footer { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--border-soft); }
.territory-evidence-state__footer small { color: var(--text-muted); font-size: 0.63rem; line-height: 1.35; }
.territory-evidence-state__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; }
.territory-evidence-state__footer a { min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-size: 0.68rem; font-weight: 740; background: var(--surface); }
.territory-results-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-subtle));
  box-shadow: var(--shadow-sm);
}
.territory-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.territory-results-head h2 { font-size: 1rem; line-height: 1.2; }
.territory-results-head a {
  flex: 0 0 auto;
  color: var(--brand);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 760;
}
.territory-results-head__actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
.territory-results-head__reset { padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-family: inherit !important; }
.territory-results-head__reset:hover { border-color: var(--brand); background: var(--brand-soft); }
.territory-results-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.territory-results-list a {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.territory-results-list a:hover { border-color: var(--brand); background: var(--surface-subtle); }
.territory-result-card { gap: 7px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 22%, var(--surface)) 0%, var(--surface) 100%); }
.territory-result-card__kind { width: fit-content; min-height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 0.6rem; font-weight: 800; text-transform: uppercase; }
.territory-results-list strong { min-width: 0; overflow-wrap: anywhere; font-size: 0.82rem; line-height: 1.2; }
.territory-results-list span { color: var(--brand); font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; font-weight: 760; }
.territory-result-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--border-soft);
}
.territory-result-card__facts div { min-width: 0; display: grid; gap: 2px; padding: 7px 8px; background: var(--surface); }
.territory-result-card__facts dt { color: var(--text-faint); font-size: 0.55rem; font-weight: 800; text-transform: uppercase; }
.territory-result-card__facts dd { color: var(--text); font-size: 0.7rem; font-weight: 760; line-height: 1.3; overflow-wrap: anywhere; }
.territory-results-list small { color: var(--text-muted); font-size: 0.68rem; line-height: 1.35; }
.territory-empty-state {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
}
.territory-empty-state strong { color: var(--text); font-size: 0.92rem; }
.territory-empty-state span { font-size: 0.78rem; line-height: 1.45; }
.territory-empty-state a { color: var(--brand); font-size: 0.72rem; font-weight: 760; }
.territory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
}
.territory-section-head { grid-column: 1 / -1; margin-bottom: 2px; }
.territory-card,
.territory-detail-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.territory-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 1.15rem;
  line-height: 1.1;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}
.territory-card h3 { font-size: 0.88rem; line-height: 1.2; }
.territory-card p,
.territory-note { margin-top: 7px; color: var(--text-secondary); font-size: 0.73rem; line-height: 1.45; }
.territory-card code,
.territory-detail-card code { overflow-wrap: anywhere; color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; }
.territory-card a {
  display: inline-flex;
  margin-top: 11px;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 760;
}
.territory-coverage-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.territory-coverage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--border);
}
.territory-coverage-summary div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  background: var(--surface-subtle);
}
.territory-coverage-summary strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.territory-coverage-summary span {
  color: var(--text-muted);
  font-size: 0.66rem;
  line-height: 1.25;
}
.territory-coverage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.territory-coverage-row {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}
.territory-coverage-row--reference_only { border-left: 3px solid var(--warning); }
.territory-coverage-row--partial { border-left: 3px solid var(--brand); }
.territory-coverage-row--mapped { border-left: 3px solid var(--ok); }
.territory-coverage-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.82rem;
  line-height: 1.2;
}
.territory-coverage-row span,
.territory-coverage-row code {
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
}
.territory-coverage-row dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--border-soft);
}
.territory-coverage-row dl div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px;
  background: var(--surface);
}
.territory-coverage-row dt {
  color: var(--text-faint);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}
.territory-coverage-row dd {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}
.territory-coverage-row p {
  color: var(--text-secondary);
  font-size: 0.68rem;
  line-height: 1.35;
}
.territory-table-section { margin: 22px 0 28px; }
.territory-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.territory-table a,
.territory-row {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.territory-table a:hover,
.territory-row:hover { border-color: var(--brand); background: var(--surface-subtle); }
.territory-table strong,
.territory-row strong { min-width: 0; overflow-wrap: anywhere; font-size: 0.84rem; line-height: 1.2; }
.territory-table span,
.territory-row span { color: var(--brand); font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; font-weight: 760; }
.territory-table small { color: var(--text-muted); font-size: 0.69rem; line-height: 1.35; }
.territory-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.territory-columns article { min-width: 0; display: grid; align-content: start; gap: 7px; }
.territory-ai-panel dl {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--border);
}
.territory-ai-panel dl div { min-width: 0; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; padding: 10px 12px; background: var(--surface-subtle); }
.territory-ai-panel dt { color: var(--text-muted); font-size: 0.7rem; font-weight: 760; }
.territory-ai-panel dd { min-width: 0; overflow-wrap: anywhere; font-size: 0.74rem; font-weight: 700; }
.territory-ai-panel a { color: var(--brand); font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; }
.territory-ai-panel__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.territory-ai-panel__footer small { min-width: 0; color: var(--text-muted); font-size: 0.68rem; line-height: 1.42; }
.territory-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.68fr);
  gap: 36px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.territory-back-link {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-tint) 38%, var(--surface));
  color: var(--brand-strong);
  font-size: 0.68rem;
  font-weight: 760;
}
.territory-back-link::before { content: "←"; font-size: 0.78rem; line-height: 1; }
.territory-back-link:hover { border-color: var(--brand); background: var(--brand-soft); }
.territory-detail-hero h1 { max-width: 820px; font-size: 2rem; line-height: 1.1; }
.territory-detail-hero p { max-width: 820px; margin-top: 10px; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.55; }
.territory-detail-hero .catalog-summary dt { white-space: nowrap; font-family: 'IBM Plex Mono', monospace; font-size: 0.84rem; letter-spacing: -0.02em; }
.territory-detail-jump { position: sticky; top: var(--shell-header-height, 62px); z-index: 70; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.territory-detail-jump a { min-width: 0; min-height: 54px; display: grid; align-content: center; gap: 3px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-secondary); background: var(--surface); border: 1px solid transparent; }
.territory-detail-jump a:hover,
.territory-detail-jump a:focus-visible { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.territory-detail-jump strong { min-width: 0; font-size: 0.74rem; line-height: 1.2; overflow-wrap: anywhere; }
.territory-detail-jump span { min-width: 0; color: var(--text-muted); font-size: 0.64rem; line-height: 1.3; overflow-wrap: anywhere; }
.territory-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  margin: 22px 0 28px;
}
.territory-detail-card h2 { margin-bottom: 12px; font-size: 1rem; line-height: 1.2; }
.territory-detail-card--accent { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, var(--surface)), var(--surface)); }
.territory-detail-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border-soft);
}
.territory-detail-card__footer small {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.64rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.territory-detail-card__footer a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 740;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.territory-detail-card__footer a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.territory-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--border-soft);
}
.territory-facts div { min-width: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 10px; background: var(--surface-subtle); }
.territory-facts dt { min-width: 0; color: var(--text-muted); font-size: 0.66rem; line-height: 1.35; font-weight: 760; overflow-wrap: anywhere; }
.territory-facts dd { min-width: 0; overflow-wrap: anywhere; font-size: 0.72rem; line-height: 1.35; font-weight: 700; }
.territory-primary-link { margin-top: 12px; }
.catalog-methodology > summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 15px; color: var(--text); cursor: pointer; font-size: 0.82rem; font-weight: 730; list-style: none; }
.catalog-methodology > summary::-webkit-details-marker { display: none; }
.catalog-methodology > summary::after { content: '+'; width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 50%; color: var(--brand); background: var(--surface-subtle); font-size: 1rem; line-height: 1; }
.catalog-methodology[open] > summary { border-bottom: 1px solid var(--border); }
.catalog-methodology[open] > summary::after { content: '−'; }
.catalog-methodology > summary small { margin-left: auto; color: var(--text-muted); font-size: 0.7rem; font-weight: 560; }
.catalog-methodology__body { padding: 0 18px; }
.catalog-methodology__body .catalog-section:last-child { border-bottom: 0; }
.catalog-section { scroll-margin-top: 112px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.catalog-section__note { max-width: 840px; margin: -2px 0 12px; color: var(--text-secondary); font-size: 0.76rem; line-height: 1.5; }
.catalog-section-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; overflow: visible; margin: 0 0 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.catalog-section-facts div { min-width: 0; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-subtle) 88%, var(--surface)) 0%, var(--surface) 100%); }
.catalog-section-facts dt { color: var(--text-faint); font-size: 0.56rem; font-weight: 800; text-transform: uppercase; }
.catalog-section-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.73rem; font-weight: 760; line-height: 1.35; }
.catalog-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.catalog-section__head h2 { font-size: 1.15rem; line-height: 1.2; }
.catalog-section__head > a { color: var(--brand); font-size: 0.76rem; font-weight: 680; }
.published-data { padding-top: 24px; }
.published-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.published-metrics > div { min-width: 0; padding: 14px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.published-metrics strong { display: block; margin-top: 9px; color: var(--text-primary); font-family: 'IBM Plex Mono', monospace; font-size: 1.18rem; line-height: 1.05; overflow-wrap: anywhere; }
.published-metrics p { margin-top: 5px; color: var(--text-muted); font-size: 0.68rem; line-height: 1.3; }
.published-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; align-items: start; }
.published-panel { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.published-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.published-panel__top em { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 24px; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 0.63rem; font-style: normal; font-weight: 780; letter-spacing: 0.02em; }
.published-panel__top small { color: var(--text-muted); font-size: 0.68rem; line-height: 1.35; text-align: right; }
.published-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.published-panel__head h3 { font-size: 0.92rem; line-height: 1.25; }
.published-panel__head a { color: var(--brand); font-size: 0.68rem; font-weight: 720; white-space: nowrap; }
.published-panel__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.published-panel__footer small { color: var(--text-muted); font-size: 0.64rem; line-height: 1.35; overflow-wrap: anywhere; }
.published-panel__footer a { color: var(--brand); font-size: 0.67rem; font-weight: 760; white-space: nowrap; }
.quality-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.quality-summary div { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.quality-summary strong { display: block; margin-top: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 1.25rem; line-height: 1; }
.quality-summary p { margin-top: 5px; color: var(--text-muted); font-size: 0.68rem; line-height: 1.35; }
.quality-layer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quality-layer { min-width: 0; padding: 14px; border: 1px solid var(--border); border-left: 4px solid var(--success); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.quality-layer--blocked { border-left-color: var(--danger); }
.quality-layer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.quality-layer__head strong { min-width: 0; overflow-wrap: anywhere; font-size: 0.86rem; line-height: 1.25; text-align: right; }
.quality-layer dl { border-top: 1px solid var(--border-soft); }
.quality-layer dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.65rem; }
.quality-layer dt { color: var(--text-muted); }
.quality-layer dd { max-width: 58%; text-align: right; font-weight: 680; overflow-wrap: anywhere; }
.quality-layer a { display: block; margin-top: 9px; color: var(--brand); font-size: 0.68rem; font-weight: 720; overflow-wrap: anywhere; }
.quality-layer p { margin-top: 8px; color: var(--danger); font-size: 0.68rem; line-height: 1.35; }
.quality-layer__evidence { margin-top: 10px; padding: 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-muted); }
.quality-layer__evidence p { margin: 0; color: var(--text); font-size: 0.66rem; line-height: 1.42; }
.quality-layer__evidence p + p { margin-top: 6px; }
.quality-layer__evidence strong { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.58rem; }
.published-table { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--border-soft); }
.published-table__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(94px, 0.3fr) minmax(92px, 0.26fr); gap: 14px; align-items: center; min-height: 54px; padding: 9px 11px; background: var(--surface-subtle); color: inherit; text-decoration: none; }
.published-table__row:hover { background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.published-table__row strong { display: block; color: var(--text-primary); font-size: 0.78rem; line-height: 1.25; }
.published-table__row small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 0.66rem; line-height: 1.3; }
.published-table__row span:nth-child(n+2) { color: var(--text-secondary); font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; text-align: right; overflow-wrap: anywhere; }
.published-breakdown { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--border-soft); }
.published-breakdown div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding: 8px 10px; background: var(--surface-subtle); }
.published-breakdown dt { color: var(--text-secondary); font-size: 0.74rem; line-height: 1.3; }
.published-breakdown dd { color: var(--text-primary); font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; font-weight: 720; }
.kato-explorer { margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.kato-explorer__summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.kato-explorer__summary > div { min-width: 0; padding: 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.kato-explorer__summary strong { display: block; margin-top: 7px; color: var(--text-primary); font-family: 'IBM Plex Mono', monospace; font-size: 1rem; overflow-wrap: anywhere; }
.kato-explorer__summary p { margin-top: 4px; color: var(--text-muted); font-size: 0.68rem; line-height: 1.35; }
.kato-search { display: grid; gap: 7px; margin-top: 16px; }
.kato-search > label { color: var(--text-secondary); font-size: 0.72rem; font-weight: 720; }
.kato-search > div { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.28fr) auto; gap: 8px; }
.kato-search input, .kato-search select { min-width: 0; height: 40px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.kato-search input:focus, .kato-search select:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); }
.kato-search button { min-height: 40px; padding: 0 16px; border: 1px solid var(--brand); border-radius: var(--radius-sm); background: var(--brand); color: var(--on-brand); font-weight: 750; cursor: pointer; }
.kato-search__status { margin-top: 10px; color: var(--text-muted); font-size: 0.72rem; }
.kato-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.kato-result { min-width: 0; padding: 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.kato-result__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kato-result h3 { margin-top: 4px; font-size: 0.85rem; }
.kato-result p { margin-top: 3px; color: var(--text-muted); font-size: 0.68rem; }
.kato-result code { color: var(--brand); font-size: 0.68rem; overflow-wrap: anywhere; }
.kato-result dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 9px; background: var(--border-soft); }
.kato-result dl > div { min-width: 0; padding: 7px; background: var(--surface); }
.kato-result dt { color: var(--text-muted); font-size: 0.62rem; }
.kato-result dd { margin-top: 3px; color: var(--text-primary); font-size: 0.68rem; overflow-wrap: anywhere; }
.kato-explorer__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.kato-explorer__links a { color: var(--brand); font-size: 0.7rem; font-weight: 720; }
.atlas-scorecard { display: grid; grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr); gap: 1px; overflow: hidden; margin: 16px 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--border); box-shadow: var(--shadow-sm); }
.atlas-scorecard > div, .atlas-scorecard > dl { background: var(--surface); }
.atlas-scorecard > div { padding: 17px; }
.atlas-scorecard strong { display: block; margin-top: 8px; color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 1.55rem; line-height: 1; }
.atlas-scorecard p { margin-top: 7px; color: var(--text-secondary); font-size: 0.76rem; }
.atlas-scorecard dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.atlas-scorecard dl div { display: flex; flex-direction: column; justify-content: center; min-height: 78px; padding: 12px 14px; border-right: 1px solid var(--border-soft); }
.atlas-scorecard dl div:last-child { border-right: 0; }
.atlas-scorecard dt { color: var(--text-muted); font-size: 0.67rem; }
.atlas-scorecard dd { margin-top: 5px; font-family: 'IBM Plex Mono', monospace; font-size: 1rem; font-weight: 760; }
.atlas-next-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 14px; }
.atlas-next-actions article { min-width: 0; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--surface-subtle)); box-shadow: var(--shadow-sm); }
.atlas-next-actions div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.atlas-next-actions span { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 0.62rem; font-weight: 780; }
.atlas-next-actions strong { min-width: 0; font-size: 0.76rem; line-height: 1.25; overflow-wrap: anywhere; }
.atlas-next-actions em { color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; font-style: normal; font-weight: 720; }
.atlas-next-actions p { color: var(--text-secondary); font-size: 0.7rem; line-height: 1.38; }
.atlas-next-actions ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.atlas-next-actions li { position: relative; padding-left: 10px; color: var(--text); font-size: 0.66rem; line-height: 1.3; }
.atlas-next-actions li::before { content: ""; position: absolute; top: 0.55em; left: 0; width: 4px; height: 4px; border-radius: 999px; background: var(--brand); }
.atlas-next-actions small { color: var(--text-muted); font-size: 0.64rem; line-height: 1.35; }
.atlas-next-actions__gate { padding-top: 7px; border-top: 1px solid var(--border-soft); }
.atlas-next-actions a { width: fit-content; max-width: 100%; color: var(--brand); font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; font-weight: 740; overflow-wrap: anywhere; }
.atlas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.atlas-card { min-width: 0; display: flex; flex-direction: column; min-height: 0; padding: 14px; border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.atlas-card--ready { border-left-color: var(--success); }
.atlas-card--partial { border-left-color: var(--blue); }
.atlas-card--thin { border-left-color: var(--amber); }
.atlas-card--gap { border-left-color: var(--danger); }
.atlas-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.atlas-card__top strong { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; }
.atlas-card h3 { margin-top: 10px; font-size: 0.86rem; line-height: 1.25; }
.atlas-card p { margin-top: 6px; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.42; }
.atlas-card dl { margin-top: 10px; border-top: 1px solid var(--border-soft); }
.atlas-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.65rem; }
.atlas-card dt { color: var(--text-muted); }
.atlas-card dd { max-width: 58%; text-align: right; font-weight: 680; overflow-wrap: anywhere; }
.atlas-card ul { margin: 10px 0 0; padding-left: 15px; color: var(--text-muted); font-size: 0.68rem; line-height: 1.4; }
.atlas-card__sources { display: grid; gap: 5px; padding-left: 15px; }
.atlas-card__sources li { padding-left: 2px; }
.atlas-card__sources a { color: var(--accent); font-weight: 680; text-decoration: none; }
.atlas-card__sources a:hover, .atlas-card__sources a:focus-visible { text-decoration: underline; }
.atlas-card__sources small { display: block; margin-top: 1px; color: var(--text-muted); font-size: 0.62rem; line-height: 1.3; }
.atlas-card__fields { display: grid; gap: 4px; padding-left: 15px; }
.atlas-card__fields li { display: flex; justify-content: space-between; gap: 8px; }
.atlas-card__fields code { color: var(--text-secondary); font-size: 0.62rem; }
.atlas-card__fields small { color: var(--text-muted); font-size: 0.61rem; text-align: right; }
.atlas-card__blockers { margin-top: 10px; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--surface-subtle); color: var(--text-muted); font-size: 0.68rem; line-height: 1.35; overflow-wrap: anywhere; }
.atlas-card__next { margin-top: auto !important; padding-top: 10px; color: var(--text-secondary) !important; }
.benchmark-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; }
.statistics-gate__audit { margin: 0 0 12px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--amber) 38%, var(--border)); border-radius: 10px; background: color-mix(in srgb, var(--amber) 8%, var(--surface)); color: var(--text-secondary); font-size: 0.72rem; line-height: 1.45; }
.statistics-gate__audit strong { color: var(--text-primary); }
.benchmark-summary > div { min-width: 0; min-height: 102px; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--surface-subtle)); box-shadow: var(--shadow-sm); }
.benchmark-summary strong { display: block; margin-top: 9px; color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 1.24rem; line-height: 1.05; overflow-wrap: anywhere; }
.benchmark-summary p { margin-top: 7px; color: var(--text-secondary); font-size: 0.7rem; line-height: 1.35; overflow-wrap: anywhere; }
.benchmark-grid, .basemap-grid, .statistics-gate-grid, .ecology-source-grid, .eo-derivative-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.basemap-gates { margin-top: 14px; padding: 14px 14px 14px 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-subtle); }
.emergency-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; }
.emergency-summary > div { min-width: 0; min-height: 102px; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--surface-subtle)); box-shadow: var(--shadow-sm); }
.emergency-summary strong { display: block; margin-top: 9px; color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 1.24rem; line-height: 1.05; overflow-wrap: anywhere; }
.emergency-summary p { margin-top: 7px; color: var(--text-secondary); font-size: 0.7rem; line-height: 1.35; overflow-wrap: anywhere; }
.emergency-windows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.emergency-windows article { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.emergency-window__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.emergency-window__head h3 { font-size: 0.9rem; line-height: 1.2; }
.emergency-window__head span { min-width: 44px; text-align: right; color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-weight: 760; }
.emergency-windows ul { display: grid; gap: 7px; margin-top: 11px; padding: 0; list-style: none; }
.emergency-windows li { display: grid; gap: 3px; padding-left: 12px; border-left: 3px solid var(--border); color: var(--text-secondary); }
.emergency-windows li.is-active { border-left-color: var(--success); color: var(--text); }
.emergency-windows li span { font-size: 0.74rem; font-weight: 720; line-height: 1.25; }
.emergency-windows li small { color: var(--text-muted); font-size: 0.64rem; line-height: 1.3; }
.boundary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.boundary-strip article { min-width: 0; min-height: 112px; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.boundary-strip h3 { margin-top: 8px; font-size: 0.86rem; line-height: 1.25; }
.boundary-strip strong { display: block; margin-top: 8px; color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 1.34rem; line-height: 1; }
.boundary-strip a, .boundary-strip small { display: inline-flex; margin-top: 8px; color: var(--text-muted); font-size: 0.68rem; font-weight: 700; }
.boundary-strip a { color: var(--brand); }
.boundary-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr); gap: 12px; align-items: start; }
.boundary-panel { min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.boundary-panel h3 { font-size: 0.92rem; line-height: 1.2; }
.boundary-candidates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.boundary-candidates article { min-width: 0; padding: 11px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.boundary-candidates h4 { margin-top: 8px; font-size: 0.8rem; line-height: 1.25; }
.boundary-candidates p { margin-top: 5px; color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; line-height: 1.35; overflow-wrap: anywhere; }
.boundary-candidates dl { margin-top: 8px; border-top: 1px solid var(--border-soft); }
.boundary-candidates dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.65rem; }
.boundary-candidates dt { color: var(--text-muted); }
.boundary-candidates dd { max-width: 62%; text-align: right; font-weight: 650; overflow-wrap: anywhere; }
.boundary-gates { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 18px; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.4; }
.boundary-gates strong { color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; font-weight: 750; text-transform: uppercase; }
.boundary-panel > p { margin-top: 12px; color: var(--text-muted); font-size: 0.72rem; line-height: 1.45; }
.adm2-gate-summary { display: grid; gap: 7px; margin-top: 10px; padding: 11px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: linear-gradient(135deg, color-mix(in srgb, var(--amber) 10%, var(--surface)), var(--surface-subtle)); }
.adm2-gate-summary strong { font-family: 'IBM Plex Mono', monospace; font-size: 1.15rem; line-height: 1; color: var(--text-primary); }
.adm2-gate-summary p { margin: 0; color: var(--text-secondary); font-size: 0.7rem; line-height: 1.35; }
.adm2-gate-summary a { width: fit-content; font-size: 0.68rem; font-weight: 750; color: var(--brand); }
.dossier-layout { display: grid; grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr) minmax(220px, 0.28fr); gap: 12px; align-items: stretch; margin-top: 16px; }
.dossier-card, .dossier-links, .dossier-signals article { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.dossier-card { padding: 16px; }
.dossier-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dossier-card__top small { color: var(--text-muted); font-size: 0.66rem; line-height: 1.35; text-align: right; }
.dossier-card h3 { margin-top: 9px; font-size: 1rem; line-height: 1.2; }
.dossier-card dl { display: grid; gap: 1px; overflow: hidden; margin-top: 14px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--border-soft); }
.dossier-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--surface-subtle); font-size: 0.7rem; }
.dossier-card dt { color: var(--text-muted); }
.dossier-card dd { font-family: 'IBM Plex Mono', monospace; font-weight: 760; text-align: right; }
.dossier-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.dossier-card__footer small { color: var(--text-muted); font-size: 0.66rem; line-height: 1.35; overflow-wrap: anywhere; }
.dossier-card__footer a { flex: 0 0 auto; min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-size: 0.68rem; font-weight: 750; background: var(--surface); }
.dossier-card__footer a:hover, .dossier-card__footer a:focus-visible { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.dossier-signals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dossier-signals article { padding: 12px; }
.dossier-signals h4 { margin-top: 8px; font-size: 0.78rem; line-height: 1.25; }
.dossier-signals strong { display: block; margin-top: 8px; color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 0.96rem; line-height: 1.1; overflow-wrap: anywhere; }
.dossier-signals p { margin-top: 6px; color: var(--text-muted); font-size: 0.66rem; line-height: 1.35; }
.dossier-links { display: flex; flex-direction: column; gap: 8px; padding: 15px; }
.dossier-links__top { display: grid; gap: 5px; }
.dossier-links h3 { font-size: 0.9rem; line-height: 1.2; }
.dossier-links__top small { color: var(--text-muted); font-size: 0.66rem; line-height: 1.35; }
.dossier-links a { min-height: 32px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); color: var(--brand); background: var(--surface-subtle); font-size: 0.7rem; font-weight: 720; }
.dossier-links a:hover, .dossier-links a:focus-visible { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.dossier-links p { margin-top: auto; color: var(--text-muted); font-size: 0.66rem; line-height: 1.35; overflow-wrap: anywhere; }
.ecology-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.ecology-summary > div { min-height: 104px; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--surface-subtle)); box-shadow: var(--shadow-sm); }
.ecology-summary strong { display: block; margin-top: 10px; color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 1.42rem; line-height: 1; }
.ecology-summary p { margin-top: 7px; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.35; }
.ecology-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(260px, 0.55fr); gap: 12px; align-items: start; }
.ecology-panel { min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.ecology-panel h3 { font-size: 0.92rem; line-height: 1.2; }
.ecology-list, .ecology-workflows { display: grid; gap: 10px; margin-top: 12px; }
.ecology-list article, .ecology-workflows article { min-width: 0; padding: 11px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.ecology-list h4, .ecology-workflows h4 { margin-top: 8px; font-size: 0.82rem; line-height: 1.25; }
.ecology-list p, .ecology-workflows p { margin-top: 5px; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.42; }
.ecology-list dl { margin-top: 9px; border-top: 1px solid var(--border-soft); }
.ecology-list dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.65rem; }
.ecology-list dt { color: var(--text-muted); }
.ecology-list dd { max-width: 62%; text-align: right; font-weight: 650; overflow-wrap: anywhere; }
.ecology-list a { color: var(--brand); font-weight: 750; }
.ecology-workflows small { display: block; margin-top: 8px; color: var(--text-muted); font-size: 0.66rem; line-height: 1.35; }
.layer-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.layer-catalog__item { min-width: 0; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.layer-catalog__meta { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.data-kind, .data-status { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 0.61rem; font-weight: 700; text-transform: uppercase; }
.data-kind { color: var(--blue); background: var(--blue-soft); }
.data-status { color: var(--amber); background: var(--amber-soft); }
.data-status--stable { color: var(--success); background: color-mix(in srgb, var(--success) 11%, var(--surface)); }
.layer-catalog__item h3 { font-size: 0.92rem; line-height: 1.3; }
.layer-catalog__item > p { min-height: 3.9em; margin-top: 7px; color: var(--text-secondary); font-size: 0.78rem; line-height: 1.48; }
.layer-catalog__item dl { margin-top: 15px; border-top: 1px solid var(--border-soft); }
.layer-catalog__item dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.69rem; }
.layer-catalog__item dt { color: var(--text-muted); }
.layer-catalog__item dd { text-align: right; font-weight: 620; }
.layer-catalog__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 15px; }
.layer-catalog__actions a { color: var(--brand); font-size: 0.7rem; font-weight: 700; }
.collection-list { border-top: 1px solid var(--border); }
.collection-row { display: grid; grid-template-columns: minmax(120px, 0.25fr) minmax(0, 1fr) 20px; gap: 20px; align-items: center; min-height: 66px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.collection-row:hover { background: var(--surface-subtle); }
.collection-row__id { min-width: 0; overflow-wrap: anywhere; color: var(--brand); font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; font-weight: 700; }
.collection-row strong { display: block; font-size: 0.82rem; }
.collection-row small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 0.7rem; line-height: 1.4; }
.collection-row > span:last-child { color: var(--text-muted); }
.statistics-catalog { border-top: 1px solid var(--border); }
.statistics-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.65fr) minmax(170px, 0.35fr); gap: 24px; align-items: center; min-height: 112px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.statistics-row__top { min-width: 0; display: grid; gap: 5px; }
.statistics-row h3 { margin-top: 7px; font-size: 0.88rem; }
.statistics-row p { margin-top: 4px; color: var(--text-muted); font-size: 0.76rem; line-height: 1.45; }
.statistics-row__scope { display: block; color: var(--text-secondary); font-size: 0.67rem; line-height: 1.35; }
.statistics-row dl div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 0.68rem; }
.statistics-row dt { color: var(--text-muted); }
.statistics-row dd { text-align: right; font-weight: 650; }
.statistics-row__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.statistics-row__actions a { color: var(--brand); font-size: 0.7rem; font-weight: 700; }
.satellite-workbench { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.55fr); gap: 22px; align-items: start; }
.satellite-status { min-height: 34px; display: flex; align-items: center; padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-subtle); color: var(--text-secondary); font-size: 0.72rem; font-weight: 650; }
.satellite-status.is-degraded { color: var(--amber); background: var(--amber-soft); }
.satellite-catalog { margin-top: 8px; border-top: 1px solid var(--border); }
.satellite-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr); gap: 20px; align-items: center; min-height: 92px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.satellite-product__top { min-width: 0; display: grid; gap: 4px; }
.satellite-product h3 { font-size: 0.82rem; }
.satellite-product p { margin-top: 4px; color: var(--text-muted); font-size: 0.73rem; line-height: 1.42; }
.satellite-product__code { font-family: 'IBM Plex Mono', monospace; }
.satellite-product__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.satellite-product__footer small { color: var(--text-secondary); font-size: 0.68rem; line-height: 1.4; }
.satellite-product__footer a { color: var(--brand); font-size: 0.7rem; font-weight: 700; }
.satellite-product dl div, .satellite-pulse dl div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.68rem; }
.satellite-product dt, .satellite-pulse dt { color: var(--text-muted); }
.satellite-product dd, .satellite-pulse dd { text-align: right; font-weight: 650; }
.satellite-pulse dd.is-warning { color: var(--amber); }
.satellite-pulse { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.satellite-pulse__top { display: grid; gap: 4px; }
.satellite-pulse h3 { font-size: 0.9rem; }
.satellite-pulse dl { margin-top: 12px; }
.satellite-pulse__footer { display: grid; gap: 9px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.satellite-pulse__footer small { color: var(--text-secondary); font-size: 0.69rem; line-height: 1.45; }
.satellite-pulse__footer a { display: inline-flex; color: var(--brand); font-size: 0.7rem; font-weight: 700; }
.catalog-more { min-height: 38px; display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 12px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--brand); cursor: pointer; font: inherit; font-size: 0.74rem; font-weight: 700; transition: border-color var(--transition), background var(--transition), color var(--transition); }
.catalog-more:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.catalog-more[hidden] { display: none; }
.catalog-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 0 4px; }
.catalog-cta h2 { font-size: 1.08rem; }
.catalog-cta p:last-child { margin-top: 5px; color: var(--text-secondary); font-size: 0.78rem; }
.catalog-cta > div:last-child { display: flex; gap: 8px; flex: 0 0 auto; }

  .workbench-main { padding-top: 20px; }
.workbench-hub { padding-bottom: 44px; }
.workbench-hub-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(110deg, color-mix(in srgb, var(--brand-soft) 62%, var(--surface)) 0%, var(--surface) 68%);
  box-shadow: var(--shadow-sm);
}
.workbench-hub-intro h2 { color: var(--text-primary); font-size: 1.06rem; line-height: 1.2; }
.workbench-hub-intro p:not(.eyebrow) { max-width: 720px; margin-top: 6px; color: var(--text-secondary); font-size: 0.74rem; line-height: 1.48; }
.workbench-hub-intro .btn { flex: 0 0 auto; }
.workbench-hub-routes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workbench-hub-card { min-height: 205px; align-content: start; }
.workbench-hub-card:nth-child(2) { background: linear-gradient(180deg, color-mix(in srgb, #6ca7b5 12%, var(--surface)) 0%, var(--surface) 100%); }
.workbench-hub-card:nth-child(3) { background: linear-gradient(180deg, color-mix(in srgb, #8b9e66 12%, var(--surface)) 0%, var(--surface) 100%); }
.workbench-hub-card:nth-child(4) { border-color: color-mix(in srgb, var(--amber) 30%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--amber-soft) 58%, var(--surface)) 0%, var(--surface) 100%); }
.workbench-tool-page { padding-bottom: 44px; }
.workbench-tool-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  padding: 18px 2px 4px;
}
.workbench-tool-hero h1 { max-width: 780px; color: var(--text-primary); font-size: clamp(1.65rem, 3.2vw, 2.7rem); line-height: 1.08; }
.workbench-tool-hero p:not(.eyebrow) { max-width: 720px; margin-top: 9px; color: var(--text-secondary); font-size: 0.82rem; line-height: 1.55; }
.workbench-tool-hero .btn { flex: 0 0 auto; }
.workbench-tool-panel { max-width: 1020px; margin-inline: auto; }
.workbench-tool-next { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 2px 0; border-top: 1px solid var(--border-soft); }
.workbench-tool-next a { color: var(--brand); font-size: 0.7rem; font-weight: 760; }
.workbench-tool-next a:hover { color: var(--brand-strong); }
.workbench-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.46fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-tint) 34%, var(--surface)) 0%, var(--surface) 68%);
  box-shadow: var(--shadow-sm);
}
.workbench-hero h1 { max-width: 780px; font-size: clamp(1.8rem, 3.8vw, 3.25rem); line-height: 1.04; }
.workbench-hero p:not(.eyebrow) { max-width: 760px; margin-top: 13px; color: var(--text-secondary); font-size: 0.94rem; line-height: 1.62; }
.workbench-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; border-radius: 0; overflow: visible; background: transparent; box-shadow: none; }
.workbench-summary div { min-height: 76px; padding: 14px 16px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.workbench-summary dt { color: var(--text-primary); font-family: 'IBM Plex Mono', monospace; font-size: 1.14rem; line-height: 1.1; font-weight: 780; }
.workbench-summary dd { margin-top: 7px; color: var(--text-secondary); font-size: 0.71rem; line-height: 1.35; }
.workbench-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.workbench-presets > * { min-height: 66px; display: grid; align-content: center; gap: 3px; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: inherit; cursor: pointer; text-align: left; box-shadow: var(--shadow-sm); }
.workbench-presets strong { color: var(--text); font-size: 0.78rem; line-height: 1.25; }
.workbench-presets span { color: var(--text-muted); font-size: 0.68rem; line-height: 1.35; }
.workbench-presets > *:hover { border-color: var(--brand); background: var(--brand-soft); }
.workbench-pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.workbench-pulse-card { min-width: 0; min-height: 96px; display: grid; align-content: start; gap: 8px; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--surface-subtle)); box-shadow: var(--shadow-sm); }
.workbench-pulse-card strong { color: var(--text-primary); font-size: 0.86rem; line-height: 1.3; overflow-wrap: anywhere; }
.workbench-pulse-card small { color: var(--text-muted); font-size: 0.68rem; line-height: 1.35; }
.workbench-recipes { margin: 0 0 18px; padding: 17px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 36%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.workbench-recipes__head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.workbench-recipes__head h2 { color: var(--text-primary); font-size: 1.06rem; line-height: 1.2; }
.workbench-recipes__head p:not(.eyebrow) { max-width: 680px; margin-top: 6px; color: var(--text-secondary); font-size: 0.74rem; line-height: 1.45; }
.workbench-recipes__head > a { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0 11px; border: 1px solid var(--brand-border); border-radius: var(--radius-sm); color: var(--brand); background: var(--surface); font-size: 0.68rem; font-weight: 760; }
.workbench-recipes__head > a:hover { border-color: var(--brand); background: var(--brand-soft); }
.workbench-recipes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.workbench-recipe-card { min-width: 0; display: grid; align-content: start; gap: 9px; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.workbench-recipe-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.workbench-recipe-card__audience { width: fit-content; max-width: 100%; padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 0.6rem; font-weight: 800; }
.workbench-recipe-card__top code { color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; font-size: 0.63rem; font-weight: 760; }
.workbench-recipe-card h3 { color: var(--text-primary); font-size: 0.84rem; line-height: 1.28; }
.workbench-recipe-card > p { min-height: 3.1em; color: var(--text-secondary); font-size: 0.7rem; line-height: 1.45; }
.workbench-recipe-card dl { display: grid; gap: 7px; }
.workbench-recipe-card dl div { min-width: 0; padding: 8px 9px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.workbench-recipe-card dt { color: var(--text-muted); font-size: 0.58rem; line-height: 1.2; text-transform: uppercase; }
.workbench-recipe-card dd { margin-top: 4px; color: var(--text); font-size: 0.67rem; line-height: 1.35; overflow-wrap: anywhere; }
.workbench-recipe-card dd code { color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; }
.workbench-recipe-card__footer { display: flex; flex-wrap: wrap; gap: 7px 11px; align-items: center; padding-top: 3px; }
.workbench-recipe-card__footer a { color: var(--brand); font-size: 0.67rem; font-weight: 760; }
.workbench-recipe-card__footer a + a { color: var(--text-muted); }
.workbench-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.workbench-strip__card { min-width: 0; display: grid; gap: 10px; padding: 14px 15px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 40%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.workbench-strip__card strong { color: var(--text-primary); font-size: 0.92rem; line-height: 1.2; }
.workbench-strip__card p { margin: 0; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.45; }
.workbench-strip__card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.workbench-strip__card dl div { min-width: 0; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.workbench-strip__card dt { color: var(--text-muted); font-size: 0.61rem; line-height: 1.2; text-transform: uppercase; }
.workbench-strip__card dd { margin-top: 4px; color: var(--text); font-size: 0.72rem; line-height: 1.35; font-weight: 720; overflow-wrap: anywhere; }
.workbench-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.workbench-route-card { min-width: 0; display: grid; gap: 10px; padding: 14px 15px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-alt) 90%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.workbench-route-card strong { color: var(--text-primary); font-size: 0.92rem; line-height: 1.25; }
.workbench-route-card p { margin: 0; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.45; }
.workbench-route-card__source { display: block; margin-top: -2px; color: var(--text-muted); font-size: 0.62rem; line-height: 1.35; }
.workbench-route-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.workbench-route-card dl div { min-width: 0; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.workbench-route-card dt { color: var(--text-muted); font-size: 0.61rem; line-height: 1.2; text-transform: uppercase; }
.workbench-route-card dd { margin-top: 4px; color: var(--text); font-size: 0.72rem; line-height: 1.35; font-weight: 720; overflow-wrap: anywhere; }
.workbench-route-card > a { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-size: 0.72rem; font-weight: 760; background: var(--surface); }
.workbench-route-card > a:hover { border-color: var(--brand); background: var(--brand-soft); }
.workbench-live-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.workbench-live-card { min-width: 0; display: grid; gap: 10px; padding: 14px 15px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 46%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.workbench-live-card--operator { border-color: color-mix(in srgb, var(--amber) 32%, var(--border)); }
.workbench-live-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.workbench-live-card strong { color: var(--text-primary); font-size: 0.88rem; line-height: 1.25; }
.workbench-live-card p { margin: 0; color: var(--text-secondary); font-size: 0.71rem; line-height: 1.45; }
.workbench-live-card__source { display: block; margin-top: -2px; color: var(--text-muted); font-size: 0.62rem; line-height: 1.35; }
.workbench-live-card em {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 2px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-subtle) 78%, var(--surface));
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workbench-live-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.workbench-live-facts div { min-width: 0; padding: 7px 8px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface-subtle) 82%, var(--surface)); }
.workbench-live-facts dt { color: var(--text-faint); font-size: 0.55rem; font-weight: 800; text-transform: uppercase; }
.workbench-live-facts dd { margin-top: 4px; color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.67rem; line-height: 1.3; font-weight: 740; overflow-wrap: anywhere; }
.workbench-live-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.workbench-live-card dl div { min-width: 0; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); }
.workbench-live-card dt { color: var(--text-muted); font-size: 0.61rem; line-height: 1.2; text-transform: uppercase; }
.workbench-live-card dd { margin-top: 4px; color: var(--text); font-size: 0.72rem; line-height: 1.35; font-weight: 720; overflow-wrap: anywhere; }
.workbench-live-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
  border-top: 1px solid var(--border-soft);
}
.workbench-live-card__footer small {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.64rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.workbench-live-card__footer a { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-size: 0.72rem; font-weight: 760; background: var(--surface); }
.workbench-live-card__footer a:hover { border-color: var(--brand); background: var(--brand-soft); }
.workbench-jump { position: sticky; top: var(--shell-header-height, 62px); z-index: 70; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.workbench-jump a { min-width: 0; min-height: 54px; display: grid; align-content: center; gap: 3px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-secondary); background: var(--surface); border: 1px solid transparent; }
.workbench-jump a:hover,
.workbench-jump a:focus-visible { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.workbench-jump strong { min-width: 0; font-size: 0.74rem; line-height: 1.2; overflow-wrap: anywhere; }
.workbench-jump span { min-width: 0; color: var(--text-muted); font-size: 0.64rem; line-height: 1.3; overflow-wrap: anywhere; }
.workbench-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.workbench-panel { min-width: 0; scroll-margin-top: 124px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.workbench-panel--wide { grid-column: 1 / -1; }
.workbench-grid > .workbench-panel:not(.workbench-panel--wide) { grid-column: auto; }
.workbench-panel--operator { border-color: color-mix(in srgb, var(--amber) 36%, var(--border)); }
.workbench-panel__head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 14px; }
.workbench-panel__head h2 { font-size: 1.02rem; line-height: 1.22; }
.workbench-panel__head > a, .workbench-badge { min-height: 28px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--brand); font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; font-weight: 730; }
.workbench-badge { color: var(--amber); background: var(--amber-soft); }
.workbench-panel__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.workbench-panel__facts div { min-width: 0; padding: 10px 11px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 34%, var(--surface)) 0%, var(--surface) 100%); }
.workbench-panel__facts dt { color: var(--text-muted); font-size: 0.64rem; line-height: 1.2; text-transform: uppercase; }
.workbench-panel__facts dd { margin-top: 4px; color: var(--text); font-size: 0.74rem; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.workbench-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; align-items: end; }
.workbench-form label { display: grid; gap: 5px; color: var(--text-muted); font-size: 0.68rem; font-weight: 720; text-transform: uppercase; }
.workbench-form__hint { color: var(--text-soft); font-size: 0.66rem; font-weight: 520; line-height: 1.35; text-transform: none; }
.workbench-form input, .workbench-form select, .workbench-form textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-subtle); color: var(--text-primary); font: inherit; font-size: 0.78rem; text-transform: none; }
.workbench-form textarea { min-height: 122px; resize: vertical; line-height: 1.5; }
.workbench-form__wide { grid-column: 1 / -1; }
.workbench-form .btn { min-height: 38px; }
.workbench-output { min-height: 92px; margin-top: 14px; padding: 14px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-subtle); color: var(--text-secondary); font-size: 0.78rem; line-height: 1.5; }
.workbench-output[data-state="loading"] { color: var(--brand); }
.workbench-output[data-state="ok"] { color: var(--text-secondary); }
.workbench-output[data-state="empty"] { border-color: color-mix(in srgb, var(--amber) 34%, var(--border)); }
.workbench-output[data-state="error"] { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.workbench-result-count { margin-bottom: 10px; color: var(--text-primary); font-weight: 740; }
.workbench-empty { margin: 0 0 11px; color: var(--text-secondary); }
.workbench-results { display: grid; gap: 8px; }
@media (min-width: 721px) {
  #ogc-explorer .workbench-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
.workbench-result-card { display: grid; gap: 7px; padding: 11px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 24%, var(--surface)) 0%, var(--surface) 100%); }
.workbench-result-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.workbench-result-card__kind { width: fit-content; min-height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 0.6rem; font-weight: 800; text-transform: uppercase; }
.workbench-results h3 { color: var(--text-primary); font-size: 0.82rem; line-height: 1.3; }
.workbench-result-card__meta { color: var(--text-secondary); font-size: 0.72rem; line-height: 1.42; }
.workbench-result-card__note { display: block; padding-top: 7px; border-top: 1px solid var(--border-soft); color: var(--text-muted); font-size: 0.64rem; line-height: 1.45; overflow-wrap: anywhere; }
.workbench-panel__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.workbench-panel__footer small { color: var(--text-secondary); font-size: 0.67rem; line-height: 1.42; }
.workbench-panel__footer a { color: var(--brand); font-size: 0.7rem; font-weight: 740; }
.workbench-panel__footer code { color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 0.63rem; overflow-wrap: anywhere; }
.workbench-artifact { display: grid; gap: 4px; margin-top: 10px; padding: 10px 11px; border: 1px solid var(--brand-border); border-radius: var(--radius-sm); background: var(--brand-soft); }
.workbench-artifact strong { color: var(--text); font-size: 0.76rem; line-height: 1.3; }
.workbench-artifact span { color: var(--text-secondary); font-size: 0.68rem; line-height: 1.35; }
.workbench-artifact__hash { display: block; color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; font-size: 0.61rem; line-height: 1.4; overflow-wrap: anywhere; }
.workbench-artifact__actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.workbench-artifact__link { color: var(--brand); font-size: 0.7rem; font-weight: 760; }
.workbench-artifact__query { margin-top: 3px; color: var(--text-secondary); }
.workbench-artifact__query summary { cursor: pointer; color: var(--text); font-size: 0.68rem; font-weight: 700; }
.workbench-artifact__query small { display: block; margin-top: 4px; font-size: 0.65rem; }
.workbench-artifact__query pre { max-height: 160px; margin: 7px 0 0; padding: 8px; overflow: auto; border: 1px solid var(--border-soft); border-radius: 6px; background: var(--surface); color: var(--text-secondary); font-size: 0.64rem; white-space: pre-wrap; overflow-wrap: anywhere; }

.error-page { min-height: 100vh; display: flex; flex-direction: column; }
.error-main { flex: 1; display: grid; grid-template-columns: minmax(210px, 0.56fr) minmax(0, 1fr); align-content: center; align-items: center; gap: clamp(34px, 6vw, 84px); padding-top: 60px; padding-bottom: 80px; }
.error-code { color: color-mix(in srgb, var(--brand-soft) 88%, transparent); font-family: 'IBM Plex Mono', monospace; font-size: clamp(8rem, 17vw, 14rem); line-height: 0.78; font-weight: 760; text-align: right; }
.error-copy { min-width: 0; padding-left: clamp(24px, 4vw, 54px); border-left: 1px solid var(--border); }
.error-main h1 { max-width: 700px; font-size: 2rem; line-height: 1.15; }
.error-copy > p:not(.eyebrow) { max-width: 620px; margin-top: 11px; color: var(--text-secondary); font-size: 0.9rem; }
.error-search { display: grid; gap: 7px; max-width: 620px; margin-top: 18px; }
.error-search > label { color: var(--text-muted); font-size: 0.68rem; font-weight: 760; }
.error-search > div { display: flex; gap: 8px; }
.error-search input { min-width: 0; flex: 1; height: 40px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-subtle); color: var(--text); font: inherit; font-size: 0.78rem; }
.error-search input:focus-visible { border-color: var(--brand); outline: 3px solid var(--brand-soft); }
.error-search button { min-height: 40px; flex: 0 0 auto; }
.error-actions { display: flex; gap: 8px; margin-top: 22px; }
.error-page .site-footer { margin-top: 0; }

.site-footer { margin-top: 38px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { min-height: 70px; display: flex; align-items: center; gap: 24px; color: var(--text-muted); font-size: 0.72rem; }
.footer-brand { color: var(--text-secondary); font-weight: 650; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.footer-links a:hover { color: var(--brand); }
.footer-meta { margin-left: auto; }

@media (hover: hover) {
  .theme-toggle:hover, .icon-command:hover, .btn:hover { box-shadow: 0 5px 14px rgba(23, 35, 52, 0.09); transform: translateY(-1px); }
  .layer-catalog__item:hover { border-color: color-mix(in srgb, var(--brand) 42%, var(--border)); box-shadow: 0 8px 22px rgba(23, 35, 52, 0.08); transform: translateY(-1px); }
}

.theme-toggle:active, .icon-command:active, .btn:active { transform: translateY(0); }

@media (max-width: 980px) {
  .map-page .header-inner,
  .map-page .footer-inner,
  .map-page-container { width: min(100% - 36px, 1500px); }
  .header-inner { flex-wrap: wrap; gap: 7px 18px; padding-top: 8px; }
  .site-nav { order: 3; width: 100%; height: 39px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; border-top: 1px solid var(--border-soft); scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { min-width: max-content; flex: 1 0 auto; justify-content: center; padding: 0 12px; scroll-snap-align: center; }
  .catalog-jump,
  .status-jump,
  .map-jump,
  .territory-jump { top: var(--shell-header-height, 106px); }
  .catalog-jump,
  .status-jump,
  .map-jump { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-section { scroll-margin-top: 156px; }
  .workbench-jump { top: var(--shell-header-height, 106px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .territory-detail-jump { top: var(--shell-header-height, 106px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-intro { grid-template-columns: 1fr; gap: 16px; }
  .data-pulse { max-width: 620px; }
  .workspace-brief { grid-template-columns: 1fr; }
  .data-section, .integration-public { grid-template-columns: 1fr; }
  .catalog-intro { grid-template-columns: 1fr; gap: 18px; }
  .catalog-search { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(150px, 0.3fr)); }
  .catalog-search > a,
  .catalog-search > button { grid-column: 1 / -1; }
  .catalog-search > span { grid-column: 1 / -1; text-align: left; }
  .catalog-live-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-summary { max-width: 640px; }
  .catalog-summary-note { text-align: left; justify-self: start; }
  .catalog-summary-pulse { grid-template-columns: 1fr; }
  .territory-search-panel,
  .territory-ai-panel,
  .territory-detail-hero { grid-template-columns: 1fr; gap: 16px; }
  .territory-live-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .territory-route-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .territory-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .territory-evidence-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .territory-evidence-state__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .territory-search-form { grid-template-columns: minmax(0, 1fr) minmax(140px, 0.3fr); }
  .territory-search-form button { grid-column: 1 / -1; }
  .territory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .territory-results-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .territory-coverage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .territory-columns,
  .territory-detail-grid { grid-template-columns: 1fr; }
  .published-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .published-data-grid { grid-template-columns: 1fr; }
  .kato-explorer__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kato-results { grid-template-columns: 1fr; }
  .catalog-action-strip { grid-template-columns: 1fr; }
  .catalog-action-strip__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-route-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-next-actions, .atlas-grid, .benchmark-grid, .basemap-grid, .statistics-gate-grid, .ecology-source-grid, .eo-derivative-grid, .quality-layer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-section-facts, .quality-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benchmark-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emergency-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emergency-windows { grid-template-columns: minmax(0, 1fr); }
  .boundary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .boundary-layout { grid-template-columns: minmax(0, 1fr); }
  .dossier-layout { grid-template-columns: minmax(0, 1fr); }
  .ecology-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecology-layout { grid-template-columns: minmax(0, 1fr); }
  .satellite-workbench { grid-template-columns: 1fr; }
  .workbench-hero { grid-template-columns: 1fr; gap: 16px; }
  .workbench-hub-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-hub-intro, .workbench-tool-hero { align-items: flex-start; flex-direction: column; }
  .workbench-summary { max-width: 640px; }
  .workbench-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-recipes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-strip { grid-template-columns: 1fr; }
  .workbench-routes { grid-template-columns: 1fr; }
  .workbench-hub-intro { padding: 14px; }
  .workbench-hub-routes { grid-template-columns: 1fr; }
  .workbench-hub-card { min-height: 0; }
  .workbench-tool-hero { padding-top: 10px; }
  .workbench-tool-next { align-items: flex-start; flex-direction: column; }
  .workbench-live-strip { grid-template-columns: 1fr; }
  .workbench-grid { grid-template-columns: 1fr; }
  .workbench-panel--wide { grid-column: 1 / -1; }
  .workbench-grid > .workbench-panel:not(.workbench-panel--wide) { grid-column: auto; }
  .workbench-panel__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layer-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics-row { grid-template-columns: minmax(0, 1fr) minmax(230px, 0.55fr); }
  .statistics-row__actions { grid-column: 1 / -1; flex-direction: row; }
  .status-queue__hero,
  .status-queue__topline,
  .status-queue__dashboard,
  .status-queue__windows { grid-template-columns: 1fr; }
  .map-method-panel { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); }
  .map-method-panel > div { min-width: 0; }
  .map-method-panel dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-method-panel > a { grid-column: 1 / -1; justify-self: start; }
  #map { height: 520px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1240px); }
  .container--wide { width: min(100% - 28px, 1380px); }
  .data-hub-search { align-items: stretch; flex-direction: column; }
  .data-hub-search form { width: 100%; }
  .data-hub-search__advanced { justify-content: center; }
  .data-hub-pulse { grid-template-columns: 1fr; }
  .data-hub-subnav { top: var(--shell-header-height, 106px); margin-inline: -2px; }
  .map-page .header-inner,
  .map-page .footer-inner,
  .map-page-container { width: min(100% - 28px, 1500px); }
  .service-state { display: none; }
  main { padding-top: 12px; }
  .showcase-intro {
    display: none;
  }
  .showcase-copy h1 { font-size: 1.55rem; }
  .data-pulse { grid-template-columns: repeat(2, 1fr); }
  .workspace-brief { gap: 10px; margin-bottom: 14px; }
  .workspace-brief-card { padding: 13px; }
  .workspace-brief-card__facts { grid-template-columns: 1fr; }
  .workspace-topbar { align-items: flex-start; flex-direction: column; padding: 10px 12px; }
  .map-toolbar { width: 100%; }
  .map-toolbar__select { min-width: 0; flex: 1; max-width: none; }
  .map-view-switch { flex: 0 0 auto; }
  .command-label { display: none; }
  .map-search { grid-template-columns: 1fr; }
  .map-search .btn { width: 100%; }
  .scenario-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .scenario-card { min-width: 0; min-height: 54px; padding: 9px 11px; }
  .map-storybar { grid-template-columns: 1fr; gap: 9px; padding: 10px 13px; }
  .map-storybar__copy { grid-template-columns: 1fr; gap: 3px; }
  .map-storybar__copy strong, .map-storybar__copy small { white-space: normal; }
  .map-storybar__progress { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map-storybar__actions { width: 100%; justify-content: space-between; }
  .map-storybar__actions .btn { flex: 1; }
  .map-source-pulse { grid-template-columns: 1fr; padding: 10px 13px; }
  .map-method-panel { grid-template-columns: 1fr; gap: 9px; padding: 10px 13px; }
  .map-method-panel dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-method-panel > a { justify-self: stretch; }
  .layer-registry-panel { grid-template-columns: 1fr; }
  .layer-registry-heading { width: 100%; padding-top: 0; }
  .layer-registry-panel--collapsed { min-height: 42px; padding-block: 7px; }
  .layer-registry-panel--collapsed .layer-registry-meta { margin-left: auto; }
  .layer-registry-controls { width: 100%; grid-template-columns: 1fr; }
  .layer-date-control { width: 100%; justify-content: space-between; }
  .layer-registry-status { display: none; }
  .active-layer-summary { padding-inline: 13px; }
  #map { height: min(58vh, 520px); min-height: 340px; max-height: 560px; }
  .workspace-actions { grid-template-columns: repeat(2, 1fr); }
  .workspace-actions > *:nth-child(2) { border-right: 0; }
  .workspace-actions > *:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .workspace-tools { grid-template-columns: 1fr; }
  .map-runtime-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-list { grid-template-columns: 1fr; }
  .layer-dossier-body, .endpoint-list { grid-template-columns: 1fr; }
  .data-section__status { display: block; padding: 17px; }
  .live-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 15px; }
  .live-facts div { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .live-facts div:nth-child(2n) { border-right: 0; }
  .live-facts div:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 9px; padding: 16px 0; }
  .footer-meta { margin-left: 0; }
  .layer-catalog { grid-template-columns: 1fr; }
  .layer-catalog__item > p { min-height: 0; }
  .catalog-section__head, .catalog-cta { align-items: flex-start; flex-direction: column; }
  .catalog-jump,
  .status-jump,
  .map-jump,
  .territory-jump { position: static; top: auto; }
  .catalog-search > input,
  .catalog-search > select,
  .catalog-search > a,
  .catalog-search > button { grid-column: 1 / -1; }
  .catalog-freshness-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-freshness-evidence__label { grid-column: 1 / -1; }
  .catalog-methodology > summary { align-items: flex-start; flex-wrap: wrap; }
  .catalog-methodology > summary small { width: calc(100% - 38px); margin-left: 0; }
  .catalog-methodology__body { padding: 0 13px; }
  .published-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quality-summary, .quality-layer-grid { grid-template-columns: 1fr; }
  .status-operator-strip,
  .status-operator-card dl { grid-template-columns: 1fr; }
  .published-panel__head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .published-table__row { grid-template-columns: minmax(0, 1fr) minmax(82px, 0.28fr); }
  .published-table__row span:nth-child(3) { grid-column: 1 / -1; text-align: left; }
  .collection-row { grid-template-columns: 92px minmax(0, 1fr) 16px; gap: 10px; }
  .statistics-row { grid-template-columns: 1fr; gap: 10px; padding: 16px 2px; }
  .satellite-product { grid-template-columns: 1fr; gap: 8px; }
  .statistics-row__actions { grid-column: auto; }
  .error-main { grid-template-columns: 1fr; align-content: center; gap: 20px; }
  .error-code { font-size: clamp(5.6rem, 28vw, 8rem); text-align: left; }
  .error-copy { padding: 22px 0 0; border-top: 1px solid var(--border); border-left: 0; }
  .error-main h1 { font-size: 1.65rem; }
  .error-search > div { flex-direction: column; }
  .error-search button { width: 100%; }
}

@media (max-width: 640px) {
  .status-hero { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 460px) {
  /* Keep the compact mobile header to two deliberate rows.  At the narrowest
     widths the flex-wrap fallback put the language/theme controls on their own
     row, leaving a large empty band above the navigation. */
  .header-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
    padding-top: 8px;
    padding-bottom: 5px;
  }
  .header-inner .logo { grid-area: brand; min-width: 0; }
  .header-inner .site-nav { grid-area: nav; }
  .header-inner .header-actions { grid-area: actions; margin-left: 0; gap: 6px; }
  .header-inner .language-switch { padding-inline: 7px; font-size: 0.7rem; }

  .logo-badge { display: none; }
  .site-nav { height: auto; min-height: 39px; flex-wrap: wrap; overflow: visible; padding: 5px 0; }
  .site-nav a { min-width: 0; min-height: 30px; flex: 1 1 calc(33.333% - 4px); padding: 0 6px; font-size: 0.72rem; }
  .site-nav a[aria-current="page"]::after { left: 8px; right: 8px; }
  .showcase-copy p { font-size: 0.86rem; }
  .workspace-topbar { gap: 10px; }
  .map-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 38px); }
  .map-toolbar__select { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .map-view-switch { min-width: 0; }
  .map-view-button { min-width: 58px; padding-inline: 7px; }
  .map-toolbar .icon-command { min-width: 38px; padding-inline: 0; }
  .data-pulse div { padding: 9px 10px; }
  .workspace-brief-card strong { font-size: 0.9rem; }
  .workspace-brief-card p { font-size: 0.75rem; }
  .layer-registry-controls { display: grid; grid-template-columns: 1fr; }
  .layer-toggle { min-width: max-content; flex: 0 0 auto; }
  .layer-toggle-name { white-space: nowrap; }
  .workspace-actions > * { padding: 11px 12px; }
  .workspace-actions > *::before { display: none; }
  .scenario-card { padding-inline: 10px; }
  .map-storybar__kicker { font-size: 0.62rem; }
  .map-storybar__actions { display: grid; grid-template-columns: 34px 34px minmax(0, 1fr); }
  .story-step-btn { width: 34px; height: 34px; }
  .map-source-pulse__card a { width: 100%; justify-content: center; }
  .map-source-facts { grid-template-columns: 1fr; }
  .map-runtime-strip,
  .map-runtime-facts { grid-template-columns: 1fr; }
  .catalog-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-summary-pulse { grid-template-columns: 1fr; }
  .catalog-freshness-grid, .catalog-freshness-evidence { grid-template-columns: 1fr; }
  .catalog-freshness-evidence__label { grid-column: auto; }
  .territory-search-form,
  .territory-live-board,
  .territory-route-strip,
  .territory-jump,
  .territory-detail-jump,
  .territory-card-facts,
  .territory-route-card__facts,
  .territory-evidence-strip,
  .territory-table,
  .territory-coverage-summary,
  .territory-coverage-list,
  .territory-ai-panel dl div,
  .territory-facts div { grid-template-columns: 1fr; }
  .territory-evidence-state__head { display: grid; gap: 10px; }
  .territory-evidence-state__list { grid-template-columns: 1fr; }
  .territory-results-head { align-items: flex-start; flex-direction: column; }
  .territory-results-list { grid-template-columns: 1fr; }
  .territory-grid { grid-template-columns: 1fr; }
  .territory-search-form button,
  .territory-primary-link { width: 100%; }
  .territory-detail-card--accent .territory-detail-card__footer {
    align-items: stretch;
    flex-direction: column;
  }
  .territory-detail-card--accent .territory-detail-card__footer a { width: 100%; }
  .published-metrics { grid-template-columns: 1fr; }
  .catalog-live-facts { grid-template-columns: 1fr; }
  .published-table__row { grid-template-columns: 1fr; gap: 4px; }
  .published-table__row span:nth-child(n+2) { text-align: left; }
  .kato-search > div, .kato-explorer__summary { grid-template-columns: 1fr; }
  .status-hero { grid-template-columns: 1fr; gap: 16px; }
  .status-highlights { grid-template-columns: 1fr; }
  .status-highlight-card dl { grid-template-columns: 1fr; }
  .status-operator-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-grid { grid-template-columns: 1fr; }
  .status-queue__pulse { grid-template-columns: 1fr; }
  .status-latest-grid { grid-template-columns: 1fr; }
  .status-latest-card dl { grid-template-columns: 1fr; }
  .status-queue__items strong, .status-queue__items small { white-space: normal; }
  .atlas-scorecard { grid-template-columns: 1fr; }
  .atlas-scorecard dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-scorecard dl div:nth-child(2n) { border-right: 0; }
  .atlas-scorecard dl div:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
  .atlas-next-actions, .atlas-grid, .benchmark-grid, .basemap-grid, .statistics-gate-grid, .ecology-source-grid, .eo-derivative-grid { grid-template-columns: 1fr; }
  .catalog-section-facts, .benchmark-summary, .emergency-summary { grid-template-columns: 1fr; }
  .boundary-strip, .boundary-candidates { grid-template-columns: 1fr; }
  .dossier-signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecology-summary { grid-template-columns: 1fr; }
  .catalog-search { grid-template-columns: 1fr; }
  .catalog-search > a,
  .catalog-search > button { justify-content: center; }
  .catalog-live-board { grid-template-columns: 1fr; }
  .workbench-presets { grid-template-columns: 1fr; }
  .catalog-jump,
  .status-jump,
  .map-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .territory-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-jump a,
  .status-jump a,
  .map-jump a,
  .territory-jump a { min-width: 0; justify-content: center; text-align: center; }
  .catalog-jump__item { justify-content: center; text-align: center; }
  .territory-detail-jump { position: static; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
  .territory-detail-jump a { border-color: var(--border); }
  .catalog-action-strip__items { grid-template-columns: 1fr; }
  .catalog-route-strip { grid-template-columns: 1fr; }
  .catalog-route-card__facts { grid-template-columns: 1fr; }
  .catalog-action-strip article { grid-template-columns: auto minmax(0, 1fr); }
  .catalog-action-strip article a { grid-column: 1 / -1; }
  .catalog-section { scroll-margin-top: 198px; }
  .catalog-cta > div:last-child, .error-actions { width: 100%; flex-direction: column; }
  .workbench-summary { grid-template-columns: 1fr; }
  .workbench-pulse { grid-template-columns: 1fr; }
  .workbench-recipes__head { align-items: stretch; flex-direction: column; }
  .workbench-recipes__grid { grid-template-columns: 1fr; }
  .workbench-routes { grid-template-columns: 1fr; }
  .workbench-live-strip { grid-template-columns: 1fr; }
  .workbench-jump { position: static; grid-template-columns: 1fr; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
  .workbench-jump a { border-color: var(--border); }
  .workbench-strip__card dl { grid-template-columns: 1fr; }
  .workbench-route-card dl { grid-template-columns: 1fr; }
  .workbench-live-card dl { grid-template-columns: 1fr; }
  .workbench-panel__facts { grid-template-columns: 1fr; }
  .workbench-summary div, .workbench-summary div:nth-child(2n), .workbench-summary div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .workbench-summary div:last-child { border-bottom: 0; }
  .workbench-form { grid-template-columns: 1fr; }
  .workbench-panel__head { flex-direction: column; }
  .workspace-reference > summary span:last-child { display: none; }
  #map { min-height: 360px; }
}

@media (min-width: 360px) and (max-width: 460px) {
  .workbench-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: var(--border-soft);
  }
  .workbench-summary div {
    min-height: 74px;
    border: 0;
    border-right: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
  }
  .workbench-summary div:nth-child(2n) { border-right: 0; }
  .workbench-summary div:nth-last-child(-n+2) { border-bottom: 0; }
}

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

/* AV DS data-viz primitives: readable comparison bars with a text fallback. */
.data-viz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.data-viz-panel { min-width: 0; padding: 16px 17px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 30%, var(--surface)) 0%, var(--surface) 100%); box-shadow: var(--shadow-sm); }
.data-viz-panel--wide { margin: 14px 0 18px; }
.data-viz-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.data-viz-panel__head h2 { margin-top: 4px; color: var(--text); font-size: 1rem; line-height: 1.25; }
.data-viz-panel__head p:not(.eyebrow) { max-width: 760px; margin-top: 6px; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.45; }
.data-viz-panel__action, .data-viz-panel__badge { flex: 0 0 auto; min-height: 28px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--brand); font-size: 0.64rem; font-weight: 760; white-space: nowrap; }
.data-viz-panel__action:hover { border-color: var(--brand); background: var(--brand-soft); }
.data-viz-panel__badge { border-color: var(--border-soft); background: var(--surface); color: var(--text-muted); }
.data-viz-panel__note { margin-top: 8px; color: var(--text-secondary); font-size: 0.7rem; line-height: 1.45; }
.data-viz-bars { display: grid; gap: 11px; margin-top: 14px; padding: 0; list-style: none; }
.data-viz-bar-row { min-width: 0; display: grid; gap: 5px; }
.data-viz-bar-row__head { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.data-viz-bar-row__head > span, .data-viz-bar-row__head > a { min-width: 0; overflow: hidden; color: var(--text-secondary); font-size: 0.73rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.data-viz-bar-row__head > a:hover { color: var(--brand); }
.data-viz-bar-row__head strong { flex: 0 0 auto; color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.69rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.data-viz-bar-row progress, .territory-coverage-meter progress, .territory-coverage-row__bar progress { width: 100%; height: 8px; display: block; border: 0; border-radius: 999px; overflow: hidden; background: var(--border-soft); accent-color: var(--brand); }
.data-viz-bar-row progress::-webkit-progress-bar, .territory-coverage-meter progress::-webkit-progress-bar, .territory-coverage-row__bar progress::-webkit-progress-bar { background: var(--border-soft); border-radius: 999px; }
.data-viz-bar-row progress::-webkit-progress-value, .territory-coverage-meter progress::-webkit-progress-value, .territory-coverage-row__bar progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--blue) 70%, var(--brand))); transition: width var(--transition); }
.data-viz-bar-row progress::-moz-progress-bar, .territory-coverage-meter progress::-moz-progress-bar, .territory-coverage-row__bar progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--blue) 70%, var(--brand))); }
.data-viz-bar-row small { color: var(--text-muted); font-size: 0.62rem; line-height: 1.3; }
.data-viz-panel__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 9px; border-top: 1px solid var(--border-soft); }
.data-viz-panel__footer small { color: var(--text-muted); font-size: 0.63rem; line-height: 1.35; overflow-wrap: anywhere; }
.data-viz-score { width: min(100%, 260px); height: 9px; display: block; margin-top: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--border-soft); accent-color: var(--brand); }
.status-score-panel { margin: 0 0 18px; }
.status-score-panel .data-viz-bars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.territory-coverage-meter { display: grid; gap: 7px; margin: 14px 0 3px; padding: 11px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface-subtle); }
.territory-coverage-meter__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--text-muted); font-size: 0.67rem; }
.territory-coverage-meter__head strong { color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.73rem; font-variant-numeric: tabular-nums; }
.territory-coverage-row__bar { display: grid; gap: 5px; margin-top: 9px; }

@media (max-width: 980px) {
  .status-score-panel .data-viz-bars { grid-template-columns: 1fr; gap: 11px; }
}

@media (max-width: 720px) {
  .data-viz-grid { grid-template-columns: 1fr; }
  .data-viz-panel { padding: 14px; }
  .data-viz-panel__head { gap: 10px; }
  .data-viz-panel__head h2 { font-size: 0.94rem; }
  .data-viz-panel__action, .data-viz-panel__badge { max-width: 42%; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 460px) {
  .data-viz-panel__head { display: grid; }
  .data-viz-panel__action, .data-viz-panel__badge { width: fit-content; max-width: 100%; }
}

/* AV DS precision pass: restrained elevation, sharper states and a more
   deliberate reading rhythm across the public surfaces. */
:root {
  --shadow-card: 0 10px 28px rgba(23, 35, 52, 0.065), 0 2px 7px rgba(23, 35, 52, 0.035);
  --shadow-card-hover: 0 16px 34px rgba(23, 35, 52, 0.1), 0 3px 10px rgba(23, 35, 52, 0.045);
  --shadow-brand: 0 7px 16px color-mix(in srgb, var(--brand) 19%, transparent);
  --radius-lg: 12px;
}

[data-theme="dark"] {
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.16);
  --shadow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.3), 0 3px 11px rgba(0, 0, 0, 0.2);
  --shadow-brand: 0 8px 18px color-mix(in srgb, var(--brand) 18%, transparent);
}

.site-header {
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 58%, transparent),
    0 9px 24px color-mix(in srgb, var(--text) 5%, transparent);
}

.logo-mark {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 24%, transparent),
    0 4px 10px color-mix(in srgb, var(--brand) 14%, transparent);
}

.site-nav a[aria-current="page"]::after {
  height: 3px;
  border-radius: 999px 999px 0 0;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 10%, transparent);
}

.theme-toggle,
.icon-command,
.language-switch,
.btn,
.workspace-brief-card__footer a,
.territory-back-link,
.territory-detail-jump,
.workbench-jump,
.catalog-jump,
.status-jump,
.map-jump {
  border-radius: var(--radius-lg);
}

.btn-primary,
.btn.btn-active {
  box-shadow: var(--shadow-brand);
}

.btn:focus-visible,
.theme-toggle:focus-visible,
.icon-command:focus-visible,
.language-switch:focus-visible,
.workspace-brief-card__footer a:focus-visible,
.data-viz-panel__action:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 28%, transparent);
  outline-offset: 3px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 13%, transparent);
  outline: none;
}

.workspace-brief-card,
.map-workspace,
.catalog-live-card,
.catalog-route-card,
.catalog-freshness-card,
.published-panel,
.quality-summary > div,
.quality-layer,
.kato-explorer,
.atlas-scorecard,
.atlas-next-actions article,
.atlas-card,
.territory-card,
.territory-detail-card,
.territory-evidence-card,
.territory-coverage-panel,
.workbench-route-card,
.workbench-live-card,
.workbench-panel,
.status-card,
.status-highlight-card,
.status-operator-card,
.status-latest-card,
.data-viz-panel {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.workspace-brief-card,
.catalog-live-card,
.catalog-route-card,
.catalog-freshness-card,
.published-panel,
.quality-summary > div,
.quality-layer,
.kato-explorer,
.atlas-next-actions article,
.atlas-card,
.territory-card,
.territory-detail-card,
.territory-evidence-card,
.territory-coverage-panel,
.workbench-route-card,
.workbench-live-card,
.workbench-panel,
.status-card,
.status-highlight-card,
.status-operator-card,
.status-latest-card,
.data-viz-panel {
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.data-viz-panel {
  padding: 18px 19px;
  background: linear-gradient(145deg,
      color-mix(in srgb, var(--surface-tint) 38%, var(--surface)) 0%,
      var(--surface) 58%,
      color-mix(in srgb, var(--surface-subtle) 78%, var(--surface)) 100%);
}

/* The workbench comparison has three equal analytical cards. Keep the
   desktop row composed and let each footer settle on the same baseline. */
@media (min-width: 1040px) {
  .workbench-compare-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.workbench-compare-grid .data-viz-panel {
  display: flex;
  flex-direction: column;
}

.workbench-compare-grid .data-viz-panel__footer {
  margin-top: auto;
}

.data-viz-panel__action,
.data-viz-panel__badge,
.status-latest-card__chip,
.workbench-badge {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 20%, transparent);
}

.data-viz-bar-row progress,
.territory-coverage-meter progress,
.territory-coverage-row__bar progress,
.data-viz-score {
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--text) 12%, transparent);
}

.error-code {
  color: color-mix(in srgb, var(--brand) 28%, var(--surface));
  letter-spacing: -0.08em;
  text-shadow: 0 2px 0 color-mix(in srgb, var(--surface) 76%, transparent),
    0 15px 30px color-mix(in srgb, var(--brand) 14%, transparent);
}

[data-theme="dark"] .error-code {
  color: color-mix(in srgb, var(--brand) 42%, var(--surface));
  text-shadow: 0 2px 0 color-mix(in srgb, var(--surface) 70%, transparent),
    0 15px 30px color-mix(in srgb, var(--brand) 18%, transparent);
}

@media (hover: hover) {
  .workspace-brief-card:hover,
  .catalog-live-card:hover,
  .catalog-route-card:hover,
  .catalog-freshness-card:hover,
  .published-panel:hover,
  .quality-summary > div:hover,
  .quality-layer:hover,
  .kato-explorer:hover,
  .atlas-scorecard:hover,
  .atlas-next-actions article:hover,
  .atlas-card:hover,
  .territory-card:hover,
  .territory-detail-card:hover,
  .territory-evidence-card:hover,
  .territory-coverage-panel:hover,
  .workbench-route-card:hover,
  .workbench-live-card:hover,
  .workbench-panel:hover,
  .status-card:hover,
  .status-highlight-card:hover,
  .status-operator-card:hover,
  .status-latest-card:hover,
  .data-viz-panel:hover {
    border-color: color-mix(in srgb, var(--brand) 26%, var(--border));
    box-shadow: var(--shadow-card-hover);
  }
}

@media (max-width: 720px) {
  .error-main {
    align-content: start;
    gap: 28px;
    padding-top: clamp(52px, 10vh, 92px);
    padding-bottom: 52px;
  }

  .error-code {
    text-align: center;
  }

  .error-copy {
    padding-top: 24px;
  }
}

/* Page-specific rhythm: hero blocks, search rails and evidence boards share
   the same quiet frame, while their internal rows remain information-dense. */
.catalog-intro,
.workbench-hero,
.status-hero,
.data-section__status,
.territory-detail-hero,
.catalog-search,
.territory-search-panel,
.territory-ai-panel,
.territory-results-panel,
.status-queue,
.satellite-pulse,
.catalog-action-strip > div:first-child,
.catalog-methodology,
.boundary-panel,
.ecology-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.catalog-intro::before,
.workbench-hero::before,
.status-hero::before,
.data-section__status::before,
.territory-detail-hero::before,
.territory-search-panel::before,
.territory-ai-panel::before,
.territory-results-panel::before,
.status-queue::before,
.satellite-pulse::before,
.catalog-action-strip > div:first-child::before,
.catalog-methodology::before,
.boundary-panel::before,
.ecology-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--blue) 70%, var(--brand)));
  opacity: 0.86;
}

.territory-detail-hero {
  padding: 20px 22px 24px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--surface-tint) 34%, var(--surface)) 0%,
      var(--surface) 68%);
}

.catalog-summary div,
.catalog-summary-pulse article,
.workbench-summary div,
.workbench-presets > *,
.status-queue__summary div,
.status-window-card,
.status-queue__pulse article,
.catalog-freshness-evidence__item,
.territory-evidence-state__item,
.territory-results-list a,
.catalog-action-strip article,
.workbench-pulse-card,
.workbench-strip__card,
.dossier-signals article,
.ecology-summary > div,
.benchmark-summary > div,
.emergency-summary > div,
.emergency-windows article,
.boundary-strip article,
.boundary-candidates article,
.satellite-status {
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.catalog-summary div,
.catalog-summary-pulse article,
.workbench-summary div,
.workbench-presets > *,
.status-queue__summary div,
.status-window-card,
.status-queue__pulse article,
.catalog-freshness-evidence__item,
.territory-evidence-state__item,
.territory-results-list a,
.catalog-action-strip article,
.workbench-pulse-card,
.workbench-strip__card,
.dossier-signals article,
.ecology-summary > div,
.benchmark-summary > div,
.emergency-summary > div,
.emergency-windows article,
.boundary-strip article,
.boundary-candidates article {
  box-shadow: 0 4px 14px color-mix(in srgb, var(--text) 5%, transparent);
}

.catalog-summary div,
.catalog-summary-pulse article,
.workbench-summary div,
.status-queue__summary div,
.status-window-card,
.status-queue__pulse article,
.catalog-freshness-evidence__item,
.territory-evidence-state__item,
.territory-results-list a,
.catalog-action-strip article,
.dossier-signals article,
.ecology-summary > div,
.benchmark-summary > div,
.emergency-summary > div,
.emergency-windows article,
.boundary-strip article,
.boundary-candidates article {
  border-radius: var(--radius);
}

@media (hover: hover) {
  .catalog-summary div:hover,
  .catalog-summary-pulse article:hover,
  .workbench-summary div:hover,
  .workbench-presets > *:hover,
  .status-queue__summary div:hover,
  .status-window-card:hover,
  .status-queue__pulse article:hover,
  .catalog-freshness-evidence__item:hover,
  .territory-evidence-state__item:hover,
  .territory-results-list a:hover,
  .catalog-action-strip article:hover,
  .workbench-pulse-card:hover,
  .workbench-strip__card:hover,
  .dossier-signals article:hover,
  .ecology-summary > div:hover,
  .benchmark-summary > div:hover,
  .emergency-summary > div:hover,
  .emergency-windows article:hover,
  .boundary-strip article:hover,
  .boundary-candidates article:hover {
    border-color: color-mix(in srgb, var(--brand) 24%, var(--border));
    box-shadow: 0 9px 20px color-mix(in srgb, var(--text) 8%, transparent);
  }
}

.catalog-search input,
.catalog-search select,
.territory-search-form input,
.territory-search-form select,
.workbench-form input,
.workbench-form select,
.workbench-form textarea,
.kato-search input,
.kato-search select {
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.data-section__actions a,
.catalog-search > a,
.catalog-live-card a,
.catalog-route-card > a,
.catalog-more,
.territory-primary-link,
.territory-detail-card__footer a,
.status-queue__link,
.workbench-live-card__footer a,
.workbench-route-card > a,
.dossier-card__footer a,
.dossier-links a {
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.data-section__actions a:focus-visible,
.catalog-search > a:focus-visible,
.catalog-live-card a:focus-visible,
.catalog-route-card > a:focus-visible,
.catalog-more:focus-visible,
.territory-primary-link:focus-visible,
.territory-detail-card__footer a:focus-visible,
.status-queue__link:focus-visible,
.workbench-live-card__footer a:focus-visible,
.workbench-route-card > a:focus-visible,
.dossier-card__footer a:focus-visible,
.dossier-links a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 24%, transparent);
  outline-offset: 3px;
}

/* Board pass: long-form catalog sections get a quieter editorial frame so
   dense evidence reads as a composed module instead of a flat page seam. */
.quality-contracts,
.boundary-board,
.atlas-readiness,
.content-benchmark,
.basemap-gate,
.statistics-gate,
.emergency-board,
.dossier-board,
.ecology-board,
.ecology-source-gate,
.eo-derivative-gate,
.published-data,
.catalog-section#signals,
.catalog-section#kazakhstan-data,
.catalog-section#statistics,
.catalog-section#layers,
.catalog-section#collections {
  position: relative;
  overflow: hidden;
  margin: 20px 0;
  padding: 24px 20px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--surface-tint) 20%, var(--surface)) 0%,
      var(--surface) 38%,
      color-mix(in srgb, var(--surface-subtle) 48%, var(--surface)) 100%);
  box-shadow: var(--shadow-card);
}

.quality-contracts::before,
.boundary-board::before,
.atlas-readiness::before,
.content-benchmark::before,
.basemap-gate::before,
.statistics-gate::before,
.emergency-board::before,
.dossier-board::before,
.ecology-board::before,
.ecology-source-gate::before,
.eo-derivative-gate::before,
.published-data::before,
.catalog-section#signals::before,
.catalog-section#kazakhstan-data::before,
.catalog-section#statistics::before,
.catalog-section#layers::before,
.catalog-section#collections::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--blue) 72%, var(--brand)));
}

.catalog-section__head > a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, var(--surface-subtle));
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 760;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.catalog-section__head > a:hover,
.catalog-section__head > a:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.catalog-section__head > a:active { transform: translateY(1px); }

/* AV DS precision pass 02: the public pages share one measured frame. Keep
   the existing data contracts intact, but give the reader a stronger scale
   anchor, quieter surfaces and a consistent section cadence. */
:root {
  --content-max: 1440px;
  --content-gutter: clamp(20px, 3vw, 48px);
  --surface-page: #eef3f7;
  --text-secondary: #46566b;
  --text-muted: #66768a;
  --text-faint: #5f6f83;
  --radius-card: 14px;
  --shadow-page: 0 20px 56px rgba(23, 35, 52, 0.06);
}

[data-theme="dark"] {
  --surface-page: #141b21;
  --text-secondary: #c1cbd5;
  --text-muted: #9aa7b4;
  --text-faint: #8794a2;
  --shadow-page: 0 20px 56px rgba(0, 0, 0, 0.24);
}

body {
  background:
    radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--brand-soft) 44%, transparent), transparent 42%),
    linear-gradient(180deg, #f7fafc 0, var(--surface-page) 360px) fixed;
}

[data-theme="dark"] body { background: var(--surface-page); }

.site-header {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom-color: color-mix(in srgb, var(--border) 78%, transparent);
}

.header-inner { min-height: 62px; gap: 30px; }
.logo { font-size: 1.08rem; }
.logo-mark { width: 24px; height: 24px; border-radius: 6px; }
.site-nav { gap: 6px; }
.site-nav a { padding-inline: 11px; font-size: 0.8rem; }
.header-actions { gap: 10px; }

.status-main,
.catalog-main,
.workbench-main {
  width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
}

.catalog-main,
.workbench-main { padding-top: 30px; }

.catalog-intro,
.workbench-hero,
.status-hero,
.territory-detail-hero {
  border-radius: calc(var(--radius-card) + 2px);
  box-shadow: var(--shadow-page), var(--shadow-card);
}

.catalog-intro,
.workbench-hero { padding: 26px 28px; }
.catalog-intro h1,
.workbench-hero h1 { letter-spacing: -0.025em; }
.catalog-intro > div > p:last-child,
.workbench-hero p:not(.eyebrow) { max-width: 720px; }

.catalog-summary div,
.catalog-summary-pulse article,
.territory-live-card,
.territory-route-card,
.territory-evidence-card,
.workbench-pulse-card,
.workbench-strip__card,
.workbench-route-card,
.workbench-live-card,
.data-viz-panel {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.catalog-summary div,
.catalog-summary-pulse article,
.workbench-pulse-card { padding: 15px 16px; }
.catalog-summary dt { font-size: 1.08rem; }
.catalog-summary dd { font-size: 0.7rem; }

.catalog-summary-pulse,
.territory-live-board,
.territory-route-strip,
.territory-evidence-strip,
.workbench-pulse,
.workbench-strip,
.workbench-routes,
.workbench-live-strip { gap: 12px; }

.catalog-search,
.territory-search-panel,
.territory-results-panel,
.territory-coverage-panel,
.territory-ai-panel,
.workbench-recipes,
.workbench-panel {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.catalog-search,
.territory-search-panel { padding: 17px 18px; }
.territory-search-panel h2,
.territory-section-head h2,
.workbench-panel__head h2 { letter-spacing: -0.012em; }
.territory-card,
.territory-detail-card { border-radius: 12px; }
.territory-card:hover,
.territory-detail-card:hover,
.workbench-panel:hover { transform: translateY(-1px); }

.map-page-container { width: min(1640px, calc(100% - 56px)); }
.map-workspace { border-radius: var(--radius-card); box-shadow: var(--shadow-page), var(--shadow-card); }
.workspace-topbar { min-height: 72px; padding-inline: 22px; }
.workspace-topbar h2 { letter-spacing: -0.012em; }
.map-search { padding-inline: 22px; }
.scenario-strip { gap: 8px; padding: 9px; }
.scenario-card { min-height: 62px; padding-inline: 13px; }
#map { height: clamp(560px, 60vh, 720px); }
.workspace-actions > * { min-height: 72px; padding-top: 16px; padding-bottom: 16px; }

.site-footer { margin-top: 46px; }
.footer-inner { min-height: 76px; }

@media (max-width: 980px) {
  .map-page-container { width: min(100% - 36px, 1500px); }
  .catalog-main,
  .workbench-main,
  .status-main { width: min(100% - 36px, 1200px); }
}

@media (max-width: 720px) {
  .header-inner { min-height: 58px; }
  .catalog-main,
  .workbench-main,
  .status-main,
  .map-page-container { width: min(100% - 28px, 100%); }
  .catalog-main,
  .workbench-main { padding-top: 18px; }
  .catalog-intro,
  .workbench-hero,
  .status-hero,
  .territory-detail-hero { padding: 20px 16px; }
  .workspace-topbar,
  .map-search { padding-inline: 14px; }
  .workspace-actions > * { min-height: 64px; }
  .site-footer { margin-top: 30px; }
  .footer-inner { min-height: auto; }
}

@media (max-width: 720px) {
  .quality-contracts,
  .boundary-board,
  .atlas-readiness,
  .content-benchmark,
  .basemap-gate,
  .statistics-gate,
  .emergency-board,
  .dossier-board,
  .ecology-board,
  .ecology-source-gate,
  .eo-derivative-gate,
  .published-data,
  .catalog-section#signals,
  .catalog-section#kazakhstan-data,
  .catalog-section#statistics,
  .catalog-section#layers,
  .catalog-section#collections {
    margin: 14px 0;
    padding: 19px 14px 20px;
    border-radius: 10px;
  }

  .catalog-section__head > a {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Route polish 02A – map workspace. The map remains the dominant object,
   while each control group now reads as a deliberate step in the workflow. */
.map-page .showcase-intro { margin-bottom: 28px; }
.map-page .data-pulse { gap: 8px; }
.map-page .data-pulse div {
  border-top: 2px solid color-mix(in srgb, var(--brand) 34%, var(--border));
  background: color-mix(in srgb, var(--surface) 96%, var(--brand-soft));
}
.map-page .data-pulse dt { letter-spacing: -0.02em; }
.map-page .map-toolbar { gap: 6px; }
.map-page .map-toolbar__select,
.map-page .map-view-switch,
.map-page .icon-command { box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 7%, transparent); }
.map-page .map-toolbar__select { background: color-mix(in srgb, var(--surface-subtle) 84%, var(--surface)); }
.map-page .map-view-switch { border-radius: 10px; }
.map-page .map-view-button[aria-pressed="true"] { box-shadow: 0 2px 5px color-mix(in srgb, var(--text) 10%, transparent); }
.map-page .scenario-card { position: relative; }
.map-page .scenario-card.is-active::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 3px;
  background: var(--brand);
}
.map-page .scenario-card.is-active { padding-left: 15px; }
.map-page .map-storybar { background: linear-gradient(90deg, color-mix(in srgb, var(--surface-tint) 72%, var(--surface)), var(--surface)); }
.map-page .map-storybar__progress span { height: 5px; }
.map-page .map-method-panel { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-subtle) 72%, var(--surface))); }
.map-page .map-method-panel > a { border-radius: 999px; }
.map-page .layer-registry-panel { background: color-mix(in srgb, var(--surface-subtle) 52%, var(--surface)); }
.map-page .active-layer-summary { background: color-mix(in srgb, var(--surface-tint) 72%, var(--surface)); }
.map-page #map { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 54%, transparent); }
.map-page .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow-card) !important;
}
.map-page .maplibregl-ctrl-group button { background: color-mix(in srgb, var(--surface) 94%, transparent); }

/* Map-first information architecture: the visitor's first job is to see and
   use the map.  The factual briefs and jump rail remain available immediately
   after the workspace instead of pushing it below several card rows. */
.map-page-container { display: flex; flex-direction: column; }
.map-page-container > .showcase-intro { order: 1; }
.map-page-container > .map-workspace { order: 2; scroll-margin-top: 76px; }
.map-page-container > .map-jump { order: 3; }
.map-page-container > .workspace-brief { order: 4; }
.map-page-container > .map-rank-panel { order: 5; }
.map-page-container > .map-runtime-strip { order: 6; }
.map-page-container > .workspace-reference--tools { order: 7; }
.map-page-container > .data-section { order: 8; }
.map-page-container > .workspace-reference#integration { order: 9; }

/* Keep the first map interaction compact: choose a metric, search or scenario,
   then see the canvas.  Provenance, layer details and comparative reading stay
   available immediately below without changing any map element IDs. */
.map-workspace { display: flex; flex-direction: column; }
.map-workspace > .workspace-topbar { order: 1; }
.map-workspace > .map-search { order: 2; }
.map-workspace > .scenario-strip { order: 3; }
.map-workspace > #map { order: 4; }
.map-workspace > .workspace-actions { order: 5; }
.map-workspace > .map-storybar { order: 6; }
.map-workspace > .map-method-panel { order: 7; }
.map-workspace > .layer-registry-panel { order: 8; }
.map-workspace > .active-layer-summary { order: 9; }
.map-workspace > .layer-dossier-panel { order: 10; }
.map-workspace > .map-source-pulse { order: 11; }
.map-workspace > .map-compare-grid { order: 12; }

@media (max-width: 720px) {
  .map-page .showcase-intro { margin-bottom: 14px; }
  .map-page .scenario-card.is-active { padding-left: 13px; }
  .map-page .maplibregl-ctrl-group { border-radius: 9px !important; }
}

/* Route polish 02B – registry and workbench. Use quiet status rails and
   deliberate action surfaces so dense operational data has a clear reading
   order without changing any template or API contract. */
.territory-live-card,
.territory-route-card,
.territory-card,
.territory-coverage-panel,
.territory-table a,
.territory-row,
.territory-columns article,
.workbench-presets > *,
.workbench-pulse-card,
.workbench-recipe-card,
.workbench-strip__card,
.workbench-route-card,
.workbench-live-card {
  position: relative;
  overflow: hidden;
}

.territory-live-card::before,
.territory-route-card::before,
.territory-card::before,
.territory-coverage-panel::before,
.workbench-presets > *::before,
.workbench-pulse-card::before,
.workbench-recipe-card::before,
.workbench-strip__card::before,
.workbench-route-card::before,
.workbench-live-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--brand);
  opacity: 0.82;
}

.territory-live-card:nth-child(2)::before,
.territory-route-card:nth-child(2)::before,
.workbench-presets > *:nth-child(2)::before,
.workbench-pulse-card:nth-child(2)::before,
.workbench-route-card:nth-child(2)::before,
.workbench-live-card:nth-child(2)::before { background: var(--blue); }

.territory-live-card:nth-child(3)::before,
.territory-route-card:nth-child(3)::before,
.workbench-presets > *:nth-child(3)::before,
.workbench-pulse-card:nth-child(3)::before,
.workbench-route-card:nth-child(3)::before,
.workbench-live-card:nth-child(3)::before { background: var(--amber); }

.territory-live-card:nth-child(4)::before,
.territory-route-card:nth-child(4)::before,
.workbench-presets > *:nth-child(4)::before,
.workbench-pulse-card:nth-child(4)::before,
.workbench-live-card:nth-child(4)::before { background: var(--success); }

.territory-live-card,
.territory-route-card,
.workbench-pulse-card,
.workbench-recipe-card,
.workbench-strip__card,
.workbench-route-card,
.workbench-live-card {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--surface-tint) 38%, var(--surface)) 0%,
      var(--surface) 42%,
      color-mix(in srgb, var(--surface-subtle) 42%, var(--surface)) 100%);
}

.territory-live-card__top,
.territory-route-card > span,
.workbench-presets strong,
.workbench-pulse-card .eyebrow,
.workbench-recipe-card__audience,
.workbench-strip__card .eyebrow,
.workbench-route-card .eyebrow,
.workbench-live-card .eyebrow {
  position: relative;
  z-index: 1;
}

.territory-live-card__footer,
.territory-route-card > a,
.workbench-route-card > a,
.workbench-live-card__footer {
  margin-top: auto;
}

.territory-route-card,
.workbench-route-card { gap: 9px; }
.territory-route-card > a,
.workbench-route-card > a { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 18%, transparent); }

.territory-jump,
.workbench-jump {
  border-color: color-mix(in srgb, var(--brand) 16%, var(--border));
  background: color-mix(in srgb, var(--surface) 90%, var(--surface-tint));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--text) 7%, transparent);
}

.territory-jump a,
.workbench-jump a { transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition); }
.territory-jump a:hover,
.territory-jump a:focus-visible,
.workbench-jump a:hover,
.workbench-jump a:focus-visible { transform: translateY(-1px); }

.territory-results-panel,
.territory-coverage-panel {
  position: relative;
  overflow: hidden;
}

.territory-results-panel::before,
.territory-coverage-panel::before {
  height: 3px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--blue) 72%, var(--brand)));
}

.territory-section-head { padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); }
.territory-section-head .eyebrow { color: var(--brand); }

.territory-card {
  display: flex;
  flex-direction: column;
  min-height: 148px;
  padding: 16px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-subtle) 56%, var(--surface)));
}
.territory-card span {
  width: fit-content;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 11px;
  padding: 0 8px;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
}
.territory-card a { width: fit-content; margin-top: auto; padding-top: 9px; border-top: 1px solid var(--border-soft); }

.territory-coverage-panel { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-subtle) 46%, var(--surface))); }
.territory-coverage-summary { border-color: color-mix(in srgb, var(--brand) 15%, var(--border)); }
.territory-coverage-summary strong { color: var(--brand-strong); font-family: 'IBM Plex Mono', monospace; }
.territory-coverage-row { border-color: var(--border); background: color-mix(in srgb, var(--surface-subtle) 76%, var(--surface)); }
.territory-coverage-row--reference_only { border-left-width: 4px; border-left-color: var(--amber); }
.territory-coverage-row--partial { border-left-width: 4px; border-left-color: var(--brand); }
.territory-coverage-row--mapped { border-left-width: 4px; border-left-color: var(--success); }
.territory-coverage-row progress,
.territory-coverage-meter progress { height: 8px; border: 0; border-radius: 999px; background: var(--border-soft); accent-color: var(--brand); }
.territory-coverage-row progress::-webkit-progress-bar,
.territory-coverage-meter progress::-webkit-progress-bar { background: var(--border-soft); border-radius: 999px; }
.territory-coverage-row progress::-webkit-progress-value,
.territory-coverage-meter progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--blue) 72%, var(--brand))); }
.territory-coverage-row progress::-moz-progress-bar,
.territory-coverage-meter progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--blue) 72%, var(--brand))); }

.territory-table-section .territory-section-head { margin-bottom: 10px; }
.territory-table a,
.territory-row { padding-left: 15px; background: linear-gradient(90deg, color-mix(in srgb, var(--surface-tint) 42%, var(--surface)), var(--surface) 42%); }
.territory-table a::before,
.territory-row::before { content: ""; position: absolute; inset: 10px auto 10px 0; width: 3px; border-radius: 0 3px 3px 0; background: color-mix(in srgb, var(--brand) 48%, var(--border)); }
.territory-table a:hover::before,
.territory-table a:focus-visible::before,
.territory-row:hover::before { background: var(--brand); }

.territory-columns article {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-subtle) 46%, var(--surface)));
  box-shadow: var(--shadow-card);
}
.territory-columns article .territory-section-head { margin: 0 -2px 4px; }
.territory-ai-panel { align-items: start; }
.territory-ai-panel::before { background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--brand) 70%, var(--amber))); }
.territory-ai-panel dl { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 24%, transparent); }

.workbench-hero { min-height: 214px; }
.workbench-summary div {
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--brand);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-tint) 42%, var(--surface)));
}
.workbench-summary div:nth-child(2) { border-top-color: var(--blue); }
.workbench-summary div:nth-child(3) { border-top-color: var(--amber); }
.workbench-summary div:nth-child(4) { border-top-color: var(--success); }
.workbench-summary dt { color: var(--brand-strong); }

.workbench-presets > * {
  border-color: color-mix(in srgb, var(--brand) 12%, var(--border));
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-subtle) 48%, var(--surface)));
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.workbench-presets > *:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent); outline-offset: 3px; }
.workbench-presets > *:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }
.workbench-pulse-card { min-height: 104px; }
.workbench-pulse-card strong { color: var(--brand-strong); }
.workbench-recipes { background: linear-gradient(135deg, color-mix(in srgb, var(--brand-soft) 46%, var(--surface)) 0%, var(--surface) 62%); }
.workbench-recipe-card { min-height: 218px; background: color-mix(in srgb, var(--surface) 96%, var(--surface-subtle)); }
.workbench-recipe-card__footer { margin-top: auto; }
.workbench-strip__card,
.workbench-route-card,
.workbench-live-card { min-height: 176px; }
.workbench-strip__card dl,
.workbench-route-card dl { margin-top: auto; }
.workbench-live-card--operator {
  border-color: color-mix(in srgb, var(--amber) 44%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--amber-soft) 52%, var(--surface)), var(--surface));
}
.workbench-live-card--operator::before { background: var(--amber); }

.workbench-panel { position: relative; overflow: hidden; }
.workbench-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--blue) 72%, var(--brand)));
}
.workbench-panel--operator::before { background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--brand) 72%, var(--amber))); }
.workbench-panel__head { position: relative; z-index: 1; }
.workbench-panel__head > a,
.workbench-badge { box-shadow: 0 2px 8px color-mix(in srgb, var(--text) 7%, transparent); }
.workbench-panel__facts div { background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 38%, var(--surface)), var(--surface)); }
.workbench-form .btn { box-shadow: var(--shadow-brand); }
.workbench-output { border-top: 2px solid color-mix(in srgb, var(--brand) 42%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-subtle) 92%, var(--brand-soft)), var(--surface-subtle)); }
.workbench-output[data-state="error"] { border-top-color: var(--danger); }
.workbench-result-card { border-left: 3px solid color-mix(in srgb, var(--brand) 48%, var(--border-soft)); }
.workbench-result-card__kind { letter-spacing: 0.02em; }
.workbench-artifact { box-shadow: inset 3px 0 0 var(--brand); }

@media (max-width: 720px) {
  .territory-card { min-height: 0; }
  .territory-table a,
  .territory-row { padding-left: 14px; }
  .territory-columns article { padding: 13px; }
  .workbench-hero { min-height: 0; }
  .workbench-presets > *,
  .workbench-pulse-card,
  .workbench-recipe-card,
  .workbench-strip__card,
  .workbench-route-card,
  .workbench-live-card { min-height: 0; }
  .workbench-panel { padding: 16px; }
}

/* Route polish 02C – catalogue, status, detail and recovery states. These
   small cues make source, state and next action visible before the reader
   enters a long list, while preserving the existing page contracts. */
.data-section__status,
.status-queue,
.catalog-freshness-panel,
.catalog-methodology,
.territory-detail-card,
.error-copy {
  position: relative;
  overflow: hidden;
}

.data-section__status,
.status-queue,
.catalog-freshness-panel,
.catalog-methodology {
  box-shadow: var(--shadow-card);
}

.data-section__status::after,
.status-queue::after,
.catalog-freshness-panel::after,
.catalog-methodology::after,
.territory-detail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--blue) 72%, var(--brand)));
  pointer-events: none;
}

.data-section__status::after { background: linear-gradient(90deg, #69d2cf, #9be3d6); opacity: 0.9; }
.status-queue::after { background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--brand) 72%, var(--amber))); }
.catalog-freshness-panel::after { background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--brand) 72%, var(--blue))); }
.catalog-methodology::after { background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--success) 68%, var(--brand))); }

.status-hero__state { border-left: 3px solid var(--success); }
.status-hero__state[data-state="warn"] { border-left-color: var(--amber); }
.status-card { position: relative; overflow: hidden; }
.status-card[data-state="ok"] { border-top-width: 4px; }
.status-card[data-state="warn"] { border-top-width: 4px; }
.status-card dl div { transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.status-card dl div:hover { border-color: color-mix(in srgb, var(--brand) 24%, var(--border-soft)); background: color-mix(in srgb, var(--brand-soft) 35%, var(--surface-subtle)); transform: translateX(1px); }
.status-highlight-card:nth-child(2)::before { background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--brand) 70%, var(--blue))); }
.status-highlight-card:nth-child(3)::before { background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--brand) 70%, var(--amber))); }
.status-operator-card:nth-child(2)::before { background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--brand) 70%, var(--blue))); }
.status-operator-card:nth-child(3)::before { background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--brand) 70%, var(--amber))); }
.status-operator-card:nth-child(4)::before { background: linear-gradient(90deg, var(--success), color-mix(in srgb, var(--brand) 70%, var(--success))); }
.status-latest-card { position: relative; overflow: hidden; }
.status-latest-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--brand); opacity: 0.78; }
.status-latest-card:nth-child(2n)::before { background: var(--blue); }
.status-latest-card:nth-child(3n)::before { background: var(--amber); }

.catalog-freshness-panel,
.catalog-methodology { background: linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 24%, var(--surface)), var(--surface)); }
.catalog-freshness-panel .catalog-freshness-grid { position: relative; z-index: 1; }
.catalog-freshness-card { border-left-width: 4px; }
.catalog-freshness-evidence { border-color: color-mix(in srgb, var(--brand) 12%, var(--border-soft)); }
.catalog-section__head { gap: 12px; }
.catalog-section__head h2 { letter-spacing: -0.012em; }
.endpoint-list a,
.endpoint-list .endpoint-item { transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.endpoint-list a:hover,
.endpoint-list a:focus-visible { background: color-mix(in srgb, var(--brand-soft) 44%, var(--surface)); transform: translateY(-1px); }

.territory-detail-card { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-subtle) 42%, var(--surface))); }
.territory-detail-card:nth-child(2)::before { background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--brand) 70%, var(--blue))); }
.territory-detail-card--accent::before { background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--brand) 70%, var(--amber))); }
.territory-detail-card__footer { margin-top: auto; }
.territory-facts div { transition: background var(--transition); }
.territory-facts div:hover { background: color-mix(in srgb, var(--brand-soft) 34%, var(--surface-subtle)); }
.territory-detail-jump { border-color: color-mix(in srgb, var(--brand) 16%, var(--border)); background: color-mix(in srgb, var(--surface) 90%, var(--surface-tint)); box-shadow: 0 12px 26px color-mix(in srgb, var(--text) 7%, transparent); }

.error-copy { padding-top: 2px; }
.error-actions a { box-shadow: 0 2px 7px color-mix(in srgb, var(--text) 6%, transparent); }

@media (max-width: 720px) {
  .data-section__status,
  .status-queue,
  .catalog-freshness-panel,
  .catalog-methodology,
  .territory-detail-card { border-radius: 12px; }
  .status-card dl div:hover,
  .endpoint-list a:hover,
  .endpoint-list a:focus-visible { transform: none; }
  .territory-detail-card__footer { align-items: flex-start; flex-direction: column; }
}
