/* Authoritative design tokens and shared primitives live in design-system.css. */

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
}

/* CluenaIQ — dataset-scale prospect ranking and triage. */
body.cluenaiq-page-body .app-content {
  padding-inline: 0;
}

.cluenaiq-page {
  display: grid;
  gap: var(--page-stack-gap);
  padding-bottom: 0;
}

.cluenaiq-market-universe {
  color: var(--muted);
  font-weight: var(--weight-regular);
}

.cluenaiq-subject-number {
  color: var(--muted-strong);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

.cluenaiq-subject-skeleton {
  width: 72px;
  height: 13px;
  display: none;
  vertical-align: -1px;
  background: linear-gradient(90deg, var(--sunken), var(--subtle), var(--sunken));
  background-size: 220% 100%;
  border-radius: var(--radius-control-compact);
  animation: cluenaiq-loading 1.1s linear infinite;
}

.cluenaiq-market-universe.is-loading .cluenaiq-subject-number {
  display: none;
}

.cluenaiq-market-universe.is-loading .cluenaiq-subject-skeleton {
  display: inline-block;
}

.cluenaiq-find-focus {
  --surface-background: transparent;
  --surface-border: 0;
  --surface-shadow: none;
  padding: 0;
}

.cluenaiq-search-form {
  display: grid;
  gap: 0;
}

.cluenaiq-search-control {
  width: min(100%, 700px);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cluenaiq-search-input-wrap {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-control-standard);
  box-shadow: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.cluenaiq-search-input-wrap:focus-within {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .1);
}

.cluenaiq-search-input-wrap input {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height-large);
  padding: 10px 44px 10px 42px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: inherit;
  font: inherit;
  font-size: var(--type-body-strong);
}

.cluenaiq-search-input-wrap input:focus {
  box-shadow: none;
  outline: 0;
}

.cluenaiq-search-symbol {
  position: absolute;
  z-index: 1;
  left: 16px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--teal-dark);
  border-radius: 50%;
  pointer-events: none;
}

.cluenaiq-search-symbol::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  border-top: 2px solid var(--teal-dark);
  transform: rotate(45deg);
  transform-origin: left center;
}

.cluenaiq-search-clear {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}

.cluenaiq-search-clear:hover {
  color: var(--navy-deep);
  background: var(--sunken);
}

.cluenaiq-search-control .button {
  min-width: 96px;
  min-height: var(--control-height-large);
  padding-inline: var(--space-5);
  border-radius: var(--radius-control-standard);
  box-shadow: none;
}

.cluenaiq-smart-views {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--space-4);
  overflow: hidden;
  background: var(--paper);
  border: var(--border-default);
  border-radius: var(--radius-control-standard);
}

.cluenaiq-smart-view {
  min-width: 0;
  min-height: 72px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 14px var(--space-4) 12px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-left: var(--border-row-soft);
  border-radius: 0;
  text-decoration: none;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.cluenaiq-smart-view:first-child { border-left: 0; }

.cluenaiq-smart-view:hover {
  color: var(--ink);
  background: var(--subtle);
  box-shadow: inset 0 3px var(--line-strong);
}

.cluenaiq-smart-view.is-active {
  color: var(--navy-deep);
  background: var(--sunken);
  box-shadow: inset 0 3px var(--navy);
}

.cluenaiq-smart-view.is-active strong,
.cluenaiq-smart-view.is-active span {
  color: var(--navy-deep);
}

.cluenaiq-smart-view.is-active span {
  opacity: 1;
}

.cluenaiq-smart-view strong,
.cluenaiq-smart-view span {
  display: block;
}

.cluenaiq-smart-view strong {
  color: var(--navy-deep);
  font-size: var(--type-body);
  font-weight: var(--weight-bold);
  line-height: var(--leading-compact);
}

.cluenaiq-smart-view span {
  color: var(--muted);
  font-size: var(--type-label);
  line-height: var(--leading-label);
}

.cluenaiq-workspace {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.cluenaiq-refine {
  --surface-shadow: var(--shadow-card-subtle);
  position: sticky;
  top: calc(139px + var(--space-5));
  align-self: start;
  padding: 0;
}

.cluenaiq-refine details > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px var(--space-4);
  color: var(--navy-deep);
  border-bottom: var(--border-row-strong);
  font-size: var(--type-card-title);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  list-style: none;
}

.cluenaiq-refine details > summary::-webkit-details-marker {
  display: none;
}

.cluenaiq-refine-summary-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.cluenaiq-refine details > summary b {
  min-width: 22px;
  display: inline-grid;
  place-items: center;
  padding: 2px 6px;
  color: var(--navy-deep);
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--type-label);
  line-height: var(--leading-label);
}

.cluenaiq-refine-caret {
  flex: 0 0 auto;
  color: var(--muted-strong);
  transition: transform 140ms ease;
}

.cluenaiq-refine details[open] .cluenaiq-refine-caret {
  transform: rotate(180deg);
}

.cluenaiq-refine-reset {
  width: fit-content;
  display: block;
  margin: var(--space-3) var(--space-4) 0;
  color: var(--navy);
  font-size: var(--type-label);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.cluenaiq-refine-reset:hover {
  color: var(--navy-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cluenaiq-refine form {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
}

.cluenaiq-refine .form-field > span,
.cluenaiq-evidence-filter legend {
  color: var(--navy-deep);
  font-size: var(--type-label);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-label);
}

.cluenaiq-refine .form-field small {
  color: var(--muted);
  font-size: var(--type-label);
  line-height: var(--leading-label);
}

.cluenaiq-evidence-filter {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  border: 0;
}

.cluenaiq-evidence-filter legend {
  margin-bottom: var(--space-2);
  padding: 0;
}

.cluenaiq-evidence-filter label {
  min-height: 34px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--muted-strong);
  font-size: var(--type-label);
  line-height: var(--leading-label);
  cursor: pointer;
}

.cluenaiq-evidence-filter input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--navy);
}

.cluenaiq-results {
  min-width: 0;
  display: grid;
  gap: var(--space-3);
}

.cluenaiq-results-context {
  min-height: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.cluenaiq-results-context > div {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
}

.cluenaiq-results-context h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: var(--type-section-title-compact);
  font-weight: var(--weight-semibold);
}

.cluenaiq-active-refinements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cluenaiq-active-refinements a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 4px 8px;
  color: var(--navy-deep);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--type-label);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.cluenaiq-active-refinements a:hover {
  border-color: var(--line-strong);
  background: var(--sunken);
}

.cluenaiq-active-refinements a.cluenaiq-clear-all {
  color: var(--navy);
  background: transparent;
  border-color: transparent;
}

.cluenaiq-sort {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cluenaiq-sort label {
  color: var(--muted-strong);
  font-size: var(--type-label);
  font-weight: var(--weight-semibold);
}

.cluenaiq-sort select {
  min-height: 42px;
  padding: 9px 34px 9px 11px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-control-standard);
  font: inherit;
  font-size: var(--type-control);
}

.cluenaiq-table-surface {
  --surface-shadow: var(--shadow-card-subtle);
  position: relative;
  min-height: 290px;
  overflow: hidden;
}

.cluenaiq-table-scroll {
  overflow-x: auto;
}

.cluenaiq-table {
  min-width: 880px;
  table-layout: fixed;
}

.cluenaiq-table th:nth-child(1) { width: 38%; }
.cluenaiq-table th:nth-child(2) { width: 12%; }
.cluenaiq-table th:nth-child(3) { width: 10%; }
.cluenaiq-table th:nth-child(4) { width: 25%; }
.cluenaiq-table th:nth-child(5) { width: 15%; }

.cluenaiq-table thead {
  background: var(--sunken);
}

.cluenaiq-table th {
  height: 44px;
  padding: 10px 16px;
  color: var(--muted-strong);
  border-bottom: 1px solid var(--line-strong);
  font-size: var(--type-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-card);
  text-align: left;
  text-transform: none;
}

.cluenaiq-table td {
  height: 48px;
  padding: 8px 16px;
  color: var(--ink);
  border-bottom: var(--border-row-soft);
  font-size: var(--type-body);
  vertical-align: middle;
}

.cluenaiq-table tbody tr {
  cursor: pointer;
  transition: background 100ms ease, box-shadow 100ms ease;
}

.cluenaiq-table tbody tr:last-child td {
  border-bottom: 0;
}

.cluenaiq-table tbody tr:hover,
.cluenaiq-table tbody tr:focus {
  background: var(--subtle);
  box-shadow: inset 3px 0 var(--navy);
  outline: 0;
}

.cluenaiq-table td:first-child a {
  color: var(--navy-deep);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.cluenaiq-table td:first-child a:hover {
  color: var(--navy-deep);
  text-decoration: none;
}

.cluenaiq-table .cluenaiq-numeric-column,
.cluenaiq-table th:nth-child(2),
.cluenaiq-table th:nth-child(3),
.cluenaiq-table td:nth-child(2),
.cluenaiq-table td:nth-child(3) {
  text-align: center;
}

.cluenaiq-score {
  color: var(--navy-deep);
  font-size: var(--type-card-title);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.cluenaiq-signal-count {
  color: var(--muted-strong);
  font-size: var(--type-body);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

.cluenaiq-coverage-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cluenaiq-coverage-help {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  color: var(--muted-strong);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 10px;
  font-weight: var(--weight-bold);
  line-height: 1;
  cursor: help;
}

.cluenaiq-evidence-coverage {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cluenaiq-evidence-count {
  min-width: 38px;
  color: var(--muted-strong);
  font-size: var(--type-label);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cluenaiq-evidence-indicators {
  display: grid;
  grid-template-columns: repeat(4, 28px);
  align-items: center;
  gap: 5px;
}

.cluenaiq-row-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.cluenaiq-save-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  color: var(--muted-strong);
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
}

.cluenaiq-save-status.is-saved {
  color: var(--navy);
  font-weight: var(--weight-semibold);
}

.cluenaiq-row-chevron {
  flex: 0 0 auto;
  color: var(--muted-strong);
  opacity: .45;
  transition: opacity 100ms ease, transform 100ms ease;
}

.cluenaiq-table tbody tr:hover .cluenaiq-row-chevron,
.cluenaiq-table tbody tr:focus .cluenaiq-row-chevron {
  opacity: 1;
  transform: translateX(2px);
}

.cluenaiq-loading {
  position: absolute;
  z-index: 5;
  inset: 44px 0 0;
  display: none;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-5);
  background: rgba(255, 255, 255, .92);
}

.cluenaiq-loading span {
  height: 42px;
  background: linear-gradient(90deg, var(--sunken), var(--subtle), var(--sunken));
  background-size: 220% 100%;
  border-radius: var(--radius-control-standard);
  animation: cluenaiq-loading 1.1s linear infinite;
}

.cluenaiq-table-surface.is-querying .cluenaiq-loading {
  display: grid;
}

@keyframes cluenaiq-loading {
  to { background-position: -220% 0; }
}

.cluenaiq-empty-state {
  min-height: 290px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-8);
  text-align: center;
}

.cluenaiq-empty-state h3,
.cluenaiq-empty-state p {
  margin: 0;
}

.cluenaiq-empty-state h3 {
  color: var(--navy-deep);
  font-size: var(--type-section-title-compact);
}

.cluenaiq-empty-state p {
  max-width: 520px;
  color: var(--muted);
  font-size: var(--type-body);
}

.cluenaiq-pagination {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--muted);
  font-size: var(--type-label);
}

.cluenaiq-pagination > div {
  display: flex;
  gap: var(--space-2);
}

.cluenaiq-pagination a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--navy-deep);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-control-standard);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.cluenaiq-pagination a:hover {
  color: var(--teal-dark);
  border-color: var(--teal-line);
}

@media (max-width: 1040px) {
  .cluenaiq-smart-views {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cluenaiq-smart-view:nth-child(3) {
    border-left: 0;
  }

  .cluenaiq-smart-view:nth-child(n + 3) {
    border-top: var(--border-row-soft);
  }

  .cluenaiq-workspace {
    grid-template-columns: 232px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .cluenaiq-workspace {
    grid-template-columns: 1fr;
  }

  .cluenaiq-refine form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cluenaiq-evidence-filter {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cluenaiq-evidence-filter legend {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .cluenaiq-search-control {
    flex-wrap: wrap;
    max-width: none;
  }

  .cluenaiq-search-control .button {
    width: 100%;
  }

  .cluenaiq-search-clear {
    right: 10px;
  }

  .cluenaiq-smart-views {
    grid-template-columns: 1fr;
  }

  .cluenaiq-smart-view {
    min-height: 66px;
    border-left: 0;
    border-top: var(--border-row-soft);
  }

  .cluenaiq-smart-view:first-child { border-top: 0; }

  .cluenaiq-results-context {
    align-items: stretch;
    flex-direction: column;
  }

  .cluenaiq-sort {
    justify-content: space-between;
  }

  .cluenaiq-sort select {
    min-width: 0;
    flex: 1;
  }

  .cluenaiq-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .cluenaiq-refine form,
  .cluenaiq-evidence-filter {
    grid-template-columns: 1fr;
  }

  .cluenaiq-evidence-filter legend {
    grid-column: auto;
  }
}

a { color: var(--navy); }
a:hover { color: var(--navy-deep); }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.main-content { padding-block: 42px 72px; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: 500; letter-spacing: -0.025em; }
h2 { margin-bottom: 18px; font-size: 19px; line-height: 1.25; }
h3 { margin-bottom: 6px; font-size: 16px; }
.muted, .secondary { color: var(--muted); }
.eyebrow { margin-bottom: 7px; color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; white-space: nowrap; border: 0; clip: rect(0, 0, 0, 0); clip-path: inset(50%); }

.page-heading, .brief-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.page-heading p:last-child { margin-bottom: 0; }
.count-card { min-width: 112px; padding: 15px 20px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); text-align: center; }
.count-card strong { display: block; font-size: 23px; }
.count-card span { color: var(--muted); font-size: 13px; }

.table-card, .panel { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); overflow: hidden; }
.table-card { overflow-x: auto; }
table { width: 100%; min-width: 1080px; border-collapse: collapse; }
th { padding: 15px 18px; color: var(--muted); background: var(--sunken); font-size: 11px; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; }
td { padding: 19px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background 120ms ease; }
tbody tr:hover { background: var(--hover-wash); }
.person-name { display: block; color: var(--ink); font-size: 16px; font-weight: 750; text-decoration: none; }
.secondary { display: block; margin-top: 2px; font-size: 13px; }

/* Status system.
   Every state carries its own hue AND its own border, so the four review
   states stay separable at 10px, in greyscale, and for colour-blind readers. */
.badge, .status { display: inline-flex; border: 1px solid transparent; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.priority-3 { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }
.priority-2 { color: var(--attention); border-color: var(--attention-line); background: var(--attention-soft); }
.priority-1 { color: var(--info); border-color: var(--info-line); background: var(--info-soft); }
.status { color: var(--muted-strong); border-color: var(--line); background: var(--neutral-soft); }
.status-approved { color: var(--verified); border-color: var(--verified-line); background: var(--verified-soft); }
.status-rejected, .status-suppressed { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }
.status-research_needed { color: var(--attention); border-color: var(--attention-line); background: var(--attention-soft); }
.status-pending { color: var(--info); border-color: var(--info-line); background: var(--info-soft); }
.confidence { min-width: 125px; }
.confidence > span:first-child { display: block; margin-bottom: 5px; font-weight: 750; }
.confidence-track { display: block; width: 100%; height: 5px; border-radius: var(--radius-status); background: var(--line-soft); overflow: hidden; }
.confidence-track span { display: block; height: 100%; border-radius: inherit; background: var(--teal-dark); }
.signal-primary { display: block; font-size: 13px; font-weight: 750; white-space: nowrap; }
.capacity-score { display: inline-flex; min-width: 62px; justify-content: center; padding: 5px 8px; border-radius: 8px; color: var(--navy); background: var(--verified-soft); font-size: 13px; font-weight: 800; white-space: nowrap; }
.row-arrow { text-align: right; }
.row-arrow a { font-size: 22px; text-decoration: none; }
.empty-state { padding: 60px 24px; border: 1px dashed var(--field-line); border-radius: var(--radius-panel); text-align: center; }

.map-heading { align-items: center; }
.map-summary { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); overflow: hidden; }
.map-summary div { padding: 13px 16px; text-align: center; }
.map-summary div + div { border-left: 1px solid var(--line); }
.map-summary strong, .map-summary span { display: block; }
.map-summary strong { font-size: 20px; }
.map-summary span { color: var(--muted); font-size: 10px; white-space: normal; }
/* Filter bar wraps rather than overflowing between 620–850px. */
.map-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 14px; margin-bottom: 22px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); }
.map-filters label { flex: 1 1 180px; min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.map-filters select, .map-filters input { width: 100%; min-width: 0; height: 42px; padding: 0 34px 0 11px; border: 1px solid var(--field-line); border-radius: var(--radius-control); background: var(--paper); color: var(--ink); font: inherit; }
.map-filters .map-subject-search { flex-basis: 320px; }
.map-filters .button { flex: 0 0 auto; height: 42px; min-height: 42px; }
.filter-reset { align-self: center; margin-left: auto; color: var(--muted); font-weight: 650; text-decoration: none; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.county-map-card, .map-results { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); overflow: hidden; }
.map-card-heading, .map-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.map-card-heading h2, .map-card-heading p, .map-results-heading h2 { margin-bottom: 0; }
.map-card-heading p { color: var(--muted); font-size: 12px; }
.map-legend { display: flex; gap: 12px; color: var(--muted); font-size: 11px; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-key { width: 9px; height: 9px; border-radius: 50%; }
.map-key-high, .map-result-marker-3 { background: var(--danger); }
.map-key-medium, .map-result-marker-2 { background: var(--attention); }
.map-key-low, .map-result-marker-1 { background: var(--muted-strong); }
.candidate-map { display: block; width: 100%; min-height: 460px; background: var(--subtle); }
.map-background { fill: var(--subtle); stroke: var(--line); }
.map-grid { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 6; }
.map-point { stroke: white; stroke-width: 3; opacity: .9; transition: r 120ms ease, opacity 120ms ease; }
.map-point:hover { r: 14; opacity: 1; }
.map-point-3 { fill: var(--danger); }
.map-point-2 { fill: var(--attention); }
.map-point-1 { fill: var(--muted-strong); }
.map-bounds { display: flex; justify-content: space-between; gap: 20px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.map-results-heading span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--navy); background: var(--verified-soft); font-weight: 800; }
.map-result-list { max-height: 592px; overflow: auto; }
.map-result { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.map-result + .map-result { border-top: 1px solid var(--line); }
.map-result:hover { background: var(--subtle); }
.map-result-marker { width: 9px; height: 9px; border-radius: 50%; }
.map-result strong, .map-result small { display: block; }
.map-result strong { font-size: 13px; }
.map-result small { color: var(--muted); font-size: 11px; }
.map-result .map-research-flag { color: var(--attention); font-weight: 750; }
.map-result-score { color: var(--muted); font-size: 12px; font-weight: 750; text-align: right; }
.map-result-score strong, .map-result-score small { white-space: nowrap; }
.map-disclosure { margin: 18px 3px 0; color: var(--muted); font-size: 12px; }

.back-link { display: inline-block; margin-bottom: 26px; color: var(--muted); font-weight: 650; text-decoration: none; }
.brief-heading { align-items: center; }
.heading-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.identity-lead { margin-bottom: 0; color: var(--muted); font-size: 18px; }
.identity-location { display: inline-flex; align-items: center; margin-left: 10px; font-size: 13px; }
.identity-location::before { content: ""; width: 3px; height: 3px; margin-right: 10px; border-radius: 50%; background: var(--muted); }
.score-card-group { display: grid; grid-template-columns: repeat(2, 180px); gap: 12px; }
.confidence-card { width: 180px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); }
.confidence-card > span { display: block; color: var(--muted); font-size: 12px; }
.confidence-card strong { display: block; margin: 2px 0 10px; font-size: 28px; }
.confidence-card small { display: block; color: var(--muted); font-size: 11px; }
.capacity-card strong { color: var(--navy); }
.veto-banner, .warning-banner { display: flex; gap: 10px; margin: -6px 0 28px; padding: 14px 18px; border-radius: var(--radius-panel); }
.veto-banner { color: var(--danger); border: 1px solid var(--danger-line); background: var(--danger-soft); }
.warning-banner { color: var(--attention); border: 1px solid var(--attention-line); background: var(--attention-soft); }
.subject-research-nav { display: flex; align-items: center; gap: 4px; margin: 0 0 14px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.subject-research-nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; color: var(--muted-strong); border-bottom: 2px solid transparent; font-size: 12px; font-weight: 750; text-decoration: none; }
.subject-research-nav a:hover { color: var(--navy); background: var(--hover-wash); }
.subject-research-nav a.active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.subject-research-nav a span { min-width: 20px; padding: 2px 6px; color: var(--navy); background: var(--verified-soft); border-radius: 999px; font-size: 10px; text-align: center; }
.subject-research-nav .subject-map-link { margin-left: auto; }

.brief-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 24px; }
.brief-main, .brief-sidebar { display: grid; gap: 24px; }
.research-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
.research-summary-grid div { min-width: 0; padding: 16px; background: var(--subtle); }
.research-summary-grid div + div { border-left: 1px solid var(--line); }
.research-summary-grid span, .research-summary-grid strong { display: block; }
.research-summary-grid span { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.research-summary-grid strong { color: var(--navy); font-size: 16px; overflow-wrap: anywhere; }
.research-interpretation { margin-top: 16px; padding: 16px 18px; border-left: 3px solid var(--teal); background: var(--teal-tint); }
.research-interpretation p:last-of-type, .evidence-introduction p, .overview-limitations-panel p { margin-bottom: 10px; }
.research-interpretation a, .overview-limitations-panel a { color: var(--teal-dark); font-size: 12px; font-weight: 750; text-underline-offset: 3px; }
.panel { padding: 20px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-heading h2, .panel-heading p { margin-bottom: 0; }
.panel-count { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--navy); background: var(--verified-soft); font-weight: 800; }
.property-signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
.property-signal { min-width: 0; padding: 17px; background: var(--subtle); }
.property-signal + .property-signal { border-left: 1px solid var(--line); }
.property-signal span, .property-signal strong { display: block; }
.property-signal span { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.property-signal strong { font-size: 17px; overflow-wrap: anywhere; }
.property-disclosure { margin: 14px 2px 0; color: var(--muted); font-size: 12px; }
.claim-list, .source-list, .timeline { display: grid; gap: 14px; }
.claim { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--subtle); }
.claim-topline { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.claim-kind { color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.claim-confidence { color: var(--muted); font-size: 12px; }
.claim-statement { margin-bottom: 11px; font-size: 16px; font-weight: 650; }
.source-line, .limitation { margin-bottom: 0; font-size: 13px; }
.source-line a { color: var(--navy); text-underline-offset: 3px; }
.limitation { margin-top: 7px; color: var(--muted); }
.source-item + .source-item { padding-top: 15px; border-top: 1px solid var(--line); }
.source-item p { margin-bottom: 4px; }
.source-item a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 12px; }
.timeline-dot { width: 10px; height: 10px; margin-top: 6px; border: 2px solid var(--paper); border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 2px var(--verified-line); }
.timeline-item p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.timeline-item .rationale { margin-top: 5px; color: var(--ink); }
.compact-panel h2 { margin-bottom: 18px; }
.detail-list { margin: 0; }
.detail-list div { display: grid; grid-template-columns: 105px 1fr; gap: 10px; padding-block: 9px; border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.flag-list { margin: 0; }
.flag-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 9px; border-top: 1px solid var(--line); }
.flag-list dt { color: var(--muted); font-size: 12px; }
.flag-list dd { margin: 0; }
.flag { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.flag-required { color: var(--attention); background: var(--attention-soft); }
.flag-clear { color: var(--navy); background: var(--verified-soft); }
.decision-panel form { display: grid; gap: 8px; margin-top: 14px; }
.decision-panel input, .access-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.decision-panel input:focus, .access-form input:focus { outline: 3px solid rgba(20,184,166,.17); border-color: var(--teal-dark); }
.research-completion-form { display: grid; gap: 11px; margin-top: 18px; }
.research-completion-form p { margin: 0; }
.research-completion-form label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 750; }
.research-completion-form input[type="text"], .research-completion-form textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.research-completion-form textarea { resize: vertical; }
.research-completion-form input:focus, .research-completion-form textarea:focus { outline: 3px solid rgba(31, 107, 79, 0.14); border-color: var(--navy); }
.research-completion-form .checkbox-field label { display: flex; align-items: flex-start; gap: 8px; font-weight: 650; line-height: 1.4; }
.research-completion-form .checkbox-field input { flex: 0 0 auto; margin-top: 3px; }
.errorlist { margin: 5px 0 0; padding-left: 18px; color: var(--danger); font-size: 12px; }
.action-note { padding: 10px 12px; border-radius: 8px; color: var(--muted); background: var(--subtle); font-size: 13px; }
/* Buttons — one definition. Teal is the public marketing action, navy the
   in-product action, so the authenticated shell overrides the primary fill. */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 9px 16px; border: 1px solid transparent; border-radius: var(--radius-control); font: inherit; font-size: 13px; font-weight: 750; text-decoration: none; cursor: pointer; }
.button-wide { width: 100%; }
.button-primary, .button-approve { color: var(--paper); background: var(--teal-dark); box-shadow: 0 4px 13px rgba(15, 118, 110, .15); }
.button-primary:hover, .button-approve:hover { color: var(--paper); background: var(--verified-hover); }
.app-body .button-primary, .app-body .button-approve { background: var(--navy); box-shadow: none; }
.app-body .button-primary:hover, .app-body .button-approve:hover { background: var(--navy-deep); }
.button-secondary { color: var(--attention); border-color: var(--attention-line); background: var(--attention-soft); }
.button-secondary:hover { border-color: var(--attention); }
.button-danger { color: var(--danger); border-color: var(--danger-line); background: var(--paper); }
.button-danger:hover { background: var(--danger-soft); }

.privacy-request-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.privacy-request-form > label input, .privacy-request-form > label select, .correction-field > input { width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.privacy-request-form .correction-fields { grid-column: 1 / -1; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--subtle); }
.correction-fields summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 750; }
.correction-fields > .secondary { margin: 8px 0 14px; }
.correction-field { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 10px; }
.privacy-request-form .checkbox-label { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.checkbox-label input { width: auto; min-height: 0; margin: 0; padding: 0; }
.privacy-request-form > .button { justify-self: start; }
.signal-grid-map { display: block; width: 100%; height: min(52vw, 440px); min-height: 300px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--subtle); }
.signal-coverage-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.table-wrap { width: 100%; overflow-x: auto; }
.table-wrap table { min-width: 720px; }

