/* Стилистика системных приложений Apple: системный шрифт, мягкие карточки
   на сгруппированном фоне, системная палитра, крупные заголовки. */

:root {
  color-scheme: light dark;

  --blue: #007aff;
  --green: #34c759;
  --red: #ff3b30;
  --orange: #ff9500;
  --yellow: #ffcc00;
  --purple: #af52de;

  --bg: #f2f2f7;          /* systemGroupedBackground */
  --card: #ffffff;
  --card-2: #f9f9fb;
  --fg: #1c1c1e;          /* label */
  --fg-2: #3c3c43;
  --dim: rgba(60,60,67,.6);      /* secondaryLabel */
  --faint: rgba(60,60,67,.36);   /* tertiaryLabel */
  --sep: rgba(60,60,67,.18);     /* separator */
  --fill: rgba(120,120,128,.12); /* secondarySystemFill */
  --fill-2: rgba(120,120,128,.2);

  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #0a84ff;
    --green: #30d158;
    --red: #ff453a;
    --orange: #ff9f0a;
    --yellow: #ffd60a;
    --purple: #bf5af2;

    --bg: #000000;
    --card: #1c1c1e;         /* secondarySystemGroupedBackground */
    --card-2: #2c2c2e;
    --fg: #ffffff;
    --fg-2: #ebebf5;
    --dim: rgba(235,235,245,.6);
    --faint: rgba(235,235,245,.35);
    --sep: rgba(84,84,88,.65);
    --fill: rgba(120,120,128,.24);
    --fill-2: rgba(120,120,128,.36);
    --shadow: none;
    --shadow-lg: 0 8px 28px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; opacity: .75; }

/* ── шапка ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--sep);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 24px; height: 52px;
}
.brand { font-weight: 600; font-size: 15px; color: var(--fg); letter-spacing: -.02em; }
.brand:hover { opacity: 1; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  color: var(--dim); font-size: 14px; font-weight: 500;
  padding: 6px 11px; border-radius: var(--r-sm); white-space: nowrap;
}
.nav a:hover { background: var(--fill); color: var(--fg); opacity: 1; }
.nav a.on { background: var(--fill); color: var(--fg); }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dim); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  letter-spacing: 0;
}

/* ── каркас ────────────────────────────────────────── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 30px 22px 72px; }

h1 { font-size: 28px; margin: 0 0 4px; font-weight: 700; letter-spacing: -.028em; }
h2 { font-size: 17px; margin: 0 0 14px; font-weight: 600; letter-spacing: -.02em; }
h3 {
  font-size: 12px; margin: 0 0 10px; font-weight: 590;
  color: var(--dim); text-transform: uppercase; letter-spacing: .05em;
}
.lead { color: var(--dim); font-size: 15px; margin: 0 0 24px; }
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.head-row h1 { margin-bottom: 3px; }

/* ── карточки ──────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--r-xl);
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.card-tight { padding: 14px 18px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ── формы ─────────────────────────────────────────── */
label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; background: var(--card-2); border: .5px solid var(--sep);
  color: var(--fg); padding: 10px 13px; border-radius: var(--r);
  font-size: 15px; font-family: inherit; letter-spacing: -.01em;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--blue) 18%, transparent);
}
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.field { margin-bottom: 15px; }
.field-row { display: flex; gap: 13px; flex-wrap: wrap; }
.field-row > * { flex: 1; min-width: 170px; }

button, .btn {
  background: var(--blue); border: 0; color: #fff; padding: 0 20px;
  min-height: 44px; border-radius: var(--r); font-size: 15px; font-weight: 590;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  letter-spacing: -.01em; transition: filter .15s, transform .06s;
}
button:hover, .btn:hover { filter: brightness(1.06); text-decoration: none; opacity: 1; }
button:active, .btn:active { transform: scale(.98); }
button:disabled { opacity: .38; cursor: default; filter: none; transform: none; }
.btn-ghost { background: var(--fill); color: var(--blue); }
.btn-danger { background: var(--red); }
.btn-sm { padding: 0 15px; min-height: 38px; font-size: 14px; }
.btn-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

