:root {
  --bg: #f5f5f4;
  --surface: #ffffff;
  --surface-2: #f0f0ef;
  --text: #18181b;
  --text-2: #52525b;
  --muted: #a1a1aa;
  --hair: rgba(24, 24, 27, .08);
  --primary: #18181b;
  --on-primary: #ffffff;
  --sel-bg: #f4f4f5;
  --ok: #15803d;  --ok-bg: #ecfdf3;  --ok-line: #bbf7d0;
  --bad: #dc2626; --bad-bg: #fef2f2; --bad-line: #fca5a5;
  --warn: #a16207;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.02);
  --shadow-lg: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -8px rgba(0,0,0,.08);
  --r: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0d; --surface: #161618; --surface-2: #1e1e21;
    --text: #f4f4f5; --text-2: #a1a1aa; --muted: #63636b; --hair: rgba(255,255,255,.07);
    --primary: #f4f4f5; --on-primary: #0c0c0d; --sel-bg: #232326;
    --ok: #4ade80; --ok-bg: rgba(34,197,94,.10); --ok-line: rgba(74,222,128,.25);
    --bad: #f87171; --bad-bg: rgba(239,68,68,.14); --bad-line: rgba(248,113,113,.4);
    --warn: #facc15;
    --shadow: 0 0 0 1px rgba(255,255,255,.04);
    --shadow-lg: 0 0 0 1px rgba(255,255,255,.05);
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0d; --surface: #161618; --surface-2: #1e1e21;
  --text: #f4f4f5; --text-2: #a1a1aa; --muted: #63636b; --hair: rgba(255,255,255,.07);
  --primary: #f4f4f5; --on-primary: #0c0c0d; --sel-bg: #232326;
  --ok: #4ade80; --ok-bg: rgba(34,197,94,.10); --ok-line: rgba(74,222,128,.25);
  --bad: #f87171; --bad-bg: rgba(239,68,68,.14); --bad-line: rgba(248,113,113,.4);
  --warn: #facc15;
  --shadow: 0 0 0 1px rgba(255,255,255,.04);
  --shadow-lg: 0 0 0 1px rgba(255,255,255,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
svg { display: block; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px 120px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  margin: 0 -16px; padding: 12px 16px; display: flex; align-items: center; gap: 8px; min-height: 60px; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; }
.nav .title { text-align: center; font-weight: 600; font-size: 15px; white-space: nowrap; padding: 0 6px; }
.nav .side { min-width: 0; display: flex; align-items: center; gap: 2px; }
.nav .side.r { justify-content: flex-end; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.text-btn { font-size: 15px; font-weight: 600; color: var(--text); padding: 8px 10px; border-radius: 10px; }
.text-btn:hover { background: var(--surface-2); }
.progress { height: 3px; background: var(--hair); border-radius: 99px; overflow: hidden; margin: 0 0 4px; }
.progress > i { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .3s ease; }

/* ---------- home ---------- */
.hero { padding: 40px 0 28px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.025em; margin: 8px 0 10px; font-weight: 800; }
.hero p { margin: 0; color: var(--text-2); max-width: 46ch; }
.list { display: grid; gap: 12px; }
.exam { display: block; width: 100%; text-align: left; background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 20px; transition: transform .12s ease, box-shadow .12s ease; }
.exam:hover { transform: translateY(-1px); }
.exam:active { transform: scale(.995); }
.exam .head { display: flex; align-items: flex-start; gap: 14px; }
.badge { flex: none; height: 44px; min-width: 44px; padding: 0 10px; border-radius: 12px; background: var(--surface-2);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.exam .name { flex: 1; min-width: 0; }
.exam .name b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.exam .name span { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.chev { color: var(--muted); margin-top: 12px; }
.meter { margin-top: 18px; }
.meter .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.meter .row b { color: var(--text); font-weight: 600; }

/* ---------- section / menu ---------- */
.page-h { padding: 20px 0 24px; }
.page-h h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 6px; font-weight: 800; }
.page-h p { margin: 0; color: var(--text-2); font-size: 15px; }
.group { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.cell { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; position: relative; }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; height: 1px; background: var(--hair); }
button.cell:hover:not(:disabled) { background: var(--surface-2); }
.cell:disabled { opacity: .45; }
.cell .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--text); }
.cell .tx { flex: 1; min-width: 0; }
.cell .tx b { display: block; font-weight: 600; font-size: 16px; }
.cell .tx span { display: block; font-size: 14px; color: var(--text-2); margin-top: 1px; }
.cell .chev { margin: 0; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 30px 4px 10px; }
.hist .cell { padding: 13px 18px; }
.hist .cell + .cell::before { left: 18px; }
.hist .date { flex: 1; color: var(--text-2); font-size: 15px; }
.hist .sc { font-weight: 600; font-size: 15px; margin-right: 12px; }
.gchip { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.gchip.g5, .gchip.g4 { background: var(--ok-bg); color: var(--ok); }
.gchip.g3 { background: var(--surface-2); color: var(--text); }
.gchip.g2 { background: var(--bad-bg); color: var(--bad); }
.link-danger { display: block; margin: 28px auto 0; color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.link-danger:hover { color: var(--bad); }

/* ---------- quiz ---------- */
.q-wrap { padding-top: 22px; }
.q-meta { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.q-meta .tag { color: var(--warn); }
.q-text { font-size: 20px; line-height: 1.4; letter-spacing: -.012em; font-weight: 650; margin: 0 0 22px; white-space: pre-wrap; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; background: var(--surface);
  border-radius: 14px; padding: 15px 16px; box-shadow: var(--shadow), inset 0 0 0 1px var(--hair);
  transition: box-shadow .12s ease, background .12s ease; font-size: 16px; line-height: 1.45; }
.opt:hover:not(:disabled) { box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent); }
.opt .key { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600;
  color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--hair); margin-top: -1px; transition: all .12s ease; }
.opt.multi .key { border-radius: 7px; }
.opt.sel { background: var(--sel-bg); box-shadow: inset 0 0 0 1.5px var(--primary); }
.opt.sel .key { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.opt.right { background: var(--ok-bg); box-shadow: inset 0 0 0 1.5px var(--ok-line); color: var(--text); }
.opt.right .key { background: var(--ok); color: #fff; box-shadow: none; }
.opt.wrong { background: var(--bad-bg); box-shadow: inset 0 0 0 1.5px var(--bad-line); }
.opt.wrong .key { background: var(--bad); color: #fff; box-shadow: none; }
.opt.dim { opacity: .55; }
.feedback { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; animation: rise .2s ease-out; }
.feedback.ok { background: var(--ok-bg); color: var(--ok); }
.feedback.bad { background: var(--bad-bg); color: var(--bad); }
.note { margin-top: 10px; font-size: 13px; color: var(--warn); }
@keyframes rise { from { transform: translateY(4px); opacity: 0; } to { transform: none; opacity: 1; } }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--hair); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.dock .in { max-width: 680px; margin: 0 auto; display: flex; gap: 10px; }
.btn { height: 50px; border-radius: 14px; padding: 0 20px; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: var(--on-primary); transition: opacity .12s ease, transform .06s ease; }
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { opacity: .3; }
.btn.sec { background: var(--surface); color: var(--text); box-shadow: var(--shadow), inset 0 0 0 1px var(--hair); }
.btn.grow { flex: 1; }
.btn.sq { width: 50px; padding: 0; flex: none; }

.navgrid { margin-top: 30px; }
.navgrid summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.navgrid summary::-webkit-details-marker { display: none; }
.navgrid[open] summary svg { transform: rotate(90deg); }
.navgrid summary svg { transition: transform .15s; }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin-top: 14px; }
.c { height: 38px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font-size: 13px; font-weight: 600; color: var(--text-2); }
.c.done { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.c.r { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.c.w { background: var(--bad-bg); color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad-line); }
.c.cur { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
.counter { display: flex; gap: 14px; font-size: 14px; font-weight: 600; }
.counter .ok { color: var(--ok); } .counter .bad { color: var(--bad); }

/* ---------- result ---------- */
.res-top { text-align: center; padding: 28px 0 8px; }
.ring { width: 148px; height: 148px; margin: 0 auto; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .g { position: absolute; inset: 0; display: grid; place-items: center; font-size: 60px; font-weight: 800; letter-spacing: -.04em; }
.res-top h2 { margin: 18px 0 4px; font-size: 22px; letter-spacing: -.015em; }
.res-top p { margin: 0; color: var(--text-2); font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); margin-top: 26px; }
.kpi { padding: 16px 10px; text-align: center; }
.kpi + .kpi { border-left: 1px solid var(--hair); }
.kpi b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.kpi span { font-size: 13px; color: var(--text-2); }
.kpi.ok b { color: var(--ok); } .kpi.bad b { color: var(--bad); }
.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; margin: 32px 0 14px; }
.seg button { flex: 1; height: 36px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.rv { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 18px; margin-bottom: 12px; }
.rv-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.st { padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.st.ok { background: var(--ok-bg); color: var(--ok); } .st.bad { background: var(--bad-bg); color: var(--bad); }
.rv-q { font-weight: 600; font-size: 16px; line-height: 1.45; margin-bottom: 12px; white-space: pre-wrap; }
.rv-a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 15px; color: var(--text-2); line-height: 1.4; }
.rv-a .m { flex: none; width: 16px; margin-top: 2px; }
.rv-a.right { background: var(--ok-bg); color: var(--ok); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--ok-line); }
.rv-a.wrong { background: var(--bad-bg); color: var(--bad); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--bad-line); }
.rv-a .you { margin-left: auto; padding-left: 10px; flex: none; font-size: 12px; font-weight: 600; opacity: .8; white-space: nowrap; align-self: center; }
.empty { text-align: center; color: var(--text-2); padding: 30px 0; }

.theme { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; margin-top: 22px; }
.theme button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.theme button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sw-cell { cursor: pointer; }
.sw-cell + .sw-cell::before { left: 18px; }
.sw { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--hair); position: relative; cursor: pointer; transition: background .2s; margin: 0; box-shadow: inset 0 0 0 1px var(--hair); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.sw:checked { background: var(--ok); box-shadow: none; }
.sw:checked::after { transform: translateX(18px); }
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); animation: fade .15s ease-out; }
.modal { width: 100%; max-width: 420px; background: var(--surface); border-radius: 20px; padding: 22px 18px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: up .2s ease-out; }
.modal h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; text-align: center; }
.modal p { margin: 0 0 18px; color: var(--text-2); font-size: 15px; text-align: center; }
.modal .btns { display: grid; gap: 8px; }
.btn.danger { background: var(--bad); color: #fff; }
@media (min-width: 600px) { .modal-bg { align-items: center; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
.resume { background: var(--primary); color: var(--on-primary); border-radius: var(--r); padding: 18px; margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); }
.resume .eyebrow { color: color-mix(in srgb, var(--on-primary) 55%, transparent); }
.resume-tx b { display: block; font-size: 18px; margin: 4px 0 2px; letter-spacing: -.01em; }
.resume-tx span:last-child { font-size: 14px; color: color-mix(in srgb, var(--on-primary) 70%, transparent); }
.resume-btns { display: flex; gap: 8px; }
.resume-btns .btn { flex: 1; height: 44px; font-size: 15px; }
.resume-btns .btn:not(.sec) { background: var(--on-primary); color: var(--primary); }
.resume-btns .btn.sec { background: transparent; color: var(--on-primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-primary) 30%, transparent); }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 8px); background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; opacity: 0; transition: all .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 420px) {
  .hero h1 { font-size: 30px; }
  .q-text { font-size: 18px; }
}
/* ---------- вход, тарифы, статус ---------- */
.center { min-height: 70vh; display: grid; place-items: center; }
.center.col { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.center.col h2 { margin: 8px 0 0; font-size: 22px; letter-spacing: -.015em; }
.center-row { display: flex; justify-content: center; margin-top: 8px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--hair); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.okmark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.okmark svg { width: 30px; height: 30px; }
.panel { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 20px; margin-bottom: 18px; }
.fl { display: block; font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.inp { width: 100%; height: 52px; border-radius: 14px; border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-size: 17px; padding: 0 16px;
  box-shadow: inset 0 0 0 1px var(--hair); outline: none; transition: box-shadow .12s; }
.inp:focus { box-shadow: inset 0 0 0 2px var(--primary); }
.inp:disabled { opacity: .7; }
.inp.code { font-size: 26px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding-left: calc(16px + .5em); }
.help { font-size: 13px; color: var(--text-2); margin: 10px 2px 16px; }
.help.tc { text-align: center; margin-top: 16px; }
.help a, .foot a { color: inherit; }
.ok-t { color: var(--ok); font-weight: 600; margin-top: 8px; }
.btn.full { width: 100%; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.link { color: var(--text-2); font-size: 14px; font-weight: 600; padding: 8px 6px; border-radius: 8px; }
.link:hover:not(:disabled) { color: var(--text); }
.link:disabled { opacity: .5; }
.row-links { display: flex; justify-content: space-between; margin-top: 10px; }
.sent { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; color: var(--text-2); }
.sent div { font-size: 14px; } .sent b { color: var(--text); } .sent span { display: block; font-size: 13px; margin-top: 2px; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topline .eyebrow { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc { flex: none; }
.acc { display: inline-flex; align-items: center; gap: 6px; max-width: 55%; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 6px 10px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--hair); }
.acc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--text); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--bad-bg); color: var(--bad); }
.chip svg { width: 15px; height: 15px; }
.plans { display: grid; gap: 10px; }
.plan { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: var(--surface);
  border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--hair); transition: transform .1s; }
