:root {
  --ink: #101713;
  --muted: #3f5147;
  --line: #24342c;
  --paper: #4a5e52;
  --panel: #e0e2db;
  --panel-soft: #c8d2ca;
  --cream: #d8d7c8;
  --green: #2f6048;
  --green-dark: #183126;
  --green-solid: #8faf9c;
  --blue: #214f72;
  --blue-solid: #9fb5c3;
  --amber: #5c4a00;
  --amber-solid: #f0d34d;
  --red: #83382e;
  --red-solid: #c98578;
  --shadow: 4px 4px 0 rgba(16, 23, 19, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "SF Pro Display", "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.home-shell {
  width: min(1320px, calc(100vw - 36px));
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px 0;
}

.report-shell {
  width: min(1460px, calc(100vw - 28px));
  padding: 6px 0 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.82fr);
  gap: 10px;
  align-items: stretch;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: padding 180ms ease, grid-template-columns 180ms ease;
}

.hero-copy {
  display: grid;
  align-content: center;
  min-height: 290px;
  border: 2px solid var(--ink);
  border-left: 18px solid var(--green);
  padding: 24px;
  background: #c8d2ca;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 10px;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: 0;
  transition: font-size 180ms ease;
}

.lede {
  max-width: 720px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.75vw, 1.55rem);
  font-weight: 800;
  line-height: 1.15;
}

.supporting-copy {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.42;
}

.scan-form,
.panel,
.status-panel,
.empty-state {
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.scan-form {
  display: grid;
  align-content: center;
  padding: 18px;
  border-radius: 3px;
  box-shadow: none;
}

.scan-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.input-row input {
  min-width: 0;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--panel-soft);
}

.input-row button {
  height: 48px;
  border: 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.form-note,
.muted {
  color: var(--muted);
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.example-scans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.example-scans p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.example-chip {
  display: grid;
  gap: 3px;
  min-height: 64px;
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 10px;
  background: var(--panel-soft);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.example-chip:hover {
  border-color: var(--green-dark);
  background: var(--green-solid);
}

.example-chip strong {
  font-size: 0.92rem;
  line-height: 1.18;
}

.example-chip span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.proof-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.proof-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  min-height: 86px;
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.proof-step span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--green-solid);
  color: var(--green);
  font-weight: 900;
}

.proof-step strong {
  display: block;
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.proof-step small {
  grid-column: 2;
  display: block;
  color: var(--muted);
  line-height: 1.25;
}

.status-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
  border-radius: 6px;
  padding: 14px 16px;
}

.status-panel.error {
  border-color: rgba(131, 56, 46, 0.42);
  color: var(--red);
}

.report {
  display: grid;
  gap: 6px;
}

.hidden {
  display: none;
}

.empty-state {
  border-radius: 8px;
  padding: 26px;
}

.dashboard,
.proof-flow,
.answer-grid,
.readiness-grid,
.checkout-proof-panel,
.agent-coach-panel,
.details-row {
  display: grid;
  gap: 8px;
}

.dashboard {
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
}

.decision-panel,
.product-panel,
.proof-flow-step,
.next-step-panel,
.blocker-panel,
.checkout-proof-panel,
.agent-coach-panel,
.readiness-card {
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.decision-panel {
  min-height: 172px;
  padding: 18px;
  border-left: 12px solid var(--amber);
  background: var(--cream);
}

.dashboard.pass .decision-panel {
  border-left-color: var(--green);
  background: #8faf9c;
}

.dashboard.stop .decision-panel {
  border-left-color: var(--red);
  background: #c98578;
}

.decision-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.decision-kicker span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.verdict-stamp {
  border-radius: 2px;
  padding: 6px 10px;
  background: var(--amber-solid);
  color: var(--amber);
  border: 2px solid currentColor;
}

.dashboard.pass .verdict-stamp {
  background: var(--green-solid);
  color: var(--green);
}

.dashboard.stop .verdict-stamp {
  background: var(--red-solid);
  color: var(--red);
}

.proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.proof-line span {
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 4px 7px;
  background: var(--panel-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.decision-panel h2 {
  max-width: 820px;
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.decision-panel p {
  max-width: 780px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.36;
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  min-width: 0;
}

.decision-actions button,
.decision-actions a {
  display: inline-flex;
  min-height: 42px;
  max-width: 100%;
  align-items: center;
  border-radius: 2px;
  padding: 0 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: normal;
}

.decision-actions .primary-link,
.decision-actions button {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.decision-actions a:not(.primary-link) {
  border: 2px solid var(--ink);
  color: var(--blue);
  background: var(--panel-soft);
}

.feature-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.disabled-feature {
  border-color: var(--ink);
  padding: 30px;
}

.product-panel {
  padding: 16px;
  background: var(--blue-solid);
}

.product-panel h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  line-height: 1.05;
}

.facts.compact {
  grid-template-columns: 92px minmax(0, 1fr);
}

.answer-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.proof-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-flow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 88px;
  padding: 12px;
  background: var(--panel-soft);
}

.proof-flow-step > strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--green-solid);
  color: var(--green-dark);
  font-weight: 950;
}

.proof-flow-step.active > strong {
  background: var(--amber-solid);
  color: var(--amber);
}

.proof-flow-step.waiting > strong {
  background: var(--blue-solid);
  color: var(--blue);
}

.proof-flow-step.blocked > strong {
  background: var(--red-solid);
  color: var(--red);
}

.proof-flow-step h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.proof-flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.28;
}

.next-step-panel,
.blocker-panel {
  min-height: 178px;
  padding: 14px;
}

.next-step-panel {
  background: #b8c4bb;
}

.blocker-panel {
  background: var(--cream);
}

.checkout-proof-panel,
.agent-coach-panel {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  padding: 12px;
}

.checkout-proof-panel {
  border-left: 10px solid var(--amber);
  background: var(--cream);
}

.checkout-proof-panel.done {
  border-left-color: var(--green);
  background: #8faf9c;
}

.checkout-proof-panel.blocked {
  border-left-color: var(--red);
  background: #c98578;
}

.checkout-proof-panel h3,
.agent-coach-panel h3 {
  margin-bottom: 6px;
  font-size: 1.28rem;
  line-height: 1.05;
}

.checkout-proof-panel p,
.agent-coach-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.36;
}