/* ── таблицы ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th {
  text-align: left; font-size: 12px; color: var(--dim); font-weight: 590;
  padding: 0 12px 9px; border-bottom: .5px solid var(--sep); white-space: nowrap;
}
td { padding: 13px 12px; border-bottom: .5px solid var(--sep); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── бейджи ────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 13px; font-weight: 590; white-space: nowrap; letter-spacing: -.01em;
}
.badge-ok { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.badge-warn { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.badge-bad { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.badge-acc { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.badge-dim { background: var(--fill); color: var(--dim); }

/* ── карточка поединка ─────────────────────────────
   Главное действие не должно теряться в строке таблицы: у ближайшей
   игры отдельная карточка с одной крупной кнопкой. */
.duel-card {
  background: var(--card-2); border-radius: var(--r-lg);
  padding: 20px 22px; margin-bottom: 14px;
}
.duel-card + .duel-card { margin-top: 0; }
.duel-card-top {
  display: flex; align-items: flex-start; gap: 12px;
  justify-content: space-between; margin-bottom: 4px;
}
.duel-card h3 {
  font-size: 18px; font-weight: 620; color: var(--fg); margin: 0;
  text-transform: none; letter-spacing: -.02em;
}
.duel-card .meta { color: var(--dim); font-size: 14px; margin: 0 0 18px; }
.duel-card .meta b { color: var(--fg-2); font-weight: 590; }
.duel-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.duel-actions .btn { min-height: 50px; font-size: 16px; padding: 0 26px; }
.duel-actions .btn-ghost { font-size: 15px; padding: 0 20px; }
.duel-wait {
  display: flex; align-items: center; gap: 9px;
  color: var(--dim); font-size: 14px; padding: 13px 16px;
  background: var(--fill); border-radius: var(--r);
}

@media (max-width: 640px) {
  .duel-actions { flex-direction: column; align-items: stretch; }
  .duel-actions .btn { width: 100%; }
}

