:root {
  color-scheme: dark;
  --ink: #f5f0e6;
  --muted: #bbb3a6;
  --paper: #161714;
  --panel: #20221d;
  --panel-soft: #282a23;
  --line: #45483d;
  --line-strong: #6f745f;
  --teal: #65b7b1;
  --clay: #d9866f;
  --gold: #d4ad57;
  --green: #8eb878;
  --blue: #83a7d8;
  --red: #da7c7b;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(101, 183, 177, 0.05) 0 1px, transparent 1px 72px),
    linear-gradient(0deg, rgba(212, 173, 87, 0.05) 0 1px, transparent 1px 72px),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.navigator-shell {
  width: min(100%, 1780px);
  margin: 0 auto;
  padding: 18px;
}

.navigator-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.navigator-topbar h1,
.navigator-topbar p {
  margin: 0;
}

.navigator-topbar h1 {
  max-width: 1050px;
  margin-top: 3px;
  font-size: clamp(31px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.navigator-topbar p:not(.eyebrow) {
  max-width: 920px;
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.45;
}

.eyebrow {
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.navigator-links,
.lead-meta,
.reader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.navigator-links a,
.status-badge,
.source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(40, 42, 35, 0.88);
  color: var(--ink);
  padding: 5px 9px;
  white-space: nowrap;
}

.navigator-controls,
.product-strip,
.journey-status,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 34, 29, 0.92);
  box-shadow: var(--shadow);
}

.navigator-controls {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(230px, 1fr) minmax(180px, 0.65fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
}

.navigator-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.navigator-controls label span,
.panel-title span,
.timeline-card > span,
.facet-card > span,
.event-card > span,
.evidence-card > span,
.cluster-card > span,
.detail-list dt {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
  text-transform: uppercase;
}

.navigator-controls input,
.navigator-controls select,
.navigator-controls button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  color: var(--ink);
  padding: 7px 9px;
}

.navigator-controls button {
  cursor: pointer;
}

.navigator-controls button[aria-pressed="true"] {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(101, 183, 177, 0.4);
}

.corpus-mode {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.corpus-mode button {
  min-width: 0;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 34, 29, 0.92);
  color: var(--ink);
  cursor: pointer;
  padding: 9px;
  text-align: left;
}

.corpus-mode button.is-selected {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(101, 183, 177, 0.36);
}

.corpus-mode span,
.corpus-mode strong,
.corpus-mode em {
  display: block;
  overflow-wrap: anywhere;
}

.corpus-mode span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
  text-transform: uppercase;
}

.corpus-mode strong {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}

.corpus-mode em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
}

.product-strip {
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin-top: 10px;
  padding: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.product-strip.mode-full,
.product-strip.mode-cwa_source_site,
.product-strip.mode-needs_photo,
.product-strip.mode-needs_ocr,
.product-strip.mode-review_ready {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  max-height: 350px;
  overflow-x: hidden;
  overflow-y: auto;
}

.product-card {
  flex: 0 0 182px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
  padding: 9px;
  text-align: left;
}

.product-strip-summary {
  display: grid;
  align-content: start;
  gap: 7px;
  flex: 0 0 250px;
  min-height: 96px;
  border: 1px solid rgba(101, 183, 177, 0.42);
  border-radius: 8px;
  background: rgba(22, 23, 20, 0.82);
  padding: 10px;
}

.product-strip.mode-full .product-strip-summary,
.product-strip.mode-cwa_source_site .product-strip-summary,
.product-strip.mode-needs_photo .product-strip-summary,
.product-strip.mode-needs_ocr .product-strip-summary,
.product-strip.mode-review_ready .product-strip-summary {
  grid-column: 1 / -1;
  min-height: auto;
}

.product-strip-summary span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.product-strip-summary strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.08;
}

.product-strip-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.product-strip-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.product-strip-ledger span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(40, 42, 35, 0.72);
  color: var(--muted);
  padding: 7px;
  text-transform: none;
}

.product-strip-ledger strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
}

.product-card[disabled] {
  cursor: not-allowed;
  opacity: 0.54;
}

.product-card.is-selected {
  border-color: var(--teal);
}

.product-card strong,
.product-card span {
  display: block;
  overflow-wrap: anywhere;
}

