/* Дизайн-токены (цвета/шрифты/флюид-размеры) — в theme.css, шрифты — fonts/fonts.css.
   Здесь только компоновка и компоненты. Правило: цвета и размеры берём из var(--…),
   чтобы темы и флюид-масштаб работали везде. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--text-base);
  color: var(--fg); min-height: 100vh; min-height: 100dvh;
  background: var(--bg);
  background:
    radial-gradient(1100px 620px at 12% -10%, var(--glow-1), transparent 60%),
    radial-gradient(1000px 760px at 112% 4%, var(--glow-2), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Заголовки и интерфейсные элементы — шрифт Lora */
h1, h2, h3, h4, h5, .btn, button, input, select, textarea, .chip, .tab, .subtab, label { font-family: var(--font-display); }

/* Универсальное фокус-кольцо с клавиатуры */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm);
}

header {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line);
}
header h1 { font-size: var(--text-lg); margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand-logo { width: 92px; height: auto; object-fit: contain; }
.brand-abbr { color: var(--muted); font-weight: 400; font-size: var(--text-base); }
.badge { font-size: var(--text-xs); padding: 4px 10px; border-radius: 999px; background: var(--panel); color: var(--muted); }
.badge.ok { color: var(--ok); } .badge.err { color: var(--err); }

/* переключатель темы в шапке (прячется на браузерах без color-mix) */
/* Переключатель темы: кружочки цветов вместо слов */
#themePick { position: relative; display: flex; align-items: center; }
.theme-dot {
  width: 22px; height: 22px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid var(--line); flex: 0 0 auto;
  transition: transform .12s ease, border-color .12s ease;
}
.theme-dot:hover { transform: scale(1.15); border-color: var(--fg); }
.theme-dot.on { border-color: var(--fg); }
.dot-midnight { background: #6c7bff; }
.dot-emerald  { background: #3ddc84; }
.dot-rose     { background: #ff6b9d; }
.dot-amber    { background: #ffb454; }
.dot-daylight { background: #f3f0e9; }
#themeMenu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  display: flex; gap: 10px; background: var(--panel);
  padding: 10px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
#themeMenu[hidden] { display: none; }

/* Лайт-режим (запасной сервер без whisper): прячем весь голосовой ввод.
   Вкладка «Переводчик» целиком (NLLB+распознавание+синтез) тоже недоступна. */
body.lite #aiMic, body.lite #trMic, body.lite #recBtn,
body.lite #exRec, body.lite #qRec, body.lite #lnRec, body.lite #tRec,
body.lite .tab[data-tab="translator"] { display: none !important; }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); }
.tab {
  background: var(--panel); color: var(--muted); border: none;
  border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); cursor: pointer; font-size: var(--text-sm);
  transition: background .12s ease, color .12s ease;
}
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); background: var(--panel-2); }

main { padding: var(--space-4); max-width: 900px; margin: 0 auto; }
.panel { display: none; }
.panel.active { display: block; }
h2 { font-size: var(--text-lg); margin: 0 0 var(--space-3); font-weight: 700; letter-spacing: -.01em; }
h2, h3, h4, h5 { text-align: center; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-2) 0; }
label { font-size: var(--text-sm); color: var(--muted); display: flex; align-items: center; gap: 6px; }
select, textarea, input {
  background: var(--bg); color: var(--fg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: var(--space-2) 10px; font-size: var(--text-sm);
  max-width: 100%; min-width: 0;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { width: 100%; min-height: 70px; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  background: linear-gradient(160deg, var(--accent), var(--accent-2)); color: var(--on-accent);
  border: none; border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3);
  cursor: pointer; font-size: var(--text-sm); font-weight: 700; letter-spacing: .01em;
  max-width: 100%; white-space: normal;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.rec { background: linear-gradient(160deg, var(--err), #d23a59); color: #fff; }

.result { background: var(--panel); border: none; border-radius: var(--radius);
  padding: var(--space-3); font-size: var(--text-lg); min-height: 30px; margin-top: 10px;
  word-break: break-word; box-shadow: var(--shadow-sm); }
.muted { color: var(--muted); font-size: var(--text-sm); }
audio { width: 100%; margin-top: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-2); }
.stat { background: var(--panel); border: none; border-radius: var(--radius); padding: var(--space-3); box-shadow: var(--shadow-sm); }
.stat .num { font-size: var(--text-xl); font-weight: 700; }
.stat .lbl { font-size: var(--text-xs); color: var(--muted); margin-top: 4px; }

.list { background: var(--panel); border: none; border-radius: var(--radius); padding: 8px 0; max-height: 60vh; overflow: auto; box-shadow: var(--shadow-sm); }
.list .item { padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.list .item:last-child { border: none; }
.list .en { color: var(--fg); } .list .ru { color: var(--muted); }

.card {
  background: var(--panel);
  background: linear-gradient(165deg, var(--card-top), var(--panel));
  border: none; border-radius: var(--radius); padding: var(--space-4);
  overflow-wrap: break-word; box-shadow: var(--shadow);
}
.tagline { display: flex; gap: 8px; margin-bottom: 12px; }
.chip { font-size: var(--text-xs); font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--chip-bg); color: var(--accent); }
.exprompt { font-size: var(--text-base); color: var(--muted); margin-bottom: 8px; }
.exshow { font-size: var(--text-xl); font-weight: 600; margin-bottom: 14px; }
.opt { display: block; width: 100%; text-align: left; margin: 6px 0; background: var(--bg);
  border: 1px solid var(--line); color: var(--fg); border-radius: var(--radius-sm); padding: 10px; cursor: pointer;
  font-size: var(--text-sm); transition: border-color .12s ease, color .12s ease; }
.opt:hover { border-color: var(--accent); }
.opt.correct { border-color: var(--ok); color: var(--ok); }
.opt.wrong { border-color: var(--err); color: var(--err); }
.feedback { margin-top: 12px; font-weight: 600; }
.feedback.ok { color: var(--ok); } .feedback.err { color: var(--err); }

/* подсказка в упражнении */
.hint-wrap { margin: 8px 0 12px; }
.hint-btn { background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: var(--radius-sm); padding: 6px 12px; cursor: pointer; font-size: var(--text-xs); }
.hint-btn:hover { color: var(--accent); border-color: var(--accent); }
.hint-body { margin-top: 8px; color: var(--ok); font-size: var(--text-sm); }
.hint-words { color: var(--ok); font-size: var(--text-base); font-weight: 600; }
.ans-count { font-size: var(--text-xs); color: var(--muted); margin-bottom: 8px; }

/* «Собери предложение» — слова-кнопки */
.wb-bank { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wbuild { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 14px; cursor: pointer; font-size: var(--text-base); user-select: none; }
.wbuild:hover { border-color: var(--accent); color: var(--accent); }
.wbuild.used { text-decoration: line-through; color: var(--muted); opacity: .5; cursor: default; }
.wb-input { width: 100%; }

/* плавающий ИИ-ассистент (глобальный) */
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 4000;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(160deg, var(--accent), var(--accent-2)); color: var(--on-accent); font-size: 26px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.ai-fab:active { transform: scale(.95); }
.ai-panel { position: fixed; right: 20px; bottom: 88px; z-index: 4000;
  width: min(420px, calc(100vw - 40px)); background: var(--panel);
  border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px;
  box-shadow: 0 16px 44px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 10px;
  max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow: auto; }
.ai-head { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-sm); }
.ai-head .btn { padding: 4px 12px; }
.ai-panel .chat { min-height: 200px; max-height: 50vh; margin-bottom: 0; }

/* «Класс»: учитель (чат) слева + доска с заданием справа; один чат переезжает между
   плавающей панелью и левой колонкой (#chatUI реparent в dashboard.js) */
.class-layout { display: grid; grid-template-columns: minmax(280px, 380px) 1fr;
  gap: var(--space-3); align-items: start; }
.class-chat { background: var(--panel); border: none; border-radius: var(--radius);
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: 10px; min-width: 0; box-shadow: var(--shadow-sm); }
.chat-ui .row { margin: 0; gap: 8px; flex-wrap: nowrap; }
.chat-ui .row input { min-width: 0; }
.chat-ui .row .btn { flex: 0 0 auto; }   /* кнопки у поля ввода не растягиваем (и на мобильном) */
.class-chat-head { font-size: var(--text-sm); }
.chat-ui { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.class-chat .chat { min-height: 300px; max-height: 58vh; max-height: 58dvh;
  margin-bottom: 0; background: var(--bg); }
.class-chat .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.class-chat .chips .chip { border: 1px solid var(--line); cursor: pointer; }
.class-chat .chips .chip:hover { border-color: var(--accent); }
.class-board { min-width: 0; }
@media (max-width: 900px) {
  /* мобильный: доска сверху, чат под ней */
  .class-layout { grid-template-columns: 1fr; }
  .class-chat { position: static; order: 2; }
  .class-board { order: 1; }
  .class-chat .chat { min-height: 180px; max-height: 40vh; max-height: 40dvh; }
}

/* кликабельные слова + всплывающий перевод */
.interactive .w { cursor: pointer; border-bottom: 1px dotted transparent; }
.interactive .w:hover { border-bottom-color: var(--accent); color: var(--accent); }
.interactive .w.hl { background: var(--accent); color: var(--on-accent); border-radius: 4px; padding: 0 3px; }

/* Крупные иероглифы: для китайского/японского текст НА ИЗУЧАЕМОМ языке показываем
   большим (data-learn ставится в dashboard.js при выборе языка обучения). Русские
   подсказки/промпты (.exprompt, .muted, .hint-*) не трогаем — они остаются мелкими. */
html[data-learn="chinese"] .exshow,
html[data-learn="japanese"] .exshow { font-size: 40px; line-height: 1.4; }
html[data-learn="chinese"] .opt,
html[data-learn="japanese"] .opt { font-size: 26px; }
html[data-learn="chinese"] .wbuild,
html[data-learn="japanese"] .wbuild { font-size: 28px; padding: 10px 18px; }
html[data-learn="chinese"] .list .en,
html[data-learn="japanese"] .list .en { font-size: 30px; }
html[data-learn="chinese"] .en.interactive,
html[data-learn="japanese"] .en.interactive,
html[data-learn="chinese"] .exprompt.interactive,
html[data-learn="japanese"] .exprompt.interactive { font-size: 32px; line-height: 1.45; }
.btn.sub.on { background: var(--accent); color: var(--on-accent); }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.subtab { background: var(--panel); color: var(--muted); border: none; border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3); cursor: pointer; font-size: var(--text-sm);
  transition: background .12s ease, color .12s ease; }
.subtab:hover { color: var(--fg); }
.subtab.active { color: var(--fg); background: var(--panel-2); }
.subpanel { display: none; }
.subpanel.active { display: block; }
#wordPopup {
  position: fixed; z-index: 5000; background: var(--popup); color: var(--fg);
  border: 1px solid var(--accent); border-radius: var(--radius); padding: 12px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5); pointer-events: auto;
  max-width: min(320px, calc(100vw - 16px));
}
#wordPopup .wp-emoji { font-size: 34px; text-align: center; margin-bottom: 4px; }
#wordPopup .wp-src { font-size: var(--text-base); font-weight: 600; }
#wordPopup .wp-ipa { font-size: var(--text-xs); color: var(--muted); margin-top: 1px; }
#wordPopup .wp-tr { font-size: var(--text-base); color: var(--ok); margin-top: 2px; }
#wordPopup .wp-words { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; font-size: var(--text-xs); color: var(--muted); }
#wordPopup .wp-load { color: var(--muted); }
#wordPopup .wp-listen { background: none; border: none; cursor: pointer; font-size: 16px; padding: 0 4px; }
/* подсветка проверки произношения */
.sp-word { padding: 1px 3px; border-radius: 4px; }
.sp-word.ok { color: var(--ok); }
.sp-word.bad { color: var(--err); text-decoration: underline wavy var(--err); }
.sp-word.weak { color: var(--warn); }
.sp-score { font-size: var(--text-xl); font-weight: 700; margin: 6px 0; }

/* чат-урок */
.chat { background: var(--panel); border: none; border-radius: var(--radius);
  padding: 12px; min-height: 260px; max-height: 55vh; max-height: 55dvh;
  overflow: auto; margin-bottom: 12px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: var(--radius); font-size: var(--text-xs); line-height: 1.45; }
.msg.user { align-self: flex-end; background: var(--bubble-me); color: var(--bubble-me-fg); font-size: var(--text-xs); }
.msg.bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); font-size: var(--text-xs); }
.msg .act-btn { margin-top: 10px; width: 100%; }
.testres { font-size: 20px; font-weight: 700; margin: 10px 0; color: var(--ok); }

