/* Periodic Table drill · tokens from /assets/base.css */
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; }
.input {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 16px; width: 100%; min-width: 0;
}
.input:focus { outline: none; border-color: var(--fg); }
.input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.input:read-only { opacity: .85; }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.rangemsg { min-height: 22px; margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.rangemsg.bad { color: var(--bad); font-weight: 500; }
.note code { font: 13px var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.note { color: var(--muted); font-size: 14px; max-width: 56ch; margin: 0 0 24px; }
.actions { margin-top: 20px; }
#setup .actions { justify-content: space-between; margin-top: 0; }

/* Progress */
.prog { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--fg); transition: width var(--dur-short) var(--ease-out); }
.stats { display: flex; justify-content: space-between; margin: 8px 0 20px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Card */
.card { display: grid; gap: 20px; margin-bottom: 48px; }
.given {
  display: grid; justify-items: center; gap: 4px; padding: 28px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.given__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.given__value {
  font-size: clamp(44px, 14vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1;
  font-variant-numeric: tabular-nums; text-align: center; overflow-wrap: anywhere;
}

.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 480px) { .answers { grid-template-columns: 1fr; } }
.ans { display: grid; gap: 6px; align-content: start; }
.ans > span { font-size: 13px; font-weight: 500; }

.fix { font-style: normal; font-size: 13px; color: var(--muted); }
.fix:empty { display: none; }
.ans.ok .input { border-color: var(--good); box-shadow: 0 0 0 1px var(--good); }
.ans.no .input { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.ans.no .fix { color: var(--bad); font-weight: 500; }

.verdict { min-height: 24px; margin: 0; font-size: 14px; font-weight: 500; }
.verdict.good { color: var(--good); }
.verdict.bad { color: var(--bad); }

/* Results */
.done__title { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; margin: 24px 0 4px; }
.done__sub { color: var(--muted); margin: 0 0 24px; }
.done__h { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.missed { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.missed li {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; background: var(--surface);
  font-size: 14px; display: flex; gap: 8px; align-items: baseline;
}
.missed b { font-size: 18px; font-weight: 600; min-width: 1.4em; }
.missed span { color: var(--muted); font-variant-numeric: tabular-nums; }
