:root {
  --navy: #183a5e;
  --navy-dark: #102b48;
  --blue: #2f668f;
  --green: #2f7d52;
  --green-soft: #e9f5ed;
  --orange: #b87706;
  --orange-soft: #fff4dc;
  --red: #c6382d;
  --red-soft: #fff0ee;
  --ink: #1d2c3a;
  --muted: #607080;
  --line: #d7e0e7;
  --surface: #ffffff;
  --background: #f2f5f7;
  --shadow: 0 10px 30px rgba(16, 43, 72, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font: 16px/1.55 Aptos, "Segoe UI", Arial, sans-serif; }
button, input, select { font: inherit; }
a { color: var(--blue); }
.shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 46px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.topbar > a { color: var(--muted); font-size: .9rem; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(145deg, var(--navy-dark), var(--blue)); color: #fff; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--navy-dark); }
.brand small { color: var(--muted); }
.hero { margin-bottom: 18px; padding: 26px 30px; border-radius: 16px; background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; box-shadow: var(--shadow); }
.title-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.hero h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.35rem); line-height: 1.15; }
.hero p { max-width: 820px; margin: 10px 0 0; color: #e1ebf3; }
.app-url { font-size: calc(1rem - 1px); color: #c9dbea; text-decoration: none; }
.app-url:hover { color: #fff; text-decoration: underline; }
.panel { margin-bottom: 18px; padding: 25px; border: 1px solid #e1e8ed; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 8px; color: var(--navy-dark); font-size: 1.45rem; line-height: 1.25; }
.panel h3 { color: var(--navy-dark); }
.panel > p { margin: 0 0 18px; color: var(--muted); }
.step-label { display: block; margin-bottom: 5px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.inline-form label, .text-question, .select-question { display: grid; gap: 7px; color: var(--navy-dark); font-weight: 700; }
input[type="email"], input[type="text"], select { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #aebdca; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, button:focus-visible { outline: 3px solid rgba(47, 102, 143, .22); outline-offset: 2px; }
.button { min-height: 46px; padding: 10px 17px; border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--navy); color: #fff; }
.button.primary:hover { background: var(--navy-dark); }
.button.secondary { background: #e8eef3; color: var(--navy-dark); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button.wide { width: 100%; margin-top: 18px; font-size: 1.08rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.button-row.compact { margin-top: 12px; }
.code-panel { margin-top: 18px; padding: 20px; border: 1px solid #b9cad7; border-radius: 10px; background: #f7fafc; }
.code-panel h3 { margin: 0 0 5px; }
.code-panel p { margin: 0 0 14px; color: var(--muted); }
.code-input { max-width: 280px; text-align: center; letter-spacing: .3em; font-size: 1.25rem !important; font-weight: 800 !important; }
.status { display: none; margin-top: 14px; padding: 13px 15px; border-radius: 9px; }
.status.show { display: block; }
.status.info { background: #edf4f9; color: var(--navy); }
.status.success { background: var(--green-soft); color: #1f6040; }
.status.warning { background: var(--orange-soft); color: #694704; border-left: 5px solid var(--orange); }
.status.error, .status.danger { background: var(--red-soft); color: #8e211a; border-left: 5px solid var(--red); }
.consent-list { display: grid; gap: 14px; }
.consent-card { padding: 20px; border: 1px solid var(--line); border-radius: 11px; }
.consent-card h3 { margin: 0 0 7px; font-size: 1.2rem; }
.consent-card p { margin: 0 0 14px; }
.check-line { display: flex; gap: 11px; align-items: flex-start; padding: 12px 13px; border: 1px solid #b8ddc6; border-left: 5px solid var(--green); border-radius: 8px; background: var(--green-soft); color: #175b3b; font-weight: 800; cursor: pointer; }
.check-line input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: 0 0 auto; }
.access-summary { margin-bottom: 15px; padding: 12px 15px; border: 1px solid #b8ddc6; border-radius: 9px; background: var(--green-soft); color: #1d6542; }
.wizard-head { display: grid; grid-template-columns: 1fr auto; gap: 15px 25px; align-items: end; }
.wizard-head h2 { margin: 0; }
.progress-copy { display: grid; text-align: right; }
.progress-copy strong { color: var(--navy); }
.progress-copy span { color: var(--muted); font-size: .88rem; }
.progress-track { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 999px; background: #e4eaef; }
.progress-track span { display: block; width: 16.67%; height: 100%; border-radius: inherit; background: var(--green); transition: width .2s ease; }
.wizard-step > h2 { margin-bottom: 20px; }
.question { display: grid; gap: 9px; margin: 0 0 22px; padding: 0; border: 0; }
.question legend { margin-bottom: 9px; color: var(--navy-dark); font-size: 1.05rem; font-weight: 800; }
.choice { display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.choice span b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e8eef3; color: var(--navy); flex: 0 0 auto; }
.choice input:checked + span { border: 2px solid var(--green); padding: 9px 12px; background: var(--green-soft); color: #194e35; }
.choice input:checked + span b { background: var(--green); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid rgba(47, 102, 143, .22); outline-offset: 2px; }
.follow-up { margin-left: 24px; padding: 18px; border-left: 5px solid var(--orange); border-radius: 8px; background: var(--orange-soft); }
.text-question, .select-question { margin-bottom: 22px; }
.text-question small { color: var(--muted); font-weight: 400; }
.invalid { border-color: var(--red) !important; }
.validation-note { margin: -8px 0 18px; color: var(--red); font-weight: 700; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 20px; }
.wizard-actions .primary { margin-left: auto; }
.summary { display: grid; grid-template-columns: minmax(190px, .7fr) 1fr; margin-bottom: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.summary dt, .summary dd { margin: 0; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.summary dt { background: #edf3f7; color: var(--navy-dark); font-weight: 800; }
.summary dd { background: #fff; }
.summary dt:last-of-type, .summary dd:last-of-type { border-bottom: 0; }
.upload-block { padding: 20px; border: 2px solid #8caec8; border-radius: 11px; }
.upload-block h3 { margin: 0 0 5px; }
.upload-block p { margin: 0 0 14px; color: var(--muted); }
.drop-zone { display: grid; place-items: center; min-height: 135px; padding: 20px; border: 3px dashed var(--blue); border-radius: 10px; background: #eef6fb; color: var(--navy-dark); text-align: center; cursor: pointer; }
.drop-zone.drag { background: #dcecf7; }
.drop-zone strong, .drop-zone span { display: block; }
.drop-zone strong { font-size: 1.13rem; }
.drop-zone span { color: var(--muted); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-list { display: grid; gap: 8px; margin-top: 12px; }
.file-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; }
.file-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row button { border: 0; background: transparent; color: var(--red); font-size: 1.25rem; cursor: pointer; }
.notice { margin-top: 15px; padding: 13px 15px; border-left: 5px solid var(--orange); border-radius: 8px; background: var(--orange-soft); color: #694704; }
.report-actions { margin-top: 18px; padding: 20px; border: 2px solid #b8ddc6; border-radius: 11px; background: var(--green-soft); }
.report-actions h3 { margin: 0 0 6px; color: var(--navy-dark); }
.report-actions p { margin: 0 0 15px; }
.report-actions .button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.report-actions .status { margin-bottom: 0; }
.report-list { display: grid; gap: 12px; }
.report-card { padding: 14px; border: 1px solid #b8ddc6; border-radius: 9px; background: #fff; }
.report-card h4 { margin: 0 0 11px; color: var(--navy-dark); font-size: 1rem; }
.guide-button { display: inline-flex; margin-top: 8px; background: #fff; color: var(--navy-dark); }
footer { padding-top: 10px; color: var(--muted); font-size: .82rem; text-align: center; }

@media (max-width: 720px) {
  .shell { width: min(100% - 20px, 1040px); padding-top: 12px; }
  .topbar { align-items: flex-start; }
  .topbar > a { display: none; }
  .hero, .panel { padding: 20px; }
  .inline-form { grid-template-columns: 1fr; }
  .inline-form .button { width: 100%; }
  .wizard-head { grid-template-columns: 1fr; }
  .progress-copy { text-align: left; }
  .summary { grid-template-columns: 1fr; }
  .summary dt { border-bottom: 0; }
  .follow-up { margin-left: 0; }
}
