:root {
  color-scheme: light;
  --bg: #f3f1eb;
  --bg-soft: #e9e6de;
  --surface: #fffefa;
  --surface-strong: #ffffff;
  --surface-muted: #f7f5ef;
  --ink: #202522;
  --ink-soft: #626963;
  --ink-faint: #8c938d;
  --line: #dcd9d1;
  --line-strong: #c8c4ba;
  --accent: #963852;
  --accent-strong: #76263d;
  --accent-soft: #f4e2e7;
  --signal: #c8dc68;
  --signal-ink: #29320e;
  --signal-soft: #edf4c8;
  --amber: #d6863a;
  --amber-soft: #f8eadb;
  --attention: #ff6a00;
  --attention-soft: #fff0e4;
  --blue: #527c86;
  --blue-soft: #e0ecee;
  --danger: #b14949;
  --danger-soft: #f6e2df;
  --shadow: 0 16px 42px rgb(44 39 28 / 8%);
  --shadow-small: 0 8px 24px rgb(44 39 28 / 7%);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --topbar-height: 72px;
  --page-width: 1500px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101513;
  --bg-soft: #181e1b;
  --surface: #171d1a;
  --surface-strong: #1c2320;
  --surface-muted: #202724;
  --ink: #f1f0e9;
  --ink-soft: #abb2ac;
  --ink-faint: #79817b;
  --line: #303834;
  --line-strong: #48504c;
  --accent: #e56f91;
  --accent-strong: #f18cac;
  --accent-soft: #3b222b;
  --signal: #d2e875;
  --signal-ink: #1a2008;
  --signal-soft: #30391b;
  --amber: #e4a260;
  --amber-soft: #3a2a1d;
  --attention: #ff8533;
  --attention-soft: #3d2619;
  --blue: #8db9c1;
  --blue-soft: #20353a;
  --danger: #ee8580;
  --danger-soft: #3e2725;
  --shadow: 0 18px 48px rgb(0 0 0 / 24%);
  --shadow-small: 0 10px 26px rgb(0 0 0 / 20%);
}

:root[data-theme="dark"] .signal-badge:not(.static):not(.quarantined),
:root[data-theme="dark"] .decision-badge.INVESTIGATE {
  background: var(--signal);
  color: var(--signal-ink);
}

:root[data-theme="dark"] .signal-badge.quarantined {
  background: var(--attention-soft);
  color: var(--attention);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 3%, color-mix(in srgb, var(--accent) 5%, transparent) 0 17rem, transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--signal) 80%, var(--ink));
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: white;
}

.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;
}

.topbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(175px, 1fr) auto minmax(175px, 1fr);
  align-items: center;
  height: var(--topbar-height);
  padding: 0 clamp(18px, 3vw, 48px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  position: absolute;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.brand-mark::before { width: 20px; height: 20px; opacity: .45; }
.brand-mark::after { width: 10px; height: 10px; opacity: .75; }
.brand-mark i:nth-child(1) { width: 3px; height: 3px; background: var(--signal); border-color: var(--signal); }
.brand-mark i:nth-child(2) { width: 26px; height: 26px; border-color: var(--line-strong); }
.brand-mark i:nth-child(3) { width: 15px; height: 15px; border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: .18em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
}

.main-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 28px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(.5);
  transition: opacity .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.topbar-tools {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button.active {
  background: var(--surface-strong);
  box-shadow: 0 2px 8px rgb(30 35 31 / 9%);
  color: var(--ink);
}

.segmented.compact {
  padding: 3px;
}

.segmented.compact button {
  min-width: 32px;
  min-height: 28px;
  padding: 0 8px;
  font-size: 10px;
}

.theme-toggle button {
  padding: 0;
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.app {
  width: min(100%, var(--page-width));
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + clamp(32px, 5vw, 68px)) clamp(18px, 4vw, 64px) 64px;
}

.loading-shell {
  display: grid;
  gap: 18px;
  padding-top: 44px;
}

.loading-line,
.loading-grid i {
  display: block;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--bg-soft) 15%, var(--surface) 40%, var(--bg-soft) 65%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.loading-line.short { width: 170px; height: 11px; }
.loading-line.title { width: min(620px, 90%); height: 52px; }
.loading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.loading-grid i { height: 130px; border-radius: var(--radius); }

@keyframes shimmer { to { background-position-x: -200%; } }

.page-enter {
  animation: page-in .42s cubic-bezier(.2, .75, .2, 1) both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  margin-bottom: 36px;
}

.page-header.narrow {
  max-width: 920px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .99;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -.025em;
  line-height: 1.15;
}

h3 {
  margin-bottom: 6px;
  font-size: 16px;
  letter-spacing: -.015em;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

.gate-stamp {
  position: relative;
  display: grid;
  min-width: 168px;
  padding: 17px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.gate-stamp::before {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px var(--amber-soft);
  content: "";
}

.gate-stamp span {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gate-stamp strong {
  margin-top: 7px;
  font-size: 18px;
}

.gate-stamp small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.metric {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 21px 24px;
}

.metric + .metric::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.metric strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.metric span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.mode-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.mode-label {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mode-switch button {
  align-items: flex-start;
  min-width: 160px;
  min-height: 48px;
  padding: 8px 14px;
  flex-direction: column;
}

.mode-switch button span {
  font-size: 12px;
}

.mode-switch button small {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 550;
}

.truth-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 15px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.truth-banner.demo {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 52%, var(--surface));
}

.truth-banner-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--signal-soft);
  color: var(--signal-ink);
  font-weight: 800;
}

.truth-banner strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.truth-banner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.origin-badge,
.status-badge,
.decision-badge,
.signal-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.origin-badge.PUBLIC {
  background: var(--blue-soft);
  color: var(--blue);
}

.origin-badge.SYNTHETIC {
  background: var(--accent-soft);
  color: var(--accent);
}

.origin-badge.PROJECT {
  background: var(--signal-soft);
  color: color-mix(in srgb, var(--signal-ink) 88%, var(--ink));
}

.origin-badge.FIRST_PARTY {
  border: 1px dashed var(--line-strong);
  color: var(--ink-faint);
}

.radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .78fr);
  align-items: start;
  gap: 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.queue-panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.panel-header h2 {
  margin: 0;
  font-size: 21px;
}

.search-wrap {
  position: relative;
  width: min(260px, 40%);
}

.search-wrap svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.search-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 37px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 12px;
}

.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.filter-row {
  display: flex;
  gap: 7px;
  padding: 13px 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.filter-button:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.filter-button.active {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--ink);
}

.queue-list {
  display: grid;
  max-height: 760px;
  overflow: auto;
}

.opportunity-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 21px 24px 20px 28px;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}

