/* =========================================================
   Bút Chì – giao diện lấy cảm hứng từ phiếu trả lời TOEIC
   Màu được khai báo thành biến để đổi chế độ sáng/tối dễ dàng
   ========================================================= */
:root {
  --paper: #fbfcfe;        /* nền trang */
  --sheet: #edf1f8;        /* nền "phiếu trả lời" */
  --rule: #d3dbe9;         /* đường kẻ */
  --ink: #17223b;          /* chữ chính, màu mực */
  --graphite: #525966;     /* chữ phụ, màu chì */
  --lead: #2b2f36;         /* ô đã tô */
  --ok: #1f7a55;
  --ok-soft: #e1f2ea;
  --bad: #b3391f;
  --bad-soft: #fbe7e1;
  --note: #f3d35b;         /* nhãn lưu ý */
  --radius-s: 6px;
  --radius-m: 12px;
  --ui: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --tabbar-h: 64px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12161f; --sheet: #1b2130; --rule: #2d3548; --ink: #e7ebf3;
    --graphite: #a2aabb; --lead: #e7ebf3; --ok: #5cc99a; --ok-soft: #173327;
    --bad: #f08a70; --bad-soft: #3a1f19; --note: #c9a92c;
  }
}
:root[data-theme="dark"] {
  --paper: #12161f; --sheet: #1b2130; --rule: #2d3548; --ink: #e7ebf3;
  --graphite: #a2aabb; --lead: #e7ebf3; --ok: #5cc99a; --ok-soft: #173327;
  --bad: #f08a70; --bad-soft: #3a1f19; --note: #c9a92c;
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--ui);
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
/* Thuộc tính hidden phải thắng mọi kiểu display (vd. .btn dùng inline-flex) */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #4d7cff; outline-offset: 2px; border-radius: 4px; }
main:focus, main:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Thanh trên & dưới ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; min-height: 52px; background: var(--paper); border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); background: radial-gradient(circle, var(--lead) 45%, transparent 47%); }
.source-badge { font-size: .78rem; padding: 3px 10px; border-radius: 99px; background: var(--note); color: #2a2200; font-weight: 600; }

main { max-width: 720px; margin: 0 auto; padding: 20px 20px calc(var(--tabbar-h) + 32px); outline: none; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border-top: 1px solid var(--rule);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 4px; min-height: var(--tabbar-h); text-decoration: none;
  font-size: .75rem; color: var(--graphite);
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tabbar a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  /* Màn hình rộng: đưa thanh điều hướng lên cạnh trái của thanh trên */
  .tabbar { top: env(safe-area-inset-top, 0px); bottom: auto; left: auto; right: 20px; width: 420px; border: 0; background: transparent; }
  .tabbar a { flex-direction: row; justify-content: center; min-height: 52px; font-size: .9rem; }
  .tabbar svg { width: 18px; height: 18px; }
  main { padding-bottom: 48px; }
}

/* ---------- Chữ ---------- */
h1 { font-size: 1.6rem; line-height: 1.25; margin: 4px 0 6px; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 32px 0 10px; }
h3 { font-size: 1rem; margin: 0; }
.lead { color: var(--graphite); margin: 0 0 20px; max-width: 60ch; }
.muted { color: var(--graphite); }
.small { font-size: .85rem; }
.back { display: inline-block; margin-bottom: 8px; color: var(--graphite); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--ink); }

/* ---------- Lộ trình ---------- */
.stage { margin-bottom: 28px; }
.stage-head { display: flex; gap: 14px; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.stage-num { font-weight: 700; font-size: 1.9rem; line-height: 1; }
.stage-head p { margin: 2px 0 0; color: var(--graphite); font-size: .9rem; }
.unit-list { list-style: none; margin: 0; padding: 0; }
.unit-row {
  display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 12px; align-items: center;
  padding: 13px 4px; border-bottom: 1px solid var(--rule); text-decoration: none;
}
a.unit-row:hover { background: var(--sheet); }
.unit-code { font-weight: 600; font-size: .8rem; color: var(--graphite); }
.unit-title { font-weight: 500; }
.unit-meta { font-size: .8rem; color: var(--graphite); }
.unit-row.empty .unit-title { color: var(--graphite); }
.meter { display: block; margin: 0 0 4px auto; width: 64px; height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--lead); }
.pct { font-size: .8rem; text-align: right; color: var(--graphite); min-width: 64px; }

/* ---------- Danh sách mục trong Unit ---------- */
.section-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.section-list li { border-bottom: 1px solid var(--rule); }
.section-link { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 4px; text-decoration: none; }
a.section-link:hover { background: var(--sheet); }
.section-link.disabled { color: var(--graphite); }
.tag { font-size: .75rem; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--rule); color: var(--graphite); white-space: nowrap; }

