 
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #334155;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --accent-history: #d97706;
  --accent-history-2: #b45309;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: rgba(255,255,255,.08);
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,.35);
}
html, body { margin: 0; padding: 0; overscroll-behavior: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #1c1917 0%, #3f2a15 50%, #1e1b4b 100%);
  color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(15,23,42,.7); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 16px; }
.back { color: var(--muted); text-decoration: none; font-size: 22px; padding: 0 6px; }
.back:hover { color: var(--text); }
.userbar { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.userbar button { background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 5px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.userbar button:hover { color: var(--text); border-color: var(--accent-history); }

.wrap { max-width: 780px; margin: 0 auto; padding: 20px 16px 100px; }
.loading { text-align: center; color: var(--muted); padding: 40px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; }

/* Auth */
.auth { max-width: 420px; margin: 20px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.auth h1 { margin: 0 0 8px; font-size: 22px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.form input {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text); font-size: 16px;
}
.form input:focus { outline: none; border-color: var(--accent-history); }

/* Buttons */
.btn {
  padding: 12px 20px; border-radius: 10px; border: none; font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--surface-2); color: var(--text); user-select: none;
  transition: transform .1s, background .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(135deg, var(--accent-history), var(--accent-history-2)); color: white; }
.btn--ghost { background: transparent; border: 1px solid var(--border); }
.btn--danger { background: var(--danger); color: white; }
.btn--success { background: var(--success); color: white; }
.btn--warn { background: var(--warning); color: #1c1917; }
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
/* Большая, гарантированно кликабельная кнопка «Дальше» */
.btn--next {
  flex: 2 1 60%;
  min-height: 52px;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 12px;
}
.card__actions.next-row {
  gap: 10px;
  align-items: stretch;
}
.card__actions.next-row .btn { min-height: 52px; }
@media (max-width: 480px) {
  .card__actions.next-row { flex-direction: column; }
  .card__actions.next-row .btn { width: 100%; }
}

/* Home screen */
.home h1 { margin: 0 0 8px; font-size: 24px; }
.home__sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: left; color: var(--text); display: flex; flex-direction: column; gap: 6px;
  cursor: pointer; text-decoration: none; transition: transform .15s, border-color .15s;
}
.tile:hover { transform: translateY(-2px); border-color: var(--accent-history); }
.tile__icon { font-size: 32px; }
.tile__title { font-size: 17px; font-weight: 700; }
.tile__sub { color: var(--muted); font-size: 13px; line-height: 1.4; }
.tile__progress {
  display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px;
  padding-top: 8px; border-top: 1px dashed var(--border);
}

/* Mode chooser */
.modes { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-top: 12px; }
.modes h3 { margin: 0 0 10px; font-size: 15px; }
.paragraph-review__row { display: grid; grid-template-columns: 75px minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 12px; }
.paragraph-review__row label { font-size: 14px; font-weight: 600; }
.paragraph-review__row select { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.paragraph-review__row select:focus-visible { outline: 2px solid var(--accent-history); outline-offset: 2px; }
.paragraph-review__row :disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 540px) {
  .paragraph-review__row { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .paragraph-review__row label { grid-column: 1 / -1; }
  .paragraph-review__row select { font-size: 14px; }
  .paragraph-review__row .btn { padding: 10px; font-size: 14px; }
}
.modes__row { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-btn {
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.04);
  color: var(--text); cursor: pointer; font-size: 13px; font-weight: 500;
}
.mode-btn.active { background: linear-gradient(135deg, var(--accent-history), var(--accent-history-2)); border-color: transparent; color: white; }

/* Session bar */
.session-bar {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 13px;
  margin-bottom: 16px; color: var(--muted); flex-wrap: wrap;
}
.session-bar b { color: var(--text); font-weight: 600; }
.session-bar .exit { background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 4px 10px; border-radius: 8px; font-size: 12px; cursor: pointer; }

/* Card */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow); min-height: 320px;
  display: flex; flex-direction: column; gap: 16px;
}
.card__label {
  display: inline-block; background: rgba(217,119,6,.15); color: #fbbf24;
  border: 1px solid rgba(217,119,6,.3); border-radius: 999px;
  padding: 3px 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  align-self: flex-start;
}
.card__prompt { font-size: 15px; color: var(--muted); line-height: 1.5; }
.card__main { font-size: 28px; font-weight: 700; line-height: 1.3; color: var(--text); }
.card__main--sm { font-size: 20px; }
.card__hint { color: var(--muted); font-size: 13px; font-style: italic; }
.card__answer { font-size: 18px; color: var(--success); font-weight: 600; }
.card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.card__actions .btn { flex: 1; min-width: 100px; }

/* Choices */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 480px) { .choices { grid-template-columns: 1fr; } }
.choice {
  padding: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; cursor: pointer; text-align: left; font-size: 15px;
  transition: background .15s, border-color .15s;
}
.choice:hover { border-color: var(--accent-history); background: rgba(217,119,6,.08); }
.choice.correct { background: rgba(16,185,129,.2); border-color: var(--success); }
.choice.wrong { background: rgba(239,68,68,.2); border-color: var(--danger); }
.choice.disabled { pointer-events: none; opacity: .6; }