/* ── счёт поединка ─────────────────────────────────── */
.score-bar { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.score-side {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 210px;
  background: var(--card-2); border-radius: var(--r-lg); padding: 12px 16px;
}
.score-side.win {
  background: color-mix(in srgb, var(--green) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent);
}
.score-val { font-size: 24px; font-weight: 680; font-variant-numeric: tabular-nums;
             margin-left: auto; letter-spacing: -.03em; }
.score-vs { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .06em; }

/* ── шкала навыка ──────────────────────────────────── */
.skill-row { display: grid; grid-template-columns: 210px 1fr 52px; gap: 14px; align-items: center; margin-bottom: 11px; }
.skill-name { font-size: 14px; color: var(--fg-2); }
.skill-track { height: 8px; background: var(--fill); border-radius: 100px; overflow: hidden; }
.skill-fill { height: 100%; background: var(--blue); border-radius: 100px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.skill-fill.high { background: var(--green); }
.skill-fill.low { background: var(--orange); }
.skill-val { text-align: right; font-size: 14px; font-variant-numeric: tabular-nums;
             font-weight: 590; color: var(--fg); }

/* ── сообщения ─────────────────────────────────────── */
.note { padding: 13px 16px; border-radius: var(--r-lg); font-size: 14px; margin-bottom: 18px; line-height: 1.45; }
.note-err { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.note-ok { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); }
.note-info { background: var(--fill); color: var(--dim); }

.empty { text-align: center; padding: 46px 20px; color: var(--faint); font-size: 15px; }
.muted { color: var(--dim); }
.small { font-size: 14px; }
.tiny { font-size: 13px; color: var(--dim); }
.mono { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
        font-size: .94em; letter-spacing: 0; }
.divider { height: .5px; background: var(--sep); margin: 20px -22px; }
.stack > * + * { margin-top: 14px; }

/* ── экран входа ───────────────────────────────────── */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 370px; }
.login-card h1 { text-align: center; font-size: 26px; margin-bottom: 6px; }
.login-card .lead { text-align: center; font-size: 15px; margin-bottom: 22px; }
.login-card .card { box-shadow: var(--shadow-lg); }

/* ── подсказки ─────────────────────────────────────
   Кружок с вопросом рядом с термином. Открывается по наведению и по
   клику — на телефоне наведения нет, а объяснение нужно так же. */
.hint { position: relative; display: inline-flex; vertical-align: middle; margin-left: 5px; }
.hint-dot {
  /* кружок не должен подхватывать высоту обычных кнопок */
  width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--fill); color: var(--dim);
  font-size: 11px; font-weight: 700; line-height: 1;
  cursor: help; border: 0; padding: 0; font-family: inherit;
  transition: background .15s, color .15s;
}
.hint-dot:hover, .hint-dot[aria-expanded="true"] { background: var(--blue); color: #fff; }
.hint-body {
  position: fixed; width: max-content; max-width: min(290px, calc(100vw - 24px));
  padding: 10px 13px; z-index: 40;
  background: var(--card); color: var(--fg); border-radius: var(--r);
  box-shadow: 0 6px 22px rgba(0,0,0,.16), 0 0 0 .5px var(--sep);
  font-size: 13px; line-height: 1.45; font-weight: 400; text-align: left;
  letter-spacing: -.01em; text-transform: none;
  opacity: 0; visibility: hidden; transition: opacity .14s, visibility .14s;
}

.hint:hover .hint-body, .hint-dot[aria-expanded="true"] + .hint-body {
  opacity: 1; visibility: visible;
}


/* ── пустой экран как подсказка ────────────────────
   Пустое состояние должно объяснять и вести дальше, а не молчать. */
.empty-guide { text-align: center; padding: 40px 22px; }
.empty-guide .icon {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--fill); display: grid; place-items: center; font-size: 21px;
}
.empty-guide h3 {
  font-size: 16px; font-weight: 600; color: var(--fg);
  text-transform: none; letter-spacing: -.01em; margin: 0 0 6px;
}
.empty-guide p { color: var(--dim); font-size: 14px; margin: 0 auto 16px; max-width: 380px; line-height: 1.5; }

/* ── подсказка о роли ──────────────────────────────── */
.role-note {
  display: flex; gap: 13px; align-items: flex-start;
  background: color-mix(in srgb, var(--blue) 7%, transparent);
  border-radius: var(--r-lg); padding: 15px 17px; margin-bottom: 20px;
}
.role-note .icon { font-size: 19px; line-height: 1.3; }
.role-note h3 {
  font-size: 14px; margin: 0 0 3px; color: var(--fg);
  text-transform: none; letter-spacing: -.01em; font-weight: 600;
}
.role-note p { margin: 0; font-size: 13.5px; color: var(--dim); line-height: 1.5; }
.role-note .close {
  margin-left: auto; background: none; border: 0; color: var(--faint);
  font-size: 17px; cursor: pointer; padding: 0 4px; line-height: 1;
  min-height: 24px; min-width: 24px;
}

/* главное действие в строке заметнее второстепенных */
.btn-primary-hint { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent); }

/* ── тур по интерфейсу ─────────────────────────────
   Затемняем страницу, обводим нужный элемент, рядом кладём карточку. */
