/* ===== Токены ===== */
:root {
  --bg: #1a1420;
  --surface: #241b2c;
  --surface-2: #2d2236;
  --line: rgba(243, 233, 221, 0.12);
  --line-strong: rgba(243, 233, 221, 0.22);
  --text: #f3e9dd;
  --text-muted: #b8a6ba;
  --pomegranate: #d6455a;
  --pomegranate-dim: #7a2c3a;
  --apricot: #e8a33d;
  --apricot-dim: #a97633;
  --good: #6fae8a;
  --radius: 14px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-arm: 'Noto Serif Armenian', Georgia, serif;
  --font-ui: 'Inter', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(214,69,90,0.12), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 100%, rgba(232,163,61,0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--pomegranate); color: #fff; }
.hidden { display: none !important; }
.arm { font-family: var(--font-arm); }

/* ===== Каркас ===== */
.app-shell { display: flex; min-height: 100vh; }

.sidenav {
  width: 210px; flex-shrink: 0;
  padding: 26px 14px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100vh;
}
.nav-spacer { flex: 1; }

.brand { display: flex; align-items: baseline; gap: 9px; margin-bottom: 26px; padding: 0 10px; }
.brand-glyph { font-family: var(--font-arm); font-size: 28px; color: var(--pomegranate); line-height: 1; }
.brand-text { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: .02em; }

.nav-link {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--text-muted); font-size: 14.5px; font-weight: 500;
  border: none; background: none; width: 100%; text-align: left; cursor: pointer;
}
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--surface-2); color: var(--apricot); }
.nav-link-muted { font-size: 13px; opacity: .75; }
.nav-sep { height: 1px; background: var(--line); margin: 12px 6px; }

.content { flex: 1 1 auto; padding: 38px 44px 90px; }
.content-inner { max-width: 940px; margin: 0 auto; width: 100%; }
.mobilenav { display: none; }

@media (max-width: 820px) {
  .sidenav { display: none; }
  .content { padding: 20px 16px 80px; }
  .mobilenav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--line); z-index: 20;
  }
  .mobilenav a { flex: 1; text-align: center; padding: 12px 0 10px; font-size: 12.5px; color: var(--text-muted); }
  .mobilenav a.active { color: var(--apricot); }
}

/* ===== Типографика ===== */
h1 { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin: 0 0 6px; }
h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.sub { color: var(--text-muted); font-size: 14px; margin: 0; }
.hint { color: var(--text-muted); font-size: 12.5px; }
.error-msg { color: var(--pomegranate); font-size: 14px; margin: 10px 0; }
.empty { color: var(--text-muted); padding: 50px 0; text-align: center; }
.back-link { color: var(--text-muted); font-size: 13px; display: inline-block; margin-bottom: 18px; }
.back-link:hover { color: var(--text); }
.link-quiet { color: var(--text-muted); font-size: 13px; }
.link-quiet:hover { color: var(--apricot); }
.saved-note { color: var(--good); font-size: 12.5px; }

.seed-divider {
  height: 10px; margin: 22px 0;
  background-image: radial-gradient(var(--pomegranate-dim) 1.5px, transparent 1.5px);
  background-size: 10px 10px; opacity: .55;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--text); cursor: pointer; font-weight: 600; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--apricot); }
.btn-primary { background: var(--pomegranate); border-color: var(--pomegranate); color: #fff; }
.btn-primary:hover { background: #c23a4e; border-color: #c23a4e; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-ghost { background: transparent; }
.btn-good { background: var(--good); border-color: var(--good); color: #14281e; }
.btn-danger { color: var(--pomegranate); border-color: var(--pomegranate-dim); }
.btn-danger:hover { background: var(--pomegranate); color: #fff; border-color: var(--pomegranate); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.kbd {
  font-size: 11px; opacity: .55; border: 1px solid currentColor;
  border-radius: 4px; padding: 0 4px; font-weight: 500;
}

/* ===== Формы ===== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.field input[type=text], .field input[type=password], .field input[type=search],
.field input[type=number], .field select, .field textarea {
  width: 100%; padding: 11px 13px; background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); outline: none;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--apricot); }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

.card-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}

/* ===== Логин ===== */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box {
  width: 100%; max-width: 350px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; text-align: center;
}
.login-box .brand-glyph { font-size: 44px; display: block; margin-bottom: 6px; }
.login-box h1 { font-size: 22px; margin-bottom: 26px; }
.login-box .field { text-align: left; }

/* ===== Выбор раздела ===== */
.sections-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sections-box { width: 100%; max-width: 620px; text-align: center; }
.sections-box h1 { font-size: 24px; margin-bottom: 8px; }
.sections-box .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 30px; }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .section-grid { grid-template-columns: 1fr; } }
.section-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 20px; text-align: center; transition: border-color .15s, transform .15s;
}
.section-card:hover { border-color: var(--apricot); transform: translateY(-2px); }
.section-card .section-glyph { font-family: var(--font-arm); font-size: 38px; color: var(--pomegranate); line-height: 1; }
.section-card .section-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.section-card .section-desc { color: var(--text-muted); font-size: 13px; }
.sections-logout { margin-top: 26px; }
.sections-logout button { background: transparent; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; text-decoration: underline; }
.sections-logout button:hover { color: var(--text); }

