* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a5f4a 0%, #2d8f6f 50%, #1e3d5c 100%);
  min-height: 100vh;
  color: #2c3e50;
}

a { color: #1a5f4a; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: rgba(255,255,255,0.97);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.site-header-left {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
}
.site-prep-dashboard-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a5f4a;
  white-space: nowrap;
}
.site-prep-dashboard-link:hover {
  color: #146048;
}

.site-logo { font-size: 1.25rem; font-weight: 700; color: #1a5f4a; }
.site-nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: #555; font-weight: 500; }
.site-nav a:hover { color: #1a5f4a; }
.site-session-slot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-right: 4px;
}
.site-session-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.2;
}
.site-session-badge--admin { background: #fff3cd; color: #856404; border: 1px solid #e6c84a; }
.site-session-badge--student { background: #d4ede4; color: #1a5f4a; border: 1px solid #7aba9a; }
.site-session-badge--teacher { background: #e8f0fe; color: #1d4ed8; border: 1px solid #93c5fd; }
.site-session-badge--parent { background: #f3e8ff; color: #6d28d9; border: 1px solid #c4b5fd; }
.site-session-name {
  font-size: 0.9rem;
  color: #333;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-session-cabinet { font-weight: 600 !important; color: #1a5f4a !important; }
.site-nav-lk {
  font-weight: 700 !important;
  color: #1a5f4a !important;
  border-color: #7aba9a !important;
  padding: 5px 14px !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.site-nav-lk:hover {
  background: #eef6f2 !important;
  color: #134e3a !important;
}
.site-nav-lk--guest {
  opacity: 0.95;
}
.site-session-switch {
  padding: 4px 10px !important;
  font-size: 0.8rem !important;
  line-height: 1.2;
}
.site-session-logout { font-size: 0.88rem; }
.login-cabinet-save-hint {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #166534;
  line-height: 1.45;
}

.login-cabinet-save-hint p {
  margin: 0;
}

.login-switch-hint {
  background: #fff8e6;
  border: 1px solid #e6c84a;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: #555;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
}
.btn-primary { background: #1a5f4a; color: #fff; }
.btn-primary:hover { background: #144a3a; text-decoration: none; color: #fff; }
.btn-outline { background: transparent; border: 2px solid #1a5f4a; color: #1a5f4a; }
.btn-outline:hover { background: #1a5f4a; color: #fff; text-decoration: none; }
.btn-light { background: #fff; color: #1a5f4a; }
.btn-block { width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

.hero {
  text-align: center;
  color: #fff;
  padding: 48px 20px 40px;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.hero p { font-size: 1.15rem; opacity: 0.95; max-width: 600px; margin: 0 auto 24px; }
.hero--landing h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); max-width: 720px; margin-left: auto; margin-right: auto; line-height: 1.25; }
.hero--landing .hero-sub { max-width: 520px; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

.page-landing .landing-main { max-width: 720px; }
.landing-trust {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.landing-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  font-size: 0.98rem;
}
.landing-trust-icon { font-size: 1.2rem; }
.landing-preview {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 20px;
  border-left: 4px solid #1a5f4a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.landing-preview-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin-bottom: 12px;
}
.landing-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #555;
}
.landing-preview-row strong { font-size: 1.25rem; color: #2c3e50; }
.landing-preview-row--up strong { color: #1a5f4a; }
.landing-preview-weak { margin-top: 12px; font-size: 0.9rem; color: #666; }
.landing-preview-weak ul {
  margin: 6px 0 0 18px;
  color: #c0392b;
}
.landing-preview-weak li::before { content: '✕ '; color: #c0392b; }
.landing-preview-weak li { list-style: none; margin-left: 0; padding-left: 0; }
.landing-preview-weak ul { list-style: none; padding-left: 0; }
.landing-flow { text-align: center; }
.steps--landing { margin-bottom: 20px; }
.landing-cta-secondary { margin-top: 8px; }
.landing-login-hint { margin-top: 14px; color: #666; font-size: 0.9rem; }
.landing-services summary {
  cursor: pointer;
  font-weight: 600;
  color: #1a5f4a;
  margin-bottom: 12px;
}
.cards--services { margin-top: 16px; }

/* Прогноз на экране результата */
.result-forecast {
  background: #f4faf7;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
  border: 1px solid #d4ebe2;
}
.result-forecast-title { font-size: 0.85rem; color: #666; margin-bottom: 10px; }
.result-forecast-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0;
  font-size: 0.95rem;
}
.result-forecast-line strong { font-size: 1.15rem; color: #2c3e50; }
.result-forecast-line--plan strong { color: #1a5f4a; }
.result-weak-details {
  margin: 12px 0;
}
.result-weak-details__btn {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid #e8b4b4;
  background: #fff;
  color: #c0392b;
  font-weight: 600;
  font-size: 0.95rem;
}
.result-weak-details__btn::-webkit-details-marker { display: none; }
.result-weak-details__btn::marker { content: ''; }
.result-weak-details[open] .result-weak-details__btn {
  margin-bottom: 10px;
  border-color: #c0392b;
}
.result-weak-details .result-weak-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.result-weak-row,
.result-weak-row--link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: #fff5f5;
  border-radius: 8px;
  border-left: 3px solid #e74c3c;
  font-size: 0.92rem;
}
.result-weak-row--link {
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.result-weak-row--link:hover {
  background: #ffeaea;
  border-left-color: #c0392b;
}
.result-weak-row--static { cursor: default; }
.result-weak-row__go {
  flex-shrink: 0;
  color: #1a5f4a;
  font-weight: 700;
  font-size: 1rem;
}
.gap-action-title a {
  color: #1a5f4a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gap-action-title a:hover { color: #0d3d2c; }
.result-weak-row__name {
  color: #333;
  font-weight: 500;
  line-height: 1.3;
}
.result-weak-row__pct {
  flex-shrink: 0;
  color: #c0392b;
  font-size: 0.88rem;
  white-space: nowrap;
}
.result-weak-row__pct strong {
  font-weight: 700;
  font-size: 0.95rem;
}
.result-headline {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a5f4a;
  margin: 0 0 4px;
}
.dash-top-bar {
  background: #f4faf7;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid #d4ebe2;
}
.dash-top-bar__scores {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.dash-top-bar__scores strong { color: #1a5f4a; }
.topic-progress-list { margin-top: 12px; }
.topic-progress-item { margin-bottom: 10px; }
.topic-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.topic-progress-bar {
  height: 8px;
  background: #e8ece9;
  border-radius: 4px;
  overflow: hidden;
}
.topic-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a5f4a, #2d8f6f);
  border-radius: 4px;
}
.topic-progress-fill--done { background: #27ae60; }
.progress-last-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8ece9;
  font-size: 0.92rem;
  color: #555;
}

.diag-delta-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid #d4ebe2;
}
.diag-delta-card--up { border-left: 4px solid #27ae60; }
.diag-delta-card--down { border-left: 4px solid #e67e22; }
.diag-delta-title { font-size: 0.88rem; color: #666; margin-bottom: 6px; }
.diag-delta-scores { font-size: 1.05rem; margin-bottom: 4px; }
.diag-delta-change { font-weight: 600; color: #1a5f4a; }
.diag-delta--down .diag-delta-change { color: #c0392b; }

.gaps-map-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.gaps-map-hint { font-size: 0.85rem; color: #666; margin-bottom: 12px; }
.gaps-map-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.gaps-map-row--critical { background: #fdecea; color: #922b21; }
.gaps-map-row--warn { background: #fff8e6; color: #7d6608; }
.gaps-map-row--ok { background: #eafaf1; color: #1e6f4a; }

.today-plan-reason {
  color: #555;
  font-size: 0.92rem;
  margin: 0 0 10px;
  line-height: 1.45;
}
.today-interleave-hint { font-size: 0.85rem; color: #888; margin-bottom: 8px; }
.today-steps-compact a { color: #1a5f4a; font-weight: 600; }
.plan-step-reason {
  display: block;
  font-size: 0.78rem;
  color: #666;
  font-weight: 400;
  margin-top: 2px;
}

.error-pattern-cards { display: flex; flex-direction: column; gap: 10px; }
.error-pattern-card {
  background: #fff;
  border: 1px solid #e8ece9;
  border-radius: 8px;
  padding: 12px 14px;
}
.error-pattern-title { margin: 0 0 6px; font-size: 0.95rem; color: #1a5f4a; }
.error-pattern-hint { margin: 0 0 6px; font-size: 0.9rem; color: #444; line-height: 1.45; }
.error-pattern-action { margin: 0; font-size: 0.88rem; color: #555; }

.quiz-micro-hint { margin-top: 12px; font-size: 0.9rem; line-height: 1.45; }
.theory-quiz-topic {
  margin: -4px 0 14px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.4;
}
.theory-quiz-kes-tag,
.review-kes-tag {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 10px;
}
.consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.4;
  cursor: pointer;
}
.consent-label input { margin-top: 4px; flex-shrink: 0; }

.btn-link {
  background: none;
  border: none;
  color: #1a5f4a;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: inherit;
  font-weight: 600;
}
.review-panel-hint { font-size: 0.92rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card.featured { border: 2px solid #1a5f4a; }
.card h3 { color: #1a5f4a; margin-bottom: 8px; font-size: 1.2rem; }
.card .price { font-size: 1.4rem; font-weight: 700; margin: 12px 0; color: #2c3e50; }
.card .tag { font-size: 0.85rem; color: #7f8c8d; margin-bottom: 8px; }
.card ul { margin: 12px 0 20px 18px; color: #555; font-size: 0.95rem; }
.card li { margin: 4px 0; }

.section {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.section h2 { margin-bottom: 16px; color: #1a5f4a; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.alert-error { background: #f8d7da; color: #721c24; }
.alert-success { background: #d4edda; color: #155724; }
.alert-info { background: #d1ecf1; color: #0c5460; }

.lk-layout { max-width: 900px; margin: 0 auto; padding: 24px; }
.lk-panel {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.lk-panel h2 { font-size: 1.1rem; margin-bottom: 16px; color: #1a5f4a; }

.login-box {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.login-box h1 { text-align: center; margin-bottom: 24px; color: #1a5f4a; }
.role-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.role-tabs button {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
}
.role-tabs button.active { background: #1a5f4a; color: #fff; border-color: #1a5f4a; }

.request-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.request-card .actions { margin-top: 12px; display: flex; gap: 8px; }

.question-box {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}
.question-box .q-text {
  margin-bottom: 16px;
  line-height: 1.5;
  display: flow-root;
  max-width: 100%;
}
/* Обёртка таблицы: горизонтальный скролл вместо крошения по буквам */
.q-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
  border: 1px solid #d4e8de;
  border-radius: 8px;
}
.q-table-scroll > table { margin: 0 !important; border: 0 !important; width: auto; min-width: 100%; border-collapse: collapse; }
.q-table-scroll td,
.q-table-scroll th {
  padding: 8px 12px;
  border: 1px solid #d4e8de;
  min-width: 84px;
  vertical-align: top;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}
.q-table-scroll th { background: #eef6f1; font-weight: 600; text-align: left; }
/* Первый столбец «прилипает» при горизонтальной прокрутке — видно, к какой строке относится ячейка */
.q-table-scroll td:first-child,
.q-table-scroll th:first-child {
  position: sticky;
  left: 0;
  background: #f4faf6;
  z-index: 1;
}
@media (max-width: 640px) {
  .q-table-scroll td,
  .q-table-scroll th { padding: 6px 9px; font-size: 0.86rem; min-width: 92px; }
}

/* Пропуск в таблице — бейдж с буквой */
.q-blank {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 7px;
  border: 1.5px dashed #16a34a;
  border-radius: 6px;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  text-align: center;
}

/* «Список элементов» — аккуратный нумерованный список */
.q-choice-list-head {
  margin: 14px 0 6px;
  font-weight: 700;
  color: #17352c;
}
ol.q-choice-list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
ol.q-choice-list li {
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px solid #e6ebe8;
  border-radius: 8px;
  line-height: 1.4;
}
ol.q-choice-list li::before {
  content: attr(value);
  flex: 0 0 auto;
  min-width: 1.4em;
  font-weight: 700;
  color: #0f766e;
}

.question-box .q-text table,
.question-box .q-text table.q-table {
  float: none !important;
  display: table;
  width: auto !important;
  min-width: 100%;
  max-width: none;
  margin: 12px 0;
  border-collapse: collapse;
  box-sizing: border-box;
}
.question-box .q-text table td,
.question-box .q-text table th {
  padding: 8px 12px;
  vertical-align: top;
  border: 1px solid #d4e8de;
  min-width: 84px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}
.question-box .q-text table th {
  background: #eef6f1;
  font-weight: 600;
  text-align: left;
}
@media (max-width: 640px) {
  .question-box .q-text table td,
  .question-box .q-text table th {
    padding: 6px 9px;
    font-size: 0.86rem;
    min-width: 92px;
  }
}
.question-box .answer-block {
  clear: both;
  width: 100%;
  margin-top: 12px;
}
.ege-line-head {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #eef6f1;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #1b4332;
}
.extended-answer-input {
  width: 100%;
  min-height: 160px;
  padding: 10px 12px;
  border: 1px solid #c5d9ce;
  border-radius: 8px;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}
.extended-user-answer {
  margin: 12px 0;
  padding: 10px 12px;
  background: #f8faf9;
  border-left: 3px solid #7aba9a;
  white-space: pre-wrap;
  line-height: 1.45;
}
.rubric-self-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.options label {
  display: block;
  padding: 10px;
  margin: 6px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
}
.options label:hover { background: #f0f7f4; }
.options input { margin-right: 8px; }
.options-multi .option-check {
  display: block;
  padding: 10px;
  margin: 6px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
}
.options-multi .option-check:hover { background: #f0f7f4; }
.options-multi .option-check:has(input:checked) {
  background: #e8f5f0;
  border-color: #1a5f4a;
}

/* Варианты в theory.html / мини-тест (раньше label был inline — шли в одну строку) */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.options-list .option-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.45;
}
.options-list .option-label:hover {
  background: #f0f7f4;
}
.options-list .option-label:has(input:checked) {
  background: #e8f5f0;
  border-color: #1a5f4a;
}
.options-list .option-label input[type="radio"],
.options-list .option-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 4px;
}
.options-list .option-label span {
  flex: 1;
  min-width: 0;
}

.options-list .option-num {
  font-weight: 700;
  margin-right: 0.35em;
  color: #334155;
}

.theory-quiz-finishing {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.95rem;
}

.theory-result-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.theory-quiz-review-title {
  margin: 20px 0 12px;
  font-size: 1.05rem;
  color: #1a5f4a;
}
.theory-quiz-review-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.theory-quiz-review-item {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fafafa;
}
.theory-quiz-review-item--ok {
  border-left: 4px solid #27ae60;
  background: #f4fbf6;
}
.theory-quiz-review-item--bad {
  border-left: 4px solid #c0392b;
  background: #fdf5f5;
}
.theory-quiz-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.theory-quiz-mark {
  font-size: 1.25rem;
  font-weight: 700;
}
.theory-quiz-review-q {
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.theory-quiz-review-line {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #333;
}

/* Результат мини-теста — обучающий разбор */
.theory-quiz-result-panel__title {
  margin: 0 0 12px;
}
.theory-quiz-result {
  max-width: none;
  margin: 0;
}
.theory-quiz-result__home {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #1a5f4a;
  text-decoration: none;
  font-weight: 600;
}
button.theory-quiz-result__home {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.theory-quiz-result__home:hover {
  text-decoration: underline;
}
.theory-quiz-result-hero {
  margin: 0 0 20px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border: 1px solid #fed7aa;
}
.theory-quiz-result-hero--pass {
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
  border-color: #86efac;
}
.theory-quiz-result-hero__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.35;
  color: #1a3d2e;
}
.theory-score-mechanics {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #1f2937;
}
.theory-score-mechanics__xp {
  margin: 0 0 8px;
  color: #166534;
  font-weight: 600;
}
.theory-score-mechanics__map {
  margin: 0 0 10px;
  color: #374151;
}
.theory-score-mechanics__rules {
  margin: 0;
  padding-left: 1.15rem;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theory-score-delta {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #f3f4f6;
}
.theory-score-delta--up {
  background: #ecfdf5;
  color: #065f46;
}
.theory-score-delta--down {
  background: #fef2f2;
  color: #991b1b;
}
.theory-score-delta--start {
  background: #fffbeb;
  color: #92400e;
}
.theory-score-delta--flat {
  background: #f3f4f6;
  color: #374151;
}
.theory-score-delta__change {
  font-weight: 600;
}
.theory-quiz-result-hero__sub {
  margin: 0 0 14px;
  line-height: 1.5;
  color: #374151;
  font-size: 0.95rem;
}
.theory-quiz-result-progress__track {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.theory-quiz-result-progress__seg {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
}
.theory-quiz-result-progress__seg--ok {
  background: #22c55e;
}
.theory-quiz-result-progress__seg--bad {
  background: #f87171;
}
.theory-quiz-result-progress__label {
  margin: 0;
  font-size: 0.88rem;
  color: #6b7280;
}
.theory-quiz-system-errors {
  margin: 0 0 20px;
}
.theory-quiz-system-error {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  margin-bottom: 10px;
}
.theory-quiz-system-error__title {
  margin: 0 0 8px;
  font-weight: 700;
  color: #92400e;
}
.theory-quiz-system-error__text {
  margin: 0 0 10px;
  line-height: 1.45;
  color: #78350f;
  font-size: 0.92rem;
}
.theory-quiz-system-rules {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
}
.theory-quiz-review-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  background: #fafafa;
}
.theory-quiz-review-item--ok {
  border-left: 5px solid #22c55e;
  background: #f0fdf4;
}
.theory-quiz-review-item--bad {
  border-left: 5px solid #ef4444;
  background: #fef2f2;
}
.theory-quiz-review-status {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}
.theory-quiz-review-item--ok .theory-quiz-review-status {
  color: #166534;
  background: #dcfce7;
}
.theory-quiz-review-item--bad .theory-quiz-review-status {
  color: #991b1b;
  background: #fee2e2;
}
.theory-quiz-review-focus {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #6b7280;
  font-style: italic;
}
.theory-quiz-review-praise {
  margin: 10px 0 0;
  color: #166534;
  font-weight: 600;
}
.theory-quiz-review-why {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
}
.theory-quiz-review-answers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 0.92rem;
}
.theory-quiz-review-ua s {
  color: #b91c1c;
}
.theory-quiz-review-ca strong {
  color: #15803d;
}
.theory-quiz-review-why-title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #1a5f4a;
}
.theory-quiz-review-why-list {
  margin: 0 0 8px;
  padding-left: 1.2rem;
  line-height: 1.5;
  font-size: 0.9rem;
}
.theory-quiz-review-mnemonic {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.45;
}
.theory-quiz-review-mistake {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.45;
}
.theory-quiz-error-badge {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
}
.theory-quiz-error-badge--factual {
  background: #fef2f2;
  color: #991b1b;
}
.theory-quiz-error-badge--terminology {
  background: #eff6ff;
  color: #1e40af;
}
.theory-quiz-error-badge--arithmetic {
  background: #fffbeb;
  color: #92400e;
}
.theory-quiz-error-badge--format {
  background: #f5f3ff;
  color: #5b21b6;
}
.theory-quiz-section-progress {
  margin: 16px 0 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbeafe;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.theory-quiz-section-progress__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a3d2e;
  line-height: 1.35;
}
.theory-quiz-section-progress__bar-wrap {
  margin-bottom: 8px;
}
.theory-quiz-section-progress__bar {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.theory-quiz-section-progress__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}
.theory-quiz-section-progress__bar-text {
  margin: 6px 0 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #16a34a;
  line-height: 1.2;
  word-break: break-all;
}
.theory-quiz-section-progress__pct {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: #4b5563;
}
.theory-quiz-gaps {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
}
.theory-quiz-gaps__lead {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: #374151;
}
.theory-quiz-gaps__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theory-quiz-gaps__item {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #1f2937;
}
.theory-quiz-gaps__q {
  color: #9ca3af;
  font-size: 0.82rem;
}
.theory-quiz-gaps__ok {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: #166534;
}
.theory-quiz-error-types {
  margin: 18px 0 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.theory-quiz-error-types__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a3d2e;
}
.theory-quiz-error-types__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.theory-quiz-error-types__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  font-size: 0.88rem;
  line-height: 1.35;
}
.theory-quiz-error-types__label {
  font-weight: 600;
  color: #1f2937;
}
.theory-quiz-error-types__count {
  color: #6b7280;
  white-space: nowrap;
}
.theory-quiz-error-types__hint {
  grid-column: 1 / -1;
  color: #6b7280;
}
.theory-quiz-result-actions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}
.theory-quiz-result-actions__title {
  margin: 0 0 12px;
  font-weight: 700;
  color: #1a3d2e;
}
.theory-quiz-result-actions__primary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.theory-quiz-result-actions__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.theory-quiz-rec-path {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.theory-quiz-rec-path__label {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #166534;
}
.theory-quiz-rec-path__steps {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.theory-quiz-rec-path__step {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #1a3d2e;
}
.theory-quiz-rec-path__step--muted {
  color: #4b5563;
}
.theory-quiz-rec-path__cta {
  width: 100%;
  max-width: 420px;
}
.theory-quiz-rec-path__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}
.theory-quiz-rec-path__cta-row .theory-quiz-rec-path__cta {
  flex: 1 1 200px;
  max-width: none;
  width: auto;
}
.theory-quiz-rec-path__alt {
  margin-top: 4px;
}
.theory-quiz-rec-path__alt-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}
.theory-quiz-rec-path__alt-nav {
  margin-top: 8px;
}
.theory-quiz-result-next {
  margin: 12px 0;
}
.theory-quiz-result-next .theory-next-nav__label {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: #6b7280;
}
.theory-quiz-result .theory-result-nav {
  margin-top: 12px;
}

footer.site-footer {
  text-align: center;
  padding: 24px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
footer a { color: #fff; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step { text-align: center; }
.step-num {
  width: 40px; height: 40px;
  background: #1a5f4a; color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 8px;
}

.hidden { display: none !important; }

.answer-hint {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #5a6c7d;
  line-height: 1.4;
}

/* Результаты диагностики */
.result-summary {
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f0fa 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.result-summary .score-big {
  font-size: 2rem;
  font-weight: 700;
  color: #1a5f4a;
  margin: 8px 0;
}
.result-summary .level-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.result-summary .level-tag.good { background: #d4edda; color: #155724; }
.result-summary .level-tag.mid { background: #fff3cd; color: #856404; }
.result-summary .level-tag.low { background: #f8d7da; color: #721c24; }
.result-topics { margin-top: 16px; }
.result-topics h4 { font-size: 0.95rem; color: #1a5f4a; margin-bottom: 8px; }
.result-topic-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.9rem;
}
.result-topic-row.weak { color: #c0392b; }

.result-review h3 { margin: 20px 0 12px; color: #1a5f4a; font-size: 1.1rem; }
.review-item {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fafafa;
}
.review-item.ok {
  border-color: #27ae60;
  background: #f0faf4;
}
.review-item.bad {
  border-color: #e67e22;
  background: #fffbf0;
}
.review-item.pending {
  border-color: #bdc3c7;
  background: #f8f9fa;
}
.review-item.pending .review-badge {
  background: #ecf0f1;
  color: #555;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #2980b9;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}
.link-btn:hover { color: #1a5276; }
.hw-result-head { margin-bottom: 16px; }
.hw-result-title { margin: 0 0 8px; font-size: 1.35rem; }
.hw-result-meta { margin: 4px 0; color: #555; }
.theory-auto-lesson { line-height: 1.55; }
.theory-auto-lesson h3 { margin: 0 0 12px; color: #2c3e50; font-size: 1.2rem; }
.theory-auto-lesson h4 { margin: 18px 0 8px; color: #34495e; font-size: 1rem; }
.theory-lead { color: #444; margin-bottom: 12px; }
.theory-topic-list, .theory-ege-list { margin: 0 0 12px 1.2em; }
.theory-topic-list li { margin-bottom: 6px; }
.theory-ege-list li { margin-bottom: 4px; color: #2c5282; }
.theory-practice { background: #f0f7ff; padding: 12px 14px; border-radius: 8px; border-left: 4px solid #3498db; }
.theory-block {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2ebe6;
  background: #fff;
}
.theory-block h4 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theory-block--plain { background: linear-gradient(135deg, #f8faf9 0%, #fff 100%); }
.theory-block--plain h4::before { content: "💡"; }
.theory-block--example { background: linear-gradient(135deg, #fff7ed 0%, #fff 100%); border-color: #fed7aa; }
.theory-block--example h4::before { content: "🧪"; }
.theory-block--dont { background: linear-gradient(135deg, #eef2ff 0%, #fff 100%); border-color: #c7d2fe; }
.theory-block--dont h4::before { content: "⚖️"; }
.theory-block--defs { background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%); border-color: #a7f3d0; }
.theory-block--defs h4::before { content: "🧩"; }
.theory-block--traps { background: linear-gradient(135deg, #fef2f2 0%, #fff 100%); border-color: #fecaca; }
.theory-block--traps h4::before { content: "⚠️"; }
.theory-block--quiz {
  margin-top: 20px;
  padding: 16px;
  border: 2px solid #86efac;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}
.theory-block--quiz h4 { margin-top: 0; color: #166534; }

.theory-block--fipi {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #b8dfd0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fcfa 0%, #fff 100%);
}
.theory-block--fipi h4 { margin-top: 0; color: #14532d; }
.theory-fipi-lead { margin: 0 0 14px; line-height: 1.55; }
.theory-fipi-sub { margin: 16px 0 8px; font-size: 0.95rem; color: #1a5f4a; }
.theory-fipi-tables { display: flex; flex-direction: column; gap: 16px; }
.theory-fipi-table-wrap { overflow-x: auto; }
.theory-fipi-table-title { margin: 0 0 8px; font-size: 0.92rem; }
.theory-fipi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.theory-fipi-table th,
.theory-fipi-table td {
  border: 1px solid #d4e8de;
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}
.theory-fipi-table th { background: #eef6f1; font-weight: 700; }
.theory-fipi-terms {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 24px;
}
@media (max-width: 640px) {
  .theory-fipi-terms { columns: 1; }
}
.theory-fipi-details { margin-top: 12px; font-size: 0.9rem; }
.theory-fipi-details summary { cursor: pointer; font-weight: 600; color: #1a5f4a; }
.theory-fipi-formulations { margin: 8px 0 0; padding-left: 1.2rem; color: #374151; }

/* Узкий экран: кнопки в тексте урока; широкий — в правой колонке */
@media (min-width: 1100px) {
  [data-quiz-block-inline] { display: none; }
}
@media (max-width: 1099px) {
  .theory-aside-card--quiz { display: none; }
}
.theory-block p { margin: 0 0 8px; }
.theory-block p:last-child { margin-bottom: 0; }
.theory-block .theory-ege-list { margin-bottom: 0; }
.theory-block .lk-table td { background: rgba(255,255,255,0.7); border-radius: 10px; padding: 10px 12px; }
.theory-retake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}
.theory-fipi-quiz-block .theory-retake-actions {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}
.theory-note { font-size: 0.85rem; color: #888; margin-top: 16px; }
.group-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.review-item .review-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.review-item .review-num { font-weight: 700; color: #2c3e50; }
.review-item .review-badge {
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.review-item.ok .review-badge { background: #d4edda; color: #155724; }
.review-item.bad .review-badge { background: #ffeaa7; color: #6c4a00; }
.review-item .review-kes {
  font-size: 0.8rem;
  color: #7f8c8d;
  margin-bottom: 8px;
}
.review-item .review-q {
  margin: 12px 0;
  line-height: 1.5;
  font-size: 0.95rem;
}
.review-item .review-q img { max-width: 100%; height: auto; }
.review-answers {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #ddd;
  font-size: 0.9rem;
}
.review-answers .your { color: #c0392b; }
.review-answers .your.ok { color: #27ae60; }
.review-answers .correct { color: #1a5f4a; font-weight: 600; margin-top: 6px; }

.result-actions { margin: 16px 0; }
.result-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 20px;
}
@media (max-width: 560px) {
  .result-actions-row { grid-template-columns: 1fr; }
}
.result-actions-row__btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.result-level-details {
  margin-top: 12px;
  border-top: 1px solid #e8ece9;
  padding-top: 8px;
}
.result-level-details__summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2980b9;
  list-style: none;
}
.result-level-details__summary::-webkit-details-marker { display: none; }
.result-level-details__body { margin-top: 10px; }
.result-score-card--level { align-self: stretch; }
.result-quick-plan {
  background: #f8faf9;
  border: 1px solid #d0ddd6;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0;
}
.result-quick-plan-desc { color: #555; margin: 0 0 12px; line-height: 1.5; font-size: 0.92rem; }
.result-plan-details { margin-bottom: 14px; }
.result-plan-details__btn {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid #1a5f4a;
  background: #fff;
  color: #1a5f4a;
  font-weight: 600;
  font-size: 0.95rem;
}
.result-plan-details__btn::-webkit-details-marker { display: none; }
.result-plan-details__btn::marker { content: ''; }
.result-plan-details[open] .result-plan-details__btn {
  margin-bottom: 12px;
  background: #f4faf7;
}
.result-plan-details__body { padding-left: 2px; }
.result-quick-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.result-quick-plan-actions .btn { flex: 1 1 200px; }
.study-plan-list--compact { margin: 0 0 8px 1.2em; }
.result-quick-plan-claim { margin-top: 16px; }
.result-quick-plan-empty { color: #888; margin: 0; }
.apply-success {
  margin-top: 16px;
  padding: 20px;
  border-radius: 12px;
  background: #e8f5e9;
  border: 2px solid #27ae60;
}
.apply-success-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a5f4a;
  margin: 0 0 8px;
}
.apply-success-text {
  color: #444;
  margin: 0 0 16px;
  line-height: 1.5;
}
.apply-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-apply-success .apply-success {
  margin-top: 0;
}
.post-apply-next {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  background: #f0f7f4;
  border: 1px solid #c5e0d4;
}
.post-apply-next-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #1a5f4a;
}
.post-apply-next-hint {
  margin: 0 0 16px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.45;
}
.post-apply-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-apply-primary {
  font-size: 1.05rem;
}

.theory-demo-banner {
  background: linear-gradient(135deg, #1a5f4a 0%, #27ae60 100%);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.theory-demo-banner a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
.theory-demo-cta-bar {
  margin-top: 24px;
  padding: 18px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #f0d78c;
}

/* Дашборд ученика — прогресс MVP */
.progress-card {
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f0fa 100%);
  border-radius: 12px;
  padding: 18px;
  margin-top: 12px;
}
.progress-card-title { margin: 0 0 10px; font-size: 1.05rem; color: #1a5f4a; }
.progress-score-line { margin: 0 0 12px; font-size: 1rem; }
.progress-bar-wrap {
  background: #e0e8e4;
  border-radius: 10px;
  height: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a5f4a, #27ae60);
  border-radius: 10px;
  transition: width 0.4s ease;
}
.progress-meta { margin: 4px 0 0; font-size: 0.9rem; color: #555; }
.dash-section h3 { font-size: 1rem; color: #1a5f4a; margin-bottom: 10px; }
.topic-list { list-style: none; padding: 0; margin: 0; }
.topic-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #f5f5f5;
  font-size: 0.9rem;
}
.topic-item--in_progress { background: #fff8e6; border-left: 3px solid #e67e22; }
.topic-item--done { background: #f0faf4; border-left: 3px solid #27ae60; }
.topic-status { color: #666; white-space: nowrap; }
.hw-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fafafa;
}
.hw-card--done { opacity: 0.85; background: #f0faf4; }
.hw-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.hw-topic { font-size: 0.8rem; color: #1a5f4a; }
.hw-desc { margin: 6px 0; font-size: 0.9rem; color: #444; }
.hw-meta { font-size: 0.85rem; color: #888; margin: 0 0 8px; }
.hw-done { color: #27ae60; font-weight: 600; font-size: 0.9rem; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

.site-header .nav-theory-btn {
  text-decoration: none;
  white-space: nowrap;
}

.dash-theory-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 8px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #c5ddd2;
  background: linear-gradient(135deg, #e8f5ef 0%, #f4faf7 100%);
  box-shadow: 0 2px 8px rgba(26, 95, 74, 0.08);
}
.dash-theory-card__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #1a5f4a;
}
.dash-theory-card__desc {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.45;
  max-width: 520px;
}

.theory-body table.theory-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.theory-body table.theory-table th,
.theory-body table.theory-table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  text-align: left;
}
.theory-body table.theory-table th {
  background: #f0f7f4;
  color: #1a5f4a;
  font-weight: 600;
}

.q-text img.q-img,
.question-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 6px;
}

/* ——— Теория ——— */
.theory-layout,
.theory-admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}
.theory-layout.theory-layout--content-only {
  display: block;
  max-width: none;
  margin: 0;
  min-height: calc(100vh - 64px);
}
body.theory-page .theory-layout.theory-layout--content-only .theory-main {
  max-width: none;
  width: 100%;
  margin: 0;
  background: #fff;
}
.theory-sidebar {
  background: rgba(255, 255, 255, 0.97);
  padding: 20px 16px;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
}
.theory-sidebar-title {
  font-weight: 700;
  color: #1a5f4a;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.theory-main {
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
}

/* Теория: компоновка урока как в макете (контент + правый сайдбар) */
.theory-lesson-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.theory-lesson-aside {
  position: sticky;
  top: 18px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
  isolation: isolate;
}

.theory-aside-card {
  border: 1px solid #e2ebe6;
  border-radius: 14px;
  background: #fff;
  padding: 12px 12px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.theory-aside-card__title {
  margin: 0 0 10px;
  font-weight: 800;
  color: #1f2937;
}

.theory-toc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theory-toc a {
  text-decoration: none;
  color: #1a5f4a;
  border: 1px solid #e7f2ec;
  background: #fafdfb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  line-height: 1.25;
}

.theory-toc a:hover {
  background: #eef6f2;
  border-color: #7aba9a;
}

/* Оглавление урока под заголовком */
.theory-lesson-toc-wrap {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #e2ebe6;
  border-radius: 12px;
  background: #fafdfb;
}
.theory-lesson-toc-wrap__title {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 0.88rem;
  color: #1f2937;
}
.theory-toc--under-title {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.theory-toc--under-title a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.82rem;
  line-height: 1.3;
  border-radius: 999px;
  white-space: normal;
  max-width: 100%;
}
.theory-toc--under-title .hint-text {
  margin: 0;
  font-size: 0.85rem;
}

@media (min-width: 1100px) {
  .theory-lesson-grid:not(.theory-lesson-grid--read-mode) {
    grid-template-columns: 1fr 280px;
    gap: 16px;
  }
}
@media (max-width: 1280px) {
  .theory-lesson-grid:not(.theory-lesson-grid--read-mode) {
    grid-template-columns: 1fr;
  }
  .theory-lesson-aside {
    position: static;
    top: auto;
  }
}

/* Теория: сворачиваемое дерево КЭС */
.theory-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.theory-sidebar-head .theory-sidebar-title {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}
.theory-sidebar-toggle {
  flex: 0 0 auto;
  border: 1px solid #d4e8df;
  background: #fafdfb;
  color: #1a5f4a;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
}
.theory-sidebar-toggle:hover {
  background: #eef6f2;
  border-color: #7aba9a;
}
.theory-sidebar-rail {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.theory-layout--sidebar-collapsed .theory-sidebar-rail {
  display: flex;
}
.theory-layout--sidebar-collapsed .theory-sidebar-nav,
.theory-layout--sidebar-collapsed .theory-sidebar-head .theory-sidebar-title {
  display: none;
}
.theory-layout--sidebar-collapsed .theory-sidebar-head {
  justify-content: center;
  margin-bottom: 6px;
}
.theory-layout--sidebar-collapsed .theory-sidebar {
  padding: 12px 6px;
}
.theory-layout--sidebar-collapsed {
  grid-template-columns: 52px 1fr;
}
.theory-sidebar-rail__btn {
  width: 100%;
  border: 1px solid #d4e8df;
  background: #fafdfb;
  color: #1a3d33;
  border-radius: 8px;
  padding: 8px 4px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.theory-sidebar-rail__btn:hover {
  background: #eef6f2;
}
.theory-sidebar-rail__btn.is-active {
  background: #d4ede4;
  border-color: #7aba9a;
}

/* Теория: шапка урока и режим чтения */
.theory-lesson-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.theory-lesson-head h2 {
  margin: 0;
  flex: 1 1 280px;
  min-width: 0;
}
.theory-lesson-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}
.theory-lesson-grid--read-mode {
  grid-template-columns: 1fr !important;
}
.theory-lesson-grid--read-mode .theory-lesson-aside {
  display: none !important;
}
.theory-lesson-grid--read-mode .theory-body {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
body.theory-read-mode.theory-layout--sidebar-collapsed,
body.theory-read-mode .theory-layout {
  grid-template-columns: 1fr;
}
body.theory-read-mode .theory-sidebar {
  display: none;
}

/* Обзор раздела */
.theory-lesson-grid--section-overview .theory-btn-back-topics {
  display: none;
}

/* Блок «Проверка знаний»: 4 кнопки + мини-отчёт */
.theory-quiz-panel__hint {
  font-size: 0.85rem;
  line-height: 1.35;
  margin: 0 0 12px !important;
}
.theory-quiz-panel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
}
.theory-quiz-panel__actions {
  flex: 1 1 220px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}
.theory-quiz-panel__variant {
  border: 1px solid #e2ebe6;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fafdfb;
}
.theory-quiz-panel__variant-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.88rem;
  color: #1f2937;
}
.theory-quiz-panel__variant-sub {
  margin: 2px 0 8px;
  font-size: 0.78rem;
  color: #6b7280;
}
.theory-quiz-panel__btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theory-quiz-panel__stats {
  flex: 0 0 148px;
  min-width: 132px;
  border: 1px solid #d4e8df;
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(160deg, #f4fbf7 0%, #fff 100%);
}
.theory-quiz-stats__scope {
  margin: 0 0 6px;
  font-size: 0.7rem;
  color: #6b7280;
  line-height: 1.3;
}
.theory-quiz-stats__title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a5f4a;
}
.theory-quiz-stats {
  margin: 0;
  padding: 0;
}
.theory-quiz-stats__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #e8f0ec;
}
.theory-quiz-stats__row:last-of-type {
  border-bottom: none;
}
.theory-quiz-stats__row dt {
  margin: 0;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
}
.theory-quiz-stats__row dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1f2937;
  text-align: right;
}
.theory-quiz-stats__of {
  font-weight: 500;
  font-size: 0.75rem;
  color: #6b7280;
}
.theory-quiz-stats__meta {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: #6b7280;
}
.theory-quiz-panel .theory-quiz-badge {
  margin-top: 10px;
  width: 100%;
}
@media (max-width: 720px) {
  .theory-quiz-panel__actions {
    grid-template-columns: 1fr;
  }
  .theory-quiz-panel__stats {
    flex: 1 1 100%;
  }
}

.theory-nav-section { margin-bottom: 10px; }
.theory-nav-block {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d4e8df;
  background: #fafdfb;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
  color: #1a3d33;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.theory-nav-block:hover {
  background: #eef6f2;
  border-color: #7aba9a;
}
.theory-nav-block--expanded {
  background: #eef6f2;
  border-color: #7aba9a;
}
.theory-nav-block--active {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
}
.theory-section-subtopics {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}
.theory-section-subtopics h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.theory-section-subtopics__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.theory-section-subtopics__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.theory-section-subtopics__link {
  color: #0d6b4a;
  font-weight: 600;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.theory-section-subtopics__link:hover {
  text-decoration: underline;
}
.theory-section-subtopics__score {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
}
.theory-nav-chevron {
  flex-shrink: 0;
  font-size: 0.62rem;
  line-height: 1.6;
  opacity: 0.65;
  width: 12px;
}
.theory-nav-block__label { flex: 1; min-width: 0; }
.theory-nav-lessons--nested {
  list-style: none;
  padding: 4px 0 10px 0;
  margin: 0 0 0 14px;
  border-left: 2px solid #b8dcc8;
}
.theory-nav-lesson-row--nested {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 2px 8px;
}
.theory-nav-lesson--nested {
  flex: 1;
  min-width: 0;
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
  color: #2c4a42;
  cursor: pointer;
}
.theory-nav-lesson--nested:hover { background: #e8f3ed; }
.theory-nav-lesson--nested.theory-nav-lesson--active {
  background: #d4ede4;
  font-weight: 600;
  color: #1a3d33;
}
.theory-nav-score {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid #d0ddd6;
  background: #f8faf9;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2c5282;
  cursor: pointer;
  line-height: 1.2;
}
.theory-nav-score:hover { background: #eef6f2; border-color: #7aba9a; }
.theory-nav-score--pass { background: #f0faf4; color: #1a5f4a; border-color: #a8d5ba; }
.theory-nav-score--progress {
  background: #ecfdf5;
  color: #1a5f4a;
  border-color: #6ee7b7;
  cursor: default;
}
.theory-nav-score--read {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
  cursor: default;
  padding: 3px 7px;
}
.theory-nav-score--work {
  background: #fffbeb;
  color: #b45309;
  border-color: #fcd34d;
}
.theory-nav-empty {
  margin: 4px 0 8px 20px;
  font-size: 0.78rem;
  color: #888;
}
.theory-nav-section-head {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.theory-welcome-hint { max-width: none; }
.theory-section-topics { margin-top: 20px; }
.theory-topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.theory-topic-item { margin: 0; }
.theory-topic-card {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.theory-topic-card__main {
  flex: 1;
  text-align: left;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8e4;
  background: #fff;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #2c3e38;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.theory-topic-card__main:hover {
  border-color: #7aba9a;
  box-shadow: 0 2px 10px rgba(26, 95, 74, 0.08);
}
.theory-topic-card__text { display: block; }
.theory-topic-score {
  flex-shrink: 0;
  align-self: center;
  min-width: 52px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d0ddd6;
  background: #f8faf9;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2c5282;
  cursor: pointer;
}
.theory-topic-score:hover { background: #eef6f2; border-color: #7aba9a; }
.theory-topic-score--pass { background: #f0faf4; color: #1a5f4a; border-color: #a8d5ba; }
.theory-topic-empty { color: #888; margin: 0; }
.theory-kes-lesson-intro { margin-bottom: 16px; }
.theory-kes-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f5faf7;
  border-radius: 8px;
  border-left: 4px solid #3d8f6a;
}
.theory-nav-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 6px;
}
.theory-nav-lessons { list-style: none; padding: 0; margin: 0; }
.theory-nav-lesson {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #333;
}
.theory-nav-lesson:hover { background: #eef6f2; text-decoration: none; }
.theory-nav-lesson--active { background: #d4ede4; font-weight: 600; }
.theory-nav-lesson-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.theory-nav-lesson-row .theory-nav-lesson { flex: 1; min-width: 0; }
.btn-pencil {
  flex-shrink: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  opacity: 0.55;
}
.btn-pencil:hover,
.btn-pencil:focus {
  opacity: 1;
  background: #e8f5ee;
}
.theory-admin-mode .btn-pencil { opacity: 0.85; }
.theory-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.theory-title-row h2 { flex: 1; margin: 0; min-width: 0; }
.theory-lesson-edit-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.theory-admin-bar {
  background: #fff8e6;
  border: 1px solid #e6c84a;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.theory-admin-bar a { font-weight: 600; }
.theory-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.theory-edit-modal.hidden { display: none; }
.theory-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.theory-edit-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 20px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.theory-edit-modal__title { margin: 0 0 16px; font-size: 1.15rem; }
.theory-edit-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.theory-edit-field { margin-bottom: 14px; }
.theory-edit-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.theory-edit-field input[type="text"],
.theory-edit-field textarea {
  width: 100%;
  font: inherit;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}
.theory-edit-field--check { display: flex; align-items: center; gap: 8px; font-weight: normal; }
.theory-edit-modal__err { color: #c0392b; font-size: 0.9rem; margin-top: 10px; }
.theory-pass { color: #27ae60; font-weight: 700; }
.theory-pct { color: #888; font-size: 0.8rem; }
.theory-breadcrumb { font-size: 0.85rem; color: #888; margin-bottom: 8px; }
.theory-body {
  line-height: 1.65;
  color: #333;
  margin: 16px 0 24px;
  min-width: 0;
  overflow-x: auto;
}
.theory-body h3 { color: #1a5f4a; margin: 1em 0 0.5em; }
.theory-body ul, .theory-body ol { margin: 0.5em 0 1em 1.5em; }
.theory-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.theory-lesson-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.theory-next-nav {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8e4;
}
.theory-next-nav__label {
  font-size: 0.88rem;
  color: #666;
  margin: 0 0 10px;
}
.theory-next-nav__btn {
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}
.theory-quiz-badge {
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff8e6;
  color: #856404;
  cursor: pointer;
  border: 1px solid #e8d9a8;
  font: inherit;
}
.theory-quiz-badge:hover { filter: brightness(0.97); }
.theory-quiz-badge--pass { background: #f0faf4; color: #1a5f4a; border-color: #a8d5ba; }
.theory-history-summary { color: #555; margin: 8px 0 16px; line-height: 1.5; }
.theory-history-list { display: flex; flex-direction: column; gap: 8px; }
.theory-history-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #e2e8e4;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.theory-history-row:hover {
  border-color: #7aba9a;
  box-shadow: 0 2px 8px rgba(26, 95, 74, 0.06);
}
.theory-history-row--pass { border-left: 4px solid #27ae60; }
.theory-history-row--pending { cursor: default; background: #fafafa; }
.theory-history-row--pending:hover { box-shadow: none; border-color: #e2e8e4; }
.theory-history-row__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.theory-history-row__pct { font-weight: 700; font-size: 1.05rem; color: #2c3e50; }
.theory-history-row__score { color: #555; }
.theory-history-row__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #888;
}
.theory-history-row__hint { color: #2980b9; }
.theory-history-best {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a5f4a;
  background: #e8f5ee;
  padding: 2px 8px;
  border-radius: 10px;
}
.theory-history-pass {
  font-size: 0.75rem;
  color: #1a5f4a;
  font-weight: 600;
}
.theory-result-meta { font-size: 0.9rem; color: #888; margin-bottom: 8px; }
.theory-result-score { font-size: 1.4rem; margin-bottom: 12px; }
.theory-preview {
  margin-top: 20px;
  padding: 16px;
  border: 1px dashed #ccc;
  border-radius: 10px;
  background: #fafafa;
}
.theory-admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hint-text { font-size: 0.85rem; color: #888; margin: 4px 0 8px; }
.btn-link {
  background: none;
  border: none;
  color: #1a5f4a;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 4px;
}
.theory-fipi-quiz-block { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; min-width: 200px; }
.theory-fipi-hint { max-width: 44rem; margin: 0 !important; }

/* Теория: запуск мини-теста (упрощённая/обычная) */
.theory-quiz-launch {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}
.theory-quiz-launch__col {
  border: 1px solid #e2ebe6;
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f8faf9 0%, #fff 100%);
}
.theory-quiz-launch__title {
  margin: 0;
  font-weight: 800;
  color: #1f2937;
}
.theory-quiz-launch__sub {
  margin: 4px 0 10px;
  color: #6b7280;
  font-size: 0.9rem;
}
.theory-quiz-launch__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
@media (min-width: 900px) {
  .theory-quiz-launch {
    grid-template-columns: 1fr 1fr;
  }
}

/* Продающий результат диагностики */
.result-sales {
  background: linear-gradient(135deg, #f0f7f4 0%, #fff 100%);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #d4e8de;
}
.result-sales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.result-score-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.result-score-card--potential { border: 2px solid #1a5f4a; }
.result-label { font-size: 0.85rem; color: #666; margin: 0 0 6px; }
.result-score-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a5f4a;
  margin: 0;
  line-height: 1.2;
}
.result-score-unit { font-size: 1rem; font-weight: 600; }
.result-score-sub {
  font-size: 0.9rem;
  color: #555;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.readiness-wrap { margin: 12px 0; }
.readiness-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #444;
}
.result-sales-hint { color: #444; margin: 12px 0 8px; line-height: 1.5; }
.result-gaps, .result-plan-preview {
  margin-bottom: 20px;
}
.result-gaps h3, .result-plan-preview h3 {
  font-size: 1rem;
  color: #1a5f4a;
  margin-bottom: 10px;
}
.gap-list { margin: 0 0 10px 18px; color: #333; line-height: 1.5; }
.gap-loss { color: #c0392b; font-weight: 600; }
.main-gaps-line { margin-top: 8px; color: #444; }
.study-plan-list { margin: 0 0 0 20px; padding: 0; }
.study-plan-list li { margin-bottom: 10px; }
.plan-step-title { display: block; font-weight: 600; }
.plan-step-meta { display: block; font-size: 0.88rem; color: #666; }
.result-details { margin: 12px 0; }
.result-details summary { cursor: pointer; font-weight: 600; color: #1a5f4a; }
.result-details--plan .result-details__btn {
  display: inline-block;
  list-style: none;
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid #1a5f4a;
  background: #fff;
  font-size: 0.95rem;
}
.result-details--plan .result-details__btn::-webkit-details-marker { display: none; }
.result-details--plan .result-details__btn::marker { content: ''; }
.result-details--plan[open] .result-details__btn { margin-bottom: 12px; background: #f4faf7; }
.result-details--plan .result-details__body { padding-left: 2px; }
.result-review-wrap .result-review-inner { margin-top: 12px; }
/* История диагностик (гость) */
.diag-history { margin-bottom: 20px; }
.diag-history-title { margin: 0 0 6px; font-size: 1.05rem; color: #1a5f4a; }
.diag-history-hint { margin: 0 0 12px; font-size: 0.9rem; color: #666; line-height: 1.45; }
.diag-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.diag-history-card {
  flex: 1 1 200px;
  max-width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #d0e4da;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.diag-history-card:hover {
  border-color: #1a5f4a;
  box-shadow: 0 2px 8px rgba(26, 95, 74, 0.12);
}
.diag-history-card--active {
  border-color: #1a5f4a;
  background: #f0f7f4;
  box-shadow: 0 0 0 1px #1a5f4a;
}
.diag-history-card__label {
  display: block;
  font-weight: 700;
  color: #1a5f4a;
  font-size: 0.95rem;
}
.diag-history-card__score {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  color: #333;
}
.diag-history-card__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: #888;
}
.intro-history {
  margin: 16px 0 20px;
  padding: 14px;
  border-radius: 10px;
  background: #f8faf9;
  border: 1px solid #e0e8e4;
}
.intro-history-title { margin: 0 0 10px; font-weight: 600; color: #444; }
.diag-history-list--compact .diag-history-card { flex: 1 1 160px; }

.result-cta-block--prominent {
  margin: 20px 0;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid #1a5f4a;
  box-shadow: 0 4px 16px rgba(26, 95, 74, 0.08);
}
.result-details-area { margin-top: 8px; }
.result-details-stack { margin-top: 24px; }

.result-gaps-v2 { margin-top: 24px; }
.result-gaps-details { margin-bottom: 0; }
.result-gaps-details__btn {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid #d4a574;
  background: #fff;
  color: #8b5a2b;
  font-weight: 600;
  font-size: 0.95rem;
}
.result-gaps-details__btn::-webkit-details-marker { display: none; }
.result-gaps-details__btn::marker { content: ''; }
.result-gaps-details[open] .result-gaps-details__btn {
  margin-bottom: 12px;
  background: #fffaf4;
  border-color: #8b5a2b;
}
.result-gaps-details__body { padding-left: 2px; }
.gaps-lead { margin: 0 0 16px; color: #555; line-height: 1.5; font-size: 0.95rem; }
.gap-action-cards { display: flex; flex-direction: column; gap: 12px; }
.gap-action-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: #fffaf5;
  border: 1px solid #f0d9b8;
  border-left: 4px solid #e67e22;
}
.gap-action-card--ok {
  background: #f0f7f4;
  border-color: #c5e0d4;
  border-left-color: #27ae60;
}
.gap-action-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.gap-priority {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #e67e22;
  letter-spacing: 0.03em;
}
.gap-errors { font-size: 0.85rem; color: #666; }
.gap-action-title { margin: 0 0 8px; font-size: 1rem; color: #222; }
.gap-loss-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fdecea;
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 600;
}
.gap-steps {
  margin: 0;
  padding-left: 20px;
  color: #444;
  font-size: 0.9rem;
  line-height: 1.55;
}
.gap-do { margin: 0; color: #555; font-size: 0.95rem; line-height: 1.45; }

/* ЛК учителя */
.teacher-hint { color: #666; font-size: 0.9rem; margin-bottom: 12px; line-height: 1.45; }
.teacher-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.teacher-students-list .student-row { width: 100%; text-align: left; margin-bottom: 8px; }
.teacher-student-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .teacher-student-grid { grid-template-columns: 1fr; } }
.teacher-card {
  background: #f8faf9; border: 1px solid #e0e8e4; border-radius: 10px; padding: 14px;
}
.teacher-card h3 { margin: 0 0 10px; font-size: 1rem; color: #1a5f4a; }
.hist-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 2px 8px; border-radius: 6px; margin-right: 6px;
}
.hist-never { background: #eee; color: #555; }
.hist-ok { background: #d4edda; color: #155724; }
.hist-bad { background: #fdecea; color: #c0392b; }
.tests-picker { max-height: 320px; overflow-y: auto; border: 1px solid #e8e8e8; border-radius: 8px; padding: 8px; }
.test-pick-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px;
  padding: 10px 8px; border-bottom: 1px solid #eee; cursor: pointer;
}
.test-pick-row:last-child { border-bottom: none; }
.test-pick-preview { flex: 1 1 200px; font-size: 0.88rem; color: #444; line-height: 1.35; }
.fipi-hw-card {
  border: 1px solid #e0e8e4; border-radius: 10px; padding: 14px; margin-bottom: 10px;
  background: #fff;
}
.fipi-hw-card--active { border-color: #1a5f4a; }
.site-footer-legal {
  text-align: center; padding: 20px; font-size: 0.85rem; color: #888;
  border-top: 1px solid #eee; margin-top: 40px;
}

.result-retake-bar {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f0f7f4;
  border: 1px solid #c5e0d4;
}
.result-retake-bar .btn { width: 100%; max-width: 360px; }
.result-retake-hint {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
}
.result-retake-inline {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e8e4;
}

.result-cta-block {
  background: #fff;
  border: 2px solid #1a5f4a;
  border-radius: 14px;
  padding: 20px;
  margin-top: 8px;
}
.result-cta-block h3 { margin: 0 0 8px; color: #1a5f4a; }
.result-cta-desc { color: #555; margin-bottom: 14px; line-height: 1.5; }
.cta-buttons { display: flex; flex-direction: column; gap: 10px; }
.claim-secondary {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #ccc;
}
.claim-secondary summary { cursor: pointer; color: #666; font-weight: 600; }

/* Блок «Сегодня» в ЛК ученика */
.today-card {
  background: linear-gradient(135deg, #1a5f4a 0%, #2d8f6f 100%);
  color: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.today-card-title { margin: 0 0 12px; font-size: 1.2rem; }
.today-topic { margin: 0 0 14px; opacity: 0.95; }
.today-steps { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.today-steps li { margin: 0; }
.today-card .btn-primary { background: #fff; color: #1a5f4a; }
.today-card .btn-primary:hover { background: #f0f7f4; }
.today-readiness { margin-top: 12px; }
.today-readiness span { font-size: 0.9rem; opacity: 0.9; }
.today-readiness strong { float: right; }
.today-meta { font-size: 0.85rem; opacity: 0.85; margin: 8px 0 0; clear: both; }
.today-card .progress-bar-wrap { background: rgba(255,255,255,0.25); margin-top: 8px; }
.today-card .progress-bar-fill { background: #fff; }

.parent-child-card .parent-report {
  margin-top: 10px;
  padding: 12px;
  background: #f8faf9;
  border-radius: 8px;
  font-size: 0.9rem;
}
.parent-report-meta { margin: 4px 0; color: #555; }
.parent-report-title { font-weight: 600; color: #1a5f4a; margin: 0 0 8px; }
.parent-weekly-list { margin: 0 0 10px 18px; color: #444; line-height: 1.45; }
.parent-week-actions { margin: 0 0 8px 18px; color: #333; line-height: 1.5; }
.parent-fipi-list { margin-top: 4px; }
.sync-failures-panel {
  margin-top: 16px;
  padding: 14px;
  background: #fff8f0;
  border-radius: 10px;
  border: 1px solid #f0d9b8;
}
.sync-failures-panel h4 { margin: 0 0 10px; color: #856404; font-size: 0.95rem; }
.sync-failure-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.88rem;
}
.sync-failure-row input[type="text"] {
  flex: 1;
  min-width: 120px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.result-block-tag {
  font-size: 0.95rem;
  color: #1a5f4a;
  margin-bottom: 12px;
}
.diag-block-picker { margin-bottom: 16px; }
.personal-practice-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;align-items:center;margin:18px 0;padding:18px;border:1px solid #cde8d8;border-radius:14px;background:#f2fbf6}.personal-practice-card strong{color:#123327;font-size:1.05rem}.personal-practice-card p{margin:5px 0 0;color:#607069;line-height:1.4}.personal-practice-card__reason{grid-column:1/-1;color:#087d43!important;font-weight:700}@media(max-width:700px){.personal-practice-card{grid-template-columns:1fr}.personal-practice-card .btn{width:100%}}
.diag-block-picker-title {
  font-weight: 600;
  color: #1a5f4a;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.diag-block-options { display: flex; flex-direction: column; gap: 8px; }
.diag-block-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid #e0e8e4;
  border-radius: 10px;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
}
.diag-block-option--active {
  border-color: #1a5f4a;
  background: #f0f7f4;
}
.diag-block-option input { margin-top: 4px; }
.diag-block-option-text { display: flex; flex-direction: column; gap: 2px; }
.diag-block-option-text small { color: #666; font-size: 0.85rem; }
.diag-block-option--btn {
  width: 100%;
  text-align: left;
  font: inherit;
  border: 2px solid #e0e8e4;
}
.diag-block-option--btn:hover {
  border-color: #1a5f4a;
  background: #f0f7f4;
}
.post-diag-followup {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}
.post-diag-followup__title {
  font-size: 1.15rem;
  margin: 0 0 14px;
}
.post-diag-followup__label {
  font-weight: 600;
  margin: 0 0 10px;
  color: #444;
}
.diag-block-options--followup {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.diag-block-options--followup .diag-block-option--tile {
  width: 100%;
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  padding: 14px 12px;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  max-height: 140px;
  border-width: 2px;
  border-style: solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.diag-block-tile__icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}
.diag-block-options--followup .diag-block-option--tile:hover {
  border-color: var(--tile-accent, #1a5f4a);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.diag-block-options--followup .diag-block-option-text {
  width: 100%;
}
.diag-block-options--followup .diag-block-option-text strong {
  font-size: 0.95rem;
  line-height: 1.25;
}
.post-diag-followup__fipi-wrap {
  margin-top: 4px;
}
.post-diag-followup__fipi-hint {
  color: #555;
  font-size: 0.9rem;
  margin: 0 0 10px;
}
.post-diag-fipi-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #5c3d0a;
  background: linear-gradient(135deg, #fff9e6 0%, #fde68a 35%, #fcd34d 70%, #fbbf24 100%);
  border: 2px solid #d97706;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 4px 14px rgba(217, 119, 6, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.post-diag-fipi-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 8px 22px rgba(217, 119, 6, 0.35);
  color: #422006;
}
.post-diag-fipi-cta__ornament {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1;
}
.post-diag-fipi-cta__text {
  text-align: center;
  line-height: 1.3;
}

/* —— Карта подготовки (дерево) —— */
.route-map-page .route-map__title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: #1a5f4a;
}
.route-map-page .route-map__sub {
  margin: 0 0 16px;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.45;
}
.route-tree {
  margin: 20px 0 24px;
  padding: 20px 16px 8px;
  background: linear-gradient(180deg, #f4faf7 0%, #fff 40%);
  border-radius: 16px;
  border: 1px solid #d4ebe2;
}
.route-trunk {
  text-align: center;
  max-width: 320px;
  margin: 0 auto 0;
  padding: 16px;
  background: #fff;
  border-radius: 14px;
  border: 2px solid #1a5f4a;
  box-shadow: 0 4px 16px rgba(26, 95, 74, 0.12);
}
.route-tree-art {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 8px;
}
.route-trunk__crown { font-size: 2rem; line-height: 1; }
.route-trunk__score {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a5f4a;
  margin: 6px 0;
}
.route-trunk__score span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
}
.route-trunk__bar {
  height: 8px;
  background: #e8f0ec;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}
.route-trunk__fill {
  height: 100%;
  background: linear-gradient(90deg, #1a5f4a, #2d8f6f);
  border-radius: 4px;
}
.route-trunk__goal,
.route-trunk__stat {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #444;
}
.route-stem {
  width: 4px;
  height: 28px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1a5f4a, #86b09a);
  border-radius: 2px;
}
.route-branches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.route-leaf {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 2px solid transparent;
  min-height: 72px;
}
.route-leaf--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.route-leaf--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}
.route-leaf--weak { box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.35); }
.route-leaf--none { opacity: 0.92; }
.route-leaf--none .route-leaf__meta { font-style: italic; color: #888; }
.route-leaf__icon { font-size: 1.5rem; flex-shrink: 0; }
.route-leaf__body { flex: 1; min-width: 0; }
.route-leaf__label {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.3;
}
.route-leaf__meta {
  display: block;
  font-size: 0.78rem;
  color: #555;
  margin-top: 2px;
}
.route-leaf__tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #c0392b;
  background: #ffeaea;
  padding: 2px 6px;
  border-radius: 4px;
}
.route-leaf__go {
  color: var(--leaf-accent, #1a5f4a);
  font-weight: 700;
}
.route-map__cta { margin-top: 8px; }
.route-map__hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #777;
  text-align: center;
}
.prep-map-layout {
  max-width: 720px;
  margin: 0 auto;
}
.prep-map-benefits {
  margin: 0 0 20px 1.2em;
  color: #444;
  line-height: 1.55;
  font-size: 0.95rem;
}
.prep-map-start-btn {
  margin-bottom: 8px;
}
.route-tree--preview {
  opacity: 0.95;
  margin-top: 0;
  margin-bottom: 16px;
}
.route-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}
.route-map-actions .btn {
  flex: 1 1 200px;
}
.prep-map-history {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dce8e2;
}
.prep-map-history__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prep-map-history__detail {
  background: #fafdfb;
  border: 1px solid #d4ebe2;
  border-radius: 12px;
  padding: 16px;
}
.prep-map-detail__brief .result-sales {
  margin-bottom: 0;
}
.prep-map-detail__expand {
  margin-top: 14px;
}
.prep-map-detail__body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #c5d4cc;
}
.prep-map-detail__body .review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.prep-map-review__title {
  margin: 16px 0 8px;
  font-size: 1rem;
  color: #1a5f4a;
}
.theory-diag-quiz-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #eef8f3 0%, #e0f2eb 100%);
  border: 2px solid #1a5f4a;
  border-radius: 12px;
}
.theory-diag-quiz-banner__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #1a5f4a;
}
.theory-diag-quiz-banner__text {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
}
@media (max-width: 520px) {
  .route-branches { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .diag-block-options--followup {
    grid-template-columns: 1fr;
  }
  .diag-block-options--followup .diag-block-option--tile {
    aspect-ratio: auto;
    min-height: 72px;
    max-height: none;
  }
}

.result-review-link {
  font-weight: 600;
  color: #1a5f4a;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.result-review-link:hover { color: #0d3d2c; }
.diagnostic-review-page .result-review-inner { max-width: 720px; }

@media (max-width: 768px) {
  .theory-layout,
  .theory-admin-layout {
    grid-template-columns: 1fr;
  }
  .theory-sidebar { border-right: none; border-bottom: 1px solid #e0e0e0; max-height: 40vh; }
  .theory-sidebar-toggle { display: none; }
  .theory-layout--sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  .theory-layout--sidebar-collapsed .theory-sidebar-rail { display: none !important; }
  .theory-layout--sidebar-collapsed .theory-sidebar-nav,
  .theory-layout--sidebar-collapsed .theory-sidebar-head .theory-sidebar-title {
    display: block;
  }
}

/* —— Продуктовый маршрут: Сегодня + план —— */
.dash-welcome { color: #555; margin: 0 0 16px; font-size: 0.95rem; }
.today-card--hero {
  background: linear-gradient(135deg, #f0faf4 0%, #e8f4fc 100%);
  border: 1px solid #b8dcc8;
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 16px;
}
.today-hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a5f4a;
  margin: 0 0 8px;
}
.today-hero-topic { font-size: 1.35rem; font-weight: 700; color: #2c3e50; margin: 0 0 4px; }
.today-hero-lesson { color: #555; margin: 0 0 14px; font-size: 0.95rem; }
.today-steps-compact {
  margin: 0 0 14px 1.1em;
  color: #444;
  font-size: 0.9rem;
}
.today-steps-compact li { margin-bottom: 4px; }
.btn-lg { padding: 14px 20px; font-size: 1.05rem; }
.today-readiness--compact { margin-top: 14px; font-size: 0.85rem; color: #555; }
.today-readiness--compact .progress-bar-wrap { margin-top: 6px; }

.plan-tracker {
  background: #fff;
  border: 1px solid #e2e8e4;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.plan-tracker h3 { margin: 0 0 6px; font-size: 1rem; }
.plan-tracker-hint { color: #888; font-size: 0.85rem; margin: 0 0 12px; }
.plan-step-list { display: flex; flex-direction: column; gap: 6px; }
.plan-step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e8ece9;
  background: #fafafa;
  font: inherit;
  cursor: default;
}
button.plan-step { cursor: pointer; }
button.plan-step:hover { border-color: #7aba9a; background: #f5fbf8; }
.plan-step--current {
  border-color: #1a5f4a;
  background: #f0faf4;
  box-shadow: 0 0 0 1px #a8d5ba;
}
.plan-step--locked { opacity: 0.55; cursor: help; }
.plan-step--done { opacity: 0.85; }
.plan-step-num { flex-shrink: 0; font-weight: 700; color: #1a5f4a; min-width: 36px; }
.plan-step-name { flex: 1; font-size: 0.92rem; }
.plan-step-status { font-size: 0.8rem; color: #888; }

.progress-card--compact { margin-bottom: 16px; }
.progress-delta { font-size: 0.9rem; margin: 8px 0 0; }
.progress-delta--up { color: #1a5f4a; }
.progress-delta--down { color: #c0392b; }
.progress-delta--muted { color: #888; }
.progress-mini-goal { margin: 8px 0 0; font-size: 0.9rem; color: #2c5282; }
.progress-gap { color: #888; font-weight: normal; }

.dash-more {
  margin-top: 8px;
  border: 1px solid #e2e8e4;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafafa;
}
.dash-more summary { cursor: pointer; font-weight: 600; color: #444; }
.dash-more-inner { margin-top: 14px; }

.result-plan-start {
  background: linear-gradient(135deg, #f0faf4, #fff8e6);
  border: 2px solid #1a5f4a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.result-plan-start h3 { margin: 0 0 8px; color: #1a5f4a; }
.result-plan-start-desc { color: #444; margin: 0 0 16px; line-height: 1.5; }
.btn-plan-start { font-size: 1.1rem; }

.result-scenario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 640px) {
  .result-scenario { grid-template-columns: 1fr; }
}
.result-scenario-card {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e2e8e4;
}
.result-scenario-card--stagnation { background: #fff8f0; border-color: #e8d4b8; }
.result-scenario-card--growth { background: #f0faf4; border-color: #a8d5ba; }
.result-scenario-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 6px;
}
.result-scenario-card p { margin: 0; font-size: 0.92rem; line-height: 1.45; }

.topic-breakdown { margin: 16px 0; }
.topic-breakdown h3 { margin: 0 0 6px; font-size: 1rem; }
.topic-breakdown-hint { color: #888; font-size: 0.85rem; margin: 0 0 10px; }
.topic-breakdown-list { display: flex; flex-direction: column; gap: 6px; }
.topic-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8f9fa;
  font-size: 0.9rem;
}
.topic-breakdown-row--weak { background: #fff5f5; border-left: 3px solid #e74c3c; }
.topic-breakdown-pct { flex-shrink: 0; }

.option-check--sentence {
  display: block;
  margin-bottom: 10px;
  line-height: 1.45;
  font-size: 0.92rem;
}
.options-multi .option-check--sentence input {
  margin-top: 4px;
  vertical-align: top;
}

/* Обратная связь */
.feedback-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #1a5f4a;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feedback-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9001;
  background: rgba(0, 0, 0, 0.45);
}
.feedback-modal {
  position: fixed;
  z-index: 9002;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.feedback-modal__inner {
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}
.feedback-modal__inner h3 { margin: 0 0 8px; color: #1a5f4a; }
.feedback-modal__hint { color: #666; font-size: 0.9rem; margin: 0 0 8px; line-height: 1.45; }
.feedback-modal__page { font-size: 0.8rem; color: #999; margin: 0 0 12px; word-break: break-all; }
.feedback-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
}
body.feedback-modal-open { overflow: hidden; }
.feedback-admin-card {
  border: 1px solid #e2e8e4;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fafafa;
}
.feedback-admin-card--new { border-left: 4px solid #e67e22; }
.feedback-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.feedback-admin-msg { white-space: pre-wrap; margin: 8px 0; line-height: 1.5; }
.feedback-admin-meta { font-size: 0.85rem; color: #888; }
.feedback-admin-actions { display: flex; gap: 8px; margin-top: 10px; }

.theory-plan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #e8f5ee;
  border: 1px solid #a8d5ba;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1a5f4a;
}

.theory-plan-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.theory-plan-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theory-lesson-aside--highlight {
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.45);
  border-radius: 12px;
  transition: box-shadow 0.3s ease;
}

.rubric-card {
  margin: 12px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #d0dce8;
  border-radius: 10px;
  border-left: 4px solid #3498db;
}
.rubric-card__title { margin: 0 0 8px; font-size: 1rem; color: #2c3e50; }
.rubric-hint-wrong { color: #c0392b; font-size: 0.92rem; margin: 0 0 8px; }
.rubric-expert {
  margin: 0 0 14px;
  padding: 12px 14px;
  line-height: 1.5;
  font-size: 0.98rem;
  background: #fff;
  border: 1px solid #c8dde8;
  border-radius: 8px;
}
.rubric-expert strong { display: block; margin-bottom: 4px; color: #1a5f4a; }
.rubric-mistakes-block { margin: 14px 0 8px; }
.rubric-mistakes-title { margin: 0 0 4px; font-size: 0.92rem; font-weight: 600; color: #555; }
.rubric-mistakes { margin: 4px 0 0 18px; font-size: 0.88rem; line-height: 1.45; color: #555; }
.rubric-self-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 4px; align-items: center; }
.rubric-self-btns .answer-hint { flex: 1 1 100%; margin: 0 0 4px; }
.rubric-criteria {
  margin: 12px 0 0;
  padding: 8px 10px;
  background: transparent;
  border: 1px dashed #d5dde5;
  border-radius: 6px;
  color: #6b7280;
}
.rubric-criteria__summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  list-style: none;
}
.rubric-criteria__summary::-webkit-details-marker { display: none; }
.rubric-criteria__summary::before { content: '▸ '; }
.rubric-criteria[open] > .rubric-criteria__summary::before { content: '▾ '; }
.rubric-criteria__lead { margin: 8px 0 6px; font-size: 0.82rem; color: #7a8490; }
.rubric-criteria__list { margin: 0; padding-left: 1.2rem; font-size: 0.82rem; line-height: 1.4; color: #6b7280; }
.rubric-criterion { margin-bottom: 6px; }
.rubric-criterion__checks { margin: 4px 0 0; padding-left: 1.1rem; color: #8a939c; font-size: 0.8rem; }
.rubric-criteria__sum { margin: 6px 0 0; font-size: 0.78rem; color: #8a939c; }
.rubric-expert__body { margin-top: 6px; line-height: 1.55; font-size: 0.95rem; color: #1f2933; }
.scenario-intro { color: #555; font-size: 0.95rem; margin-bottom: 12px; line-height: 1.45; }
.scenario-progress-label { font-size: 0.88rem; color: #777; margin-bottom: 10px; }
.scenario-step-layout { display: flex; flex-wrap: wrap; gap: 16px; }
.scenario-step-layout .question-box { flex: 1; min-width: 260px; }

.gaps-map-row--pulse {
  animation: gap-pulse 1.8s ease-in-out infinite;
  border-left-width: 4px;
}
@keyframes gap-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(192, 57, 43, 0); }
}

.competency-trail { margin: 16px 0; padding: 14px; background: #f8fafc; border-radius: 10px; border: 1px solid #dde4ec; }
.comp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.comp-chip { font-size: 0.78rem; padding: 4px 8px; border-radius: 6px; background: #e8ecf0; color: #555; }
.comp-chip--done { background: #d5f0e0; color: #1a5f4a; }
.comp-chip--open { background: #dceefb; color: #1a5276; }
.comp-chip--lock { opacity: 0.5; }
.comp-next-hint { font-size: 0.88rem; color: #666; margin: 8px 0; }

.result-insights { margin: 14px 0 0; }
.result-insights-sub {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #555;
}
.result-insights .result-forecast { margin-top: 0; }
.result-weak-block { margin-top: 14px; }
.result-weak-label {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #922b21;
  line-height: 1.35;
}
.result-weak-hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #777;
  line-height: 1.35;
}
.result-gaps-link { margin-top: 14px; }
.result-insights .result-weak-list { margin-bottom: 0; }

.diagnostic-gaps-page .gaps-page-title {
  font-size: 1.35rem;
  margin: 0 0 8px;
  color: #1a5f4a;
}
.diagnostic-gaps-page .gap-action-cards { margin-top: 16px; }
.gap-plan-route {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.45;
}

.ege-tomorrow-card {
  margin: 14px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fff5f0 0%, #fff 60%);
  border: 1px solid #e8c4b8;
  border-radius: 10px;
  border-left: 4px solid #c0392b;
}
.ege-tomorrow-card__title { margin: 0 0 6px; font-size: 1.05rem; color: #922b21; }
.ege-tomorrow-card__sub { margin: 0 0 8px; font-size: 0.92rem; line-height: 1.45; }
.ege-tomorrow-card__cta { margin: 0; font-size: 0.9rem; }
.ege-tomorrow-plan { margin: 8px 0 0 18px; font-size: 0.9rem; }

/* Поделиться результатом пробного ЕГЭ (ФИПИ) */
.result-share-wrap.hidden {
  display: none;
}

.ege-share-card {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 2px solid #4a76a8;
  background: linear-gradient(145deg, #f0f6fc 0%, #fff 55%);
  box-shadow: 0 4px 18px rgba(74, 118, 168, 0.12);
}

.ege-share-card__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #2c4a6e;
}

.ege-share-card__lead {
  margin: 0 0 10px;
  color: #374151;
  line-height: 1.5;
  font-size: 0.95rem;
}

.ege-share-card__vk {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.ege-share-card__vk a {
  color: #4a76a8;
  font-weight: 600;
}

.ege-share-preview {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dbe4ef;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1f2937;
  max-height: 160px;
  overflow: auto;
}

.ege-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ege-share-btn--vk {
  background: #4a76a8;
  color: #fff;
  border: none;
  font-weight: 600;
}

.ege-share-btn--vk:hover {
  background: #3d6491;
  color: #fff;
}

.ege-share-hint {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #2d6a4f;
  min-height: 1.2em;
}

@media (max-width: 520px) {
  .ege-share-actions {
    flex-direction: column;
  }

  .ege-share-actions .btn {
    width: 100%;
  }
}

.ordering-wrap { margin: 12px 0; }
.ordering-list { list-style: none; padding: 0; margin: 12px 0; }
.ordering-moves { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.ordering-move {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  width: 28px;
  height: 24px;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1;
  border-radius: 4px;
  cursor: pointer;
}
.ordering-move:hover { background: #e2e8f0; }
.ordering-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  background: #fff; border: 1px solid #d0dce8; border-radius: 8px; cursor: grab;
  user-select: none;
}
.ordering-item--drag { opacity: 0.7; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.ordering-grip { color: #94a3b8; font-size: 1.1rem; flex-shrink: 0; }
.ordering-num {
  flex-shrink: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: #e0f2fe; color: #0369a1; font-weight: 700; font-size: 0.9rem; border-radius: 6px;
}
.ordering-text { flex: 1; line-height: 1.35; }
.ordering-hint { font-size: 0.88rem; color: #64748b; margin: 0 0 8px; line-height: 1.4; }
.ordering-preview { font-size: 0.88rem; color: #2d6a4f; font-weight: 600; margin: 8px 0 0; min-height: 1.2em; }

/* «Заполните таблицу» — выбор термина на каждый пропуск */
.term-fill { margin: 12px 0; }
.term-fill__hint { font-size: 0.88rem; color: #64748b; margin: 0 0 10px; line-height: 1.4; }
.term-fill__row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.term-fill__letter {
  flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: #e0f2fe; color: #0369a1; font-weight: 700; border-radius: 6px;
}
.term-fill__select {
  flex: 1; min-width: 0; padding: 9px 10px; font: inherit; line-height: 1.3;
  border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #1f2937;
}
.term-fill__select:focus { outline: 2px solid #38bdf8; outline-offset: 1px; border-color: #38bdf8; }
.term-fill__preview { font-size: 0.88rem; color: #2d6a4f; font-weight: 600; margin: 8px 0 0; min-height: 1.2em; }

/* выбор прямо в ячейке таблицы вопроса, рядом с бейджем А/Б/В */
.term-fill__select--inline {
  display: block; margin-top: 6px; width: 100%; max-width: 260px;
  padding: 6px 8px; font-size: 0.9rem;
}
.q-text .q-blank + .term-fill__select--inline { margin-left: 0; }

/* «Установите соответствие» — категория на каждую позицию */
.mgrid { margin: 12px 0; }
.mgrid__hint { font-size: 0.88rem; color: #64748b; margin: 0 0 8px; line-height: 1.4; }
.mgrid__legend {
  font-size: 0.86rem; color: #334155; margin: 0 0 10px; padding: 8px 10px;
  background: #f1f5f9; border-radius: 8px; line-height: 1.5;
}
.mgrid__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 0; border-top: 1px solid #eef2f6;
}
.mgrid__row:first-of-type { border-top: 0; }
.mgrid__q { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 220px; min-width: 0; }
.mgrid__letter {
  flex-shrink: 0;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: #e0f2fe; color: #0369a1; font-weight: 700; border-radius: 6px;
}
.mgrid__char { line-height: 1.35; padding-top: 3px; }
.mgrid__select {
  flex: 0 0 auto; min-width: 160px; max-width: 100%; padding: 8px 10px; font: inherit; line-height: 1.3;
  border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #1f2937;
}
.mgrid__select:focus { outline: 2px solid #38bdf8; outline-offset: 1px; border-color: #38bdf8; }

/* вариант с кнопками (2–4 категории) */
.mgrid__opts { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.mgrid__opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid #cbd5e1; border-radius: 999px;
  background: #fff; color: #334155; font-size: 0.9rem; cursor: pointer; user-select: none;
}
.mgrid__opt input { position: absolute; opacity: 0; pointer-events: none; }
.mgrid__opt:hover { border-color: #94a3b8; }
.mgrid__opt:has(input:checked) {
  background: #0369a1; border-color: #0369a1; color: #fff; font-weight: 600;
}
.mgrid__opt:has(input:focus-visible) { outline: 2px solid #38bdf8; outline-offset: 2px; }
.mgrid--buttons .mgrid__opt span { white-space: nowrap; }

.mgrid__preview { flex-basis: 100%; font-size: 0.88rem; color: #2d6a4f; font-weight: 600; margin: 10px 0 0; min-height: 1.2em; }

.find-error-frags { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.find-error-frag {
  display: flex; gap: 10px; padding: 10px; border: 1px solid #ddd; border-radius: 8px; cursor: pointer;
}
.find-error-frag:has(input:checked) { border-color: #e67e22; background: #fff8f0; }
.find-error-picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.find-error-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; background: #fdebd0; border-radius: 6px; font-size: 0.85rem;
}
.find-error-type-select { margin: 8px 0; max-width: 220px; }

.term-bank {
  flex: 0 0 200px; padding: 10px; background: #f0f7ff; border-radius: 8px; border: 1px solid #b8d4f0;
}
.term-bank__title { font-size: 0.82rem; font-weight: 600; margin: 0 0 8px; color: #2c5282; }
.term-bank__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.term-chip {
  font-size: 0.78rem; padding: 4px 8px; border: 1px solid #90b8e0; background: #fff;
  border-radius: 6px; cursor: pointer;
}
.term-chip:hover { background: #dceefb; }

.teacher-heatmap-card .heatmap-row {
  padding: 10px 0; border-bottom: 1px solid #eee;
}
.heatmap-row__main { display: flex; justify-content: space-between; gap: 8px; font-size: 0.92rem; }
.heatmap-pct { color: #c0392b; font-weight: 600; }
.heatmap-bar { height: 6px; background: #eee; border-radius: 3px; margin: 6px 0 8px; overflow: hidden; }
.heatmap-bar__fill { height: 100%; background: linear-gradient(90deg, #e67e22, #c0392b); }

.why-followup-card { margin: 12px 0; padding: 12px; background: #f0f8ff; border-radius: 8px; border: 1px solid #b8d4f0; }
.why-opts label { display: block; margin: 6px 0; font-size: 0.92rem; }

.km-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.km-section { border: 1px solid #dde4ec; border-radius: 8px; overflow: hidden; }
.km-section--critical { border-color: #c0392b; animation: gap-pulse 2s ease-in-out infinite; }
.km-section--warn { border-color: #e67e22; }
.km-section--ok { border-color: #27ae60; }
.km-section__head { width: 100%; display: flex; justify-content: space-between; padding: 10px; background: #f8fafc; border: none; cursor: pointer; font-size: 0.85rem; }
.km-section__body { padding: 8px; }
.km-topic { display: block; width: 100%; text-align: left; margin: 4px 0; padding: 4px 6px; font-size: 0.78rem; border: 1px solid #eee; background: #fff; border-radius: 4px; cursor: pointer; }
.km-topic--critical { border-color: #e8b4b4; }

.punnett-table { border-collapse: collapse; margin: 12px 0; }
.punnett-table th, .punnett-table td { border: 1px solid #ccc; padding: 8px; text-align: center; }
.label-map-row { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; gap: 12px; }
.hotspot-wrap { position: relative; }
.hotspot-canvas { position: relative; min-height: 120px; background: linear-gradient(180deg, #ffeaea 0%, #fff 100%); border: 2px dashed #ccc; border-radius: 12px; }
.hotspot-btn { position: absolute; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #3498db; background: rgba(52,152,219,0.3); transform: translate(-50%, -50%); cursor: pointer; }
.hotspot-btn--on { background: #3498db; }
.trophy-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.trophy-badge { font-size: 0.85rem; padding: 4px 10px; background: #fff8e8; border-radius: 8px; border: 1px solid #e8d4a8; }
.marathon-card, .journal-card, .profile-settings { margin: 16px 0; padding: 14px; background: #fafafa; border-radius: 10px; border: 1px solid #eee; }
.journal-entry { font-size: 0.88rem; color: #555; border-left: 3px solid #a8d5ba; padding-left: 8px; margin: 6px 0; }

/* ——— Словарь ——— */
.dictionary-search-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}
.dictionary-search {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 14px;
  border: 1px solid #c8ddd4;
  border-radius: 8px;
  font-size: 0.88rem;
  box-sizing: border-box;
}
.dictionary-search:focus {
  outline: none;
  border-color: #1a5f4a;
  box-shadow: 0 0 0 2px rgba(26, 95, 74, 0.15);
}
.dictionary-term-list { max-height: 42vh; overflow-y: auto; }
.dictionary-definition p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2c3e50;
}
.dash-page-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #1a3d33;
}
.dash-page-hint {
  margin: 0 0 16px;
  max-width: 52em;
}
@media (max-width: 768px) {
  .dictionary-layout.theory-layout {
    grid-template-columns: 1fr;
  }
  .dictionary-sidebar {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    max-height: 40vh;
  }
}

/* —— Фокусная страница результата (пробный ЕГЭ / диагностика) —— */
.result-focused {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.result-focused__grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-focused__col > .result-hero,
.result-focused__col > .diag-thermo,
.result-focused__col > .diag-plan {
  margin: 0;
  height: 100%;
}

.result-hero {
  margin: 0 0 20px;
  padding: 28px 24px 24px;
  border-radius: 16px;
  text-align: center;
  color: #1f2937;
}
.result-hero--low {
  background: linear-gradient(160deg, #fee2e2 0%, #fecaca 45%, #fff5f5 100%);
  border: 1px solid #fca5a5;
}
.result-hero--mid {
  background: linear-gradient(160deg, #fef9c3 0%, #fde68a 45%, #fffbeb 100%);
  border: 1px solid #fcd34d;
}
.result-hero--high {
  background: linear-gradient(160deg, #d1fae5 0%, #a7f3d0 45%, #ecfdf5 100%);
  border: 1px solid #6ee7b7;
}
.result-hero__label {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.85;
}
.result-hero__score {
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.result-hero__unit {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.75;
}
.result-hero__meta {
  margin: 10px 0 0;
  font-size: 0.88rem;
  opacity: 0.7;
}

.result-hero__compare {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.result-hero__compare-lead {
  margin: 0;
}

.result-hero__compare-delta {
  font-weight: 700;
  white-space: nowrap;
}

.result-hero__compare-delta--up {
  color: #15803d;
}

.result-hero__compare-delta--down {
  color: #b45309;
}

.result-hero__compare-delta--flat {
  color: #64748b;
}

.result-hero__compare-topics {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-hero__compare-topic {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.result-hero__compare-topic--up {
  color: #166534;
}

.result-hero__compare-topic--down {
  color: #9a3412;
}

.result-hero__insight {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 500;
}

.result-hero__insight-lead {
  margin: 0 0 10px;
}

.result-hero__loss-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-hero__loss-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 8px;
}

.result-hero__loss-icon {
  flex-shrink: 0;
  line-height: 1.2;
}

.result-hero__loss-text {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}

.result-hero__loss-gain {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b45309;
  white-space: nowrap;
}

.result-primary-cta {
  margin: 24px 0 16px;
  text-align: center;
}
.result-primary-cta__btn {
  padding: 16px 20px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}
.result-primary-cta__hint {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #6b7280;
}

.result-footer-secondary {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}
.result-footer-secondary__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 8px;
}
.result-footer-link {
  font-size: 0.9rem;
  color: #1a5f4a;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.result-footer-link:hover { text-decoration: underline; }
.result-footer-link--btn { color: #4b5563; }

.result-footer-more {
  margin-top: 8px;
  text-align: left;
  font-size: 0.88rem;
}
.result-footer-more summary {
  cursor: pointer;
  color: #6b7280;
  text-align: center;
  list-style: none;
}
.result-footer-more summary::-webkit-details-marker { display: none; }

.result-all-errors {
  margin: 16px 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px 12px 12px;
  background: #fafafa;
}
.result-all-errors summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 4px;
  color: #374151;
}
.result-all-errors__body .diag-review { margin: 0; border: none; padding: 0; background: transparent; }
.result-all-errors__link { margin: 12px 0 0; font-size: 0.9rem; }

.result-panel--focused > h2,
.result-panel--focused .result-panel-legacy-nav { display: none; }
.result-panel--focused .result-actions,
.result-panel--focused .result-follow-up,
.result-panel--focused .result-details-area:empty { display: none; }
.result-history-collapsed {
  margin-top: 16px;
  font-size: 0.88rem;
  color: #6b7280;
}
.result-history-collapsed summary { cursor: pointer; text-align: center; }

.diag-plan__barBlocks {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: #6b7280;
}
.diag-plan__btn--primary {
  background: #1a5f4a !important;
  color: #fff !important;
  border-color: #1a5f4a !important;
}
.diag-plan__btn--primary:hover { background: #145a42 !important; }

/* Горизонтальная компоновка результата на ПК — всё в одном экране */
.result-detail-review {
  width: 100%;
  margin-top: 10px;
}

.result-detail-review__panel {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  max-height: min(65vh, 520px);
  overflow-y: auto;
}

.result-detail-review__panel[hidden] {
  display: none !important;
}

.result-focused--compact .result-focused__col--actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.result-focused--compact .result-primary-cta__btn,
.result-focused--compact .result-detail-review__toggle {
  width: 100%;
}

.result-primary-cta__save {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #6b7280;
  text-align: center;
}

.result-primary-cta__save a {
  color: #1a5f4a;
  font-weight: 500;
}

@media (min-width: 960px) {
  .result-focused__grid {
    display: grid;
    grid-template-columns: minmax(220px, 26%) minmax(260px, 34%) minmax(280px, 40%);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px 16px;
    align-items: stretch;
  }

  .result-focused--compact .result-focused__grid {
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr);
    grid-template-rows: auto auto;
  }

  .result-focused__col--score {
    grid-column: 1;
    grid-row: 1;
  }

  .result-focused--compact .result-focused__col--score {
    grid-column: 1;
    grid-row: 1;
  }

  .result-focused__col--forecast {
    grid-column: 2;
    grid-row: 1;
  }

  .result-focused--compact .result-focused__col--forecast {
    grid-column: 2;
    grid-row: 1;
  }

  .result-focused__col--plan {
    grid-column: 3;
    grid-row: 1;
  }

  .result-focused__col--actions {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    padding-top: 4px;
    border-top: 1px solid #e5e7eb;
  }

  .result-focused__col--actions .result-all-errors {
    flex: 1 1 220px;
    margin: 0;
    max-width: 360px;
  }

  .result-focused__col--actions .result-primary-cta {
    flex: 0 1 auto;
    margin: 0;
    text-align: left;
  }

  .result-focused__col--actions .result-primary-cta__btn {
    width: auto;
    min-width: 280px;
    display: inline-block;
  }

  .result-focused__col--actions .result-footer-secondary {
    flex: 1 1 200px;
    margin: 0;
    padding: 0;
    border: none;
    text-align: right;
  }

  .result-focused__col--actions .result-footer-secondary__links {
    justify-content: flex-end;
    margin: 0;
  }

  .result-focused__col--actions .result-footer-more {
    width: 100%;
    margin-top: 0;
  }

  .result-hero {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .result-hero__score {
    font-size: 3rem;
  }

  .result-hero__unit {
    display: inline;
    margin: 0 0 0 6px;
    font-size: 1.1rem;
  }

  .result-hero__insight {
    margin-top: 12px;
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .diag-thermo {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
  }

  .diag-thermo__track {
    margin-bottom: 12px;
  }

  .diag-thermo__rows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .diag-thermo__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px;
  }

  .diag-thermo__val {
    font-size: 0.95rem;
    white-space: normal;
  }

  .diag-thermo__hint {
    margin-top: 10px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .diag-plan {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    max-height: min(72vh, 520px);
  }

  .diag-plan__head {
    font-size: 0.98rem;
  }

  .diag-plan__sub {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .diag-plan__list {
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
  }

  .diag-plan__row {
    padding: 8px 10px;
    gap: 8px;
  }

  .diag-plan__title {
    font-size: 0.88rem;
    flex-wrap: wrap;
  }

  .diag-plan__btn {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
}

@media (min-width: 1200px) {
  .result-focused {
    max-width: 1280px;
  }

  .result-focused__grid {
    grid-template-columns: 280px 1fr 380px;
    gap: 16px 20px;
  }
}

.ege-share-compact { margin-top: 12px; }

/* ═══ Результат теста: «следующий шаг подготовки» (переработка 2026) ═══ */
.result-focused--flow {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
/* поверх старой сеточной раскладки */
.result-focused--flow .result-focused__grid { display: block; }

.result-block {
  margin: 0;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid #e6ebe8;
  border-radius: 14px;
}
.result-block__title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #17352c;
}
.result-block__lead {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5b6b64;
}

/* 1. Главный результат — нейтральный, акцент результата зелёный */
.result-focused--flow .result-hero {
  margin: 0;
  padding: 26px 20px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d7e6dd;
  text-align: center;
  color: #1f2937;
}
.result-hero__label {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #6b7a73;
  opacity: 1;
}
.result-focused--flow .result-hero__score {
  margin: 0;
  font-size: clamp(2.9rem, 12vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #15803d;
}
.result-focused--flow .result-hero__unit {
  display: inline;
  margin-left: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #15803d;
  opacity: 0.85;
}
.result-hero__tasks {
  margin: 12px 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: #1f2937;
}
.result-focused--flow .result-hero__meta {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #8a978f;
  opacity: 1;
}

/* 2. Динамика */
.result-compare {
  margin: 16px auto 0;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #d7e6dd;
  background: #f4faf6;
}
.result-compare--down { border-color: #f0d9c0; background: #fdf6ee; }
.result-compare--flat { border-color: #e2e8f0; background: #f8fafc; }
.result-compare__headline {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #15803d;
}
.result-compare--down .result-compare__headline { color: #b45309; }
.result-compare--flat .result-compare__headline { color: #475569; font-size: 1rem; }
.result-compare__delta {
  margin: 4px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}
.result-compare__note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

/* 3. Что стало лучше / получается */
.result-strengths { border-color: #d7e6dd; background: #f7fcf9; }
.result-strengths__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.result-strengths__item {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1c3d33;
}
.result-strengths__item::before {
  content: "+";
  position: absolute;
  left: 4px;
  top: -1px;
  color: #16a34a;
  font-weight: 800;
}
.result-strengths__more {
  padding-left: 22px;
  font-size: 0.85rem;
  color: #6b7a73;
}

/* 4. Куда направить усилия */
.result-focus__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-focus__item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fbf6ef;
  border: 1px solid #f0e3cf;
}
.result-focus__icon { flex-shrink: 0; font-size: 1.1rem; line-height: 1; }
.result-focus__text { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 0.94rem; color: #6b4b16; }
.result-focus__gain {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a16207;
  white-space: nowrap;
}
.result-focus__more { margin: 12px 0 0; font-size: 0.88rem; }
.result-focus__more a { color: #1a5f4a; font-weight: 600; }

/* 5. Что делать дальше — центральный CTA */
.result-next {
  border: 1px solid #bfe3cd;
  background: linear-gradient(180deg, #f2fbf5 0%, #ffffff 70%);
}
.result-next__text {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #294b3f;
}
.result-next__btn {
  padding: 15px 20px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}
.result-next__chain {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #5b6b64;
  text-align: center;
}
.result-next__save {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #6b7a73;
  text-align: center;
}
.result-next__save a { color: #1a5f4a; font-weight: 600; }

/* 6/7. Прогноз — нейтральные цвета, зелёный акцент */
.result-focused--flow .diag-thermo {
  margin: 0;
  background: #fff;
  border: 1px solid #e6ebe8;
  border-radius: 14px;
  padding: 18px;
}
.diag-thermo__path {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 14px;
  font-weight: 800;
}
.diag-thermo__path-now { color: #475569; font-size: 1.15rem; }
.diag-thermo__path-plan { color: #15803d; font-size: 1.3rem; }
.diag-thermo__path-target { color: #0f766e; font-size: 1.15rem; }
.diag-thermo__path-arrow { color: #94a3b8; font-weight: 600; }
.diag-thermo__pin--now { background: #64748b !important; }
.diag-thermo__pin--plan { background: #16a34a !important; }
.diag-thermo__pin--target { background: #0f766e !important; }
.diag-thermo__row--now { border-left: 4px solid #94a3b8 !important; }
.diag-thermo__row--plan { border-left: 4px solid #16a34a !important; }
.diag-thermo__row--target { border-left: 4px solid #0f766e !important; }
.result-focused--flow .diag-thermo__rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}
.result-focused--flow .diag-thermo__row {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 9px 10px;
}
.result-focused--flow .diag-thermo__label { font-size: 0.78rem; color: #64748b; }
.result-focused--flow .diag-thermo__val { font-size: 1rem; white-space: normal; }
.diag-thermo__hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: #8a978f;
  line-height: 1.4;
}

/* Вторичное */
.result-secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-focused--flow .result-detail-review { margin: 0; }
.result-focused--flow .result-footer-secondary {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #e6ebe8;
  text-align: center;
}

@media (min-width: 700px) {
  .result-focused--flow { max-width: 680px; }
}

/* ——— Теория: урок для ученика (v2) ——— */
.theory-lesson-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
  color: #1a3d33;
}
.theory-reading-meta {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: #5a6b63;
}
.theory-hero-60s {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0faf4 0%, #e8f4fc 100%);
  border: 1px solid #b8dcc8;
}
.theory-hero-60s__title {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 1rem;
  color: #1a5f4a;
}
.theory-hero-60s__list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.45;
}
.theory-hero-60s__list li {
  margin: 6px 0;
}
.theory-section-title {
  margin: 24px 0 10px;
  font-size: 1.05rem;
  color: #1a5f4a;
}
.theory-block--plain,
.theory-block--defs,
.theory-block--example,
.theory-block--dont,
.theory-block--ege,
.theory-block--quiz {
  margin-bottom: 20px;
}
.theory-ege-sample {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fafdfb;
  border: 1px solid #e2ebe6;
}
.theory-ege-sample__label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6b63;
}
.theory-ege-sample__q {
  margin: 0 0 8px;
  line-height: 1.4;
}
.theory-ege-sample__breakdown {
  margin: 0;
  font-size: 0.92rem;
  color: #374151;
}
.theory-ege-trap {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.theory-ege-trap__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #92400e;
}
.theory-block--quiz {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid #e2ebe6;
}
.theory-quiz-launch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .theory-quiz-launch {
    grid-template-columns: 1fr;
  }
}
.theory-quiz-launch__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.95rem;
}
.theory-quiz-launch__sub {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #5a6b63;
}
.theory-quiz-launch__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.theory-quiz-stats--empty .theory-quiz-stats__cta {
  margin: 0;
  font-size: 0.85rem;
  color: #5a6b63;
}
.theory-quiz-stats__compact {
  margin: 8px 0 0;
  font-size: 0.88rem;
}
.theory-next-nav--card {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8faf9;
  border: 1px solid #e2ebe6;
}
.theory-next-nav__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.theory-next-nav__title {
  display: block;
  font-weight: 700;
  color: #1a5f4a;
  font-size: 1rem;
}
.theory-next-nav__desc {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: #5a6b63;
}
.theory-auto-lesson .theory-topic-list,
.theory-block--fipi {
  display: none !important;
}
.ege-share-compact__lead { margin: 0 0 10px; font-size: 0.88rem; color: #555; }
.ege-share-compact__actions { display: flex; flex-wrap: wrap; gap: 8px; }
