:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --paper: #ffffff;
  --ink: #17202a;
  --muted: #667085;
  --line: #d9e0e8;
  --blue: #1769aa;
  --green: #287c52;
  --amber: #b26a00;
  --red: #b42318;
  --soft-blue: #e8f2fb;
  --soft-green: #e8f5ee;
  --soft-amber: #fff2d7;
  --shadow: 0 10px 24px rgba(18, 30, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 22px clamp(18px, 5vw, 56px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.top-link,
.top-contact,
button,
.primary {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.top-link {
  padding: 10px 14px;
}

.top-contact {
  padding: 10px 14px;
  border-color: rgba(23, 105, 170, 0.2);
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.top-contact::after {
  content: " →";
}

.band {
  padding: 28px clamp(16px, 5vw, 56px);
}

.system-band {
  padding-bottom: 8px;
}

.system-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.system-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.system-intro h2 {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.18;
}

.system-intro p:not(.eyebrow) {
  margin: 0 auto 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.system-intro p:last-child {
  margin-bottom: 0;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.proof-strip div {
  min-height: 76px;
  padding: 13px;
  border: 1px solid rgba(40, 124, 82, 0.2);
  border-radius: 8px;
  background: var(--soft-green);
}

.proof-strip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 20px;
  line-height: 1.2;
}

.proof-strip span {
  display: block;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
}

.launch-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(40, 124, 82, 0.24);
  border-radius: 8px;
  background: var(--soft-green);
}

.launch-note strong {
  color: var(--green);
  font-size: 14px;
}

.launch-note span {
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
}

.runtime-strip {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.runtime-strip span,
.runtime-strip small {
  color: var(--muted);
  font-size: 13px;
}

.runtime-strip strong {
  color: var(--blue);
  font-size: 18px;
}

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

.trust-row div {
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  margin-bottom: 5px;
  color: var(--ink);
}

.trust-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.promise-grid div {
  padding: 14px;
  border-radius: 8px;
  background: var(--soft-blue);
  border: 1px solid rgba(23, 105, 170, 0.18);
}

.promise-grid strong {
  display: block;
  margin-bottom: 7px;
}

.promise-grid p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.68;
}

.coverage-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.coverage-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

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

.method-grid article {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}

.method-grid strong {
  display: block;
  margin-bottom: 7px;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.intake-layout.pre-result {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

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

.panel {
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-heading span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

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

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

label,
legend {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.form-helper {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

input[type="text"],
input[type="number"],
input[type="password"],
select {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 2px solid rgba(23, 105, 170, 0.18);
  border-color: var(--blue);
}

fieldset {
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.advanced-options,
.source-disclosure {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.advanced-options summary,
.source-disclosure summary {
  padding: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.advanced-options > .grid,
.advanced-options > fieldset {
  margin: 0 12px 12px;
}

.source-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 10px;
}

.source-points a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(23, 105, 170, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.source-disclosure p {
  margin: 0;
  padding: 0 12px 12px;
  color: #344054;
  font-size: 13px;
  line-height: 1.7;
}

.form-source,
.form-boundary {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.form-source {
  padding: 11px 12px;
  border: 1px solid rgba(40, 124, 82, 0.22);
  border-radius: 8px;
  background: var(--soft-green);
  color: #276749;
}

.form-boundary {
  font-weight: 600;
}

.form-upgrade-hint {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(23, 105, 170, 0.22);
  border-radius: 8px;
  background: var(--soft-blue);
  color: #344054;
  font-size: 13px;
  line-height: 1.6;
}

.form-upgrade-hint strong {
  color: var(--blue);
  white-space: nowrap;
}

.form-upgrade-hint b {
  color: var(--ink);
  font-size: 14px;
}

.chips,
.switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chips label,
.switches label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  font-weight: 600;
}

.primary {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  font-weight: 800;
}

.side-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.side-panel.is-empty {
  display: none;
}

.empty-state,
.locked-report {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.locked-report ul {
  margin: 10px 0 0;
  padding-left: 18px;
  text-align: left;
}

.locked-report li {
  line-height: 1.7;
}

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

.diagnosis-head {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--soft-blue);
  border: 1px solid rgba(23, 105, 170, 0.18);
}

.diagnosis-head small {
  display: block;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 6px;
}

.diagnosis-head strong {
  display: block;
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.diagnosis-head p {
  margin-bottom: 0;
  color: #344054;
  line-height: 1.65;
}

.speed-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.speed-inline strong {
  color: var(--blue);
  font-size: 12px;
}

.consultant-take {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #fff8e8;
  border: 1px solid rgba(178, 106, 0, 0.2);
}

.consultant-take h3,
.decision-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.consultant-take p {
  margin: 0;
  color: #513c12;
  line-height: 1.78;
}

.preview-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.preview-facts div {
  min-height: 72px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.preview-facts small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preview-facts strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}

.preview-next {
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(40, 124, 82, 0.2);
  border-radius: 8px;
  background: var(--soft-green);
}

.preview-next h3 {
  margin: 0 0 9px;
  font-size: 15px;
}

.preview-next ol {
  margin: 0;
  padding-left: 19px;
  color: #344054;
  font-size: 13px;
  line-height: 1.72;
}

.preview-next li {
  margin-bottom: 5px;
}

.preview-next li:last-child {
  margin-bottom: 0;
}

.preview-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 105, 170, 0.22);
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.preview-contact-mini {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(40, 124, 82, 0.22);
  border-radius: 8px;
  background: #f7fff9;
}

.preview-contact-mini > strong {
  display: block;
  margin-bottom: 8px;
  line-height: 1.4;
}

.preview-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.preview-contact-line span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.preview-contact-line strong {
  margin-left: 4px;
  color: var(--ink);
  font-size: 13px;
}

.preview-contact-mini small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.rank-check-panel {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.rank-check-panel.verified {
  border-color: rgba(40, 124, 82, 0.24);
  background: var(--soft-green);
}

.rank-check-panel.estimated {
  border-color: rgba(23, 105, 170, 0.22);
  background: var(--soft-blue);
}

.rank-check-panel.warning {
  border-color: rgba(178, 106, 0, 0.26);
  background: var(--soft-amber);
}

.rank-check-head {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.rank-check-head span {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.rank-check-panel.verified .rank-check-head span {
  color: var(--green);
}

.rank-check-panel.warning .rank-check-head span {
  color: var(--amber);
}

.rank-check-head strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.45;
}

.rank-check-head p,
.rank-check-note {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.68;
}

.rank-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.rank-check-grid div {
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.rank-check-grid small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.rank-check-grid strong {
  font-size: 16px;
  line-height: 1.35;
}

.next-actions {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.next-actions h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.next-actions ol {
  margin: 0;
  padding-left: 20px;
  color: #344054;
  line-height: 1.72;
}

.next-actions li {
  margin-bottom: 6px;
}

.next-actions li:last-child {
  margin-bottom: 0;
}

.ai-trust-panel {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid rgba(40, 124, 82, 0.2);
  background: var(--soft-green);
}

.ai-trust-panel.loading {
  border-color: rgba(23, 105, 170, 0.18);
  background: var(--soft-blue);
}

.ai-trust-panel.fallback-ready {
  border-color: rgba(178, 106, 0, 0.2);
  background: #fff8e8;
}

.ai-trust-panel span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.ai-trust-panel.fallback-ready span {
  color: var(--amber);
}

.ai-trust-panel strong {
  display: block;
  margin-bottom: 7px;
  line-height: 1.45;
}

.ai-trust-panel p {
  margin: 0 0 9px;
  color: #344054;
  font-size: 13px;
  line-height: 1.68;
}

.ai-trust-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #344054;
  font-size: 13px;
  line-height: 1.7;
}

.ai-insight-panel {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid rgba(40, 124, 82, 0.2);
  background: #f7fff9;
}

.ai-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ai-insight-grid article {
  min-height: 146px;
  padding: 12px;
  border: 1px solid rgba(40, 124, 82, 0.16);
  border-radius: 8px;
  background: #fff;
}

.ai-insight-grid span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.ai-insight-grid strong {
  display: block;
  margin-bottom: 7px;
  line-height: 1.45;
}

.ai-insight-grid p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.65;
}

.data-trust-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.82fr);
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid rgba(23, 105, 170, 0.22);
  background: #f8fafc;
}

.data-trust-panel span,
.data-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.data-trust-panel span {
  background: var(--soft-blue);
  color: var(--blue);
}

.data-trust-panel strong {
  display: block;
  margin-bottom: 7px;
  line-height: 1.45;
}

.data-trust-panel p {
  margin: 0 0 8px;
  color: #344054;
  font-size: 13px;
  line-height: 1.7;
}

.data-trust-panel small {
  color: #513c12;
  font-size: 12px;
  font-weight: 800;
}

.trust-source-list,
.official-source-panel div {
  display: grid;
  gap: 8px;
}

.trust-source-list a,
.official-source-panel a {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.trust-source-list a strong,
.official-source-panel a strong {
  margin: 0;
  font-size: 13px;
}

.trust-source-list a span,
.official-source-panel a span {
  width: fit-content;
  margin: 0;
  background: var(--soft-green);
  color: var(--green);
}

.metric {
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.metric small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.metric strong {
  font-size: 20px;
}

.strategy {
  padding: 13px;
  margin-bottom: 14px;
  border-left: 4px solid var(--blue);
  background: var(--soft-blue);
  border-radius: 8px;
}

.risk-panel,
.decision-panel,
.audit-panel,
.unlock-panel,
.locked-pool {
  margin-bottom: 14px;
}

.risk-panel h3,
.decision-panel h3,
.audit-panel h3,
.unlock-panel h3,
.locked-pool h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.risk-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.risk-item:last-child {
  border-bottom: 0;
}

.audit-step {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.audit-step:last-child {
  border-bottom: 0;
}

.audit-step span {
  display: inline-grid;
  place-items: center;
  height: 28px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.audit-step strong {
  display: block;
  line-height: 1.45;
  margin-bottom: 4px;
}

.audit-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.risk-item span {
  display: inline-grid;
  place-items: center;
  height: 28px;
  border-radius: 8px;
  background: var(--soft-amber);
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.risk-item strong {
  display: block;
  line-height: 1.45;
  margin-bottom: 4px;
}

.risk-item p,
.locked-pool p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.guided-panel {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.guided-head h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.guided-head p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.guided-question {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.guided-question strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.guided-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guided-choices button {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.guided-choices button.selected {
  background: var(--soft-blue);
  border-color: rgba(23, 105, 170, 0.36);
  color: var(--blue);
}

.guided-advice {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fff8e8;
  border: 1px solid rgba(178, 106, 0, 0.2);
}

.guided-advice strong {
  display: block;
  margin-bottom: 6px;
  color: #513c12;
}

.guided-advice p {
  margin: 0;
  color: #513c12;
  font-size: 13px;
  line-height: 1.65;
}

.guided-advice ul {
  margin: 0;
  padding-left: 18px;
  color: #513c12;
  font-size: 13px;
  line-height: 1.7;
}

.decision-item {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}

.decision-item:last-child {
  margin-bottom: 0;
}

.decision-item strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.45;
}

.decision-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.risk-card-grid,
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.risk-card {
  min-height: 150px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.risk-card span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--soft-amber);
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.risk-card strong {
  display: block;
  margin-bottom: 7px;
  line-height: 1.45;
}

.risk-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.route-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: start;
}

.route-item > span {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.route-item small {
  display: block;
  margin-top: 7px;
  color: #513c12;
  font-size: 12px;
  line-height: 1.55;
}

.strategy-card {
  padding: 14px;
  margin: 10px 0 14px;
  border: 1px solid rgba(23, 105, 170, 0.18);
  border-radius: 8px;
  background: var(--soft-blue);
}

.strategy-card strong {
  display: block;
  margin-bottom: 7px;
}

.strategy-card p {
  margin: 0;
  color: #344054;
  line-height: 1.7;
}

.paid-lock ul,
.upgrade-lock ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #344054;
  line-height: 1.7;
}

.mini-tier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-tier-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(23, 105, 170, 0.22);
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.unlock-panel {
  padding: 13px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.unlock-panel ul {
  margin: 0;
  padding-left: 18px;
}

.unlock-panel li {
  color: #344054;
  line-height: 1.7;
  margin-bottom: 6px;
}

.data-gap {
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #fff8e8;
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
}

.source-note {
  margin: -3px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.school-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.school-name {
  display: block;
  margin-bottom: 4px;
}

.school-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.risk-tag,
.status-pill {
  align-self: flex-start;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.risk-tag {
  background: var(--soft-amber);
  color: var(--amber);
}

.status-pill {
  display: inline-flex;
  margin-top: 14px;
  background: var(--soft-amber);
  color: var(--amber);
}

.status-pill.paid {
  background: var(--soft-green);
  color: var(--green);
}

.status-pill.fast {
  background: var(--soft-blue);
  color: var(--blue);
}

.board-band {
  padding-top: 0;
}

.data-board {
  max-width: 1240px;
  margin: 0 auto;
}

.board-shell,
.activation-shell {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.board-head h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
}

.board-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.board-status .status-pill {
  margin-top: 0;
}

.line-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.line-card {
  min-height: 104px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.line-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.line-card strong {
  display: block;
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.line-card span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.tier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin: 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.tier-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.candidate-list {
  display: grid;
  gap: 12px;
}

.candidate-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.candidate-main {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
}

.tier-badge {
  display: grid;
  place-items: center;
  width: 54px;
  min-height: 54px;
  border-radius: 8px;
  background: var(--soft-amber);
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.candidate-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.candidate-card h3 span {
  color: var(--muted);
  font-size: 14px;
}

.candidate-card p {
  margin-bottom: 8px;
  color: #344054;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.candidate-stats {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 0.9fr 1.5fr;
  gap: 10px;
  margin-top: 14px;
}

.candidate-stats div {
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.candidate-stats small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}

.candidate-stats strong {
  display: block;
  line-height: 1.45;
}

.history-table {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.history-row {
  display: grid;
  grid-template-columns: 0.65fr repeat(4, 1fr);
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #344054;
  font-size: 13px;
}

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

.candidate-panel {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid rgba(23, 105, 170, 0.18);
  background: #f8fafc;
}

.deletion-preview-panel,
.engine-note {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
}

.deletion-preview-panel {
  border: 1px solid rgba(178, 106, 0, 0.22);
  background: #fff8e8;
}

.deletion-preview-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(178, 106, 0, 0.18);
}

.deletion-preview-row span {
  display: inline-grid;
  place-items: center;
  align-self: start;
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #fff;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.deletion-preview-row strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.4;
}

.deletion-preview-row p {
  margin: 0;
  color: #513c12;
  font-size: 13px;
  line-height: 1.65;
}

.engine-note {
  border: 1px solid rgba(40, 124, 82, 0.18);
  background: var(--soft-green);
}

.engine-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
}

.engine-note p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.7;
}

.candidate-panel-head h3,
.candidate-board-head h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.candidate-panel-head p,
.candidate-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.candidate-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.candidate-mini strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.4;
}

.candidate-mini p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.candidate-mini small,
.candidate-mini em {
  display: block;
  margin-top: 5px;
  color: #344054;
  font-size: 12px;
  line-height: 1.55;
}

.candidate-mini em {
  color: #513c12;
  font-style: normal;
}

.candidate-mini span,
.candidate-card-head span {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--soft-amber);
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.candidate-mini-badges,
.candidate-head-badges {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.candidate-mini-badges .data-status,
.candidate-head-badges .data-status {
  margin: 0;
  font-style: normal;
  white-space: nowrap;
}

.data-status.pending {
  background: #fff8e8;
  color: var(--amber);
  border: 1px solid rgba(178, 106, 0, 0.18);
}

.data-status.verified {
  background: var(--soft-green);
  color: var(--green);
  border: 1px solid rgba(40, 124, 82, 0.2);
}

.candidate-board {
  margin: 16px 0;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}

.conversion-card {
  border-color: rgba(23, 105, 170, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fe 100%);
}

.conversion-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.conversion-card-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.conversion-card-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--soft-amber);
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.conversion-card p {
  margin: 0 0 14px;
  color: #344054;
  line-height: 1.72;
}

.conversion-list,
.conversion-contact,
.conversion-bar-contact,
.conversion-actions,
.preview-contact-actions,
.conversion-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conversion-list {
  margin-bottom: 14px;
}

.conversion-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.conversion-tier {
  padding: 13px;
  border: 1px solid rgba(23, 105, 170, 0.18);
  border-radius: 8px;
  background: #fff;
}

.conversion-tier.featured {
  border-color: rgba(40, 124, 82, 0.22);
  background: var(--soft-green);
}

.conversion-tier > span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.conversion-tier.featured > span {
  background: #fff;
  color: var(--green);
}

.conversion-tier strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.35;
}

.conversion-tier p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.65;
}

.conversion-contact-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.conversion-qr {
  width: 128px;
  height: 128px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}

.conversion-list span,
.conversion-contact span,
.conversion-bar-contact span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.conversion-list span {
  border: 1px solid rgba(23, 105, 170, 0.2);
  background: #fff;
  color: var(--blue);
}

.conversion-contact {
  align-content: center;
}

.conversion-actions,
.preview-contact-actions {
  margin: 0 0 10px;
}

.conversion-actions button,
.preview-contact-actions button,
.conversion-bar-actions button,
.copy-contact {
  min-height: 36px;
  padding: 8px 11px;
  border-color: rgba(23, 105, 170, 0.22);
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.conversion-actions button + button,
.preview-contact-actions button + button,
.conversion-bar-actions button + button {
  border-color: rgba(40, 124, 82, 0.24);
  background: var(--soft-green);
  color: var(--green);
}

.conversion-contact span,
.conversion-bar-contact span {
  border: 1px solid rgba(40, 124, 82, 0.24);
  background: var(--soft-green);
  color: var(--green);
}

.conversion-contact strong,
.conversion-bar-contact strong {
  margin-left: 4px;
  font-size: 15px;
}

.conversion-card small,
.conversion-pending {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.conversion-pending {
  margin-bottom: 10px !important;
  font-weight: 700;
}

.conversion-bar {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(23, 105, 170, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(18, 30, 43, 0.18);
  backdrop-filter: blur(14px);
}

.conversion-bar strong,
.conversion-bar span {
  display: block;
}

.conversion-bar strong {
  margin-bottom: 3px;
  line-height: 1.35;
}

.conversion-bar > div > span {
  color: var(--muted);
  font-size: 13px;
}

.conversion-bar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.contact-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  width: min(760px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(18, 30, 43, 0.24);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-color: transparent;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.contact-dialog-copy {
  padding-right: 16px;
}

.contact-dialog-copy h2 {
  margin: 0 0 12px;
  max-width: 460px;
  font-size: 26px;
  line-height: 1.25;
}

.contact-dialog-copy p {
  margin: 0 0 14px;
  color: #344054;
  line-height: 1.75;
}

.contact-boundary {
  padding: 12px;
  border: 1px solid rgba(178, 106, 0, 0.2);
  border-radius: 8px;
  background: #fff8e8;
  color: #513c12;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.contact-tier-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.contact-tier-list span {
  padding: 10px 12px;
  border: 1px solid rgba(23, 105, 170, 0.14);
  border-radius: 8px;
  background: #fbfcfe;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
}

.contact-dialog-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.contact-dialog-side img {
  width: 210px;
  height: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}

.contact-id-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(40, 124, 82, 0.22);
  border-radius: 8px;
  background: var(--soft-green);
}

.contact-id-row span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.contact-id-row strong {
  color: var(--ink);
  font-size: 15px;
}

.copy-contact {
  width: 100%;
}

.copy-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.candidate-board-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.candidate-board-head > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.candidate-tier-section {
  margin-top: 14px;
}

.tier-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--soft-blue);
  border: 1px solid rgba(23, 105, 170, 0.18);
}

.tier-section-head strong {
  color: var(--blue);
  line-height: 1.35;
}

.tier-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.candidate-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.candidate-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.candidate-card-head strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 1.35;
}

.candidate-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.candidate-tier-note {
  margin: -2px 0 10px;
  color: #513c12;
  font-size: 13px;
  line-height: 1.55;
}

.candidate-tags,
.year-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.candidate-tags span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.year-lines span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
}

.year-lines strong {
  color: var(--blue);
}

.year-lines em {
  color: var(--amber);
  font-style: normal;
  font-weight: 800;
}

.candidate-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.candidate-facts div {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.candidate-facts small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
}

.candidate-facts strong {
  display: block;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.candidate-reason {
  margin: 0 0 8px;
  color: #344054;
  font-size: 13px;
  line-height: 1.65;
}

.candidate-warnings {
  margin: 0 0 8px;
  padding-left: 18px;
  color: #513c12;
  font-size: 13px;
  line-height: 1.65;
}

.candidate-source {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.report-section {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.report-section-head {
  margin-bottom: 12px;
}

.report-section-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

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

.foundation-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.foundation-grid span,
.deletion-list span,
.matrix-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.foundation-grid strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.4;
}

.foundation-grid p,
.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.official-source-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(23, 105, 170, 0.18);
  background: var(--soft-blue);
}

.official-source-panel > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
}

.section-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e8;
  color: #513c12;
}

.deletion-list {
  display: grid;
  gap: 10px;
}

.deletion-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.deletion-list span {
  justify-content: center;
  margin-bottom: 0;
  background: var(--soft-amber);
  color: var(--amber);
}

.deletion-list strong {
  display: block;
  margin-bottom: 5px;
}

.deletion-list p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.65;
}

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

.matrix-grid article {
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.matrix-grid span {
  background: var(--soft-green);
  color: var(--green);
}

.matrix-grid strong {
  display: block;
  margin-bottom: 7px;
  line-height: 1.4;
}

.matrix-grid p {
  min-height: 36px;
  margin: 0 0 8px;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
}

.matrix-grid small {
  color: var(--muted);
  line-height: 1.55;
}

.review-checklist ol {
  margin: 0;
  padding-left: 20px;
  color: #344054;
  line-height: 1.75;
}

.handoff-panel {
  border-color: rgba(40, 124, 82, 0.22);
  background: linear-gradient(180deg, #f7fff9 0%, #ffffff 100%);
}

.handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.secondary-action {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(23, 105, 170, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.secondary-action:hover {
  background: var(--soft-blue);
}

.copy-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.handoff-preview {
  max-height: 360px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(40, 124, 82, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
}

.upgrade-lock,
.upgrade-details {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
}

.upgrade-lock {
  border: 1px dashed rgba(23, 105, 170, 0.35);
  background: var(--soft-blue);
}

.upgrade-lock strong {
  display: block;
  margin-bottom: 6px;
}

.upgrade-lock p {
  margin: 0;
  color: #344054;
  line-height: 1.65;
}

.upgrade-details {
  border: 1px solid rgba(40, 124, 82, 0.18);
  background: var(--soft-green);
}

.upgrade-details h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.upgrade-principle {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(40, 124, 82, 0.18);
  color: #344054;
  line-height: 1.7;
}

.upgrade-details ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.upgrade-details ul:last-child {
  margin-bottom: 0;
}

.upgrade-details li {
  color: #344054;
  line-height: 1.7;
}

.activation-band {
  padding-top: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.price-card {
  min-height: 245px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.price-card span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.price-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.1;
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.price-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.price-card ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.price-card li {
  color: #344054;
  font-size: 13px;
  line-height: 1.62;
}

.price-card button,
.tier-contact-row button {
  min-height: 38px;
  padding: 8px 11px;
  border-color: rgba(23, 105, 170, 0.22);
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.price-card button {
  width: 100%;
}

.launch-card {
  border-color: rgba(23, 105, 170, 0.32);
  background: var(--soft-blue);
}

.featured-card {
  border-color: rgba(40, 124, 82, 0.32);
  background: var(--soft-green);
}

.featured-card span {
  background: #fff;
  color: var(--green);
}

.premium-card {
  border-color: rgba(178, 106, 0, 0.32);
  background: var(--soft-amber);
}

.premium-card span {
  background: #fff;
  color: var(--amber);
}

.premium-card button {
  border-color: rgba(178, 106, 0, 0.28);
  background: var(--amber);
}

.tier-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tier-contact-row button + button {
  border-color: rgba(40, 124, 82, 0.24);
  background: var(--soft-green);
  color: var(--green);
}

.faq-band {
  padding-top: 0;
}

.faq-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

.faq-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.faq-grid strong {
  display: block;
  margin-bottom: 7px;
}

.faq-grid p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.72;
}

.activation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

.activation-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.activation-form button {
  min-height: 42px;
  padding: 0 16px;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 800;
}

.upgrade-report {
  min-height: 180px;
}

.launch-checklist {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(23, 105, 170, 0.18);
  background: #f8fafc;
}

.launch-checklist strong {
  display: block;
  margin-bottom: 8px;
}

.launch-checklist ul {
  margin: 0;
  padding-left: 18px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.full-report h3 {
  margin: 18px 0 10px;
  font-size: 17px;
}

.full-report p,
.full-report li {
  color: #344054;
  line-height: 1.75;
}

.full-report ul {
  padding-left: 18px;
}

.report-alert {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--green);
  font-weight: 800;
}

.pdf-export {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.pdf-export strong {
  display: block;
  margin-bottom: 6px;
}

.pdf-export p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pdf-actions button,
.pdf-actions a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.pdf-actions button {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.pdf-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.pdf-actions a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(40, 124, 82, 0.28);
  background: var(--soft-green);
  color: var(--green);
  text-decoration: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 11px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: #f8fafc;
}

td button {
  padding: 7px 10px;
  margin-right: 6px;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .layout,
  .grid.two,
  .grid.three,
    .system-intro,
    .proof-strip,
    .method-grid,
    .promise-grid,
  .risk-card-grid,
    .route-grid,
    .line-grid,
    .candidate-stats,
    .candidate-grid,
    .candidate-facts,
    .foundation-grid,
    .data-trust-panel,
    .rank-check-grid,
    .ai-insight-grid,
    .matrix-grid,
    .pricing-grid,
    .conversion-tier-grid,
    .activation-grid,
    .faq-grid,
    .trust-row,
    .runtime-strip,
  .pdf-export {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .board-head,
  .activation-form {
    grid-template-columns: 1fr;
  }

  .board-head {
    display: grid;
  }

  .board-status,
  .pdf-actions {
    justify-content: flex-start;
  }

  .candidate-board-head,
  .conversion-card-head,
  .tier-section-head,
  .candidate-card-head,
  .candidate-mini,
  .deletion-preview-row,
  .deletion-list article {
    display: grid;
    grid-template-columns: 1fr;
  }

  .candidate-main {
    grid-template-columns: 1fr;
  }

  .candidate-mini-badges,
  .candidate-head-badges {
    justify-items: start;
  }

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

  .rank-check-head {
    grid-template-columns: 1fr;
  }

  .conversion-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .conversion-bar-right {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .conversion-bar-contact {
    justify-content: flex-start;
  }

  .conversion-contact-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 20px;
  }

  .contact-dialog-copy {
    padding-right: 0;
  }

  .contact-dialog-side img {
    width: min(220px, 100%);
    height: auto;
    justify-self: start;
  }

  .form-upgrade-hint {
    grid-template-columns: 1fr;
  }
}