.product-card strong {
  font-size: 15px;
  line-height: 1.1;
}

.product-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.corpus-handoff {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 0.9fr;
  gap: 8px;
  margin-top: 10px;
}

.corpus-handoff-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 34, 29, 0.92);
  box-shadow: var(--shadow);
  padding: 10px;
}

.corpus-handoff-card > span,
.corpus-handoff-card dt {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
  text-transform: uppercase;
}

.corpus-handoff-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.corpus-handoff-card p,
.corpus-handoff-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.corpus-handoff-card code {
  color: var(--teal);
  font-size: 11px;
}

.corpus-handoff-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.corpus-handoff-card dl div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.corpus-handoff-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.corpus-handoff-links a,
.corpus-handoff-links button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 23, 20, 0.74);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.corpus-handoff-links button {
  border-color: rgba(101, 183, 177, 0.5);
  color: var(--ink);
  cursor: pointer;
}

.capture-task-handoff {
  grid-column: 1 / -1;
}

.public-photo-strip-card {
  grid-column: 1 / -1;
}

.public-photo-strip-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.public-photo-strip-head span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
  text-transform: uppercase;
}

.public-photo-strip-head button {
  min-height: 34px;
  border: 1px solid rgba(101, 183, 177, 0.58);
  border-radius: 999px;
  background: rgba(22, 23, 20, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 6px 10px;
}

.public-photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.public-photo-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 23, 20, 0.72);
  padding: 8px;
}

.public-photo-card button {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.public-photo-card.is-primary-panel {
  border-color: rgba(101, 183, 177, 0.68);
  background: rgba(20, 33, 31, 0.78);
}

.public-photo-card.is-secondary-context {
  opacity: 0.84;
}

.public-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111;
  object-fit: cover;
}

.public-photo-card span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
  text-transform: uppercase;
}

.public-photo-card strong,
.public-photo-card p {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.public-photo-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.public-photo-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.34;
}

.public-photo-card .lead-meta {
  min-width: 0;
}

.public-photo-card .source-chip,
.public-photo-card .lead-meta a {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.capture-task-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.capture-task-card {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 23, 20, 0.72);
  padding: 9px;
}

.capture-task-card span,
.capture-task-card p {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.capture-task-card > div > span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.capture-task-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.capture-task-card p {
  margin-top: 6px;
}

.panel-acquisition-card {
  grid-column: 1 / -1;
}

.panel-acquisition-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.panel-capture-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.panel-acquisition-target {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(101, 183, 177, 0.32);
  border-radius: 8px;
  background: rgba(22, 23, 20, 0.72);
  padding: 8px;
}

.panel-acquisition-target span,
.panel-acquisition-target em {
  color: var(--clay);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.18;
  text-transform: uppercase;
}

.panel-acquisition-target strong,
.panel-acquisition-target p,
.panel-acquisition-target em {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.panel-acquisition-target strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.12;
}

.panel-acquisition-target p,
.panel-acquisition-target em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.34;
  text-transform: none;
}

.panel-capture-card {
  grid-column: 1 / -1;
}

.panel-capture-row-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.panel-capture-row-strip span {
  display: inline-flex;
  min-width: 0;
  border: 1px solid rgba(214, 196, 153, 0.28);
  border-radius: 999px;
  background: rgba(22, 23, 20, 0.72);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.22;
  overflow-wrap: anywhere;
  padding: 6px 8px;
}

.corpus-directory {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid rgba(101, 183, 177, 0.3);
  border-radius: 8px;
  background: rgba(22, 23, 20, 0.86);
  box-shadow: var(--shadow);
  padding: 10px;
}

.corpus-directory-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 10px;
  align-items: start;
}

.corpus-directory-head span,
.corpus-directory-head dt,
.corpus-directory-card > span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
  text-transform: uppercase;
}

.corpus-directory-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
}

.corpus-directory-head p {
  max-width: 860px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.corpus-directory-head dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.corpus-directory-head dl div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(40, 42, 35, 0.74);
  padding: 7px;
}

.corpus-directory-head dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}

.corpus-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 7px;
  max-height: 430px;
  overflow: auto;
  padding-right: 2px;
}

