:root {
  color-scheme: light;
  --ink: #12243c;
  --muted: #627086;
  --line: #dce3ec;
  --paper: #ffffff;
  --wash: #f3f6fa;
  --blue: #075ba7;
  --blue-dark: #06477f;
  --cyan: #17a4c2;
  --ok: #157347;
  --bad: #b42318;
  --warn: #9a6700;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--wash); line-height: 1.5; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 32px, 980px); margin-inline: auto; }
.hero { color: white; background: linear-gradient(125deg, #052b51 0%, var(--blue) 55%, #0b8aa8 100%); padding: 54px 0 68px; }
.hero h1 { margin: 4px 0 8px; font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -.04em; line-height: 1; }
.eyebrow, .step { margin: 0; font-size: .76rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { color: #b8eaf4; }
.tabs { display: flex; gap: 4px; width: fit-content; margin-top: -24px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: 0 8px 26px #193b5a1a; }
.tab { border: 0; border-radius: 9px; padding: 11px 20px; color: var(--muted); background: transparent; font-weight: 700; }
.tab.is-active { color: white; background: var(--blue); }
.panel { margin: 24px 0; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 12px 36px #193b5a12; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 3px 0 0; font-size: clamp(1.55rem, 4vw, 2.15rem); letter-spacing: -.025em; }
.step { color: var(--blue); }
.support { max-width: 760px; margin: 14px 0 28px; color: var(--muted); }
.counter, .badge { flex: none; padding: 6px 11px; border-radius: 999px; color: var(--blue-dark); background: #e6f4fa; font-size: .82rem; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; }
label small { color: var(--muted); font-size: .78rem; font-weight: 450; }
input { min-width: 0; width: 100%; padding: 12px 13px; border: 1px solid #b9c5d3; border-radius: 9px; outline: 0; color: var(--ink); background: #fff; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #0875c81c; }
.wide { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 2px; }
.primary, .secondary { border: 1px solid var(--blue); border-radius: 9px; padding: 11px 17px; font-weight: 750; }
.primary { color: white; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.primary:disabled, .secondary:disabled { cursor: wait; opacity: .58; }
.secondary { color: var(--blue); background: white; }
.compact { flex: none; padding: 8px 12px; font-size: .83rem; }
.evaluate { min-width: 150px; }
.evaluation-action { align-self: end; margin: 0; }
.evaluation-action .evaluate { width: 100%; }
.message { min-height: 24px; margin-top: 18px; font-size: .9rem; font-weight: 650; }
.message.success { color: var(--ok); }
.message.error { color: var(--bad); }
.message.loading { color: var(--blue); }
.records { display: grid; gap: 10px; margin-top: 4px; }
.record { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfd; overflow-wrap: anywhere; }
.record strong, .record span { display: block; }
.record span { margin-top: 4px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.danger { border: 1px solid #dcaaa5; border-radius: 8px; padding: 7px 11px; color: var(--bad); background: white; font-size: .8rem; font-weight: 750; }
.danger:hover { border-color: var(--bad); background: #fff4f2; }
.empty-state { padding: 24px; border: 1px dashed #bcc9d6; border-radius: 11px; color: var(--muted); text-align: center; }
.results { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.score-card { display: flex; align-items: center; gap: 24px; padding: 22px; border-radius: 14px; background: #eef6fb; }
.score-card h3 { margin: 4px 0; font-size: 1.35rem; }
.score-card p { margin: 3px 0; }
.score-ring { --score-angle: 0deg; display: grid; place-content: center; flex: 0 0 116px; width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(circle 46px, white 97%, transparent), conic-gradient(var(--blue) var(--score-angle), #cad6e2 0); text-align: center; }
.score-ring strong { font-size: 2rem; line-height: 1; }
.score-ring span { color: var(--muted); font-size: .72rem; }
.best { color: var(--blue-dark); font-size: .9rem; }
.checks { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
.check { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.check-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: white; background: var(--muted); font-weight: 900; }
.check.passed .check-icon { background: var(--ok); }
.check.failed .check-icon { background: var(--bad); }
.check.skipped .check-icon { background: var(--warn); }
.check h4 { margin: 1px 0 4px; font-size: .93rem; }
.check p { margin: 0; color: var(--muted); font-size: .79rem; }
.check-points { white-space: nowrap; color: var(--blue-dark); font-size: .82rem; font-weight: 800; }
.history-section { margin-top: 28px; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.history-heading h3 { margin: 0; font-size: 1.15rem; }
.history { display: grid; gap: 8px; }
.attempt { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfd; }
.attempt time { color: var(--muted); font-size: .84rem; }
.attempt-score { min-width: 62px; color: var(--blue-dark); font-weight: 850; text-align: right; }
.footer { padding: 12px 0 35px; color: var(--muted); font-size: .82rem; text-align: center; }
[hidden] { display: none !important; }

@media (max-width: 680px) {
  .hero { padding-top: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .actions { align-items: stretch; flex-direction: column; }
  .evaluation-action { align-self: stretch; }
  .score-card { align-items: flex-start; flex-direction: column; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .attempt { grid-template-columns: 1fr auto; }
}
