:root {
  color-scheme: dark;
  --bg: #06101f;
  --panel: #0b192b;
  --line: #223650;
  --text: #f4f1e8;
  --muted: #96a5b9;
  --amber: #f4b740;
  --amber2: #ffd780;
  --green: #58d68d;
  --red: #ff776d;
  --blue: #76b9ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 80% 5%, #132b48 0, transparent 35rem), var(--bg); color: var(--text); min-height: 100vh; }
.site-header { height: 72px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1160px) / 2)); background: #06101ee8; backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 720; letter-spacing: -.02em; }
.brand em { color: var(--amber); font-style: normal; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #7d6330; color: var(--amber); font-family: ui-monospace, monospace; font-size: 12px; }
.status-dot { color: var(--muted); font-size: 12px; }
.status-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; margin-right: 8px; box-shadow: 0 0 12px var(--green); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions form { margin: 0; }
main { max-width: 1160px; margin: auto; padding: 72px 24px 96px; }
.hero { max-width: 900px; margin-bottom: 48px; }
.eyebrow, .step { color: var(--amber); font: 700 11px/1.4 ui-monospace, SFMono-Regular, monospace; letter-spacing: .14em; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(44px, 7vw, 82px); line-height: .98; letter-spacing: -.045em; margin: 16px 0 24px; }
.hero h1 span { color: var(--amber2); }
.lede { max-width: 780px; color: #c1cad5; font-size: 18px; line-height: 1.7; }
.scope-note { max-width: 780px; color: var(--muted); border-left: 2px solid var(--amber); padding-left: 14px; line-height: 1.6; }
.card { background: linear-gradient(145deg, #0d1d31f5, #091627f5); border: 1px solid var(--line); padding: 28px; box-shadow: 0 18px 50px #0003; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.profile-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
h2 { font-size: 24px; margin: 5px 0 0; letter-spacing: -.025em; }
.privacy { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 8px 11px; }
.wide { display: block; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.span-two { grid-column: span 2; }
label, legend { color: #abb8c8; font-size: 12px; font-weight: 650; letter-spacing: .02em; }
label small { display: block; color: #71839b; font-weight: 450; line-height: 1.45; margin-top: 7px; }
input, select, textarea { display: block; width: 100%; margin-top: 8px; padding: 14px 15px; border-radius: 0; border: 1px solid #2a405d; background: #071424; color: var(--text); font: inherit; font-size: 14px; outline: none; }
textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 2px #f4b74020; }
fieldset { border: 1px solid #213750; padding: 13px 14px 15px; margin: 0; }
legend small { color: #71839b; font-weight: 450; margin-left: 5px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; margin-top: 5px; }
.choice-grid label { display: flex; gap: 9px; align-items: center; font-weight: 550; }
.choice-grid input { width: auto; margin: 0; accent-color: var(--amber); }
.section-label { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.section-label.no-top { border-top: 0; margin-top: 0; padding-top: 0; }
.section-label span { color: var(--text); font-size: 16px; font-weight: 750; }
.section-label small { color: var(--muted); }
details { margin: 22px 0; color: var(--muted); border-top: 1px solid #172a42; padding-top: 18px; }
summary { cursor: pointer; font-size: 13px; font-weight: 650; color: #b8c4d2; }
.details-grid { grid-template-columns: repeat(2, 1fr); }
.progressive-panel { margin-top: 22px; border-top: 1px solid #172a42; }
.progressive-panel .section-label { border-top: 0; margin-top: 0; }
.submit-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: stretch; }
button { display: flex; justify-content: space-between; align-items: center; border: 0; padding: 17px 20px; background: var(--amber); color: #17130a; font-weight: 800; font-size: 15px; cursor: pointer; }
button:hover { background: var(--amber2); }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { color: #c5d2e1; background: transparent; border: 1px solid #40556f; white-space: nowrap; }
button.secondary:hover { color: var(--amber2); border-color: var(--amber); }
button.text-button { color: #aebed0; background: transparent; border: 0; padding: 8px; font-size: 11px; font-weight: 700; }
button.text-button:hover { color: var(--amber2); background: transparent; }
.entry-block { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; }
.entry-block > p:not(.step) { max-width: 760px; }
.entry-block .submit-row { margin-top: 18px; }
.hunt-block { border: 1px solid #38516f; background: #0d2035; padding: 24px; }
.analyze-block { margin-top: 24px; }
.loading { margin-top: 24px; display: flex; align-items: center; gap: 28px; }
.radar { flex: 0 0 66px; width: 66px; height: 66px; border: 1px solid #485b71; border-radius: 50%; position: relative; background: conic-gradient(from 0deg, #f4b74080, transparent 28%); animation: spin 2s linear infinite; }
.radar::after, .radar::before { content: ""; position: absolute; inset: 15px; border: 1px solid #354a63; border-radius: 50%; }
.radar::before { inset: 31px; background: var(--amber); box-shadow: 0 0 14px var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }
.error { border-color: #6e3738; margin-top: 24px; }
.error .step { color: var(--red); }
.results { margin-top: 32px; }
.candidate-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.candidate-card { display: flex; flex-direction: column; gap: 17px; }
.candidate-head { display: flex; justify-content: space-between; gap: 18px; }
.candidate-head h2 { font-size: 21px; }
.candidate-head p { margin: 7px 0 0; }
.candidate-score { flex: 0 0 auto; color: var(--amber2); font: 400 26px Georgia, serif; }
.candidate-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.candidate-facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.candidate-facts small, .candidate-facts strong { display: block; }
.candidate-facts small { color: #71839b; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.candidate-facts strong { color: #dbe3ec; font-size: 12px; line-height: 1.45; margin-top: 6px; }
.candidate-unknowns { border-left: 2px solid var(--amber); padding-left: 11px; font-size: 13px; }
.candidate-citations { display: flex; gap: 8px; flex-wrap: wrap; }
.candidate-citations a { color: var(--blue); font-size: 11px; overflow-wrap: anywhere; }
.candidate-cta { margin-top: auto; }
.discovery-sources-card { margin-top: 18px; }
.example-banner { color: #17130a; background: var(--amber2); padding: 11px 16px; font: 800 11px/1.4 ui-monospace, monospace; letter-spacing: .08em; }
.result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.result-head p { color: var(--muted); overflow-wrap: anywhere; }
.eligibility-badge { font: 800 15px ui-monospace, monospace; letter-spacing: .08em; padding: 16px; border: 1px solid currentColor; text-align: center; }
.eligible { color: var(--green); }
.ineligible { color: var(--red); }
.uncertain { color: var(--amber); }
.decision-summary { margin-bottom: 18px; border-left: 3px solid var(--amber); }
.decision-summary > p:last-child { color: #d8dee7; font-size: 16px; margin-bottom: 0; line-height: 1.65; }
.decision-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.score-line { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.score-line strong { font: 400 34px Georgia, serif; color: var(--amber2); text-transform: uppercase; }
.score-line span { font: 700 17px/1.45 ui-monospace, monospace; }
.card p { color: var(--muted); line-height: 1.55; }
.list-item { padding: 11px 0; border-bottom: 1px solid #1c3049; font-size: 14px; line-height: 1.5; }
.list-item small, .action small { display: block; color: #788ba4; margin-top: 7px; line-height: 1.45; }
.list-item:last-child { border-bottom: 0; }
.action-card { margin-top: 18px; }
.action { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.action-index { font: 700 13px ui-monospace, monospace; color: var(--amber); }
.action h3 { font-size: 16px; margin: 0 0 7px; }
.action p { margin: 0; }
.tags { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; max-width: 220px; }
.tag { font: 700 10px ui-monospace, monospace; padding: 6px 8px; border: 1px solid #40556f; color: #b7c5d6; text-transform: uppercase; }
.tag.fact { color: var(--green); border-color: #35684b; }
.tag.suggest { color: var(--blue); border-color: #365f86; }
.tag.verify { color: var(--amber); border-color: #725d2f; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.source { display: block; color: #c6d7eb; text-decoration: none; padding: 11px 0; border-bottom: 1px solid #1c3049; overflow-wrap: anywhere; }
.source:hover { color: var(--amber); }
.source small { display: block; color: var(--muted); margin-top: 4px; }
footer { border-top: 1px solid var(--line); padding: 28px 24px; text-align: center; color: #718197; font-size: 12px; line-height: 1.8; }
.login-body { display: grid; min-height: 100vh; place-items: center; }
.login-main { width: 100%; max-width: 620px; padding: 28px; }
.login-card { padding: 42px; }
.login-card .eyebrow { margin-top: 42px; }
.login-card h1 { font: 400 clamp(38px, 8vw, 62px)/1 Georgia, "Times New Roman", serif; margin: 12px 0 20px; color: var(--amber2); }
.login-form { display: grid; gap: 18px; margin-top: 28px; }
.login-error { color: #ffd5d1; border: 1px solid #6e3738; background: #34181c; padding: 13px 15px; margin-top: 20px; }
.login-footnote { color: #718197; font-size: 11px; margin-top: 24px; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .form-grid, .decision-grid, .support-grid, .candidate-list { grid-template-columns: 1fr 1fr; }
  .decision-grid .card:first-child { grid-column: 1 / -1; }
  .span-two { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  main { padding: 44px 16px 72px; }
  .site-header { padding: 0 16px; }
  .status-dot { font-size: 0; }
  .status-dot::before { margin: 0; }
  .form-grid, .decision-grid, .support-grid, .submit-row, .candidate-list, .candidate-facts, .choice-grid { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .card { padding: 21px; }
  .card-heading, .result-head, .section-label { flex-direction: column; }
  .profile-controls { justify-content: flex-start; }
  .action { grid-template-columns: 32px 1fr; }
  .tags { grid-column: 2; justify-content: flex-start; }
  .hero h1 { font-size: 46px; }
  .loading { align-items: flex-start; }
  .login-main { padding: 16px; }
  .login-card { padding: 26px; }
}