.checkout-proof-form {
  display: grid;
  gap: 8px;
}

.field-row,
.check-grid,
.payment-options {
  display: grid;
  gap: 8px;
}

.field-row {
  grid-template-columns: minmax(0, 1.3fr) minmax(110px, 0.5fr) minmax(90px, 0.35fr);
}

.field-row.compact-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-proof-form label {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-proof-form input,
.checkout-proof-form select,
.checkout-proof-form textarea {
  width: 100%;
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 2px;
  padding: 8px 10px;
  background: var(--panel-soft);
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.checkout-proof-form textarea {
  resize: vertical;
}

.checkout-proof-form button,
.agent-coach-panel button {
  width: fit-content;
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.checkout-proof-form button:disabled,
.agent-coach-panel button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.check-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-options {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.payment-options p {
  grid-column: 1 / -1;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.check-tile,
.pay-tile {
  border: 2px solid var(--line);
  border-radius: 2px;
  padding: 8px;
  background: var(--panel-soft);
}

.check-tile,
.pay-tile {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  text-transform: none;
}

.check-tile input,
.pay-tile input {
  width: auto;
}

.check-tile:has(input:checked),
.pay-tile:has(input:checked) {
  border-color: var(--green);
  background: var(--green-solid);
}

.proof-facts {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.proof-facts dt {
  font-weight: 900;
}

.proof-facts dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.agent-coach-panel {
  grid-template-columns: minmax(300px, 0.8fr) auto minmax(0, 1.3fr);
  align-items: start;
  background: #9fb5c3;
}

.coach-output {
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 10px;
  background: var(--panel-soft);
}

.coach-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.coach-meta span {
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 3px 6px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.coach-output h4 {
  margin-bottom: 6px;
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.coach-grid div {
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--panel-soft);
}

.coach-grid strong {
  display: block;
  margin-bottom: 4px;
}

.coach-grid ul {
  margin: 0;
  padding-left: 18px;
}

.error-text {
  color: var(--red);
  font-weight: 800;
}

.next-step-panel h3,
.blocker-panel h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.plain-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.34;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: var(--green);
}

.mini-findings {
  display: grid;
  gap: 7px;
}

.mini-finding {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: var(--panel-soft);
}

.mini-finding span {
  grid-row: span 2;
  height: fit-content;
  border-radius: 2px;
  padding: 5px 8px;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
}

.mini-finding.critical span,
.mini-finding.high span {
  background: var(--red-solid);
  color: var(--red);
}

.mini-finding.medium span {
  background: var(--amber-solid);
  color: var(--amber);
}

.mini-finding.low span {
  background: var(--blue-solid);
  color: var(--blue);
}

.mini-finding strong {
  line-height: 1.2;
}

.mini-finding p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.25;
}

.readiness-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.readiness-card {
  position: relative;
  min-height: 118px;
  padding: 12px;
}

.readiness-card.pass {
  border-color: var(--green);
  background: #8faf9c;
}

.readiness-card.warn {
  border-color: var(--amber);
  background: #c9b96e;
}

.readiness-card.stop {
  border-color: var(--red);
  background: #c98578;
}

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

.readiness-top span {
  border-radius: 2px;
  padding: 5px 8px;
  background: var(--green-solid);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.readiness-card.warn .readiness-top span {
  background: var(--amber-solid);
  color: var(--amber);
}

.readiness-card.stop .readiness-top span {
  background: var(--red-solid);
  color: var(--red);
}

.info-dot {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--panel-soft);
  color: var(--blue);
  font-weight: 900;
  cursor: help;
}

.info-dot:hover,
.info-dot:focus-visible {
  border-color: currentColor;
  outline: none;
}

.info-popover {
  display: none;
  position: absolute;
  z-index: 10;
  right: 10px;
  top: 46px;
  width: min(280px, calc(100vw - 48px));
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 10px;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.3;
}

.info-dot:hover + .info-popover,
.info-dot:focus + .info-popover {
  display: block;
}

.readiness-card h3 {
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.readiness-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.25;
}

.details-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.detail-panel {
  position: relative;
  min-height: 54px;
  padding: 14px;
  box-shadow: var(--shadow);
  background: var(--panel);
}

.detail-panel[open] {
  z-index: 20;
  grid-column: span 1;
}

.detail-panel summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}

.detail-panel[open] .detail-content {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  max-height: 360px;
  overflow: auto;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 14px;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.full-findings {
  display: grid;
  gap: 8px;
}

.full-finding {
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: var(--panel-soft);
}

.full-finding div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}

.full-finding span {
  border-radius: 2px;
  padding: 5px 8px;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
}

.full-finding.critical span,
.full-finding.high span {
  background: var(--red-solid);
  color: var(--red);
}

.full-finding.medium span {
  background: var(--amber-solid);
  color: var(--amber);
}

.full-finding.low span {
  background: var(--blue-solid);
  color: var(--blue);
}

.full-finding small {
  color: var(--muted);
  font-weight: 800;
}

.full-finding h4 {
  margin: 0 0 4px;
}

.full-finding p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.json-dump {
  max-height: 280px;
  overflow: auto;
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #c8d2ca;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.detail-panel h4 {
  margin: 14px 0 8px;
}

.evidence-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compact-evidence .hash-row {
  grid-template-columns: 120px minmax(0, 1fr);
}

.compact-evidence code {
  width: fit-content;
}

.panel {
  border-radius: 6px;
  padding: 18px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.panel p,
.panel li,
.facts dd {
  color: var(--muted);
  line-height: 1.5;
}

.facts {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.facts dt {
  color: var(--ink);
  font-weight: 800;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}


.signal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.signal-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.signal-list strong {
  color: var(--ink);
}

.evidence-grid {
  display: grid;
  gap: 8px;
}

.hash-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.hash-row:last-child {
  border-bottom: 0;
}

.hash-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
  background: #b8c4bb;
  font-family: "Geist Mono", "SFMono-Regular", "IBM Plex Mono", Consolas, monospace;
  font-size: 0.86rem;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-links a {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 10px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

.is-loading {
  opacity: 0.55;
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(270px, 0.7fr) minmax(340px, 0.84fr);
  gap: 7px;
  align-items: stretch;
}

.diagnosis-side {
  display: contents;
}

.verdict-panel,
.facts-panel,
.blockers-panel,
.proof-checklist-panel,
.sources-panel,
.technical-drawer,
.proof-header {
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.verdict-panel {
  min-height: 198px;
  padding: 14px 16px;
  border-left: 14px solid var(--amber);
  background: var(--panel);
}

.diagnosis-grid.pass .verdict-panel,
.proof-header.pass {
  border-left-color: var(--green);
  background: #8faf9c;
}

.diagnosis-grid.stop .verdict-panel,
.proof-header.stop {
  border-left-color: var(--red);
  background: #c98578;
}

.verdict-panel h1,
.proof-header h1 {
  max-width: 780px;
  margin-bottom: 8px;
  font-size: clamp(1.85rem, 2.35vw, 2.65rem);
  line-height: 1;
}

.verdict-panel p,
.proof-header p {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.36;
}

.verdict-citations {
  display: flex;
  align-items: center;
  max-width: 780px;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 8px;
  border: 2px solid rgba(39, 33, 60, 0.74);
  background: rgba(224, 226, 219, 0.76);
}

.verdict-citations strong {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.verdict-citations div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.verdict-citations a {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 6px;
  background: #b8c4bb;
  color: var(--blue);
  font-family: "Geist Mono", "SFMono-Regular", "IBM Plex Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.facts-panel,
.blockers-panel {
  min-width: 0;
  padding: 12px 14px;
}

.facts-panel {
  background: var(--blue-solid);
}

.blockers-panel {
  background: var(--panel);
}

.facts-panel h2,
.blockers-panel h2,
.proof-checklist-panel h2,
.sources-panel h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.05;
}

.blocker-stack {
  display: grid;
  gap: 5px;
}

.blocker-card {
  border: 2px solid var(--line);
  border-radius: 2px;
  padding: 7px 8px;
  background: var(--panel-soft);
}

.blocker-card.critical,
.blocker-card.high {
  border-color: var(--red);
}

.blocker-card.medium {
  border-color: var(--amber);
}

.blocker-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 5px;
}

.severity-pill,
.proof-status {
  border: 2px solid currentColor;
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blocker-card.critical .severity-pill,
.blocker-card.high .severity-pill,
.proof-row.stop .proof-status {
  background: var(--red-solid);
  color: var(--red);
}

.blocker-card.medium .severity-pill,
.proof-row.warn .proof-status {
  background: var(--amber-solid);
  color: var(--amber);
}

.proof-row.pass .proof-status {
  background: var(--green-solid);
  color: var(--green);
}

.blocker-card a,
.proof-row a,
.full-finding a {
  color: var(--blue);
  font-family: "Geist Mono", "SFMono-Regular", "IBM Plex Mono", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.citation-popover {
  position: relative;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-self: end;
  width: max-content;
  min-width: 118px;
  max-width: 100%;
  z-index: 5;
}

.citation-popover:hover {
  z-index: 30;
}

.citation-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 2px;
  min-height: 24px;
  padding: 2px 7px;
  background: transparent;
  color: var(--blue);
  font-family: "Geist Mono", "SFMono-Regular", "IBM Plex Mono", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.citation-copy {
  min-width: 46px;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 6px;
  background: var(--panel);
  color: var(--muted);
  font-family: "Geist Mono", "SFMono-Regular", "IBM Plex Mono", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.citation-copy:hover,
.citation-copy:focus {
  outline: 0;
  background: var(--panel-soft);
  color: var(--ink);
}

.citation-copy.copied {
  background: var(--green-solid);
  color: var(--green-dark);
}

.citation-copy.selected {
  background: var(--blue-solid);
  color: var(--blue);
}

.citation-trigger:hover,
.citation-popover:hover .citation-trigger {
  outline: 0;
  background: var(--panel-soft);
  color: var(--ink);
}

.citation-card {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: none;
  width: min(420px, 72vw);
  padding: 10px;
  border: 2px solid var(--ink);
  background: #c8d2ca;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.citation-popover:hover .citation-card {
  display: block;
}

.citation-popover.copying .citation-card {
  display: none;
}

.copy-fallback {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: grid;
  gap: 6px;
  width: min(420px, 72vw);
  padding: 8px;
  border: 2px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.copy-fallback textarea {
  width: 100%;
  min-height: 94px;
  resize: vertical;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--ink);
  font-family: "Geist Mono", "SFMono-Regular", "IBM Plex Mono", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.25;
}

.copy-fallback small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.citation-card p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.28;
}

.citation-card p:last-child {
  margin-bottom: 0;
}

.citation-card b {
  color: var(--ink);
  font-weight: 900;
}

.blocker-card h3 {
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.blocker-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.26;
}

.proof-checklist-panel,
.sources-panel {
  padding: 9px 12px;
}

.section-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
}

.proof-table {
  display: grid;
  gap: 4px;
}

.proof-row {
  display: grid;
  grid-template-columns: 104px 128px minmax(0, 1fr) 124px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 8px solid var(--amber);
  min-height: 38px;
  padding: 3px 7px;
  background: #c8d2ca;
  position: relative;
}

.proof-row.pass {
  border-left-color: var(--green);
}

.proof-row.stop {
  border-left-color: var(--red);
}

.proof-row strong {
  font-size: 0.88rem;
}

.proof-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.sources-panel .source-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.sources-panel .source-links a {
  display: flex;
  min-height: 32px;
  align-items: center;
  border: 2px solid var(--line);
  background: #c2ccc4;
  padding: 5px 8px;
  font-size: 0.84rem;
}

.source-drawer {
  padding: 0;
}

.source-drawer summary {
  display: flex;
  min-height: 34px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 10px;
  color: var(--blue);
  font-weight: 900;
}

.source-drawer summary span {
  color: var(--green);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.source-drawer summary strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.source-drawer .source-links {
  padding: 0 10px 10px;
}

.technical-drawer {
  padding: 9px 12px;
}

.technical-drawer summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.technical-grid > section {
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--panel-soft);
  min-width: 0;
}

.technical-grid > section:last-child {
  grid-column: 1 / -1;
}

.technical-grid h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.proof-workspace {
  display: grid;
  gap: 8px;
}

.proof-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 8px;
  padding: 16px;
  border-left: 14px solid var(--amber);
}

@media (max-width: 920px) {
  .hero,
  .two-column,
  .dashboard,
  .diagnosis-grid,
  .diagnosis-side,
  .proof-header,
  .proof-flow,
  .answer-grid,
  .checkout-proof-panel,
  .agent-coach-panel,
  .evidence-columns,
  .field-row,
  .field-row.compact-fields,
  .coach-grid,
  .technical-grid,
  .proof-row,
  .sources-panel .source-links {
    grid-template-columns: 1fr;
  }

  .diagnosis-side {
    display: grid;
    gap: 10px;
  }

  .proof-map,
  .readiness-grid,
  .details-row,
  .check-grid,
  .payment-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 760px) {
  .diagnosis-grid {
    grid-template-columns: minmax(0, 1.03fr) minmax(270px, 0.7fr) minmax(340px, 0.84fr);
  }

  .diagnosis-side {
    display: contents;
  }

  .proof-row {
    grid-template-columns: 104px 128px minmax(0, 1fr) 96px;
  }

  .sources-panel .source-links {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

@media (min-width: 760px) and (max-width: 1050px) {
  .diagnosis-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  }

  .diagnosis-side {
    display: grid;
    gap: 7px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100vw - 20px);
    padding-top: 18px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .input-row,
  .example-scans,
  .proof-map,
  .readiness-grid,
  .details-row,
  .check-grid,
  .payment-options {
    grid-template-columns: 1fr;
  }

  .input-row button {
    width: 100%;
  }

  .decision-panel h2 {
    font-size: 2.15rem;
  }

  .decision-actions,
  .decision-actions a,
  .decision-actions button {
    width: 100%;
  }

  .decision-actions a,
  .decision-actions button {
    justify-content: center;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .detail-panel[open] {
    grid-column: span 1;
  }
}
