/* AILS SAT — Bluebook-стиль: светлый интерфейс, синий акцент */
:root {
  --blue: #324dc7;        /* основной синий Bluebook */
  --blue-dark: #24379a;
  --ink: #1e1e1e;
  --grey: #6b7280;
  --line: #d5d8de;
  --bg: #f7f8fa;
  --surface: #fff;        /* карточки, панели, поля */
  --on-blue: #fff;        /* текст на синем */
  --soft: #f1f2f4;        /* серая плашка */
  --soft2: #fafbfc;       /* очень светлая плашка */
  --tint: #eef1fb;        /* синеватая плашка */
  --red: #c13145;
  --green: #1e7e34;
  --yellow: #f5c518;
  --vh: 100vh;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@supports (height: 100dvh) { :root { --vh: 100dvh; } }

/* Telegram Mini App: палитра из темы клиента, фолбэки — палитра выше.
   Токены переопределяются только внутри Telegram (body.tg), поэтому
   в обычном браузере вид остаётся прежним. */
body.tg {
  --vh: var(--tg-viewport-stable-height, 100dvh);
  --blue: var(--tg-theme-button-color, #324dc7);
  --blue-dark: var(--tg-theme-button-color, #24379a);
  --ink: var(--tg-theme-text-color, #1e1e1e);
  --grey: var(--tg-theme-hint-color, #6b7280);
  --line: var(--tg-theme-section-separator-color, #d5d8de);
  --bg: var(--tg-theme-secondary-bg-color, #f7f8fa);
  --surface: var(--tg-theme-bg-color, #fff);
  --on-blue: var(--tg-theme-button-text-color, #fff);
}
body.tg[data-scheme="dark"] {
  --line: var(--tg-theme-section-separator-color, rgba(255,255,255,.2));
  --soft: rgba(255,255,255,.09);
  --soft2: rgba(255,255,255,.05);
  --tint: rgba(255,255,255,.12);
}
/* блоки с намеренно светлым фоном — фиксируем тёмный текст в тёмной теме */
body.tg[data-scheme="dark"] .verdict,
body.tg[data-scheme="dark"] .reco { color: #1e2333; }
/* в Telegram оболочка даёт свою кнопку «назад» — свои дубли прячем */
body.tg-back .tg-dup { display: none !important; }

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  overflow-x: hidden;          /* никакой горизонтальной прокрутки страницы */
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
#app { min-height: var(--vh); display: flex; flex-direction: column; }
button { font-family: inherit; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Общие ---------- */
.btn {
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 10px 26px; font-size: 15px; font-weight: 600;
  background: var(--blue); color: var(--on-blue);
}
.btn:hover { background: var(--blue-dark); }
.btn:disabled { background: #b7bdd6; cursor: default; }
.btn.secondary { background: var(--surface); color: var(--blue); border: 1.5px solid var(--blue); }
.btn.secondary:hover { background: var(--tint); }
.btn.small { padding: 6px 16px; font-size: 13px; }
.muted { color: var(--grey); }
.hidden { display: none !important; }

/* ---------- Домашний экран ---------- */
.home {
  max-width: 880px; margin: 0 auto; padding: 40px 24px; width: 100%;
  overflow-y: auto;
}
.home h1 { font-size: 34px; margin: 0 0 4px; }
.home h1 .sat { color: var(--blue); }
.home .sub { color: var(--grey); margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-size: 18px; }
.card p { margin: 0; color: var(--grey); font-size: 14px; flex: 1; }
.card select {
  padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; width: 100%;
  background: var(--surface); color: var(--ink);
}
.bankstate { margin-top: 28px; font-size: 13px; color: var(--grey); }
.bankstate .ok { color: var(--green); }
.bankstate .bad { color: var(--red); }
.bankstate table { border-collapse: collapse; margin-top: 6px; }
.bankstate td { padding: 2px 12px 2px 0; }

/* ---------- Экран экзамена ---------- */
.exam { display: flex; flex-direction: column; height: var(--vh); background: var(--surface); position: relative; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-bottom: 2px dashed var(--line); background: var(--surface);
  min-height: 58px; position: sticky; top: 0; z-index: 30;
}
.topbar .left { flex: 1; }
.topbar .left .sec { font-weight: 700; font-size: 15px; }
.topbar .left .dir { font-size: 13px; color: var(--grey); }
.topbar .center { flex: 0 0 auto; text-align: center; }
.timer { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer.warn { color: var(--red); }
.timer-toggle {
  display: block; margin: 2px auto 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-size: 11px; padding: 2px 10px; cursor: pointer; color: var(--ink);
}
.topbar .right { flex: 1; display: flex; justify-content: flex-end; gap: 14px; }
.tool {
  background: none; border: 0; cursor: pointer; text-align: center;
  font-size: 11px; color: var(--ink); line-height: 1.2;
}
.tool .ico { display: block; font-size: 18px; }
.tool:hover { color: var(--blue); }

/* область вопроса */
.exam-main { flex: 1; overflow: hidden; display: flex; }
.exam-main.rw { }
.pane { flex: 1; overflow-y: auto; padding: 28px 34px; }
.pane.passage { border-right: 4px solid var(--line); }
.pane.passage .ptext { max-width: 640px; line-height: 1.65; font-size: 16.5px; white-space: pre-wrap; }
.exam-main.math { justify-content: center; }
.exam-main.math .pane.q { max-width: 780px; flex: 1; }

.qhead {
  display: flex; align-items: center; gap: 12px;
  background: var(--soft); border-bottom: 2px solid var(--ink);
  padding: 6px 10px; margin-bottom: 18px;
}
.qnum {
  background: var(--ink); color: var(--surface); font-weight: 700;
  min-width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.mark-btn {
  background: none; border: 0; cursor: pointer; font-size: 13px; color: var(--ink);
  display: flex; align-items: center; gap: 5px; padding: 4px;
}
.mark-btn .flag { font-size: 15px; color: #9aa0aa; }
.mark-btn.on .flag { color: var(--red); }
.strike-toggle {
  margin-left: auto; background: none; border: 1px solid transparent; cursor: pointer;
  font-size: 13px; text-decoration: line-through; padding: 3px 8px; border-radius: 6px;
  color: var(--ink); font-weight: 600;
}
.strike-toggle.on { border-color: var(--ink); background: var(--surface); }

.prompt { font-size: 16.5px; line-height: 1.55; margin-bottom: 18px; white-space: pre-wrap; }
.figure-desc {
  font-style: italic; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 16px; background: var(--soft2); white-space: pre-wrap;
}

/* варианты */
.choice-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.choice {
  flex: 1; display: flex; align-items: flex-start; gap: 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 12px 14px; cursor: pointer; text-align: left; font-size: 15.5px; line-height: 1.45;
}
.choice:hover { border-color: var(--blue); }
.choice .letter {
  flex: 0 0 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.choice.selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.choice.selected .letter { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.choice.struck { opacity: .55; }
.choice.struck .ctext { text-decoration: line-through; }
.strike-ctl {
  flex: 0 0 26px; height: 26px; border: 1px solid var(--grey); border-radius: 50%;
  background: var(--surface); cursor: pointer; font-size: 12px; color: var(--grey);
  text-decoration: line-through; font-weight: 700;
}
.strike-ctl:hover { border-color: var(--ink); color: var(--ink); }
.undo-ctl { flex: 0 0 auto; background: none; border: 0; color: var(--blue); cursor: pointer; font-size: 12px; text-decoration: underline; }

/* SPR */
.spr-input {
  font-size: 22px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 8px;
  width: 180px; font-variant-numeric: tabular-nums;
  background: var(--surface); color: var(--ink); max-width: 100%;
}
.spr-preview { margin-top: 8px; font-size: 14px; color: var(--grey); }
.spr-help {
  margin-top: 20px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--soft2); padding: 14px 18px; font-size: 13.5px; color: var(--ink); max-width: 460px;
}
.spr-help b { display: block; margin-bottom: 6px; }
.spr-help ul { margin: 0; padding-left: 18px; line-height: 1.6; }

/* нижняя панель */
.bottombar {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); background: var(--surface); min-height: 60px;
  padding: 10px 20px calc(10px + var(--safe-b));
  position: relative;
}
.bottombar .who { flex: 1; font-weight: 600; font-size: 14px; }
.qnav-btn {
  background: var(--ink); color: var(--surface); border: 0; border-radius: 8px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.bottombar .navs { flex: 1; display: flex; justify-content: flex-end; gap: 10px; }

/* палитра вопросов */
.palette {
  position: absolute; bottom: 66px; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 16px 20px; z-index: 40; width: 420px; max-width: 92vw;
}
.palette h4 { margin: 0 0 10px; font-size: 14px; text-align: center; }
.palette .legend {
  display: flex; gap: 14px; justify-content: center; font-size: 11.5px; color: var(--grey);
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.pgrid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.pcell {
  width: 34px; height: 34px; position: relative; cursor: pointer;
  border: 1.5px dashed var(--grey); background: var(--surface); color: var(--blue);
  font-size: 13px; font-weight: 700; border-radius: 4px;
}
.pcell.answered { background: var(--blue); border: 1.5px solid var(--blue); color: var(--on-blue); }
.pcell.current { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.pcell .pflag {
  position: absolute; top: -7px; right: -6px; font-size: 11px; color: var(--red);
}
.legend .lg { display: flex; align-items: center; gap: 4px; }
.lg .sq { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.lg .sq.cur { outline: 2px solid var(--ink); outline-offset: 1px; }
.lg .sq.ans { background: var(--blue); }
.lg .sq.un { border: 1.5px dashed var(--grey); }
.palette .review-link { text-align: center; margin-top: 12px; }

/* Check your work */
.checkpage { max-width: 760px; margin: 0 auto; padding: 40px 24px; text-align: center; flex: 1; overflow-y: auto; }
.checkpage h2 { margin-bottom: 6px; }
.checkpage .pgrid { justify-content: center; margin: 24px 0; }
.checkpage .pcell { width: 40px; height: 40px; }

/* ---------- Перерыв ---------- */
.break {
  height: var(--vh); background: #1e2947; color: #fff; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center;
  padding: 24px;
}
.break .bt { font-size: 64px; font-weight: 700; font-variant-numeric: tabular-nums; }
.break h2 { margin: 0; }
.break p { color: #c3cae4; max-width: 480px; margin: 0; }

/* ---------- Модалки ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(15,20,40,.45); z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--surface); border-radius: 14px; padding: 24px 28px; max-width: 640px; width: 100%;
  max-height: 86vh; overflow-y: auto; box-shadow: 0 12px 44px rgba(0,0,0,.3);
}
.modal h3 { margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.modal .x { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--grey); }
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; font-size: 14.5px; }
.ref-grid .rf { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.ref-grid .rf b { display: block; font-size: 12.5px; color: var(--grey); margin-bottom: 4px; font-weight: 600; }
.ref-notes { margin-top: 14px; font-size: 13.5px; color: var(--ink); line-height: 1.55; }

/* калькулятор */
.calc { width: 300px; }
.calc .cdisp {
  width: 100%; font-size: 22px; text-align: right; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px;
  font-variant-numeric: tabular-nums; background: var(--soft2); min-height: 50px;
  overflow-x: auto; white-space: nowrap;
}
.calc .cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.calc .cgrid button {
  font-size: 17px; padding: 11px 0; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.calc .cgrid button:hover { background: var(--tint); }
.calc .cgrid button.op { background: var(--tint); color: var(--blue); font-weight: 700; }
.calc .cgrid button.eq { background: var(--blue); color: var(--on-blue); font-weight: 700; }
.calc .note { font-size: 12px; color: var(--grey); margin-top: 10px; }

/* ---------- Результаты ---------- */
.results { max-width: 880px; margin: 0 auto; padding: 40px 24px; overflow-y: auto; width: 100%; }
.results h1 { margin: 0 0 20px; }
.score-hero {
  display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 24px;
}
.score-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 28px;
  text-align: center; flex: 1; min-width: 180px;
}
.score-box .big { font-size: 46px; font-weight: 800; color: var(--blue); }
.score-box .cap { color: var(--grey); font-size: 13px; }
.score-box .sub { font-size: 13px; margin-top: 6px; }
.route-badge {
  display: inline-block; border-radius: 999px; padding: 2px 12px; font-size: 12px; font-weight: 700;
}
.route-badge.hard { background: #e7ebfd; color: var(--blue); }
.route-badge.easy { background: #fdf3d7; color: #8a6d00; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 18px;
}
.panel h3 { margin: 0 0 14px; font-size: 16px; }
.dom-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; font-size: 14px; }
.dom-row .dlabel { flex: 0 0 260px; }
.dom-row .dbar { flex: 1; background: var(--soft); border-radius: 6px; height: 14px; overflow: hidden; }
.dom-row .dbar i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.dom-row .dval { flex: 0 0 90px; text-align: right; color: var(--grey); font-size: 13px; }
.pace-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pace-table th, .pace-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.pace-table th { color: var(--grey); font-weight: 600; font-size: 12.5px; }
.scale-note { font-size: 12.5px; color: var(--grey); margin: 14px 0; }
.actions { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- Разбор ---------- */
.review-item {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--green);
  border-radius: 10px; padding: 18px 22px; margin-bottom: 14px;
}
.review-item.wrong { border-left-color: var(--red); }
.review-item .rhead { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--grey); margin-bottom: 10px; flex-wrap: wrap; }
.badge { background: var(--tint); color: var(--blue); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.review-item .rpassage { border-left: 3px solid var(--line); padding-left: 14px; margin-bottom: 10px; color: var(--ink); font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.review-item .rprompt { font-weight: 600; margin-bottom: 10px; white-space: pre-wrap; }
.rchoices { font-size: 14px; margin-bottom: 10px; }
.rchoices div { padding: 3px 8px; border-radius: 6px; }
.rchoices .is-correct { background: #e6f4ea; color: var(--green); font-weight: 600; }
.rchoices .is-given { background: #fdecea; color: var(--red); font-weight: 600; }
.rchoices .is-both { background: #e6f4ea; color: var(--green); font-weight: 700; }
.rationale {
  background: var(--tint); border-radius: 8px; padding: 12px 16px; font-size: 14px; line-height: 1.55;
}
.rationale b { color: var(--blue); }
.answer-line { font-size: 14px; margin-bottom: 8px; }
.answer-line .good { color: var(--green); font-weight: 700; }
.answer-line .bad { color: var(--red); font-weight: 700; }

/* ---------- Дрилл ---------- */
.drill { max-width: 780px; margin: 0 auto; padding: 32px 24px; width: 100%; overflow-y: auto; }
.drill .dhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.verdict { border-radius: 10px; padding: 14px 18px; margin: 16px 0; font-size: 15px; }
.verdict.good { background: #e6f4ea; border: 1px solid #b5dfc2; }
.verdict.bad { background: #fdecea; border: 1px solid #f2c4c4; }

/* ---------- Прогресс ---------- */
.progress-page { max-width: 880px; margin: 0 auto; padding: 40px 24px; width: 100%; overflow-y: auto; }
.mock-list { width: 100%; border-collapse: collapse; font-size: 14px; }
.mock-list th, .mock-list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mock-list th { color: var(--grey); font-size: 12.5px; }
.traj { display: flex; align-items: flex-end; gap: 10px; height: 140px; margin: 10px 0 4px; }
.traj .tcol { flex: 0 0 44px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.traj .tbar { width: 30px; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 4px; }
.traj .tnum { font-size: 11px; color: var(--grey); }
.target-line { font-size: 13.5px; margin-bottom: 8px; }
.reco { background: #fdf7e2; border: 1px solid #f0e2ae; border-radius: 10px; padding: 14px 18px; font-size: 14.5px; }

/* ---------- Узкий экран (телефон, Telegram Mini App) ---------- */
@media (max-width: 820px) {
  /* --- шапка: строка с названием модуля + строка с таймером и инструментами --- */
  .topbar {
    flex-wrap: wrap; gap: 2px 10px; padding: 6px 12px; min-height: 0;
    padding-top: max(6px, env(safe-area-inset-top, 0px));
  }
  .topbar .left { flex: 1 1 100%; min-width: 0; }
  .topbar .left .sec { font-size: 13px; line-height: 1.25; }
  .topbar .left .dir { display: none; }
  .topbar .center { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; text-align: left; }
  .topbar .right { flex: 0 0 auto; gap: 4px; }
  .timer { font-size: 19px; }
  .timer-toggle { margin: 0; min-height: 44px; padding: 2px 12px; font-size: 12px; }
  .tool { min-width: 44px; min-height: 44px; font-size: 10.5px; padding: 0 2px; }

  /* --- RW: одна колонка, passage сверху, прокрутка общая --- */
  .exam-main { display: block; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
  .exam-main.math { display: block; }
  .pane { flex: none; overflow: visible; padding: 14px 14px 20px; }
  .pane.passage {
    border-right: 0; border-bottom: 3px solid var(--line); max-height: none;
    background: var(--soft2);
  }
  .pane.passage .ptext { max-width: none; font-size: 16px; }
  .exam-main.math .pane.q { max-width: none; margin: 0; }
  .prompt { font-size: 16px; }
  .qhead { gap: 8px; margin-bottom: 14px; }
  .mark-btn, .strike-toggle { min-height: 44px; }

  /* --- пальцевые размеры --- */
  .btn, .qnav-btn { min-height: 44px; }
  .btn { padding: 10px 18px; }
  .btn.small { padding: 8px 14px; min-height: 40px; }
  .choice { min-height: 44px; align-items: center; }
  .strike-ctl, .undo-ctl { min-height: 44px; min-width: 44px; }
  .card select { min-height: 44px; font-size: 16px; }
  .modal .x { min-height: 44px; min-width: 44px; }
  /* iOS зумит страницу, если шрифт поля < 16px */
  input, select, textarea, button { font-size: 16px; }
  .spr-input { width: 100%; max-width: 220px; }

  /* --- нижняя панель: без имени, всё влезает в строку --- */
  .bottombar { padding: 8px 10px calc(8px + var(--safe-b)); gap: 8px; }
  .bottombar .who { display: none; }
  .qnav-btn { padding: 9px 12px; font-size: 13.5px; }
  .bottombar .navs { gap: 8px; }

  /* --- палитра номеров: компактная сетка со своей прокруткой --- */
  .palette {
    left: 8px; right: 8px; width: auto; max-width: none; transform: none;
    bottom: calc(68px + var(--safe-b)); padding: 12px 12px 14px;
  }
  .palette .legend { gap: 10px; font-size: 11px; }
  .palette .legend .lg { gap: 6px; }
  .pgrid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 6px; max-height: 32vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .pcell, .checkpage .pcell { width: 100%; height: 44px; font-size: 14px; }
  .checkpage { padding: 24px 14px calc(24px + var(--safe-b)); }

  /* --- модалки не выходят за экран --- */
  .overlay { padding: 12px; align-items: flex-end; }
  /* оставляем сверху полосу фона: по ней закрывают модалку тапом */
  .modal {
    padding: 18px 16px calc(18px + var(--safe-b));
    max-height: calc(var(--vh) - 140px); border-radius: 16px;
  }
  .calc { width: 100%; }
  .calc .cgrid button { padding: 0; min-height: 48px; font-size: 18px; }
  .ref-grid { grid-template-columns: 1fr; }

  /* --- прочие экраны --- */
  .home, .results, .progress-page, .drill { padding: 20px 14px calc(28px + var(--safe-b)); }
  .home h1 { font-size: 28px; }
  .home .sub { margin-bottom: 20px; }
  .break { padding: 24px 16px calc(24px + var(--safe-b)); }
  .break .bt { font-size: 52px; }
  .score-box { padding: 16px 18px; }
  .score-box .big { font-size: 38px; }
  .panel { padding: 16px 14px; }
  .dom-row { flex-wrap: wrap; gap: 6px 10px; }
  .dom-row .dlabel { flex: 1 1 100%; font-size: 13px; }
  .dom-row .dval { flex: 0 0 auto; }
  .review-item { padding: 14px 14px; }
  .traj { overflow-x: auto; }
  .actions { gap: 10px; }
}