.messages { display: grid; gap: 8px; margin-bottom: 22px; }
.message { padding: 12px 15px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); }
.message-success { color: var(--navy); border-color: var(--verified-line); background: var(--verified-soft); }
.message-error { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }
.message-warning { color: var(--attention); border-color: var(--attention-line); background: var(--attention-soft); }
.access-shell { min-height: calc(100vh - 136px); display: grid; grid-template-columns: minmax(0,1.08fr) minmax(420px,.92fr); margin: 8px 0 40px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 20px 54px rgba(7,22,56,.1); }
.access-context { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(42px,5vw,72px); color: var(--on-navy); background: linear-gradient(145deg,var(--navy-deep),var(--navy)); overflow: hidden; }
.access-context::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--teal); }
.access-context h1 { position: relative; z-index: 1; max-width: 600px; margin: 0; color: var(--on-navy); font-size: clamp(38px,4vw,56px); font-weight: var(--weight-title); line-height: 1.03; letter-spacing: -.04em; }
.access-context h1 span { display: block; }
.access-context-copy { position: relative; z-index: 1; max-width: 570px; margin: 20px 0 0; color: var(--on-navy-muted); font-size: 15px; line-height: 1.65; }
.access-stage { display: grid; place-items: center; min-width: 0; padding: clamp(32px,4vw,58px); background: var(--paper); }
.access-panel { width: min(100%,440px); }
.access-panel h2 { margin: 5px 0 9px; color: var(--navy); font-size: 32px; font-weight: var(--weight-title); line-height: 1.12; }
.access-panel-copy { max-width: 44ch; margin: 0; color: var(--muted); font-size: var(--type-body); line-height: 1.58; }
.access-form { display: grid; gap: 16px; margin-top: 26px; }
.access-form label { margin: 0; font-size: var(--type-label); font-weight: var(--weight-bold); }
.access-form .button { min-height: 46px; margin-top: 2px; }
.access-panel > .button { min-height: 46px; margin-top: 26px; }
.access-registration-panel { width: min(100%,520px); }
.access-shell.is-login .access-panel h2 { margin: 0 0 22px; }

@media (max-width: 850px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-result-list { max-height: 360px; }
  .brief-grid { grid-template-columns: 1fr; }
  .research-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-summary-grid div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .research-summary-grid div:nth-child(4) { border-top: 1px solid var(--line); }
  .property-signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-coverage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .property-signal:nth-child(3) { border-left: 0; }
  .property-signal:nth-child(n+3) { border-top: 1px solid var(--line); }
  .signal-coverage-grid .property-signal:nth-child(3) { border-left: 1px solid var(--line); }
  .signal-coverage-grid .property-signal:nth-child(4) { border-left: 0; }
  .brief-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision-panel { grid-column: 1 / -1; }
  .privacy-request-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-card { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  thead { display: none; }
  table { min-width: 0; }
  tbody { display: grid; gap: 14px; }
  tbody tr { display: grid; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow); }
  td { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0; border: 0; }
  td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
  td:first-child { display: block; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
  td:first-child::before, .row-arrow { display: none; }
  .confidence { width: 150px; text-align: right; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1180px); }
  .main-content { padding-top: 28px; }
  .page-heading, .brief-heading { align-items: flex-start; flex-direction: column; }
  .map-summary { width: 100%; }
  .privacy-request-form { display: grid; grid-template-columns: 1fr; }
  .correction-field { grid-template-columns: 1fr; gap: 5px; }
  .signal-grid-map { min-height: 240px; height: 78vw; }
  .filter-reset { align-self: flex-start; margin-left: 0; }
  .map-card-heading { align-items: flex-start; flex-direction: column; }
  .map-legend { flex-wrap: wrap; }
  .candidate-map { min-height: 330px; }
  .map-bounds { flex-direction: column; gap: 2px; }
  .count-card { width: 100%; }
  .score-card-group { width: 100%; grid-template-columns: 1fr; }
  .subject-research-nav { overflow-x: auto; }
  .subject-research-nav a { white-space: nowrap; }
  .subject-research-nav .subject-map-link { margin-left: 0; }
  .research-summary-grid { grid-template-columns: 1fr; }
  .research-summary-grid div + div, .research-summary-grid div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .confidence-card { width: 100%; }
  .property-signal-grid { grid-template-columns: 1fr; }
  .signal-coverage-grid { grid-template-columns: 1fr; }
  .property-signal + .property-signal { border-top: 1px solid var(--line); border-left: 0; }
  .brief-sidebar { grid-template-columns: 1fr; }
  .decision-panel { grid-column: auto; }
  .panel { padding: 20px; }
  .veto-banner, .warning-banner { flex-direction: column; gap: 2px; }
  .access-shell { grid-template-columns: 1fr; }
  .access-context { min-height: auto; padding: 40px; }
  .access-context h1 { max-width: 680px; font-size: 38px; }
  .access-stage { padding: 38px; }
}

/* County intelligence dashboard */
.workspace-switcher { display: flex; gap: 8px; margin: 12px 0 0; padding-bottom: 4px; overflow-x: auto; }
.workspace-switcher a { flex: 0 0 auto; padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; text-decoration: none; }
.workspace-switcher a:hover { color: var(--ink); border-color: var(--line-strong); }
.workspace-switcher a.active { color: var(--teal-dark); border-color: var(--verified-line); background: var(--teal-tint); }
.dashboard-empty-inline { min-height: 210px; display: grid; place-content: center; padding: 28px; color: var(--muted); text-align: center; }
.dashboard-empty-inline h3 { margin-bottom: 5px; color: var(--ink); }
.dashboard-empty-inline p { margin: 0; color: var(--muted); font-size: 12px; }
.dashboard-run-alert { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--attention-line); border-radius: var(--radius-panel); color: var(--attention); background: var(--attention-soft); overflow-wrap: anywhere; }
.dashboard-run-alert-failed { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }
.dashboard-run-alert > strong { display: block; margin-bottom: 4px; }
.dashboard-run-alert p { margin: 3px 0 0; font-size: 12px; }
.dashboard-run-alert a { font-weight: 750; }
.status-mapping_required { color: var(--attention); background: var(--attention-soft); }
.status-failed { color: var(--danger); background: var(--danger-soft); }
.status-succeeded { color: var(--navy); background: var(--verified-soft); }

