:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: #0d1119;
  --panel-2: #151b26;
  --border: #273044;
  --border-strong: #3a4964;
  --text: #eff4fb;
  --muted: #9ba8bb;
  --faint: #6f7c8f;
  --blue: #2588ff;
  --blue-2: #69afff;
  --blue-soft: rgba(37, 136, 255, .14);
  --green: #3bd487;
  --amber: #f6c453;
  --red: #ff7d86;
  --radius: 15px;
  --shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue-2); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding: 56px 20px 46px; text-align: center; }
.aurora { position: absolute; inset: -250px 0 auto; height: 560px; background: radial-gradient(circle at 50% 50%, rgba(37, 136, 255, .44), transparent 52%); filter: blur(18px); pointer-events: none; }
.hero-inner { position: relative; max-width: 760px; margin: auto; }
.logo { display: inline-flex; align-items: baseline; text-decoration: none; color: white; font-size: 45px; font-weight: 800; letter-spacing: -.05em; }
.logo strong { color: var(--blue); }
.eyebrow { margin: 14px 0 7px; color: var(--blue-2); font-size: 12px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(31px, 6vw, 48px); }
h2 { margin: 0; font-size: 23px; }
h3 { margin: 0; font-size: 17px; }
.hero p:not(.eyebrow) { max-width: 640px; margin: 15px auto 0; color: var(--muted); }
.time-note { font-size: 13px; }
.shell { width: min(960px, calc(100% - 28px)); margin: auto; padding: 0 0 70px; }

.progress-shell { position: sticky; z-index: 20; top: 0; padding: 17px 0 13px; background: linear-gradient(var(--bg) 75%, transparent); }
.progress-track { height: 7px; border: 1px solid var(--border); border-radius: 99px; overflow: hidden; background: var(--panel-2); }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transition: width .25s ease; box-shadow: 0 0 14px rgba(37, 136, 255, .7); }
.progress-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.progress-meta strong { color: var(--text); }

.savebar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 3px 0 18px; color: var(--faint); font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }
.chip { border: 1px solid var(--border); border-radius: 99px; padding: 3px 9px; color: var(--blue-2); background: var(--blue-soft); }

.panel, .form-section { margin: 0 0 20px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(155deg, rgba(20, 27, 39, .98), rgba(11, 15, 23, .98)); box-shadow: var(--shadow); }
.form-section { padding: clamp(21px, 5vw, 34px); }
.panel { padding: clamp(20px, 4vw, 30px); }
.section-heading { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-bottom: 26px; }
.section-number { display: inline-flex; width: 39px; height: 29px; justify-content: center; align-items: center; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--blue-2); background: var(--blue-soft); font-size: 12px; font-weight: 800; }
.section-heading p, .muted { color: var(--muted); }
.section-heading p { margin: 6px 0 0; }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.panel-heading .eyebrow { margin-top: 0; }

.field-grid { display: grid; gap: 16px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: block; margin: 0 0 19px; }
.field > span:first-child, .field-label { display: block; margin-bottom: 7px; color: var(--text); font-weight: 650; }
.field small { color: var(--faint); font-weight: 500; }
.required { color: var(--red); }
.help, .privacy-note { display: block; margin: 5px 0 9px; color: var(--faint); font-size: 12.5px; font-weight: 450; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; background: var(--panel-2); color: var(--text); }
textarea { min-height: 122px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input:disabled, textarea:disabled, select:disabled { opacity: .58; cursor: not-allowed; }
.answer-state { width: auto; max-width: 210px; margin: 7px 0 0 auto; padding: 7px 9px; font-size: 12px; }
.options { display: flex; flex-wrap: wrap; gap: 9px; }
.option { display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-2); color: var(--muted); font-weight: 550; }
.option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--text); }
.option input { accent-color: var(--blue); }

.repeater { margin: 0 0 24px; padding: 19px; border: 1px solid var(--border); border-radius: 12px; background: rgba(3, 7, 13, .36); }
.repeater-head { display: flex; justify-content: space-between; gap: 15px; align-items: start; margin-bottom: 15px; }
.repeater-card { margin: 12px 0; padding: 18px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); }
.repeater-card-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.record-id { color: var(--faint); font: 11px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.empty-state { margin: 4px 0 13px; color: var(--faint); }

.button { border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 15px; background: var(--panel-2); color: var(--text); font-weight: 700; }
.button:hover { border-color: var(--blue); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { border-color: var(--blue); background: linear-gradient(135deg, #1676eb, #2f92ff); }
.button-small { padding: 5px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.button-danger { border-color: rgba(255, 125, 134, .4); color: var(--red); }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); color: var(--text); font-size: 21px; }
.actions, .wizard-nav, .download-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wizard-nav { justify-content: space-between; margin-top: 18px; }
.download-grid { margin: 22px 0; }
.share-card { margin-top: 26px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: rgba(3, 7, 13, .42); }
.share-card summary { cursor: pointer; font-weight: 750; }
.share-card[open] summary { margin-bottom: 18px; }

.alert { margin: 0 0 17px; border: 1px solid rgba(255, 125, 134, .45); border-radius: 11px; padding: 13px 15px; background: rgba(255, 125, 134, .08); color: #ffd6d9; }
.issue-list { margin: 10px 0 0; padding-left: 20px; }
.review-section { margin: 18px 0; padding: 18px; border: 1px solid var(--border); border-radius: 11px; background: rgba(4, 8, 14, .35); }
.review-section h3 { margin-bottom: 11px; }
.review-row { display: grid; grid-template-columns: minmax(170px, .8fr) 2fr auto; gap: 14px; padding: 8px 0; border-top: 1px solid rgba(39, 48, 68, .6); align-items: start; }
.review-row:first-of-type { border-top: 0; }
.review-value { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.completeness-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; margin: 15px 0; }
.completeness-item { padding: 10px; border: 1px solid var(--border); border-radius: 9px; }
.status-COMPLETE { color: var(--green); }
.status-USABLE_WITH_GAPS { color: var(--blue-2); }
.status-MATERIAL_GAPS { color: var(--amber); }
.status-BLOCKING_GAP { color: var(--red); }
.success-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(59, 212, 135, .13); color: var(--green); font-size: 27px; }
.version-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.version-row:first-child { border-top: 0; }

footer { border-top: 1px solid var(--border); padding: 30px 16px; text-align: center; color: var(--faint); font-size: 13px; }
footer p { margin: 5px; }
[hidden] { display: none !important; }

@media (max-width: 700px) {
  .field-grid.two, .review-row { grid-template-columns: 1fr; }
  .review-row .button { justify-self: start; }
  .progress-meta { display: grid; gap: 3px; }
  .savebar .button { flex: 1 1 auto; }
}

@media print {
  body { background: white; color: black; }
  .hero, .progress-shell, .savebar, #onboardingForm, .versions-panel, .review-panel, .download-grid, .share-card, footer { display: none !important; }
  .output-panel { display: block !important; border: 0; box-shadow: none; background: white; color: black; }
  .muted { color: #333; }
}