.corpus-directory-card {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 112px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(40, 42, 35, 0.92);
  color: var(--ink);
  cursor: pointer;
  padding: 9px;
  text-align: left;
}

.corpus-directory-card.is-selected {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(101, 183, 177, 0.36);
}

.corpus-directory-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.corpus-directory-card em,
.corpus-directory-card small,
.corpus-directory-card b {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.corpus-directory-card b {
  color: var(--teal);
  font-weight: 850;
}

.journey-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 11px;
  color: var(--muted);
}

.journey-status strong {
  color: var(--ink);
}

.navigator-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.64fr) minmax(0, 1.5fr) minmax(280px, 0.72fr);
  gap: 10px;
  align-items: start;
  margin-top: 10px;
}

.navigator-sidebar,
.timeline-stage,
.context-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.panel {
  min-width: 0;
  padding: 10px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.panel-title small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
}

.panel-title button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
  padding: 4px 8px;
}

.summary-card h2,
.story-hero h2,
.proof-reader-head h2,
.selected-panel h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.summary-card p,
.story-hero p,
.proof-reader-head p,
.proof-card p,
.selected-panel p,
.cluster-card p,
.event-card p,
.evidence-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.summary-metrics,
.hero-metrics,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.summary-metrics span,
.hero-metrics span,
.detail-grid span,
.price-weight span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.18;
  padding: 7px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.summary-metrics strong,
.hero-metrics strong,
.detail-grid strong,
.price-weight strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  text-transform: none;
}

.story-hero {
  border: 1px solid rgba(101, 183, 177, 0.34);
  border-radius: 8px;
  background: rgba(32, 34, 29, 0.94);
  box-shadow: var(--shadow);
  padding: 12px;
}

.proof-reader {
  display: grid;
  gap: 10px;
  border-color: rgba(212, 173, 87, 0.38);
}

.proof-reader-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.54fr);
  gap: 12px;
  align-items: start;
}

.proof-reader-head h2,
.proof-reader-head p {
  margin: 0;
}

.proof-reader-head h2 {
  margin-top: 3px;
}

.proof-disclaimer {
  border: 1px solid rgba(212, 173, 87, 0.44);
  border-radius: 8px;
  background: rgba(22, 23, 20, 0.62);
  padding: 9px;
}

.proof-disclaimer strong,
.proof-card-head span,
.proof-ingredients > span,
.proof-photo-receipt > span,
.proof-card-foot > span,
.proof-photo-receipt dt {
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.18;
  text-transform: uppercase;
}

.proof-disclaimer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
}

.proof-source-rail {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(101, 183, 177, 0.28);
  border-radius: 8px;
  background: rgba(22, 23, 20, 0.48);
  padding: 10px;
}

.proof-source-rail-primary {
  border-color: rgba(101, 183, 177, 0.58);
  background: rgba(20, 33, 31, 0.56);
}

.proof-source-rail-secondary {
  border-color: rgba(111, 116, 95, 0.62);
  background: rgba(22, 23, 20, 0.38);
}

.proof-source-rail-cwa-story {
  border-color: rgba(212, 173, 87, 0.5);
  background: rgba(37, 32, 20, 0.52);
}

.proof-source-rail-cwa-product-queue {
  border-color: rgba(212, 173, 87, 0.58);
  background: rgba(41, 35, 22, 0.58);
}

.proof-source-rail-cwa-ingredient-priority {
  border-color: rgba(101, 183, 177, 0.62);
  background: rgba(20, 33, 31, 0.58);
}

.proof-source-rail-cwa-source-packets {
  border-color: rgba(101, 183, 177, 0.5);
  background: rgba(18, 30, 29, 0.5);
}

.proof-source-rail-cwa-panel-hunt {
  border-color: rgba(212, 173, 87, 0.46);
  background: rgba(36, 31, 23, 0.5);
}

.proof-source-rail-secondary .proof-source-card {
  opacity: 0.92;
}

.proof-source-rail header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.58fr);
  gap: 10px;
  align-items: start;
}

.proof-source-rail header span,
.proof-source-card > span,
.proof-source-card dt,
.proof-source-metrics span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
  text-transform: uppercase;
}

.proof-source-rail header strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.proof-source-rail header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.proof-source-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.proof-display-gate {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  gap: 7px;
}

