:root { --bg:#f4f6f9; --card:#fff; --ink:#1b2430; --muted:#5d6b7c; --brand:#0b4f8a; --brand2:#083a66; --line:#d9e0e8; --bad:#b3261e; --warn:#b26a00; --ok:#1d7a3a; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.card { max-width: 900px; margin: 24px auto; background: var(--card); border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.card.narrow { max-width: 440px; }
h1 { font-size: 1.5rem; margin: 0 0 8px; }
h2 { font-size: 1.1rem; margin: 16px 0 6px; }
.fr { color: var(--muted); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } .card { margin: 0; border-radius: 0; padding: 16px; } }
ul { padding-left: 20px; }
li { margin: 4px 0; }
label { display: block; margin: 12px 0 6px; font-weight: 600; }
.confirm { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; }
.confirm input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
input { width: 100%; font-size: 1.1rem; padding: 12px; border: 2px solid var(--line); border-radius: 8px; }
input:focus { outline: none; border-color: var(--brand); }
input.code { text-transform: uppercase; letter-spacing: .3em; text-align: center; font-size: 1.6rem; }
button { font-size: 1.05rem; padding: 12px 22px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; cursor: pointer; }
button:hover { background: var(--brand2); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: #e7ecf2; color: var(--ink); }
.err { color: var(--bad); }
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.profile label { font-weight: 500; font-size: .92rem; }
@media (max-width: 720px) { .profile { grid-template-columns: 1fr; } }

/* test screen: nothing to select or copy */
#question { user-select: none; -webkit-user-select: none; }
#question input { user-select: text; -webkit-user-select: text; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; }
.timer { font-variant-numeric: tabular-nums; font-size: 1.3rem; color: var(--ink); min-width: 3ch; text-align: right; }
.timer.low { color: var(--bad); }
.examclock { font-variant-numeric: tabular-nums; background: #eef3f9; padding: 4px 10px; border-radius: 6px; color: var(--ink); }
.examclock.low { background: #fde8e6; color: var(--bad); }
.timebar { height: 6px; background: #e7ecf2; border-radius: 3px; margin: 8px 0 24px; overflow: hidden; }
#timefill { height: 100%; background: var(--brand); width: 100%; transition: width .2s linear; }
.hint { color: var(--muted); margin: 0; }
.term { font-size: 2.4rem; font-weight: 700; margin: 12px 0 20px; }
.answer { font-size: 1.4rem; }
.row { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.prompt { font-size: 1.25rem; font-weight: 600; margin-bottom: 18px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; background: #f1f5fa; color: var(--ink); border: 2px solid var(--line); font-size: 1.05rem; }
.opt:hover { background: #e3edf8; border-color: var(--brand); }
.flash { min-height: 1.5em; color: var(--warn); font-weight: 600; margin-top: 16px; }
.who { font-size: 1.1rem; }