/* ===== Прогресс-полоса ===== */
.progress-track {
  height: 6px; background: var(--surface-2); border-radius: 99px;
  overflow: hidden; flex: 1;
}
.progress-track.sm { height: 4px; }
.progress-track.lg { height: 9px; margin-bottom: 26px; }
.progress-fill {
  height: 100%; background: var(--apricot); border-radius: 99px;
  transition: width .35s cubic-bezier(.4,.2,.2,1);
}

/* ===== Главная ===== */
.home-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}
.streak {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.streak-num { font-family: var(--font-display); font-size: 24px; color: var(--apricot); line-height: 1.1; }
.streak-label-row { display: flex; align-items: center; gap: 4px; }
.streak-label { font-size: 11px; color: var(--text-muted); }

.info-pop { position: relative; display: inline-block; }
.info-pop summary {
  display: flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--text-muted); font-size: 9.5px; line-height: 1;
  cursor: pointer; list-style: none; user-select: none;
}
.info-pop summary::-webkit-details-marker { display: none; }
.info-pop summary:hover, .info-pop[open] summary { border-color: var(--apricot); color: var(--apricot); }
.info-pop-body {
  position: absolute; top: 100%; left: 0; margin-top: 6px; z-index: 30;
  width: 230px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.45;
  color: var(--text-muted); text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.welcome-banner {
  background: var(--surface); border: 1px solid var(--pomegranate-dim);
  border-radius: var(--radius); padding: 14px 18px; font-size: 14px;
  margin-bottom: 20px;
}

.daily-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px; }
.daily-card {
  display: block; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 22px 24px; transition: border-color .15s, transform .15s;
}
a.daily-card:hover { border-color: var(--apricot); transform: translateY(-2px); }
.daily-card.done { opacity: .7; }
.daily-card-label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
.daily-card-hint { color: var(--text-muted); font-size: 11.5px; opacity: .75; margin-bottom: 10px; }
.daily-card-status { background: var(--apricot-dim); color: var(--apricot); font-size: 10px; border-radius: 99px; padding: 1px 7px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.daily-card-title { font-family: var(--font-display); font-size: 19px; margin-bottom: 4px; }
.daily-card-sub { color: var(--apricot); font-size: 13px; }
.daily-card.done .daily-card-sub { color: var(--text-muted); }

@media (max-width: 620px) {
  .daily-cards { grid-template-columns: 1fr; }
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }

.how-it-works {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 24px; margin-bottom: 32px;
}
.how-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  color: inherit; text-align: left; font-family: inherit;
}
.how-toggle .section-title-sm { margin: 0; }
.how-toggle-icon { color: var(--text-muted); font-size: 12px; transition: transform .25s ease; }
.how-toggle[aria-expanded="true"] .how-toggle-icon { transform: rotate(180deg); }
.how-toggle:hover .section-title-sm, .how-toggle:hover .how-toggle-icon { color: var(--apricot); }
.how-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.how-body-inner { padding-top: 20px; }
.section-title-sm { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin: 0 0 16px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.how-step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2);
  color: var(--apricot); font-weight: 700; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.how-step-title { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.how-step-text { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.how-footer { color: var(--text-muted); font-size: 13px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.how-footer a { color: var(--apricot); }
.how-footer a:hover { text-decoration: underline; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.topic-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 13px; padding: 16px 17px;
  transition: border-color .15s, transform .15s;
}
.topic-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.topic-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.topic-name { font-weight: 600; font-size: 14.5px; }
.topic-meta { color: var(--text-muted); font-size: 12px; margin-top: 8px; }
.badge-due {
  background: var(--pomegranate); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 99px; padding: 2px 8px; flex-shrink: 0;
}
.badge-due.sm { font-size: 10px; padding: 1px 6px; }

/* ===== Тема / уроки ===== */
.lesson-list { display: flex; flex-direction: column; gap: 8px; }
.lesson-row {
  display: flex; align-items: center; gap: 15px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 16px;
  transition: border-color .15s;
}
.lesson-row:hover { border-color: var(--apricot); }
.lesson-row.done { opacity: .62; }
.lesson-mark {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.lesson-row.done .lesson-mark { background: var(--good); border-color: var(--good); color: #14281e; }
.lesson-body { flex: 1; min-width: 0; }
.lesson-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.lesson-count { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }

/* ===== Сессия обучения ===== */
.session { max-width: 620px; margin: 0 auto; }
.session-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 42px; }
.session-close { color: var(--text-muted); font-size: 17px; line-height: 1; padding: 4px; }
.session-close:hover { color: var(--text); }
.session-count { color: var(--text-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.mode-intro {
  max-width: 620px; margin: 0 auto 20px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  font-size: 12.5px; color: var(--text-muted); text-align: center;
}

.card-stage { text-align: center; }
.stage-hint {
  color: var(--text-muted); font-size: 12px; text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: 20px;
}
.prompt { font-size: 32px; line-height: 1.3; margin-bottom: 8px; }
.prompt.arm { font-family: var(--font-arm); }
.prompt.rus { font-family: var(--font-display); font-size: 27px; }
.prompt-tr { color: var(--apricot); font-size: 15px; margin-bottom: 10px; }

.options { display: grid; gap: 10px; margin-top: 32px; text-align: left; }
.option {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 17px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  cursor: pointer; font-size: 15px; transition: border-color .15s, background .15s;
}
.option:hover:not(:disabled) { border-color: var(--apricot); }
.option:disabled { cursor: default; }
.option-text.arm { font-family: var(--font-arm); font-size: 17px; }
.option.ok { border-color: var(--good); background: rgba(111,174,138,.12); animation: pulse-ok .25s ease; }
.option.bad { border-color: var(--pomegranate); background: rgba(214,69,90,.12); animation: pulse-bad .25s ease; }

@keyframes pulse-ok { 0% { transform: scale(1); } 45% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes pulse-bad { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes feedback-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.flip-back { margin-top: 22px; }
.answer { font-size: 22px; font-weight: 600; color: var(--apricot); }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.actions .btn { flex: 1; min-width: 120px; max-width: 200px; }
.rate-again { color: var(--pomegranate); }
.rate-hard { color: var(--apricot); }
.rate-good { color: var(--good); }
.rate-again:hover, .rate-hard:hover, .rate-good:hover { border-color: currentColor; }
.rate-again, .rate-hard, .rate-good { flex-direction: column; gap: 2px; }
.rate-caption { font-size: 10.5px; font-weight: 400; opacity: .75; }

.type-form { display: flex; gap: 10px; margin-top: 30px; }
.type-input {
  flex: 1; padding: 14px 16px; font-size: 16px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 11px; outline: none;
}
.type-input:focus { border-color: var(--apricot); }
.type-input.ok { border-color: var(--good); animation: pulse-ok .25s ease; }
.type-input.bad { border-color: var(--pomegranate); animation: pulse-bad .25s ease; }

.feedback {
  margin-top: 26px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); text-align: left;
  animation: feedback-in .2s ease;
}
.feedback.good { border-color: rgba(111,174,138,.5); }
.feedback.bad { border-color: rgba(214,69,90,.5); }
.feedback-row { display: flex; align-items: center; gap: 12px; }
.feedback-mark { font-size: 18px; flex-shrink: 0; }
.feedback.good .feedback-mark { color: var(--good); }
.feedback.bad .feedback-mark { color: var(--pomegranate); }
.feedback-text { flex: 1; font-size: 14.5px; }

.context { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
.context-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-bottom: 9px;
}
.context-item { margin-bottom: 9px; }
.context-item .arm { font-size: 15.5px; }
.context-tr { color: var(--text-muted); font-size: 13px; }

.done-stage { text-align: center; padding: 40px 0; }
.done-mark {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--good); color: #14281e;
  display: flex; align-items: center; justify-content: center; font-size: 27px;
}
.done-stats { display: flex; justify-content: center; gap: 34px; margin: 24px 0 32px; }
.done-stats > div { display: flex; flex-direction: column; gap: 2px; }
.done-stats span:last-child { color: var(--text-muted); font-size: 12px; }
.done-num { font-family: var(--font-display); font-size: 28px; color: var(--apricot); }

/* ===== Словарь ===== */
.filters { margin-bottom: 20px; }
.search {
  width: 100%; padding: 12px 15px; margin-bottom: 12px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 11px; outline: none;
}
.search:focus { border-color: var(--apricot); }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-row select {
  padding: 8px 11px; background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 9px; font-size: 13.5px;
}
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.seg-item { padding: 8px 15px; font-size: 13.5px; color: var(--text-muted); }
.seg-item:hover { color: var(--text); }
.seg-item.on { background: var(--apricot); color: var(--bg); font-weight: 600; }

.dict-count { color: var(--text-muted); font-size: 12.5px; margin-bottom: 10px; }
.dict-list { display: flex; flex-direction: column; }
.dict-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.dict-pager-info { color: var(--text-muted); font-size: 13px; }
.dict-pager-nums { display: flex; align-items: center; gap: 4px; }
.dict-pager-num {
  display: flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px;
  font-size: 13px; color: var(--text-muted);
}
a.dict-pager-num:hover { background: var(--surface-2); color: var(--text); }
.dict-pager-num.current { background: var(--apricot); color: var(--bg); font-weight: 600; }
.dict-pager-dots { color: var(--text-muted); font-size: 13px; padding: 0 2px; }
.dict-row {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 13px; border-bottom: 1px solid var(--line); border-radius: 8px;
}
.dict-row:hover { background: var(--surface); }
.dict-main { flex: 1; min-width: 0; }
.dict-arm { font-size: 16.5px; }
.dict-tr { color: var(--text-muted); font-size: 13px; }
.dict-meta { color: var(--text-muted); font-size: 11px; opacity: .7; margin-top: 3px; }
.dict-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dict-trans { color: var(--apricot-dim); font-size: 12.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.learned { background: var(--good); }
.dot.poor { background: var(--pomegranate); }
.dot.fav { width: auto; height: auto; color: var(--apricot); font-size: 13px; }

/* ===== Карточка ===== */
.detail { max-width: 600px; }
.detail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.type-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px;
}
.fav-btn {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--line-strong); padding: 2px 6px;
}
.fav-btn.on { color: var(--apricot); }
.detail-arm { font-family: var(--font-arm); font-size: 34px; line-height: 1.25; margin-bottom: 6px; }
.detail-trans { color: var(--apricot); font-size: 15px; margin-bottom: 6px; }
.detail-tr { font-size: 17px; margin-bottom: 26px; }
.detail-block { margin-bottom: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.block-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-bottom: 11px;
}
.block-body { font-size: 14px; }
.related-list { display: flex; flex-direction: column; gap: 9px; }
.related-item { display: flex; flex-direction: column; gap: 1px; }
.related-item:hover .arm { color: var(--apricot); }
.related-item .arm { font-size: 16px; }
.related-tr { color: var(--text-muted); font-size: 12.5px; }
.note-box {
  width: 100%; min-height: 70px; padding: 11px 13px; resize: vertical;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 9px; outline: none;
}
.note-box:focus { border-color: var(--apricot); }
.note-actions { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.detail-actions { display: flex; align-items: center; gap: 10px; margin-top: 30px; }

/* ===== Профиль ===== */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-num { font-family: var(--font-display); font-size: 30px; color: var(--apricot); line-height: 1.1; }
.stat-label { color: var(--text-muted); font-size: 12.5px; margin-top: 3px; }
.stat-sub { color: var(--text-muted); font-size: 11px; opacity: .7; margin-top: 1px; }

.topic-progress-list { display: flex; flex-direction: column; gap: 11px; }
.tp-row { display: flex; align-items: center; gap: 14px; }
.tp-name { width: 190px; flex-shrink: 0; font-size: 13.5px; }
.tp-num { color: var(--text-muted); font-size: 12px; width: 66px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }

.goal-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.goal-form label { font-size: 13.5px; color: var(--text-muted); }
.goal-form input {
  width: 82px; padding: 9px 12px; background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 9px; outline: none;
}
.goal-form input:focus { border-color: var(--apricot); }

@media (max-width: 620px) {
  .prompt { font-size: 26px; }
  .tp-name { width: 120px; }
  .done-stats { gap: 22px; }
}

/* ===== Админка ===== */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 26px; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th, table.data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data-table th { color: var(--text-muted); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }

.pill-toggle {
  padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text-muted); font-size: 13px; cursor: pointer;
}
.pill-toggle.active { background: var(--pomegranate-dim); color: var(--text); border-color: var(--pomegranate); }

.tag-badge {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-size: 11.5px; margin-right: 6px;
}

.word-suggest-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.word-suggest-item { background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; }
.word-suggest-item.existing { opacity: .6; }
.word-suggest-item .ws-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.word-suggest-item .ws-arm { font-family: var(--font-arm); font-size: 17px; }
.ws-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.report-box { margin-top: 20px; }
.report-box h3 { font-size: 14px; margin: 16px 0 6px; }
.report-list { max-height: 220px; overflow-y: auto; font-size: 13px; color: var(--text-muted); }

/* ===== Диалог: скрипт + новые слова ===== */
.section-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 34px 0 14px; }

.dialog-script { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.dialog-line {
  padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); max-width: 82%;
}
.dialog-line.b { align-self: flex-end; background: var(--surface-2); }
.dialog-rus { font-size: 14.5px; color: var(--text-muted); margin-bottom: 4px; }
.dialog-arm { font-size: 18px; }

.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.word-card {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface);
}
.word-arm { font-size: 16.5px; margin-bottom: 3px; }
.word-tr { color: var(--apricot); font-size: 12.5px; margin-bottom: 5px; }
.word-rus { color: var(--text-muted); font-size: 13px; }

@media (max-width: 620px) {
  .dialog-line { max-width: 100%; }
}