.proof-display-gate article {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(212, 173, 87, 0.34);
  border-radius: 8px;
  background: rgba(40, 42, 35, 0.58);
  padding: 9px;
}

.proof-display-gate span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
  text-transform: uppercase;
}

.proof-display-gate strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.proof-display-gate p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.cwa-story-gate {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 7px;
}

.cwa-ingredient-gate {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 7px;
}

.cwa-product-queue-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.cwa-story-gate article,
.cwa-story-timeline article,
.cwa-ingredient-gate article,
.cwa-product-queue-action article,
.cwa-ingredient-priority-card {
  min-width: 0;
  border: 1px solid rgba(212, 173, 87, 0.34);
  border-radius: 8px;
  background: rgba(32, 34, 29, 0.76);
  padding: 9px;
}

.cwa-ingredient-gate article,
.cwa-story-gate article,
.cwa-product-queue-action article {
  display: grid;
  gap: 5px;
}

.cwa-story-gate span,
.cwa-story-timeline span,
.cwa-ingredient-gate span,
.cwa-product-queue-action span,
.cwa-ingredient-priority-card > span,
.cwa-ingredient-priority-card dt {
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.18;
  text-transform: uppercase;
}

.cwa-story-gate strong,
.cwa-story-timeline strong,
.cwa-ingredient-gate strong,
.cwa-product-queue-action strong,
.cwa-ingredient-priority-card strong {
  color: var(--ink);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.cwa-story-gate p,
.cwa-story-timeline p,
.cwa-ingredient-gate p,
.cwa-product-queue-action p,
.cwa-ingredient-priority-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.cwa-story-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
}

.cwa-ingredient-priority-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 7px;
}

.cwa-panel-gap-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 7px;
}

.cwa-source-packet-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 7px;
}

.cwa-story-timeline article {
  display: grid;
  align-content: start;
  gap: 7px;
}

.cwa-ingredient-priority-card,
.cwa-panel-gap-card,
.cwa-source-packet-card {
  display: grid;
  align-content: start;
  gap: 7px;
}

.cwa-panel-gap-card {
  min-width: 0;
  border: 1px solid rgba(212, 173, 87, 0.34);
  border-radius: 8px;
  background: rgba(29, 31, 27, 0.74);
  padding: 9px;
}

.cwa-source-packet-card {
  min-width: 0;
  border: 1px solid rgba(101, 183, 177, 0.34);
  border-radius: 8px;
  background: rgba(22, 32, 31, 0.74);
  padding: 9px;
}

.cwa-ingredient-priority-card dl,
.cwa-panel-gap-card dl,
.cwa-source-packet-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.cwa-ingredient-priority-card dl div,
.cwa-panel-gap-card dl div,
.cwa-source-packet-card dl div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.cwa-ingredient-priority-card dd,
.cwa-panel-gap-card dd,
.cwa-source-packet-card dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.cwa-source-packet-card > span,
.cwa-panel-gap-card > span,
.cwa-panel-gap-card dt,
.cwa-source-packet-card dt,
.cwa-source-surface-order span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.18;
  text-transform: uppercase;
}

.cwa-source-packet-card strong {
  color: var(--ink);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.cwa-panel-gap-card > span,
.cwa-panel-gap-card dt {
  color: var(--gold);
}

.cwa-panel-gap-card strong {
  color: var(--ink);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.cwa-source-packet-card p,
.cwa-panel-gap-card p,
.cwa-source-surface-order em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.cwa-panel-gap-queries {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cwa-panel-gap-queries span {
  max-width: 100%;
  border: 1px solid rgba(212, 173, 87, 0.24);
  border-radius: 999px;
  background: rgba(212, 173, 87, 0.08);
  color: var(--ink);
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cwa-source-surface-order {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cwa-source-surface-order li {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-left: 3px solid rgba(111, 116, 95, 0.68);
  border-radius: 6px;
  background: rgba(40, 42, 35, 0.48);
  padding: 7px;
}

.cwa-source-surface-order li.is-primary-surface {
  border-left-color: var(--teal);
  background: rgba(20, 44, 42, 0.5);
}

.cwa-story-timeline article > * {
  min-width: 0;
  max-width: 100%;
}

.cwa-ingredient-priority-card > *,
.cwa-source-packet-card > * {
  min-width: 0;
  max-width: 100%;
}

.proof-source-metrics span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(40, 42, 35, 0.8);
  padding: 7px;
}

.proof-source-metrics strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  text-transform: none;
}

.proof-source-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.proof-source-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 34, 29, 0.9);
  padding: 9px;
}

.proof-source-thumb {
  display: grid;
  min-height: 128px;
  margin: 0;
  border: 1px solid rgba(101, 183, 177, 0.28);
  border-radius: 8px;
  background: rgba(13, 14, 12, 0.72);
  overflow: hidden;
}

.proof-source-thumb img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #0f100e;
}