/* Input */
.answer-input {
  width: 100%; padding: 14px 16px; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; font-size: 16px; font-family: inherit;
}
.answer-input:focus { outline: none; border-color: var(--accent-history); background: rgba(217,119,6,.06); }
textarea.answer-input { min-height: 90px; resize: vertical; }

/* Feedback */
.feedback {
  padding: 14px; border-radius: 10px; font-size: 14px; line-height: 1.5;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
}
.feedback.verdict-correct { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.4); }
.feedback.verdict-mostly_correct { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.3); }
.feedback.verdict-partial { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.4); }
.feedback.verdict-incorrect { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); }
.feedback.verdict-unclear { background: rgba(148,163,184,.12); border-color: rgba(148,163,184,.3); }
.feedback__title { font-weight: 600; margin-bottom: 6px; }
.feedback__ideas { margin-top: 8px; font-size: 13px; }
.feedback__ideas ul { margin: 4px 0 0; padding-left: 18px; }
.feedback__ideas .ok { color: var(--success); }
.feedback__ideas .miss { color: var(--warning); }

/* Mic */
.mic-row { display: flex; align-items: center; gap: 10px; }
.mic-btn {
  width: 72px; height: 72px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent-history), var(--accent-history-2));
  color: white; font-size: 30px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(217,119,6,.35);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.mic-btn.rec { background: linear-gradient(135deg, var(--danger), #dc2626); animation: pulse 1.2s infinite; }
.mic-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); } 50% { box-shadow: 0 0 0 12px rgba(239,68,68,0); } }
.mic-hint { color: var(--muted); font-size: 13px; }

/* Grades (self-assess) */
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.grade-btn {
  padding: 12px 6px; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(255,255,255,.04); color: var(--text); cursor: pointer;
  font-size: 13px; font-weight: 600; text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}
.grade-btn small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; margin-top: 2px; }
.grade-btn:hover { border-color: var(--accent-history); }

/* Timeline */
.timeline {
  display: flex; gap: 6px; overflow-x: auto; padding: 12px 4px;
  margin: 8px 0;
}
.timeline__item {
  flex-shrink: 0; padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  cursor: pointer; text-align: center; min-width: 84px;
}
.timeline__year { font-weight: 700; font-size: 15px; }
.timeline__hint { font-size: 11px; color: var(--muted); }
.timeline__item.correct { background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.4); }
.timeline__item.wrong { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.4); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 12px 18px; background: rgba(15,23,42,.95); color: var(--text);
  border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--border);
  font-size: 14px; z-index: 100; max-width: 90vw; text-align: center;
}

/* Stats */
.stat-block { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.stat { text-align: center; padding: 10px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.stat b { display: block; font-size: 20px; color: var(--text); }
.stat small { color: var(--muted); font-size: 11px; }

/* Progress bar */
.progress { height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; margin: 8px 0; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent-history), var(--accent-history-2)); transition: width .3s; }