.tour-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.5); animation: tour-in .2s ease;
}
.tour-ring {
  position: fixed; z-index: 91; border-radius: var(--r);
  box-shadow: 0 0 0 3px var(--blue), 0 0 0 9999px rgba(0,0,0,.5);
  pointer-events: none; transition: all .28s cubic-bezier(.4,0,.2,1);
}
.tour-box {
  position: fixed; z-index: 92; width: min(340px, calc(100vw - 28px));
  background: var(--card); border-radius: var(--r-lg); padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.24); animation: tour-in .22s ease;
}
.tour-box h3 {
  font-size: 16px; font-weight: 620; color: var(--fg); margin: 0 0 7px;
  text-transform: none; letter-spacing: -.02em;
}
.tour-box p { margin: 0 0 16px; font-size: 14px; color: var(--dim); line-height: 1.5; }
.tour-step {
  font-size: 12px; color: var(--faint); font-weight: 590;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px;
}
.tour-actions { display: flex; gap: 9px; align-items: center; justify-content: flex-end; }
.tour-skip {
  background: none; border: 0; color: var(--dim); font-size: 14px;
  cursor: pointer; padding: 0 14px; min-height: 40px; font-family: inherit;
}
.tour-skip:hover { color: var(--fg); }
.tour-next {
  background: var(--blue); border: 0; color: #fff; padding: 0 18px;
  min-height: 40px; border-radius: var(--r); font-size: 14px; font-weight: 590;
  cursor: pointer; font-family: inherit;
}
@keyframes tour-in { from { opacity: 0; } to { opacity: 1; } }

.tour-launch {
  background: none; border: 0; color: var(--blue); font-size: 13.5px;
  cursor: pointer; padding: 4px 6px; font-family: inherit; font-weight: 500;
  min-height: 0; display: inline;
}
.tour-launch:hover { text-decoration: underline; }

/* ── вход через Google ─────────────────────────────── */
.or-line {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: var(--faint); font-size: 13px;
}
.or-line::before, .or-line::after {
  content: ""; flex: 1; height: .5px; background: var(--sep);
}
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; background: var(--card); color: var(--fg);
  box-shadow: inset 0 0 0 .5px var(--sep), var(--shadow);
}
.google-btn:hover { background: var(--card-2); filter: none; }

/* ── комната ───────────────────────────────────────── */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.tile {
  background: #000; border-radius: var(--r-xl); overflow: hidden;
  position: relative; aspect-ratio: 16/9; box-shadow: var(--shadow);
}
.tile video { width: 100%; height: 100%; object-fit: cover; }
.tile-tag {
  position: absolute; left: 11px; bottom: 11px;
  background: rgba(0,0,0,.55); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 5px 11px; border-radius: 100px; font-size: 13px; font-weight: 500;
}
.rec-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); margin-right: 7px; animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .3; } }
.log {
  font-size: 13px; color: var(--dim); padding: 13px 16px; background: var(--card);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  max-height: 170px; overflow: auto; line-height: 1.6;
}

@media (max-width: 760px) {
  .wrap { padding: 20px 14px 56px; }
  h1 { font-size: 23px; }
  .card { padding: 16px; border-radius: var(--r-lg); }
  .topbar-inner {
    gap: 10px; padding: 0 14px; height: auto; min-height: 50px;
    flex-wrap: wrap; align-items: center;
  }
  /* название уходит: на узком экране важнее навигация */
  .brand { display: none; }
  .nav {
    /* flex:1 из базового правила мешает переносу — сбрасываем явно */
    order: 2; flex: 0 0 100%; width: 100%; gap: 2px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 10px; font-size: 13.5px; }
  .who { order: 1; margin-left: auto; padding: 9px 0 3px; }
  .topbar-inner::before { content: 'Тренажёр'; font-weight: 600; font-size: 15px;
    color: var(--fg); order: 0; letter-spacing: -.02em; }
  .skill-row { grid-template-columns: 1fr 82px !important; gap: 8px; }
  .skill-row .skill-track { display: none; }
  .field-row { flex-direction: column; gap: 0; }
  .score-side { min-width: 0; }
  .divider { margin: 16px -16px; }
}

/* --- отчёты по методике оценки ------------------------------------------ */

.card-alert { border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); }