.opportunity-card:last-child {
  border-bottom: 0;
}

.opportunity-card::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--line-strong);
  content: "";
}

.opportunity-card[data-decision="INVESTIGATE"]::before { background: var(--signal); }
.opportunity-card[data-decision="WATCH"]::before { background: var(--amber); }
.opportunity-card[data-decision="DISMISS"]::before { background: var(--danger); }
.opportunity-card[data-decision="QUARANTINED"]::before { background: var(--attention); }
.opportunity-card:hover { background: var(--surface-muted); }

.card-topline,
.card-title-line,
.card-meta,
.dimension-row,
.source-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.card-topline {
  gap: 7px;
  margin-bottom: 10px;
}

.signal-badge {
  background: var(--signal-soft);
  color: color-mix(in srgb, var(--signal-ink) 85%, var(--ink));
}

.signal-badge.static {
  background: var(--surface-muted);
  color: var(--ink-soft);
}

.signal-badge.quarantined {
  background: var(--attention-soft);
  color: var(--attention);
}

.decision-badge.INVESTIGATE { background: var(--signal-soft); color: color-mix(in srgb, var(--signal-ink) 85%, var(--ink)); }
.decision-badge.WATCH { background: var(--amber-soft); color: var(--amber); }
.decision-badge.DISMISS { background: var(--danger-soft); color: var(--danger); }

.card-title-line {
  gap: 9px;
}

.card-title-line h3 {
  margin: 0;
  font-size: 18px;
}

.card-meta {
  gap: 7px;
  margin: 4px 0 10px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 600;
}

.card-meta span + span::before {
  margin-right: 7px;
  content: "·";
}

.card-rationale {
  max-width: 720px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.dimension-row {
  gap: 6px;
}

.dimension-chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
}

.dimension-chip strong {
  color: var(--ink);
  font-weight: 750;
}

.card-side {
  display: flex;
  min-width: 108px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.source-line {
  justify-content: flex-end;
  gap: 5px;
  color: var(--ink-faint);
  font-size: 10px;
}

.source-dots {
  display: inline-flex;
}

.source-dots i {
  width: 7px;
  height: 7px;
  margin-left: -2px;
  border: 1px solid var(--surface);
  border-radius: 50%;
  background: var(--blue);
}

.card-arrow,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
}

.card-arrow svg,
.back-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform .18s ease;
}

.opportunity-card:hover .card-arrow svg { transform: translateX(3px); }

.empty-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 40px;
  color: var(--ink-soft);
  text-align: center;
}

.radar-aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
}

.landscape-card {
  overflow: hidden;
}

.landscape-head {
  padding: 21px 22px 0;
}

.landscape-head h3 { margin-bottom: 7px; font-size: 18px; }
.landscape-head p { margin-bottom: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }

.signal-landscape {
  position: relative;
  height: 280px;
  margin: 15px 20px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(to right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)),
    radial-gradient(circle, var(--line) 1px, transparent 1px),
    var(--surface-muted);
  background-size: 100% 100%, 100% 100%, 18px 18px, 100% 100%;
}

.signal-landscape::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.landscape-dot {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 2px 8px rgb(0 0 0 / 16%);
  transform: translate(-50%, 50%);
  transition: transform .18s ease;
}

.landscape-dot:hover,
.landscape-dot:focus-visible { z-index: 5; transform: translate(-50%, 50%) scale(1.3); }
.landscape-dot.INVESTIGATE { background: var(--signal); }
.landscape-dot.WATCH { background: var(--amber); }
.landscape-dot.DISMISS { background: var(--danger); }
.landscape-dot.static { width: 13px; height: 13px; border-width: 2px; background: var(--blue); opacity: .75; }
.landscape-dot.quarantined { width: 16px; height: 16px; border-width: 2px; background: var(--attention); opacity: 1; }

.axis-label {
  position: absolute;
  z-index: 1;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.axis-label.x { right: 8px; bottom: 6px; }
.axis-label.y { top: 10px; left: 7px; transform: rotate(90deg) translateX(100%); transform-origin: left top; }

.status-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-card {
  padding: 17px;
}

.status-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
}

.status-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.progress-track {
  width: 100%;
  height: 5px;
  margin: 11px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-soft);
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.back-link {
  margin-bottom: 24px;
}

.back-link:hover svg { transform: translateX(-3px); }

.detail-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.detail-header h1 {
  margin-bottom: 11px;
  font-size: clamp(40px, 4.6vw, 68px);
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.detail-meta span + span::before {
  margin-right: 8px;
  content: "·";
}

.signal-medallion {
  position: relative;
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.signal-medallion::before,
.signal-medallion::after {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 50%;
  content: "";
}

.signal-medallion::before { width: 88px; height: 88px; }
.signal-medallion::after { width: 48px; height: 48px; background: var(--accent-soft); }
.signal-medallion strong { z-index: 1; color: var(--accent); font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.signal-medallion.static strong { font-size: 21px; }

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.dimension-block {
  position: relative;
  padding: 19px 21px;
}

.dimension-block + .dimension-block::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.dimension-block span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dimension-block strong { font-size: 16px; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, .65fr);
  align-items: start;
  gap: 22px;
}

.detail-main {
  display: grid;
  gap: 18px;
}

.content-card {
  padding: 25px;
}

.content-card > p {
  color: var(--ink-soft);
}

.content-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}

.content-card-title p { max-width: 520px; margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; }

.static-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--line));
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
}

.static-notice .notice-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent);
  border-radius: 50%;
  color: var(--amber);
  font-weight: 800;
}