/* ---------- Thẻ lý thuyết ---------- */
.lesson { background: var(--sheet); border-radius: var(--radius-m); padding: 4px 18px; margin: 12px 0 24px; }
.lesson summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.lesson p { margin: 0 0 12px; }
.lesson ul { padding-left: 20px; margin: 0 0 14px; }
.lesson .en { font-family: var(--text); }
.phrase-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .92rem; }
.phrase-table td { padding: 7px 6px; border-top: 1px solid var(--rule); vertical-align: top; }
.phrase-table td:first-child { font-family: var(--text); font-weight: 600; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* ---------- Câu hỏi (phiếu trả lời) ---------- */
.q-group { margin: 0 0 28px; }
.passage {
  font-family: var(--text); font-size: 1.02rem; line-height: 1.7;
  background: var(--sheet); border-radius: var(--radius-m); padding: 16px 18px; margin-bottom: 18px;
}
.passage p { margin: 0 0 10px; }
.passage + .passage { margin-top: -6px; }
.q { padding: 14px 0 18px; border-top: 1px solid var(--rule); }
.q-head { display: flex; gap: 10px; align-items: baseline; }
.q-num { font-weight: 700; min-width: 2.4rem; }
.q-stem { font-family: var(--text); font-size: 1.05rem; line-height: 1.6; margin: 0; }
.blank { display: inline-block; min-width: 4.5em; border-bottom: 2px solid var(--ink); margin: 0 3px; transform: translateY(-3px); }
.blank-num { display: inline-block; font: 600 .8rem var(--ui); padding: 0 8px; border: 1.5px solid var(--ink); border-radius: 99px; margin: 0 2px; }
/* Vị trí chèn câu [1]–[4] (Part 7): chữ đậm, không viền để khỏi nhầm với chỗ trống Part 6 */
.insert-mark { font: 700 .85rem var(--ui); margin: 0 2px; white-space: nowrap; }

.options { list-style: none; margin: 12px 0 0; padding: 0 0 0 2.4rem; display: grid; gap: 6px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  background: none; border: 1px solid transparent; border-radius: var(--radius-s);
  padding: 6px 8px; cursor: pointer; font-family: var(--text); font-size: 1rem;
}
.opt:hover:not(:disabled) { background: var(--sheet); }
.opt:disabled { cursor: default; }
/* Ô tròn A/B/C/D giống phiếu tô chì */
.bubble {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--graphite);
  display: grid; place-items: center; font: 600 .78rem var(--ui); color: var(--graphite);
  transition: background .12s, color .12s, border-color .12s;
}
.opt[aria-checked="true"] .bubble { background: var(--lead); border-color: var(--lead); color: var(--paper); }
.opt.is-correct { background: var(--ok-soft); }
.opt.is-correct .bubble { border-color: var(--ok); background: var(--ok); color: #fff; }
.opt.is-wrong { background: var(--bad-soft); }
.opt.is-wrong .bubble { border-color: var(--bad); background: var(--bad); color: #fff; }
.opt-text { padding-top: 2px; }

.verdict { margin: 10px 0 0 2.4rem; font-weight: 600; font-size: .92rem; }
.verdict.ok { color: var(--ok); }
.verdict.bad { color: var(--bad); }

/* ---------- Lời giải ---------- */
.explain { margin: 10px 0 0 2.4rem; border-left: 3px solid var(--rule); padding: 2px 0 2px 14px; }
.explain summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 4px 0; }
.explain dl { margin: 6px 0 0; font-size: .93rem; }
.explain dt { font-weight: 600; margin-top: 10px; }
.explain dd { margin: 2px 0 0; }
.explain ul { margin: 4px 0 0; padding-left: 18px; }
.ai-label { display: inline-block; font-size: .72rem; font-weight: 500; padding: 1px 8px; border-radius: 99px; background: var(--note); color: #2a2200; margin-left: 6px; vertical-align: 1px; }

/* ---------- Kết quả & nút ---------- */
.result {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: 2px solid var(--ink); border-radius: var(--radius-m); padding: 16px 18px; margin: 0 0 24px;
}
.score { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 18px; border-radius: var(--radius-s); border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--ink); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.sticky-submit { position: sticky; bottom: calc(var(--tabbar-h) + 12px); display: flex; justify-content: flex-end; }
@media (min-width: 900px) { .sticky-submit { bottom: 16px; } }
.sticky-submit .btn { box-shadow: 0 4px 14px rgba(23, 34, 59, .25); }

/* ---------- Thống kê ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden; }
.kpi { background: var(--paper); padding: 14px; }
.kpi b { display: block; font-size: 1.5rem; }
.kpi span { font-size: .8rem; color: var(--graphite); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 52px; gap: 10px; align-items: center; font-size: .92rem; }
.bar-row .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 10px; background: var(--rule); border-radius: 5px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--lead); }
.bar-row .num { text-align: right; color: var(--graphite); font-size: .85rem; }
.days { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 8px; }
.day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .72rem; color: var(--graphite); height: 100%; justify-content: flex-end; }
.day i { display: block; width: 100%; max-width: 36px; background: var(--lead); border-radius: 3px 3px 0 0; min-height: 2px; }
.callout { background: var(--sheet); border-radius: var(--radius-m); padding: 14px 16px; margin: 16px 0; }
.wrong-list { list-style: none; padding: 0; margin: 0; }
.wrong-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.wrong-list .en { font-family: var(--text); }

/* ---------- Trạng thái trống / lỗi ---------- */
.empty-state { border: 1.5px dashed var(--rule); border-radius: var(--radius-m); padding: 22px; text-align: center; color: var(--graphite); }
.error-box { border: 2px solid var(--bad); border-radius: var(--radius-m); padding: 16px 18px; }
.error-box h2 { margin-top: 0; color: var(--bad); }
.error-box code, .setup code { background: var(--sheet); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.loading { color: var(--graphite); padding: 40px 0; text-align: center; }

/* ---------- Sổ từ vựng ---------- */
.today-panel { border: 2px solid var(--ink); border-radius: var(--radius-m); padding: 4px 18px 16px; margin-bottom: 16px; }
.today-panel h2 { margin-top: 12px; }
.box-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden; margin: 0 0 20px; }
.box-cell { background: var(--paper); padding: 10px 4px; text-align: center; }
.box-cell b { display: block; font-size: 1.2rem; }
.box-cell span { font-size: .72rem; color: var(--graphite); }
.box-cell.done { background: var(--ok-soft); }
@media (max-width: 480px) {
  .box-cell { padding: 8px 2px; }
  .box-cell b { font-size: 1.05rem; }
  .box-cell span { font-size: .66rem; line-height: 1.2; display: block; }
}
.add-form { display: grid; gap: 10px; padding-bottom: 14px; }
.add-form label { display: grid; gap: 4px; font-size: .88rem; font-weight: 500; }
.add-form input, .add-form select, .filters input, .filters select, .write-input {
  font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule);
  border-radius: var(--radius-s); padding: 10px 12px; min-height: 44px; width: 100%;
}
.add-form input:focus, .filters input:focus, .write-input:focus { border-color: var(--ink); outline: none; }
.filters { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; }
.filters select { width: auto; }
.vocab-list { list-style: none; padding: 0; margin: 0; }
.vocab-list > li { border-bottom: 1px solid var(--rule); }
.vocab-list summary { cursor: pointer; padding: 11px 2px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.vocab-list summary .tag { margin-left: auto; }
.vocab-word { font-weight: 600; }
.vocab-mean { color: var(--graphite); font-size: .92rem; }
.vocab-list .card-back { padding: 0 2px 12px; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--graphite); text-decoration: underline; cursor: pointer; font-size: .9rem; }
.link-btn.danger { color: var(--bad); }
.vocab-add { margin: 4px 0 0 2.4rem; padding: 10px 14px; background: var(--sheet); border-radius: var(--radius-s); font-size: .92rem; }
.vocab-add ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* ---------- Thẻ ---------- */
.card-word { font-family: var(--text); font-size: 1.6rem; font-weight: 600; }
.card-pos { font-size: .8rem; color: var(--graphite); font-style: italic; }
.speak { background: none; border: 1px solid var(--rule); border-radius: 99px; width: 36px; height: 36px; cursor: pointer; vertical-align: middle; }
.speak:hover { background: var(--sheet); }
.card-meaning { font-size: 1.2rem; font-weight: 600; margin: 8px 0; }
.card-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--graphite); margin: 14px 0 4px; }
.card-phrases { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.card-note { background: var(--bad-soft); border-radius: var(--radius-s); padding: 8px 10px; font-size: .92rem; }
.card-back .en { font-family: var(--text); }
.card-back p { margin: 4px 0; }
.flashcard {
  background: var(--sheet); border-radius: var(--radius-m); padding: 22px 20px; margin: 8px 0;
  min-height: 220px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.card-front { margin: 0; }

/* ---------- Các dạng bài ---------- */
.round-bar { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--graphite); border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.drill-head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; margin: 14px 0 6px; }
.drill-head h2 { margin: 0; grid-column: 1; }
.drill-step { grid-column: 1 / -1; font-size: .78rem; font-weight: 600; color: var(--graphite); text-transform: uppercase; letter-spacing: .05em; }
.drill-progress { grid-row: 2; grid-column: 2; font-size: .85rem; color: var(--graphite); }
.drill-card { padding: 8px 0; }
.drill-prompt { font-size: 1.15rem; margin: 6px 0 4px; }
.drill-prompt.en { font-family: var(--text); line-height: 1.6; }
.drill-options { padding-left: 0; }
.drill-feedback { margin-top: 8px; }
.drill-feedback .verdict { margin-left: 0; }
.drill-feedback .en { font-family: var(--text); }
.drill-card > .btn[data-act=next] { margin-top: 10px; min-width: 120px; }
.write-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.write-input[readonly] { background: var(--sheet); }

.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.match-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.match-item {
  width: 100%; min-height: 44px; text-align: left; padding: 8px 10px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--radius-s); font-size: .92rem;
  transition: background .12s, border-color .12s, opacity .2s;
}
.match-item.en { font-family: var(--text); font-size: 1rem; }
.match-item:hover:not(:disabled) { border-color: var(--graphite); }
.match-item.is-picked { border-color: var(--ink); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--ink); }
.match-item.is-matched { background: var(--ok-soft); border-color: var(--ok); opacity: .55; cursor: default; }
.match-item.is-wrong { background: var(--bad-soft); border-color: var(--bad); }

