:root {
  --bg: #020812;
  --sidebar: #04101e;
  --surface: #071524;
  --surface-2: #0a1b2d;
  --surface-3: #0d2237;
  --line: #17344d;
  --line-bright: #27688f;
  --text: #edf6ff;
  --muted: #8aa1b5;
  --cyan: #32c9f4;
  --jade: #36d6a4;
  --gold: #f0bb54;
  --red: #f36f82;
  --blue: #4b8cff;
  --violet: #9b7dff;
  --radius: 6px;
  color-scheme: dark;
}

html,
body {
  background: var(--bg);
  color: var(--text);
}

body {
  background-image:
    linear-gradient(rgba(49, 113, 158, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 113, 158, .035) 1px, transparent 1px);
  background-size: 44px 44px;
}

* { scrollbar-color: #1a5278 #030b15; }
::-webkit-scrollbar-track { background: #030b15; }
::-webkit-scrollbar-thumb { background: #1a5278; border-color: #030b15; }

.app-shell { grid-template-columns: 206px minmax(0, 1fr); }
.sidebar {
  width: 206px;
  padding: 12px 10px;
  background: rgba(3, 13, 27, .985);
  border-right-color: #173854;
  box-shadow: 10px 0 30px rgba(0, 0, 0, .28);
}
.brand-lockup { min-height: 62px; border-bottom-color: var(--line); }
.brand-lockup strong { color: #f4f8fc; font-size: 15px; }
.brand-lockup small { color: #71d8f5; }
.brand-lockup em { color: #647d92; }
.brand-mark {
  border-color: #2e739a;
  background: #071a2d;
  color: var(--cyan);
  box-shadow: inset 0 0 16px rgba(50, 201, 244, .1), 0 0 16px rgba(50, 201, 244, .08);
}
.brand-mark::before,
.brand-mark::after { border-color: var(--blue); }
.brand-mark span { background: var(--red); }

.primary-nav { gap: 4px; padding: 14px 0; }
.nav-item { min-height: 48px; color: #91a6b8; }
.nav-item > svg:first-child { border-color: #17364f; background: #071727; }
.nav-item .nav-arrow { color: #48647a; }
.nav-item:hover { color: #fff; background: #0a1b2e; border-color: #204663; }
.nav-item.active {
  color: #fff;
  background: #0b2948;
  border-color: #235b83;
  box-shadow: inset 3px 0 0 var(--blue), 0 0 18px rgba(75, 140, 255, .1);
}
.nav-item.active > svg:first-child { color: #75b4ff; border-color: #306f98; }
.nav-item.active .nav-arrow { color: #75b4ff; }
.nav-item span { font-size: 12px; }
.nav-item span small { color: #5f7a90; font-size: 7px; }
.sidebar-status { border-color: var(--line); }
.sidebar-status strong { color: #e8f1f8; }
.sidebar-status small,
.attribution { color: #7790a5; }

.topbar {
  height: 58px;
  grid-template-columns: minmax(170px, .48fr) minmax(280px, 1fr) auto;
  padding: 7px 16px;
  background: rgba(2, 9, 20, .96);
  border-bottom-color: #173a58;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.topbar h1 { color: #edf6ff; font-size: 16px; }
.eyebrow,
.section-code { color: #68c5ef; }
.global-search {
  height: 36px;
  border-color: #24435c;
  background: #06111e;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .25);
}
.global-search > svg { color: #7891a5; }
.global-search button { border-color: #2b5877; background: #0b2136; color: #7bdfff; }
.global-search button:hover { border-color: var(--cyan); background: #0d2b45; }
.channel-state { color: var(--jade); }
.account-control { border-color: #24435c; background: #071524; color: #9aafc0; }
.account-control:hover { border-color: var(--cyan); color: #fff; }
.language-switch { border-color: #24435c; background: #071524; }
.language-switch button { color: #8ca2b5; }
.language-switch button:hover { color: #fff; }
.language-switch button.active { background: #245da9; color: #fff; }
.version { border-color: #715a2a; color: #f0c76d; background: #11180f; }

.view { min-height: calc(100vh - 58px); background: transparent; }
p { color: var(--muted); }

.panel,
.quick-actions-panel,
.intel-module,
.rail-panel {
  border-color: var(--line);
  background: rgba(7, 21, 36, .96);
  box-shadow: inset 0 1px 0 rgba(144, 206, 242, .025), 0 8px 24px rgba(0, 0, 0, .08);
}
.panel::before { background: var(--cyan); box-shadow: 0 0 10px rgba(50, 201, 244, .5); }
.panel-heading,
.module-heading { border-bottom-color: var(--line); }
.panel-heading h3,
.module-heading h4,
.quick-actions-heading h3 { color: var(--text); }
.panel-heading > strong { color: var(--gold); }

.command.primary {
  border-color: #2d9cca;
  background: #126f9f;
  color: #f7fdff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 16px rgba(50, 201, 244, .08);
}
.command.primary:hover { background: #1685b8; }
.command.secondary { border-color: #29485f; background: #091929; color: #dbe9f3; }
.command.secondary:hover { border-color: var(--cyan); color: #fff; background: #0b2237; }
.icon-command { border-color: #29485f; background: #081725; color: #8da5b8; }
.icon-command:hover { color: var(--cyan); border-color: var(--cyan); }

input,
select,
textarea {
  border-color: #28485f !important;
  background: #061321 !important;
  color: #eaf4fb !important;
}
input::placeholder,
textarea::placeholder { color: #61798d; }
input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 2px rgba(50, 201, 244, .1) !important;
}

.metric {
  border-color: #1c405d;
  background: rgba(6, 20, 35, .94);
  box-shadow: inset 0 0 20px rgba(50, 201, 244, .025), 0 8px 20px rgba(0, 0, 0, .12);
}
.metric::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.metric.jade::before { background: var(--jade); }
.metric.gold::before { background: var(--gold); }
.metric.red::before { background: var(--violet); }
.metric-icon { border-color: #255c7c; background: #092039; color: var(--cyan); }
.metric.jade .metric-icon { color: var(--jade); border-color: #245e4f; background: #0a2523; }
.metric.gold .metric-icon { color: var(--gold); border-color: #6b572d; background: #241d0d; }
.metric.red .metric-icon { color: var(--violet); border-color: #554486; background: #1b1735; }
.metric span,
.metric small { color: #829caf; }
.metric strong { color: #73dfff; }
.metric.jade strong { color: var(--jade); }
.metric.gold strong { color: var(--gold); }
.metric.red strong { color: #b39cff; }

.quick-actions-panel { background: #071524; }
.quick-actions-heading { border-right-color: var(--line); }
.quick-actions-grid button { border-right-color: var(--line); color: #e8f2f9; }
.quick-actions-grid button:hover { background: #0a2034; }
.quick-actions-grid button > svg { border-color: #286889; color: var(--cyan); background: #09223a; }
.quick-actions-grid small { color: #708a9f; }

.globe-command { border-color: #1c4664; }
.globe-viewport {
  height: clamp(480px, calc(100svh - 310px), 640px);
  min-height: 480px;
  background: #020814;
}
.dashboard-hero-overlay .dashboard-lead { top: 30px; left: 80px; width: min(500px, calc(100% - 112px)); }
.dashboard-hero-overlay .dashboard-lead h2 { margin: 7px 0 9px; color: #f4f9fd; font-size: 30px; }
.dashboard-hero-overlay .dashboard-lead p { color: #a9bdcd; font-size: 12px; }
.dashboard-hero-overlay .status-chips { margin-top: 12px; }
.dashboard-hero-overlay .status-chips span { border-color: #24516e; background: rgba(3, 17, 31, .88); color: #a4bccd; }
.dashboard-hero-overlay .dashboard-metrics { right: 18px; bottom: 16px; left: 18px; }
.dashboard-hero-overlay .metric { min-height: 76px; }
.dashboard-hero-overlay .metric strong { font-size: 21px; }
.globe-coverage-legend { bottom: 105px; border-color: #285a75; background: rgba(3, 15, 27, .94); }
.globe-tilt-control { border-color: #246281; background: rgba(3, 17, 31, .92); }

.region-intelligence { background: rgba(4, 15, 27, .78); border-color: var(--line); }
.region-intel-heading { border-bottom-color: var(--line); }
.region-intel-heading h3 { color: var(--text); }
.data-quality { border-color: #2a5169; background: #071625; }
.intel-module { border-color: var(--line); }
.module-heading > svg { color: var(--cyan); }
.region-bars,
.benchmark-list { background: transparent; }
.region-bar-track { background: #10283b; }
.benchmark-row,
.key-metric-row { border-bottom-color: rgba(37, 79, 105, .65); }
.weather-context { background: #081828; }
.region-evidence-strip { border-top-color: var(--line); }
.region-evidence-strip a,
.region-evidence-strip span { color: #83b8d6; }

.intel-rail {
  width: 288px;
  padding: 9px;
  border-left-color: #173a58;
  background: rgba(2, 10, 21, .985);
}
.rail-profile { border-bottom-color: var(--line); }
.rail-profile strong { color: #eaf3f9; }
.rail-avatar { border-color: #3965b1; background: #0a2041; color: #9f87ff; }
.rail-heading { border-bottom-color: var(--line); }
.rail-orbit::before { background: #071524; }

.data-workspace-header h2 { color: var(--text); }
.data-workspace-header p { color: var(--muted); }
.data-workspace-tabs { border-color: #294a62; background: #071524; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .28); }
.data-workspace-tabs button { color: #8da4b7; }
.data-workspace-tabs button:hover { color: #fff; }
.data-workspace-tabs button.active { background: #12304d; color: #73dfff; box-shadow: inset 0 0 0 1px #285d80; }
.github-publisher-console { border-color: #244b68; background: #081a2c; }
.github-publisher-heading h4 { color: var(--text); }
.github-publisher-heading > span { color: var(--cyan); }
#github-publisher-repository,
.github-publisher-console > small { color: var(--muted); }

.region-dimension-workbench {
  border-color: #1d405c;
  background: rgba(7, 21, 36, .96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}
.dimension-workbench-heading h4 { color: var(--text); }
.dimension-method-note { color: #8ba3b6; }
.dimension-method-note svg { color: var(--jade); }
.data-dimension { border-color: #21435d; background: #091a2b; color: #e5f0f7; }
.data-dimension:hover { border-color: #347aa2; background: #0c2339; }
.data-dimension.active { border-color: #3787b2; background: #0c2943; box-shadow: inset 3px 0 0 var(--cyan); }
.data-dimension small { color: #8098aa; }
.data-dimension em { color: #71dcff; }
.data-dimension.none em { color: #718596; }
.data-dimension.partial em,
.data-dimension.limited em { color: var(--gold); }
.data-dimension.strong em { color: var(--jade); }
.dimension-progress { background: #122c42; }
.dimension-progress b { background: #3ebce7; }
.data-dimension.none .dimension-progress b { background: #536879; }
.data-dimension-detail { border-color: #21435d; background: #071827; }
.dimension-empty { color: #839bae; }
.dimension-empty svg { color: #66b7de; }
.dimension-skeleton { border-color: #21435d; background: linear-gradient(90deg, #081827, #0d2439, #081827); background-size: 200% 100%; }
.dimension-detail-heading { border-bottom-color: #21435d; }
.dimension-detail-heading span { color: #72c7ed; }
.dimension-detail-heading strong { color: #cbdbe7; }
.dimension-detail-heading > b { color: #71dcff; }
.dimension-signal-groups > div > span { color: #8299ab; }
.dimension-signal { border-color: #2a4a61; background: #0a1d2e; color: #9db0bf; }
.dimension-signal.covered { border-color: #22644f; background: #0a2924; color: #65dbaf; }
.dimension-signal.reference { border-color: #6b572a; background: #261f0e; color: #efc66b; }
.dimension-signal.missing { border-color: #344a5b; background: #101d28; color: #8193a0; }
.dimension-evidence-columns h5 { color: #dbe8f1; }
.dimension-evidence-row { border-top-color: #1d3c54; }
.dimension-evidence-row strong { color: #e7f1f7; }
.dimension-evidence-row small { color: #71899c; }
.dimension-evidence-row b { color: #71dcff; }
.dimension-evidence-row a { color: #70bfe5; }
.dimension-evidence-row.reference b { color: var(--gold); }
.dimension-no-evidence { color: #8298a9; }

@media (max-width: 1420px) {
  .app-shell { grid-template-columns: 206px minmax(0, 1fr); }
  .topbar { grid-template-columns: minmax(170px, 1fr) auto; }
  .global-search { display: none; }
}

@media (max-width: 1180px) {
  .topbar-actions { gap: 8px; }
  .site-switcher { width: 164px; }
  .account-control { width: 32px; padding: 0 8px; }
  .account-control span,
  .version { display: none; }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { width: auto; padding: 0; }
  .topbar { height: 64px; grid-template-columns: minmax(0, 1fr) auto; }
  .view { min-height: calc(100vh - 64px); }
  .globe-viewport { height: 500px; min-height: 500px; }
  .dashboard-hero-overlay .dashboard-lead { top: 22px; left: 68px; }
  .dashboard-hero-overlay .dashboard-lead h2 { font-size: 25px; }
}

@media (max-width: 600px) {
  .topbar { padding: 9px 12px; }
  .topbar h1 { font-size: 15px; }
  .site-switcher { width: 118px; grid-template-columns: minmax(0, 1fr) 28px; padding-left: 4px; }
  .view { padding: 12px; }
  .nav-item span { font-size: 10px; }
  .globe-viewport { height: 420px; min-height: 420px; }
  .dashboard-hero-overlay .dashboard-lead { top: 17px; right: 10px; left: 58px; }
  .dashboard-hero-overlay .dashboard-lead h2 { margin-top: 5px; font-size: 20px; line-height: 1.22; }
  .dashboard-hero-overlay .dashboard-lead p { font-size: 11px; }
  .dashboard-hero-overlay .status-chips { display: none; }
  .dashboard-hero-overlay .dashboard-metrics { right: 8px; bottom: 8px; left: 8px; gap: 5px; }
  .dashboard-hero-overlay .metric { min-height: 58px; grid-template-columns: 29px minmax(0, 1fr); gap: 7px; padding: 7px; }
  .dashboard-hero-overlay .metric-icon { width: 29px; height: 29px; }
  .dashboard-hero-overlay .metric-icon svg { width: 16px; height: 16px; }
  .dashboard-hero-overlay .metric span,
  .dashboard-hero-overlay .metric small { font-size: 9px; }
  .dashboard-hero-overlay .metric strong { margin: 1px 0; font-size: 17px; }
  .globe-tilt-control { left: 7px; width: 40px; height: 148px; grid-template-rows: 24px minmax(0, 1fr) 24px; }
  .globe-tilt-control input { width: 94px; }
  .globe-coverage-legend { right: 8px; bottom: 136px; width: 172px; }
  .globe-pick-status { bottom: 132px; }
  .region-navigator-field > span { font-size: 9px; }
  .region-navigator-field select { font-size: 11px; }
  .region-availability-item strong { font-size: 10px; }
  .region-availability-item small { font-size: 9px; }
  .region-availability-note { font-size: 9px; }
  .data-workspace-header h2 { font-size: 21px; }
  .data-workspace-header p { font-size: 11px; }
  .data-workspace-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .data-workspace-tabs button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    padding: 5px 8px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .data-workspace-tabs button svg { flex: 0 0 auto; }
  #data-collector-panel > .panel-heading { align-items: flex-start; flex-direction: column; }
  .collector-heading-actions { width: 100%; justify-content: flex-start; gap: 6px; }
  .collector-heading-actions .command { white-space: nowrap; }
  .data-dimension strong { font-size: 11px; }
  .data-dimension small,
  .dimension-signal,
  .dimension-signal-groups > div > span { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-hero-overlay { transition: none; }
}

/* Single-SKU product validation workspace */
.validation-workspace-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 4px 2px;
}
.validation-workspace-header h2 { margin: 3px 0 4px; font-size: 22px; }
.validation-workspace-header p { max-width: 760px; margin: 0; font-size: 12px; }
.validation-boundary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 13px;
  border: 1px solid #285043;
  border-radius: var(--radius);
  background: #0a211f;
}
.validation-boundary > svg {
  width: 27px;
  height: 27px;
  color: var(--jade);
}
.validation-boundary strong,
.validation-boundary span { display: block; }
.validation-boundary strong { color: #dff8ee; font-size: 12px; }
.validation-boundary span { margin-top: 2px; color: #91b2a6; font-size: 10px; line-height: 1.5; }
.product-validation-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.product-validation-main { display: grid; min-width: 0; gap: 12px; }
.product-validation-main[data-product-mode="new"] .product-trial-editor { order: -1; }
.product-trial-index { min-height: 520px; max-height: calc(100vh - 176px); overflow: hidden; }
.product-trial-list { max-height: calc(100vh - 235px); overflow: auto; }
.product-trial-item {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.product-trial-item:hover { background: #0a2034; }
.product-trial-item.active { background: #0c2943; box-shadow: inset 3px 0 0 var(--cyan); }
.product-trial-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.product-trial-item > span { color: var(--gold); font-size: 9px; font-weight: 800; }
.product-trial-item small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; line-height: 1.4; }
.product-trial-editor { overflow: hidden; }
.trial-private-state { display: inline-flex; align-items: center; gap: 6px; color: var(--jade); font-size: 9px; }
.trial-private-state svg { width: 14px; height: 14px; }
.product-validation-runner { min-width: 0; overflow: hidden; }
.product-validation-template {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  background: #081927;
}
.product-validation-template-copy { min-width: 0; }
.product-validation-template-copy > strong,
.product-validation-template-copy > small { display: block; }
.product-validation-template-copy > strong { margin-top: 5px; color: #eff7fc; font-size: 13px; }
.product-validation-template-copy > small { margin-top: 3px; color: #9db2c1; font-size: 9px; }
.product-validation-template-copy > p { max-width: 780px; margin: 6px 0 0; color: #7892a5; font-size: 9px; line-height: 1.5; }
.validation-template-tag {
  display: inline-flex;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
}
.product-validation-run-grid {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
  min-height: 390px;
  border-top: 1px solid var(--line);
}
.product-validation-run-grid > div:first-child { min-width: 0; border-right: 1px solid var(--line); }
.validation-run-subheading {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.validation-run-subheading strong { color: var(--gold); font: 700 14px ui-monospace, monospace; }
.product-validation-run-list { max-height: 430px; overflow: auto; }
.product-validation-run-row {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.product-validation-run-row:hover { background: #0a2034; }
.product-validation-run-row.active { background: #0c2943; box-shadow: inset 3px 0 0 var(--jade); }
.product-validation-run-row strong { font-size: 10px; }
.product-validation-run-row span { color: #84daba; font-size: 8px; }
.product-validation-run-row small { grid-column: 1 / -1; color: #71899c; font-size: 8px; }
.product-validation-run-detail { min-width: 0; overflow: auto; }
.validation-run-detail-heading {
  min-height: 74px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.validation-run-detail-heading h3 { margin: 4px 0 2px; font-size: 15px; }
.validation-run-detail-heading p { margin: 0; font-size: 8px; }
.validation-run-id { color: #688398; font: 700 10px ui-monospace, monospace; }
.validation-run-snapshot { padding: 12px 14px; border-bottom: 1px solid var(--line); background: #081724; }
.validation-run-snapshot > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.validation-run-snapshot h4 { margin: 3px 0 0; color: #d7e4ec; font-size: 10px; }
.validation-run-snapshot > header small { max-width: 300px; color: #71899c; font-size: 8px; line-height: 1.5; text-align: right; }
.validation-run-snapshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 14px; margin-top: 10px; }
.validation-run-snapshot-grid > div { min-width: 0; }
.validation-run-snapshot-grid span,
.validation-run-snapshot-grid strong { display: block; }
.validation-run-snapshot-grid span { color: #6f8798; font-size: 7px; }
.validation-run-snapshot-grid strong { margin-top: 2px; overflow-wrap: anywhere; color: #c9d9e4; font-size: 9px; line-height: 1.4; }
.validation-snapshot-warning { margin: 10px 0 0; padding: 7px 9px; border: 1px solid #6f5727; color: #e4c985; background: #1a170f; font-size: 8px; line-height: 1.5; }
.validation-step-list { display: grid; border-bottom: 1px solid var(--line); }
.validation-step-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; padding: 9px 14px; border-bottom: 1px solid #102b40; }
.validation-step-row:last-child { border-bottom: 0; }
.validation-step-row > svg { width: 16px; height: 16px; color: var(--gold); }
.validation-step-row[data-status="completed"] > svg { color: var(--jade); }
.validation-step-row[data-status="failed"] > svg,
.validation-step-row[data-status="rate_limited"] > svg { color: var(--red); }
.validation-step-row strong,
.validation-step-row span,
.validation-step-row small { display: block; }
.validation-step-row strong { font-size: 9px; }
.validation-step-row span { margin-top: 2px; color: #9aafbd; font-size: 9px; line-height: 1.45; }
.validation-step-row small { margin-top: 3px; color: #678196; font-size: 8px; }
.validation-result-layers { display: grid; grid-template-columns: 1fr 1fr; }
.validation-result-layers > section { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.validation-result-layers > section:nth-child(even) { border-right: 0; }
.validation-result-layers h4 { margin: 0 0 8px; color: #c9d9e4; font-size: 9px; }
.validation-result-layers ul { margin: 0; padding-left: 16px; color: #9eb2c0; font-size: 9px; line-height: 1.65; }
.validation-evidence-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #143047; }
.validation-evidence-row:first-of-type { border-top: 0; }
.validation-evidence-row > div { min-width: 0; }
.validation-evidence-row span,
.validation-evidence-row strong,
.validation-evidence-row small { display: block; }
.validation-evidence-row span { color: var(--jade); font-size: 7px; font-weight: 800; }
.validation-evidence-row strong { margin-top: 3px; color: #d4e1e9; font-size: 9px; line-height: 1.45; }
.validation-evidence-row small { margin-top: 3px; color: #6f8798; font-size: 8px; }
.validation-rule-row { padding: 7px 0; border-top: 1px solid #143047; }
.validation-rule-row:first-of-type { border-top: 0; }
.validation-rule-row strong,
.validation-rule-row small { display: block; }
.validation-rule-row strong { color: #d4e1e9; font-size: 9px; line-height: 1.45; }
.validation-rule-row small { margin-top: 3px; color: #6f8798; font-size: 8px; }
.validation-run-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-top: 1px solid #66532c;
  background: #17170f;
}
.validation-run-candidate > div { min-width: 0; }
.validation-run-candidate strong,
.validation-run-candidate small { display: block; }
.validation-run-candidate strong { margin-top: 4px; color: #f1ead8; font-size: 12px; }
.validation-run-candidate p { margin: 4px 0; color: #c9bea0; font-size: 9px; line-height: 1.5; }
.validation-run-candidate small { color: #96896d; font-size: 8px; line-height: 1.45; }
.validation-candidate-contact { margin-top: 6px; color: #80d9ba; font-size: 9px; }
.product-link-import { padding: 13px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #071827; }
.product-link-quick-entry { margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); }
.product-link-import-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.product-link-import-heading > div { min-width: 0; }
.product-link-import-heading strong,
.product-link-import-heading span { display: block; }
.product-link-import-heading strong { display: inline-flex; align-items: center; gap: 7px; color: #e4eef4; font-size: 11px; }
.product-link-import-heading strong svg { width: 15px; height: 15px; color: var(--cyan); }
.product-link-import-heading > div > span { margin-top: 3px; color: #88a0b1; font-size: 9px; line-height: 1.45; }
.product-link-import-heading > span { flex: 0 0 auto; color: var(--jade); font-size: 8px; font-weight: 800; }
.product-link-mode { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 11px; border: 1px solid #29465a; }
.product-link-mode button { display: inline-flex; min-height: 31px; align-items: center; justify-content: center; gap: 6px; padding: 6px 11px; border: 0; background: transparent; color: #8199a9; font: inherit; font-size: 8px; font-weight: 800; cursor: pointer; }
.product-link-mode button + button { border-left: 1px solid #29465a; }
.product-link-mode button[aria-selected="true"] { background: #d8bd6a; color: #101a20; }
.product-link-mode svg { width: 13px; height: 13px; }
.product-link-import-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; margin-top: 11px; }
.product-link-import-row label { min-width: 0; }
.product-link-import-row label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.product-link-import-row input { width: 100%; }
.product-link-status { margin: 8px 0 0; color: #7f95a5; font-size: 8px; line-height: 1.5; }
.product-link-status.busy { color: var(--gold); }
.product-link-status.error { color: #ffaaa0; }
.product-link-preview { margin-top: 12px; border-top: 1px solid #24455d; }
.product-link-preview > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.product-link-preview > header strong,
.product-link-preview > header span { display: block; }
.product-link-preview > header strong { color: #eef5f8; font-size: 12px; overflow-wrap: anywhere; }
.product-link-preview > header span { margin-top: 3px; color: #7f95a5; font-size: 8px; overflow-wrap: anywhere; }
.product-link-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #1c3548; border-bottom: 1px solid #1c3548; }
.product-link-preview-grid > section { min-width: 0; padding: 12px; }
.product-link-preview-grid > section + section { border-left: 1px solid #1c3548; }
.product-link-preview-grid h4 { margin: 0 0 9px; color: #d8e5eb; font-size: 9px; }
.product-link-preview-grid p { margin: 0; color: #7f95a5; font-size: 8px; line-height: 1.5; }
.product-link-ai-insight { padding: 13px 2px; border-bottom: 1px solid #1c3548; }
.product-link-ai-insight > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-link-ai-insight > header span,
.product-link-ai-insight > header strong { display: block; }
.product-link-ai-insight > header span { color: var(--cyan); font-size: 7px; font-weight: 800; }
.product-link-ai-insight > header strong { margin-top: 3px; color: #e5eff4; font-size: 11px; }
.product-link-ai-insight > header em { color: #d7bd70; font-size: 8px; font-style: normal; font-weight: 800; }
.product-link-ai-insight > p { margin: 10px 0 0; color: #b7c8d0; font-size: 9px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.product-link-ai-insight > footer { margin-top: 8px; color: #718996; font-size: 7px; overflow-wrap: anywhere; }
.product-link-ai-insight.unavailable > header span,
.product-link-ai-insight.unavailable > header em { color: #c7a96c; }
.product-link-facts,
.product-review-reasons,
.product-review-samples ul,
.product-link-unknowns ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.product-link-facts li { display: grid; grid-template-columns: minmax(70px, .7fr) minmax(0, 1.3fr); gap: 3px 8px; }
.product-link-facts span { color: #7890a1; font-size: 8px; }
.product-link-facts strong { color: #dce8ed; font-size: 9px; overflow-wrap: anywhere; }
.product-link-facts small { grid-column: 2; color: #60798b; font-size: 7px; }
.product-review-risk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 9px; }
.product-review-risk div { min-width: 0; padding: 7px; background: #0a2130; }
.product-review-risk dt { color: #6f8798; font-size: 7px; }
.product-review-risk dd { margin: 3px 0 0; color: #e2cb89; font-size: 8px; font-weight: 800; overflow-wrap: anywhere; }
.product-review-reasons li,
.product-link-unknowns li { color: #91a7b5; font-size: 8px; line-height: 1.45; }
.product-review-samples,
.product-link-unknowns { border-bottom: 1px solid #1c3548; }
.product-review-samples summary,
.product-link-unknowns summary { padding: 9px 2px; color: #a8bbc6; font-size: 8px; cursor: pointer; }
.product-review-samples ul,
.product-link-unknowns ul { padding: 0 2px 10px; }
.product-review-samples li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
.product-review-samples li span { color: var(--gold); font-size: 8px; }
.product-review-samples li p { margin: 0; color: #a7bac5; font-size: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.product-link-boundary { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; color: #9d9175; font-size: 8px; line-height: 1.5; }
.product-link-boundary svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--gold); }
.product-demand-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; margin-top: 11px; }
.product-demand-input label { min-width: 0; }
.product-demand-input label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.product-demand-input textarea { width: 100%; min-height: 92px; resize: vertical; }
.product-demand-result { margin-top: 12px; border-top: 1px solid #24455d; }
.product-demand-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; }
.product-demand-summary span,
.product-demand-summary strong { display: block; }
.product-demand-summary span { color: #7890a1; font-size: 8px; }
.product-demand-summary strong { margin-top: 3px; color: #e7eff2; font-size: 11px; }
.product-demand-summary em { color: var(--jade); font-size: 8px; font-style: normal; font-weight: 800; }
.product-demand-conclusion { display: flex; gap: 9px; padding: 11px; border-block: 1px solid #5d4f2e; background: #1d1a13; }
.product-demand-conclusion svg { flex: 0 0 auto; width: 16px; height: 16px; color: #e6c76e; }
.product-demand-conclusion strong { display: block; color: #eadfbf; font-size: 10px; }
.product-demand-conclusion p { margin: 4px 0 0; color: #a99c79; font-size: 8px; line-height: 1.5; }
.product-demand-groups { display: grid; }
.product-demand-group { padding: 12px 0; border-bottom: 1px solid #1c3548; }
.product-demand-group > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-inline: 2px; }
.product-demand-group > header span { display: block; color: #60798b; font-size: 7px; text-transform: uppercase; }
.product-demand-group > header h4 { margin: 3px 0 0; color: #e2ebef; font-size: 10px; overflow-wrap: anywhere; }
.product-demand-group > header > strong { color: #d5bd72; font-size: 8px; text-align: right; }
.product-demand-match-evidence { margin: 7px 2px 0; padding-left: 17px; color: #8197a6; font-size: 8px; }
.product-demand-observations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.product-demand-observation { min-width: 0; padding: 9px; border: 1px solid #244157; background: #091b27; }
.product-demand-observation > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.product-demand-observation > header strong,
.product-demand-observation > header span { display: block; }
.product-demand-observation > header strong { color: #dce8ed; font-size: 9px; }
.product-demand-observation > header span { margin-top: 2px; color: #708797; font-size: 7px; line-height: 1.4; }
.product-demand-observation > header .icon-command { flex: 0 0 auto; width: 27px; height: 27px; }
.product-demand-observation > p { min-height: 32px; margin: 8px 0; color: #9fb0ba; font-size: 8px; line-height: 1.45; overflow-wrap: anywhere; }
.product-demand-observation dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: #284155; }
.product-demand-observation dl div { min-width: 0; padding: 6px; background: #0c2230; }
.product-demand-observation dt { color: #6f8798; font-size: 7px; }
.product-demand-observation dd { margin: 3px 0 0; color: #e4d7ac; font-size: 8px; font-weight: 800; overflow-wrap: anywhere; }
.product-demand-observation footer { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.product-demand-regional-summaries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.product-demand-regional-summaries h5 { grid-column: 1 / -1; margin: 0; color: #a8bbc6; font-size: 8px; }
.product-demand-regional-summaries > p { grid-column: 1 / -1; margin: 0; color: #718898; font-size: 8px; line-height: 1.5; }
.product-demand-region-summary { min-width: 0; padding: 8px; border: 1px solid #35536a; background: #071725; }
.product-demand-region-summary > header { display: flex; justify-content: space-between; gap: 8px; }
.product-demand-region-summary > header strong { color: #dce8ed; font-size: 9px; }
.product-demand-region-summary > header span { color: #83cdb6; font-size: 8px; font-weight: 800; }
.product-demand-region-summary dl { display: grid; gap: 6px; margin: 8px 0; }
.product-demand-region-summary dt { color: #718898; font-size: 7px; }
.product-demand-region-summary dd { margin: 2px 0 0; color: #e5d5a1; font-size: 8px; line-height: 1.45; overflow-wrap: anywhere; }
.product-demand-region-summary p,
.product-demand-region-summary small { display: block; margin: 4px 0 0; color: #7e97a7; font-size: 7px; line-height: 1.45; }
.product-demand-region-summary small { color: #988a67; }
.evidence-chip { display: inline-flex; min-height: 20px; align-items: center; padding: 3px 6px; border: 1px solid currentColor; font-size: 7px; font-weight: 800; }
.evidence-chip.fact { color: #70cfad; }
.evidence-chip.missing { color: #c3a766; }
.product-demand-candidates,
.product-demand-connections { padding: 11px 2px; border-bottom: 1px solid #1c3548; }
.product-demand-candidates h4,
.product-demand-connections h4 { margin: 0 0 8px; color: #d8e5eb; font-size: 9px; }
.product-demand-candidates > p { margin: 0; color: #8398a6; font-size: 8px; line-height: 1.5; }
.product-demand-candidates ul,
.product-demand-connections ul,
.product-demand-failures ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.product-demand-candidates li { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr); gap: 3px 10px; }
.product-demand-candidates li strong { color: #d8e5eb; font-size: 8px; }
.product-demand-candidates li span { color: #b9a66b; font-size: 8px; }
.product-demand-candidates li small { grid-column: 2; color: #778d9b; font-size: 7px; line-height: 1.45; }
.product-demand-connections li { display: grid; grid-template-columns: minmax(100px, .6fr) auto minmax(0, 1.4fr); gap: 8px; align-items: center; padding-block: 4px; }
.product-demand-connections li strong,
.product-demand-connections li span { display: block; }
.product-demand-connections li strong { color: #dce8ed; font-size: 8px; }
.product-demand-connections li span,
.product-demand-connections li small { color: #718898; font-size: 7px; line-height: 1.4; }
.product-demand-connections li em { color: #c3a766; font-size: 7px; font-style: normal; font-weight: 800; }
.product-demand-failures { border-bottom: 1px solid #1c3548; }
.product-demand-failures summary { padding: 9px 2px; color: #a8bbc6; font-size: 8px; cursor: pointer; }
.product-demand-failures ul { padding: 0 2px 10px; }
.product-demand-failures li { display: grid; gap: 2px; }
.product-demand-failures strong { color: #d4b3aa; font-size: 8px; overflow-wrap: anywhere; }
.product-demand-failures span { color: #947e78; font-size: 7px; }
.product-trial-fields,
.candidate-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  padding: 14px;
}
.product-trial-fields label,
.candidate-form-grid label,
.dialog-import-lead { min-width: 0; }
.product-trial-fields label > span,
.candidate-form-grid label > span,
.dialog-import-lead > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.product-trial-fields .wide,
.candidate-form-grid .wide { grid-column: span 2; }
.product-trial-fields .full,
.candidate-form-grid .full { grid-column: 1 / -1; }
.product-trial-advanced { overflow: hidden; border: 1px solid #24455d; border-radius: 4px; background: #071522; }
.product-trial-advanced > summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 11px; cursor: pointer; list-style: none; }
.product-trial-advanced > summary::-webkit-details-marker { display: none; }
.product-trial-advanced > summary > span { display: inline-flex; align-items: center; gap: 7px; color: #dceaf3; font-size: 10px; font-weight: 700; }
.product-trial-advanced > summary svg { width: 14px; height: 14px; color: var(--cyan); }
.product-trial-advanced > summary small { color: var(--muted); font-size: 8px; line-height: 1.45; text-align: right; }
.product-trial-advanced[open] > summary { border-bottom: 1px solid #24455d; }
.product-trial-advanced-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; padding: 11px; }
.product-trial-advanced-grid .wide { grid-column: span 2; }
.product-trial-advanced-grid .full { grid-column: 1 / -1; }
.product-trial-advanced-grid label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.product-trial-advanced-grid input,
.product-trial-advanced-grid select { width: 100%; }
.product-trial-fields input,
.product-trial-fields select,
.product-trial-fields textarea,
.candidate-form-grid input,
.candidate-form-grid select,
.candidate-form-grid textarea { width: 100%; }
.product-trial-consent { padding: 0 14px 13px; }
.product-trial-consent label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 11px;
  border: 1px solid #29455a;
  border-radius: 5px;
  background: #081725;
}
.product-trial-consent input { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--jade); }
.product-trial-consent strong,
.product-trial-consent small { display: block; }
.product-trial-consent strong { color: #dceaf3; font-size: 10px; }
.product-trial-consent small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.product-trial-actions {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
}
.product-trial-actions > span { margin-right: auto; color: var(--muted); font-size: 9px; }
.candidate-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.candidate-heading-actions > strong { color: var(--gold); font: 700 18px ui-monospace, monospace; }
.trial-candidate-layout {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(230px, .38fr) minmax(0, .62fr);
}
.trial-candidate-list { min-width: 0; border-right: 1px solid var(--line); overflow: auto; }
.trial-candidate-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 9px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.trial-candidate-row:hover { background: #0a2034; }
.trial-candidate-row.active { background: #0c2943; box-shadow: inset 3px 0 0 var(--cyan); }
.trial-candidate-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.trial-candidate-row > span { color: #69ccec; font-size: 9px; }
.trial-candidate-row small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.trial-candidate-detail { min-width: 0; overflow: auto; }
.trial-candidate-detail-content { padding: 15px; }
.trial-candidate-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.trial-candidate-detail-heading h2 { margin: 4px 0 3px; font-size: 19px; }
.trial-candidate-detail-heading p { margin: 0; font-size: 10px; }
.candidate-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 15px 0;
}
.candidate-pipeline-stage {
  min-width: 0;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid #24455d;
  border-radius: 4px;
  background: #071522;
}
.candidate-pipeline-stage[data-status="verified"] { border-color: #277c66; }
.candidate-pipeline-stage[data-status="rejected"] { border-color: #8e4545; }
.candidate-pipeline-stage[data-status="source_reported"] { border-color: #947631; }
.candidate-pipeline-stage > header { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.candidate-pipeline-stage > header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.candidate-pipeline-stage > header span { flex: 0 0 auto; color: var(--cyan); font-size: 8px; }
.candidate-pipeline-stage p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.candidate-pipeline-stage .command { width: 100%; min-height: 30px; margin-top: auto; }
.candidate-pipeline-ready { margin: 0 0 12px; color: #80d9ba; font-size: 9px; }
.trade-import-field { display: block; padding: 14px; }
.trade-import-field > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.trade-import-field textarea { width: 100%; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.trade-candidate-preview { min-height: 90px; max-height: 280px; margin: 0 14px; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: #06111c; }
.trade-preview-summary { display: flex; gap: 14px; padding: 10px; border-bottom: 1px solid var(--line); font-size: 9px; }
.trade-preview-summary strong { color: var(--gold); }
.trade-preview-row { display: grid; grid-template-columns: 54px minmax(140px, 1fr) minmax(160px, 1.2fr); gap: 8px; padding: 8px 10px; border-bottom: 1px solid #142b3c; font-size: 9px; }
.trade-preview-row:last-child { border-bottom: 0; }
.trade-preview-row.error { color: #ef9c9c; }
.validation-candidate-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #715a2a;
  border-radius: 4px;
  background: #211b0d;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.candidate-evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 14px; border: 1px solid var(--line); background: var(--line); }
.candidate-evidence-grid > div { min-width: 0; padding: 10px; background: #081725; }
.candidate-evidence-grid span,
.candidate-evidence-grid strong,
.candidate-evidence-grid a { display: block; }
.candidate-evidence-grid span { color: var(--muted); font-size: 8px; }
.candidate-evidence-grid strong,
.candidate-evidence-grid a { margin-top: 4px; overflow-wrap: anywhere; color: #dce9f2; font-size: 10px; line-height: 1.45; }
.candidate-evidence-grid a { color: var(--cyan); }
.candidate-contact-preview {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid #285043;
  border-radius: 4px;
  background: #081c1b;
}
.candidate-contact-preview > svg { width: 17px; height: 17px; color: var(--jade); }
.candidate-contact-preview.error { border-color: #75414a; background: #211318; }
.candidate-contact-preview.error > svg { color: #f09baa; }
.candidate-contact-preview strong { color: #dce9e4; font-size: 10px; }
.candidate-contact-preview p { margin: 3px 0 0; color: #87a89e; font-size: 8px; line-height: 1.45; }
.candidate-contact-preview-values { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; }
.candidate-contact-preview-values a,
.candidate-contact-preview-values span { overflow-wrap: anywhere; color: #7bdbbd; font-size: 9px; }
.candidate-contact-preview-evidence { display: grid; gap: 4px; margin-top: 8px; }
.candidate-contact-preview-evidence > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; padding-top: 5px; border-top: 1px solid #1e4239; }
.candidate-contact-preview-evidence a { color: var(--cyan); font-size: 8px; }
.candidate-contact-preview .command { min-height: 32px; }
.candidate-reasoning { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.candidate-reasoning > div { padding: 11px; border-left: 2px solid var(--jade); background: #091d20; }
.candidate-reasoning > div:last-child { border-left-color: var(--gold); background: #211b0d; }
.candidate-reasoning span { color: var(--muted); font-size: 8px; }
.candidate-reasoning p { margin: 5px 0 0; color: #d4e1e8; font-size: 10px; line-height: 1.55; }
.candidate-feedback-section { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.candidate-feedback-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.candidate-feedback-heading strong { font-size: 11px; }
.candidate-feedback-heading span { color: var(--muted); font-size: 9px; }
.candidate-feedback-actions { display: grid; grid-template-columns: repeat(5, minmax(72px, 1fr)); gap: 6px; margin-top: 9px; }
.candidate-feedback-actions .command { min-height: 34px; padding: 0 7px; font-size: 9px; }
.candidate-feedback-actions .negative { border-color: #70404b; color: #f4a0ae; }
.candidate-feedback-history { display: grid; gap: 6px; margin-top: 12px; }
.candidate-feedback-event { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; padding: 8px 9px; border: 1px solid #233f55; background: #081725; }
.candidate-feedback-event strong { color: #77ddff; font-size: 9px; }
.candidate-feedback-event span { overflow-wrap: anywhere; color: #a6bac8; font-size: 9px; }
.candidate-feedback-event time { color: #6f8799; font-size: 8px; }
.workspace-dialog { width: min(880px, calc(100vw - 28px)); max-width: none; }
.dialog-import-lead { display: block; padding: 13px 14px 0; }
.dialog-import-lead select { width: 100%; }
.dialog-import-lead small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.candidate-contact-boundary,
.feedback-weight-note { display: flex; gap: 7px; align-items: flex-start; margin: 0 14px 12px; padding: 8px 10px; border: 1px solid #285043; background: #0a211f; color: #9db9ae; font-size: 9px; line-height: 1.5; }
.candidate-contact-boundary svg,
.feedback-weight-note svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--jade); }
.feedback-weight-note { border-color: #5a4b29; background: #211b0d; color: #baa976; }
.feedback-weight-note svg { color: var(--gold); }

@media (max-width: 1180px) {
  .product-validation-layout { grid-template-columns: 1fr; }
  .product-validation-layout[data-product-mode="new"] .product-validation-main { order: -1; }
  .product-trial-index { min-height: 0; max-height: none; }
  .product-trial-list { max-height: 240px; }
}

@media (max-width: 760px) {
  .validation-workspace-header { align-items: flex-start; flex-direction: column; }
  .validation-workspace-header .command { width: 100%; }
  .product-trial-fields,
  .candidate-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-trial-advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-validation-template { align-items: stretch; flex-direction: column; }
  .product-validation-template .command { width: 100%; }
  .product-validation-run-grid { grid-template-columns: 1fr; }
  .product-validation-run-grid > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-link-preview-grid { grid-template-columns: 1fr; }
  .product-link-preview-grid > section + section { border-left: 0; border-top: 1px solid #1c3548; }
  .product-demand-observations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-demand-regional-summaries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-validation-run-list { max-height: 220px; }
  .trial-candidate-layout { grid-template-columns: 1fr; }
  .trial-candidate-list { max-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .candidate-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-feedback-actions { grid-template-columns: repeat(3, minmax(72px, 1fr)); }
}

@media (max-width: 520px) {
  .product-link-import-heading,
  .product-link-preview > header,
  .product-link-ai-insight > header { align-items: stretch; flex-direction: column; }
  .product-link-import-heading > span { align-self: flex-start; }
  .product-link-import-row { grid-template-columns: 1fr; }
  .product-link-mode { display: grid; width: 100%; }
  .product-link-import-row .command,
  .product-link-preview > header .command { width: 100%; }
  .product-demand-input { grid-template-columns: 1fr; }
  .product-demand-input .command { width: 100%; }
  .product-demand-summary,
  .product-demand-group > header { align-items: flex-start; flex-direction: column; }
  .product-demand-group > header > strong { text-align: left; }
  .product-demand-observations { grid-template-columns: 1fr; }
  .product-demand-regional-summaries { grid-template-columns: 1fr; }
  .product-demand-observation dl { grid-template-columns: 1fr; }
  .product-demand-observation > p { min-height: 0; }
  .product-demand-candidates li,
  .product-demand-connections li { grid-template-columns: 1fr; }
  .region-product-market-row { grid-template-columns: 1fr; }
  .product-demand-candidates li small { grid-column: 1; }
  .product-review-risk { grid-template-columns: 1fr; }
  .product-link-facts li { grid-template-columns: 1fr; }
  .product-link-facts small { grid-column: 1; }
  .product-review-samples li { grid-template-columns: 1fr; }
  .product-trial-fields,
  .candidate-form-grid { grid-template-columns: 1fr; }
  .product-trial-advanced > summary { align-items: flex-start; flex-direction: column; gap: 3px; padding-block: 9px; }
  .product-trial-advanced > summary small { text-align: left; }
  .product-trial-advanced-grid { grid-template-columns: 1fr; padding: 9px; }
  .product-trial-advanced-grid .wide,
  .product-trial-advanced-grid .full { grid-column: 1; }
  .product-trial-fields .wide,
  .candidate-form-grid .wide,
  .product-trial-fields .full,
  .candidate-form-grid .full { grid-column: 1; }
  .candidate-evidence-grid,
  .candidate-reasoning,
  .validation-result-layers,
  .candidate-pipeline { grid-template-columns: 1fr; }
  .candidate-heading-actions { width: 100%; justify-content: stretch; }
  .candidate-heading-actions .command { flex: 1 1 150px; }
  .trade-preview-row { grid-template-columns: 42px minmax(0, 1fr); }
  .trade-preview-row span:last-child { grid-column: 1 / -1; }
  .validation-result-layers > section { border-right: 0; }
  .validation-run-snapshot > header { display: block; }
  .validation-run-snapshot > header small { display: block; margin-top: 5px; max-width: none; text-align: left; }
  .validation-run-snapshot-grid { grid-template-columns: 1fr 1fr; }
  .validation-run-candidate { align-items: stretch; flex-direction: column; }
  .validation-run-candidate .command { width: 100%; }
  .candidate-feedback-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-feedback-event { grid-template-columns: 80px minmax(0, 1fr); }
  .candidate-feedback-event time { grid-column: 2; }
  .candidate-contact-preview { grid-template-columns: 18px minmax(0, 1fr); }
  .candidate-contact-preview .command { grid-column: 1 / -1; width: 100%; }
  .product-trial-actions { align-items: stretch; flex-direction: column; }
  .product-trial-actions .command { width: 100%; }
}

/* Reviewed outreach workspace: quiet, auditable, and deliberately single-send. */
.outreach-workspace-header h2,
.outreach-section-heading h3,
.outreach-message-detail-content > header h2 { color: var(--text); }
.outreach-workspace-header p,
.outreach-section-heading > span { color: var(--muted); }
.outreach-tabs {
  border-color: #294a62;
  background: #071524;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .28);
}
.outreach-tabs button { color: #8da4b7; }
.outreach-tabs button:hover { color: #fff; }
.outreach-tabs button.active {
  border-color: #285d80;
  background: #12304d;
  color: #73dfff;
  box-shadow: inset 0 0 0 1px rgba(115, 223, 255, .05);
}
.outreach-tabs button strong { border-color: #5b4d2d; background: #211b0d; color: #efc66b; }
.outreach-boundary {
  border-color: #285043;
  background: #0a211f;
}
.outreach-boundary strong { color: #dff8ee; }
.outreach-boundary span { color: #91b2a6; }
.outreach-channel-card {
  border-color: #1d405c;
  background: #071524;
  box-shadow: inset 0 1px 0 rgba(144, 206, 242, .025), 0 7px 18px rgba(0, 0, 0, .08);
}
.outreach-channel-card.active {
  border-color: #347aa2;
  background: #0a2034;
  box-shadow: inset 3px 0 0 var(--cyan), 0 7px 18px rgba(0, 0, 0, .1);
}
.outreach-channel-card > footer { border-top-color: #1d405c; }
.outreach-channel-icon { border-color: #286889; background: #09223a; color: var(--cyan); }
.outreach-channel-card small,
.outreach-channel-lock { color: #8098aa; }
.outreach-loading { border-color: #244b68; background: rgba(7, 21, 36, .72); color: #8299ab; }
.outreach-lead-panel,
.outreach-draft-panel,
.outreach-message-panel,
.outreach-message-detail { border-color: #1d405c; background: rgba(7, 21, 36, .97); }
.outreach-lead-tools,
.outreach-selection-bar,
.outreach-lead-row,
.outreach-message-tools,
.outreach-message-row,
.outreach-message-detail-content > header,
.outreach-original-message,
.outreach-subheading,
.outreach-reply-row,
.outreach-reply-form,
.outreach-ai-meta,
.outreach-draft-actions { border-color: #1d405c; }
.outreach-lead-row:hover,
.outreach-message-row:hover { background: #0a2034; }
.outreach-lead-row.active,
.outreach-message-row.active { background: #0c2943; box-shadow: inset 3px 0 0 var(--cyan); }
.outreach-lead-row.suppressed { background: #22151c; }
.outreach-lead-row.suppressed:hover { background: #2a1821; }
.outreach-lead-row > button strong,
.outreach-message-row strong,
.outreach-original-message > strong,
.outreach-reply-row p { color: #e5f0f7; }
.outreach-lead-row > button small,
.outreach-recipient-preview,
.outreach-message-row small,
.outreach-message-detail-content > header p,
.outreach-original-message > span,
.outreach-reply-row header span,
.outreach-reply-row > small,
.outreach-no-replies { color: #8098aa; }
.outreach-status,
.outreach-draft-state { border-color: #344a5b; background: #101d28; color: #8fa2b0; }
.outreach-status.pending_review,
.outreach-draft-state.pending_review { border-color: #6b572a; background: #261f0e; color: #efc66b; }
.outreach-status.approved,
.outreach-draft-state.approved { border-color: #286889; background: #09223a; color: #73dfff; }
.outreach-status.sent,
.outreach-status.manual_confirmed,
.outreach-status.replied,
.outreach-draft-state.sent { border-color: #22644f; background: #0a2924; color: #65dbaf; }
.outreach-status.sending { border-color: #365d99; background: #0b213c; color: #87b7ff; }
.outreach-status.failed,
.outreach-status.rejected,
.outreach-draft-state.failed,
.outreach-draft-state.rejected { border-color: #70404b; background: #2a1821; color: #f4a0ae; }
.outreach-evidence,
.outreach-dialog-note { border-left-color: var(--jade); background: #0a211f; }
.outreach-evidence strong { color: #dff8ee; }
.outreach-evidence span,
.outreach-dialog-note { color: #91b2a6; }
.outreach-evidence a { color: #71dcff; }
.outreach-ai-meta { background: #091525; color: #899fb1; }
.outreach-ai-meta svg { color: #b39cff; }
.outreach-original-message { background: #081725; }
.outreach-original-message pre { color: #d9e6ef; }
.outreach-reply-row header strong { color: #65dbaf; }
.outreach-reply-form { background: #071827; }
.outreach-result.success { color: var(--jade); }
.outreach-result.error { color: #f4a0ae; }
#outreach-channel-dialog,
#outreach-send-dialog { border-color: #28718e; background: #071524; box-shadow: 0 18px 58px rgba(0, 0, 0, .48), 0 0 22px rgba(50, 201, 244, .1); }
#outreach-channel-form .dialog-heading,
#outreach-send-form .dialog-heading { border-bottom-color: #1d405c; }
.outreach-send-summary { border-color: #29485f; background: #081725; }
.outreach-send-summary > div { border-color: #29485f; }
.outreach-send-summary span { color: #8098aa; }
.outreach-send-summary strong { color: #e5f0f7; }
.outreach-send-confirm { border-color: #6b572a; background: #211b0d; }
.outreach-send-confirm strong { color: #f1d18a; }
.outreach-send-confirm small { color: #baa976; }

@media (max-width: 600px) {
  .primary-nav .nav-item span { font-size: 8px; line-height: 1.18; }
  .outreach-tabs button { font-size: 10px; }
  .outreach-channel-card { box-shadow: none; }
}