.static-notice h3 { margin-bottom: 5px; }
.static-notice p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.static-notice.quarantined { border-color: color-mix(in srgb, var(--attention) 42%, var(--line)); background: var(--attention-soft); }
.static-notice.quarantined .notice-mark { border-color: color-mix(in srgb, var(--attention) 55%, transparent); color: var(--attention); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.why-block {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.why-block .mini-label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.why-block p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.offer-inline {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.bottle-glyph {
  position: relative;
  width: 20px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 5px 5px 7px 7px;
  background: var(--accent-soft);
}

.bottle-glyph::before {
  position: absolute;
  top: -9px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: 1px solid var(--accent);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  content: "";
}

.offer-inline strong { display: block; font-size: 12px; }
.offer-inline small { color: var(--ink-faint); font-size: 10px; }

.evidence-list {
  position: relative;
  display: grid;
  gap: 0;
}

.evidence-list::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 8px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.evidence-item {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 0 0 22px;
}

.evidence-item:last-child { padding-bottom: 0; }

.evidence-node {
  z-index: 1;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.evidence-node.CONTRADICTED { background: var(--danger); }
.evidence-copy strong { display: block; margin-bottom: 4px; font-size: 12px; }
.evidence-copy p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.evidence-copy small { display: block; margin-top: 5px; color: var(--ink-faint); font-size: 9px; }
.evidence-copy small a { color: var(--blue); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }

.evidence-id {
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.split-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.split-list section {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.split-list ul,
.private-list,
.pairing-list {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.split-list li,
.private-list li {
  position: relative;
  padding: 9px 0 9px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.split-list li::before,
.private-list li::before {
  position: absolute;
  top: 15px;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.split-list section:last-child li::before { background: var(--ink-faint); }

.decision-panel {
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
  padding: 24px;
  border-top: 4px solid var(--signal);
}

.decision-panel.dismiss { border-top-color: var(--danger); }
.decision-panel.watch { border-top-color: var(--amber); }
.decision-panel.quarantined { border-top-color: var(--attention); }
.decision-panel .recommendation-value { margin: 18px 0 11px; font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1; }
.decision-panel > p { color: var(--ink-soft); font-size: 12px; }

.action-callout {
  margin: 20px 0;
  padding: 15px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.action-callout span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.action-callout p { margin: 0; font-size: 12px; }

.decision-controls {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.decision-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: transform .15s ease, border .15s ease, background .15s ease;
}

.decision-button:hover,
.secondary-button:hover { border-color: var(--line-strong); background: var(--surface-muted); transform: translateY(-1px); }
.decision-button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.decision-button.investigate.active { border-color: var(--signal); background: var(--signal-soft); color: color-mix(in srgb, var(--signal-ink) 85%, var(--ink)); }

.decision-help { margin: 12px 0 0; color: var(--ink-faint); font-size: 9px; line-height: 1.5; }
.blocked-decision { margin-top: 20px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-xs); color: var(--ink-soft); font-size: 11px; }

.pilot-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  min-height: 390px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pilot-copy {
  z-index: 1;
  padding: clamp(28px, 5vw, 62px);
}

.pilot-copy h1 {
  max-width: 700px;
  font-size: clamp(42px, 5vw, 70px);
}

.pilot-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.pilot-stat strong { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.pilot-stat span { color: var(--ink-faint); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }

.vine-visual {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--accent-strong);
}

.vine-visual::before,
.vine-visual::after {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  content: "";
}

.vine-visual::before { top: -70px; right: -100px; width: 380px; height: 380px; box-shadow: 0 0 0 60px rgb(255 255 255 / 4%), 0 0 0 120px rgb(255 255 255 / 3%); }
.vine-visual::after { bottom: 35px; left: 34px; width: 120px; height: 120px; }

.vine-monogram {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  color: #fff8f5;
  font-family: var(--font-display);
  font-size: clamp(68px, 9vw, 132px);
  letter-spacing: -.08em;
  transform: translate(-50%, -50%);
}

.vine-caption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: rgb(255 255 255 / 70%);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.section-card {
  padding: clamp(22px, 3vw, 34px);
}

.section-card.wide { grid-column: 1 / -1; }
.section-head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-head p { max-width: 580px; margin: 0; color: var(--ink-soft); font-size: 12px; }

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.offer-card {
  position: relative;
  min-height: 275px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.offer-card::after {
  position: absolute;
  right: -35px;
  bottom: -90px;
  width: 190px;
  height: 260px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 40% 40% 14px 14px;
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
  content: "";
  transform: rotate(-8deg);
}

.offer-card > * { position: relative; z-index: 1; }
.offer-card .offer-id { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.offer-card h3 { max-width: 260px; margin: 14px 0 6px; font-family: var(--font-display); font-size: 25px; font-weight: 500; line-height: 1.05; }
.offer-card .offer-style { color: var(--ink-soft); font-size: 12px; }
.price-row { display: flex; gap: 22px; margin-top: 26px; }
.price-row span { display: grid; color: var(--ink-faint); font-size: 9px; }
.price-row strong { margin-top: 4px; color: var(--ink); font-size: 15px; }
.pairing-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 19px; }
.pairing-list li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 9px; }

.private-panel {
  border-color: color-mix(in srgb, var(--amber) 32%, var(--line));
  background: color-mix(in srgb, var(--amber-soft) 28%, var(--surface));
}

.private-list li:first-child { border-top: 0; }
.private-list li::before { background: transparent; border: 1px solid var(--amber); }

.truth-grid,
.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.truth-card,
.persona-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.truth-card.missing { border-style: dashed; }
.truth-card p { margin: 14px 0 0; color: var(--ink-soft); font-size: 11px; }
.truth-state { display: block; margin-top: 15px; color: var(--ink-faint); font-size: 9px; }
.persona-grid { grid-template-columns: repeat(3, 1fr); }
.persona-card { position: relative; min-height: 145px; background: var(--surface); }
.persona-card::after { position: absolute; right: 17px; bottom: 16px; color: var(--line-strong); font-family: var(--font-display); font-size: 38px; content: attr(data-index); }
.persona-card strong { display: block; max-width: 190px; margin-top: 18px; font-size: 13px; }

.method-flow {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  padding: 10px 0 3px;
}

.flow-step {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: center;
}

.flow-step::after {
  position: absolute;
  top: 18px;
  right: -50%;
  left: 50%;
  z-index: 0;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.flow-step:last-child::after { display: none; }
.flow-node { z-index: 1; display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--accent); font-size: 10px; font-weight: 800; }
.flow-step:nth-child(n+6) .flow-node { border-color: var(--signal); background: var(--signal-soft); color: color-mix(in srgb, var(--signal-ink) 85%, var(--ink)); }

.zone-list {
  display: grid;
  gap: 15px;
}

.zone-row {
  display: grid;
  grid-template-columns: 80px 1fr 110px;
  align-items: center;
  gap: 14px;
}

.zone-row > strong { font-size: 11px; text-transform: capitalize; }
.zone-bar { position: relative; height: 7px; overflow: hidden; border-radius: 99px; background: var(--bg-soft); }
.zone-bar i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--blue); }
.zone-row span { color: var(--ink-faint); font-size: 10px; text-align: right; }

.autonomy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.autonomy-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.autonomy-card::before {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

.autonomy-card span { color: var(--ink-faint); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.autonomy-card h3 { margin-top: 11px; }
.autonomy-card p { margin: 0; color: var(--ink-soft); font-size: 12px; }

.warning-strip {
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xs);
  color: var(--ink-soft);
  font-size: 11px;
  text-align: center;
}

.error-view {
  display: grid;
  min-height: 62vh;
  place-items: center;
  text-align: center;
}

.error-view > div { max-width: 440px; }
.error-symbol { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; border: 1px solid var(--danger); border-radius: 50%; color: var(--danger); font-size: 24px; }
.error-view p { color: var(--ink-soft); }
.primary-button { border-color: var(--accent); background: var(--accent); color: white; }

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: grid;
  gap: 8px;
}

.toast {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  font-size: 11px;
  animation: toast-in .25s ease both;
}

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1120px) {
  .topbar { grid-template-columns: 1fr auto 1fr; }
  .radar-layout, .detail-layout { grid-template-columns: 1fr; }
  .radar-aside, .decision-panel { position: static; }
  .radar-aside { grid-template-columns: 1.2fr .8fr; }
  .status-stack { grid-template-columns: 1fr; }
  .truth-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --topbar-height: 64px; }
  .topbar { grid-template-columns: auto 1fr auto; padding: 0 16px; }
  .brand-copy small { display: none; }
  .main-nav { justify-content: center; gap: 18px; }
  .page-header { grid-template-columns: 1fr; }
  .gate-stamp { display: none; }
  .metrics-strip { grid-template-columns: 1fr 1fr 1fr; }
  .metric { padding: 17px; }
  .metric strong { font-size: 26px; }
  .radar-aside { grid-template-columns: 1fr; }
  .status-stack { grid-template-columns: 1fr 1fr; }
  .detail-header { grid-template-columns: 1fr; }
  .signal-medallion { position: absolute; top: 0; right: 0; width: 80px; height: 80px; }
  .signal-medallion::before { width: 58px; height: 58px; }
  .signal-medallion::after { width: 32px; height: 32px; }
  .dimension-grid { grid-template-columns: 1fr 1fr; }
  .dimension-block:nth-child(3)::before { display: none; }
  .dimension-block:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pilot-hero { grid-template-columns: 1fr; }
  .vine-visual { min-height: 230px; }
  .content-grid { grid-template-columns: 1fr; }
  .section-card.wide { grid-column: auto; }
  .offer-grid { grid-template-columns: 1fr; }
  .method-flow { grid-template-columns: repeat(4, 1fr); row-gap: 24px; }
  .flow-step:nth-child(4)::after { display: none; }
  .flow-step:nth-child(5)::before { position: absolute; top: -12px; left: 50%; height: 12px; width: 1px; background: var(--line-strong); content: ""; }
}

@media (max-width: 620px) {
  :root { --topbar-height: 104px; }
  .topbar { grid-template-columns: 1fr auto; grid-template-rows: 56px 48px; height: var(--topbar-height); padding: 0 14px; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { display: block; font-size: 7px; }
  .topbar-tools { grid-column: 2; grid-row: 1; }
  .main-nav { position: static; grid-column: 1 / -1; grid-row: 2; width: 100%; height: 48px; justify-content: space-around; gap: 0; border-top: 1px solid var(--line); }
  .nav-link { padding: 0 12px; font-size: 11px; }
  .nav-link::after { right: 10px; bottom: -1px; left: 10px; }
  .topbar-tools { gap: 5px; }
  .segmented.compact button { min-width: 27px; padding: 0 6px; }
  .app { padding-bottom: 64px; }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  .page-header { margin-bottom: 26px; }
  .metrics-strip { grid-template-columns: 1fr; }
  .metric { grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
  .metric + .metric::before { top: 0; right: 16px; bottom: auto; left: 16px; width: auto; height: 1px; }
  .mode-toolbar { align-items: flex-start; flex-direction: column; }
  .mode-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .mode-switch button { min-width: 0; }
  .truth-banner { grid-template-columns: auto 1fr; }
  .truth-banner > .origin-badge { grid-column: 2; }
  .panel-header { flex-direction: column; padding: 18px; }
  .search-wrap { width: 100%; }
  .filter-row { padding: 11px 18px; }
  .opportunity-card { grid-template-columns: 1fr; padding: 19px 18px 18px 22px; gap: 12px; }
  .card-side { min-width: 0; flex-direction: row; align-items: center; }
  .source-line { justify-content: flex-start; }
  .status-stack { grid-template-columns: 1fr; }
  .signal-medallion { display: none; }
  .dimension-grid { grid-template-columns: 1fr 1fr; }
  .dimension-block { padding: 15px; }
  .detail-layout { gap: 15px; }
  .why-grid, .split-list, .content-grid, .truth-grid, .persona-grid, .autonomy-grid { grid-template-columns: 1fr; }
  .content-card, .section-card { padding: 19px; }
  .evidence-item { grid-template-columns: 17px minmax(0, 1fr); }
  .evidence-id { grid-column: 2; }
  .pilot-copy { padding: 26px 22px; }
  .pilot-copy h1 { font-size: 42px; }
  .method-flow { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .flow-step:nth-child(even)::after { display: none; }
  .flow-step:nth-child(5)::before { display: none; }
  .zone-row { grid-template-columns: 62px 1fr; }
  .zone-row span { grid-column: 2; text-align: left; }
  .toast-region { right: 14px; bottom: 14px; left: 14px; }
}

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

/* Cockpit shell — the decision surface owns the viewport. */
:root {
  --topbar-height: 56px;
  --page-width: none;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.topbar {
  padding-inline: clamp(18px, 2.2vw, 34px);
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-copy strong { font-size: 13px; }
.brand-copy small { margin-top: 4px; font-size: 7px; }
.main-nav { gap: 24px; }
.nav-link { font-size: 12px; }

.app {
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: calc(var(--topbar-height) + 11px) clamp(12px, 1.5vw, 24px) 13px;
  overflow: hidden;
}

.dashboard-page {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(390px, 1fr) 148px minmax(390px, .82fr);
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.dashboard-heading {
  display: grid;
  min-width: 0;
  align-content: center;
  padding: 2px 8px 2px 2px;
}

.dashboard-heading .eyebrow {
  margin-bottom: 4px;
  font-size: 8px;
}

.dashboard-heading .eyebrow::before { width: 15px; }

.dashboard-heading h1 {
  max-width: none;
  margin-bottom: 3px;
  overflow: hidden;
  font-size: clamp(27px, 2.25vw, 34px);
  line-height: 1.04;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-heading .lead {
  max-width: none;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-overview .gate-stamp {
  min-width: 0;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.dashboard-overview .gate-stamp::before {
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.dashboard-overview .gate-stamp span { font-size: 8px; }
.dashboard-overview .gate-stamp strong { margin-top: 3px; font-size: 14px; }
.dashboard-overview .gate-stamp small { font-size: 9px; }

.dashboard-overview .metrics-strip {
  min-width: 0;
  margin: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.dashboard-overview .metric {
  min-width: 0;
  align-content: center;
  padding: 9px 13px;
}

.dashboard-overview .metric + .metric::before {
  top: 11px;
  bottom: 11px;
}

.dashboard-overview .metric strong { font-size: 24px; }

.dashboard-overview .metric span {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.dashboard-context .mode-toolbar {
  min-width: 365px;
  margin: 0;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.dashboard-context .mode-switch {
  padding: 3px;
}

.dashboard-context .mode-switch button {
  min-width: 126px;
  min-height: 35px;
  padding: 5px 10px;
}

.dashboard-context .mode-switch button span { font-size: 10px; }
.dashboard-context .mode-switch button small { font-size: 8px; }

.dashboard-context .truth-banner {
  min-width: 0;
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.dashboard-context .truth-banner-icon {
  width: 29px;
  height: 29px;
  font-size: 11px;
}

.dashboard-context .truth-banner strong { font-size: 11px; }
.dashboard-context .truth-banner p {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-context .origin-badge {
  min-height: 21px;
  padding-inline: 8px;
  font-size: 8px;
}

.dashboard-page .radar-layout {
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, .72fr);
  align-items: stretch;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.dashboard-page .panel { border-radius: var(--radius-sm); }

.dashboard-page .queue-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.dashboard-page .panel-header {
  align-items: center;
  padding: 10px 14px 9px;
}

.dashboard-page .panel-header .panel-kicker { margin-bottom: 2px; font-size: 7px; }
.dashboard-page .panel-header h2 { font-size: 17px; }
.dashboard-page .search-wrap { width: min(240px, 43%); }
.dashboard-page .search-wrap input { height: 33px; font-size: 10px; }
.dashboard-page .search-wrap svg { width: 14px; height: 14px; }

.dashboard-page .filter-row {
  padding: 6px 14px;
}

.dashboard-page .filter-button {
  min-height: 26px;
  padding-inline: 10px;
  font-size: 9px;
}

.dashboard-page .queue-list {
  min-height: 0;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.dashboard-page .opportunity-card {
  gap: 12px;
  padding: 11px 14px 11px 19px;
}

.dashboard-page .opportunity-card::before {
  top: 12px;
  bottom: 12px;
}

.dashboard-page .card-topline { gap: 5px; margin-bottom: 5px; }
.dashboard-page .signal-badge,
.dashboard-page .decision-badge,
.dashboard-page .origin-badge {
  min-height: 20px;
  padding-inline: 7px;
  font-size: 7px;
}

.dashboard-page .card-title-line h3 { font-size: 15px; }
.dashboard-page .card-meta { margin: 2px 0 5px; font-size: 9px; }
.dashboard-page .card-rationale {
  display: -webkit-box;
  max-width: none;
  margin-bottom: 7px;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.dashboard-page .dimension-row { gap: 4px; }
.dashboard-page .dimension-chip {
  min-height: 22px;
  padding-inline: 7px;
  font-size: 8px;
}

.dashboard-page .card-side { min-width: 92px; gap: 10px; }
.dashboard-page .source-line,
.dashboard-page .card-arrow { font-size: 9px; }

.dashboard-page .radar-aside {
  position: static;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.dashboard-page .landscape-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.dashboard-page .landscape-head { padding: 13px 14px 0; }
.dashboard-page .landscape-head .panel-kicker { margin-bottom: 2px; font-size: 7px; }
.dashboard-page .landscape-head h3 { margin-bottom: 3px; font-size: 15px; }
.dashboard-page .landscape-head p {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page .signal-landscape {
  height: auto;
  min-height: 160px;
  flex: 1;
  margin: 9px 12px 12px;
}

.dashboard-page .status-stack { gap: 8px; }
.dashboard-page .status-card { min-height: 92px; padding: 11px 12px; }
.dashboard-page .status-card span { margin-bottom: 4px; font-size: 7px; }
.dashboard-page .status-card strong { margin-bottom: 4px; font-size: 12px; }
.dashboard-page .status-card p { font-size: 8px; line-height: 1.35; }
.dashboard-page .progress-track { margin: 7px 0; }

.pilot-workspace,
.method-workspace,
.error-view {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px 2px 32px;
}

/* Contextual opportunity dossier. */
.modal-layer {
  position: fixed;
  z-index: 150;
  inset: var(--topbar-height) 0 0;
  display: grid;
  padding: 14px;
  place-items: center;
  background: color-mix(in srgb, var(--ink) 26%, transparent);
  backdrop-filter: blur(5px);
  animation: modal-fade .18s ease both;
}

.opportunity-modal {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1220px, 96vw);
  height: min(780px, calc(100dvh - var(--topbar-height) - 28px));
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: 0;
  background: var(--bg);
  box-shadow: 0 28px 90px rgb(0 0 0 / 30%);
  animation: modal-rise .24s cubic-bezier(.2, .75, .2, 1) both;
}

.modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.modal-header .eyebrow { margin-bottom: 4px; font-size: 8px; }
.modal-header h1 {
  max-width: none;
  margin-bottom: 5px;
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1;
}

.modal-header .detail-meta { font-size: 10px; }
.modal-header .origin-badge { min-height: 20px; font-size: 7px; }

.modal-close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-muted);
  cursor: pointer;
}

.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.modal-dimensions {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.modal-dimensions .dimension-block { padding: 10px 18px; }
.modal-dimensions .dimension-block + .dimension-block::before { top: 9px; bottom: 9px; }
.modal-dimensions .dimension-block span { margin-bottom: 2px; font-size: 7px; }
.modal-dimensions .dimension-block strong { font-size: 13px; }

.modal-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  min-height: 0;
  overflow: hidden;
}

.modal-scroll {
  min-height: 0;
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.modal-scroll .detail-main { gap: 12px; }
.modal-scroll .content-card { padding: 17px; }
.modal-scroll .content-card-title { margin-bottom: 12px; }
.modal-scroll .content-card-title h2 { font-size: 18px; }
.modal-scroll .why-block { padding: 14px; }
.modal-scroll .split-list { gap: 12px; }
.modal-scroll .split-list section { padding: 16px; }
.modal-scroll .static-notice { padding: 14px; }

.modal-workspace > .decision-panel {
  position: static;
  top: auto;
  min-height: 0;
  margin: 14px 14px 14px 0;
  padding: 18px;
  overflow: auto;
  box-shadow: none;
}

.modal-workspace > .decision-panel .recommendation-value {
  margin: 12px 0 8px;
  font-size: 27px;
}

.modal-workspace > .decision-panel .action-callout { margin: 14px 0; padding: 12px; }
.modal-workspace > .decision-panel .decision-controls { margin-top: 12px; }
.modal-workspace > .decision-panel .decision-button { min-height: 36px; font-size: 10px; }

@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(10px) scale(.99); } }

@media (max-width: 1160px) {
  .dashboard-overview {
    grid-template-columns: minmax(360px, 1fr) minmax(360px, .82fr);
  }

  .dashboard-overview .gate-stamp { display: none; }
  .dashboard-page .radar-layout { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .72fr); }
}

@media (max-width: 820px) {
  :root { --topbar-height: 64px; }

  .app {
    padding: calc(var(--topbar-height) + 9px) 10px 10px;
  }

  .dashboard-page {
    display: block;
    overflow: auto;
  }

  .dashboard-overview {
    grid-template-columns: 1fr;
    margin-bottom: 10px;
  }

  .dashboard-heading h1 { white-space: normal; }
  .dashboard-heading .lead { white-space: normal; }
  .dashboard-context { grid-template-columns: 1fr; margin-bottom: 10px; }
  .dashboard-context .mode-toolbar { min-width: 0; }
  .dashboard-context .truth-banner p { white-space: normal; }

  .dashboard-page .radar-layout {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .dashboard-page .queue-panel { height: min(680px, 70dvh); }
  .dashboard-page .radar-aside { height: 520px; overflow: visible; }

  .opportunity-modal {
    width: calc(100vw - 16px);
    height: calc(100dvh - var(--topbar-height) - 16px);
  }

  .modal-workspace { grid-template-columns: 1fr; overflow: auto; }
  .modal-scroll { overflow: visible; }
  .modal-workspace > .decision-panel { margin: 0 14px 14px; overflow: visible; }
}

@media (max-width: 620px) {
  :root { --topbar-height: 96px; }
  .topbar { grid-template-rows: 50px 46px; }
  .main-nav { height: 46px; }
  .dashboard-overview .metrics-strip { grid-template-columns: repeat(3, 1fr); }
  .dashboard-overview .metric { display: grid; grid-template-columns: 1fr; padding: 9px; }
  .dashboard-overview .metric strong { font-size: 21px; }
  .dashboard-context .mode-toolbar { align-items: stretch; padding: 8px; }
  .dashboard-context .mode-label { display: none; }
  .dashboard-context .mode-switch { width: 100%; }
  .dashboard-context .mode-switch button { min-width: 0; }
  .dashboard-page .panel-header { align-items: stretch; }
  .dashboard-page .search-wrap { width: 100%; }
  .dashboard-page .opportunity-card { grid-template-columns: 1fr; }
  .dashboard-page .card-side { flex-direction: row; align-items: center; }
  .modal-layer { padding: 0; }
  .opportunity-modal { width: 100vw; height: calc(100dvh - var(--topbar-height)); border: 0; border-radius: 0; }
  .modal-header { padding: 12px 14px; }
  .modal-dimensions { grid-template-columns: 1fr 1fr; }
  .modal-dimensions .dimension-block:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Dense cards and linked interactions — visual slice 0.4. */
.landscape-context-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.landscape-context-row .panel-kicker { margin: 0; }

.territory-pill {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.matrix-note {
  display: block;
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.dashboard-labels {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.dashboard-heading .dashboard-labels .eyebrow { margin: 0; }

.active-vertical {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface));
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.active-vertical i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

.active-vertical strong { color: var(--ink); font-weight: 800; }

.dashboard-page .queue-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  gap: 8px;
  padding: 8px;
  background: var(--surface-muted);
}

.dashboard-page .opportunity-card {
  grid-template-columns: minmax(0, 1fr);
  align-self: start;
  height: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgb(44 39 28 / 4%);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}

.dashboard-page .opportunity-card:last-child { border-bottom: 1px solid var(--line); }

.dashboard-page .opportunity-card::before {
  top: 10px;
  bottom: 10px;
  width: 3px;
}

.dashboard-page .card-rationale {
  -webkit-line-clamp: 2;
}

.dashboard-page .card-side {
  min-width: 0;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.dashboard-page .source-line { justify-content: flex-start; }
.dashboard-page .empty-state { grid-column: 1 / -1; }
.dashboard-page .empty-state[hidden] { display: none; }

.opportunity-card.is-linked-hover {
  z-index: 2;
  border-color: var(--attention);
  background: color-mix(in srgb, var(--attention-soft) 72%, var(--surface));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--attention) 22%, transparent), 0 9px 24px rgb(44 39 28 / 10%);
  transform: translateY(-1px);
}

.opportunity-card.is-linked-hover::before { background: var(--attention); }
.opportunity-card.is-linked-hover .card-arrow { color: var(--attention); }

.landscape-dot.is-linked-hover {
  z-index: 8;
  background: var(--attention);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--attention) 22%, transparent), 0 4px 14px rgb(0 0 0 / 28%);
  transform: translate(-50%, 50%);
}

.landscape-dot:hover,
.landscape-dot:focus-visible { transform: translate(-50%, 50%); }

.landscape-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  width: max-content;
  max-width: 190px;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--attention) 45%, var(--line));
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 10px 24px rgb(0 0 0 / 16%);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 5px) scale(.97);
  transform-origin: 50% 100%;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  visibility: hidden;
}

.landscape-tooltip::after {
  position: absolute;
  top: calc(100% - 5px);
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 1px solid color-mix(in srgb, var(--attention) 45%, var(--line));
  border-bottom: 1px solid color-mix(in srgb, var(--attention) 45%, var(--line));
  background: var(--surface-strong);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.landscape-tooltip strong,
.landscape-tooltip span,
.landscape-tooltip small { display: block; }
.landscape-tooltip strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.landscape-tooltip small { margin-top: 3px; color: var(--attention); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.landscape-dot:hover .landscape-tooltip,
.landscape-dot:focus-visible .landscape-tooltip,
.landscape-dot.is-linked-hover .landscape-tooltip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  visibility: visible;
}

/* The pilot identity stays visible without monopolising the first viewport. */
.pilot-workspace .pilot-hero {
  grid-template-columns: minmax(0, 1fr) 260px;
  min-height: 0;
  height: 168px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.pilot-workspace .pilot-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  align-content: center;
  column-gap: 22px;
  padding: 15px 20px;
}

.pilot-workspace .pilot-copy > .eyebrow { grid-column: 1; margin-bottom: 5px; font-size: 8px; }
.pilot-workspace .pilot-copy > h1 {
  grid-column: 1;
  max-width: none;
  margin-bottom: 4px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1;
}

.pilot-workspace .pilot-copy > .lead {
  display: -webkit-box;
  grid-column: 1;
  max-width: 720px;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pilot-workspace .pilot-stats {
  display: grid;
  grid-column: 2;
  grid-row: 1 / -1;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  align-self: stretch;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.pilot-workspace .pilot-stat strong { font-size: 20px; }
.pilot-workspace .pilot-stat span { font-size: 7px; }
.pilot-workspace .vine-visual { min-height: 0; }
.pilot-workspace .vine-monogram { font-size: 66px; }
.pilot-workspace .vine-caption { right: 15px; bottom: 13px; left: 15px; font-size: 7px; }
.pilot-workspace .content-grid { gap: 12px; margin-top: 0; }

@media (max-width: 960px) {
  .pilot-workspace .pilot-hero { grid-template-columns: minmax(0, 1fr) 190px; }
  .pilot-workspace .pilot-stats { gap: 8px; padding-left: 14px; }
}

@media (max-width: 820px) {
  .dashboard-labels { align-items: flex-start; flex-direction: column; gap: 5px; }
  .dashboard-page .queue-list { grid-template-columns: 1fr; }
  .pilot-workspace .pilot-hero { grid-template-columns: 1fr; height: auto; }
  .pilot-workspace .pilot-copy { display: block; }
  .pilot-workspace .pilot-stats {
    margin-top: 14px;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .pilot-workspace .vine-visual { min-height: 105px; }
}

/* Geographic Paris map and comfortable cockpit type — visual slice 0.6. */
.dashboard-page .radar-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(440px, .9fr);
}

.dashboard-page .radar-aside {
  grid-template-rows: auto auto;
  align-content: start;
  overflow: visible;
}

.dashboard-page .landscape-card {
  position: relative;
  z-index: 4;
  overflow: visible;
}

.geographic-map {
  min-height: 260px;
  aspect-ratio: 680 / 400;
  flex: none;
  overflow: visible;
  background: color-mix(in srgb, var(--surface-muted) 94%, var(--blue-soft));
}

.geographic-map::before { display: none; }

.paris-map {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.paris-district {
  fill: color-mix(in srgb, var(--surface-muted) 94%, var(--surface-strong));
  stroke: color-mix(in srgb, var(--ink-faint) 28%, var(--line));
  stroke-width: .9;
  vector-effect: non-scaling-stroke;
}

.paris-district:nth-of-type(3n) {
  fill: color-mix(in srgb, var(--surface-muted) 91%, var(--blue-soft));
}

.paris-district.district-12,
.paris-district.district-16 {
  fill: color-mix(in srgb, var(--surface-muted) 88%, var(--signal-soft));
}

.paris-district-label {
  fill: color-mix(in srgb, var(--ink-soft) 68%, var(--surface-muted));
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 750;
  paint-order: stroke;
  stroke: var(--surface-strong);
  stroke-width: 4px;
  text-anchor: middle;
}

.paris-seine {
  fill: none;
  stroke: color-mix(in srgb, var(--blue) 72%, var(--blue-soft));
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
  opacity: .4;
  vector-effect: non-scaling-stroke;
}

.paris-landmark circle { fill: var(--accent); opacity: .72; }
.paris-landmark text {
  fill: color-mix(in srgb, var(--ink-soft) 76%, var(--surface-muted));
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--surface-strong);
  stroke-width: 3px;
}

.paris-north path { fill: var(--ink-soft); opacity: .62; }
.paris-north text {
  fill: color-mix(in srgb, var(--ink-soft) 72%, var(--surface-muted));
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 850;
  text-anchor: middle;
}

.geographic-map .landscape-dot {
  z-index: 3;
  width: 19px;
  height: 19px;
  border-width: 3px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--surface-strong) 84%, transparent), 0 5px 14px rgb(20 28 25 / 24%);
  transform: translate(-50%, -50%);
}

.geographic-map .landscape-dot.static {
  width: 18px;
  height: 18px;
  background: var(--blue);
  opacity: 1;
}

.geographic-map .landscape-dot.quarantined {
  width: 22px;
  height: 22px;
}

.geographic-map .landscape-dot:hover,
.geographic-map .landscape-dot:focus-visible,
.geographic-map .landscape-dot.is-linked-hover {
  z-index: 20;
  transform: translate(-50%, -50%) scale(1.12);
}

.map-attribution {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 6px;
  max-width: calc(100% - 16px);
  padding: 3px 6px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-align: right;
}

.landscape-tooltip {
  z-index: 1;
  width: 260px;
  max-width: min(260px, 70vw);
  padding: 12px 14px;
  background: var(--surface-strong);
  box-shadow: 0 14px 34px rgb(20 24 22 / 24%);
  opacity: 0;
}

.landscape-tooltip strong { font-size: 15px; }
.landscape-tooltip span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}
.landscape-tooltip small { margin-top: 6px; font-size: 12px; }

.brand-copy strong { font-size: 14px; }
.brand-copy small { font-size: 11px; }
.nav-link { font-size: 14px; }
.segmented.compact button { font-size: 12px; }
.dashboard-context .mode-label { font-size: 12px; }
.dashboard-heading .eyebrow,
.dashboard-overview .gate-stamp span,
.dashboard-page .panel-header .panel-kicker,
.dashboard-page .landscape-head .panel-kicker,
.dashboard-page .status-card span { font-size: 12px; }

.active-vertical,
.territory-pill { font-size: 12px; }

.matrix-note { font-size: 11px; }

.dashboard-heading .lead,
.dashboard-overview .gate-stamp small,
.dashboard-overview .metric span,
.dashboard-context .mode-switch button small,
.dashboard-context .truth-banner p,
.dashboard-page .card-meta,
.dashboard-page .source-line,
.dashboard-page .card-arrow,
.dashboard-page .status-card p { font-size: 13px; }

.dashboard-heading .lead { line-height: 1.45; }
.dashboard-overview .gate-stamp strong { font-size: 16px; }
.dashboard-overview .metric strong { font-size: 26px; }

.dashboard-context .truth-banner p {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dashboard-context .mode-switch button span,
.dashboard-context .truth-banner strong,
.dashboard-page .search-wrap input,
.dashboard-page .filter-button,
.dashboard-page .signal-badge,
.dashboard-page .decision-badge,
.dashboard-page .origin-badge,
.dashboard-page .dimension-chip { font-size: 13px; }

.dashboard-context .mode-switch button {
  min-height: 48px;
  padding-block: 7px;
}
.dashboard-context .truth-banner { padding-block: 10px; }
.dashboard-context .truth-banner-icon {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.dashboard-context .origin-badge,
.dashboard-page .signal-badge,
.dashboard-page .decision-badge,
.dashboard-page .origin-badge { min-height: 27px; }
.dashboard-page .panel-header h2 { font-size: 20px; }
.dashboard-page .search-wrap input { height: 38px; }
.dashboard-page .filter-button { min-height: 34px; }
.dashboard-page .opportunity-card { padding: 14px 16px 14px 21px; }
.dashboard-page .card-title-line h3 { font-size: 18px; }
.dashboard-page .card-rationale { font-size: 14px; line-height: 1.5; }
.dashboard-page .dimension-chip { min-height: 29px; }
.dashboard-page .landscape-head h3 { font-size: 19px; }
.dashboard-page .landscape-head p {
  font-size: 13px;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
}
.dashboard-page .status-card {
  min-height: 105px;
  padding: 13px 14px;
}
.dashboard-page .status-card strong { font-size: 15px; }

.modal-header .eyebrow,
.modal-dimensions .dimension-block span,
.modal-header .origin-badge { font-size: 12px; }
.modal-header .detail-meta,
.evidence-copy small,
.blocked-decision,
.modal-workspace > .decision-panel .decision-button { font-size: 14px; }
.modal-dimensions .dimension-block strong { font-size: 15px; }
.modal-workspace { grid-template-columns: minmax(0, 1fr) 320px; }
.modal-workspace > .decision-panel .decision-button { min-height: 42px; }
.decision-help { font-size: 12px; }
.evidence-copy strong { font-size: 14px; }
.evidence-id { font-size: 11px; }
.content-card-title p,
.why-block p,
.split-list li,
.evidence-copy p { font-size: 14px; line-height: 1.55; }

.pilot-workspace .pilot-copy > .eyebrow,
.pilot-workspace .pilot-stat span,
.pilot-workspace .vine-caption { font-size: 12px; }

.pilot-workspace .pilot-copy > .lead { font-size: 14px; }
.section-head p,
.offer-card .offer-style,
.truth-card p { font-size: 14px; }
.offer-card .offer-id,
.price-row span,
.pairing-list li,
.truth-state { font-size: 12px; }
.persona-card strong { font-size: 15px; }
.flow-step,
.zone-row span { font-size: 13px; }
.zone-row > strong { font-size: 14px; }

@media (min-width: 821px) and (max-width: 1160px) {
  .dashboard-page .radar-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr);
  }
}

@media (max-width: 820px) {
  .dashboard-page .radar-layout { grid-template-columns: 1fr; }
  .dashboard-page .radar-aside { height: auto; }
  .geographic-map { min-height: 250px; }
}
