:root {
  color-scheme: light;
  --ink: #101d3b;
  --muted: #4b5d77;
  --blue: #1848d8;
  --line: #dbe3f0;
  --paper: #f1f5fb;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button, summary, .choice { cursor: pointer; }
:focus-visible { outline: 3px solid #315bed; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.header { min-height: 93px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; font-size: 1.62rem; font-weight: 850; letter-spacing: -.075em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue); margin-right: 10px; }
.brand-mark img { object-fit: contain; }
.brand-dot { color: var(--blue); }
.program, .footer { color: var(--muted); font-size: .875rem; font-weight: 600; }
.layout { display: grid; grid-template-columns: .94fr 1.06fr; gap: 22px; align-items: stretch; }
.hero, .panel { border-radius: 30px; overflow: hidden; }
.hero { background: radial-gradient(ellipse at 100% 95%, #243f99, transparent 66%), #101d3b; color: white; position: relative; min-height: 610px; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 43px 34px; isolation: isolate; }
.hero-content, .clinic { position: relative; z-index: 1; }
.eyebrow, .section-label { text-transform: uppercase; font-size: .79rem; font-weight: 800; letter-spacing: .13em; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #bed2ff; margin: 0 0 31px; }
.eyebrow span { width: 8px; height: 8px; background: #91b8ff; border-radius: 50%; box-shadow: 0 0 0 4px #91b8ff32; }
h1, h2 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(4.3rem, 7.7vw, 7.1rem); line-height: .87; letter-spacing: -.088em; font-weight: 850; }
h1 em { color: #a3beff; font-style: normal; }
.intro { max-width: 29ch; color: #e0e8ff; font-size: 1.12rem; line-height: 1.55; margin: 25px 0 0; }
.clinic { display: flex; align-items: center; gap: 12px; font-size: .86rem; line-height: 1.46; color: #d5e1ff; width: fit-content; }
.clinic img { object-fit: contain; width: 57px; height: 52px; border-radius: 8px; outline: 1px solid #ffffff26; }
.clinic strong { color: white; }
.art { position: absolute; inset: auto -111px -174px auto; width: 460px; height: 460px; pointer-events: none; }
.orbit, .orbit-core { position: absolute; border-radius: 50%; inset: 0; border: 1px solid #a9c2ff62; }
.orbit-2 { inset: 39px; border-color: #a9c2ff91; }
.orbit-3 { inset: 82px; }
.orbit-core { inset: 127px; background: #7aa5ff21; }
.spark { position: absolute; color: #b7ceff; font-size: 1.7rem; font-weight: 300; }
.spark-1 { top: 54px; left: 92px; }
.spark-2 { top: 100px; right: 121px; }
.panel { background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 35px #1934610a; display: flex; flex-direction: column; padding: 46px 45px 25px; min-width: 0; }
.screen { flex: 1; min-width: 0; }
.section-label { display: inline-block; color: var(--blue); margin-bottom: 18px; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.03; letter-spacing: -.055em; font-weight: 800; }
.screen p, details p { color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.facts { padding: 0; margin: 26px 0; list-style: none; display: grid; gap: 10px; font-weight: 650; }
.facts li { display: flex; gap: 10px; align-items: center; }
.facts span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--blue); background: #ecf1ff; }
.primary, .secondary { min-height: 52px; border-radius: 12px; padding: 10px 18px; font-weight: 750; transition: background-color .16s, scale .12s; }
.primary { width: 100%; background: var(--blue); border: 1px solid var(--blue); color: white; }
.primary:hover { background: #143bb3; }
.secondary { background: white; border: 1px solid var(--line); color: var(--ink); }
.secondary:hover { background: #eef3fc; }
button:active { scale: .96; }
.screen .small { font-size: .82rem; margin: 14px 0 20px; }
.panel-footer { border-top: 1px solid var(--line); margin-top: 22px; }
summary { padding-block: 14px 4px; min-height: 44px; color: var(--blue); font-weight: 750; }
details p { margin: 6px 0 10px; font-size: .925rem; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding-block: 22px; }
.progress-block { margin-bottom: 27px; }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-weight: 700; font-size: .875rem; font-variant-numeric: tabular-nums; }
progress { appearance: none; width: 100%; height: 7px; border: 0; border-radius: 99px; margin-top: 8px; background: #e8eef8; overflow: hidden; }
progress::-webkit-progress-bar { background: #e8eef8; }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.choices { display: grid; gap: 8px; margin-block: 12px 18px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 49px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 13px; font-weight: 600; }
.choice:has(input:checked) { border-color: var(--blue); background: #edf2ff; }
.choice input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.age { display: block; width: min(100%, 10rem); border: 1px solid #8092b1; border-radius: 11px; padding: 12px; min-height: 52px; margin: 12px 0 20px; }
.follow-up { border-top: 1px solid var(--line); padding-top: 12px; }
.actions { display: flex; gap: 9px; margin-top: 20px; }
.actions .primary { flex: 1; }
.screen .error { color: #a32130; font-weight: 700; margin-bottom: 0; }
.result-reason { padding: 13px 16px; border-radius: 12px; background: #edf2ff; border: 1px solid #d0deff; }
.result-reason strong { color: var(--ink); }
.identity-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.identity-fields label { display: grid; gap: 6px; font-weight: 700; }
.identity-fields input { min-width: 0; width: 100%; min-height: 49px; border: 1px solid #8092b1; border-radius: 11px; padding: 10px 12px; }
.screen .privacy-note { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 0; }
.review .identifier { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.review-back { color: var(--blue); font-weight: 750; text-underline-offset: 4px; }
.review-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 10px 14px; }
.review-tools .secondary { min-height: 46px; }
.login-wrap { width: min(460px, calc(100% - 28px)); margin: clamp(12px, 7vh, 75px) auto 32px; }
.login-card { padding: clamp(25px, 6vw, 42px); }
.login-card h1, .print-page h1 { font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.03; letter-spacing: -.055em; }
.login-card p, .print-page p { color: var(--muted); line-height: 1.55; }
.login-fields { display: grid; gap: 15px; margin-top: 10px; }
.login-fields label { display: grid; gap: 6px; font-weight: 700; }
.login-fields input { min-width: 0; width: 100%; min-height: 49px; border: 1px solid #8092b1; border-radius: 11px; padding: 10px 12px; }
.login-card .login-error { margin: 0; color: #a32130; font-weight: 650; }
.print-page main { width: min(920px, calc(100% - 32px)); margin: 22px auto; }
.print-page .review-tools { margin-bottom: 24px; }
.print-record { border: 1px solid var(--line); background: #fff; border-radius: 15px; padding: 16px 19px; margin-block: 16px; }
.print-record h2 { font-size: 1.45rem; letter-spacing: -.02em; }
.print-record p { margin-block: 5px; }
.print-record dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 8px 16px; }
.print-record dl div { border-top: 1px solid var(--line); padding-top: 5px; }
.print-record dt { color: var(--muted); }
.print-record dd { margin: 2px 0 0; font-weight: 700; }
@media print {
  @page { size: A4; margin: 14mm; }
  :root { background: white; color: #111; }
  .print-page main { width: auto; margin: 0; }
  .print-page .review-tools { display: none; }
  .print-page .section-label { margin: 0 0 6px; }
  .print-page h1 { font-size: 24pt; }
  .print-page p, .print-page dl { font-size: 10pt; }
  .print-record { break-inside: avoid; border-radius: 0; padding: 8pt 10pt; margin-block: 9pt; }
  .print-record h2 { font-size: 14pt; }
  .print-record dl { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
}
.review-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 25px 0; }
.review-heading .section-label { margin-bottom: 12px; }
.review h1 { font-size: clamp(2.1rem, 6vw, 3.9rem); line-height: 1.05; letter-spacing: -.065em; }
.review-heading p, .empty { color: var(--muted); margin-bottom: 0; }
.download { display: inline-grid; place-items: center; width: fit-content; flex-shrink: 0; text-decoration: none; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.review-card h2 { padding: 20px 24px; font-size: 1.3rem; letter-spacing: -.025em; }
.table-scroll { overflow: auto; }
.review table { width: 100%; border-collapse: collapse; text-align: left; }
.review th, .review td { padding: 14px 16px; vertical-align: top; border-top: 1px solid var(--line); }
.review th { background: #f2f5fb; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.review td:first-child, .review td:nth-child(3), .review td:nth-child(6) { white-space: nowrap; }
.review td:nth-child(4) { font-variant-numeric: tabular-nums; }
.review td:last-child { min-width: 146px; }
.result-chip { display: inline-block; border-radius: 8px; padding: 4px 8px; background: #edf2ff; color: #203e92; font-weight: 650; }
.review summary { min-height: 44px; padding: 0 0 8px; }
.review dl { margin: 0; min-width: 196px; font-size: .87rem; }
.review dl div + div { margin-top: 8px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 650; }
.empty { border-top: 1px solid var(--line); padding: 20px 24px; margin: 0; }
@media (max-width: 640px) {
  .review-heading { align-items: start; flex-direction: column; gap: 16px; }
  .review th, .review td { padding-inline: 12px; }
  .identity-fields { grid-template-columns: 1fr; }
  .review .header .review-tools { gap: 4px 8px; font-size: .84rem; }
  .review .header .review-tools .secondary { min-height: 38px; padding: 6px 8px; }
}
@media (max-width: 780px) {
  .wrap { width: min(570px, calc(100% - 28px)); }
  .header { min-height: 66px; }
  .program { font-size: .77rem; text-align: right; }
  .layout { grid-template-columns: 1fr; gap: 12px; }
  .hero, .panel { border-radius: 21px; }
  .hero { min-height: auto; padding: 23px 22px 17px; }
  .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(2.8rem, 11vw, 4.7rem); }
  .desktop-break { display: none; }
  .intro { margin: 13px 0 17px; font-size: 1rem; }
  .clinic img { width: 40px; height: 36px; }
  .clinic { font-size: .77rem; gap: 8px; }
  .art { width: 300px; height: 300px; right: -130px; bottom: -135px; }
  .panel { padding: 24px 20px 15px; }
  .section-label { margin-bottom: 11px; }
  .footer { font-size: .75rem; }
  body.in-evaluation .hero { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