.queue-view-switcher { display: flex; gap: 8px; margin: -5px 0 14px; }
.queue-view-switcher a { padding: 8px 11px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-control); font-size: 11px; font-weight: 750; text-decoration: none; }
.queue-view-switcher a.active { color: var(--teal-dark); border-color: var(--verified-line); background: var(--teal-tint); }
.coverage-receipt-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: 10px 14px; margin: 0; padding: 14px 16px; border: 0; }
.coverage-receipt-row > a { grid-column: 1 / -1; }
.coverage-receipt-row span small, .coverage-receipt-row span strong { display: block; }
.coverage-receipt-row small { color: var(--muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.coverage-receipt-row strong { margin-top: 3px; font-size: 13px; }
.coverage-receipt-row > a { font-size: 11px; font-weight: 750; text-decoration: none; }
.coverage-run-detail { margin-top: 10px; color: var(--muted); font-size: 11px; }

.public-nav { display: flex; align-items: center; gap: 18px; }
.public-nav > a:not(.button) { color: var(--on-navy-muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.account-switch { margin: 22px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.registration-form { display: grid; gap: 18px; margin-top: 24px; }
.registration-social-form { margin-top: 20px; }
.google-auth-form { gap: 0; }
.google-auth-button { gap: 11px; min-height: 46px; color: var(--ink); background: var(--paper); border-color: var(--field-line); box-shadow: 0 1px 2px rgba(10,29,77,.05); }
.google-auth-button:hover { color: var(--navy); background: var(--subtle); border-color: var(--line-strong); }
.google-auth-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.registration-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.registration-divider::before, .registration-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.registration-field { display: grid; gap: 7px; min-width: 0; }
.registration-field > label { color: var(--ink); font-size: 13px; font-weight: 700; }
.registration-field input, .registration-field select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: var(--radius-control); color: var(--ink); background: var(--paper); font: inherit; font-size: 14px; }
.registration-field select { padding-right: 34px; }
.registration-field input:focus, .registration-field select:focus { outline: 3px solid rgba(20,184,166,.17); border-color: var(--teal-dark); }
.registration-field.has-error input, .registration-field.has-error select, .policy-field.has-error { border-color: var(--danger-line); }
.field-help, .field-error { margin: 0; font-size: 12px; font-weight: 500; line-height: 1.45; }
.field-help { color: var(--muted); }
.field-error { color: var(--danger); }
.form-alert { padding: 12px 14px; border: 1px solid var(--danger-line); border-radius: var(--radius-control); color: var(--danger); background: var(--danger-soft); font-size: 13px; line-height: 1.45; }
.form-alert p { margin: 0; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.policy-field { padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--subtle); }
.policy-check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.policy-check input { flex: 0 0 auto; margin: 2px 0 0; }
.policy-field .field-error { margin: 6px 0 0 23px; }
.password-control { position: relative; }
.password-control input { padding-right: 64px; }
.password-toggle { position: absolute; top: 50%; right: 7px; min-width: 48px; min-height: 32px; padding: 4px 8px; border: 0; border-radius: 6px; color: var(--teal-dark); background: transparent; font: inherit; font-size: 12px; font-weight: 700; transform: translateY(-50%); cursor: pointer; }
.password-toggle:hover { background: var(--teal-tint); }
.password-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.access-request-button { display: flex; margin-top: 12px; text-decoration: none; }
.access-request-contact { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.legal-notice { max-width: 760px; margin: 80px auto; padding: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }

@media (max-width: 620px) {
  .coverage-receipt-row { grid-template-columns: repeat(2,1fr); }
  .coverage-receipt-row > a { grid-column: 1/-1; }
  .coverage-empty { flex-direction: column; }
  .form-pair { grid-template-columns: 1fr; gap: 4px; }
  .public-header { width: min(100% - 24px,1180px); }
  .public-content { width: min(100% - 24px,1180px); }
}

/* -------------------------------------------------------------------------
   Canonical Cluena application presentation
   Native implementation of the founder-approved navy/teal product interface.
   ------------------------------------------------------------------------- */

html { background: var(--canvas); }
body { color: var(--ink); background: var(--canvas); font-family: var(--font-sans); font-size: var(--type-body); }
h1, h2, h3 { color: var(--navy); font-family: var(--font-sans); letter-spacing: -.02em; }
h1 { font-size: var(--type-page-title); font-weight: var(--weight-title); }
h2 { font-size: var(--type-section-title); font-weight: var(--weight-title); }
h3 { font-weight: 650; }
a { color: var(--teal-dark); }
.eyebrow { color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.button { min-height: 38px; border-radius: var(--radius-control); font-size: 13px; }
.button-primary, .button-approve { color: var(--paper); background: var(--teal-dark); box-shadow: 0 4px 13px rgba(15, 118, 110, .15); }
.button-primary:hover, .button-approve:hover { color: var(--paper); background: var(--verified-hover); }
.app-body .button-primary, .app-body .button-approve { background: var(--navy); box-shadow: none; }
.app-body .button-primary:hover, .app-body .button-approve:hover { background: var(--navy-deep); }

.app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 56px;
  padding-inline: var(--layout-inline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  color: var(--on-navy);
  background: var(--navy-deep);
  border-bottom: 3px solid var(--teal);
}
.app-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--on-navy); text-decoration: none; }
.app-brand:hover { color: var(--on-navy); }
.cluena-logo-mark { display: block; width: 32px; height: 32px; }
.brand-wordmark { color: var(--on-navy); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions form { margin: 0; }
.header-action { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 4px; color: var(--on-navy-muted); background: transparent; border: 0; border-radius: 0; font: inherit; font-size: 12px; font-weight: 500; text-decoration: none; cursor: pointer; }
.header-action:hover { color: var(--on-navy); background: rgba(255,255,255,.1); }
.header-actions form .header-action { opacity: .72; }

.app-main { margin-block: 0; }
.research-commandbar { min-height: 48px; padding: 0; display: flex; align-items: stretch; justify-content: space-between; gap: 24px; background: var(--canvas); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.workspace-readout { position: relative; display: flex; align-items: center; gap: 9px; }
.market-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.market-switcher { position: relative; }
.market-switcher summary { min-height: 32px; padding: 7px 9px; display: flex; align-items: center; gap: 7px; color: var(--navy); border: 1px solid transparent; border-radius: var(--radius-control); font-size: 12px; font-weight: 650; cursor: pointer; list-style: none; }
.market-switcher summary::-webkit-details-marker { display: none; }
.market-switcher summary:hover, .market-switcher[open] summary { background: var(--paper); border-color: var(--line); }
.market-switcher summary span { color: var(--teal-dark); font-size: 14px; line-height: 1; }
.market-switcher nav { position: absolute; z-index: 1000; top: calc(100% + 5px); right: 0; min-width: 210px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: 0 12px 30px rgba(7,22,56,.14); }
.market-switcher nav a { display: block; padding: 8px 10px; overflow: hidden; color: var(--ink); border-radius: var(--radius-inner); font-size: 12px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.market-switcher nav a:hover { background: var(--subtle); }
.market-switcher nav a.active { color: var(--teal-dark); background: var(--teal-tint); font-weight: 750; }

.research-shell { margin: 0; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.research-tabs { min-height: 48px; padding: 0; display: flex; align-items: stretch; gap: 24px; background: transparent; border: 0; }
.research-tabs a { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 2px 0 0; color: var(--muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 12px; font-weight: 500; text-decoration: none; }
.research-tabs a:hover { color: var(--navy); background: transparent; border-bottom-color: var(--line-strong); }
.research-tabs a.active { color: var(--navy-deep); background: transparent; border-bottom-color: var(--teal); box-shadow: none; }
.research-tabs a.active::after { content: none; }
.research-tabs > span { display: inline-flex; align-items: center; min-height: 48px; padding-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; opacity: .55; cursor: default; }
.header-action.stage-gated { opacity: .55; cursor: default; }
.header-avatar { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; color: var(--on-navy); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font: inherit; font-size: 11px; font-weight: 800; opacity: 1; cursor: default; }
.app-content { min-height: 430px; padding: var(--page-content-padding-start) 0 var(--page-content-padding-end); background: var(--canvas); }
.messages { padding-top: 16px; }
.app-footer { min-height: 44px; margin-block: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); color: var(--muted); font-size: var(--type-metadata); }
.app-footer span:last-child { display: flex; gap: 15px; }
.app-footer a { color: var(--muted); text-decoration: none; }
.app-footer-dataset { flex: 1; text-align: center; font-variant-numeric: tabular-nums; }

.dashboard-heading { margin-bottom: 24px; }
.dashboard-heading h1 { margin: 0; color: var(--navy); font-size: 20px; font-weight: 600; line-height: 1.2; }
.dashboard-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.dashboard-kpi-disclosure { margin: 0 2px 20px; color: var(--muted); font-size: 10px; text-align: right; }
.dashboard-kpi-disclosure strong { color: var(--danger); }

/* Map preview — the same projected parcel coordinates as the Research Center,
   drawn small. It is a real plot, never decorative filler. */
.map-preview-legend { flex: 0 0 auto; display: flex; gap: 12px; color: var(--muted); font-size: 10px; }
.map-preview-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-preview-key { width: 8px; height: 8px; border-radius: 50%; }
.map-preview-key-ready { background: var(--teal-dark); }
.map-preview-key-research { background: var(--attention); }
.dashboard-map-preview { position: relative; flex: 1; min-height: 480px; display: block; overflow: hidden; color: var(--navy); background: var(--sunken); text-decoration: none; }
.dashboard-map-live, .dashboard-map-fallback { position: absolute; inset: 0; transition: opacity 160ms ease; }
.dashboard-map-live { z-index: 1; opacity: 0; }
.dashboard-map-fallback { z-index: 2; opacity: 1; }
.dashboard-map-shell.map-is-ready .dashboard-map-live { opacity: 1; }
.dashboard-map-shell.map-is-ready .dashboard-map-fallback { opacity: 0; pointer-events: none; }
.dashboard-map-shell .maplibregl-canvas-container, .dashboard-map-shell .maplibregl-canvas { position: absolute; inset: 0; }
.map-preview-canvas { display: block; width: 100%; height: 100%; min-height: 240px; }
.map-preview-plot { fill: var(--sunken); stroke: var(--line); }
.map-preview-rule { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 6; }
.map-preview-point { stroke: var(--paper); stroke-width: 2.5; transition: r 120ms ease; }
.map-preview-point-ready { fill: var(--teal-dark); }
.map-preview-point-research { fill: var(--attention); }
.dashboard-map-preview:hover .map-preview-point { r: 9; }
.map-preview-readout { position: absolute; z-index: 4; top: 12px; left: 14px; display: flex; align-items: baseline; gap: 6px; padding: 5px 9px; color: var(--navy); background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: var(--radius-control); }
.map-preview-readout strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.map-preview-readout small { color: var(--muted); font-size: 10px; }
.map-preview-empty { min-height: 240px; display: grid; place-content: center; gap: 3px; padding: 24px; text-align: center; }
.map-preview-empty strong { color: var(--ink); font-size: 13px; }
.map-preview-empty small { color: var(--muted); font-size: 11px; }
.map-preview-action { position: absolute; z-index: 4; right: 14px; bottom: 24px; padding: 7px 10px; color: var(--on-navy); background: var(--navy); border-radius: var(--radius-control); font-size: 10px; font-weight: 600; }
.dashboard-map-attribution { position: absolute; z-index: 4; right: 5px; bottom: 3px; padding: 2px 4px; color: var(--muted); background: rgba(255,255,255,.88); border-radius: 3px; font-size: 9px; }
.dashboard-map-attribution a { color: var(--teal-dark); }
/* Review queue — three aligned columns so values and states scan vertically,
   at the density the contract asks for rather than one card per prospect. */
.prospect-list-header { display: grid; grid-template-columns: minmax(0,1fr) 78px 120px; gap: 12px; padding: 8px 20px; color: var(--muted); background: var(--subtle); border-bottom: 1px solid var(--line-soft); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.prospect-list-header span:nth-child(n+2) { text-align: center; }
.prospect-identity { min-width: 0; }
.prospect-identity strong, .prospect-identity small { display: block; }
.prospect-identity strong { overflow: hidden; color: var(--navy-deep); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.prospect-identity small { margin-top: 1px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

/* Secondary surfaces: Lists, readiness, and signal composition. */
.compact-dashboard-card { display: flex; flex-direction: column; padding-bottom: 14px; }
.lists-preview { padding: 4px 16px; }
.lists-preview a { padding: 11px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--muted); border-bottom: 1px solid var(--line-soft); font-size: 11px; font-weight: 700; text-decoration: none; }
.lists-preview a:last-child { border-bottom: 0; }
.lists-preview a:hover { color: var(--navy); }
.lists-preview strong { color: var(--navy); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

.signal-bar-list { padding: 14px 16px 4px; }
.signal-bar-list > div + div { margin-top: 12px; }
.signal-bar-list span { margin-bottom: 5px; display: flex; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 700; }
.signal-bar-list b { color: var(--navy); font-variant-numeric: tabular-nums; }
.signal-bar-list i { height: 6px; display: block; overflow: hidden; background: var(--line-soft); border-radius: var(--radius-status); }
.signal-bar-list em { height: 100%; display: block; background: var(--teal-dark); border-radius: inherit; }

.readiness-total { padding: 14px 16px 10px; display: flex; align-items: baseline; gap: 7px; }
.readiness-total strong { color: var(--navy); font-size: 27px; font-weight: 600; font-variant-numeric: tabular-nums; }
.readiness-total span { color: var(--muted); font-size: 11px; }
.readiness-bar { height: 8px; margin: 0 16px; display: flex; gap: 2px; overflow: hidden; background: var(--line-soft); border-radius: var(--radius-status); }
.readiness-bar i { display: block; height: 100%; }
.readiness-key { width: 8px; height: 8px; margin-right: 7px; display: inline-block; border-radius: 50%; vertical-align: baseline; }
/* Readiness reuses the review-state colours exactly, so the bar, the legend,
   the queue pills, and the map all say the same thing. */
.readiness-ready { background: var(--teal-dark); }
.readiness-research { background: var(--attention); }
.readiness-decided { background: var(--muted-soft); }
.readiness-legend { margin: 12px 16px 0; }
.readiness-legend div { padding: 6px 0; display: flex; gap: 12px; justify-content: space-between; align-items: center; color: var(--muted); border-top: 1px solid var(--line-soft); font-size: 11px; }
.readiness-legend div:first-child { border-top: 0; }
.readiness-legend dt { display: flex; align-items: center; }
.readiness-legend dd { margin: 0; color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.coverage-card { margin: 0; }
.coverage-observation-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.coverage-observation-summary > span { padding: 10px 14px; }
.coverage-observation-summary > span + span { border-left: 1px solid var(--line); }
.coverage-observation-summary > span:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
.coverage-observation-summary > span:nth-child(4) { border-top: 1px solid var(--line); }
.coverage-observation-summary small, .coverage-observation-summary strong { display: block; }
.coverage-observation-summary small { color: var(--muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.coverage-observation-summary strong { margin-top: 4px; overflow-wrap: anywhere; color: var(--navy); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.coverage-receipt-row { margin: 0; padding: 14px 16px; border: 0; }
.coverage-run-detail { padding: 0 16px 12px; }
.coverage-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 14px 16px; padding: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-panel); background: var(--subtle); font-size: 12px; }
.coverage-empty strong { color: var(--ink); }
.coverage-empty span { font-size: 11px; text-align: left; }
.coverage-disclosure-copy { margin-top: auto; margin-bottom: 0; padding: 11px 16px; color: var(--muted); background: var(--subtle); border-top: 1px solid var(--line); font-size: 10px; line-height: 1.45; }

/* Packet D market-facts Dashboard. */
.market-dashboard-heading { margin-bottom: 14px; }
.market-fact-kpis { margin-bottom: 14px; gap: 10px; }
.market-capacity-grid { grid-template-columns: minmax(0,7fr) minmax(360px,5fr); gap: 12px; }
.market-capacity-grid .dashboard-map-preview { min-height: 400px; }
.capacity-list-card { overflow-x: auto; }
.capacity-list-head { min-width: 640px; display: grid; grid-template-columns: minmax(280px,1fr) 58px 126px 72px; gap: 10px; padding: 7px 16px 7px 48px; color: var(--muted); background: var(--subtle); border-bottom: 1px solid var(--line-soft); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.capacity-list-head span:nth-child(n+2) { text-align: right; }
.capacity-market-list { min-width: 640px; margin: 0; padding: 0; list-style: none; }
.capacity-market-list li { margin: 0; padding: 0; border-bottom: 1px solid var(--line-soft); }
.capacity-market-list li:last-child { border-bottom: 0; }
.capacity-market-list a { min-height: 43px; display: grid; grid-template-columns: 22px minmax(280px,1fr) 58px 126px 72px; align-items: center; gap: 10px; padding: 6px 16px; color: var(--ink); font-size: 11px; text-decoration: none; }
.capacity-market-list a:hover { background: var(--hover-wash); }
.capacity-rank { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.capacity-owner { min-width: max-content; white-space: nowrap; }
.capacity-owner strong { color: var(--navy-deep); font-size: 12px; font-weight: 700; }
.capacity-owner .discover-signal-chip { font-style: normal; }
.capacity-props, .capacity-total, .capacity-value { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.capacity-total { color: var(--muted-strong); }
.capacity-value { color: var(--teal-dark); font-size: 13px; font-weight: 800; }
.start-here-strip { margin-top: 14px; display: grid; grid-template-columns: minmax(190px,1.2fr) repeat(3,minmax(0,1fr)); overflow: hidden; background: var(--navy-deep); border-radius: var(--radius-panel); }
.start-here-strip-compact { grid-template-columns: minmax(190px,1.2fr) repeat(2,minmax(0,1fr)); }
.start-here-strip > header { padding: 14px 18px; color: var(--on-navy); border-right: 1px solid rgba(255,255,255,.14); }
.start-here-strip header span { color: var(--teal-bright); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.start-here-strip h2 { margin: 3px 0 0; color: var(--on-navy); font-size: 14px; }
.start-here-strip > a { padding: 12px 16px; display: grid; align-content: center; color: var(--on-navy); border-right: 1px solid rgba(255,255,255,.11); text-decoration: none; }
.start-here-strip > a:last-child { border-right: 0; }
.start-here-strip > a:hover { background: rgba(255,255,255,.07); }
.start-here-strip small { color: var(--on-navy-muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.start-here-strip strong { margin-top: 2px; font-size: 20px; font-variant-numeric: tabular-nums; }
.start-here-strip a span { color: var(--teal-bright); font-size: 9px; }
.market-detail-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0,7fr) minmax(360px,5fr); gap: 12px; }
.portfolio-band-list { padding: 6px 18px 12px; }
.portfolio-band-list a { min-height: 39px; display: grid; grid-template-columns: 86px minmax(100px,1fr) 70px; align-items: center; gap: 12px; color: var(--ink); border-bottom: 1px solid var(--line-soft); font-size: 11px; text-decoration: none; }
.portfolio-band-list a:last-child { border-bottom: 0; }
.portfolio-band-list a:hover span { color: var(--teal-dark); }
.portfolio-band-list i { height: 6px; overflow: hidden; background: var(--line-soft); border-radius: 999px; }
.portfolio-band-list b { min-width: 2px; height: 100%; display: block; background: var(--teal-dark); border-radius: inherit; }
.portfolio-band-list strong { color: var(--navy); font-variant-numeric: tabular-nums; text-align: right; }
.market-coverage-facts { margin: 0; padding: 5px 18px 12px; }
.market-coverage-facts div { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.market-coverage-facts div:last-child { border-bottom: 0; }
.market-coverage-facts dt { color: var(--muted); font-size: 10px; }
.market-coverage-facts dd { margin: 0; color: var(--navy); font-size: 11px; font-weight: 750; text-align: right; }
.conditional-workflow-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }

@media (max-width: 980px) {
  .market-capacity-grid, .market-detail-grid { grid-template-columns: 1fr; }
  .start-here-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .start-here-strip > header { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
}

@media (max-width: 720px) {
  .start-here-strip, .conditional-workflow-grid { grid-template-columns: 1fr; }
  .start-here-strip > header { grid-column: auto; }
  .start-here-strip > a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.11); }
}

/* Discover, Research Center, and prospect profiles retain the same compact app. */
.page-heading, .brief-heading { min-height: 0; margin: 0 0 24px; padding: 0; align-items: center; background: transparent; border: 0; }
.page-heading h1, .brief-heading h1 { margin: 0; font-size: 20px; font-weight: 600; }
.page-heading .muted, .brief-heading .muted { max-width: 76ch; margin-bottom: 0; font-size: 12px; }
.queue-view-switcher { margin: -5px 0 14px; }
.queue-view-switcher a { border-radius: var(--radius-control); }
.queue-view-switcher a.active { color: var(--teal-dark); border-color: var(--verified-line); background: var(--teal-tint); }
th { color: var(--muted-strong); background: var(--sunken); }
tbody tr:hover { background: var(--hover-wash); }
.capacity-score { color: var(--teal-dark); background: var(--teal-tint); border-radius: var(--radius-chip); }
.confidence-track span { background: var(--teal-dark); }
.map-filters { border-radius: var(--radius-panel); }
.map-filters select { border-radius: var(--radius-control); }
.candidate-map, .map-background { background: var(--sunken); fill: var(--sunken); }
.candidate-map { height: 360px; min-height: 360px; }
.map-grid { stroke: var(--line); }
.map-point-3, .map-key-high, .map-result-marker-3 { fill: var(--teal-dark); background: var(--teal-dark); }
.map-point-2, .map-key-medium, .map-result-marker-2 { fill: var(--info-bright); background: var(--info-bright); }
.map-point-1, .map-key-low, .map-result-marker-1 { fill: var(--accent-violet); background: var(--accent-violet); }
.back-link { margin: 18px 0 12px; }
.brief-grid { gap: 14px; }
.brief-main, .brief-sidebar { gap: 14px; }
.property-signal { background: var(--subtle); }
.claim { background: var(--subtle); }
.technical-provenance { margin-top: 8px; color: var(--muted); font-size: 10px; }
.technical-provenance summary { width: fit-content; color: var(--teal-dark); font-weight: 750; cursor: pointer; }
.technical-provenance p { margin: 6px 0 0; overflow-wrap: anywhere; color: var(--muted); }
.identity-provenance { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.identity-provenance .detail-list { margin-top: 8px; }
.status-approved, .flag-clear { color: var(--teal-dark); background: var(--teal-tint); }

.public-body { background: var(--canvas); }
.public-header { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 72px; margin: 0; padding: 10px max(28px, calc((100% - 1180px)/2)); color: var(--on-navy); background: var(--navy-deep); border-bottom: 3px solid var(--teal); }
.public-nav > a:not(.button) { color: var(--on-navy-muted); font-weight: 500; }
.public-content { padding-top: 24px; }
.legal-notice { border-radius: 9px; box-shadow: 0 12px 32px rgba(10,29,77,.07); }
.legal-notice h1 { color: var(--navy); font-family: Inter,ui-sans-serif,system-ui,sans-serif; }
.registration-form input:not([type="checkbox"]), .access-form input { border-radius: 6px; }

@media (max-width: 980px) {
  .app-header { align-items: center; }
  .header-actions { justify-content: flex-end; flex-wrap: wrap; }
  .dashboard-map-preview { min-height: 280px; }
}

@media (max-width: 720px) {
  .app-header { padding: 10px 14px; }
  .header-action { padding-inline: 8px; }
  .app-main, .app-footer { width: min(100% - 20px,1500px); }
  .app-footer { flex-wrap: wrap; padding-block: 10px; }
  .app-footer-dataset { order: 3; flex-basis: 100%; text-align: left; }
  .research-commandbar { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 10px; }
  .research-tabs { min-height: 54px; padding-inline: 12px; gap: 18px; overflow-x: auto; }
  .research-tabs a { flex: 0 0 auto; min-height: 54px; text-align: center; }
  .app-content { padding-inline: 12px; }
  .page-heading, .brief-heading { margin-inline: -12px; padding-inline: 12px; }
  /* The queue keeps its columns until they stop fitting, then stacks the
     state row underneath rather than inventing a new navigation model. */
  .prospect-list-header { display: none; }
  .map-preview-legend { flex-wrap: wrap; }
  .coverage-observation-summary { grid-template-columns: 1fr; }
  .coverage-observation-summary > span + span { border-top: 1px solid var(--line); border-left: 0; }
  .coverage-receipt-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .candidate-map { height: 300px; min-height: 300px; }
}

@media (max-width: 460px) {
  .cluena-logo-mark { width: 28px; height: 28px; }
  .brand-wordmark { font-size: 17px; }
  .header-actions .header-action:first-of-type { display: none; }
  .research-tabs a { font-size: 11px; }
}

@media (max-width: 620px) {
  .public-header { padding-inline: 16px; }
  .public-nav { gap: 10px; }
  .access-shell { min-height: auto; margin: 0 0 24px; }
  .access-context { padding: 28px 22px; }
  .access-context h1 { font-size: 32px; }
  .access-context-copy { margin: 14px 0 0; font-size: 14px; }
  .access-stage { padding: 30px 22px; }
  .access-panel h2 { font-size: 28px; }
}

/* Discover research table ------------------------------------------------- */
.discover-heading { margin-bottom: 12px; }
.discover-heading h1 { margin-bottom: 0; font-size: 24px; font-weight: 650; line-height: 1.2; }
.discover-workspace { display: grid; grid-template-columns: 210px minmax(0,1fr); align-items: start; gap: 12px; }
.discover-results-panel { min-width: 0; }
.discover-filter-rail { min-width: 0; }
.discover-view-switcher { display: grid; gap: 3px; margin: 0; padding: 7px; background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--radius-panel); box-shadow: none; }
.discover-view-switcher a { display: block; padding: 10px 10px; border: 0; border-radius: var(--radius-inner); font-size: 11px; }
.discover-view-switcher a.active { box-shadow: inset 3px 0 0 var(--teal); }

.discover-controls { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; padding: 12px; background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--radius-panel); box-shadow: none; }
.discover-controls label { min-width: 0; }
.discover-controls label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.discover-controls input, .discover-controls select { width: 100%; min-width: 0; height: 36px; padding: 0 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--radius-control); font: inherit; font-size: 12px; }
.discover-controls input:focus, .discover-controls select:focus { outline: 2px solid rgba(20,184,166,.22); border-color: var(--teal); }
.discover-controls .button { min-height: 36px; padding: 7px 14px; font-size: 12px; }
.discover-control-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.discover-control-actions > a { color: var(--muted); font-size: 11px; font-weight: 750; text-decoration: none; }
.discover-control-actions > a:hover { color: var(--navy); }
.discover-active-filters { display: flex; min-height: 32px; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.discover-active-filters > span { margin-right: 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.discover-active-filters a { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 4px 8px; color: var(--navy-deep); background: var(--teal-tint); border: 1px solid var(--verified-line); border-radius: 999px; font-size: 10px; font-weight: 750; text-decoration: none; }
.discover-active-filters a:hover { border-color: var(--teal); }
.discover-active-filters b { color: var(--teal-dark); font-size: 13px; line-height: 1; }
.evidence-toolbar { display: flex; min-height: 32px; align-items: center; gap: 2px; margin: 0 0 4px; padding: 0 2px 5px; overflow-x: auto; border-bottom: 1px solid var(--line); white-space: nowrap; }
.evidence-toolbar > span { margin-right: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.evidence-toolbar > i { width: 1px; height: 14px; margin: 0 4px; background: var(--line); }
.evidence-toolbar a { display: inline-flex; align-items: center; padding: 5px 7px; color: var(--muted-strong); border: 1px solid transparent; border-radius: var(--radius-control); font-size: 10px; font-weight: 750; text-decoration: none; }
.evidence-toolbar a:hover { color: var(--navy); background: var(--subtle); }
.evidence-toolbar a.active { color: var(--navy-deep); background: var(--teal-tint); border-color: var(--verified-line); box-shadow: inset 0 -2px 0 var(--teal); }
.evidence-token { position: relative; display: inline-grid; width: 22px; height: 22px; padding: 0; place-items: center; color: var(--muted); background: var(--sunken); border: 1px solid var(--line); border-radius: 5px; font-size: 9px; font-style: normal; font-weight: 850; line-height: 1; }
.evidence-token.evidence-available.evidence-property { color: var(--navy); background: var(--neutral-soft); border-color: var(--line-strong); }
.evidence-token.evidence-available.evidence-institutional { color: var(--verified-strong); background: var(--verified-soft); border-color: var(--verified-line); }
.evidence-token.evidence-available.evidence-business { color: var(--info); background: var(--info-soft); border-color: var(--info-line); }
.evidence-token.evidence-available.evidence-liquidity { color: var(--attention); background: var(--attention-soft); border-color: var(--attention-line); }
.evidence-token.evidence-research { border-style: dashed; }
.evidence-token.evidence-blocked { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }
.evidence-toolbar a.evidence-token { display: inline-grid; width: 30px; height: 30px; padding: 0; border-radius: 5px; }
.evidence-toolbar a.evidence-property-only { width: auto; grid-auto-flow: column; gap: 3px; padding-inline: 7px; }
.evidence-property-only small { font-size: 8px; font-weight: 750; }
.evidence-toolbar a.evidence-token:hover { box-shadow: 0 0 0 2px rgba(20,184,166,.12); }
.evidence-toolbar a.evidence-token.active { color: var(--on-navy); background: var(--navy); border-color: var(--navy); box-shadow: inset 0 -2px 0 var(--teal); }
.discover-table-meta { min-height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 10px; }
.discover-table-meta b { color: var(--navy); }

.discover-table-card { max-width: 100%; overflow: auto; border-color: var(--line); }
.discover-table { min-width: 860px; table-layout: fixed; }
.discover-table th { position: sticky; top: 0; z-index: 2; padding: 10px; font-size: 10px; letter-spacing: .06em; white-space: nowrap; }
.discover-table th:nth-child(1) { width: 200px; }
.discover-table th:nth-child(2) { width: 145px; }
.discover-table th:nth-child(3) { width: 250px; }
.discover-table th:nth-child(4) { width: 135px; }
.discover-table th:nth-child(5) { width: 130px; }
.discover-table th a { color: inherit; text-decoration: none; }
.discover-table th a:hover { color: var(--navy); }
.discover-table th a span { margin-left: 2px; color: var(--muted-soft); }
.discover-table th[aria-sort] > a, .strength-sort-links a[aria-current="true"] { color: var(--teal-dark); }
.strength-sort-links { display: flex; gap: 7px; margin-top: 3px; font-size: 8px; letter-spacing: 0; text-transform: none; }
.strength-sort-links a { color: var(--muted); }
.discover-table tbody tr { height: 80px; }
.discover-table td { height: 80px; padding: 8px 10px; font-size: 11px; line-height: 1.35; overflow: hidden; }
.discover-table .person-name { display: block; overflow: hidden; color: var(--navy-deep); font-size: 13px; overflow-wrap: normal; text-overflow: ellipsis; white-space: nowrap; }
.discover-table .secondary { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.discover-role-context { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discover-table .signal-primary { font-size: 11px; }
.discover-table .capacity-score { min-width: 62px; padding: 4px 8px; border-radius: var(--radius-chip); font-size: 11px; }
.discover-table td[data-label="Confidence"] { overflow: hidden; }
.compact-confidence { width: 100%; min-width: 0; max-width: 100px; overflow: hidden; text-align: left; }
.compact-confidence > span:first-child { margin-bottom: 5px; font-size: 11px; }
.compact-confidence .confidence-track { width: 100%; max-width: 100px; height: 5px; }
.compact-confidence .confidence-track > span { max-width: 100%; }
.discover-strength-cell .capacity-score { display: inline-flex; }
.discover-strength-cell .compact-confidence { margin-top: 7px; }
.discover-evidence-cell { vertical-align: top; overflow: visible !important; }
.evidence-letter-strip { display: flex; gap: 3px; margin-bottom: 3px; }
.evidence-letter-strip .evidence-token::after { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: max-content; max-width: 190px; padding: 5px 7px; color: var(--on-navy); background: var(--navy-deep); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-control); box-shadow: var(--shadow-control); content: attr(data-tooltip); font-size: 9px; font-weight: 700; line-height: 1.3; opacity: 0; pointer-events: none; transform: translateY(-2px); transition: opacity .12s ease, transform .12s ease; white-space: normal; }
.evidence-letter-strip .evidence-token:hover::after { opacity: 1; transform: translateY(0); }
.discover-evidence-type { margin-top: 4px; color: var(--navy-deep); }
.discover-evidence-summary { display: -webkit-box; margin-top: 2px; overflow: hidden; color: var(--ink); font-size: 10px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.discover-evidence-source { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.discover-evidence-source a { color: var(--teal-dark); font-weight: 750; text-decoration: none; }
.discover-evidence-source a:hover { text-decoration: underline; }
.signal-blocked-copy { color: var(--danger); }
.discover-table .status { padding: 4px 8px; border-radius: var(--radius-status); font-size: 10px; }
.discover-review-tag { min-width: 78px; justify-content: center; text-align: center; }
.discover-review-cell { vertical-align: middle; }
.discover-review-action { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--teal-dark); font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.discover-review-action:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.discover-row-suppressed { background: var(--danger-wash); }
.discover-row-suppressed:hover { background: var(--danger-wash); }
.capacity-suppressed { color: var(--danger); background: var(--danger-soft); }

.discover-pagination { min-height: 43px; padding: 8px 3px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.discover-pagination div { display: flex; gap: 6px; }
.discover-pagination a { padding: 6px 9px; color: var(--navy); background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--radius-control); font-weight: 750; text-decoration: none; }
.discover-empty-state { padding-block: 45px; border-radius: var(--radius-panel); background: var(--paper); }
.discover-empty-state h2 { margin-bottom: 6px; }
.discover-empty-state p { margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.discover-disclosure { margin: 12px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; }

@media (max-width: 980px) {
  .discover-workspace { grid-template-columns: 1fr; }
  .discover-view-switcher { display: flex; width: fit-content; padding: 5px; }
  .discover-view-switcher a.active { box-shadow: inset 0 -3px 0 var(--teal); }
  .discover-controls { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .discover-controls .discover-search { grid-column: span 2; }
  .discover-control-actions { justify-content: flex-start; }
  .dashboard-map-preview { min-height: 340px; }
}

@media (max-width: 850px) {
  .discover-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .discover-controls .discover-search { grid-column: 1 / -1; }
  .discover-table-card { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .discover-table { display: block; min-width: 0; }
  .discover-table thead { display: none; }
  .discover-table tbody { display: grid; gap: 9px; }
  .discover-table tbody tr { height: auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(112px,.42fr); gap: 0 18px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: 0 3px 10px rgba(7,22,59,.04); }
  .discover-table tbody tr.discover-row-suppressed { background: var(--danger-wash); }
  .discover-table td, .discover-table td:first-child { height: auto; min-width: 0; display: block; padding: 8px 0; border: 0; overflow: visible; }
  .discover-table td::before { display: block; margin-bottom: 4px; content: attr(data-label); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .discover-table td:first-child { grid-column: 1 / -1; padding-top: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
  .discover-table td:first-child::before { display: none; }
  .discover-property-cell { grid-column: 1; }
  .discover-strength-cell { grid-column: 2; grid-row: 2; }
  .discover-evidence-cell { grid-column: 1 / -1; border-top: 1px solid var(--line-soft) !important; }
  .discover-review-cell { grid-column: 1 / -1; display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 0 !important; border-top: 1px solid var(--line-soft) !important; }
  .discover-review-cell::before { display: none !important; }
  .discover-review-action { min-height: 34px; margin-top: 0; padding: 7px 10px; color: var(--on-navy); background: var(--navy); border-radius: var(--radius-control); }
  .discover-review-action:hover { color: var(--on-navy); background: var(--navy-deep); text-decoration: none; }
}

@media (max-width: 620px) {
  .discover-heading { align-items: flex-start; }
  .discover-table-meta { align-items: flex-start; flex-direction: column; gap: 3px; padding-block: 5px; }
  .discover-controls { grid-template-columns: 1fr; }
  .discover-controls .discover-search { grid-column: auto; }
  .discover-control-actions { justify-content: space-between; }
  .discover-control-actions .button { flex: 1; }
  .discover-disclosure { text-align: left; }
}

/* Packet D: one-line prospecting rows. Identity is never truncated; the
   location column yields space first and the table scrolls on narrow screens. */
.discover-table { min-width: 820px; table-layout: auto; }
.discover-table th:nth-child(1) { width: 27%; }
.discover-table th:nth-child(2) { width: 29%; }
.discover-table th:nth-child(3) { width: 7%; }
.discover-table th:nth-child(4) { width: 16%; }
.discover-table th:nth-child(5) { width: 10%; }
.discover-table th:nth-child(6) { width: 11%; }
.discover-table th:nth-child(n+3), .discover-table td.discover-number-cell { text-align: right; }
.discover-table tbody tr { height: 48px; cursor: pointer; }
.discover-table tbody tr:focus-within { box-shadow: inset 3px 0 0 var(--teal); }
.discover-table td { height: 48px; padding: 8px 10px; overflow: visible; vertical-align: middle; white-space: nowrap; }
.discover-table .person-name { display: inline; overflow: visible; font-size: 12px; text-overflow: clip; white-space: nowrap; }
.discover-prospect-cell { min-width: max-content; }
.discover-location-cell { max-width: 270px; overflow: hidden !important; color: var(--muted-strong); text-overflow: ellipsis; }
.discover-number-cell { color: var(--ink); font-variant-numeric: tabular-nums; }
.discover-total-cell, .discover-capacity-cell { font-weight: 700; }
.discover-capacity-cell { color: var(--teal-dark); font-size: 13px !important; }
.discover-signal-chip { display: inline-flex; min-height: 20px; align-items: center; margin-left: 5px; padding: 2px 5px; border: 1px solid var(--verified-line); border-radius: 999px; font-size: 9px; font-weight: 850; line-height: 1; }
.discover-signal-institutional { color: var(--verified-strong); background: var(--verified-soft); }
.discover-signal-business { color: var(--info); background: var(--info-soft); border-color: var(--info-line); }
.discover-signal-liquidity { color: var(--attention); background: var(--attention-soft); border-color: var(--attention-line); }
.discover-absentee-tag { display: inline-flex; padding: 3px 6px; color: var(--attention); background: var(--attention-soft); border: 1px solid var(--attention-line); border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 850px) {
  .discover-table-card { overflow: auto; border: 1px solid var(--line); background: var(--paper); }
  .discover-table { display: table; min-width: 820px; }
  .discover-table thead { display: table-header-group; }
  .discover-table tbody { display: table-row-group; }
  .discover-table tbody tr, .discover-table tbody tr.discover-row-suppressed { height: 48px; display: table-row; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .discover-table td, .discover-table td:first-child { height: 48px; min-width: 0; display: table-cell; padding: 8px 10px; border-top: 1px solid var(--line-soft); overflow: visible; }
  .discover-table td::before, .discover-table td:first-child::before { display: none; }
}

/* Interaction, focus, and responsive corrections ------------------------- */
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 60; padding: 10px 14px; color: var(--navy); background: var(--paper); border: 1px solid var(--teal); border-radius: var(--radius-control); font-size: 12px; font-weight: 750; text-decoration: none; }
.skip-link:focus { top: 10px; }

:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); border-radius: var(--focus-ring-radius); }
.app-header a:focus-visible, .app-header button:focus-visible { outline-color: var(--focus-ring-on-dark); }
.dashboard-map-preview:focus-visible, .map-result:focus-visible,
.discover-table a:focus-visible, .research-tabs a:focus-visible { outline-offset: -2px; }

.map-card-heading p, .map-legend, .map-bounds, .map-result small, .map-result-score { font-size: 11px; }
.map-result strong { font-size: 13px; }
.map-disclosure { font-size: 11px; line-height: 1.5; }
.dataset-vintage, .map-limit-disclosure { color: var(--muted); font-size: 11px; font-weight: 650; }

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

/* Continuous prospect research ------------------------------------------ */
body.inspection-open { overflow: hidden; }
.inspection-drawer[hidden] { display: none; }
.inspection-drawer { position: fixed; z-index: 100; inset: 0; display: grid; grid-template-columns: 1fr minmax(420px, 500px); }
.inspection-backdrop { grid-column: 1 / -1; grid-row: 1; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(7,22,56,.46); cursor: default; }
.inspection-sheet { grid-column: 2; grid-row: 1; position: relative; min-width: 0; height: 100%; overflow-y: auto; color: var(--ink); background: var(--paper); border-left: 3px solid var(--teal); box-shadow: -14px 0 36px rgba(7,22,56,.18); outline: 0; animation: inspection-enter .18s ease-out; }
@keyframes inspection-enter { from { transform: translateX(24px); opacity: .75; } to { transform: translateX(0); opacity: 1; } }
.inspection-loading, .inspection-error { min-height: 100%; display: grid; place-content: center; padding: 32px; color: var(--muted); text-align: center; }
.inspection-panel { min-height: 100%; display: flex; flex-direction: column; }
.inspection-header { position: sticky; z-index: 3; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; color: var(--on-navy); background: var(--navy); border-bottom: 3px solid var(--teal); }
.inspection-header .eyebrow { margin-bottom: 6px; color: var(--teal-bright); }
.inspection-header h2 { margin-bottom: 4px; color: var(--on-navy); font-size: 21px; line-height: 1.25; }
.inspection-header p:last-child { margin-bottom: 0; color: var(--on-navy-muted); font-size: 11px; }
.inspection-close { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; color: var(--on-navy); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-control); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.inspection-close:hover { background: rgba(255,255,255,.16); }
.inspection-message { margin: 0; padding: 9px 24px; color: var(--verified-strong); background: var(--verified-soft); border-bottom: 1px solid var(--verified-line); font-size: 11px; font-weight: 750; }
.inspection-assessment { display: grid; grid-template-columns: 130px 1fr; border-bottom: 1px solid var(--line); }
.inspection-score { padding: 18px 22px; background: var(--subtle); border-right: 1px solid var(--line); }
.inspection-score span, .inspection-score small { display: block; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.inspection-score strong { display: block; margin: 2px 0 1px; color: var(--navy); font-size: 32px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.inspection-score small { letter-spacing: 0; text-transform: none; }
.inspection-assessment dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; }
.inspection-assessment dl div { min-width: 0; padding: 18px 10px; }
.inspection-assessment dl div + div { border-left: 1px solid var(--line-soft); }
.inspection-assessment dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.inspection-assessment dd { margin: 4px 0 0; color: var(--navy-deep); font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
.inspection-section { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.inspection-section .eyebrow { margin-bottom: 8px; font-size: 9px; }
.inspection-synthesis { margin-bottom: 12px; color: var(--ink); font-size: 13px; line-height: 1.55; }
.inspection-signals, .inspection-list-memberships { display: flex; flex-wrap: wrap; gap: 6px; }
.inspection-signal { display: inline-flex; min-height: 25px; align-items: center; padding: 4px 7px; color: var(--navy); background: var(--neutral-soft); border: 1px solid var(--line-strong); border-radius: var(--radius-control); font-size: 10px; font-weight: 800; }
.inspection-signal-business { color: var(--info); background: var(--info-soft); border-color: var(--info-line); }
.inspection-signal-institutional { color: var(--verified-strong); background: var(--verified-soft); border-color: var(--verified-line); }
.inspection-signal-liquidity { color: var(--attention); background: var(--attention-soft); border-color: var(--attention-line); }
.inspection-signal-more { color: var(--muted); background: var(--paper); border-style: dashed; }
.inspection-evidence-list { display: grid; }
.inspection-evidence-row { display: grid; grid-template-columns: 8px 1fr; gap: 11px; padding: 11px 0; }
.inspection-evidence-row + .inspection-evidence-row { border-top: 1px solid var(--line-soft); }
.inspection-evidence-mark { width: 8px; height: 8px; margin-top: 5px; background: var(--navy); border-radius: 50%; }
.inspection-evidence-institutional { background: var(--verified); }
.inspection-evidence-business { background: var(--info); }
.inspection-evidence-liquidity { background: var(--attention); }
.inspection-evidence-row strong { display: block; color: var(--navy-deep); font-size: 11px; }
.inspection-evidence-row p { margin: 2px 0 0; color: var(--muted-strong); font-size: 11px; line-height: 1.45; }
.inspection-your-work { background: var(--subtle); }
.inspection-your-work h3 { margin: 15px 0 8px; color: var(--navy); font-size: 11px; }
.inspection-your-work .eyebrow + h3 { margin-top: 0; }
.inspection-review-form { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-control); }
.inspection-review-form > div { min-width: 0; }
.inspection-review-form small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.inspection-review-state { color: var(--muted-strong); font-size: 11px; font-weight: 800; }
.inspection-review-state.reviewed { color: var(--verified-strong); }
.inspection-review-form .button { flex: 0 0 auto; min-height: 30px; padding: 5px 8px; font-size: 9px; }
.inspection-list-memberships form { margin: 0; }
.inspection-list-chip { min-height: 28px; padding: 4px 8px; color: var(--navy); background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--radius-control); font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }
.inspection-list-chip.selected { color: var(--verified-strong); background: var(--verified-soft); border-color: var(--verified-line); }
.inspection-inline-form, .inspection-note-form { display: grid; gap: 7px; margin-top: 11px; }
.inspection-inline-form label, .inspection-note-form label, .lists-create-panel label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.inspection-inline-form > div { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.inspection-inline-form input, .inspection-note-form textarea, .lists-create-panel input, .lists-create-panel select { width: 100%; min-width: 0; padding: 8px 9px; color: var(--ink); background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--radius-control); font: inherit; font-size: 11px; }
.inspection-note-form textarea { resize: vertical; }
.inspection-inline-form .button, .inspection-note-form .button { min-height: 34px; padding: 7px 10px; font-size: 10px; }
.inspection-note-form .button { justify-self: end; }
.inspection-note-list { display: grid; gap: 7px; }
.inspection-note-list article { padding: 10px 11px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-control); }
.inspection-note-list p { margin-bottom: 5px; font-size: 11px; line-height: 1.5; }
.inspection-note-list small { display: block; color: var(--muted); font-size: 9px; }
.inspection-footer { margin-top: auto; padding: 18px 24px 24px; }
.inspection-footer .button { width: 100%; }
.inspection-footer p { margin: 9px 0 0; color: var(--muted); font-size: 9px; text-align: center; }

/* Research lists --------------------------------------------------------- */
.lists-heading { align-items: flex-end; }
.lists-heading h1 { margin-bottom: 0; font-size: 26px; }
.lists-heading > p { max-width: 560px; color: var(--muted); font-size: 12px; }
.lists-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; align-items: start; gap: 16px; }
.research-list-table { border: 1px solid var(--line); }
.research-list-row { display: grid; grid-template-columns: minmax(0,1fr) 100px 120px; align-items: center; min-height: 46px; padding: 8px 12px; color: var(--ink); font-size: 11px; text-decoration: none; }
.research-list-row + .research-list-row { border-top: 1px solid var(--line-soft); }
.research-list-row:not(.research-list-header):hover { background: var(--hover-wash); }
.research-list-row strong { color: var(--navy-deep); }
.research-list-row span { color: var(--muted); }
.research-list-header { min-height: 34px; color: var(--muted); background: var(--sunken); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lists-empty { padding-block: 42px; }
.lists-empty h3 { margin-bottom: 5px; }
.lists-empty p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.lists-create-panel form { display: grid; gap: 8px; }
.lists-create-panel .button { margin-top: 4px; }

.safety-prospect-search { max-width: 720px; margin: 0 0 16px; padding: 12px; background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius-control); }
.safety-prospect-search label { display: block; margin-bottom: 6px; color: var(--navy); font-size: 10px; font-weight: 800; }
.safety-prospect-search > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.safety-prospect-search input { min-width: 0; padding: 8px 9px; color: var(--ink); background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--radius-control); font: inherit; font-size: 11px; }
.safety-prospect-search small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.4; }

@media (max-width: 760px) {
  .inspection-drawer { grid-template-columns: 1fr; }
  .inspection-sheet { grid-column: 1; width: 100%; border-left: 0; }
  .inspection-assessment { grid-template-columns: 110px 1fr; }
  .lists-heading { align-items: stretch; gap: 12px; margin-bottom: 20px; text-align: left; }
  .lists-heading .eyebrow { margin: 0 0 4px; }
  .lists-heading > p { margin: 0; font-size: var(--type-body); line-height: 1.5; }
  .lists-layout { grid-template-columns: 1fr; gap: 16px; }
  .lists-layout > .panel { padding: 16px; }
  .lists-layout .panel-heading { margin-bottom: 16px; }
  .lists-create-panel h2 { margin-bottom: 12px; }
  .lists-create-panel label { font-size: var(--type-label); }
  .lists-create-panel input,
  .lists-create-panel select { min-height: 44px; font-size: 16px; }
  .lists-layout .research-list-row { font-size: var(--type-control); }
  .lists-layout .research-list-header { font-size: var(--type-label); }
}

@media (max-width: 460px) {
  .inspection-header, .inspection-section, .inspection-footer { padding-inline: 16px; }
  .inspection-assessment { grid-template-columns: 1fr; }
  .inspection-score { border-right: 0; border-bottom: 1px solid var(--line); }
  .inspection-assessment dl div { padding-block: 12px; }
  .research-list-row { grid-template-columns: minmax(0,1fr) 74px; }
  .research-list-row > :last-child { display: none; }
  .safety-prospect-search > div { grid-template-columns: 1fr; }
}

/* In-product feedback --------------------------------------------------- */
.feedback-launcher {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--on-navy);
  background: var(--navy);
  border: 0;
  border-radius: var(--radius-control-standard);
  box-shadow: var(--shadow);
  font: inherit;
  font-size: var(--type-label);
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.feedback-launcher:hover {
  color: var(--on-navy);
  background: var(--navy-deep);
  box-shadow: var(--shadow-menu);
  transform: none;
}
.feedback-launcher:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.feedback-launcher-icon { flex: 0 0 auto; }
body:has(dialog[open]) .feedback-launcher,
body:has(.inspection-drawer:not([hidden])) .feedback-launcher { display: none; }

.feedback-dialog {
  position: fixed;
  inset: auto 20px 20px auto;
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 40px);
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-menu);
  overflow: hidden;
}

.feedback-dialog::backdrop {
  background: rgba(6, 20, 53, .18);
  backdrop-filter: blur(1px);
}

.feedback-dialog-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--border-row-soft);
}

.feedback-dialog-header p {
  margin: 0 0 2px;
  color: var(--teal-dark);
  font-size: var(--type-metadata);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.feedback-dialog-header h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: var(--type-section-title);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-section);
}

.feedback-dialog-close {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: var(--muted-strong);
  background: transparent;
  border: 0;
  border-radius: var(--radius-control-standard);
  cursor: pointer;
}

.feedback-dialog-close:hover { color: var(--navy); background: var(--hover-wash); }

.feedback-form {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
}

.feedback-form textarea {
  width: 100%;
  min-height: 142px;
  max-height: min(340px, 42vh);
  padding: 13px 14px;
  resize: vertical;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-control-standard);
  font: inherit;
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.feedback-form textarea::placeholder { color: var(--muted); }
.feedback-form textarea:focus-visible,
.feedback-dialog-close:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

.feedback-context {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--type-metadata);
  line-height: var(--leading-label);
}

.feedback-context svg { color: var(--teal-dark); flex: 0 0 auto; }

.feedback-form-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-metadata);
  font-weight: var(--weight-medium);
}

.feedback-form-status.is-error { color: var(--danger); }
.feedback-form-status.is-success { color: var(--verified-strong); }

.feedback-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.feedback-form-actions .button {
  min-height: var(--control-height);
  padding-inline: var(--space-4);
}

@media (min-width: 1025px) {
  body:has(.start-here-strip) .feedback-launcher { bottom: 86px; }
}

@media (max-width: 1024px) {
  .feedback-launcher { width: 44px; padding: 0; justify-content: center; }
  .feedback-launcher-label { display: none; }
}

@media (max-width: 560px) {
  .feedback-dialog {
    inset: auto 8px 8px;
    width: auto;
    max-height: calc(100vh - 16px);
    border-radius: var(--radius-card) var(--radius-card) var(--radius-control-standard) var(--radius-control-standard);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-launcher { transition: none; }
}

/* Research-first product surfaces -------------------------------------- */
.button-secondary { color: var(--navy); background: var(--paper); border-color: var(--field-line); }
.button-secondary:hover { color: var(--teal-dark); background: var(--verified-soft); border-color: var(--teal); }
.discover-heading { display: block; }
.discover-heading > p { max-width: 720px; margin: 5px 0 0; }
.research-dashboard-hero, .research-center-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 16px; }
.research-dashboard-hero > div, .research-center-hero > div:first-child { max-width: 760px; }
.research-dashboard-hero h1, .research-center-hero h1 { margin: 2px 0 6px; color: var(--navy-deep); font-size: clamp(28px,3vw,38px); letter-spacing: -.035em; }
.research-dashboard-hero p:last-child, .research-center-hero p:last-child { margin: 0; color: var(--muted-strong); font-size: 13px; line-height: 1.55; }
.market-summary-bar { min-height: 64px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) auto; align-items: center; margin-bottom: 16px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius-panel); box-shadow: var(--shadow-soft); }
.market-summary-bar > div { min-width: 0; padding: 2px 16px; }
.market-summary-bar > div + div { border-left: 1px solid var(--line-soft); }
.market-summary-bar strong { margin-right: 5px; color: var(--navy-deep); font-size: 17px; font-variant-numeric: tabular-nums; }
.market-summary-bar span { color: var(--muted); font-size: 10px; }
.market-summary-bar > a { padding: 8px 10px; color: var(--teal-dark); font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.dashboard-research-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 16px; }
.research-priority-card, .dashboard-your-work, .research-subject-results, .research-map-secondary { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-soft); }
.research-card-heading { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.research-card-heading.compact { min-height: 68px; }
.research-card-heading h2 { margin: 1px 0 3px; color: var(--navy-deep); font-size: 17px; }
.research-card-heading p:last-child { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.research-card-heading > a, .research-card-heading > span { color: var(--teal-dark); font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.research-candidate-list { min-width: 780px; }
.research-priority-card { overflow-x: auto; }
.research-candidate-head, .research-candidate-row { display: grid; grid-template-columns: minmax(220px,1.5fr) 88px minmax(220px,1.45fr) 140px 88px; align-items: center; gap: 12px; padding: 0 14px; }
.research-candidate-head { min-height: 31px; color: var(--muted); background: var(--sunken); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.research-candidate-row { min-height: 64px; color: var(--ink); border-top: 1px solid var(--line-soft); text-decoration: none; }
.research-candidate-row:hover { background: var(--hover-wash); }
.research-candidate-identity, .research-candidate-score, .research-confidence { min-width: 0; display: block; }
.research-candidate-identity strong { display: block; overflow: hidden; color: var(--navy-deep); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.research-candidate-identity small, .research-candidate-score small, .research-confidence small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.research-candidate-score strong { color: var(--teal-dark); font-size: 19px; font-variant-numeric: tabular-nums; }
.research-signal-list { display: flex; flex-wrap: wrap; gap: 4px; }
.research-signal-list i, .research-signal-chip { display: inline-flex; min-height: 22px; align-items: center; padding: 3px 6px; color: var(--navy); background: var(--neutral-soft); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 800; line-height: 1.15; }
.research-signal-list i.more, .research-signal-chip.more { color: var(--muted); background: var(--paper); border-style: dashed; }
.research-signal-chip.signal-business { color: var(--info); background: var(--info-soft); border-color: var(--info-line); }
.research-signal-chip.signal-institutional { color: var(--verified-strong); background: var(--verified-soft); border-color: var(--verified-line); }
.research-signal-chip.signal-liquidity, .research-signal-chip.signal-geography { color: var(--attention); background: var(--attention-soft); border-color: var(--attention-line); }
.research-confidence strong { display: block; color: var(--navy); font-size: 9px; }
.research-review-state { display: inline-flex; width: fit-content; min-height: 24px; align-items: center; padding: 3px 7px; color: var(--muted-strong); background: var(--neutral-soft); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 8px; font-weight: 850; }
.research-review-state.reviewed { color: var(--verified-strong); background: var(--verified-soft); border-color: var(--verified-line); }
.dashboard-your-work > section { padding: 14px 16px; }
.dashboard-your-work > section + section { border-top: 1px solid var(--line); }
.dashboard-your-work h3 { margin-bottom: 8px; color: var(--navy); font-size: 10px; }
.dashboard-work-list { display: grid; }
.dashboard-work-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--ink); font-size: 10px; text-decoration: none; }
.dashboard-work-list a + a { border-top: 1px solid var(--line-soft); }
.dashboard-work-list strong { min-width: 0; overflow: hidden; color: var(--navy-deep); text-overflow: ellipsis; white-space: nowrap; }
.dashboard-work-list span { flex: 0 0 auto; color: var(--muted); font-size: 8px; }
.dashboard-work-empty { margin: 0 0 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.dashboard-next-paths { display: grid; grid-template-columns: 1.1fr repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.dashboard-next-paths header { padding: 13px 4px; }
.dashboard-next-paths h2 { margin: 3px 0 0; color: var(--navy-deep); font-size: 16px; }
.dashboard-next-paths > a { min-height: 94px; display: flex; flex-direction: column; padding: 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); text-decoration: none; }
.dashboard-next-paths > a:hover { border-color: var(--teal); box-shadow: var(--shadow-soft); }
.dashboard-next-paths > a span { color: var(--teal-dark); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-next-paths > a strong { margin: 5px 0 4px; color: var(--navy-deep); font-size: 11px; }
.dashboard-next-paths > a small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.dashboard-market-context { margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.dashboard-market-context summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; cursor: pointer; list-style: none; }
.dashboard-market-context summary::-webkit-details-marker { display: none; }
.dashboard-market-context summary strong, .dashboard-market-context summary small { display: block; }
.dashboard-market-context summary strong { color: var(--navy-deep); font-size: 11px; }
.dashboard-market-context summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.dashboard-market-context[open] summary { border-bottom: 1px solid var(--line); }
.market-context-grid { display: grid; grid-template-columns: 1fr 1fr; }
.market-context-grid section { padding: 16px; }
.market-context-grid section + section { border-left: 1px solid var(--line); }
.market-context-grid h3 { margin-bottom: 10px; color: var(--navy); font-size: 11px; }
.market-context-grid dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.market-context-grid dl div { padding: 8px 0; }
.market-context-grid dt { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.market-context-grid dd { margin: 3px 0 0; color: var(--navy-deep); font-size: 11px; font-weight: 750; }
.dashboard-market-context > p { margin: 0; padding: 10px 16px; color: var(--muted); background: var(--sunken); border-top: 1px solid var(--line); font-size: 9px; }

.discover-quick-segments { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.discover-quick-segments > span { margin-right: 3px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.discover-quick-segments a { padding: 5px 8px; color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 9px; font-weight: 750; text-decoration: none; }
.discover-quick-segments a:hover { color: var(--teal-dark); border-color: var(--teal); }
.discover-table { min-width: 900px; table-layout: fixed; }
.discover-table th:nth-child(1) { width: 29%; }
.discover-table th:nth-child(2) { width: 11%; }
.discover-table th:nth-child(3) { width: 31%; }
.discover-table th:nth-child(4) { width: 15%; }
.discover-table th:nth-child(5) { width: 14%; }
.discover-table th:nth-child(n+3), .discover-table td { text-align: left; }
.discover-table tbody tr, .discover-table td { height: 64px; }
.discover-prospect-cell small, .discover-prospect-cell em { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.discover-prospect-cell em { color: var(--attention); font-weight: 750; }
.discover-assessment-cell strong { display: block; color: var(--teal-dark); font-size: 18px; }
.discover-assessment-cell small, .discover-confidence-cell small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.discover-confidence-cell strong { display: block; color: var(--navy); font-size: 10px; }
.discover-signals-cell { white-space: normal !important; }
.discover-signals-cell .research-signal-chip { margin: 2px 2px 2px 0; }

.research-center-scope { min-width: 150px; padding: 11px 14px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius-panel); }
.research-center-scope strong, .research-center-scope span { display: block; }
.research-center-scope strong { color: var(--navy-deep); font-size: 21px; }
.research-center-scope span { margin-top: 2px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.research-search-card { display: grid; grid-template-columns: minmax(280px,1fr) 160px 160px auto auto; align-items: end; gap: 8px; margin-bottom: 16px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-soft); }
.research-search-card label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.research-search-card input, .research-search-card select { width: 100%; min-height: 36px; padding: 7px 9px; color: var(--ink); background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--radius-control); font: inherit; font-size: 10px; }
.research-search-card > a { padding: 10px 4px; color: var(--muted); font-size: 9px; font-weight: 750; }
.research-subject-list > a { min-height: 62px; display: grid; grid-template-columns: minmax(220px,1.45fr) minmax(210px,1fr) 130px 100px 95px; align-items: center; gap: 12px; padding: 9px 16px; color: var(--ink); text-decoration: none; }
.research-subject-list > a + a { border-top: 1px solid var(--line-soft); }
.research-subject-list > a:hover { background: var(--hover-wash); }
.research-subject-context { display: flex; flex-wrap: wrap; gap: 4px; }
.research-subject-context i { padding: 3px 6px; color: var(--navy); background: var(--neutral-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 8px; font-style: normal; }
.research-subject-assessment strong, .research-subject-assessment small { display: block; }
.research-subject-assessment strong { color: var(--teal-dark); font-size: 13px; }
.research-subject-assessment small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.research-subject-status { color: var(--verified-strong); font-size: 9px; font-weight: 800; }
.research-subject-status.open { color: var(--attention); }
.research-subject-open { color: var(--teal-dark); font-size: 9px; font-weight: 800; text-align: right; }
.research-map-secondary { margin-top: 16px; }
.research-map-secondary .cluena-map-surface { position: relative; min-height: 380px; overflow: hidden; background: var(--subtle); }
.research-map-secondary .cluena-map-live, .research-map-secondary .cluena-map-fallback { position: absolute; inset: 0; }
.research-map-secondary .cluena-map-live { z-index: 1; opacity: 0; }
.research-map-secondary .cluena-map-fallback { z-index: 2; background: var(--subtle); }
.research-map-secondary .map-is-ready .cluena-map-live { opacity: 1; }
.research-map-secondary .map-is-ready .cluena-map-fallback { opacity: 0; pointer-events: none; }
.research-map-secondary .candidate-map { width: 100%; height: 100%; }
.research-map-secondary .map-provider-attribution, .research-map-secondary .map-load-status { position: absolute; z-index: 4; bottom: 8px; padding: 4px 6px; border-radius: 4px; font-size: 8px; }
.research-map-secondary .map-provider-attribution { right: 8px; color: var(--muted); background: rgba(255,255,255,.9); }
.research-map-secondary .map-load-status { left: 8px; margin: 0; color: var(--on-navy); background: rgba(10,29,77,.88); }
.research-map-secondary .map-is-ready .map-load-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.subject-primary-assessment { min-width: 230px; padding: 14px 16px; background: var(--navy); border-bottom: 3px solid var(--teal); border-radius: var(--radius-panel); }
.subject-primary-assessment span, .subject-primary-assessment strong, .subject-primary-assessment p, .subject-primary-assessment small { display: block; }
.subject-primary-assessment span { color: var(--teal-bright); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.subject-primary-assessment strong { margin: 3px 0; color: var(--on-navy); font-size: 25px; }
.subject-primary-assessment p { margin: 0; color: var(--on-navy); font-size: 10px; font-weight: 750; }
.subject-primary-assessment small { margin-top: 4px; color: var(--on-navy-muted); font-size: 8px; }
.research-overview-synthesis { margin: 0 0 11px; color: var(--ink); font-size: 13px; line-height: 1.6; }
.research-overview-signals { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.research-overview-evidence { border-top: 1px solid var(--line); }
.research-overview-evidence > div { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 0; }
.research-overview-evidence > div + div { border-top: 1px solid var(--line-soft); }
.research-overview-evidence strong, .research-overview-evidence small { display: block; }
.research-overview-evidence strong { color: var(--navy-deep); font-size: 10px; }
.research-overview-evidence small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.research-overview-evidence a { color: var(--teal-dark); font-size: 9px; font-weight: 750; text-decoration: none; }

/* Research sandbox upgrade: geography, evidence-family access, and visible signals. */
.dashboard-geo-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: stretch; gap: 16px; margin-bottom: 16px; }
.dashboard-geography-card, .dashboard-evidence-launcher, .research-map-primary, .profile-signal-ribbon { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-soft); }
.dashboard-geography-card { display: flex; flex-direction: column; }
.dashboard-geography-card .dashboard-map-preview { min-height: 410px; }
.zip-boundary-note { min-height: 34px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; color: var(--muted); background: var(--sunken); border-top: 1px solid var(--line); font-size: 8px; line-height: 1.4; }
.zip-boundary-key { width: 22px; border-top: 2px dashed var(--teal-dark); }
.dashboard-evidence-launcher > header { padding: 15px 16px 12px; border-bottom: 1px solid var(--line); }
.dashboard-evidence-launcher h2 { margin: 2px 0 4px; color: var(--navy-deep); font-size: 17px; }
.dashboard-evidence-launcher header p:last-child { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.dashboard-evidence-launcher > a { display: block; padding: 11px 16px; color: var(--ink); text-decoration: none; }
.dashboard-evidence-launcher > a + a { border-top: 1px solid var(--line-soft); }
.dashboard-evidence-launcher > a:hover { background: var(--hover-wash); }
.dashboard-evidence-launcher > a span, .dashboard-evidence-launcher > a strong, .dashboard-evidence-launcher > a small { display: block; }
.dashboard-evidence-launcher > a span { color: var(--teal-dark); font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.dashboard-evidence-launcher > a strong { margin: 3px 0; color: var(--navy-deep); font-size: 10px; }
.dashboard-evidence-launcher > a small { color: var(--muted); font-size: 8px; line-height: 1.35; }

.research-search-card { grid-template-columns: minmax(260px,1fr) 170px 130px 140px auto auto; }
.research-lens-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin-bottom: 16px; }
.research-lens-grid a { min-width: 0; min-height: 94px; display: flex; flex-direction: column; padding: 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); text-decoration: none; }
.research-lens-grid a:hover, .research-lens-grid a.active { border-color: var(--teal); box-shadow: var(--shadow-soft); }
.research-lens-grid a.active { background: var(--verified-soft); }
.research-lens-grid span { color: var(--teal-dark); font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.research-lens-grid strong { margin: 5px 0 4px; color: var(--navy-deep); font-size: 10px; }
.research-lens-grid small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.research-map-layout { display: grid; grid-template-columns: minmax(0,1fr) 390px; align-items: stretch; gap: 16px; }
.research-map-primary { display: flex; flex-direction: column; }
.research-map-primary .cluena-map-surface { position: relative; flex: 1; min-height: 520px; overflow: hidden; background: var(--subtle); }
.research-map-primary .cluena-map-live, .research-map-primary .cluena-map-fallback { position: absolute; inset: 0; }
.research-map-primary .cluena-map-live { z-index: 1; opacity: 0; }
.research-map-primary .cluena-map-fallback { z-index: 2; background: var(--subtle); }
.research-map-primary .map-is-ready .cluena-map-live { opacity: 1; }
.research-map-primary .map-is-ready .cluena-map-fallback { opacity: 0; pointer-events: none; }
.research-map-primary .candidate-map { width: 100%; height: 100%; }
.research-map-primary .map-provider-attribution, .research-map-primary .map-load-status { position: absolute; z-index: 4; bottom: 8px; padding: 4px 6px; border-radius: 4px; font-size: 8px; }
.research-map-primary .map-provider-attribution { right: 8px; color: var(--muted); background: rgba(255,255,255,.9); }
.research-map-primary .map-load-status { left: 8px; margin: 0; color: var(--on-navy); background: rgba(10,29,77,.88); }
.research-map-primary .map-is-ready .map-load-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.research-map-legend { min-height: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 7px 14px; color: var(--muted); background: var(--sunken); border-bottom: 1px solid var(--line); font-size: 8px; }
.research-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.evidence-key, .evidence-marker { display: inline-block; border-radius: 50%; background: var(--navy); }
.evidence-key { width: 8px; height: 8px; }
.evidence-marker { width: 10px; height: 10px; }
.evidence-key.business, .evidence-marker.business { background: var(--info); }
.evidence-key.institutional, .evidence-marker.institutional { background: var(--teal-dark); }
.evidence-key.liquidity, .evidence-marker.liquidity { background: var(--attention); }
.research-subject-results { max-height: 665px; display: flex; flex-direction: column; }
.research-map-result-list { overflow: auto; }
.research-map-result { min-height: 86px; display: grid; grid-template-columns: 10px minmax(0,1fr) 56px; align-items: center; gap: 10px; padding: 10px 12px; color: var(--ink); text-decoration: none; }
.research-map-result + .research-map-result { border-top: 1px solid var(--line-soft); }
.research-map-result:hover, .research-map-result.is-map-hovered { background: var(--hover-wash); }
.research-map-result > span { min-width: 0; }
.research-map-result > span > strong, .research-map-result > span > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.research-map-result > span > strong { color: var(--navy-deep); font-size: 10px; }
.research-map-result > span > small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.research-result-signals { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.research-result-signals .research-signal-chip { min-height: 18px; padding: 2px 5px; }
.research-result-meta { text-align: right; }
.research-result-meta strong, .research-result-meta small, .research-result-meta b { display: block; }
.research-result-meta strong { color: var(--teal-dark); font-size: 15px; }
.research-result-meta small { color: var(--muted); font-size: 7px; }
.research-result-meta b { margin-top: 8px; color: var(--teal-dark); font-size: 8px; }

.profile-signal-ribbon { margin-bottom: 14px; }
.profile-signal-ribbon > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.profile-signal-ribbon h2 { margin: 1px 0 0; color: var(--navy-deep); font-size: 15px; }
.profile-signal-ribbon header a { color: var(--teal-dark); font-size: 9px; font-weight: 800; text-decoration: none; }
.profile-signal-ribbon-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); }
.profile-signal-card { min-height: 76px; display: grid; grid-template-columns: 8px minmax(0,1fr); align-items: center; gap: 10px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.profile-signal-card + .profile-signal-card { border-left: 1px solid var(--line-soft); }
.profile-signal-card:hover { background: var(--hover-wash); }
.profile-signal-card strong, .profile-signal-card small { display: block; }
.profile-signal-card strong { color: var(--navy-deep); font-size: 10px; }
.profile-signal-card small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.profile-signal-empty { grid-column: 1 / -1; padding: 14px; }
.profile-signal-empty strong, .profile-signal-empty span { display: block; }
.profile-signal-empty strong { color: var(--navy-deep); font-size: 10px; }
.profile-signal-empty span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.subject-evidence-summary { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--teal); }
.subject-evidence-summary span { color: var(--teal-dark); }
.subject-evidence-summary strong { color: var(--navy-deep); font-size: 20px; }
.subject-evidence-summary p { color: var(--ink); }
.subject-evidence-summary small { color: var(--muted); }
.research-sandbox-note { background: var(--verified-soft); border-color: var(--verified-line); }

@media (max-width: 1080px) {
  .dashboard-geo-grid, .research-map-layout { grid-template-columns: 1fr; }
  .dashboard-evidence-launcher { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-evidence-launcher > header { grid-column: 1 / -1; }
  .dashboard-evidence-launcher > a + a { border-top: 0; }
  .dashboard-evidence-launcher > a:nth-of-type(even) { border-left: 1px solid var(--line-soft); }
  .research-lens-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-research-grid { grid-template-columns: 1fr; }
  .dashboard-your-work { display: grid; grid-template-columns: 1fr 1fr; }
  .dashboard-your-work > header { grid-column: 1 / -1; }
  .dashboard-your-work > section + section { border-top: 0; border-left: 1px solid var(--line); }
  .dashboard-next-paths { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-next-paths header { grid-column: 1 / -1; }
  .research-search-card { grid-template-columns: minmax(260px,1fr) 150px 150px; }
  .research-search-card .button { grid-column: 1 / span 2; }
  .research-subject-list { min-width: 860px; }
  .research-subject-results { overflow-x: auto; }
}

@media (max-width: 700px) {
  .research-dashboard-hero, .research-center-hero { align-items: flex-start; flex-direction: column; }
  .market-summary-bar { grid-template-columns: 1fr; }
  .market-summary-bar > div + div { border-top: 1px solid var(--line-soft); border-left: 0; }
  .dashboard-your-work { display: block; }
  .dashboard-your-work > section + section { border-top: 1px solid var(--line); border-left: 0; }
  .dashboard-next-paths { grid-template-columns: 1fr; }
  .dashboard-next-paths header { grid-column: auto; }
  .market-context-grid { grid-template-columns: 1fr; }
  .market-context-grid section + section { border-top: 1px solid var(--line); border-left: 0; }
  .research-search-card { grid-template-columns: 1fr; }
  .research-search-card .button { grid-column: auto; }
  .brief-heading { align-items: stretch; flex-direction: column; }
  .subject-primary-assessment { width: 100%; }
  .dashboard-evidence-launcher, .research-lens-grid { grid-template-columns: 1fr; }
  .dashboard-evidence-launcher > a:nth-of-type(even) { border-left: 0; }
  .dashboard-evidence-launcher > a + a { border-top: 1px solid var(--line-soft); }
  .research-map-primary .cluena-map-surface { min-height: 380px; }
  .profile-signal-ribbon-grid { grid-template-columns: 1fr; }
  .profile-signal-card + .profile-signal-card { border-top: 1px solid var(--line-soft); border-left: 0; }
}

/* --- Audit fixes: 2026-08-14 --- */

/* Branded 404 (replaces the server's default unstyled Not Found page). */
.not-found-state { padding-block: 64px; text-align: center; }
.not-found-state .eyebrow { color: var(--teal-dark); }
.not-found-state h1 { margin-bottom: 10px; }
.not-found-state p { margin: 0 auto 24px; max-width: 46ch; color: var(--muted); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Superseded prior-vintage claims: visible for provenance, clearly not live. */
.superseded-claims { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.superseded-claims .eyebrow { color: var(--muted-strong); }
.superseded-claims > p.muted { margin-bottom: 14px; font-size: 12px; }
.claim-superseded { background: var(--sunken); border-style: dashed; }
.claim-superseded .claim-statement { font-weight: 500; color: var(--muted-strong); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.claim-superseded-flag { padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted-strong); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

/* Compact source list used on the brief Overview tab. */
.source-list.compact .source-item h3 { font-size: 14px; }
.source-list.compact .source-item p.secondary { color: var(--muted); font-size: 12px; }

/* Evidence confidence and identity are different measures; label both. */
.assessment-identity-line { margin-top: 2px; color: var(--on-navy-muted); font-size: 12px; }
.subject-primary-assessment p small { font-weight: 500; opacity: 0.8; }
.discover-table th small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }

/* One notice for a condition true of every row, instead of a per-row label. */
.discover-scope-notice, .research-queue-notice {
  margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--attention-line);
  border-radius: var(--radius-panel); background: var(--attention-soft);
  color: var(--muted-strong); font-size: 12px; line-height: 1.5;
}
.research-queue-notice { margin: 12px 16px 0; }
.research-subject-list.no-status > a { grid-template-columns: minmax(220px,1.45fr) minmax(210px,1fr) 130px 95px; }

/* Static dashboard concept - layout only; all controls and values are inert. */
.dashboard-concept { display: grid; gap: 16px; }
.dashboard-market-heading { padding: 7px 2px 2px; }
.dashboard-market-heading h1 { margin: 3px 0 0; color: var(--navy-deep); font-size: clamp(26px,3vw,38px); letter-spacing: -.04em; }

.dashboard-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: var(--radius-panel); box-shadow: var(--shadow-card); }
.dashboard-stat-grid article { min-width: 0; padding: 17px 18px 16px; }
.dashboard-stat-grid article + article { border-left: 1px solid var(--line); }
.dashboard-stat-grid strong,
.dashboard-stat-grid span { display: block; }
.dashboard-stat-grid strong { min-height: 30px; color: var(--navy-deep); font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.dashboard-stat-grid span { margin-top: 3px; color: var(--muted-strong); font-size: 10px; font-weight: 700; }

.dashboard-workspace { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(300px,.9fr); gap: 16px; }
.dashboard-map-card,
.dashboard-saved-card,
.dashboard-evidence-bar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-card); }
.dashboard-map-card { position: relative; min-height: 430px; overflow: hidden; background: #eef3f6; }
.dashboard-map-chrome { position: absolute; z-index: 4; inset: 14px 14px auto; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.dashboard-map-label,
.dashboard-map-key { display: inline-flex; align-items: center; min-height: 28px; padding: 6px 9px; color: var(--navy-deep); background: rgba(255,255,255,.93); border: 1px solid rgba(203,213,225,.9); border-radius: 5px; box-shadow: 0 3px 10px rgba(10,29,77,.08); font-size: 8px; font-weight: 750; }
.dashboard-map-key i { width: 12px; height: 7px; margin-right: 6px; background: rgba(20,184,166,.12); border: 2px solid var(--teal); border-radius: 2px; }
.dashboard-map-art { position: absolute; inset: 0; overflow: hidden; background-color: #e9eff2; background-image: linear-gradient(29deg,transparent 44%,rgba(255,255,255,.85) 45%,rgba(255,255,255,.85) 47%,transparent 48%), linear-gradient(116deg,transparent 40%,rgba(255,255,255,.78) 41%,rgba(255,255,255,.78) 43%,transparent 44%), linear-gradient(7deg,transparent 60%,rgba(203,213,225,.68) 61%,rgba(203,213,225,.68) 61.5%,transparent 62%); }
.dashboard-map-art::before,
.dashboard-map-art::after { content: ""; position: absolute; border: 1px solid rgba(148,163,184,.4); border-radius: 46% 54% 38% 62%; }
.dashboard-map-art::before { width: 300px; height: 210px; left: -80px; top: 135px; transform: rotate(-11deg); }
.dashboard-map-art::after { width: 250px; height: 170px; right: -55px; bottom: 20px; transform: rotate(13deg); }
.dashboard-map-boundary { position: absolute; z-index: 2; width: 44%; height: 57%; left: 27%; top: 21%; background: rgba(20,184,166,.11); border: 3px solid var(--teal); border-radius: 31% 48% 39% 55% / 42% 37% 58% 46%; transform: rotate(-6deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.dashboard-map-road { position: absolute; z-index: 1; display: block; height: 3px; background: rgba(255,255,255,.96); border-top: 1px solid rgba(148,163,184,.26); border-bottom: 1px solid rgba(148,163,184,.26); transform-origin: left center; }
.road-one { width: 82%; left: 9%; top: 44%; transform: rotate(-12deg); }
.road-two { width: 65%; left: 22%; top: 30%; transform: rotate(49deg); }
.road-three { width: 70%; left: 14%; top: 72%; transform: rotate(-27deg); }
.dashboard-map-river { position: absolute; z-index: 3; width: 31px; height: 125%; right: 13%; top: -12%; background: rgba(125,211,252,.48); border-left: 1px solid rgba(14,165,233,.28); border-right: 1px solid rgba(14,165,233,.28); border-radius: 50%; transform: rotate(11deg); }
.dashboard-map-card > p { position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; padding: 7px 10px; color: var(--muted-strong); background: rgba(255,255,255,.93); border: 1px solid var(--line); border-radius: 5px; font-size: 9px; white-space: nowrap; }

.dashboard-saved-card { min-height: 430px; display: flex; flex-direction: column; overflow: hidden; }
.dashboard-saved-card > header { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.dashboard-saved-card h2 { margin: 2px 0 0; color: var(--navy-deep); font-size: 15px; }
.dashboard-static-badge { padding: 3px 6px; color: var(--muted); background: var(--sunken); border: 1px solid var(--line); border-radius: 999px; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-saved-table { flex: 1; }
.dashboard-saved-head,
.dashboard-saved-row { display: grid; grid-template-columns: minmax(0,1fr) 92px; align-items: center; gap: 12px; padding-inline: 15px; }
.dashboard-saved-head { min-height: 33px; color: var(--muted); background: var(--sunken); border-bottom: 1px solid var(--line); font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-saved-head span:last-child { text-align: right; }
.dashboard-saved-row { min-height: 55px; border-bottom: 1px solid var(--line-soft); }
.dashboard-saved-row > span:first-child { display: grid; gap: 6px; }
.dashboard-saved-row > span:last-child { display: flex; justify-content: flex-end; }
.placeholder-line,
.placeholder-score { display: block; background: #e8edf2; border-radius: 999px; }
.placeholder-name { width: 72%; height: 8px; }
.placeholder-location { width: 46%; height: 5px; background: #f0f3f6; }
.placeholder-score { width: 35px; height: 19px; border-radius: 4px; }
.dashboard-saved-card > footer { min-height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 8px 15px; color: var(--muted); background: var(--sunken); font-size: 8px; }
.dashboard-saved-card > footer button { padding: 5px 7px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-weight: 700; opacity: .7; }

.dashboard-evidence-bar { display: grid; grid-template-columns: 180px minmax(0,1fr); align-items: stretch; overflow: hidden; }
.dashboard-evidence-bar > header { padding: 15px 16px; background: var(--navy); }
.dashboard-evidence-bar h2 { margin: 3px 0 0; color: var(--on-navy); font-size: 14px; }
.dashboard-evidence-bar > header .eyebrow { color: var(--teal); }
.dashboard-evidence-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.dashboard-evidence-options button { min-width: 0; display: grid; grid-template-columns: 27px minmax(0,1fr); grid-template-rows: auto auto; align-content: center; gap: 3px 9px; min-height: 86px; padding: 12px 13px; color: var(--ink); background: var(--paper); border: 0; border-left: 1px solid var(--line); text-align: left; font: inherit; opacity: 1; cursor: default; }
.dashboard-evidence-options button > span { grid-row: 1 / span 2; width: 27px; height: 27px; display: grid; place-items: center; align-self: center; color: var(--teal-dark); background: var(--verified-soft); border: 1px solid var(--verified-line); border-radius: 50%; font-size: 9px; font-weight: 850; }
.dashboard-evidence-options strong { overflow: hidden; color: var(--navy-deep); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-evidence-options small { overflow: hidden; color: var(--muted); font-size: 7px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1000px) {
  .dashboard-workspace { grid-template-columns: minmax(0,1.35fr) minmax(280px,1fr); }
  .dashboard-evidence-bar { grid-template-columns: 1fr; }
  .dashboard-evidence-options button:first-child { border-left: 0; }
}

@media (max-width: 760px) {
  .dashboard-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-stat-grid article:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .dashboard-stat-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .dashboard-workspace { grid-template-columns: 1fr; }
  .dashboard-map-card { min-height: 360px; }
  .dashboard-evidence-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-evidence-options button:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .dashboard-evidence-options button:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .dashboard-stat-grid { grid-template-columns: 1fr; }
  .dashboard-stat-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .dashboard-evidence-options { grid-template-columns: 1fr; }
  .dashboard-evidence-options button + button { border-top: 1px solid var(--line); border-left: 0; }
  .dashboard-map-key { display: none; }
}

/* Dashboard foundation v2 - unified shell, open spacing, restrained surfaces. */
.dashboard-preview-body {
  background: var(--app-background);
  font-size: var(--type-body-strong);
  line-height: var(--leading-body);
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
.dashboard-page-body { background: var(--app-background); }
.app-header.preview-header {
  --header-gutter: var(--layout-inline);
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 107px;
  padding-inline: var(--header-gutter);
  padding-block: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  grid-template-rows: 60px 44px;
  grid-template-areas:
    "brand selector account"
    "navigation navigation scope";
  align-items: stretch;
  column-gap: var(--space-6);
  row-gap: 0;
  color: var(--on-navy);
  background: var(--navy-deep);
  border-bottom: 3px solid var(--teal);
  box-shadow: var(--shadow-header);
}
.app-header.preview-header::after { content: ""; position: absolute; top: 60px; right: 0; left: 0; height: 1px; background: var(--border-header-divider); }
.app-header.preview-header .app-brand { grid-area: brand; align-self: center; justify-self: start; gap: var(--space-3); padding-block: var(--space-2); color: var(--on-navy); }
.app-header.preview-header .app-brand:hover { color: var(--on-navy); }
.app-header.preview-header .cluena-logo-mark {
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  padding: var(--brand-mark-clear-space);
  box-sizing: border-box;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  flex: 0 0 auto;
}
.app-header.preview-header .header-actions { grid-area: account; align-self: center; justify-self: end; }
.preview-header .brand-wordmark { color: var(--on-navy); font-size: var(--type-brand); font-weight: var(--weight-bold); letter-spacing: -.015em; }
.preview-primary-nav { grid-area: navigation; min-width: 0; height: 48px; display: flex; align-items: stretch; gap: var(--space-9); }
.preview-primary-nav a,
.preview-primary-nav span { position: relative; display: inline-flex; align-items: center; padding: 1px 0 0; color: var(--on-navy-nav); font-size: var(--type-body); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-nav); text-decoration: none; white-space: nowrap; }
.preview-primary-nav a:hover { color: var(--on-navy); }
.preview-primary-nav a.active { color: var(--on-navy); }
.preview-primary-nav a.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--teal); border-radius: 2px 2px 0 0; }
.preview-primary-nav span { opacity: .78; cursor: default; }
.preview-market-selector { grid-area: selector; align-self: center; justify-self: end; min-height: 34px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 11px 7px 13px; color: var(--on-navy-control); background: var(--on-navy-surface); border: var(--border-on-navy); border-radius: var(--radius-control-standard); font: inherit; font-size: var(--type-control); font-weight: var(--weight-semibold); opacity: 1; cursor: default; }
.preview-market-selector .market-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-grid;
  place-items: center;
  color: var(--teal-bright);
  font-size: 0;
  line-height: 0;
}
.preview-market-selector .market-chevron::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.preview-header .header-avatar { width: 32px; height: 32px; color: var(--navy-deep); background: var(--teal-avatar); border-color: var(--border-avatar); }
.dashboard-market-selector { position: relative; display: block; min-height: 0; padding: 0; background: transparent; border: 0; }
.dashboard-market-selector > .dashboard-menu-trigger { min-height: 34px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 11px 7px 13px; color: var(--on-navy-control); background: var(--on-navy-surface); border: var(--border-on-navy); border-radius: var(--radius-control-standard); font: inherit; font-size: var(--type-control); font-weight: var(--weight-semibold); cursor: pointer; }
.dashboard-market-selector > nav,
.dashboard-account-menu > nav { position: absolute; z-index: 1000; top: calc(100% + 7px); right: 0; min-width: 200px; padding: 6px; visibility: hidden; opacity: 0; pointer-events: none; background: var(--paper); border: var(--border-default); border-radius: var(--radius-control-standard); box-shadow: var(--shadow-menu); transform: translateY(-4px); transition: opacity 100ms ease, transform 100ms ease, visibility 100ms ease; }
.dashboard-market-selector::after,
.dashboard-account-menu::after { content: ""; position: absolute; z-index: 999; top: 100%; right: 0; width: 200px; height: 8px; }
.dashboard-market-selector[open] > nav,
.dashboard-account-menu[open] > nav { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.dashboard-market-selector > nav a,
.dashboard-market-selector > nav > span,
.dashboard-account-menu > nav a,
.dashboard-account-menu > nav button { width: 100%; display: block; padding: 8px 10px; color: var(--ink); background: transparent; border: 0; border-radius: var(--radius-control-compact); font: inherit; font-size: var(--type-control); text-align: left; text-decoration: none; }
.dashboard-market-selector > nav a:hover,
.dashboard-account-menu > nav a:hover,
.dashboard-account-menu > nav button:hover { color: var(--navy); background: var(--teal-tint); }
.dashboard-market-selector > nav a.active { color: var(--teal-dark); background: var(--teal-tint); font-weight: 700; }
.dashboard-account-menu { position: relative; }
.dashboard-account-menu > nav { min-width: 180px; }
.dashboard-account-menu::after { width: 180px; }
.header-account-trigger { display: inline-flex; align-items: center; gap: var(--space-2); padding: 4px 6px; color: var(--on-navy); background: transparent; border: 0; border-radius: var(--radius-control-standard); font: inherit; cursor: pointer; list-style: none; transition: background 100ms ease; }
.header-account-trigger::-webkit-details-marker { display: none; }
.header-account-trigger:hover,
.dashboard-account-menu[open] > .header-account-trigger { background: var(--on-navy-surface); }
.header-account-name { max-width: 180px; overflow: hidden; color: var(--on-navy); font-size: var(--type-control); font-weight: var(--weight-semibold); line-height: var(--leading-label); text-overflow: ellipsis; white-space: nowrap; }
.header-account-chevron { width: 7px; height: 7px; margin: -3px 2px 0 1px; border-right: 1.5px solid var(--teal-bright); border-bottom: 1.5px solid var(--teal-bright); transform: rotate(45deg); transition: transform 100ms ease, margin 100ms ease; }
.dashboard-account-menu[open] .header-account-chevron { margin: 3px 2px 0 1px; transform: rotate(225deg); }
.dashboard-account-menu form { margin: 4px 0 0; padding-top: 4px; border-top: var(--border-row); }
.dashboard-account-menu nav button { cursor: pointer; }
.dashboard-account-menu nav [aria-disabled="true"] { cursor: default; }
.dashboard-page-body .app-content { min-height: 0; padding: var(--page-content-padding-start) 0 var(--page-content-padding-end); background: transparent; }
.dashboard-preview-body .preview-footer { min-height: 42px; color: rgba(81,96,122,.72); font-size: var(--type-label); line-height: var(--leading-label); }
.dashboard-preview-body .preview-footer span:last-child { gap: var(--space-3); }
.dashboard-preview-body .preview-footer a { color: inherit; }

.dashboard-foundation { display: grid; gap: var(--page-stack-gap); }
.foundation-market-heading { --page-header-title-size: var(--type-context-title); --page-header-title-leading: var(--leading-title); display: block; padding: var(--page-header-inset) var(--page-header-inset) var(--space-2); }
.foundation-market-heading p { margin: 0 0 10px; color: var(--teal-dark); font-size: var(--type-label); font-weight: var(--weight-bold); letter-spacing: var(--tracking-label); line-height: var(--leading-label); text-transform: uppercase; }
.foundation-market-heading h1 { word-spacing: .1em; }

.foundation-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; overflow: hidden; background: var(--paper); border: var(--border-default); border-radius: var(--radius-card); }
.foundation-stat-grid article { --surface-border: 0; --surface-radius: 0; --surface-shadow: none; border-right: var(--border-default); min-width: 0; min-height: 96px; display: flex; flex-direction: column; justify-content: center; padding: var(--surface-padding) 22px; }
.foundation-stat-grid article:last-child { border-right: 0; }
.foundation-stat-grid strong,
.foundation-stat-grid span { display: block; }
.foundation-stat-grid strong { color: var(--navy-deep); font-size: var(--type-metric); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: var(--leading-metric); }
.foundation-stat-grid span { margin-top: 6px; color: var(--muted-strong); font-size: var(--type-body); font-weight: var(--weight-medium); line-height: var(--leading-label); }

.foundation-workspace { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(340px,1fr); gap: var(--space-4); align-items: stretch; }
.foundation-map,
.foundation-saved { --surface-border: var(--border-default); --surface-radius: var(--radius-card); --surface-shadow: var(--shadow-card); position: relative; min-height: 360px; overflow: hidden; }
.foundation-map-live,
.foundation-map-fallback { position: absolute; inset: 0; transition: opacity 160ms ease; }
.foundation-map-live { z-index: 1; opacity: 0; }
.foundation-map-fallback { z-index: 2; background: #edf3f3; }
.dashboard-map-shell.map-is-ready .foundation-map-live { opacity: 1; }
.dashboard-map-shell.map-is-ready .foundation-map-fallback { opacity: 0; pointer-events: none; }
.foundation-map-fallback svg { display: block; width: 100%; height: 100%; }
.foundation-map-neutral { fill: #edf3f3; }
.foundation-map-point { fill: var(--teal-dark); stroke: var(--paper); stroke-width: 3; transition: r 120ms ease; }
.foundation-map-point:hover { r: 12; }
.cluena-prospect-popup .maplibregl-popup-content { padding: 0; overflow: hidden; border: 1px solid rgba(15,118,110,.16); border-radius: 8px; box-shadow: 0 8px 24px rgba(10,29,77,.14); }
.cluena-prospect-popup .maplibregl-popup-tip { border-top-color: var(--paper); }
.cluena-prospect-popup-content { min-width: 176px; display: grid; gap: 4px; padding: 12px 14px; background: var(--paper); }
.cluena-prospect-popup-content strong { overflow: hidden; color: var(--navy-deep); font-size: 14px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.cluena-prospect-popup-content span { color: var(--teal-dark); font-size: 12px; font-weight: 650; line-height: 1.25; }
.cluena-prospect-popup-content small { color: var(--muted-strong); font-size: 12px; line-height: 1.3; }
.foundation-map-attribution { position: absolute; z-index: 4; right: 8px; bottom: 8px; padding: 3px 5px; color: var(--muted); background: rgba(255,255,255,.9); border-radius: 4px; font-size: 8px; line-height: 1.2; }
.foundation-map-empty { display: grid; place-items: center; padding: 32px; color: var(--muted); background: #edf3f3; text-align: center; }
.foundation-map-empty p { max-width: 260px; margin: 0; font-size: 13px; }
.foundation-saved { --section-title-size: var(--type-section-title-compact); display: flex; flex-direction: column; }
.foundation-saved > header { min-height: 66px; display: flex; align-items: center; padding: 20px 26px 10px; }
.foundation-saved-list { flex: 1; padding: 0 26px; }
.foundation-saved-head,
.foundation-saved-row { display: grid; grid-template-columns: minmax(0,1fr) 92px; align-items: center; gap: 14px; }
.foundation-saved-head { min-height: 38px; color: var(--muted); font-size: var(--type-label); font-weight: var(--weight-semibold); }
.foundation-saved-head span:last-child { text-align: right; }
.foundation-saved-row { position: relative; min-height: 54px; color: var(--ink); border-top: var(--border-row); text-decoration: none; transition: background 120ms ease; }
.foundation-saved-row::after { content: "›"; position: absolute; right: 1px; top: 50%; color: var(--muted-soft); font-size: 19px; font-weight: 400; line-height: 1; opacity: .68; transform: translateY(-52%); transition: color 120ms ease, transform 120ms ease, opacity 120ms ease; }
.foundation-saved-row:hover { color: var(--ink); background: rgba(231,248,245,.52); }
.foundation-saved-row:hover::after { color: var(--teal-dark); opacity: 1; transform: translate(2px,-52%); }
.foundation-saved-row > span { min-width: 0; }
.foundation-saved-row > span:last-child { padding-right: 18px; text-align: right; }
.foundation-saved-row strong,
.foundation-saved-row small,
.foundation-saved-row b { display: block; }
.foundation-saved-row strong { overflow: hidden; color: var(--navy-deep); font-size: var(--type-body-strong); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-card); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.foundation-saved-row:hover strong { text-decoration: none; }
.foundation-saved-row b { color: var(--navy-deep); font-size: var(--type-section-title-compact); font-weight: var(--weight-title); font-variant-numeric: tabular-nums; line-height: 1; }
.foundation-saved-empty { min-height: 150px; display: grid; place-items: center; color: var(--muted); border-top: var(--border-row); font-size: var(--type-label); text-align: center; }
.foundation-saved > footer { min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 10px 26px var(--space-3); color: var(--muted); border-top: var(--border-row-soft); font-size: var(--type-label); }
.foundation-saved > footer nav { display: flex; gap: 14px; }
.foundation-saved > footer a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.foundation-saved > footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foundation-saved > footer button { padding: 4px 0; color: var(--muted-soft); background: transparent; border: 0; font: inherit; font-weight: 600; cursor: default; }
.foundation-saved > footer button:disabled { opacity: .42; }
.foundation-saved > footer .foundation-next-page { min-width: 48px; text-align: right; }

.foundation-evidence { --section-title-size: var(--type-section-title-compact); display: grid; gap: var(--section-stack-gap); padding: var(--space-2) 0 0; }
.foundation-evidence-heading { padding-inline: 2px; }
.foundation-evidence-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-4); }
.foundation-evidence-card { --surface-border: var(--border-subtle); --surface-radius: var(--radius-card-compact); --surface-shadow: var(--shadow-card-subtle); min-width: 0; min-height: 104px; display: flex; flex-direction: column; gap: var(--surface-padding); padding: var(--surface-padding); color: var(--ink); text-decoration: none; transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease; }
a.foundation-evidence-card:hover { color: var(--ink); background: var(--subtle); border-color: var(--line-strong); box-shadow: var(--shadow-card-hover); }
.foundation-evidence-card.is-empty { --surface-shadow: none; }
.foundation-evidence-card.is-unavailable .foundation-evidence-card-count > strong { color: var(--muted); font-size: var(--type-body); font-weight: var(--weight-regular); letter-spacing: 0; }
.foundation-evidence-card-heading { min-width: 0; display: flex; align-items: center; gap: var(--space-3); }
.foundation-evidence-card-heading > strong { overflow: hidden; color: var(--navy-deep); font-size: var(--type-body); font-weight: var(--weight-semibold); line-height: var(--leading-compact); white-space: normal; }
.foundation-evidence-card-count { display: flex; align-items: baseline; gap: var(--space-2); margin-top: auto; }
.foundation-evidence-card-count > strong { color: var(--navy-deep); font-size: var(--type-metric); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: var(--leading-metric); }
.foundation-evidence-card-count > span { color: var(--muted-strong); font-size: var(--type-label); font-weight: var(--weight-medium); line-height: var(--leading-label); }

.dashboard-map-shell[data-evidence-focus] .foundation-map-point { opacity: .18; }
.dashboard-map-shell[data-evidence-focus="property"] .foundation-map-point.has-property,
.dashboard-map-shell[data-evidence-focus="business"] .foundation-map-point.has-business,
.dashboard-map-shell[data-evidence-focus="institutional"] .foundation-map-point.has-institutional,
.dashboard-map-shell[data-evidence-focus="transactions"] .foundation-map-point.has-transactions { opacity: 1; }
.dashboard-map-shell[data-evidence-focus="property"] .foundation-map-point.has-property { fill: var(--evidence-property); }
.dashboard-map-shell[data-evidence-focus="business"] .foundation-map-point.has-business { fill: var(--evidence-business); }
.dashboard-map-shell[data-evidence-focus="institutional"] .foundation-map-point.has-institutional { fill: var(--evidence-institutional); }
.dashboard-map-shell[data-evidence-focus="transactions"] .foundation-map-point.has-transactions { fill: var(--evidence-transactions); }

@media (max-width: 960px) {
  .foundation-evidence-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .app-header.preview-header { --header-gutter: var(--layout-inline); min-height: 111px; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 60px 44px 48px; grid-template-areas: "brand account" "selector selector" "navigation navigation"; column-gap: 18px; }
  .app-header.preview-header::after { top: 60px; }
  .preview-primary-nav { gap: 18px; overflow-x: auto; }
  .preview-primary-nav a, .preview-primary-nav span { font-size: var(--type-control); white-space: nowrap; }
  .preview-market-selector { display: block; }
  .foundation-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .foundation-stat-grid article:nth-child(2) { border-right: 0; }
  .foundation-stat-grid article:nth-child(n+3) { border-top: var(--border-default); }
  .foundation-workspace { grid-template-columns: 1fr; }
  .foundation-map { min-height: 300px; }
  .foundation-saved { min-height: 240px; }
  .foundation-evidence-card { min-height: 118px; }
}

@media (max-width: 560px) {
  .header-account-name,
  .header-account-chevron { display: none; }
  .header-account-trigger { padding: 2px; }
}

@media (max-width: 500px) {
  .preview-header .brand-wordmark { display: none; }
  .preview-primary-nav { gap: 14px; }
  .dashboard-foundation { gap: var(--page-stack-gap); }
  .foundation-stat-grid article { padding: var(--space-4); }
  .foundation-evidence-cards { grid-template-columns: 1fr; gap: var(--space-3); }
  .foundation-saved-head, .foundation-saved-row { grid-template-columns: minmax(0,1fr) 82px; }
}

/* Prospect Profile — shared-system migration and density refinement. */
body.profile-preview-page-body .app-content {
  padding-inline: 0;
}

.prospect-profile-preview {
  display: grid;
  gap: var(--page-stack-gap);
  padding-bottom: 0;
}

.prospect-profile-preview .profile-page-heading {
  width: 100%;
  display: grid;
  gap: var(--space-1);
  margin-inline: auto;
}

.prospect-profile-preview .profile-preview-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--page-header-inset);
  margin-left: var(--page-header-inset);
  color: var(--muted-strong);
  font-size: var(--type-control);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: color 140ms ease, transform 140ms ease;
}

.prospect-profile-preview .profile-preview-back span {
  color: var(--navy);
}

.prospect-profile-preview .profile-preview-back:hover {
  color: var(--navy-deep);
  transform: translateX(-2px);
}

.prospect-profile-preview .profile-preview-hero {
  --page-header-title-size: var(--type-page-title);
  --page-header-title-weight: var(--weight-title);
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
  padding: 0 0 var(--space-2);
}

.profile-preview-identity {
  min-width: 0;
  padding-inline: var(--page-header-inset);
}

.prospect-profile-preview .profile-preview-name-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.prospect-profile-preview .profile-preview-location {
  margin-top: var(--space-2);
  color: var(--muted-strong);
  font-size: var(--type-body);
  line-height: var(--leading-label);
}

.prospect-profile-preview .profile-icon-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--muted-strong);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-control-standard);
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.prospect-profile-preview .profile-icon-button:hover {
  color: var(--navy-deep);
  background: var(--sunken);
  border-color: var(--line);
}

.prospect-profile-preview .profile-icon-button svg,
.prospect-profile-preview .profile-contact-item > svg,
.prospect-profile-preview .profile-add-details summary svg,
.prospect-profile-preview .profile-add-note summary svg,
.prospect-profile-preview .profile-score-label svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prospect-profile-preview .profile-preview-save-form {
  flex: 0 0 auto;
}

.prospect-profile-preview .profile-preview-save {
  min-height: 42px;
  width: 100%;
  gap: var(--space-2);
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.prospect-profile-preview .profile-save-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prospect-profile-preview .profile-save-icon-confirmed {
  display: none;
}

.prospect-profile-preview .profile-preview-save[aria-pressed="true"] {
  color: var(--navy);
  background: var(--sunken);
  border-color: var(--line-strong);
  box-shadow: none;
}

.prospect-profile-preview .profile-preview-save[aria-pressed="true"]:hover {
  color: var(--navy-deep);
  background: var(--paper);
  border-color: var(--navy);
}

.prospect-profile-preview .profile-preview-save[aria-pressed="true"] .profile-save-icon-default {
  display: none;
}

.prospect-profile-preview .profile-preview-save[aria-pressed="true"] .profile-save-icon-confirmed {
  display: block;
  fill: currentColor;
}

.prospect-profile-preview .profile-contact-card,
.prospect-profile-preview .profile-notes-card {
  --surface-shadow: var(--shadow-card-subtle);
  padding: var(--space-5);
}

.prospect-profile-preview .profile-section-heading {
  justify-content: space-between;
  gap: var(--space-5);
}

.prospect-profile-preview .profile-contact-line {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: var(--border-row-soft);
}

.prospect-profile-preview .profile-contact-empty p,
.prospect-profile-preview .profile-notes-empty {
  margin: 0;
  color: var(--muted-strong);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.prospect-profile-preview .profile-address-evidence {
  width: 100%;
  padding-bottom: var(--space-3);
  border-bottom: var(--border-row-soft);
}

.prospect-profile-preview .profile-address-evidence:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.prospect-profile-preview .profile-address-evidence > span,
.prospect-profile-preview .profile-address-evidence > small {
  display: block;
  color: var(--muted);
  font-size: var(--type-label);
  line-height: var(--leading-label);
}

.prospect-profile-preview .profile-address-evidence address {
  margin: 3px 0 5px;
  color: var(--navy-deep);
  font-size: var(--type-body);
  font-style: normal;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-body);
}

.prospect-profile-preview .profile-address-evidence a {
  color: var(--navy);
}

.prospect-profile-preview .profile-address-more,
.prospect-profile-preview .profile-address-disclosure {
  margin: 0;
  color: var(--muted-strong);
  font-size: var(--type-label);
  line-height: var(--leading-body);
}

.prospect-profile-preview .profile-address-disclosure {
  padding-top: var(--space-1);
  border-top: var(--border-row-soft);
}

.prospect-profile-preview .profile-contact-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  color: var(--navy-deep);
  text-decoration: none;
}

.prospect-profile-preview .profile-contact-item > svg {
  margin-top: 18px;
  color: var(--navy);
}

.prospect-profile-preview .profile-contact-item small,
.prospect-profile-preview .profile-contact-item strong {
  display: block;
}

.prospect-profile-preview .profile-contact-item small {
  color: var(--muted);
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
  line-height: var(--leading-label);
}

.prospect-profile-preview .profile-contact-item strong {
  margin-top: 1px;
  overflow: hidden;
  font-size: var(--type-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-label);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-profile-preview .profile-contact-item:hover strong {
  color: var(--navy);
}

.prospect-profile-preview .profile-add-details {
  position: relative;
  margin: 0;
}

.prospect-profile-preview .profile-add-details summary,
.prospect-profile-preview .profile-add-note summary {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  border-radius: var(--radius-control-compact);
  font-size: var(--type-control);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  list-style: none;
}

.prospect-profile-preview .profile-add-details summary::-webkit-details-marker,
.prospect-profile-preview .profile-add-note summary::-webkit-details-marker {
  display: none;
}

.prospect-profile-preview .profile-add-details summary:hover,
.prospect-profile-preview .profile-add-note summary:hover {
  color: var(--navy-deep);
}

.prospect-profile-preview .profile-add-details-panel {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--subtle);
  border: var(--border-default);
  border-radius: var(--radius-card-compact);
}

.prospect-profile-preview .profile-summary {
  padding: var(--space-5) 0 0;
}

.prospect-profile-preview .profile-summary > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.prospect-profile-preview .profile-summary h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: var(--type-body-strong);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-compact);
}

.prospect-profile-preview .profile-summary header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--type-label);
  line-height: var(--leading-label);
}

.prospect-profile-preview .profile-summary p {
  margin: var(--space-2) 0 0;
  color: var(--muted-strong);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.prospect-profile-preview .profile-notes {
  margin-top: var(--space-3);
}

.prospect-profile-preview .profile-note-row {
  display: block;
  padding: var(--space-3) 0;
  border-top: var(--border-row-soft);
}

.prospect-profile-preview .profile-note-row:first-child {
  border-top: 0;
}

.prospect-profile-preview .profile-note-row p {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: var(--weight-medium);
  line-height: var(--leading-body);
}

.prospect-profile-preview .profile-note-row time {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: var(--type-label);
  line-height: var(--leading-label);
  font-variant-numeric: tabular-nums;
}

.prospect-profile-preview .profile-add-note {
  margin: var(--space-2) 0 0;
}

.prospect-profile-preview .profile-add-note > div {
  max-width: 760px;
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.prospect-profile-preview .profile-add-note .form-textarea {
  min-width: 0;
  flex: 1;
}

.prospect-profile-preview .profile-workspace {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, .78fr);
  gap: var(--space-4);
  align-items: stretch;
  margin-inline: auto;
}

.prospect-profile-preview .profile-side-rail {
  min-width: 0;
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.prospect-profile-preview .profile-intelligence-brief {
  --surface-shadow: var(--shadow-card-subtle);
  min-width: 0;
  height: 100%;
  align-self: stretch;
  padding: var(--space-6) var(--space-7);
}

.prospect-profile-preview .profile-overview-score {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-5);
}

.prospect-profile-preview .profile-score-summary {
  flex: 0 0 auto;
  display: block;
}

/* The assessment is a number, not a progress or confidence gauge. */
.prospect-profile-preview .profile-score-value {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  color: var(--navy-deep);
  font-variant-numeric: tabular-nums;
}

.prospect-profile-preview .profile-score-value strong {
  font-size: var(--type-score);
  font-weight: var(--weight-title);
  line-height: 1;
}

.prospect-profile-preview .profile-score-value span {
  color: var(--muted);
  font-size: var(--type-label);
}

.prospect-profile-preview .profile-score-context {
  min-width: 0;
  display: grid;
  gap: var(--space-3);
}

.prospect-profile-preview .profile-score-label {
  color: var(--navy-deep);
  font-size: var(--type-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-label);
}

.prospect-profile-preview .profile-score-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding-top: var(--space-3);
  border-top: var(--border-row-strong);
}

.prospect-profile-preview .profile-score-facts > div {
  min-width: 0;
  padding-inline: var(--space-4);
  border-left: var(--border-row-strong);
}

.prospect-profile-preview .profile-score-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.prospect-profile-preview .profile-score-facts dt,
.prospect-profile-preview .profile-score-facts dd {
  margin: 0;
}

.prospect-profile-preview .profile-score-facts dt {
  color: var(--muted);
  font-size: var(--type-label);
  font-weight: var(--weight-regular);
  line-height: var(--leading-label);
}

.prospect-profile-preview .profile-score-facts dd {
  margin-top: 3px;
  color: var(--navy-deep);
  font-size: var(--type-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-compact);
}

.prospect-profile-preview .profile-story-inline {
  margin-top: var(--space-5);
  padding-top: 0;
  border-top: 0;
}

.prospect-profile-preview .profile-story-inline h3 {
  margin: 0 0 var(--space-3);
  color: var(--navy-deep);
  font-size: var(--type-section-title-compact);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-section);
  line-height: var(--leading-compact);
}

.prospect-profile-preview .profile-story-inline p {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: var(--type-body-strong);
  line-height: var(--leading-reading);
}

.prospect-profile-preview .profile-story-inline p + p {
  margin-top: var(--space-3);
}

.prospect-profile-preview .profile-story-inline a {
  color: var(--navy);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.prospect-profile-preview .profile-story-inline a:hover {
  color: var(--navy-deep);
  text-decoration-color: var(--navy);
}

.prospect-profile-preview .profile-evidence-section {
  width: 100%;
  display: grid;
  gap: 0;
  overflow: hidden;
  margin-inline: auto;
  --surface-shadow: var(--shadow-card-subtle);
}

.prospect-profile-preview .profile-evidence-heading {
  min-height: 0;
  padding: var(--space-6) var(--space-6) var(--space-5);
  border-bottom: 0;
}

.prospect-profile-preview .profile-evidence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 var(--space-6) var(--space-6);
}

.prospect-profile-preview .profile-evidence-empty {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-5);
  color: var(--muted-strong);
  background: var(--subtle);
  border-radius: var(--radius-control-standard);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.prospect-profile-preview .profile-evidence-empty strong {
  color: var(--navy-deep);
  font-weight: var(--weight-semibold);
}

.prospect-profile-preview .profile-evidence-card {
  --evidence-color: var(--evidence-property);
  --evidence-soft: var(--evidence-property-soft);
  min-height: 0;
  display: grid;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scroll-margin-top: calc(139px + var(--space-4));
}

.prospect-profile-preview .profile-evidence-card + .profile-evidence-card {
  margin-top: var(--space-4);
  padding-top: 0;
  border-top: 0;
}

.prospect-profile-preview .profile-evidence-category-header {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 0 var(--space-2);
}

.prospect-profile-preview .profile-evidence-heading-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.prospect-profile-preview .profile-evidence-heading-group .evidence-letter-chip {
  color: var(--evidence-color);
  background: var(--evidence-soft);
  border-color: transparent;
  font-weight: var(--weight-semibold);
}

.prospect-profile-preview .profile-evidence-card.is-empty .profile-evidence-heading-group .evidence-letter-chip {
  color: var(--muted);
  background: transparent;
  border-color: var(--line-strong);
}

.prospect-profile-preview .profile-evidence-card.is-empty .profile-evidence-title {
  color: var(--muted-strong);
  font-weight: var(--weight-semibold);
}

.prospect-profile-preview .profile-evidence-missing {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--type-label);
  font-weight: var(--weight-regular);
  line-height: var(--leading-label);
}

.prospect-profile-preview .profile-evidence-title {
  color: var(--navy-deep);
  font-size: var(--type-card-title);
  font-weight: var(--weight-title);
  line-height: var(--leading-compact);
  letter-spacing: var(--tracking-card);
}

.prospect-profile-preview .profile-evidence-table-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--paper);
  border: var(--border-default);
  border-radius: var(--radius-control-standard);
}

.prospect-profile-preview table.profile-evidence-table {
  width: 100%;
  min-width: 0;
  display: table;
  table-layout: fixed;
  border: 0;
  border-collapse: collapse;
}

.prospect-profile-preview .profile-evidence-table .profile-evidence-signal-column {
  width: 28%;
}

.prospect-profile-preview .profile-evidence-table .profile-evidence-source-column {
  width: 176px;
}

.prospect-profile-preview .profile-evidence-table thead {
  display: table-header-group;
}

.prospect-profile-preview .profile-evidence-table tbody {
  display: table-row-group;
}

.prospect-profile-preview .profile-evidence-table tr {
  display: table-row;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.prospect-profile-preview .profile-evidence-table thead th {
  display: table-cell;
  padding: 9px var(--space-4);
  color: var(--muted-strong);
  background: var(--subtle);
  border: 0;
  border-bottom: var(--border-row-strong);
  font-size: var(--type-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-label);
  text-align: left;
  text-transform: uppercase;
}

.prospect-profile-preview .profile-evidence-table tbody th,
.prospect-profile-preview .profile-evidence-table tbody td {
  min-width: 0;
  display: table-cell;
  padding: var(--space-3) var(--space-4);
  border: 0;
  border-bottom: var(--border-row-soft);
  vertical-align: top;
  text-align: left;
}

.prospect-profile-preview .profile-evidence-table tbody tr:last-child > * {
  border-bottom: 0;
}

.prospect-profile-preview .profile-evidence-table tbody tr:hover {
  background: var(--subtle);
}

.prospect-profile-preview .profile-evidence-table tbody th {
  color: var(--navy-deep);
  background: transparent;
  font-size: var(--type-body);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  line-height: var(--leading-compact);
  text-transform: none;
}

.prospect-profile-preview .profile-evidence-table tbody td {
  color: var(--muted-strong);
  font-size: var(--type-control);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
}

.prospect-profile-preview .profile-evidence-table [data-label]::before {
  content: none;
}

.prospect-profile-preview .profile-signal-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-top: var(--space-1);
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: var(--type-label);
  font-weight: var(--weight-regular);
  line-height: var(--leading-label);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

.prospect-profile-preview .profile-signal-source:hover {
  color: var(--navy-deep);
  background: transparent;
  text-decoration-color: var(--navy-deep);
}

.prospect-profile-preview .profile-evidence-table .profile-signal-source {
  margin-top: 0;
}

.prospect-profile-preview .profile-evidence-table .profile-signal-source.is-static {
  text-decoration: none;
}

.prospect-profile-preview .profile-evidence-table td > small {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: var(--type-metadata);
  line-height: var(--leading-label);
}

.prospect-profile-preview .profile-evidence-business {
  --evidence-color: var(--evidence-business);
  --evidence-soft: var(--evidence-business-soft);
}

.prospect-profile-preview .profile-evidence-institutional {
  --evidence-color: var(--evidence-institutional);
  --evidence-soft: var(--evidence-institutional-soft);
}

.prospect-profile-preview .profile-evidence-transactions {
  --evidence-color: var(--evidence-transactions);
  --evidence-soft: var(--evidence-transactions-soft);
}

@media (max-width: 940px) {
  .prospect-profile-preview .profile-workspace {
    grid-template-columns: 1fr;
  }

  .prospect-profile-preview .profile-intelligence-brief {
    height: auto;
  }
}

@media (max-width: 680px) {
  .prospect-profile-preview {
    gap: var(--page-stack-gap);
  }

  .prospect-profile-preview .profile-preview-hero {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-4);
    padding-top: 0;
  }

  .prospect-profile-preview .profile-preview-name-row {
    align-items: center;
    flex-direction: row;
    gap: var(--space-2);
  }

  .prospect-profile-preview .profile-preview-save {
    width: 100%;
  }

  .prospect-profile-preview .profile-preview-save-form {
    width: 100%;
  }

  .prospect-profile-preview .profile-contact-card,
  .prospect-profile-preview .profile-notes-card,
  .prospect-profile-preview .profile-intelligence-brief {
    padding: var(--space-5);
  }

  .prospect-profile-preview .profile-contact-line {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-4);
  }

  .prospect-profile-preview .profile-add-note > div {
    align-items: stretch;
    flex-direction: column;
  }

  .prospect-profile-preview .profile-evidence-grid {
    grid-template-columns: 1fr;
  }

  .prospect-profile-preview .profile-overview-score {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-4);
  }

  .prospect-profile-preview .profile-score-facts {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .prospect-profile-preview .profile-score-facts > div,
  .prospect-profile-preview .profile-score-facts > div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .prospect-profile-preview .profile-evidence-category-header {
    padding-inline: 0;
  }

  .prospect-profile-preview .profile-evidence-table-wrap {
    border-radius: var(--radius-control-standard);
  }

  .prospect-profile-preview table.profile-evidence-table {
    display: block;
  }

  .prospect-profile-preview .profile-evidence-table thead {
    display: none;
  }

  .prospect-profile-preview .profile-evidence-table tbody {
    display: grid;
    gap: 0;
  }

  .prospect-profile-preview .profile-evidence-table tbody tr {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-4);
  }

  .prospect-profile-preview .profile-evidence-table tbody tr + tr {
    border-top: var(--border-row-strong);
  }

  .prospect-profile-preview .profile-evidence-table tbody th,
  .prospect-profile-preview .profile-evidence-table tbody td {
    display: block;
    padding: 0;
    border: 0;
  }

  .prospect-profile-preview .profile-evidence-table tbody th::before,
  .prospect-profile-preview .profile-evidence-table tbody td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    content: attr(data-label);
    font-size: var(--type-label);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-label);
    line-height: var(--leading-label);
    text-transform: uppercase;
  }

  .prospect-profile-preview .profile-evidence-table tbody th::before {
    display: none;
  }

  .prospect-profile-preview .profile-signal-source {
    margin-top: var(--space-1);
  }
}

/* CluenaIQ owns its responsive table behavior. The legacy application-wide
   mobile table rules above turn every table into stacked cards; that treatment
   breaks the approved filter-rail + ranking-table composition. */
@media (max-width: 900px) {
  .cluenaiq-workspace {
    grid-template-columns: 1fr;
  }

  .cluenaiq-refine {
    position: static;
  }

  .cluenaiq-refine form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cluenaiq-evidence-filter {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cluenaiq-evidence-filter legend {
    grid-column: 1 / -1;
  }
}

@media (max-width: 850px) {
  .cluenaiq-table {
    display: table;
    min-width: 880px;
  }

  .cluenaiq-table thead {
    display: table-header-group;
  }

  .cluenaiq-table tbody {
    display: table-row-group;
  }

  .cluenaiq-table tbody tr {
    height: 54px;
    display: table-row;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .cluenaiq-table td,
  .cluenaiq-table td:first-child {
    height: 54px;
    display: table-cell;
    padding: 8px 16px;
    border: 0;
    border-bottom: var(--border-row-soft);
    vertical-align: middle;
  }

  .cluenaiq-table td::before,
  .cluenaiq-table td:first-child::before {
    display: none;
    content: none;
  }
}

@media (max-width: 500px) {
  .cluenaiq-refine form,
  .cluenaiq-evidence-filter {
    grid-template-columns: 1fr;
  }

  .cluenaiq-evidence-filter legend {
    grid-column: auto;
  }
}

/* Shared header: explicit disclosures, reachable market scope, saved research. */
.dashboard-menu-trigger { list-style: none; }
.dashboard-menu-trigger::-webkit-details-marker { display: none; }
.dashboard-market-selector > .dashboard-menu-trigger,
.header-account-trigger { min-height: 44px; min-width: 44px; }
.dashboard-market-selector > nav { width: 300px; max-width: calc(100vw - 32px); }
.dashboard-market-selector > nav,
.dashboard-account-menu > nav { max-height: calc(100dvh - 180px); overflow-y: auto; }
.dashboard-market-selector > nav a,
.dashboard-account-menu > nav a,
.dashboard-account-menu > nav button { min-height: 44px; display: flex; align-items: center; }
.market-label { color: var(--on-navy-nav); font-size: var(--type-label); font-weight: var(--weight-regular); }
.market-selection { min-width: 0; display: grid; gap: 1px; text-align: left; }
.market-selection .market-label { white-space: normal; line-height: var(--leading-label); }
.market-menu-intro { margin: 0; padding: 6px 10px 8px; color: var(--muted-strong); font-size: var(--type-label); font-weight: var(--weight-medium); }
.market-state { padding: 8px 0 4px; border-top: var(--border-row); }
.market-state-name { margin: 0; padding: 0 10px; color: var(--navy); font-size: var(--type-label); font-weight: var(--weight-semibold); }
.market-region-name { margin: 0; padding: 2px 10px 4px; color: var(--muted-strong); font-size: var(--type-label); font-weight: var(--weight-regular); }
.market-region + .market-region { margin-top: 6px; }
.dashboard-market-selector > nav .market-region a { justify-content: space-between; gap: 12px; padding-inline: 10px; }
.market-selected-check { color: var(--teal-dark); font-size: var(--type-body); }
.market-menu-footer { margin-top: 4px; padding-bottom: 6px; border-top: var(--border-row); }
.dashboard-market-selector > nav .header-coverage-link { justify-content: space-between; font-size: var(--type-label); }
.market-source-date { display: block; margin-top: -4px; padding: 0 10px; color: var(--muted-strong); font-size: var(--type-label); font-weight: var(--weight-regular); line-height: var(--leading-label); }
.market-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-lists-icon { flex: 0 0 auto; }
.header-scope { grid-area: scope; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-4); color: var(--on-navy-nav); font-size: var(--type-label); white-space: nowrap; }
.header-scope strong { color: var(--on-navy-muted); font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.header-scope a { min-height: 44px; display: inline-flex; align-items: center; color: var(--on-navy-muted); text-decoration: none; }
.header-scope a::before { content: ""; height: 12px; margin-right: var(--space-4); border-left: 1px solid var(--border-header-divider); }
.header-scope a:hover { color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 701px) {
  .preview-primary-nav { height: 44px; gap: var(--space-1); margin-left: calc(-1 * var(--space-4)); }
  .preview-primary-nav a { padding: 0 var(--space-4); }
  .preview-primary-nav a:hover { background: var(--on-navy-surface); }
  .preview-primary-nav a.active::after { left: var(--space-4); right: var(--space-4); bottom: 5px; border-radius: 0; }
  .dashboard-market-selector { justify-self: start; min-width: 0; max-width: 100%; padding-left: var(--space-5); border-left: 1px solid var(--border-header-divider); border-radius: 0; }
  .dashboard-market-selector > .dashboard-menu-trigger { max-width: 100%; gap: var(--space-4); padding: 4px 8px; color: var(--on-navy); background: transparent; border: 0; font-size: var(--type-body); }
  .dashboard-market-selector > .dashboard-menu-trigger:hover,
  .dashboard-market-selector[open] > .dashboard-menu-trigger { background: var(--on-navy-surface); }
  .market-selection { display: grid; gap: 1px; line-height: var(--leading-compact); }
  .market-label { letter-spacing: var(--tracking-label); }
  .dashboard-market-selector > nav { left: var(--space-5); right: auto; }
  .app-header.preview-header .header-actions { gap: var(--space-3); flex-wrap: nowrap; }
  .header-actions .dashboard-account-menu { padding-left: var(--space-3); border-left: 1px solid var(--border-header-divider); }
}
@media (min-width: 701px) and (max-width: 960px) {
  .app-header.preview-header { grid-template-areas: "brand selector account" "navigation navigation navigation"; }
  .header-scope { display: none; }
}
.header-menu-context { margin: 0; padding: 10px; color: var(--muted-strong); font-size: var(--type-label); line-height: 1.5; overflow-wrap: anywhere; }
.header-menu-context span,
.header-menu-context strong { display: block; }
.dashboard-market-selector .header-menu-context { border-top: var(--border-row); margin-top: 4px; }
.header-lists-link { min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-2); padding: 0 12px; color: var(--on-navy-nav); font-size: var(--type-control); font-weight: var(--weight-semibold); text-decoration: none; }
.header-lists-link:hover,
.header-lists-link.active { color: var(--on-navy); background: var(--on-navy-surface); }
.header-lists-link.active { box-shadow: inset 0 -2px var(--teal); }
.app-header :is(a, summary):focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }
.cluenaiq-list-context { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; border-bottom: var(--border-row); font-size: var(--type-body); }
@media (max-width: 700px) {
  .header-scope { display: none; }
  .dashboard-market-selector { justify-self: stretch; min-width: 0; }
  .dashboard-market-selector > .dashboard-menu-trigger { width: 100%; justify-content: flex-start; }
  .dashboard-market-selector .market-chevron { margin-left: auto; }
  .dashboard-market-selector > nav { left: 0; right: auto; width: 100%; max-width: 100%; background: var(--paper); transition: none; }
  .preview-primary-nav { justify-content: space-between; gap: 12px; }
}

#evidence-title { scroll-margin-top: 128px; }
@media (max-width: 700px) {
  #evidence-title { scroll-margin-top: 170px; }
}