.plan:active { transform: scale(.99); }
.plan.hot { box-shadow: var(--shadow-lg), inset 0 0 0 2px var(--primary); }
.tag-hot { position: absolute; top: -9px; right: 16px; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; letter-spacing: .02em; }
.pl-t b { display: block; font-size: 17px; } .pl-t span { font-size: 14px; color: var(--text-2); }
.pl-p { text-align: right; } .pl-p b { font-size: 22px; letter-spacing: -.02em; } .pl-p s { display: block; font-size: 13px; color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 20px 4px 0; display: grid; gap: 8px; font-size: 15px; color: var(--text-2); }
.perks li { display: flex; gap: 10px; align-items: center; } .perks svg { color: var(--ok); flex: none; }
.promo { display: flex; gap: 8px; } .promo .inp { flex: 1; text-transform: uppercase; } .promo .inp::placeholder { text-transform: none; } .promo .btn { height: 52px; flex: none; }
.btn.danger-t { color: var(--bad); }
.foot { display: flex; justify-content: center; align-items: center; gap: 2px; margin: 28px 0 0; font-size: 13px; color: var(--muted); }
.foot a { display: inline-block; padding: 12px 8px; }

/* ---------- строка номеров и панель «Все вопросы» ---------- */
.navstrip { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; }
.strip { display: flex; gap: 6px; flex: 1; min-width: 0; }
.strip .c { width: 34px; height: 34px; flex: none; border-radius: 9px; font-size: 13px; }
.all-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.all-btn:hover { color: var(--text); }
.sheet { width: 100%; max-width: 520px; max-height: 82vh; overflow: auto; background: var(--surface); border-radius: 20px;
  padding: 14px 16px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: up .2s ease-out; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-h b { font-size: 17px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-2); margin: 2px 0 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); display: inline-block; }
.lg.r { background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok-line); }
.lg.w { background: var(--bad-bg); box-shadow: inset 0 0 0 1px var(--bad-line); }
.lg.done { background: var(--primary); box-shadow: none; }
.sheet .cells { margin-top: 0; }

/* звук в строке счётчиков */
.q-meta { justify-content: space-between; }
.q-meta .ml { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.snd-btn { flex: none; width: 36px; height: 36px; margin: -8px -6px -8px 0; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); }
.snd-btn:hover { background: var(--surface-2); color: var(--text); }
/* правильный вариант, который не выбрали (несколько ответов) */
.opt.right.missed { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ok); }
.opt.right.missed .key { background: transparent; color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }
.opt .miss { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--ok); }
.rv-a.missed { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ok-line); }
.q-meta .tag { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); padding: 2px 8px; border-radius: 99px; font-size: 12px; }
/* iPhone: без зума от двойного тапа и без раздувания шрифта при повороте; отступ под «чёлку» в режиме ярлыка */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, input, label, summary { touch-action: manipulation; }
.nav { padding-top: max(12px, env(safe-area-inset-top)); }
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