/* Confusion picker */
.pairs { display: grid; grid-template-columns: 1fr; gap: 6px; }
.pair-item { padding: 10px 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--muted); }
.pair-item b { color: var(--text); }

/* Utility */
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* --- Explanation modal --- */
.expl-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 16px; overscroll-behavior: contain;
}
.expl-modal {
  background: var(--surface); color: var(--text);
  border-radius: 14px; max-width: 520px; width: 100%;
  max-height: 85vh; overflow: auto;
  padding: 16px 18px; border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0,0,0,.45);
}
.expl-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.expl-modal__title { font-weight: 700; font-size: 15px; }
.expl-modal__close {
  background: transparent; border: none; color: var(--muted);
  font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 8px;
  touch-action: manipulation;
}
.expl-modal__close:hover { background: var(--surface-2); color: var(--text); }
.expl-modal__label { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.expl-modal__body { font-size: 15px; line-height: 1.55; margin: 8px 0 14px; }
.expl-modal__foot { margin-top: 12px; }
.expl-text { white-space: pre-wrap; }
.expl-loading { color: var(--muted); }
.expl-src { color: var(--muted); font-size: 11px; margin-top: 6px; }

/* --- 2026-09-10 v2: явный баннер ответа и раскрывающаяся коррекция оценки --- */
.answer-banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  display: flex; flex-direction: column; gap: 4px;
}
.answer-banner__title {
  font-size: 20px; font-weight: 700; line-height: 1.2;
}
.answer-banner__detail {
  font-size: 14px; color: var(--text); opacity: .92; line-height: 1.35;
}
.answer-banner--correct {
  background: rgba(16,185,129,.14);
  border-color: rgba(16,185,129,.5);
}
.answer-banner--correct .answer-banner__title { color: #34d399; }
.answer-banner--wrong {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.5);
}
.answer-banner--wrong .answer-banner__title { color: #fca5a5; }

.grade-toggle-wrap { margin-top: 10px; }
.grade-toggle {
  background: transparent; border: 0; color: var(--muted);
  font-size: 12px; padding: 6px 4px; cursor: pointer;
  text-decoration: underline dotted; opacity: .8;
}
.grade-toggle--open { opacity: 1; color: var(--text); }
.grades.grades--hidden { display: none; }
.grade-btn--current {
  outline: 2px solid var(--accent-history);
  outline-offset: -2px;
}

/* Drill 7 min */
.drill-cta {
  margin-top: 18px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(139,92,246,.10), rgba(59,130,246,.08));
  border: 1px solid rgba(139,92,246,.32);
  border-radius: 12px;
  text-align: center;
}
.btn--drill {
  font-size: 16px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(139,92,246,.35);
  transition: transform .12s;
}
.btn--drill:hover { transform: translateY(-1px); }
.drill-cta--dual .drill-cta__row {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.btn--drill-term {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
@media (max-width: 520px){
  .drill-cta--dual .drill-cta__row { flex-direction: column; }
  .drill-cta--dual .drill-cta__row .btn--drill { width: 100%; }
}

/* Drill: pause + resume */
.icon-btn {
  background: transparent; border: 1px solid rgba(148,163,184,.35);
  color: var(--text, #e5e7eb); width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; padding: 0;
}
.icon-btn:hover { background: rgba(148,163,184,.14); }

.drill-pause-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.72);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.drill-pause-card {
  background: var(--surface, #1e293b); color: var(--text, #e5e7eb);
  border-radius: 16px; padding: 28px 24px; text-align: center;
  max-width: 340px; width: calc(100% - 32px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  border: 1px solid rgba(139,92,246,.35);
}
.drill-pause-emoji { font-size: 56px; line-height: 1; margin-bottom: 8px; }
.drill-pause-card h2 { margin: 8px 0 4px; }
.drill-pause-actions {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 12px;
}

.drill-resume-card {
  margin: 12px 0 14px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,.10), rgba(139,92,246,.06));
  border: 2px solid rgba(124,58,237,.45);
  border-radius: 14px;
}
.drill-resume-head {
  display: flex; gap: 12px; align-items: center;
}
.drill-resume-emoji { font-size: 28px; line-height: 1; }
.drill-resume-title {
  font-weight: 700; font-size: 16px; color: #a78bfa;
}
.drill-resume-bar {
  height: 6px; background: rgba(148,163,184,.20);
  border-radius: 999px; overflow: hidden; margin-top: 10px;
}
.drill-resume-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 999px;
  transition: width .3s;
}

.drill-bar {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 10px 14px; margin-bottom: 12px;
  background: rgba(139,92,246,.10);
  border: 1px solid rgba(139,92,246,.28);
  border-radius: 10px;
  flex-wrap: wrap;
}
.drill-timer { font-size: 18px; color: #a78bfa; }
.drill-timer b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.drill-score { font-size: 15px; color: var(--muted); }
.drill-score b { color: var(--text); font-weight: 700; }
.drill-pool { font-size: 12px; }

.drill-end .drill-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 14px; width: 100%;
}
@media (max-width: 480px) { .drill-end .drill-stats { grid-template-columns: repeat(2, 1fr); } }
.drill-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 6px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.drill-stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.drill-stat b { font-size: 22px; margin-top: 4px; }
.drill-list {
  list-style: none; padding: 0; margin: 8px 0 0 0;
  max-height: 220px; overflow: auto;
}
.drill-list li {
  padding: 6px 8px; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text);
}
.drill-list li:last-child { border-bottom: 0; }
.drill-list li b { color: var(--accent-history); margin-right: 6px; }
.drill-end h3 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; text-align: left; width: 100%; margin-bottom: 4px; }


