:root { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1d333b; background: #f4f7f8; --green: #126951; --line: #d8e4e5; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a, summary, input { outline-offset: 4px; }
button { border: 0; border-radius: 8px; background: var(--green); color: white; padding: 12px 18px; min-height: 44px; font-weight: 650; cursor: pointer; }
button:hover { filter: brightness(.94); }
button:disabled { opacity: .55; cursor: wait; }
.secondary { background: #e9eff0; color: #304b53; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--green); }
.brand b { font-size: 1.9rem; line-height: 1; letter-spacing: -2px; }
.brand span { font-size: .62rem; line-height: 1.4; letter-spacing: 1.1px; font-weight: 750; }
.clock { text-align: center; }
.clock span { display: block; color: #5b7179; font-size: .75rem; }
.clock strong { font-size: 1.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.clock.urgent { color: #9b3b25; }
.connection { font-size: .75rem; background: #edf2f3; color: #526970; padding: 6px 9px; border-radius: 20px; white-space: nowrap; }
.connection.online { color: #126951; background: #e8f4ed; }
.connection.delayed { color: #8a4a20; background: #fff0dd; }
main { max-width: 1120px; margin: auto; padding: 18px 12px max(18px, env(safe-area-inset-bottom)); }
.card { padding: 26px 22px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.entry { max-width: 540px; margin: 18px auto 34px; }
.eyebrow { font-size: .7rem; letter-spacing: 1.2px; color: #4d7474; font-weight: 700; }
h1 { font-size: 1.85rem; line-height: 1.18; letter-spacing: -.8px; margin: 16px 0; }
h2 { line-height: 1.3; font-size: 1.4rem; }
p { color: #536c76; margin: 12px 0; }
form { display: grid; gap: 18px; }
fieldset { display: grid; gap: 18px; border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: .85rem; font-weight: 650; margin-bottom: 14px; }
#readiness { white-space: pre-line; }
.entry form { margin-top: 26px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: .9rem; font-weight: 650; }
.optional { font-weight: 400; color: #637e86; font-size: .8rem; }
input { min-width: 0; width: 100%; border: 1px solid #b6cbd0; border-radius: 7px; padding: 12px; background: white; color: #1d333b; }
.privacy, .footnote { font-size: .8rem; line-height: 1.6; }
.privacy { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.recovery { margin-top: 24px; font-size: .875rem; }
summary { cursor: pointer; font-weight: 600; color: #315d62; padding: 8px 0; }
.rules-list { padding-left: 22px; font-size: .95rem; }
.rules-list li { padding: 8px 0; }
.notice, .message { border: 1px solid var(--line); border-left: 3px solid var(--green); background: #edf5f1; border-radius: 6px; padding: 12px 14px; margin: 12px 0; font-size: .875rem; }
.message { background: #f1f6fb; border-left-color: #4f7d98; overflow-wrap: anywhere; }
.warning { background: #fff6e8; border-left-color: #b27329; }
.form-error { margin: 0; padding: 12px 14px; border: 1px solid #e1b9b5; border-left: 3px solid #a23d32; border-radius: 6px; background: #fff1ef; color: #812d25; font-size: .9rem; overflow-wrap: anywhere; }
.check { flex-direction: row; align-items: start; gap: 12px; font-weight: 450; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--green); }
.exam-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.exam-heading h1 { font-size: 1.2rem; margin: 6px 0 2px; letter-spacing: -.3px; }
.exam-heading p { font-size: .8rem; margin: 4px 0; }
.exam-heading button { font-size: .8rem; padding: 10px 12px; white-space: nowrap; }
#form { display: block; width: 100%; height: calc(100dvh - 164px); min-height: 480px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.help { margin: 16px 0; font-size: .875rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.help p { line-height: 1.6; }
.help a { display: inline-block; color: var(--green); padding: 8px 0; font-weight: 650; }
#correlation { overflow-wrap: anywhere; }
.exam-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.exam-actions button { flex: 1; min-width: 170px; }
.session-help { font-size: .8rem; margin-top: 24px; overflow-wrap: anywhere; }
.session-help button { margin: 5px 8px 5px 0; font-size: .8rem; }
footer { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0 5px; color: #678088; font-size: .75rem; }
dialog { width: calc(100% - 28px); max-width: 560px; border: 1px solid var(--line); padding: 25px; border-radius: 12px; max-height: 90dvh; }
dialog::backdrop { background: #102e3070; }
dialog .exam-actions { margin-bottom: 0; }
:fullscreen { background: #f4f7f8; overflow: auto; }
[hidden] { display: none !important; }
@media (max-width: 400px) { .topbar { gap: 8px; padding-inline: 10px; } .connection { max-width: 112px; white-space: normal; text-align: center; } .clock strong { font-size: 1.15rem; } }
@media (min-width: 700px) { .topbar { padding-inline: 32px; } main { padding: 28px 24px; } .entry { padding: 34px; margin-top: 30px; } .brand span { font-size: .7rem; } .clock strong { font-size: 1.6rem; } .connection { font-size: .85rem; } #form { min-height: 600px; } }