/* Главный балл: одна крупная цифра, чтобы не искать её глазами */
.score-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.score-big {
  font-size: 56px; font-weight: 600; line-height: 1;
  letter-spacing: -.02em; color: var(--fg);
}
.score-hero .meta { margin: 0 0 4px; }

.metric-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.metric {
  background: var(--card-2); border-radius: var(--r);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.metric-val { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.metric-val.warn { color: var(--orange); }
.metric-label { font-size: 13px; color: var(--dim); }

/* Балл критерия. Пустой балл не должен выглядеть как ноль */
.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 12px; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.chip-na { background: var(--fill); color: var(--dim); font-weight: 400; }
.chip-r0 { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.chip-r1 { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }
.chip-r2 { background: color-mix(in srgb, var(--yellow) 26%, transparent); color: #8a6d00; }
.chip-r3 { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.chip-r4 { background: color-mix(in srgb, var(--green) 24%, transparent); color: var(--green); }

.assessment-quote {
  margin: 8px 0; padding: 10px 14px; border-left: 3px solid var(--fill-2);
  background: var(--card-2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  display: flex; flex-direction: column; gap: 4px;
}
.assessment-quote em { color: var(--dim); font-style: normal; }
.against .assessment-quote { border-left-color: color-mix(in srgb, var(--red) 45%, transparent); }

.behavior-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.crit { padding: 16px 0; border-top: 1px solid var(--sep); }
.crit-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.crit-meta { margin: 6px 0 0; color: var(--faint); }
.crit-why { margin: 8px 0 0; color: var(--fg-2); }
.crit-rule { margin-top: 10px; }
.crit-rule summary { cursor: pointer; color: var(--blue); font-size: 14px; }
.crit-rule p { margin: 8px 0 0; }

/* Правка тренера рядом с баллом: возвращаться за ней в другой экран незачем */
.override {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 12px;
}
.override select, .override input[type=text] {
  min-height: 38px; border-radius: var(--r-sm); border: 1px solid var(--sep);
  background: var(--card); color: var(--fg); padding: 0 10px; font-size: 14px;
}
.override input[type=text] { flex: 1 1 200px; }
.override-status { color: var(--dim); }

.moment { padding: 14px 0; border-top: 1px solid var(--sep); }
.moment:first-of-type { border-top: 0; padding-top: 0; }
.moment-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.cf-block { padding: 16px 0; border-top: 1px solid var(--sep); }
.cf-block:first-of-type { border-top: 0; padding-top: 0; }
.cf-block p { margin: 8px 0 0; }
.cf-alt {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  border-radius: var(--r); padding: 12px 14px; margin-top: 12px !important;
}

.experiment {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r);
  background: color-mix(in srgb, var(--green) 10%, transparent);
}
.experiment .label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--green); font-weight: 600;
}
.experiment p { margin: 6px 0 0; font-size: 17px; }

.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { margin: 8px 0; }

@media (max-width: 620px) {
  .score-big { font-size: 44px; }
  .override input[type=text] { flex: 0 0 100%; }
}

/* Выключатель блоков навыков в кейсе */
.behavior-grid {
  display: grid; gap: 10px; margin: 14px 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.behavior-toggle {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  background: var(--card-2); border-radius: var(--r); padding: 12px 14px;
  min-height: 44px;
}
.behavior-toggle input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 18px; }
.behavior-toggle span { font-size: 15px; line-height: 1.35; }


/* Самопроверка связи: список шагов с исходом */
.check-list { margin: 18px 0 0; }
.check-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--sep); font-size: 16px;
}
.check-row:first-child { border-top: 0; }
.check-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 13px;
  background: var(--fill); color: var(--dim); font-weight: 600;
}
.check-row.ok .check-icon {
  background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green);
}
.check-row.bad .check-icon {
  background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red);
}
.check-row.warn .check-icon {
  background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange);
}
.check-row.wait { color: var(--dim); }