/* -------- Order events (Расставь по порядку) -------- */
.order-list {
  list-style: none; padding: 0; margin: 6px 0 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.order-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px; line-height: 1.35;
}
.order-item__num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(217,119,6,.15);
  color: var(--accent-history);
  font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.order-item__event { color: var(--text); }
.order-item__ctrls { display: inline-flex; gap: 6px; }
.order-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text);
  cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.order-btn:hover:not(:disabled) { background: rgba(217,119,6,.1); border-color: var(--accent-history); }
.order-btn:disabled { opacity: .35; cursor: not-allowed; }
.order-item--ok {
  border-color: var(--success);
  background: rgba(5,150,105,.08);
}
.order-item--bad {
  border-color: var(--danger);
  background: rgba(225,29,72,.08);
}

/* -------- Match date-event (Сопоставь) -------- */
.match-grid {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 10px;
  margin: 6px 0 12px;
}
.match-col { display: flex; flex-direction: column; gap: 6px; }
.match-cell {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  transition: background .15s, border-color .15s;
}
.match-cell:hover:not(:disabled) { border-color: var(--accent-history); }
.match-cell:disabled { cursor: default; }
.match-cell--selected { border-color: var(--accent-history); background: rgba(217,119,6,.1); box-shadow: 0 0 0 2px rgba(217,119,6,.25); }
.match-cell--date .match-text { font-weight: 700; font-size: 15px; }
.match-cell--event .match-text { font-size: 14px; line-height: 1.35; }
.match-swatch {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  flex: 0 0 14px;
  transition: background .15s, border-color .15s;
}
.match-cell--ok { border-color: var(--success); background: rgba(5,150,105,.08); }
.match-cell--bad { border-color: var(--danger); background: rgba(225,29,72,.08); }

/* -------- Chron result (общий для order/match) -------- */
.chron-title { font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.chron { display: flex; flex-direction: column; gap: 6px; }
.chron-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s, border-color .15s;
}
.chron-item:hover { border-color: var(--accent-history); background: rgba(217,119,6,.06); }
.chron-item__year { font-weight: 700; color: var(--accent-history); font-size: 15px; }
.chron-item__event { line-height: 1.35; }
.chron-item__hint { color: var(--muted); font-size: 12px; white-space: nowrap; }

@media (max-width: 480px){
  .match-grid { grid-template-columns: minmax(100px, 140px) 1fr; }
  .chron-item { grid-template-columns: 66px 1fr auto; padding: 8px 10px; }
}