/* прогресс по навыкам (проценты) */
.skills { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.lvltag { font-size: var(--text-base); margin-bottom: 4px; }
.skillbar { background: var(--panel); border: none; border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow-sm); }
.sb-top { display: flex; justify-content: space-between; font-size: var(--text-xs); margin-bottom: 6px; text-transform: capitalize; }
.sb-track { height: 10px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.sb-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; transition: width .4s ease; }
.sb-fill.done { background: linear-gradient(90deg, var(--ok), #2bb56a); }

/* пояснение от ИИ под запущенным заданием (из чата) */
.ws-note { margin-top: 14px; background: var(--panel); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 12px 16px; overflow-wrap: break-word; }
.ws-note .wsn-head { font-size: var(--text-xs); color: var(--muted); display: block; margin-bottom: 6px; }

/* чип грамматики + модалка с правилами */
.chip.gram { cursor: pointer; background: #34284f; color: #c9a8ff; border: 1px solid #5a3f8a; }
.chip.gram:hover { background: #43356a; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: var(--bg2); border: 1px solid var(--accent); border-radius: var(--radius);
  width: 100%; max-width: 640px; max-height: 85vh; max-height: 85dvh;
  display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; }
.modal-head .btn { padding: 4px 12px; }
.modal-body { padding: 14px 18px; overflow: auto; }
.gm-topic { padding: 12px 0; border-bottom: 1px solid var(--line); }
.gm-topic:last-child { border: none; }
.gm-h { font-size: var(--text-base); font-weight: 600; margin-bottom: 4px; }
.gm-exp { font-size: var(--text-sm); margin: 6px 0; line-height: 1.5; }
.gm-topic .ex { font-size: var(--text-xs); margin-top: 4px; }
.gm-topic .ex .en.interactive { color: var(--fg); } .gm-topic .ex .ru { color: var(--muted); }

/* состояние загрузки (скелетон) */
.skeleton {
  background: linear-gradient(90deg, var(--skel-1), var(--skel-2), var(--skel-1));
  background-size: 200% 100%; border-radius: var(--radius-sm);
  animation: skeleton 1.4s ease-in-out infinite;
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* пустое состояние */
.empty { text-align: center; color: var(--muted); padding: var(--space-5) var(--space-4); }
.empty .emoji { font-size: var(--text-2xl); display: block; margin-bottom: var(--space-2); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ===================== МОБИЛЬНАЯ ВЁРСТКА ===================== */
/* Ничто не должно создавать горизонтальную прокрутку (из-за неё вкладки
   «съезжали» за экран). Ограничиваем ширину и прячем горизонтальный скролл. */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, canvas, iframe { max-width: 100%; height: auto; }

/* Вкладки: не режем — переносим на новые строки, помещаются всегда */
.tabs, .subtabs { flex-wrap: wrap; }

@media (max-width: 640px) {
  header { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  header h1 { font-size: 16px; gap: 8px; }
  .brand-logo { width: 56px; }
  .badge { font-size: 12px; }

  .tabs { padding: 8px 8px; gap: 6px; }
  .tab { padding: 7px 10px; font-size: 13px; }
  .subtab { padding: 7px 10px; font-size: 13px; }

  main { padding: 14px 12px; }
  h2 { font-size: 16px; }
  .card { padding: 16px 14px; }
  .exshow { font-size: 20px; }
  .result { font-size: 16px; padding: 14px; }
  .msg { max-width: 92%; }

  /* плавающий ИИ-помощник ближе к краю; чат раскрывается НА ВЕСЬ ЭКРАН */
  .ai-fab { right: 14px; bottom: 14px; }
  .ai-panel { top: 0; right: 0; bottom: 0; left: 0; width: auto;
    max-height: none; border-radius: 0; border: none;
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .ai-panel .chat-ui { flex: 1; min-height: 0; }
  .ai-panel .chat { flex: 1; max-height: none; min-height: 0; }

  /* Кнопки и селекты растягиваются по ширине ряда — ничего не вылезает,
     не остаётся обрезанных элементов на узком экране */
  .row .btn { flex: 1 1 auto; min-width: 0; }
  .row label { flex: 1 1 auto; min-width: 0; }
  .row label select { flex: 1; min-width: 0; }
  .row input[type="file"] { max-width: 100%; min-width: 0; }

  /* видео не выше половины экрана, чтобы кнопки под ним оставались видны */
  video { max-height: 50dvh !important; }
}

/* Безопасные зоны на телефонах с «чёлкой»/жестовой полосой (viewport-fit=cover) */
@supports (padding: max(0px)) {
  header { padding-top: max(10px, env(safe-area-inset-top)); }
  main { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .ai-fab { bottom: max(14px, env(safe-area-inset-bottom)); }
}

/* --- «Сообщить об ошибке»: кнопка + модальное окно --- */
.report-wrap { margin: 8px 0; }
.report-btn {
  background: transparent; border: 1px solid #d9736b; color: #d9736b;
  border-radius: var(--radius-sm); padding: 4px 10px; font-size: .82em; cursor: pointer;
}
.report-btn:hover { background: #d9736b; color: #fff; }
.report-modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px;
}
.report-box {
  background: var(--panel); color: var(--fg); width: 100%; max-width: 440px;
  border-radius: var(--radius); padding: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.report-title { font-weight: 700; font-size: 1.1em; margin-bottom: 14px; }
.report-opt { display: flex; align-items: center; gap: 8px; padding: 7px 0; cursor: pointer; }
.report-comment {
  width: 100%; min-height: 64px; margin: 10px 0; padding: 8px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm); resize: vertical; box-sizing: border-box;
  background: var(--bg); color: var(--fg);
}
.report-actions { display: flex; gap: 10px; justify-content: flex-end; }
.report-fb { margin-top: 10px; min-height: 1.2em; color: var(--ok); }

/* --- отрендеренный markdown в объяснениях ИИ --- */
.md p { margin: 5px 0; }
.md ul { margin: 5px 0; padding-left: 20px; }
.md li { margin: 2px 0; }
.md strong { font-weight: 700; }
.md code { background: rgba(127, 127, 127, .2); padding: 1px 5px; border-radius: 4px; font-size: .92em; }

/* кнопка премиума в шапке: активный премиум подсвечен */
#premiumBtn.on { border-color: var(--gold); color: var(--gold); }
.pm-buy { border-color: var(--gold); color: var(--gold); font-weight: 600; }
.pm-buy:hover { background: rgba(255, 207, 92, .12); }

/* --- режим эксперта: плашка вердикта на карточках заданий --- */
.expert-bar { display: none; }
body.expert .expert-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  margin-top: 8px; padding: 6px 8px; border: 1px dashed var(--accent); border-radius: var(--radius-sm); }
.exp-lbl { font-size: var(--text-xs); color: var(--muted); }
.exp-v, .exp-cat { background: transparent; border: 1px solid var(--muted); border-radius: 999px;
  color: var(--fg); padding: 2px 10px; font-size: var(--text-xs); cursor: pointer; }
.exp-v[data-v="ok"]:hover { border-color: #39d98a; color: #39d98a; }
.exp-v[data-v="meh"]:hover, .exp-v[data-v="meh"].on { border-color: var(--gold); color: var(--gold); }
.exp-v[data-v="bad"]:hover, .exp-v[data-v="bad"].on { border-color: #ff8a8a; color: #ff8a8a; }
.exp-detail { display: none; }
body.expert .exp-detail { display: block; margin-top: 6px; padding: 6px 8px;
  border: 1px dashed var(--muted); border-radius: var(--radius-sm); }
.exp-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.exp-cat.on { border-color: var(--accent); color: var(--accent); }
.exp-comment { width: 100%; min-height: 52px; margin: 4px 0; }

/* мягкий баннер премиума после серии выполненных упражнений */
.pm-nudge { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--accent);
  border-radius: var(--radius-sm); background: var(--chip-bg); font-size: var(--text-sm); }
.pm-nudge .btn { margin-left: 8px; }