.proof-source-thumb figcaption {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.28;
  padding: 6px;
}

.proof-source-thumb-receipt {
  align-content: end;
  gap: 6px;
  padding: 9px;
  background:
    linear-gradient(135deg, rgba(212, 173, 87, 0.12), transparent 44%),
    rgba(13, 14, 12, 0.72);
}

.proof-source-thumb-receipt span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.proof-source-thumb-receipt strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.proof-source-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.proof-source-card p,
.proof-source-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.proof-source-card dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.proof-source-card dl div {
  border-top: 1px solid var(--line);
  padding-top: 5px;
}

.proof-era-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 2px;
}

.proof-filter-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.proof-era-toggle button,
.proof-filter-toggle button {
  flex: 0 0 136px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
  padding: 7px;
  text-align: left;
}

.proof-filter-toggle button {
  flex: 0 0 auto;
  min-height: 32px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.proof-era-toggle button.is-selected,
.proof-filter-toggle button.is-selected {
  border-color: var(--teal);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(101, 183, 177, 0.38);
}

.proof-era-toggle span,
.proof-era-toggle strong {
  display: block;
}

.proof-era-toggle span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.proof-era-toggle strong {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.proof-card-grid {
  display: grid;
  gap: 10px;
}

.proof-card-grid.is-compare {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-card-grid.is-compare .proof-card-head,
.proof-card-grid.is-compare .proof-card-body {
  grid-template-columns: 1fr;
}

.proof-card-grid.is-compare .proof-status-stack {
  justify-content: flex-start;
}

.proof-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.proof-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.proof-card-head h3,
.proof-ingredients h3,
.proof-card-head p,
.proof-ingredients p,
.proof-card-foot p {
  margin: 0;
}

.proof-card-head h3 {
  margin-top: 3px;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.proof-status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.proof-card-body {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(0, 1.18fr);
  gap: 10px;
  align-items: stretch;
}

.proof-photo {
  min-width: 0;
  min-height: 260px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 23, 20, 0.78);
  overflow: hidden;
}

.proof-photo img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #0f100e;
}

.proof-photo figcaption {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  padding: 7px;
}

.proof-photo-receipt {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
}

.proof-panel-needed {
  border-color: rgba(212, 173, 87, 0.56);
  background: rgba(22, 23, 20, 0.88);
}

.proof-panel-needed .proof-receipt-visual {
  border-color: rgba(212, 173, 87, 0.42);
  background:
    linear-gradient(135deg, rgba(212, 173, 87, 0.16), transparent 48%),
    linear-gradient(0deg, rgba(245, 240, 230, 0.05), rgba(245, 240, 230, 0.02)),
    rgba(13, 14, 12, 0.72);
}

.proof-receipt-visual {
  display: grid;
  gap: 6px;
  min-height: 128px;
  border: 1px solid rgba(101, 183, 177, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(101, 183, 177, 0.14), transparent 48%),
    linear-gradient(0deg, rgba(245, 240, 230, 0.05), rgba(245, 240, 230, 0.02)),
    rgba(13, 14, 12, 0.72);
  padding: 12px;
}

.proof-receipt-visual span,
.proof-receipt-visual em {
  color: var(--clay);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.proof-receipt-visual strong {
  align-self: end;
  color: var(--ink);
  font-size: 26px;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.proof-receipt-visual em {
  color: var(--muted);
  text-transform: none;
}

.proof-photo-receipt strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.proof-photo-receipt p,
.proof-photo-receipt dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.proof-photo-receipt dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.proof-photo-receipt dl div {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.proof-photo-receipt a {
  width: max-content;
  max-width: 100%;
}

.proof-secondary-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.24fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 1px dashed rgba(111, 116, 95, 0.82);
  border-radius: 8px;
  background: rgba(22, 23, 20, 0.48);
  padding: 9px;
}

.proof-secondary-context span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.18;
  text-transform: uppercase;
}

.proof-secondary-context strong,
.proof-secondary-context p {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.proof-secondary-context strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.12;
}

.proof-secondary-context p,
.proof-secondary-context figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
}

.proof-secondary-context figure {
  min-width: 0;
  margin: 0;
}

.proof-secondary-context img {
  display: block;
  width: 100%;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f100e;
  object-fit: contain;
}

.proof-secondary-receipt {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(13, 14, 12, 0.62);
  padding: 7px;
}

.proof-secondary-receipt strong {
  color: var(--muted);
  font-size: 12px;
}

.proof-ingredients {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(101, 183, 177, 0.32);
  border-radius: 8px;
  background: rgba(22, 23, 20, 0.54);
  padding: 10px;
}

.proof-ingredients h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.proof-gap {
  border-color: rgba(212, 173, 87, 0.44);
}

.proof-gap p strong {
  color: var(--ink);
}

.proof-card-foot {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.timeline-axis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 7px;
}

.timeline-axis span:last-child {
  text-align: right;
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 19px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
}

.timeline-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 212px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(40, 42, 35, 0.96);
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  text-align: left;
}

.timeline-card.is-selected {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(101, 183, 177, 0.38);
}

.timeline-card em {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.timeline-card strong {
  font-size: 15px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.status-badge.status-label_visible {
  border-color: rgba(131, 167, 216, 0.7);
  color: var(--blue);
}

.status-badge.status-label_text_candidate {
  border-color: rgba(101, 183, 177, 0.78);
  color: var(--teal);
}

.status-badge.status-ocr_extracted,
.status-badge.status-story_ready,
.status-badge.status-confirmed_story_ready {
  border-color: rgba(101, 183, 177, 0.86);
  color: var(--teal);
}

.status-badge.status-usable_photo {
  border-color: rgba(212, 173, 87, 0.72);
  color: var(--gold);
}

.status-badge.status-gap,
.status-badge.status-blocked {
  border-color: rgba(218, 124, 123, 0.78);
  color: var(--red);
}

.status-badge.status-active,
.status-badge.status-manual_verified,
.status-badge.status-claim_ready {
  border-color: rgba(142, 184, 120, 0.78);
  color: var(--green);
}

.status-badge.status-deferred,
.status-badge.status-source_review,
.status-badge.status-source_discovery_needed,
.status-badge.status-full_corpus_selectable,
.status-badge.status-needs_photo_review,
.status-badge.status-needs_label_transcription,
.status-badge.status-needs_manual_verification {
  border-color: rgba(187, 179, 166, 0.66);
  color: var(--muted);
}

.status-badge.status-photo_enriched {
  border-color: rgba(212, 173, 87, 0.84);
  color: var(--gold);
}

.status-badge.status-gap_publishable {
  border-color: rgba(212, 173, 87, 0.84);
  color: var(--gold);
}

.facet-list,
.flow-view,
.event-list,
.gap-list,
.evidence-gallery,
.blocked-map,
.review-queue,
.export-links,
.cluster-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.facet-card,
.event-card,
.evidence-card,
.cluster-card,
.blocked-card,
.review-card,
.gap-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 9px;
}

.facet-card {
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.facet-card.is-selected {
  border-color: var(--teal);
}

.facet-card strong,
.event-card strong,
.evidence-card strong,
.cluster-card strong,
.review-card strong,
.gap-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.facet-card p,
.facet-card em,
.blocked-card em,
.review-card p,
.review-card em,
.gap-card p {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.36;
  font-style: normal;
  overflow-wrap: anywhere;
}

.facet-card em,
.blocked-card em,
.review-card em {
  border-left: 3px solid var(--gold);
  padding-left: 7px;
}

.review-card > span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.18;
  text-transform: uppercase;
}

.review-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.readiness-card {
  display: grid;
  gap: 8px;
}

.readiness-pair {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  padding: 7px;
}

.readiness-pair > span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.readiness-pair > strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.1;
  text-align: right;
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 8px;
}

.flow-row strong {
  font-size: 13px;
  line-height: 1.12;
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.flow-line span {
  min-height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.flow-line .is-ready {
  background: var(--blue);
}

.flow-line .is-photo {
  background: var(--gold);
}

.flow-line .is-gap {
  background: var(--red);
}

.detail-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
}

.detail-list div {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.detail-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.photo-summary-card > strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.photo-summary-list,
.evidence-quality {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
}

.photo-summary-list div,
.evidence-quality div {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.photo-summary-list dt,
.evidence-quality dt {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.18;
  text-transform: uppercase;
}

.photo-summary-list dd,
.evidence-quality dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.visible-extract {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid rgba(101, 183, 177, 0.34);
  border-radius: 8px;
  background: rgba(22, 23, 20, 0.64);
  padding: 8px;
}

.visible-extract > span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
  text-transform: uppercase;
}

.visible-extract p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.visible-extract small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.visible-extract.is-compact p {
  max-height: 8.4em;
  overflow: auto;
}

.gap-resolution {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid rgba(212, 173, 87, 0.46);
  border-radius: 8px;
  background: rgba(22, 23, 20, 0.72);
  padding: 9px;
}

.gap-resolution > span,
.source-targets > strong {
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.18;
  text-transform: uppercase;
}

.gap-resolution dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.gap-resolution dl div {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.gap-resolution dt {
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.gap-resolution dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.source-targets {
  display: grid;
  gap: 7px;
}

.source-targets article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  padding: 7px;
}

.source-targets article span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.16;
}

.source-targets article p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.source-targets article a {
  width: max-content;
  max-width: 100%;
  font-size: 11px;
}

.extract-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.extract-terms span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  padding: 4px 7px;
}

.evidence-card a {
  display: inline-flex;
  margin-top: 8px;
}

.review-card small {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.export-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.export-links a {
  display: grid;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 7px;
  text-align: center;
}

.empty-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.price-weight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.cluster-panel {
  margin-top: 10px;
}

.cluster-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .navigator-topbar,
  .navigator-controls,
  .navigator-grid,
  .corpus-mode,
  .corpus-handoff,
  .corpus-directory-head,
  .proof-reader-head,
  .proof-source-rail header,
  .public-photo-strip-head {
    grid-template-columns: 1fr;
  }

  .corpus-handoff-card dl,
  .corpus-directory-head dl {
    grid-template-columns: 1fr;
  }

  .capture-task-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-acquisition-list,
  .panel-capture-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-display-gate,
  .cwa-story-gate,
  .cwa-ingredient-gate {
    grid-template-columns: 1fr;
  }

  .proof-source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cwa-ingredient-priority-card dl,
  .cwa-panel-gap-card dl,
  .cwa-source-packet-card dl {
    grid-template-columns: 1fr;
  }

  .proof-card-body {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .proof-secondary-context {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-track,
  .timeline-axis {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .timeline-track::before {
    display: none;
  }

  .cluster-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .navigator-shell {
    padding: 12px;
  }

  .summary-metrics,
  .hero-metrics,
  .detail-grid,
  .product-strip-ledger,
  .corpus-directory-grid,
  .proof-card-grid.is-compare,
  .proof-card-body,
  .proof-card-head,
  .proof-source-list,
  .proof-source-metrics,
  .cwa-story-gate,
  .cwa-story-timeline,
  .cwa-ingredient-gate,
  .cwa-ingredient-priority-list,
  .cwa-source-packet-list,
  .capture-task-list,
  .panel-acquisition-list,
  .panel-capture-list,
  .public-photo-strip,
  .price-weight,
  .export-links,
  .cluster-list,
  .timeline-track,
  .timeline-axis {
    grid-template-columns: 1fr !important;
  }

  .timeline-axis {
    display: none;
  }

  .timeline-track {
    padding-left: 32px;
  }

  .timeline-track::before {
    display: block;
    top: 0;
    bottom: 0;
    left: 14px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-card {
    min-height: 0;
  }

  .timeline-card em {
    margin-left: -42px;
  }

  .flow-row {
    grid-template-columns: 1fr;
  }
}