/* ---------- Thi thử ---------- */
.exam-entry {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 2px solid var(--ink); border-radius: var(--radius-m); padding: 14px 16px; margin: 0 0 18px;
  text-decoration: none;
}
.section-list + .exam-entry { margin-top: 18px; }
a.exam-entry:hover { background: var(--sheet); }
.exam-intro { border: 2px solid var(--ink); border-radius: var(--radius-m); padding: 16px 18px; margin: 8px 0 12px; }
.exam-count { margin: 0 0 12px; }
.exam-count b { font-size: 1.6rem; }
.exam-timing { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.exam-timing legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.exam-timing label {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 10px 12px;
}
.exam-timing label:has(input:checked) { border-color: var(--ink); background: var(--sheet); }
.exam-timing input { margin-top: 5px; accent-color: var(--ink); }
.exam-rules { color: var(--graphite); padding-left: 18px; margin: 0 0 16px; }
.exam-history { width: 100%; border-collapse: collapse; font-size: .9rem; }
.exam-history th, .exam-history td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--rule); }
.exam-history th { font-weight: 600; color: var(--graphite); font-size: .8rem; }

/* Thanh đồng hồ dính dưới thanh trên cùng */
.exam-bar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 52px); z-index: 4;
  display: flex; align-items: center; gap: 8px;
  margin: -20px -20px 16px; padding: 8px 20px;
  background: var(--paper); border-bottom: 2px solid var(--ink);
}
.exam-clock { display: flex; flex-direction: column; margin-right: auto; line-height: 1.25; min-width: 0; }
.exam-timer { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.exam-timer.warn { color: var(--bad); }
.exam-progress { color: var(--graphite); font-variant-numeric: tabular-nums; }
.exam-bar .btn { min-height: 40px; padding: 6px 12px; white-space: nowrap; }

/* Bảng câu hỏi: mỗi câu là một ô tròn như phiếu tô chì */
.qnav {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px;
  background: var(--sheet); border-radius: var(--radius-m); padding: 12px; margin: 0 0 20px;
}
.qnav button {
  aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--graphite); background: var(--paper);
  font: 600 .75rem var(--ui); color: var(--graphite); cursor: pointer; padding: 0;
}
.qnav button.answered { background: var(--lead); border-color: var(--lead); color: var(--paper); }
.qnav button.flagged { box-shadow: 0 0 0 3px var(--note); }
.qnav-legend { grid-column: 1 / -1; margin: 4px 0 0; }
.q-tools { padding-left: 2.4rem; margin-top: 8px; }
.flag-btn {
  font: 500 .75rem var(--ui); color: var(--graphite);
  background: none; border: 1px solid var(--rule); border-radius: 99px; padding: 2px 10px; cursor: pointer;
}
.flag-btn[aria-pressed="true"] { background: var(--note); border-color: var(--note); color: #2a2200; }

/* Kết quả thi */
.exam-estimate { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.exam-estimate b { font-size: 1.6rem; line-height: 1.1; }
.only-wrong { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; cursor: pointer; }
.only-wrong input { accent-color: var(--ink); }
#review.filter-wrong .q.is-right, #review.filter-wrong .q-group.all-right { display: none; }
@media (max-width: 480px) {
  .exam-estimate { margin-left: 0; align-items: flex-start; text-align: left; }
  .exam-timer { min-width: 0; }
}
.passage-kind { font: 600 .72rem var(--ui); text-transform: uppercase; letter-spacing: .08em; color: var(--graphite); margin: 0 0 8px !important; }
