/* === Раздел «Учёба»: стили, которых нет в платформе. CSS-переменные общие со style.css. === */

/* ===== Ввод ответа ===== */
.answer-input {
  display: block; width: 100%;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; font-size: 1.05rem; font-family: inherit;
  line-height: 1.4; margin-bottom: 12px; resize: vertical;
  -webkit-user-select: text; user-select: text;
}
.answer-input:focus { outline: none; border-color: var(--gold); }
.by-ai { font-size: 0.8rem; color: var(--gold); font-weight: 700; }
.explain.coach { border-left-color: var(--gold-bright); background: #20210f; }

/* ===== Дашборд «Админ» (учебная аналитика; .admin-card/.adm-name берём из платформы) ===== */
.adm-head { display: flex; justify-content: space-between; align-items: baseline; }
.adm-pct { font-weight: 800; color: var(--gold); font-size: 1.15rem; }
.adm-sub { color: var(--muted); font-size: 0.82rem; margin: 4px 0 10px; }
.adm-themes { display: flex; flex-direction: column; gap: 5px; }
.adm-theme { display: flex; justify-content: space-between; font-size: 0.88rem; border-top: 1px solid var(--border); padding-top: 5px; }
.adm-theme > span:first-child { color: var(--text); }
.adm-th-num { color: var(--muted); white-space: nowrap; margin-left: 10px; }

/* ===== Вкладки дашборда ===== */
.adm-tabs { display: flex; gap: 8px; margin: 4px 0 14px; }
.adm-tab {
  flex: 1; padding: 10px 8px; font-size: 0.92rem; font-family: inherit; font-weight: 700;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
}
.adm-tab.active { color: #0d130a; background: var(--gold); border-color: var(--gold); }

/* ===== Карточки «Ввод-ответы» ===== */
.inp-card {
  border: 1px solid var(--border); border-left: 3px solid var(--gold-dim);
  border-radius: 12px; background: var(--surface); padding: 12px 14px; margin-bottom: 12px;
}
.inp-card.ok { border-left-color: var(--correct); }
.inp-card.no { border-left-color: var(--wrong); }
.inp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.inp-meta { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.inp-q { color: var(--text); font-weight: 600; font-size: 0.95rem; margin: 8px 0 6px; line-height: 1.35; }
.inp-a { color: var(--text); font-size: 0.92rem; margin-bottom: 6px; line-height: 1.4; }
.inp-a b { color: var(--muted); font-weight: 700; }
.inp-verdict { font-size: 0.85rem; font-weight: 800; }
.inp-verdict.v-ok { color: var(--correct); }
.inp-verdict.v-no { color: var(--wrong); }
.inp-reason { color: var(--muted); font-size: 0.86rem; margin-top: 6px; line-height: 1.4; font-style: italic; }

/* ответ ученика в разборе экзамена */
.review-a.your-ans { color: var(--text); }

/* ===== Экзамен по билетам ===== */
.ticket-q {
  border: 1px solid var(--border); border-left: 3px solid var(--gold-dim);
  border-radius: 12px; background: var(--surface); padding: 12px 14px; margin-bottom: 14px;
}
.ticket-qn { color: var(--gold); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.ticket-q .question { margin: 0 0 10px; }
.ticket-q .answer-input { margin-bottom: 0; }
.ticket-verdict { font-size: 1.5rem; font-weight: 800; }
.ticket-verdict.passed { color: var(--correct); }
.ticket-verdict.failed { color: var(--wrong); }

/* ===== Звёздочка-закладка ===== */
.star-btn { margin-left: auto; background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 2px 4px; }
.star-btn.on { color: var(--gold); }

/* ===== Экран «Мой прогресс» ===== */
.prog-summary { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 16px; text-align: center; }
.prog-big { font-size: 2.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
.prog-summary .prog-sub { color: var(--muted); font-size: 0.85rem; margin: 4px 0 12px; }
.prog-row { color: var(--text); font-size: 0.92rem; margin: 6px 0; }
.prog-weak { color: #e0936e; font-size: 0.92rem; padding: 8px 12px; border: 1px solid var(--border); border-left: 3px solid var(--wrong); border-radius: 10px; margin-bottom: 8px; background: var(--surface); }
.prog-theme { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 12px 14px; margin-bottom: 10px; }
.prog-name { color: var(--text); font-weight: 600; }
.prog-theme .mini-bar { height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.prog-theme .mini-bar > span { display: block; height: 100%; background: var(--gold); transition: width .2s; }
.prog-theme .prog-sub { color: var(--muted); font-size: 0.8rem; margin-top: 6px; }
