@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/static/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/static/fonts/manrope-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Токены: бланк наряда-допуска и сигнальные цвета */
:root {
  color-scheme: light;
  --paper: #EEF1F4; --surface: #FFFFFF; --sunken: #E3E8ED; --line: #D3DAE1; --line-2: #BCC6D0;
  --ink: #14212B; --ink-2: #44525E; --muted: #566370;
  --signal: #FFC20E; --signal-ink: #14212B; --signal-soft: #FFF1C2;
  --good: #17693A; --good-soft: #DDF1E4; --bad: #A82A14; --bad-soft: #FBE3DD;
  --info: #1B5FA8; --info-soft: #DFEAF7;
  --btn: #14212B; --btn-ink: #FFFFFF; --bar: #44525E; --plate: #F4F6F8; --warn-ink: #6B4A00;
  --r: 12px; --r-sm: 8px;
  --tabs-h: 0px;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --paper: #0F161C; --surface: #1B2733; --sunken: #26343F; --line: #303E4B; --line-2: #445462;
    --ink: #E6ECF1; --ink-2: #B4C0CA; --muted: #97A5B0;
    --signal: #FFC93A; --signal-ink: #14212B; --signal-soft: #3A3115;
    --good: #48B779; --good-soft: #15301F; --bad: #F07A60; --bad-soft: #3A1C15;
    --info: #7DB0EC; --info-soft: #172A40; --btn: #3B4B58; --btn-ink: #F2F5F8; --bar: #A9B6C1; --plate: #22303B; --warn-ink: #FFD98A;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F161C; --surface: #1B2733; --sunken: #26343F; --line: #303E4B; --line-2: #445462;
  --ink: #E6ECF1; --ink-2: #B4C0CA; --muted: #97A5B0;
  --signal: #FFC93A; --signal-ink: #14212B; --signal-soft: #3A3115;
  --good: #48B779; --good-soft: #15301F; --bad: #F07A60; --bad-soft: #3A1C15;
  --info: #7DB0EC; --info-soft: #172A40; --btn: #3B4B58; --btn-ink: #F2F5F8; --bar: #A9B6C1; --plate: #22303B; --warn-ink: #FFD98A;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--paper); color: var(--ink); overflow-x: hidden;
  font: 16px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1;
}
a { color: var(--info); }
h1 { font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 760; letter-spacing: -0.012em; margin: 0 0 10px; }
h3 { font-size: 16px; font-weight: 720; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .soft { color: var(--ink-2); } .small { font-size: 14px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.loading { text-align: center; color: var(--muted); padding: 60px 0; }

/* Шапка и навигация */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 10px 24px; background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo svg { flex: none; }
.tabs { display: flex; gap: 2px; margin-left: auto; }
.tabs a {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  text-decoration: none; color: var(--ink-2); font-weight: 680; font-size: 15px;
}
.tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { background: var(--ink); color: var(--paper); }
.tabs a:not(.on):hover { background: var(--sunken); }
@media (max-width: 760px) {
  :root { --tabs-h: 64px; }
  .top { padding: 8px 16px; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  }
  .tabs a { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 11.5px; min-width: 60px; flex: 1; }
  .tabs a.on { background: transparent; color: var(--ink); }
  .tabs a.on svg { background: var(--signal); color: var(--signal-ink); border-radius: 8px; padding: 3px 12px; width: 48px; height: 28px; }
  body.has-tabs main { padding-bottom: calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom)); }
}
body.in-test .tabs, body.in-test .top { display: none; }
main { max-width: 1060px; margin: 0 auto; padding: 24px 28px 64px; }
@media (max-width: 760px) { main { padding: 16px 16px 40px; } h1 { font-size: 25px; } }

/* Общие элементы */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 720; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.2;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn.signal { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn.signal:hover, .btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--sunken); }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 8px;
  background: var(--sunken); color: var(--ink-2); font-size: 13px; font-weight: 650; white-space: nowrap;
}
.chip.good { background: var(--good-soft); color: var(--good); } .chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); } .chip.signal { background: var(--signal-soft); color: var(--ink); }
.check-note { display: inline-flex; gap: 6px; align-items: baseline; font-size: 13px; color: var(--ink-2); background: var(--signal-soft); padding: 2px 8px; border-radius: 6px; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 10px;
  padding: 11px 13px; min-height: 48px; width: 100%; max-width: 100%;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--info); }
label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-weight: 680; font-size: 14px; margin-bottom: 6px; }
.err { color: var(--bad); font-size: 14px; margin-top: 6px; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 20px); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; font-weight: 650; max-width: calc(100vw - 32px);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }

/* Персонаж */
.char { display: block; flex: none; }
.char .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
.char .shell { stroke: var(--pc); } .char .hat { fill: var(--pc); }
.char .face { fill: var(--surface); } .char .ink { fill: var(--ink); } .char .stroke { stroke: var(--ink); fill: none; }
.p-strict { --pc: #D9480F; } .p-kind { --pc: #1C7ED6; } .p-irony { --pc: #AE3EC9; } .p-neutral { --pc: #0C8599; }

/* Главная: «что делать сегодня» */
.hero { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; margin: 4px 0 18px; }
.bubble {
  position: relative; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 16px; padding: 18px 20px;
}
.bubble::before {
  content: ""; position: absolute; left: -11px; top: 44px; width: 18px; height: 18px; background: var(--surface);
  border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg);
}
.bubble .say { font-size: 19px; line-height: 1.4; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 14px; }
.bubble .plan-line { color: var(--ink-2); font-size: 14px; margin: -6px 0 14px; }
.hero .btn.signal { min-height: 56px; font-size: 17px; padding: 0 26px; }
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .hero .char { width: 96px; height: 96px; margin-left: 8px; }
  .bubble::before { left: 40px; top: -11px; border-left: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); border-bottom: 0; }
  .bubble .say { font-size: 17px; }
  .hero .btn.signal { width: 100%; }
}
.warn {
  border-left: 4px solid var(--signal); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 14px; margin: 0 0 16px;
}
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 22px;
}
.strip > div { padding: 14px 16px; border-left: 1px solid var(--line); min-width: 0; }
.strip > div:first-child { border-left: 0; }
.strip b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.strip span { font-size: 13px; color: var(--muted); }
.strip .bar { height: 5px; background: var(--sunken); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.strip .bar i { display: block; height: 100%; background: var(--good); }
@media (max-width: 600px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div:nth-child(3) { border-left: 0; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .strip b { font-size: 22px; }
}

/* Сворачиваемые разделы */
.sect { border-top: 1px solid var(--line-2); }
.sect:last-of-type { border-bottom: 1px solid var(--line-2); }
.sect > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 4px; min-height: 60px;
}
.sect > summary::-webkit-details-marker { display: none; }
.sect > summary h2 { margin: 0; font-size: 19px; }
.sect > summary .sum { color: var(--muted); font-size: 14px; margin-left: auto; text-align: right; }
.sect > summary::after {
  content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg); margin: -4px 6px 0 4px; transition: transform .15s; flex: none;
}
.sect[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.sect > .body { padding: 0 0 18px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }
.mode {
  display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; min-height: 72px; width: 100%;
}
.mode:hover { border-color: var(--ink-2); }
.mode .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; flex: none; }
.mode .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode h3 { margin: 0; } .mode p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.mode .go { margin-left: auto; color: var(--muted); font-size: 22px; line-height: 1; }
.tickets { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.ticket {
  min-width: 56px; min-height: 48px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface);
  font: inherit; font-weight: 750; color: var(--ink); cursor: pointer; padding: 4px 10px; line-height: 1.1;
}
.ticket small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.ticket.pass { border-color: var(--good); background: var(--good-soft); } .ticket.fail { border-color: var(--bad); }
.topics { display: grid; gap: 2px; }
.topic { display: grid; grid-template-columns: 1fr 120px auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.topic:last-child { border-bottom: 0; }
.topic .t { min-width: 0; }
.topic .t b { font-weight: 680; } .topic .t span { display: block; font-size: 13px; color: var(--muted); }
.meter { height: 8px; background: var(--sunken); border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--good); }
.meter.weak i { background: var(--bad); }
@media (max-width: 600px) { .topic { grid-template-columns: 1fr auto; } .topic .meter { grid-column: 1 / -1; grid-row: 2; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; }
.badge.got { border: 1.5px solid var(--ink); color: var(--ink); background: var(--signal-soft); font-weight: 700; }
.badge svg { width: 18px; height: 18px; }

/* Таблицы: на телефоне строки превращаются в карточки */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.tbl tr.me td { background: var(--signal-soft); }
.tbl tr.suspect td { background: var(--bad-soft); }
.tbl .num { text-align: right; white-space: nowrap; }
@media (max-width: 700px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 10px; padding: 6px 4px; background: var(--surface); }
  .tbl td { border: 0; padding: 4px 10px; display: flex; gap: 10px; justify-content: space-between; }
  .tbl td::before { content: attr(data-l); color: var(--muted); font-size: 13px; flex: none; max-width: 45%; }
  .tbl td.main { font-weight: 700; }
  .tbl td.main::before { content: none; }
  .tbl .num { text-align: right; }
}

/* Прохождение вопросов */
.runbar { display: flex; align-items: center; gap: 12px; margin: -6px 0 16px; }
.runbar .title { font-weight: 750; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runbar .count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.timer { font-weight: 800; font-size: 18px; padding: 4px 12px; border-radius: 8px; background: var(--sunken); white-space: nowrap; }
.timer.low { background: var(--bad-soft); color: var(--bad); }
.progress { height: 6px; background: var(--sunken); border-radius: 3px; overflow: hidden; margin-bottom: 18px; }
.progress i { display: block; height: 100%; background: var(--ink); transition: width .25s; }
.qcard { max-width: 760px; }
.qmeta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.qtext { font-size: 20px; line-height: 1.4; font-weight: 680; letter-spacing: -0.008em; margin: 0 0 16px; }
@media (max-width: 600px) { .qtext { font-size: 18px; } }
.context { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 14px; font-size: 15px; white-space: pre-wrap; }
.opts { display: grid; gap: 10px; margin-bottom: 16px; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; min-height: 56px; padding: 14px 16px;
  border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
}
.opt .mk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; margin-top: 1px; display: grid; place-items: center; }
.opt.multi .mk { border-radius: 6px; }
.opt.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt.sel .mk { border-color: var(--ink); background: var(--ink); }
.opt.sel .mk::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); }
.opt.multi.sel .mk::after { width: 10px; height: 6px; border-radius: 0; background: none; border-left: 2px solid var(--surface); border-bottom: 2px solid var(--surface); transform: rotate(-45deg) translate(1px, -1px); }
.opt.right { border-color: var(--good); background: var(--good-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt[disabled] { cursor: default; }
.match-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.match-row .l { font-weight: 650; }
.match-row.right select { border-color: var(--good); background: var(--good-soft); }
.match-row.wrong select { border-color: var(--bad); background: var(--bad-soft); }
@media (max-width: 600px) { .match-row { grid-template-columns: 1fr; gap: 4px; margin-bottom: 14px; } }
.numrow { display: flex; gap: 10px; align-items: center; max-width: 360px; margin-bottom: 16px; }
.numrow span { font-weight: 700; color: var(--ink-2); }
.feedback { border-radius: var(--r); padding: 14px 16px; margin: 0 0 16px; border: 1.5px solid; }
.feedback.ok { border-color: var(--good); background: var(--good-soft); }
.feedback.no { border-color: var(--bad); background: var(--bad-soft); }
.feedback.half { border-color: var(--signal); background: var(--signal-soft); }
.feedback h3 { margin: 0 0 4px; }
.feedback .ref { font-weight: 700; font-size: 14px; margin-top: 6px; }
.feedback p:last-child { margin-bottom: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 30%); }
.actions .btn { flex: 1 1 auto; }
@media (min-width: 761px) { .actions .btn { flex: 0 0 auto; min-width: 180px; } }
.qnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 8px; }
.qnav button { width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.qnav button.done { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qnav button.cur { box-shadow: 0 0 0 3px var(--signal); }
.react { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.react .char { width: 56px; height: 56px; }
.react .line { font-weight: 650; }

/* Карточки */
.flash {
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 16px; padding: 26px 22px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: center; max-width: 640px; margin-bottom: 16px;
}
.flash .front { font-size: 22px; font-weight: 750; line-height: 1.3; letter-spacing: -0.01em; }
.flash .back { font-size: 18px; margin-top: 16px; padding-top: 16px; border-top: 1.5px dashed var(--line-2); line-height: 1.45; }
.flash .ref { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Блиц */
.blitz-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.blitz-top b { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.tick { height: 10px; background: var(--sunken); border-radius: 5px; overflow: hidden; margin-bottom: 18px; }
.tick i { display: block; height: 100%; background: var(--signal); width: 100%; }
.stmt { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px; margin-bottom: 16px; min-height: 180px; max-width: 680px; }
.stmt .q { color: var(--ink-2); font-size: 15px; margin-bottom: 10px; }
.stmt .a { font-size: 21px; font-weight: 750; line-height: 1.35; }
.tf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 680px; }
.tf .btn { min-height: 72px; font-size: 20px; }
.tf .yes { border-color: var(--good); color: var(--good); } .tf .no { border-color: var(--bad); color: var(--bad); }

/* Наставник: разговор */
.talk-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.talk-head .char { width: 84px; height: 84px; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.subtabs button { min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; font-weight: 680; color: var(--ink); cursor: pointer; }
.subtabs button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chat { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; max-width: 760px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.bot.miss { border-color: var(--line-2); border-style: dashed; }
.quote { border-left: 3px solid var(--ink); padding: 4px 0 4px 10px; margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.quote b { display: block; color: var(--ink); font-size: 13px; margin-top: 2px; }
.composer { display: flex; gap: 8px; align-items: flex-end; max-width: 760px; position: sticky; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); background: var(--paper); padding: 10px 0; }
.composer textarea { min-height: 52px; height: 52px; }
.mic { width: 52px; min-width: 52px; height: 52px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.mic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mic.on { background: var(--bad); border-color: var(--bad); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--bad) 25%, transparent); } }
.typing { color: var(--muted); font-size: 14px; }
.persona-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 600px) { .persona-pick { grid-template-columns: 1fr; } }
.persona-pick button { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; min-height: 72px; }
.persona-pick button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--signal-soft); }
.persona-pick .char { width: 52px; height: 52px; }
.persona-pick b { display: block; } .persona-pick span { font-size: 14px; color: var(--ink-2); }

/* Вход и первый запуск */
.auth { max-width: 440px; margin: 6vh auto 0; }
.auth .char { width: 110px; height: 110px; margin: 0 0 8px -6px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--ink); }

/* Админка */
.admin-tabs { margin-bottom: 18px; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 18px; text-align: center; background: var(--surface); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.userbox { background: var(--sunken); border-radius: var(--r-sm); padding: 12px; margin-top: 6px; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--sunken); padding: 8px 10px; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.linkbox code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
pre.json { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; background: var(--sunken); padding: 10px; border-radius: 8px; max-height: 300px; overflow: auto; }
.list-plain { margin: 0; padding-left: 20px; } .list-plain li { margin-bottom: 4px; }
.rev-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.rev-item:last-child { border-bottom: 0; }
.rev-item .ans { color: var(--good); font-weight: 650; }
.res-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.res-head .char { width: 90px; height: 90px; }
.score-big { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.upcoming { display: flex; gap: 4px; align-items: flex-end; height: 90px; margin: 8px 0 4px; }
.upcoming div { flex: 1; max-width: 36px; background: var(--info); border-radius: 3px 3px 0 0; min-height: 3px; position: relative; }
.upcoming-l { display: flex; gap: 4px; font-size: 11px; color: var(--muted); } .upcoming-l span { flex: 1; max-width: 36px; text-align: center; overflow: hidden; }
.composer.answer { position: static; padding: 0 0 12px; background: none; }
.composer.answer textarea { height: auto; min-height: 140px; }

/* вкладки: короткие подписи на телефоне, профиль — в шапке */
.tabs .lm { display: none; }
.top-profile { display: none; margin-left: auto; color: var(--ink); width: 44px; height: 44px; place-items: center; border-radius: 10px; }
@media (max-width: 760px) {
  .tabs .ld { display: none; } .tabs .lm { display: inline; }
  .tabs .tab-profile { display: none; }
  .top-profile:not([hidden]) { display: grid; }
}
/* материалы для изучения */
.material { line-height: 1.6; max-width: 820px; }
.material .mat-h { margin: 18px 0 8px; font-size: 17px; }
.material .mat-h:first-child { margin-top: 0; }
.material .mat-list { padding-left: 20px; margin: 0 0 12px; }
.material .mat-list li { margin-bottom: 6px; }
.ivdoc { grid-template-columns: 1fr auto; }
@media (max-width: 600px) { .ivdoc { grid-template-columns: 1fr; } .ivdoc .row { justify-content: flex-start; } }
.rng input[type=range] { padding: 0; min-height: 32px; border: 0; background: none; }
.rng output { font-weight: 700; }
.chat .msg.bot b { font-weight: 700; }
.qmeta .chip { white-space: normal; max-width: 100%; }
.runbar .btn { white-space: nowrap; flex: none; }
.abbr { color: var(--ink-2); font-weight: 500; }
.qtext .abbr, .msg b .abbr { font-weight: 500; }
.talk-head > div, .talk-head > p { min-width: 0; }
.qtext, .msg, .chip { overflow-wrap: anywhere; }
/* живой разговор */
.live-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 12px; }
.live-status { font-weight: 700; font-size: 17px; text-align: center; min-height: 26px; }
.live-meter { width: min(260px, 70%); height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.live-meter i { display: block; height: 100%; width: 0; background: var(--good); transition: width .08s; }
.live-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 8px 0 12px; }
.live-controls .btn { flex: 1 1 140px; max-width: 260px; }

/* ===== Версия 4: маскот, процент попадания в эталон, план дня, наставник на любой странице ===== */
.char.mascot { overflow: visible; }
.char.mascot .eye { animation: none; }
.logo .char { width: 34px; height: 34px; }

.top-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.top-btn:hover { background: var(--sunken); }
@media (max-width: 760px) { .top-btn { margin-left: auto; } .top-profile { margin-left: 0; } .top { gap: 4px; } }

/* план дня */
.plan { list-style: none; margin: 0 0 18px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.plan li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--sunken); color: var(--ink-2); }
.plan li.next .plan-n { background: var(--signal); color: var(--signal-ink); }
.plan li.done .plan-n { background: var(--good-soft); color: var(--good); }
.plan-t { min-width: 0; } .plan-t b { display: block; font-weight: 720; } .plan-t span { display: block; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.plan li.done .plan-t b { color: var(--ink-2); }
.plan-a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .plan li { grid-template-columns: 34px 1fr; } .plan-a { grid-column: 2; justify-content: flex-start; } .plan-a:empty { display: none; } }
.tips { margin-top: 22px; } .tips h2 { font-size: 17px; margin-bottom: 4px; }
.tip { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.tip b { display: block; font-weight: 700; font-size: 15px; } .tip span { display: block; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.tip > div { min-width: 0; }
@media (max-width: 480px) { .tip { grid-template-columns: 1fr; } .tip .btn { justify-self: start; } }
@media (max-width: 600px) { .strip { grid-template-columns: 1fr 1fr !important; } .strip > div:nth-child(odd) { border-left: 0; } .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* документы в «Учить» */
.docrow { display: grid; grid-template-columns: 1fr 110px auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.docrow:last-child { border-bottom: 0; }
.docrow .t { min-width: 0; } .docrow .t b { font-weight: 680; overflow-wrap: anywhere; } .docrow .t span { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .docrow { grid-template-columns: 1fr; gap: 8px; } .docrow .row { justify-content: flex-start; } }
.subtabs.sub2 { margin-top: -6px; } .subtabs.sub2 button { min-height: 36px; font-size: 14px; border-width: 1px; }
.subtabs.sub2 button.on { background: var(--sunken); color: var(--ink); border-color: var(--ink-2); }

/* попадание в эталон */
.cover { background: var(--sunken); border-radius: var(--r-sm); padding: 12px 14px; }
.cover-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.cover-n { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.cover-n.good, .score-big.good { color: var(--good); } .cover-n.bad, .score-big.bad { color: var(--bad); }
.cover-bar { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; margin-top: 8px; }
.cover-bar i { display: block; height: 100%; background: var(--signal); border-radius: 4px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.cover-bar.good i { background: var(--good); } .cover-bar.bad i { background: var(--bad); }
.els { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.els li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; font-size: 15px; line-height: 1.4; }
.els li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--good-soft); color: var(--good); margin-top: 1px; }
.els li.half::before { content: "½"; background: var(--signal-soft); color: var(--ink); }
.els li.no::before { content: "✕"; background: var(--bad-soft); color: var(--bad); }
.els li.no span { color: var(--ink); font-weight: 620; }
.els-self { display: grid; gap: 4px; }
.els-self label { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.els-self label:hover { background: var(--sunken); }
.els-self input { width: 22px; height: 22px; min-height: 22px; margin: 2px 0 0; }
.msg .cover { background: var(--paper); }

/* наставник на любой странице */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 15; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 18px 0 6px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 720; cursor: pointer; box-shadow: 0 6px 20px rgba(20,33,43,.16); }
.fab:hover { border-color: var(--ink-2); }
.fab .char { width: 44px; height: 44px; }
body.in-test .fab, body[data-nav="mentor"] .fab { display: none; }
@media (max-width: 760px) { .fab { right: 12px; bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom)); padding: 0 6px; width: 56px; justify-content: center; } .fab b { display: none; } }
.sheet { border: 0; padding: 0; background: var(--paper); color: var(--ink); border-radius: 16px; width: min(560px, calc(100vw - 24px)); max-height: min(86vh, 760px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.sheet::backdrop { background: rgba(10,16,22,.5); }
.sheet-in { padding: 18px; }
.sheet .chat { max-height: 44vh; overflow-y: auto; }
.sheet .chat:empty { display: none; }
@media (max-width: 760px) { .sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; max-height: 88vh; } .sheet-in { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); } }

/* светлая тема: чуть больше контраста у карточек и сигнального цвета */
:root:not([data-theme="dark"]) .bubble, :root:not([data-theme="dark"]) .panel, :root:not([data-theme="dark"]) .plan { box-shadow: 0 1px 2px rgba(20,33,43,.05); }
/* нижняя панель вкладок на телефоне: у шапки не должно быть размытия, иначе панель привязывается к шапке, а не к экрану */
@media (max-width: 760px) { .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); } }
.live-controls .btn.signal, .live-controls .btn.primary { flex: 1 1 100%; max-width: 420px; }
.live-controls .btn { white-space: nowrap; }


/* ===== Версия 4.1: одно правило для кнопок и выбранного, единые показатели, разбор, контраст ===== */
/* Кнопки: жёлтая — следующий шаг (одна на экран), тёмная — второстепенное, контурная — остальное */
.actions .btn.primary { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn.link { border: 0; background: none; color: var(--info); padding: 0 6px; min-height: 44px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.btn.link:hover { background: none; }
/* Выбранное: не заливкой, а подчёркиванием (меню) или светлой плашкой (вкладки, нижняя панель) */
.top { padding-inline: max(24px, calc((100% - 1004px) / 2)); }
.tabs a.on { background: transparent; color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); border-radius: 0; font-weight: 800; }
.tabs a:not(.on):hover { background: var(--sunken); }
.subtabs button { border-color: transparent; background: transparent; color: var(--ink-2); font-weight: 650; }
.subtabs button:hover { background: var(--sunken); }
.subtabs button.on { background: var(--sunken); color: var(--ink); border-color: transparent; font-weight: 800; }
.subtabs.sub2 button.on { border-color: transparent; }
@media (max-width: 760px) {
  .top { padding-inline: 16px; }
  .tabs a { font-size: 12px; }
  .tabs a.on { box-shadow: none; }
  .tabs a.on svg { background: var(--sunken); color: var(--ink); }
}
/* меню профиля: настройки, администрирование, выход */
.pmenu { position: relative; flex: none; }
.pmenu > summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); cursor: pointer; font-weight: 700; font-size: 14px; }
.pmenu > summary::-webkit-details-marker { display: none; }
.pmenu .ava { width: 32px; height: 32px; border-radius: 50%; background: var(--sunken); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.pmenu-list { position: absolute; right: 0; top: 50px; z-index: 40; min-width: 230px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(20,33,43,.18); display: grid; }
.pmenu-list a, .pmenu-list button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-weight: 650; text-decoration: none; text-align: left; cursor: pointer; }
.pmenu-list a:hover, .pmenu-list button:hover { background: var(--sunken); }
@media (max-width: 760px) { .pmenu > summary { padding: 0; width: 44px; justify-content: center; border: 0; background: none; } .pmenu .pname, .pmenu .chev { display: none; } .pmenu .ava { width: 34px; height: 34px; background: var(--surface); border: 1px solid var(--line-2); } }

/* «Сегодня» */
.hero { grid-template-columns: 116px 1fr; align-items: center; }
.bubble { border: 1px solid var(--line); padding: 16px 20px; }
.bubble::before { display: none; }
.bubble .who { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.bubble .say { margin-bottom: 0; font-weight: 600; }
@media (max-width: 600px) { .hero { grid-template-columns: 76px 1fr; gap: 12px; align-items: start; } .hero .char { width: 76px; height: 76px; margin-left: 0; } .bubble { padding: 12px 14px; } .bubble .who { display: none; } .bubble .say { font-size: 16px; } }
.plan-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 18px 10px; }
.plan-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.plan-head span { font-size: 14px; color: var(--ink-2); }
.plan { margin-bottom: 18px; }
.plan li { grid-template-columns: 36px 1fr auto; padding: 14px 18px; border-top: 1px solid var(--line) !important; }
.plan-n { width: 36px; height: 36px; }
.plan li.next .plan-n { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); box-sizing: border-box; }
.plan-t b { font-size: 17px; }
.plan-a { align-items: center; gap: 10px; }
.plan-a .btn.signal { min-height: 52px; min-width: 190px; font-size: 17px; }
.plan-a .btn:not(.signal):not(.link) { min-width: 190px; }
@media (max-width: 600px) { .plan li { grid-template-columns: 32px 1fr; align-items: start; } .plan-n { width: 32px; height: 32px; } .plan-a { grid-column: 1 / -1; flex-direction: column; align-items: stretch; } .plan-a .btn { width: 100%; } .plan-a .btn.link { order: 2; align-self: center; width: auto; } }
.strip { align-items: stretch; }
.strip > div { padding: 14px 18px; }
.strip .lbl { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.strip b { font-size: 28px; margin-top: 2px; }
.strip .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.strip .bar { height: 6px; margin-top: 6px; }
.strip .bar i, .meter i, .meter.weak i { background: var(--bar); }
.warn { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 18px; margin: 0 0 18px; }
.warn h2 { font-size: 18px; margin: 0 0 2px; }
.pace { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pace label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.pace label:has(input:checked) { border: 2px solid var(--ink); padding: 11px 13px; background: var(--plate); }
.pace input { width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.pace b { display: block; font-weight: 700; } .pace span span { display: block; font-size: 14px; color: var(--ink-2); }
@media (max-width: 700px) { .pace { grid-template-columns: 1fr; gap: 8px; } }
.tips h2 { font-size: 18px; margin: 6px 0 8px; }
.tips .panel { padding: 0; }
.tip { padding: 14px 18px; border-top: 1px solid var(--line); }
.tip:first-child { border-top: 0; }
.tip .btn { min-width: 170px; }
.fab { padding: 0 18px 0 14px; gap: 8px; }
.fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .fab { width: auto; padding: 0 16px 0 12px; } .fab b { display: inline; } }

/* «Обучение»: поиск и строки документов */
.search { display: flex; gap: 8px; margin: 0 0 16px; max-width: 640px; }
.search input { flex: 1; min-width: 0; }
.found { margin: 0 0 18px; padding: 6px 0; }
.found h3 { font-size: 14px; color: var(--ink-2); margin: 12px 18px 4px; }
.found a.hit { display: block; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.found a.hit:hover { background: var(--plate); }
.found a.hit b { display: block; font-weight: 680; } .found a.hit span { display: block; font-size: 14px; color: var(--ink-2); }
.sect.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; padding: 0 18px; }
.sect.card:last-of-type { border-bottom: 1px solid var(--line); }
.sect > summary .sum { font-size: 14px; color: var(--ink-2); }
.docrow .t span { font-size: 14px; color: var(--ink-2); }
.memo { display: flex; align-items: center; gap: 10px; padding: 10px 4px 12px; border-bottom: 1px solid var(--line); color: var(--info); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.memo svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.material { font-size: 17px; line-height: 1.65; }
.material .mat-h { font-size: 19px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cards3 .panel { display: flex; flex-direction: column; gap: 8px; }
.cards3 .panel .btn { margin-top: auto; }
.cards3.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards3.c1 { grid-template-columns: minmax(0, 640px); }
.cards3.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .cards3.c4, .cards3.c2, .cards3.c1 { grid-template-columns: 1fr; } }
@media (min-width: 2000px) { .cards3.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ticket small { font-size: 12px; } .upcoming-l { font-size: 12px; }

/* попадание в эталон: элементы с подписью, «чего нельзя говорить» */
.cover { background: transparent; padding: 0; }
.msg .cover { background: transparent; }
.cover-top { align-items: baseline; }
.cover-n, .cover-n.good { color: var(--ink); } .cover-n.bad { color: var(--bad); }
.cover-bar i, .cover-bar.good i, .cover-bar.bad i { background: var(--bar); }
.cover-bar { background: var(--sunken); height: 6px; }
.els2 { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; line-height: 1.4; }
.els2 li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; }
.els2 .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); color: var(--good); }
.els2 .ic svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.els2 .st { font-size: 13px; font-weight: 700; color: var(--good); white-space: nowrap; }
.els2 li.half { background: var(--signal-soft); } .els2 li.half .ic { background: var(--surface); color: var(--warn-ink); } .els2 li.half .st { color: var(--warn-ink); }
.els2 li.no { background: var(--bad-soft); } .els2 li.no .ic { background: var(--surface); color: var(--bad); } .els2 li.no .st { color: var(--bad); }
.els2 li.half > span:nth-child(2), .els2 li.no > span:nth-child(2) { font-weight: 600; }
@media (max-width: 600px) { .els2 li { grid-template-columns: 22px 1fr; } .els2 .st { grid-column: 2; } }
.lbl2 { font-size: 14px; font-weight: 800; margin: 14px 0 6px; }
.nosay { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; line-height: 1.4; }
.nosay.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.nosay li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 10px; }
.nosay li > span:first-child { flex: 1; }
.nosay .st { flex: none; font-size: 13px; color: var(--muted); white-space: nowrap; }
.nosay li.hit { background: var(--bad-soft); } .nosay li.hit > span:first-child { font-weight: 600; } .nosay li.hit .st { color: var(--bad); font-weight: 800; }
@media (max-width: 700px) { .nosay.two { grid-template-columns: 1fr; } .nosay li { flex-direction: column; gap: 0; } }
.ansbox { margin: 0; padding: 14px 16px; background: var(--plate); border-radius: 10px; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.msg.me { font-size: 16px; }

/* разбор */
.res2 { display: flex; align-items: center; gap: 22px; margin-bottom: 16px; }
.res2 .char { width: 120px; height: 120px; }
.res2 h1 { font-size: 52px; line-height: 1.1; margin: 0; }
.res2 .big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .res2 .big span { font-size: 18px; font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.facts span { font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--sunken); }
.facts span.bad { background: var(--bad-soft); color: var(--bad); font-weight: 700; }
.res-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.res-actions .btn.signal { min-height: 52px; font-size: 17px; padding: 0 26px; }
.deb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.deb h3 { font-size: 15px; font-weight: 800; margin: 0 0 6px; }
.deb ul, .deb ol { margin: 0; padding-left: 20px; font-size: 15px; display: grid; gap: 6px; }
.qcard2 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 20px; margin-bottom: 14px; }
.qcard2 .qhead { display: flex; align-items: flex-start; gap: 16px; }
.qcard2 .qhead > div:first-child { flex: 1; min-width: 0; }
.qcard2 .qhead small { font-size: 14px; color: var(--ink-2); display: block; }
.qcard2 h3 { margin: 2px 0 0; font-size: 19px; font-weight: 700; line-height: 1.35; }
.qcard2 .qpct { text-align: right; flex: none; } .qcard2 .qpct b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; } .qcard2 .qpct span { font-size: 13px; color: var(--muted); }
.qcard2 .qpct.bad b, .qcard2 .qpct.bad span { color: var(--bad); } .qcard2 .qpct.bad span { font-weight: 700; }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 14px; }
.qa .lbl2:first-child { margin-top: 0; }
.qcard2 .nosay-wrap { margin-top: 16px; padding-top: 2px; border-top: 1px solid var(--line); }
.qcard2 .qact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
@media (max-width: 760px) {
  .res2 { gap: 14px; } .res2 .char { width: 88px; height: 88px; } .res2 h1 { font-size: 44px; } .res2 .big { display: block; } .res2 .big span { font-size: 16px; display: block; }
  .res-actions .btn { flex: 1 1 45%; } .res-actions .btn.signal { flex: 1 1 100%; }
  .deb { grid-template-columns: 1fr; gap: 14px; }
  .qcard2 { padding: 16px; } .qcard2 .qhead { flex-direction: column-reverse; gap: 8px; } .qcard2 .qpct { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .qcard2 h3 { font-size: 18px; } .qa { grid-template-columns: 1fr; gap: 0; } .qa > div + div .lbl2:first-child { margin-top: 14px; }
  .qcard2 .qact { flex-direction: column; align-items: stretch; } .qcard2 .qact .btn.link { align-self: center; }
}
details.more { margin: 4px 0 10px; } details.more > summary { cursor: pointer; font-size: 14px; color: var(--info); font-weight: 650; }
details.more > p { margin: 6px 0 0; }
select { text-overflow: ellipsis; }
/* тёмная тема: реплика без резкой обводки, выбранное в меню приглушено */
:root[data-theme="dark"] .bubble { border-color: var(--line); }
:root[data-theme="dark"] .msg.me { background: #33434F; color: #F2F5F8; }
@media (max-width: 700px) {
  .sect.card > summary { flex-wrap: wrap; position: relative; padding-right: 30px; row-gap: 2px; }
  .sect.card > summary h2 { flex: 1 1 100%; }
  .sect.card > summary .sum { flex: 1 1 100%; margin-left: 0; text-align: left; }
  .sect.card > summary::after { position: absolute; right: 4px; top: 22px; margin: 0; }
  .res-actions .btn { font-size: 15px; padding: 0 10px; }
}
main { padding-bottom: 96px; }
.upcoming div { background: var(--bar); }

/* ===================== версия 5: портал (с 6.2.7 — SAYFE.PRO), широкий экран, разговор с маскотом, тренинг, создание с ИИ ===================== */
/* Широкий экран: страница занимает ширину окна, содержимое расходится по колонкам, а на очень широких мониторах всё крупнее. */
:root { --z: 1; --page: 1060px; --vh: calc(100vh / var(--z)); --dvh: calc(100vh / var(--z)); }
/* 6.2.4: высота окна с поправкой на увеличение широких экранов (body { zoom }) — иначе 100dvh внутри увеличенной страницы
   выходит на 10–35 % выше окна и страница уезжает вниз */
@supports (height: 100dvh) { :root { --dvh: calc(100dvh / var(--z)); } }
@media (min-width: 1500px) { :root { --page: min(2400px, 100% - 112px); } }
@media (min-width: 2000px) { :root { --z: 1.1; } }
@media (min-width: 2500px) { :root { --z: 1.2; } }
@media (min-width: 3200px) { :root { --z: 1.35; } }
body { zoom: var(--z); }
main { max-width: var(--page); }
@media (min-width: 761px) { .top { padding-inline: max(24px, calc((100% - var(--page)) / 2 + 28px)); } }
body.in-test main { max-width: 1060px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chip.warn { background: var(--signal-soft); color: var(--warn-ink); white-space: normal; }
.chk { display: flex; gap: 10px; align-items: center; min-height: 40px; cursor: pointer; font-weight: 500; }
.chk input { width: 20px; height: 20px; min-height: 20px; flex: none; accent-color: var(--ink); }
.btn.link.danger { color: var(--bad); }
.packsel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; font-weight: 700; font-size: 14px; }
.packsel select { flex: 1 1 240px; max-width: 520px; min-width: 0; }
.check-grid { display: grid; gap: 18px; }
.check-grid > .panel:first-child { max-width: 640px; }
.study-grid { display: grid; gap: 16px; }

/* «Сегодня»: на узком экране блоки идут столбиком в прежнем порядке, на широком — колонки */
.today { display: flex; flex-direction: column; }
.t-main, .t-side { display: contents; }
.today .hero { order: 1; } .today .plan { order: 2; } .today .strip { order: 3; } .today .warn.panel { order: 4; } .today .tips { order: 5; }
.t-mentor { display: none; }
@media (min-width: 1500px) {
  .today { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .t-main, .t-side { display: block; min-width: 0; }
  .t-side .strip { grid-template-columns: 1fr 1fr !important; }
  .t-side .strip > div:nth-child(odd) { border-left: 0; }
  .t-side .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .today .hero { grid-template-columns: 150px 1fr; } .today .hero .char { width: 150px; height: 150px; }
  .sect .topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
  .panel > .topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
  .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .check-grid { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 24px; align-items: start; }
  .study-grid { grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); gap: 24px; align-items: start; }
  .study-grid .material { max-width: none; } .study-grid > .panel:last-child { position: sticky; top: 84px; margin-top: 0 !important; }
  #rlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; } #rlist .qcard2 { margin-bottom: 0; }
  .search { max-width: 820px; }
}
@media (min-width: 2000px) {
  .today { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .95fr); }
  .t-mentor { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); position: sticky; top: 84px; }
  .t-mentor .chat { max-height: calc(var(--vh) - 430px); overflow-y: auto; max-width: none; }
  .t-mentor .chat:empty { display: none; }
  .t-mentor .composer { position: static; background: transparent; max-width: none; padding-bottom: 0; }
  body[data-nav="home"] .fab { display: none; }
  .sect .topics, .panel > .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Разговор: маскот главный, текст — по кнопке */
body.live-on main { max-width: var(--page); padding-bottom: 20px; }
.ttoggle { display: inline-flex; align-items: center; gap: 8px; }
.ttoggle[aria-pressed="true"] { background: var(--sunken); }
.ttoggle.low { display: none; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 12px; }
.live-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: calc(var(--vh) - 150px); min-width: 0; }
.live2 .live-stage { padding: 0 0 6px; }
.live2 .live-stage .char { width: clamp(190px, min(calc(var(--vh) * .42), 70vw), 460px); height: auto; aspect-ratio: 1; }
.live2 .live-status { font-size: clamp(20px, calc(var(--vh) * .032), 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; min-height: 1.25em; }
.live2 .live-meter { width: min(420px, 70%); height: 10px; border-radius: 5px; margin-top: 6px; }
.live2 .live-controls { position: static; background: transparent; width: 100%; max-width: 760px; padding: 14px 0 6px; }
.live2 .live-controls .btn.signal { min-height: 60px; font-size: 19px; }
.live2 #lhint { text-align: center; max-width: 640px; margin: 4px auto 0; font-size: 15px; }
.live-text { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; overflow-y: auto; min-width: 0; }
.live-text[hidden] { display: none; }
.live-text h2 { font-size: 17px; margin: 0 0 12px; }
.live-text .chat { max-width: none; margin: 0; }
.live-text .msg { max-width: 94%; }
@media (min-width: 1000px) {
  .live2.show-text .live-grid { grid-template-columns: minmax(0, 1fr) minmax(400px, 38%); }
  .live-text { height: calc(var(--vh) - 150px); position: sticky; top: 12px; }
}
@media (max-width: 999px) {
  .live2.show-text .live-main { min-height: 0; }
  .live2.show-text .live-stage .char { width: 132px; }
  .live2.show-text #lhint { display: none; }
}
@media (max-width: 600px) {
  .runbar .ttoggle { display: none; }
  .ttoggle.low { display: inline-flex; justify-content: center; width: 100%; max-width: 420px; margin-top: 4px; }
  .live-main { min-height: calc(var(--vh) - 120px); }
}
/* тренинг: ход, шкала попыток, объяснение */
.steps5 { list-style: none; display: flex; gap: 6px; padding: 0; margin: 12px 0 2px; flex-wrap: wrap; justify-content: center; counter-reset: s; }
.steps5 li { counter-increment: s; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 8px; border: 1px dashed var(--line-2); color: var(--muted); }
.steps5 li::before { content: counter(s) ". "; }
.steps5 li.done { border: 1px solid transparent; background: var(--sunken); color: var(--ink-2); }
.steps5 li.on { border: 2px solid var(--ink); background: var(--surface); color: var(--ink); padding: 5px 11px; }
@media (max-width: 600px) { .steps5 li { font-size: 12.5px; padding: 4px 9px; } .steps5 li.on { padding: 3px 8px; } }
.reps { display: grid; gap: 6px; margin: 4px 0 0; }
.rep { display: grid; grid-template-columns: 108px 1fr 62px; gap: 10px; align-items: center; font-size: 14px; }
.rep span { color: var(--ink-2); font-weight: 600; } .rep b { text-align: right; font-weight: 800; }
.rep-bar { position: relative; height: 10px; border-radius: 5px; background: var(--sunken); }
.rep-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--bar); }
.rep.ok .rep-bar i { background: var(--good); }
.rep-bar u { position: absolute; left: 80%; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.rep.now b { color: var(--muted); font-weight: 600; }
.explain { background: var(--plate); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; }
.explain .lbl2 { margin-top: 0; } .explain p { margin: 0; line-height: 1.55; }

/* Вход: SAYFE.PRO */
body.auth-on .top { display: none; } body.auth-on main { max-width: none; padding: 0; }
body.auth-on .fab { display: none; }
.auth2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: var(--vh); }
.brandp { background: #16264F; color: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 48px; }
.brandp-in { max-width: 580px; }
.brand-row { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.brand-face { width: 124px; height: 124px; border-radius: 16px; background: #EEF1F4; display: grid; place-items: center; flex: none; }
.brand-face .char { width: 108px; height: 108px; }
.wm b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.wm span { display: block; font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #C9D3EA; margin-top: 8px; }
.brand-h { font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.brand-tag { font-size: 19px; line-height: 1.45; color: #DCE3F3; margin: 0; padding-left: 16px; border-left: 4px solid #FFC20E; }
.formp { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.formp-in { width: 100%; max-width: 420px; }
.formp h1 { margin-top: 0; }
@media (max-width: 860px) {
  .auth2 { grid-template-columns: 1fr; min-height: 0; }
  .brandp { padding: 22px 20px 24px; justify-content: flex-start; }
  .brand-row { gap: 14px; margin-bottom: 16px; } .brand-face { width: 72px; height: 72px; border-radius: 12px; } .brand-face .char { width: 62px; height: 62px; }
  .wm b { font-size: 30px; } .wm span { font-size: 13px; margin-top: 4px; }
  .brand-h { font-size: 21px; margin-bottom: 12px; } .brand-tag { font-size: 16px; }
  .formp { padding: 22px 16px 40px; align-items: flex-start; }
}

/* Создание тестов и собеседований с ИИ */
.gen-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.gen-head > div { flex: 1 1 300px; min-width: 0; } .gen-head h2 { font-size: 24px; overflow-wrap: anywhere; }
.gen-head .btn.signal { min-height: 52px; font-size: 17px; padding: 0 24px; }
.gen-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 14.5px; font-weight: 700; }
.gen-steps li { padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--muted); }
.gen-steps li.done { border: 1px solid transparent; background: var(--sunken); color: var(--ink-2); }
.gen-steps li.on { border: 2px solid var(--ink); background: var(--surface); color: var(--ink); padding: 9px 13px; }
.gen-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1100px) { .gen-grid { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); } }
@media (min-width: 2000px) { #glist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; } #glist .gen-item { margin-bottom: 0; } }
@media (max-width: 700px) { .gen-steps { grid-template-columns: 1fr; } .gen-head .btn.signal { width: 100%; } }
.gen-set h2 { font-size: 19px; }
.gen-set fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.gen-set legend { padding: 0; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.gen-file { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 14px; }
.gen-file svg { flex: none; margin-top: 2px; } .gen-file > div { flex: 1; min-width: 0; }
.gen-file b { display: block; font-weight: 700; overflow-wrap: anywhere; } .gen-file span { display: block; font-size: 14px; color: var(--ink-2); }
.gen-kind label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; margin-bottom: 8px; }
.gen-kind label:has(input:checked) { border: 2px solid var(--ink); background: var(--plate); padding: 10px 12px; }
.gen-kind input { width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.gen-kind b { display: block; font-weight: 700; } .gen-kind span span { display: block; font-size: 14px; color: var(--ink-2); }
.gen-set textarea { resize: vertical; line-height: 1.45; }
.gen-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 18px; }
.gen-bar b { font-weight: 800; margin-right: 6px; } .gen-bar .spacer { flex: 1; }
.gen-work { margin-bottom: 12px; padding: 14px 18px; }
.gen-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 18px; margin-bottom: 12px; min-width: 0; }
.gen-item.editing { border: 2px solid var(--ink); padding: 15px 17px 17px; }
.gen-item.rejected { opacity: .72; }
.gen-ih { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; color: var(--ink-2); }
.gen-item h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.gen-ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 15px; } .gen-ol li.ok { font-weight: 700; }
.gen-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.gen-opts { border: 0; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.gen-opts legend { padding: 0; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.gen-opts label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gen-opts input[type=radio], .gen-opts input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; flex: none; accent-color: var(--ink); }
.gen-opts input[type=text] { flex: 1; min-width: 0; }
@media (max-width: 700px) { .gen-opts { grid-template-columns: 1fr; } }
.gen-ai { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.gen-place { margin-top: 12px; background: var(--plate); border-radius: 10px; padding: 12px 14px; }
.gen-place p { margin: 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.gen-place mark { background: var(--signal-soft); color: var(--ink); padding: 1px 2px; border-radius: 3px; }
.live-text .chat:empty::before { content: "Здесь появятся вопросы и ваши ответы."; color: var(--muted); font-size: 15px; }
#lbody > p.soft, main > p.soft { max-width: 980px; }
@media (max-width: 999px) { .live-text { max-height: max(240px, calc(var(--vh) - 560px)); } }
div.chip { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
/* демо без регистрации */
.demo-note { border: 1px solid var(--line-2); border-left: 4px solid var(--signal); background: var(--surface); border-radius: var(--r-sm); padding: 12px 16px; margin: 0 0 18px; font-size: 15px; max-width: 1100px; }
.demo-try { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); display: grid; gap: 6px; }
.demo-try span { font-size: 14px; color: var(--ink-2); } .demo-try .btn { justify-self: start; margin-top: 4px; }
/* выбор характера наставника и короткая страница демо */
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pcard { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 12px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--surface);
  color: var(--ink); font: inherit; text-align: center; cursor: pointer; min-width: 0; }
.pcard:hover { border-color: var(--ink-2); }
.pcard.on { border: 2.5px solid var(--ink); padding: 13px 11px 15px; background: var(--plate); }
.pcard .char { width: 96px; height: 96px; }
.pcard b { font-size: 17px; font-weight: 800; margin-top: 4px; } .pcard > span:last-child { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.psay { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--plate); font-size: 16px; line-height: 1.5; }
.pchange { min-height: 32px !important; padding: 0 !important; font-size: 14px; margin-top: 4px; }
.sheet .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sheet .pcard .char { width: 76px; height: 76px; }
.demo { max-width: 1080px; margin: 0 auto; }
.demo h1 { font-size: 32px; margin-bottom: 6px; } .demo .lead { font-size: 17px; max-width: 760px; margin-bottom: 22px; }
.dstep { margin-bottom: 26px; }
.dstep h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin: 0 0 4px; }
.dn { width: 32px; height: 32px; border-radius: 50%; background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; font-size: 16px; font-weight: 800; flex: none; }
.dtopics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dtopic { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.dtopic:hover { border-color: var(--ink); }
.dtopic b { font-size: 19px; font-weight: 800; line-height: 1.25; } .dtopic span { font-size: 15px; color: var(--ink-2); line-height: 1.4; } .dtopic small { font-size: 13px; color: var(--muted); }
.dtopic i { font-style: normal; font-weight: 700; margin-top: auto; padding: 10px 22px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); }
@media (max-width: 760px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pcard .char { width: 76px; height: 76px; } .dtopics { grid-template-columns: 1fr; } .demo h1 { font-size: 26px; } }
body.guest #theme-btn { margin-left: auto; }
.etalon { margin-top: 12px; } .etalon .lbl2 { margin-top: 0; } .etalon .ansbox { font-size: 15px; }
.msg .etalon .ansbox { background: var(--surface); }

/* 5.5: вопрос с наставником внутри порции — на телефоне наставник меньше и сверху, чтобы длинный вопрос не сжимался */
@media (max-width: 600px) {
  .qcard .talk-head { align-items: flex-start; gap: 10px; }
  .qcard .talk-head .char { width: 52px; height: 52px; flex: 0 0 52px; }
  .qcard .talk-head .qtext { font-size: 16px; }
}

/* ============ 5.7: «Обучение» — что учим → где я → как учить → темы ============ */
@media (min-width: 761px) and (max-width: 1499px) { body.wide-learn { --page: min(1280px, 100% - 48px); } }
.facts span.good { background: var(--good-soft); color: var(--good); font-weight: 700; }
.chip.navy { background: #16264F; color: #FBF1DC; }
.chip.dash { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); }
.meter.ink i { background: var(--ink); }
.lrn { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.lrn-main { min-width: 0; display: grid; gap: 22px; }
.lrn-main > #found:empty { display: none; }
.lrn-col3 { grid-column: 2; min-width: 0; }
.lrn-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; }
.lrn-h h2 { margin: 0; font-size: 20px; }
.lrn-h .soft { font-size: 14px; }
.lrn-h .more { margin-left: auto; font-size: 14px; }
.lrn-h .subtabs { margin: 0 0 0 auto; }

/* слева: что учим */
.lrn-side { background: var(--plate); border: 1px solid var(--line); border-radius: 16px; padding: 16px 12px 12px; }
.lrn-side h2 { margin: 0 6px 10px; font-size: 18px; }
.lrn-side .search { margin: 0 2px; max-width: none; }
.lrn-side .search input { min-height: 44px; font-size: 14px; }
.lrn-side .search .btn { min-height: 44px; padding: 0 12px; font-size: 14px; }
.lrn-pick { display: none; }
.lrn-list h3 { margin: 0; padding: 14px 6px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lrn-list a { display: flex; flex-direction: column; gap: 6px; padding: 11px 13px; border-radius: 12px; border: 2px solid transparent; color: var(--ink); text-decoration: none; }
.lrn-list a:hover { background: var(--sunken); }
.lrn-list a.on { border-color: var(--ink); background: var(--surface); }
.lrn-list a b { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.lrn-list a.on b { font-weight: 800; }
.lrn-list a > span { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.lrn-list a > span > i { flex: 1; font-style: normal; white-space: nowrap; }
.lrn-list .meter { width: 64px; height: 6px; flex: none; }
.lrn-list u { width: 68px; text-align: right; text-decoration: none; font-weight: 700; white-space: nowrap; }
.lrn-list u.full { color: var(--good); }

/* где я */
.lrn-sum { padding: 22px 24px 20px; border-radius: 16px; }
.lrn-kind { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--ink-2); }
.lrn-sum h1 { margin: 6px 0 16px; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.lrn-now { display: flex; align-items: center; gap: 28px; }
.lrn-pct { flex: none; }
.lrn-pct b { display: block; font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.lrn-pct span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.lrn-prog { flex: 1; min-width: 0; }
.lrn-bar { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; background: var(--sunken); }
.lrn-bar i { display: block; height: 100%; }
.lrn-bar .s1, .lrn-leg i.s1 { background: var(--ink); }
.lrn-bar .s2, .lrn-leg i.s2 { background: color-mix(in srgb, var(--ink) 48%, var(--surface)); }
.lrn-bar .s3, .lrn-leg i.s3 { background: var(--sunken); }
.lrn-leg { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.lrn-leg span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.lrn-leg i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.lrn-leg i.s3 { border: 1px solid var(--line-2); }
.lrn-leg b { color: var(--ink); }
.lrn-hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.meter.two { display: flex; }
.meter.two i.seen { background: color-mix(in srgb, var(--ink) 30%, var(--sunken)); }
.lrn-rtl { list-style: none; margin: 0; padding: 0; }
.lrn-rt { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 64px; gap: 10px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.lrn-rt.head { padding: 0 8px 8px; font-size: 13px; font-weight: 650; color: var(--muted); border-bottom-color: var(--line-2); }
.lrn-rt .r { text-align: right; white-space: nowrap; }
.lrn-rt .nm { overflow-wrap: anywhere; font-weight: 600; }
.lrn-rt.me { background: var(--signal-soft); border-radius: 8px; }
.lrn-rate p.soft.small { margin: 10px 0 0; }
.lrn-facts { flex: none; display: flex; gap: 24px; margin: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.lrn-facts dt { font-size: 13px; color: var(--muted); white-space: nowrap; }
.lrn-facts dd { margin: 0; font-size: 17px; font-weight: 800; white-space: nowrap; }
.lrn-next { margin-top: 20px; padding: 12px 14px 12px 10px; border-radius: 12px; background: var(--paper); display: flex; align-items: center; gap: 12px; }
.lrn-next [data-char] { flex: none; line-height: 0; }
.lrn-next .t { flex: 1; min-width: 0; }
.lrn-next small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.lrn-next .t b { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.lrn-next .btn { flex: none; min-height: 52px; padding: 0 26px; font-size: 17px; border-radius: 12px; }

/* как учить */
.lrn-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lrn-tiles.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lrn-tiles.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lrn-tiles li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lrn-tiles .no { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.lrn-tiles h3 { margin: 4px 0 0; font-size: 17px; line-height: 1.25; }
.lrn-tiles p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.lrn-tiles .data { margin: auto 0 8px; padding-top: 6px; font-size: 14px; font-weight: 700; }
.lrn-tiles .btn { width: 100%; min-height: 44px; }

/* темы и документы */
.lrn-topics, .lrn-rate { padding: 16px 0 0; border-radius: 16px; overflow: hidden; }
.lrn-topics .lrn-h, .lrn-rate .lrn-h { padding: 0 20px; margin-bottom: 12px; }
.lrn-cols, .lrn-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px 150px 92px 100px 20px; gap: 16px; align-items: center; }
.lrn-cols { padding: 0 20px 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lrn-cols .r, .lrn-row .cnt, .lrn-row .acc { text-align: right; }
.lrn-topics ul { list-style: none; margin: 0; padding: 0; }
.lrn-topics li { border-top: 1px solid var(--line); }
.lrn-row { width: 100%; min-height: 56px; padding: 8px 20px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.lrn-row:hover, .lrn-row[aria-expanded=true] { background: var(--plate); }
.lrn-row > b { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.lrn-row .meter { height: 8px; }
.lrn-row .cnt, .lrn-row .acc { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.lrn-row .cnt b { color: var(--ink); }
.lrn-row .chev { color: var(--ink-2); transition: transform .15s; }
.lrn-row[aria-expanded=true] .chev { transform: rotate(180deg); }
.lrn-open { padding: 4px 20px 16px; background: var(--plate); display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.lrn-open[hidden] { display: none; }
.lrn-open .soft { font-size: 14px; flex: 1 1 260px; }
.lrn-open .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.lrn-all { border-top: 1px solid var(--line); padding: 10px 20px; }
/* у документов названия длинные — название отдельной строкой на любой ширине */
.lrn-topics.docs .lrn-cols { display: none; }
.lrn-topics.docs .lrn-row { grid-template-columns: auto minmax(0, 1fr) auto auto 18px; grid-template-areas: "name name name name chev" "st bar cnt acc acc"; gap: 8px 12px; padding: 12px 20px; }
.lrn-topics.docs .lrn-row > b { grid-area: name; }
.lrn-topics.docs .lrn-row .st { grid-area: st; }
.lrn-topics.docs .lrn-row .meter { grid-area: bar; }
.lrn-topics.docs .lrn-row .cnt { grid-area: cnt; }
.lrn-topics.docs .lrn-row .acc { grid-area: acc; min-width: 44px; }
.lrn-topics.docs .lrn-row .chev { grid-area: chev; align-self: start; margin-top: 2px; }
.lrn-rate { padding: 16px 20px 16px; }
.lrn-rate .lrn-h { padding: 0; }
.lrn-rate .tbl td, .lrn-rate .tbl th { padding-left: 6px; padding-right: 6px; }

/* очень широкий экран: рейтинг — третьей колонкой */
@media (min-width: 1900px) {
  .lrn.has-rate { grid-template-columns: 340px minmax(0, 1fr) 420px; }
  .lrn-col3 { grid-column: 3; }
  .lrn-side { width: auto; }
}
@media (max-width: 1180px) {
  .lrn-now { flex-wrap: wrap; gap: 16px 24px; }
  .lrn-facts { flex: 1 1 100%; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 10px 24px; }
  .lrn-tiles, .lrn-tiles.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lrn-cols { display: none; }
  .lrn-row { grid-template-columns: auto minmax(0, 1fr) auto auto 18px; grid-template-areas: "name name name name chev" "st bar cnt acc acc"; gap: 8px 12px; padding: 12px 20px; }
  .lrn-row > b { grid-area: name; }
  .lrn-row .st { grid-area: st; }
  .lrn-row .meter { grid-area: bar; }
  .lrn-row .cnt { grid-area: cnt; }
  .lrn-row .acc { grid-area: acc; }
  .lrn-row .chev { grid-area: chev; align-self: start; margin-top: 2px; }
}
/* телефон и узкое окно: список сворачивается в кнопку «Что учим — сменить» */
@media (max-width: 900px) {
  .lrn { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lrn-col3 { grid-column: 1; }
  .lrn-main { gap: 16px; }
  .lrn-side { background: transparent; border: 0; padding: 0; }
  .lrn-side h2 { display: none; }
  .lrn-side .search { margin: 0 0 12px; }
  .lrn-pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
  .lrn-pick > span { flex: 1; min-width: 0; }
  .lrn-pick small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .lrn-pick b { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
  .lrn-pick em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--info); }
  .lrn-pick[aria-expanded=true] .chev { transform: rotate(180deg); }
  .lrn-list { display: none; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px 8px; }
  .lrn-list.open { display: block; }
  .lrn-sum { padding: 16px; }
  .lrn-sum h1 { font-size: 22px; margin-bottom: 12px; }
  .lrn-now { gap: 12px; }
  .lrn-pct { display: flex; align-items: flex-end; gap: 10px; flex: 1 1 100%; }
  .lrn-pct b { font-size: 40px; }
  .lrn-pct span { margin: 0 0 3px; }
  .lrn-prog { flex: 1 1 100%; }
  .lrn-bar { height: 12px; }
  .lrn-leg { justify-content: space-between; font-size: 13px; gap: 4px 10px; }
  .lrn-next { flex-wrap: wrap; background: transparent; padding: 14px 0 0; margin-top: 14px; border-top: 1px solid var(--line); border-radius: 0; }
  .lrn-next .t { flex: 1 1 60%; }
  .lrn-next .btn { flex: 1 1 100%; }
  .lrn-h .more { margin-left: 0; flex: 1 1 100%; }
  .lrn-h .subtabs { margin: 6px 0 0; flex: 1 1 100%; }
  /* способы — строками */
  .lrn-tiles, .lrn-tiles.n3, .lrn-tiles.n2 { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .lrn-tiles li { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 14px 12px 16px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
  .lrn-tiles li:first-child { border-top: 0; }
  .lrn-tiles .no { grid-row: 1 / span 2; }
  .lrn-tiles h3 { margin: 0; font-size: 16px; grid-column: 2; }
  .lrn-tiles p { display: none; }
  .lrn-tiles .data { margin: 0; padding: 0; font-weight: 500; color: var(--ink-2); grid-column: 2; }
  .lrn-tiles .btn { grid-column: 3; grid-row: 1 / span 2; width: auto; padding: 0 14px; font-size: 14px; }
  /* темы — в две строки */
  .lrn-topics .lrn-h { padding: 0 16px; }
  .lrn-row, .lrn-topics.docs .lrn-row { grid-template-columns: auto minmax(0, 1fr) auto 18px; grid-template-areas: "name name name chev" "st bar cnt cnt"; gap: 8px 10px; padding: 12px 16px; }
  .lrn-row .acc, .lrn-topics.docs .lrn-row .acc { display: none; }
  .lrn-open { padding: 0 16px 14px; }
  .lrn-open .acts { flex: 1 1 100%; display: grid; gap: 8px; }
  .lrn-open .acts .btn { width: 100%; min-height: 44px; }
  .lrn-all { padding: 10px 16px; }
  .lrn-rate { padding: 16px; }
}

/* ===================== 6.0: план подготовки ===================== */
@media (min-width: 761px) and (max-width: 1499px) { body.wide-plan { --page: min(1440px, 100% - 48px); } }
.pl-head, .pl-grid { max-width: 1760px; margin-inline: auto; }
.pl-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 16px; }
.pl-head h1 { margin: 0; }
.pl-head .soft { font-size: 15px; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.pl-left { display: grid; gap: 18px; min-width: 0; }
.pl-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 12px; }
.pl-h h2 { margin: 0; font-size: 20px; }
.pl-h .soft { font-size: 14px; }
.pl-secs { padding: 0; overflow: hidden; }
.pl-secs .pl-h { padding: 18px 20px 6px; }
.pl-secs ul { list-style: none; margin: 0; padding: 0; }
.pl-cap { padding: 10px 20px 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pl-cap.sep { border-top: 1px solid var(--line); padding-top: 16px; }
.pl-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 120px 210px; gap: 14px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.pl-chk { position: relative; width: 28px; height: 28px; cursor: pointer; }
.pl-chk input { position: absolute; inset: 0; opacity: 0; width: 28px; height: 28px; margin: 0; cursor: pointer; }
.pl-chk span { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: transparent; box-sizing: border-box; }
.pl-chk input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.pl-chk input:disabled + span { background: var(--sunken); border-color: var(--line-2); color: var(--ink-2); }
.pl-chk input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.pl-t { min-width: 0; }
.pl-t b { display: block; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.pl-t span { display: block; font-size: 13px; color: var(--ink-2); }
.pl-n { font-size: 14px; color: var(--ink-2); text-align: right; line-height: 1.4; }
.pl-n b { color: var(--ink); }
.pl-d { text-align: right; min-width: 0; }
.pl-date { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pl-date.lock { background: var(--sunken); color: var(--ink-2); border-color: transparent; cursor: default; }
.pl-date.own { padding: 0 4px 0 0; gap: 0; }
.pl-date.own button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; min-height: 38px; cursor: pointer; }
.pl-date.own .x { padding: 0 8px; color: var(--ink-2); }
.pl-dinp { min-height: 40px; max-width: 190px; }
.pl-box { padding: 18px 20px 20px; }
.pl-daterow { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pl-daterow .field { margin: 0; flex: 0 1 260px; }
.pl-daterow p { margin: 0 0 12px; font-size: 14px; flex: 1 1 240px; }
.pl-lbl { font-size: 14px; font-weight: 700; margin: 4px 0 8px; }
.pl-lbl + .pl-chips + .pl-lbl { margin-top: 18px; }
.pl-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dchip { min-width: 52px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.dchip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.pl-calc { padding: 18px 20px 20px; position: sticky; top: 84px; }
.pl-calc h2 { margin: 0 0 12px; font-size: 20px; }
.pl-say { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--paper); }
.pl-say .char { width: 58px; height: 58px; flex: none; }
.pl-say p { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
.pl-sug { margin: 12px 0 4px; gap: 8px; }
.pl-goals { list-style: none; margin: 8px 0 0; padding: 0; }
.pl-goals li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px 12px; }
.pl-goals li > b { font-size: 16px; }
.pl-goals .t { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pl-goals .v { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.pl-cps { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.pl-cps ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); line-height: 1.6; }
.pl-sum { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.pl-act { margin-top: 16px; gap: 10px; }
.pl-act .btn.signal { flex: 1 1 auto; min-height: 52px; font-size: 17px; }
.pl-act .btn:not(.signal) { min-height: 52px; }
@media (max-width: 1100px) { .pl-grid { grid-template-columns: minmax(0, 1fr); } .pl-calc { position: static; } }
@media (max-width: 700px) {
  .pl-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 16px; align-items: start; }
  .pl-n { grid-column: 3; grid-row: 1; font-size: 13px; }
  .pl-d { grid-column: 2 / -1; text-align: left; }
  .pl-d:empty { display: none; }
  .pl-secs .pl-h { padding: 16px 16px 6px; } .pl-cap { padding-inline: 16px; }
  .pl-box, .pl-calc { padding: 16px; }
  .dchip { min-width: 46px; padding: 0 10px; }
  .pl-goals li { grid-template-columns: 50px minmax(0, 1fr); }
}

/* ===================== 6.0: «Сегодня» по плану ===================== */
.tp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.tp-main, .tp-side { display: grid; gap: 18px; min-width: 0; }
.tp-mentor { display: none; }
.tp-hero { display: flex; gap: 22px; align-items: center; padding: 22px 24px; }
.tp-hero > [data-char] .char, .tp-hero > [data-char] svg { width: 128px; height: 128px; }
.tp-ht { flex: 1; min-width: 0; }
.tp-day { font-size: 14px; font-weight: 700; color: var(--muted); }
.tp-ht h1 { margin: 2px 0 6px; font-size: 30px; line-height: 1.2; }
.tp-ht p { margin: 0 0 16px; font-size: 16px; color: var(--ink-2); }
.tp-ht .row { gap: 10px; align-items: center; }
.tp-go { min-height: 54px; font-size: 18px; padding: 0 26px; gap: 10px; display: inline-flex; align-items: center; }
.tp-ht .btn:not(.signal):not(.link) { min-height: 54px; }
.tp-ht .pchange { margin-left: auto; }
.tp-steps { padding: 0; overflow: hidden; }
.tp-sh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding: 18px 20px 12px; }
.tp-sh h2 { margin: 0; font-size: 20px; white-space: nowrap; }
.tp-sh .c { margin-left: auto; font-size: 15px; font-weight: 700; white-space: nowrap; }
.tp-sh .n { flex: 1 1 100%; font-size: 14px; }
.tp-steps ol { list-style: none; margin: 0; padding: 0; }
.tp-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr) 64px 160px; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.tp-steps li.next { background: var(--signal-soft); }
.tp-n { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 800; box-sizing: border-box; }
.tp-n.next { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.tp-n.done { background: var(--good-soft); border-color: transparent; color: var(--good); }
.tp-t { min-width: 0; }
.tp-t b { display: block; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.tp-t span { display: block; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.tp-steps li.done .tp-t b { color: var(--ink-2); }
.tp-m { font-size: 15px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.tp-a { text-align: right; }
.tp-ok { font-size: 14px; font-weight: 700; color: var(--good); }
.tp-week { padding: 18px 20px 20px; }
.tp-wh { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; }
.tp-wh h2 { margin: 0; font-size: 20px; }
.tp-wh .soft { font-size: 14px; }
.tp-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tp-days li { border-radius: 12px; padding: 8px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.tp-days li span { font-size: 13px; font-weight: 700; }
.tp-days li b { font-size: 18px; }
.tp-days li small { font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.tp-days li em { font-size: 11px; line-height: 1.25; font-style: normal; overflow-wrap: anywhere; }
.tp-days li.d-ok { background: var(--good-soft); color: var(--good); border-color: transparent; }
.tp-days li.d-miss { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.tp-days li.d-today { border: 2px solid var(--ink); }
.tp-days li.d-check { background: var(--signal-soft); color: var(--warn-ink); border-color: transparent; }
.tp-days li.d-off, .tp-days li.d-none { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.tp-goals, .tp-cps, .ap-plan { padding: 18px 20px; }
.tp-gh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.tp-gh h2, .tp-cps h2, .ap-plan h2 { margin: 0; font-size: 20px; }
.tp-gh a { margin-left: auto; font-size: 14px; font-weight: 700; }
.tp-goals ul, .tp-cps ul, .tp-goals-l { list-style: none; margin: 0; padding: 0; }
.tp-goals li, .tp-goals-l li { padding: 12px 0; border-top: 1px solid var(--line); }
.tp-goals li:first-child, .tp-goals-l li:first-child { border-top: 0; }
.tp-gd { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.tp-gd .chip { margin-left: auto; }
.tp-goals li > b, .tp-goals-l li > b { display: block; font-size: 16px; line-height: 1.3; margin: 4px 0 8px; overflow-wrap: anywhere; }
.tp-gb { display: flex; align-items: center; gap: 10px; }
.tp-gb .meter { flex: 1; }
.tp-gb b { font-size: 14px; width: 44px; text-align: right; }
.tp-goals p { margin: 8px 0 0; }
.tp-cps li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tp-cps h2 { margin-bottom: 6px; }
@media (max-width: 1100px) { .tp { grid-template-columns: minmax(0, 1fr); } .tp-side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; } }
@media (min-width: 2000px) {
  .tp { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, .95fr); }
  .tp-mentor { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); position: sticky; top: 84px; }
}
@media (max-width: 700px) {
  .tp-hero { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .tp-hero > [data-char] .char, .tp-hero > [data-char] svg { width: 72px; height: 72px; }
  .tp-ht { flex: 1 1 200px; }
  .tp-ht h1 { font-size: 21px; }
  .tp-ht p { font-size: 14px; margin-bottom: 12px; }
  .tp-ht .row { flex-direction: column; align-items: stretch; }
  .tp-go { width: 100%; justify-content: center; }
  .tp-ht .pchange { margin-left: 0; align-self: flex-start; }
  .tp-sh { padding: 14px 16px 10px; }
  .tp-steps li { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 16px; align-items: start; }
  .tp-n { width: 28px; height: 28px; font-size: 14px; }
  .tp-t b { font-size: 15px; } .tp-t span { font-size: 13px; }
  .tp-m { font-size: 14px; }
  .tp-a { grid-column: 2 / -1; text-align: left; }
  .tp-week, .tp-goals, .tp-cps { padding: 14px 16px; }
  .tp-days { gap: 4px; }
  .tp-days li { padding: 6px 0; border-radius: 10px; }
  .tp-days li b { font-size: 16px; }
  .tp-days li small, .tp-days li em { display: none; }
  .tp-side { grid-template-columns: minmax(0, 1fr); }
}

/* ===================== 6.0: раздел — «Учиться» и «Проверить себя» ===================== */
.lrn-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.lrn-learn, .lrn-check { padding: 18px 20px 8px; }
.lrn-check:focus { outline: 3px solid var(--signal); outline-offset: 2px; }
.lrn-l, .lrn-c { list-style: none; margin: 0; padding: 0; }
.lrn-l li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.lrn-l .no { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.lrn-l .t, .lrn-c .t { min-width: 0; }
.lrn-l .t b, .lrn-c .t b { display: block; font-size: 16px; line-height: 1.3; }
.lrn-l .t span, .lrn-c .t span { display: block; font-size: 13px; color: var(--ink-2); }
.lrn-c li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.lrn-c .b { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.lrn-c .b select { min-height: 38px; width: auto; font-size: 14px; }
.lrn-c .x { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.lrn-past { grid-column: 1 / -1; display: grid; gap: 2px; }
.lrn-past a { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 2px 0; }
.lrn-past a b { white-space: nowrap; }
#tkbox { padding: 4px 0 12px; }
.lrn-plan { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.lrn-tg { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.lrn-tg .subtabs { margin: 0; }
.lrn-rt.g { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 190px) 120px 70px; }
.lrn-rt .gr { font-size: 14px; overflow-wrap: anywhere; }
.lrn-fold { margin-top: 8px; border-top: 1px solid var(--line); }
.lrn-fold summary { padding: 12px 6px 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style-position: inside; }
.lrn-planlink { display: block !important; margin-top: 10px; padding: 10px 13px !important; text-align: center; border: 1px dashed var(--line-2) !important; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--ink-2) !important; }
@media (max-width: 1180px) { .lrn-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .lrn-learn, .lrn-check { padding: 14px 16px 6px; }
  .lrn-l li { gap: 10px; }
  .lrn-l li .btn { padding: 0 10px; }
  .lrn-c li { grid-template-columns: minmax(0, 1fr); }
  .lrn-c .b { justify-content: flex-start; }
  .lrn-rt.g { grid-template-columns: 36px minmax(0, 1fr) auto 44px; }
  .lrn-rt.g .gr { display: none; }
  .lrn-tg { margin-left: 0; }
}

/* ===================== 6.0: администрирование — группы и карточка человека ===================== */
.ag { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.ag-side { padding: 12px; background: var(--plate); }
.ag-side h2 { margin: 4px 6px 8px; font-size: 18px; }
.ag-side nav a { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border-radius: 12px; border: 2px solid transparent; color: var(--ink); text-decoration: none; }
.ag-side nav a.on { border-color: var(--ink); background: var(--surface); }
.ag-side nav a b { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.ag-side nav a span { font-size: 13px; color: var(--ink-2); }
.ag-new { display: grid; gap: 8px; margin: 10px 2px 2px; }
.ag-new input { min-height: 44px; }
.ag-side > p { margin: 12px 6px 4px; }
.ag-main { display: grid; gap: 18px; min-width: 0; }
.ag-head { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.ag-head .field { margin: 0; flex: 1 1 260px; }
.ag-head .field:nth-child(2) { flex: 0 1 240px; }
.ag-packs { padding: 16px 0 0; overflow: hidden; }
.ag-packs .lrn-h { padding: 0 20px; }
.ag-cols, .ag-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 150px 220px; gap: 14px; align-items: center; }
.ag-cols { padding: 0 20px 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ag-packs ul { list-style: none; margin: 0; padding: 0; }
.ag-row { padding: 8px 20px; border-top: 1px solid var(--line); }
.ag-row .t b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.ag-row .t span { font-size: 13px; color: var(--ink-2); }
.ag-row input[type=date] { min-height: 38px; max-width: 170px; }
.ag-row .soft.small { display: block; }
.ag-mem { padding: 18px 20px 14px; }
.ag-add { gap: 8px; margin-bottom: 8px; }
.ag-add select { flex: 1 1 240px; min-height: 44px; width: auto; }
.ag-ml { list-style: none; margin: 0; padding: 0; }
.ag-ml li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ava { width: 36px; height: 36px; border-radius: 50%; background: var(--sunken); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.ava.big { width: 56px; height: 56px; font-size: 20px; flex: none; }
.ag-del { margin-top: 0; }
.ap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.ap-main { display: grid; gap: 18px; min-width: 0; }
.ap-head { padding: 18px 20px; }
.ap-who { display: flex; align-items: center; gap: 16px; }
.ap-who h2 { margin: 0; font-size: 24px; }
.ap-groups { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ap-groups select { width: auto; min-height: 38px; }
.gchip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 4px 0 12px; border-radius: 8px; background: var(--sunken); font-size: 14px; font-weight: 700; }
.gchip button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.ap-acc { padding: 0; overflow: hidden; }
.ap-acc ul { list-style: none; margin: 0; padding: 0; }
.ap-cols, .ap-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px 100px 130px 150px; gap: 14px; align-items: center; }
.ap-cols { padding: 0 20px 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ap-row { padding: 10px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.ap-row .t b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.ap-row .t span { font-size: 13px; color: var(--ink-2); }
.ap-row .own { font-weight: 700; }
.ap-row .a { text-align: right; }
.ap-row .a .btn.link { font-size: 14px; }
.ap-plan { position: sticky; top: 84px; }
.ap-checks { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ap-checks h3 { margin: 0 0 6px; font-size: 15px; }
.ap-checks div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.ap-checks b { white-space: nowrap; }
.ginv { border: 0; padding: 0; margin: 0 0 12px; }
.ginv legend { font-size: 14px; font-weight: 700; margin-bottom: 4px; padding: 0; }
@media (max-width: 1100px) { .ag, .ap { grid-template-columns: minmax(0, 1fr); } .ap-plan { position: static; } }
@media (max-width: 760px) {
  .ag-cols, .ap-cols { display: none; }
  .ag-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 16px; }
  .ag-row .t { grid-column: 1 / -1; }
  .ag-row > span:nth-child(4) { grid-column: 1 / -1; }
  .ag-ml li { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .ag-ml li .soft.small, .ag-ml li .chip { grid-column: 2; }
  .ag-ml li .btn { grid-column: 3; grid-row: 1; }
  .ap-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 16px; }
  .ap-row .t { grid-column: 1 / -1; }
  .ap-row > span[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
  .ap-row .a { grid-column: 1 / -1; text-align: left; }
  .ap-acc .lrn-h { padding: 14px 16px 6px !important; }
}
.pl-grp { padding: 12px 20px 4px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 800; color: var(--ink-2); }
.pl-grp + .pl-row { border-top: 0; }
.lrn-list h4 { margin: 6px 0 0; padding: 6px 13px 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tp-wnote { display: none; margin: 0 0 10px; font-size: 13px; }
@media (max-width: 700px) { .tp-wnote { display: block; } .pl-grp { padding-inline: 16px; } }
.pl-n span { display: block; }
.pl-t b { overflow-wrap: break-word; }
@media (max-width: 700px) {
  .pl-row { grid-template-columns: 28px minmax(0, 1fr); }
  .pl-n { grid-column: 2; grid-row: auto; text-align: left; }
  .pl-n span { display: inline; }
  .pl-n span + span::before { content: " · "; }
}
.tp-gd .chip { white-space: nowrap; flex: none; }
.ap-row .chip, .ag-row .chip { white-space: normal; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.ap-cols, .ap-row { grid-template-columns: minmax(0, 1fr) minmax(0, 220px) 100px 130px 150px; }
.boil-say { color: var(--bad); font-weight: 800; }
.feedback .react .char[data-mood="boil"] { width: 92px; height: 92px; flex: none; margin: -14px 0 -10px -8px; }

/* ===== 6.1: «ИИ и голос» — пакеты, операторы, профиль узла ===== */
.m-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;margin:0 0 12px}.m-head h2{margin:0;font-size:22px}.m-head .btn{margin-left:auto}
.op-sec{padding:0;overflow:hidden;margin-bottom:18px}.op-sec>h3{margin:0;padding:16px 20px 10px;font-size:18px}
.op-cols,.op-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 124px 176px 336px;gap:14px;align-items:center}
.op-cols{padding:0 20px 8px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.op-row{padding:11px 20px;border-top:1px solid var(--line);font-size:14px}.op-row.sel{background:var(--signal-soft)}
.op-row b{display:block;font-size:15px}.op-row .t span,.op-row .mdl{color:var(--ink-2);font-size:13px;overflow-wrap:anywhere}
.op-row .a{display:flex;gap:6px;justify-content:flex-end;flex-wrap:nowrap;align-items:center}.op-row .a .btn{white-space:nowrap}.op-row .off{color:var(--muted)}
.op-edit{padding:18px 20px 20px;margin-bottom:18px}.op-edit h3{margin:0 0 4px;font-size:18px}
.g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}.g4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px}
.g3 .field,.g4 .field,.g2 .field{margin:0}.g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.keyline{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:12px 14px;border-radius:12px;background:var(--paper);margin:14px 0;font-size:14px}
.keyline code{background:var(--sunken);padding:3px 8px;border-radius:6px;font-size:13px}

.pk-roles{padding:0;overflow:hidden}.pk-cols,.pk-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:center}
.pk-cols{padding:0 20px 8px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.pk-row{padding:9px 20px;border-top:1px solid var(--line)}.pk-row b{display:block;font-size:15px}.pk-row .t span{font-size:13px;color:var(--ink-2)}
.pk-row select{min-height:40px;font-size:14px}.pk-cap{padding:10px 20px 6px;border-top:1px solid var(--line);font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:var(--paper)}
.pk-box{padding:18px 20px}.pk-box h3{margin:0 0 4px;font-size:18px}
.vrow{display:grid;grid-template-columns:150px minmax(0,1fr) 150px auto;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}.vrow select{min-height:40px;font-size:14px}
.tg{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}.tg select{width:auto;min-height:38px;font-size:14px}
.asg{display:grid;grid-template-columns:170px minmax(0,1fr);gap:10px 16px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.warnbox{padding:12px 14px;border-radius:12px;background:var(--bad-soft);color:var(--bad);font-size:14px;font-weight:600;margin:12px 0}
.okbox{padding:12px 14px;border-radius:12px;background:var(--good-soft);color:var(--good);font-size:14px;font-weight:600;margin:12px 0}
.np{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.np label{display:block;padding:16px;border:2px solid var(--line-2);border-radius:12px;background:var(--surface);cursor:pointer}
.np label.on{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink) inset}.np b{display:block;font-size:17px;margin-bottom:4px}.np span{font-size:13px;color:var(--ink-2)}
.np-t{width:100%;border-collapse:collapse;font-size:14px}.np-t th,.np-t td{padding:9px 10px;border-top:1px solid var(--line);text-align:center}.np-t th:first-child,.np-t td:first-child{text-align:left}
.np-t thead th{border-top:0;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.np-t .y{color:var(--good);font-weight:800}.np-t .n{color:var(--muted)}
.np input{width:18px;height:18px;min-height:0;padding:0;accent-color:var(--ink);vertical-align:-3px}.np-list{display:none}.frag{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:22px 0 8px}
.jr{width:100%;border-collapse:collapse;font-size:14px}.jr th,.jr td{padding:8px 10px;border-top:1px solid var(--line);text-align:right}.jr th:first-child,.jr td:first-child{text-align:left}.jr thead th{border-top:0;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
@media (max-width:900px){.op-cols,.pk-cols{display:none}.op-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:12px 16px}.op-row .t{grid-column:1/-1}.op-row .a{grid-column:1/-1;justify-content:flex-start}
 .g3,.g4,.g2{grid-template-columns:minmax(0,1fr)}.pk-row{grid-template-columns:minmax(0,1fr);gap:6px;padding:12px 16px}.pk-row select::before{content:attr(aria-label)}
 .vrow{grid-template-columns:minmax(0,1fr) auto;}.vrow>b{grid-column:1/-1}.asg{grid-template-columns:minmax(0,1fr)}.np{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .np-t{display:none}.np-list{display:block;font-size:14px;line-height:1.6}.np-list b{display:block;margin-top:8px}.np-t{font-size:12px;table-layout:fixed}.np-t th,.np-t td{padding:8px 2px;overflow-wrap:anywhere}.np-t th:first-child{width:36%}.np-t thead th{font-size:10px;letter-spacing:0}.jr thead th{font-size:10px;letter-spacing:0}.np b{font-size:15px}.keyline code{overflow-wrap:anywhere}.jr{font-size:12px}.jr th,.jr td{padding:8px 4px}.op-sec>h3{padding:14px 16px 8px}.op-edit,.pk-box{padding:16px}}
.aiv-tabs{margin-top:0}
.ag-side nav a{position:relative}.pk-ord{position:absolute;right:8px;top:8px;display:flex;gap:4px}
.pk-ord button{width:30px;height:30px;border:1px solid var(--line-2);border-radius:8px;background:var(--surface);color:var(--ink);font-size:15px;cursor:pointer;line-height:1}
.pk-ord button:disabled{opacity:.35;cursor:default}.ag-side nav a b{padding-right:72px}
.pk-vh{margin:14px 0 2px;font-size:13px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.vrow input{min-height:40px;font-size:14px}.pk-row select:disabled{opacity:.5}
.op-res{list-style:none;padding:0 20px 12px}.op-res .feedback{margin:0}
.op-models{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;max-height:220px;overflow:auto}.op-models .btn{font-weight:500;overflow-wrap:anywhere;text-align:left;height:auto;min-height:36px;white-space:normal}
.m-head select.btn{min-height:44px;font-weight:700;max-width:100%}
.op-edit textarea{min-height:64px}.asg .chk{display:inline-flex}
.np label{position:relative}
@media (max-width:900px){.m-head select.btn{margin-left:0!important;width:100%!important}.op-res{padding:0 16px 12px}.vrow select,.vrow input{min-width:0;width:100%}.vrow [data-r]{grid-column:1/-1}
 .np-t{display:none!important}.tg select{width:100%}.pk-cols{display:none}}
.op-edit,#oplisten .op-edit{scroll-margin-top:88px}.asg>span>.soft.small{display:block;margin-top:2px}.op-row .lnk-t{display:block}
@media (max-width:1180px) and (min-width:901px){.op-cols,.op-row{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 110px 150px 250px}.op-row .a{flex-wrap:wrap}}
@media (max-width:900px){.op-row .a{flex-wrap:wrap}.jr{table-layout:fixed}.jr th,.jr td{overflow-wrap:anywhere}.jr th:first-child{width:34%}}

/* ===== 6.2, этап 1: ошибки и тексты ===== */
/* «Проверить себя»: описание больше не сжимается в столбик по одному слову — кнопки уходят на свою строку, когда места мало */
.lrn-c li { display: flex; flex-wrap: wrap; }
.lrn-c .t { flex: 1 1 240px; }
.lrn-c .b { flex: 0 1 auto; }
.lrn-c .x { flex: 1 1 100%; }
/* «Спросить» на телефоне: квадратная кнопка с маскотом над нижней панелью; у страниц отступ снизу, чтобы она ничего не закрывала */
.fab .fab-m { display: none; }
@media (max-width: 760px) {
  .fab { width: 54px; height: 54px; padding: 0; border-radius: 12px; justify-content: center; right: 12px; bottom: calc(var(--tabs-h) + 12px + env(safe-area-inset-bottom)); }
  .fab b, .fab > svg { display: none; }
  .fab .fab-m { display: grid; place-items: center; }
  .fab .fab-m .char { width: 40px; height: 40px; }
  body.has-tabs:not(.in-test) #app { padding-bottom: calc(var(--tabs-h) + 84px + env(safe-area-inset-bottom)); }
}
/* разбор собеседования: «чего нельзя говорить» — один раз внизу, свёрнуто; ссылка на документ — мелкой строкой */
.rv-doc { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }
details.rv-crit { margin-top: 16px; }
details.rv-crit > summary { cursor: pointer; font-weight: 700; }
details.rv-crit { padding: 14px 18px; } details.rv-crit[open] > summary { margin-bottom: 10px; }

/* ===================== 6.2: новый вид — цвета из логотипа, три скругления, шапка с маскотом, экраны по макетам ===================== */
:root {
  --navy: #071E37; --tx: #0E2238; --tx2: #46566A; --mu: #66768A; --mu2: #8A97A6;
  --am: #FCAC01; --am-h: #F0A000; --am-t: #FFF4D9; --am-l: #FFE09A; --am-d: #8A5D00;
  --bg: #EEF1F5; --card: #FFFFFF; --soft: #F4F6F9; --ln: #E6EAF0; --ln2: #D6DDE6;
  --ok: #22703A; --ok-t: #E6F4EA; --bad-t: #FDECEC; --blue: #2B62B8; --blue-t: #EEF4FC; --ring0: #EEF1F5; --ring1: #CBD6E3;
  --r-card: 16px; --r-in: 12px; --r-ctl: 10px; --r-tag: 6px;
  --sh: 0 1px 2px rgba(7,30,55,.04), 0 2px 10px rgba(7,30,55,.04);
  --paper: #EEF1F5; --surface: #FFFFFF; --sunken: #F4F6F9; --line: #E6EAF0; --line-2: #D6DDE6;
  --ink: #0E2238; --ink-2: #46566A; --muted: #66768A;
  --signal: #FCAC01; --signal-ink: #1C1300; --signal-soft: #FFF4D9;
  --good: #22703A; --good-soft: #E6F4EA; --bad: #C4363B; --bad-soft: #FDECEC; --info: #2B62B8; --info-soft: #EEF4FC;
  --btn: #071E37; --btn-ink: #FFFFFF; --bar: #071E37; --plate: #F4F6F9; --warn-ink: #8A5D00;
  --r: 16px; --r-sm: 10px;
}
:root[data-theme="dark"] {
  --navy: #3B6BA5; --tx: #E8EEF5; --tx2: #B8C4D1; --mu: #93A1B0; --mu2: #75849A;
  --am: #FCAC01; --am-h: #F0A000; --am-t: #3A2E10; --am-l: #6B5214; --am-d: #F6C65A;
  --bg: #0D1520; --card: #162130; --soft: #1D2A3A; --ln: #283849; --ln2: #33465B;
  --ok: #57C285; --ok-t: #16301F; --bad-t: #3A1C1E; --blue: #7DB0EC; --blue-t: #172A40; --ring0: #223245; --ring1: #3F5873;
  --sh: 0 1px 2px rgba(0,0,0,.25), 0 2px 10px rgba(0,0,0,.2);
  --paper: #0D1520; --surface: #162130; --sunken: #1D2A3A; --line: #283849; --line-2: #33465B;
  --ink: #E8EEF5; --ink-2: #B8C4D1; --muted: #93A1B0; --signal-soft: #3A2E10; --good: #57C285; --good-soft: #16301F; --bad: #F07A6E; --bad-soft: #3A1C1E;
  --info: #7DB0EC; --info-soft: #172A40; --btn: #3B6BA5; --bar: #9CC0EA; --plate: #1D2A3A; --warn-ink: #F6C65A;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --navy: #3B6BA5; --tx: #E8EEF5; --tx2: #B8C4D1; --mu: #93A1B0; --mu2: #75849A;
    --am-t: #3A2E10; --am-l: #6B5214; --am-d: #F6C65A;
    --bg: #0D1520; --card: #162130; --soft: #1D2A3A; --ln: #283849; --ln2: #33465B;
    --ok: #57C285; --ok-t: #16301F; --bad-t: #3A1C1E; --blue: #7DB0EC; --blue-t: #172A40; --ring0: #223245; --ring1: #3F5873;
    --sh: 0 1px 2px rgba(0,0,0,.25), 0 2px 10px rgba(0,0,0,.2);
    --paper: #0D1520; --surface: #162130; --sunken: #1D2A3A; --line: #283849; --line-2: #33465B;
    --ink: #E8EEF5; --ink-2: #B8C4D1; --muted: #93A1B0; --signal-soft: #3A2E10; --good: #57C285; --good-soft: #16301F; --bad: #F07A6E; --bad-soft: #3A1C1E;
    --info: #7DB0EC; --info-soft: #172A40; --btn: #3B6BA5; --bar: #9CC0EA; --plate: #1D2A3A; --warn-ink: #F6C65A;
  }
}
body { background: var(--bg); color: var(--tx); }
svg.i { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* общие элементы во всём портале: карточки, кнопки, метки, поля */
.panel { border: 0; box-shadow: var(--sh); border-radius: var(--r-card); }
.btn { min-height: 48px; border-radius: var(--r-ctl); border: 0; background: var(--soft); color: var(--tx); font-weight: 700; box-shadow: none; }
.btn:hover { border-color: transparent; filter: brightness(.98); }
.btn.signal, .btn.y { background: var(--am); color: #1C1300; }
.btn.primary, .btn.dark { background: var(--navy); color: #fff; }
.btn.ghost, .btn.line { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ln); }
.btn.ghost:hover, .btn.line:hover { background: var(--soft); }
.btn.small, .btn.sm { min-height: 38px; height: 38px; padding: 0 14px; font-size: 14px; border-radius: var(--r-ctl); }
.btn.link { box-shadow: none; background: none; color: var(--blue); text-decoration: none; font-weight: 700; }
.btn.danger { color: var(--bad); }
.chip { border-radius: var(--r-tag); font-weight: 700; font-size: 12.5px; }
input, select, textarea { border: 1px solid var(--ln); border-radius: var(--r-ctl); background: var(--card); color: var(--tx); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-tag); line-height: 1.35; white-space: nowrap; }
.tag.ok { background: var(--ok-t); color: var(--ok); } .tag.bad { background: var(--bad-t); color: var(--bad); }
.tag.am, .tag.warn { background: var(--am-t); color: var(--am-d); } .tag.gr { background: var(--soft); color: var(--mu); }
.vlink { font-weight: 700; color: var(--blue); font-size: 14.5px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-decoration: none; }
.mark { background: linear-gradient(transparent 60%, var(--am-l) 60%); padding: 0 2px; }

/* шапка: логотип SAYFE.PRO, вкладки справа, профиль с инициалами */
.top { height: 68px; padding: 0 48px; gap: 24px; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 0; }
.top .logo { font-size: 18px; gap: 10px; color: var(--tx); }
.top .logo .brand-m { width: 36px; height: 36px; display: grid; place-items: center; }
.top .logo .brand-m svg { width: 36px; height: 36px; }
#theme-btn { display: none; }
.tabs { gap: 4px; }
.tabs a { padding: 9px 14px; border-radius: var(--r-ctl); font-weight: 600; color: var(--mu); }
.tabs a svg { width: 19px; height: 19px; }
.tabs a.on { background: var(--card); color: var(--tx); box-shadow: 0 1px 2px rgba(7,30,55,.06); border-radius: var(--r-ctl); }
.tabs a:not(.on):hover { background: color-mix(in srgb, var(--card) 50%, transparent); }
.pmenu > summary { height: auto; padding: 5px 12px 5px 5px; gap: 10px; border: 0; border-radius: var(--r-ctl); background: var(--card); box-shadow: 0 1px 2px rgba(7,30,55,.06); font-weight: 700; font-size: 14px; }
.pmenu > summary .chev { display: none; }
.pmenu .ava { width: 30px; height: 30px; border-radius: 8px; background: #E3E8EF; color: var(--tx); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
:root[data-theme="dark"] .pmenu .ava { background: var(--soft); }
.top .stepper { display: flex; align-items: center; gap: 10px; margin-left: 24px; }
.top .stepper em { font-style: normal; }
.top .stepper span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--mu2); }
.top .stepper span i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 12.5px; background: #E3E8EF; color: var(--mu); }
.top .stepper span.on { color: var(--tx); } .top .stepper span.on i { background: var(--am); color: #1C1300; }
.top .stepper span.done i { background: var(--navy); color: #fff; }
.top .stepper span.done i svg { width: 13px; height: 13px; stroke-width: 3.2; }
.top .stepper b { width: 28px; height: 2px; background: var(--ln2); border-radius: 2px; }
.top .skip { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--mu); background: none; border: 0; cursor: pointer; font-family: inherit; }
.top .admlbl { font-size: 13px; font-weight: 800; color: var(--am-d); background: var(--am-t); padding: 4px 9px; border-radius: 7px; }
body.onb .tabs, body.onb #top-profile { display: none !important; }
main { max-width: 1270px; padding: 8px 48px 110px; }
body.in-test main { max-width: 1270px; }
@media (min-width: 1500px) { :root { --page: 1270px; } }
@media (max-width: 760px) {
  .top { height: 58px; padding: 0 16px; gap: 12px; }
  .top .logo { font-size: 16px; }
  .pmenu > summary { padding: 4px; } .pmenu .pname { display: none; }
  .top .stepper { margin-left: auto; } .top .stepper span em { display: none; } .top .stepper b { width: 12px; }
  .top .skip, .top .admlbl { display: none; }
  main { padding: 4px 14px 150px; }
  .tabs { height: calc(68px + env(safe-area-inset-bottom)); padding: 0 0 env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--ln); }
  .tabs a { font-size: 12px; font-weight: 700; color: var(--mu); gap: 3px; }
  .tabs a.on { background: transparent; box-shadow: none; color: var(--tx); }
  .tabs a.on svg { background: var(--soft); color: var(--tx); border-radius: 8px; padding: 3px 10px; width: 42px; height: 26px; }
  .btn { min-height: 46px; }
}

/* кнопка «Спросить наставника» */
.fab { height: auto; padding: 8px 18px 8px 8px; border-radius: 14px; background: var(--navy); color: #fff; border: 0; gap: 10px; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(7,30,55,.2); right: 30px; bottom: 24px; }
.fab .fab-m { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.fab .fab-m svg { width: 36px; height: 36px; }
@media (max-width: 760px) { .fab { right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); padding: 6px; } .fab .fab-l, .fab > span:not(.fab-m) { display: none; } }

/* ----- экраны 6.2 (класс .ds) ----- */
.ds { line-height: 1.45; font-feature-settings: normal; }
.ds h1, .ds h2, .ds h3, .ds h4, .ds p, .ds ul, .ds ol { margin: 0; padding: 0; }
.ds ul, .ds ol { list-style: none; }
.ds h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.ds .small { font-size: 13.5px; color: var(--mu); }
.ds .vlead { font-size: 18px; color: var(--tx2); line-height: 1.5; }
.ds .pad { padding: 26px 28px; }
.ds .vgrid2 { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 24px; align-items: start; }
.ds .col { display: flex; flex-direction: column; gap: 24px; }
.ds .ch { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ds .ch h2 { font-size: 19px; font-weight: 800; }
.ds .ch > span { font-size: 14px; color: var(--mu); font-weight: 600; }
.ds .ch > a, .ds .ch > .vlink { margin-left: auto; font-size: 14px; }
.ds .ib { width: 44px; height: 44px; border-radius: var(--r-ctl); background: var(--soft); display: grid; place-items: center; color: #3A4A5E; border: 0; cursor: pointer; padding: 0; }
.ds .ib.on { background: var(--navy); color: #fff; }
.ds .ib.off { color: #A3AEBB; }
.ds .orb { position: relative; display: grid; place-items: center; margin: 0 auto; }
.ds .orb::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; border: 1px solid rgba(252,172,1,.32); }
.ds .orb .glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(252,172,1,.26), rgba(252,172,1,0) 70%); }
.ds .orb .char { position: relative; }
.ds .live { display: inline-flex; align-items: center; gap: 8px; background: var(--soft); color: var(--tx); padding: 5px 11px 5px 10px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.ds .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--am); box-shadow: 0 0 0 4px rgba(252,172,1,.2); }
.ds .path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ds .path.n2 { grid-template-columns: repeat(2, 1fr); } .ds .path.n1 { grid-template-columns: 1fr; } .ds .path.n4 { grid-template-columns: repeat(2, 1fr); }
.ds .sc { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-in); background: var(--soft); border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.ds .sc.now { background: var(--am-t); box-shadow: inset 0 0 0 1.5px #F7C75A; }
.ds .sc.done { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ln); cursor: default; }
.ds .sc .n { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: var(--card); color: #3A4A5E; box-shadow: 0 0 0 1px var(--ln); }
.ds .sc.now .n { background: var(--am); color: #1C1300; box-shadow: none; }
.ds .sc.done .n { background: var(--ok-t); color: var(--ok); box-shadow: none; }
.ds .sc .n svg { width: 16px; height: 16px; stroke-width: 3; }
.ds .sc b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.ds .sc small { display: block; font-size: 13px; color: var(--mu); margin-top: 3px; }
.ds .sc .m { font-size: 13px; font-weight: 700; color: #536378; background: var(--card); padding: 5px 8px; border-radius: var(--r-tag); white-space: nowrap; }
.ds .sc.now .m { background: #fff; }
.ds .sc .t { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--am-d); display: block; margin-bottom: 2px; }
.ds .rings { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ds .rings.one { grid-template-columns: 1fr; }
.ds .ring { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.ds .rt { position: relative; width: 110px; height: 110px; }
.ds .rt svg { transform: rotate(-90deg); width: 110px; height: 110px; }
.ds .rt .v { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ds .rt .v b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; display: block; line-height: 1; }
.ds .rt .v small { font-size: 11px; color: var(--mu); font-weight: 700; }
.ds .ring h3 { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.ds .ring p { font-size: 13px; color: var(--mu); margin-top: 5px; }
.ds .ring .up { color: var(--ok); font-weight: 800; font-size: 13px; margin-left: 6px; }
.ds .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ds .d { border-radius: var(--r-ctl); background: var(--soft); padding: 9px 0 10px; text-align: center; }
.ds .d span { display: block; font-size: 12.5px; color: var(--mu); font-weight: 600; }
.ds .d b { display: block; font-size: 18px; font-weight: 800; margin-top: 1px; }
.ds .d.tdy { background: var(--navy); color: #fff; } .ds .d.tdy span { color: #B9C5D3; }
.ds .d.cp { background: var(--am-t); } .ds .d.cp span { color: var(--am-d); }
.ds .d.ok { background: var(--ok-t); } .ds .d.ok span { color: var(--ok); }
.ds .d.miss { background: var(--bad-t); } .ds .d.miss span { color: var(--bad); }
.ds .d.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ln); }
.ds .pick { position: relative; border-radius: var(--r-in); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ln); padding: 16px; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ds .pick.on { box-shadow: inset 0 0 0 2px var(--am); background: #FFFBF0; }
:root[data-theme="dark"] .ds .pick.on { background: #2A2412; }
.ds .pick.on::after { content: ""; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 6px; background: var(--am) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1300' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.ds .chps { display: flex; gap: 8px; flex-wrap: wrap; }
.ds .chp { height: 40px; min-width: 52px; padding: 0 14px; border-radius: var(--r-ctl); display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ln); color: var(--tx); border: 0; cursor: pointer; font-family: inherit; }
.ds .chp.on { background: var(--navy); color: #fff; box-shadow: none; }
.ds .vfield { display: block; margin-bottom: 16px; }
.ds .vfield > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.ds .vfield em { display: block; font-style: normal; font-size: 12.5px; color: var(--mu); margin-top: 6px; }
.ds .vfield input { height: 48px; min-height: 48px; padding: 0 14px; font-size: 16px; }
.ds .wave { display: flex; align-items: center; gap: 4px; height: 34px; }
.ds .wave i { display: block; width: 4px; border-radius: 2px; background: var(--am); transition: height .12s; }
.ds .wave.navy i { background: var(--navy); }
.ds .err { margin: 0 0 12px; }

/* 01, 02 — вход и приглашение */
body.entry .top { display: none; }
body.entry main { max-width: none; padding: 0; }
.ds.ent { min-height: var(--dvh); display: grid; grid-template-columns: 52% 48%; }
.ent .l { position: relative; overflow: hidden; background: #071E37; color: #fff; padding: 56px 64px; display: flex; flex-direction: column; }
.ent .l::after { content: ""; position: absolute; right: -180px; bottom: -200px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(252,172,1,.16), rgba(252,172,1,0) 65%); }
.ent .lg { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.ent .lg img { height: 54px; width: auto; }
.ent .lg b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.ent .lg small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #9FB1C6; margin-top: 2px; }
.ent .l h1 { font-size: 38px; line-height: 1.2; margin-top: 72px; max-width: 560px; position: relative; z-index: 1; color: #fff; }
.ent .l .vtg { font-size: 18px; color: #B9C7D6; margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--am); max-width: 520px; position: relative; z-index: 1; }
.ent .feat { margin-top: 40px; display: grid; gap: 16px; max-width: 470px; position: relative; z-index: 1; }
.ent .feat li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; font-size: 15.5px; color: #E3EAF2; }
.ent .feat .c { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: var(--am); }
.ent .masc { position: absolute; right: 48px; bottom: 40px; z-index: 1; }
.ent .r { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.ent .f { width: 420px; max-width: 100%; }
.ent .f h2 { font-size: 30px; font-weight: 800; }
.ent .fcard { background: var(--card); border-radius: var(--r-card); padding: 22px; margin-top: 20px; box-shadow: var(--sh); }
.ent .demo { display: flex; gap: 16px; align-items: center; margin-top: 20px; padding: 18px 20px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sh); }
.ent .demo b { display: block; font-size: 15px; } .ent .demo > div > span { display: block; font-size: 13px; color: var(--mu); margin-top: 3px; }
.ent .demo .btn { margin-left: auto; flex: none; }
.ent .inv { display: flex; align-items: center; gap: 12px; margin-top: 64px; padding: 14px 16px; border-radius: var(--r-in); background: rgba(255,255,255,.06); max-width: 520px; position: relative; z-index: 1; }
.ent .inv .a { width: 40px; height: 40px; border-radius: 10px; background: var(--am); color: #1C1300; display: grid; place-items: center; font-weight: 800; flex: none; }
.ent .inv b { display: block; font-size: 15px; } .ent .inv span { display: block; font-size: 13px; color: #9FB1C6; }
.ent .inv + h1 { margin-top: 28px; }
.ent .goal { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-in); background: var(--am-t); margin-top: 16px; }
.ent .goal .c { width: 36px; height: 36px; border-radius: 9px; background: var(--card); display: grid; place-items: center; color: var(--am-d); flex: none; }
.ent .goal b { display: block; font-size: 15px; } .ent .goal span { display: block; font-size: 13px; color: var(--am-d); }
.ent .next { margin-top: 18px; }
.ent .next h3 { font-size: 14px; font-weight: 800; color: var(--mu); letter-spacing: .02em; margin-bottom: 10px; }
.ent .next ol { display: grid; gap: 8px; }
.ent .next li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; font-size: 14.5px; }
.ent .next li i { width: 28px; height: 28px; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ln); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; }
.ent .next li em { font-style: normal; font-size: 13px; color: var(--mu); }
@media (max-width: 760px) {
  .ds.ent { display: block; min-height: 0; }
  .ent .l { padding: 26px 20px 28px; } .ent .l::after { right: -260px; bottom: -320px; }
  .ent .lg img { height: 40px; } .ent .lg b { font-size: 22px; }
  .ent .l h1 { font-size: 25px; margin-top: 26px; } .ent .l .vtg { font-size: 15px; margin-top: 12px; }
  .ent .feat { margin-top: 20px; gap: 10px; } .ent .feat li { font-size: 14px; grid-template-columns: 34px 1fr; } .ent .feat .c { width: 34px; height: 34px; }
  .ent .masc { display: none; }
  .ent .r { padding: 22px 16px 30px; display: block; } .ent .f { width: auto; } .ent .f h2 { font-size: 24px; }
  .ent .demo { flex-wrap: wrap; } .ent .demo .btn { margin-left: 0; width: 100%; }
  .ent .inv { margin-top: 20px; } .ent .inv + h1 { margin-top: 18px; }
}

/* 03 — знакомство: наставник и «как удобнее заниматься» */
.ob .vhero { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; padding: 28px 34px; }
.ob .vsay { position: relative; background: var(--soft); border-radius: var(--r-in); padding: 18px 20px; font-size: 19px; line-height: 1.5; font-weight: 600; }
.ob .vsay::before { content: ""; position: absolute; left: -9px; top: 28px; border: 9px solid transparent; border-right-color: var(--soft); border-left: 0; }
.ob .vsay small { display: block; font-size: 13px; font-weight: 700; color: var(--mu); margin-bottom: 6px; }
.ob .ps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.ob .p { text-align: center; padding: 14px 10px; }
.ob .p .pm { display: grid; place-items: center; height: 74px; }
.ob .p b { display: block; font-size: 15.5px; margin-top: 6px; }
.ob .p > span { display: block; font-size: 12.5px; color: var(--mu); margin-top: 2px; line-height: 1.35; }
.ob .p .hear { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--blue); font-style: italic; }
.ob .p .hear svg { width: 14px; height: 14px; }
.ob .sec { padding: 24px 34px 28px; border-top: 1px solid var(--ln); }
.ob .sec h2 { font-size: 19px; font-weight: 800; }
.ds .vmodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.ds .md { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 16px 18px; }
.ds .md .c { width: 42px; height: 42px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; color: var(--tx); }
.ds .md.on .c { background: var(--am); color: #1C1300; }
.ds .md b { display: block; font-size: 15.5px; padding-right: 22px; }
.ds .md > div > span { display: block; font-size: 13px; color: var(--mu); margin-top: 3px; line-height: 1.4; }
.ob .foot { display: flex; align-items: center; gap: 16px; padding: 20px 34px; border-top: 1px solid var(--ln); }
.ob .foot .small { margin-right: auto; }
.ob .foot .vlink { margin-right: auto; }
@media (max-width: 760px) {
  .ob .vhero { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .ob .vhero .orb { width: 150px !important; height: 150px !important; }
  .ob .vsay { font-size: 16px; padding: 14px 16px; } .ob .vsay::before { display: none; }
  .ob .ps { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ob .sec { padding: 18px; } .ds .vmodes { grid-template-columns: 1fr; gap: 8px; }
  .ob .foot { padding: 16px 18px; flex-direction: column; align-items: stretch; } .ob .foot .btn { width: 100%; }
}

/* 04 — пробный вопрос с разбором */
.pq .vq { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; padding: 24px 30px; }
.pq .qb { position: relative; background: var(--soft); border-radius: var(--r-in); padding: 16px 20px; }
.pq .qb::before { content: ""; position: absolute; left: -9px; top: 26px; border: 9px solid transparent; border-right-color: var(--soft); border-left: 0; }
.pq .qb small { display: block; font-size: 13px; font-weight: 700; color: var(--mu); }
.pq .qb p { font-size: 21px; font-weight: 800; line-height: 1.35; margin-top: 4px; letter-spacing: -.01em; }
.pq .body { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 24px; padding: 0 30px 26px; }
.pq .body.ask { grid-template-columns: 1fr; }
.pq .vans { border-radius: var(--r-in); box-shadow: inset 0 0 0 1.5px var(--ln); padding: 16px 18px; }
.pq .vans h3, .pq .res h3 { font-size: 13px; font-weight: 800; color: var(--mu); letter-spacing: .03em; margin-bottom: 8px; }
.pq .vans p { font-size: 17px; line-height: 1.75; white-space: pre-wrap; }
.ds .h1 { background: rgba(34,112,58,.13); box-shadow: inset 0 -2px 0 #2E9E5B; padding: 1px 2px; border-radius: 3px; }
.ds .h2 { background: rgba(252,172,1,.18); box-shadow: inset 0 -2px 0 #E0A000; padding: 1px 2px; border-radius: 3px; }
.pq .how { display: flex; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-in); background: var(--blue-t); color: #1F4E8C; font-size: 13.5px; line-height: 1.5; }
:root[data-theme="dark"] .pq .how { color: var(--blue); }
.pq .how svg { margin-top: 1px; } .pq .how b { color: inherit; }
.pq .res .top2 { display: flex; align-items: baseline; gap: 12px; }
.pq .res .pct { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pq .res .pct + span { font-size: 14px; color: var(--mu); font-weight: 600; }
.ds .vbar { position: relative; height: 8px; border-radius: 6px; background: var(--soft); margin: 12px 0 4px; overflow: hidden; }
.ds .vbar i { position: absolute; inset: 0 auto 0 0; background: var(--navy); border-radius: 6px; }
.ds .vbar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--am); }
.ds .thr { font-size: 12.5px; color: var(--mu); }
.ds .vels { display: grid; gap: 8px; margin-top: 16px; }
.ds .vels li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.4; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--soft); }
.ds .vels li .s { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.ds .vels li .s svg { width: 14px; height: 14px; stroke-width: 3; }
.ds .vels .ok .s { background: var(--ok-t); color: var(--ok); } .ds .vels .pt .s { background: var(--am-t); color: var(--am-d); } .ds .vels .no .s { background: var(--bad-t); color: var(--bad); }
.ds .vels li em { font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ds .vels .ok em { color: var(--ok); } .ds .vels .pt em { color: var(--am-d); } .ds .vels .no em { color: var(--bad); }
.pq .cm { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; margin-top: 16px; }
.pq .cm p { font-size: 14.5px; line-height: 1.5; background: var(--soft); border-radius: var(--r-in); padding: 12px 14px; }
.pq .foot { display: flex; align-items: center; gap: 16px; padding: 18px 30px; border-top: 1px solid var(--ln); }
.pq .foot .vlink { margin-right: auto; }
.pq textarea { min-height: 150px; border: 1.5px solid var(--am); border-radius: var(--r-in); padding: 14px 16px; font-size: 16px; line-height: 1.55; }
.pq .etal { margin: 0 30px 20px; padding: 14px 16px; border-radius: var(--r-in); background: var(--soft); font-size: 15px; line-height: 1.55; }
@media (max-width: 760px) {
  .pq .vq { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .pq .vq .orb { width: 110px !important; height: 110px !important; }
  .pq .qb::before { display: none; } .pq .qb p { font-size: 18px; }
  .pq .body { grid-template-columns: 1fr; gap: 16px; padding: 0 18px 18px; }
  .pq .vans p { font-size: 16px; }
  .pq .foot { padding: 16px 18px; flex-direction: column-reverse; align-items: stretch; } .pq .foot .btn { width: 100%; } .pq .foot .vlink { margin: 0; text-align: center; }
  .pq .etal { margin: 0 18px 16px; }
}

/* 05 — быстрый план */
.qp .hd { margin: 6px 0 18px; } .qp .hd p { margin-top: 6px; }
.qp .sx { display: grid; gap: 10px; margin-top: 14px; }
.qp .sx li { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-in); background: var(--soft); }
.qp .sx li.off { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ln); }
.qp .sx .c { width: 40px; height: 40px; border-radius: 10px; background: var(--card); display: grid; place-items: center; color: var(--mu); }
.qp .sx b { display: block; font-size: 16px; }
.qp .sx li > div > span { display: block; font-size: 13px; color: var(--mu); margin-top: 2px; }
.qp .sx .dt { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--tx); background: var(--card); padding: 7px 10px; border-radius: 8px; white-space: nowrap; }
.qp .sx .dt svg { width: 15px; height: 15px; color: var(--mu); }
.qp .sx input[type=checkbox] { width: 22px; height: 22px; min-height: 22px; accent-color: var(--navy); }
.qp .sx .cb { display: grid; place-items: center; }
.qp .sx .grp { background: none; padding: 6px 2px 0; font-size: 12.5px; font-weight: 800; color: var(--mu); letter-spacing: .04em; display: block; text-transform: uppercase; }
.qp .vlbl { font-size: 14px; font-weight: 800; margin: 22px 0 10px; }
.qp .vmore { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ln); font-size: 14.5px; flex-wrap: wrap; }
.qp .vmore .vlink { display: inline-flex; align-items: center; gap: 6px; }
.qp .calc .vsay { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; margin-top: 14px; }
.qp .calc .vsay p { font-size: 17px; line-height: 1.5; font-weight: 600; }
.qp .calc .vopts { display: grid; gap: 10px; margin-top: 20px; }
.qp .calc .note { font-size: 13px; color: var(--mu); margin-top: 14px; line-height: 1.5; }
.qp .calc .goal { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--soft); font-size: 14px; }
.qp .calc .keep { margin-top: 12px; font-size: 13.5px; color: var(--mu); line-height: 1.5; }
.qp .datef { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.qp .datef input { width: auto; max-width: 220px; height: 44px; min-height: 44px; }
@media (max-width: 760px) { .qp .calc .vsay { grid-template-columns: 52px 1fr; } }

/* 06, 09 — «Сегодня» */
.td .vhero { padding: 30px 36px 28px; }
.td .sg { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: center; }
.td .vwho { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--mu); flex-wrap: wrap; }
.td .vbig { font-size: 31px; line-height: 1.28; font-weight: 800; letter-spacing: -.02em; margin: 16px 0 10px; }
.td .vsub { font-size: 18.5px; line-height: 1.5; color: var(--tx2); max-width: 690px; }
.td .ctl { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.td .hint { margin-left: 4px; font-size: 13px; color: var(--mu2); max-width: 190px; line-height: 1.35; }
.td .path { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--ln); }
.td .empty { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; margin-top: 18px; }
.td .empty p { font-size: 15px; line-height: 1.5; color: var(--tx2); } .td .empty b { color: var(--tx); }
.td .rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.td .rules div { padding: 14px; border-radius: var(--r-in); background: var(--soft); font-size: 13.5px; line-height: 1.45; color: var(--tx2); }
.td .rules b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--tx); margin-bottom: 4px; }
.td .rules svg { width: 17px; height: 17px; color: var(--am-d); }
.td .cpc { display: flex; gap: 14px; align-items: center; }
.td .cal { width: 54px; height: 58px; border-radius: var(--r-ctl); background: var(--am-t); text-align: center; padding-top: 7px; flex: none; }
.td .cal small { display: block; font-size: 12px; font-weight: 700; color: var(--am-d); text-transform: uppercase; }
.td .cal b { font-size: 22px; font-weight: 800; color: #3A2700; }
:root[data-theme="dark"] .td .cal b { color: var(--am-d); }
.td .cpc p { font-size: 15px; line-height: 1.45; } .td .cpc p span { display: block; font-size: 13px; color: var(--mu); margin-top: 2px; }
.td .tm { display: flex; gap: 14px; align-items: center; margin-top: 20px; padding: 14px 16px; border-radius: var(--r-in); background: var(--soft); }
.td .tm .c { width: 40px; height: 40px; border-radius: 10px; background: var(--card); display: grid; place-items: center; color: var(--am-d); flex: none; }
.td .tm b { display: block; font-size: 15px; } .td .tm span { display: block; font-size: 13.5px; color: var(--mu); }
.ds .extra { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.ds .ex { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-in); background: var(--soft); }
.ds .ex .c { width: 40px; height: 40px; border-radius: 10px; background: var(--card); display: grid; place-items: center; color: var(--tx); }
.ds .ex b { display: block; font-size: 15px; } .ds .ex > div > span { display: block; font-size: 13px; color: var(--mu); margin-top: 2px; }
.td .warnline { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--bad-t); color: var(--bad); font-size: 14px; font-weight: 600; }
@media (max-width: 760px) {
  .td .vhero { padding: 18px; } .td .sg { grid-template-columns: 1fr; gap: 6px; }
  .td .sg .orb { width: 150px !important; height: 150px !important; }
  .td .vbig { font-size: 23px; margin-top: 12px; } .td .vsub { font-size: 16px; }
  .td .ctl .btn.y { flex: 1; } .td .hint { display: none; }
  .td .path { margin-top: 18px; padding-top: 16px; }
  .ds .path, .ds .path.n2, .ds .path.n4 { grid-template-columns: 1fr; gap: 8px; }
  .td .empty { grid-template-columns: 92px 1fr; gap: 14px; }
  .td .rules { grid-template-columns: 1fr; }
  .ds .vgrid2 { grid-template-columns: 1fr; gap: 16px; } .ds .col { gap: 16px; }
  .ds h1 { font-size: 24px; } .ds .vlead { font-size: 16px; } .ds .pad { padding: 20px 18px; }
  .ds .rings { grid-template-columns: 1fr; gap: 14px; } .ds .ring { grid-template-columns: 92px 1fr; }
  .ds .rt, .ds .rt svg { width: 92px; height: 92px; } .ds .rt .v b { font-size: 20px; }
  .ds .days { gap: 5px; } .ds .d b { font-size: 16px; }
}

/* 07 — разговор с наставником */
body.talk-on main { max-width: none; padding: 0; }
.tk { min-height: var(--dvh); display: flex; flex-direction: column; }
.tk .run { height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 40px; flex: none; }
.tk .run .x { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--tx2); background: none; border: 0; cursor: pointer; font-family: inherit; padding: 6px 4px; }
.tk .run .x svg { width: 17px; height: 17px; }
.tk .run .tt { font-weight: 800; font-size: 16px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk .run .tt span { font-weight: 600; color: var(--mu); }
.tk .dots { display: flex; align-items: center; gap: 6px; margin-left: 18px; flex: none; }
.tk .dots i { width: 28px; height: 5px; border-radius: 3px; background: var(--ln2); } .tk .dots i.pd { background: var(--navy); } .tk .dots i.pc { background: var(--am); }
.tk .dots.many i { width: 12px; }
.tk .dots b { font-size: 13px; color: var(--mu); margin-left: 6px; font-weight: 700; white-space: nowrap; }
.tk .vtg { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.tk .vtg .ib { width: 42px; height: 42px; }
.tk .tt2 { height: 42px; padding: 0 12px; border-radius: var(--r-ctl); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ln); display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #3A4A5E; border: 0; cursor: pointer; font-family: inherit; }
.tk .tt2.on { background: var(--navy); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .tk .tt2 { color: var(--tx2); }
.tk .tmain { flex: 1; display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; padding: 0 40px 28px; }
.tk.show .tmain { grid-template-columns: minmax(0,1fr) 430px; }
.tk .stage { position: relative; border-radius: 22px; overflow: hidden; background: radial-gradient(560px 420px at 50% 44%, rgba(252,172,1,.20), rgba(252,172,1,0) 70%), var(--card); box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 30px 28px; min-height: 560px; }
.tk .chipq { position: absolute; left: 24px; top: 22px; display: flex; gap: 8px; align-items: center; }
.tk .lv { position: relative; width: 470px; height: 470px; display: grid; place-items: center; }
.tk.show .lv { width: 400px; height: 400px; }
.tk .lv > i { position: absolute; border-radius: 50%; border: 2px solid rgba(252,172,1,.5); transition: transform .12s ease-out; }
.tk .lv > i:nth-child(1) { inset: 62px; } .tk .lv > i:nth-child(2) { inset: 30px; border-color: rgba(252,172,1,.28); } .tk .lv > i:nth-child(3) { inset: 0; border-color: rgba(252,172,1,.14); }
.tk .lv > .gl { position: absolute; inset: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(252,172,1,.30), rgba(252,172,1,0) 70%); border: 0; }
.tk.spk .lv > i { border-color: rgba(7,30,55,.28); } .tk.spk .lv > i:nth-child(2) { border-color: rgba(7,30,55,.16); } .tk.spk .lv > i:nth-child(3) { border-color: rgba(7,30,55,.08); }
.tk .lv .char { position: relative; }
.tk .stt { display: flex; align-items: center; gap: 12px; margin-top: -6px; flex-wrap: wrap; justify-content: center; min-height: 36px; }
.tk .status { display: inline-flex; align-items: center; gap: 8px; background: var(--am-t); color: var(--am-d); padding: 7px 13px; border-radius: 9px; font-weight: 800; font-size: 15px; }
.tk .status i { width: 9px; height: 9px; border-radius: 50%; background: var(--am); box-shadow: 0 0 0 4px rgba(252,172,1,.25); }
.tk .status.sp { background: var(--soft); color: var(--tx); } .tk .status.sp i { background: var(--navy); box-shadow: 0 0 0 4px rgba(7,30,55,.12); }
.tk .status.th { background: var(--soft); color: var(--tx2); } .tk .status.th i { background: var(--mu2); box-shadow: none; }
.tk .vtimer { font-size: 14px; color: var(--mu); font-weight: 700; }
.tk .res { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--ok); background: var(--ok-t); padding: 7px 13px; border-radius: 9px; }
.tk .res.pt { color: var(--am-d); background: var(--am-t); } .tk .res.no { color: var(--bad); background: var(--bad-t); }
.tk .res svg { width: 16px; height: 16px; stroke-width: 3; }
.tk .wave { margin: 14px 0 18px; height: 34px; }
.tk.spk .wave i { background: var(--navy); }
.tk .ctl { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.tk .hint { font-size: 13px; color: var(--mu2); margin-top: 12px; text-align: center; }
.tk .tpanel { display: none; background: var(--card); border-radius: 22px; box-shadow: var(--sh); padding: 22px 22px 18px; flex-direction: column; min-height: 0; }
.tk.show .tpanel { display: flex; }
.tk .tpanel h2 { font-size: 16px; font-weight: 800; color: var(--mu); margin-bottom: 12px; }
.tk .tchat { overflow-y: auto; max-height: calc(var(--dvh) - 160px); display: flex; flex-direction: column; }
.tk .vmsg { max-width: 92%; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; margin-bottom: 10px; overflow-wrap: anywhere; }
.tk .vmsg.b { background: var(--soft); border-top-left-radius: 4px; }
.tk .vmsg.u { background: var(--navy); color: #fff; margin-left: auto; border-top-right-radius: 4px; }
.tk .vmsg small { display: block; font-size: 12px; font-weight: 700; color: var(--mu); margin-bottom: 3px; }
.tk .vmsg .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tk .vmsg .tags .tag { white-space: normal; }
.tk .txo { display: none; max-width: 760px; width: 100%; margin: 0 auto; }
.tk.only .stage { display: none; } .tk.only .txo { display: block; } .tk.only .tmain { grid-template-columns: minmax(0,1fr); }
.tk.only.show .tmain { grid-template-columns: minmax(0,1fr) 430px; }
.tk .txo .top3 { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: end; margin-top: 6px; }
.tk .txo .vq { position: relative; background: var(--card); border-radius: 14px; border-bottom-left-radius: 4px; padding: 14px 16px; box-shadow: var(--sh); }
.tk .txo .vq small { display: block; font-size: 12.5px; font-weight: 700; color: var(--mu); }
.tk .txo .vq p { font-size: 17.5px; font-weight: 800; line-height: 1.35; margin-top: 4px; }
.tk .txo .fu { margin-top: 12px; background: var(--card); border-radius: 14px; padding: 12px 16px; box-shadow: var(--sh); font-size: 15.5px; line-height: 1.5; }
.tk .txo textarea { min-height: 150px; border-radius: var(--r-in); border: 1.5px solid var(--am); background: var(--card); padding: 14px 16px; font-size: 16px; line-height: 1.55; margin-top: 14px; }
.tk .txo .row2 { display: grid; gap: 8px; margin-top: 12px; }
.tk .txo .verd { margin-top: 14px; background: var(--card); border-radius: 14px; padding: 16px; box-shadow: var(--sh); }
.tk .txo .verd .ua { padding: 12px 14px; border-radius: var(--r-in); box-shadow: inset 0 0 0 1.5px var(--ln); font-size: 15.5px; line-height: 1.7; white-space: pre-wrap; margin-bottom: 12px; }
.tk .txo .verd .cmt { font-size: 15px; line-height: 1.5; margin-top: 10px; }
.tk .etal { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-in); background: var(--soft); font-size: 15px; line-height: 1.55; max-width: 640px; text-align: left; }
.tk .etal b { display: block; font-size: 12.5px; color: var(--mu); letter-spacing: .03em; margin-bottom: 4px; }
.tk .nohear { margin-top: 10px; font-size: 13.5px; color: var(--mu); text-align: center; max-width: 520px; }
@media (max-width: 760px) {
  .tk .run { height: 56px; padding: 0 14px; gap: 8px; }
  .tk .run .tt, .tk .tt2 .l { display: none; } .tk .tt2 { padding: 0 10px; }
  .tk .dots { margin-left: auto; } .tk .dots i { width: 16px; } .tk .dots.many i { width: 7px; }
  .tk .vtg { margin-left: 6px; gap: 6px; } .tk .vtg .ib, .tk .tt2 { width: 38px; height: 38px; justify-content: center; }
  .tk .tmain, .tk.show .tmain, .tk.only.show .tmain { padding: 0 12px 14px; grid-template-columns: minmax(0,1fr); }
  .tk .stage { padding: 56px 16px 18px; justify-content: flex-start; min-height: 0; }
  .tk .chipq { left: 14px; top: 14px; }
  .tk .lv, .tk.show .lv { width: 330px; height: 330px; max-width: 100%; }
  .tk .lv > i:nth-child(1) { inset: 44px; } .tk .lv > i:nth-child(2) { inset: 20px; } .tk .lv > .gl { inset: 64px; }
  .tk .ctl .btn.y { width: 100%; }
  .tk .ctl .btn:not(.y) { flex: 1; padding: 0 8px; font-size: 14px; }
  .tk.show .stage { display: none; }
  .tk.show .tpanel { display: flex; }
  .tk .tchat { max-height: none; }
  .tk.only.show .txo { display: none; }
}

/* 08 — итог шага */
.st .hd { display: grid; grid-template-columns: 150px 1fr auto; gap: 26px; align-items: center; padding: 26px 32px; }
.st .hd h1 { font-size: 27px; }
.st .hd p { font-size: 17px; color: var(--tx2); margin-top: 6px; line-height: 1.5; }
.st .vnums { display: flex; gap: 10px; }
.st .vnums div { min-width: 118px; padding: 12px 14px; border-radius: var(--r-in); background: var(--soft); }
.st .vnums b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.st .vnums span { display: block; font-size: 12.5px; color: var(--mu); margin-top: 3px; }
.st .vacts { display: flex; gap: 10px; align-items: center; padding: 18px 32px; border-top: 1px solid var(--ln); flex-wrap: wrap; }
.st .vacts .sp { margin-left: auto; }
.st .qs { margin-top: 24px; overflow: hidden; }
.st .qr { display: grid; grid-template-columns: 30px 1fr 90px 20px; gap: 14px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--ln); cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; text-align: left; }
.st .qr:first-child { border-top: 0; }
.st .qr .no { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13.5px; background: var(--soft); }
.st .qr b { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.st .qr .p { text-align: right; font-weight: 800; font-size: 16px; }
.st .qr .chev { color: var(--mu2); transition: transform .15s; }
.st .qr.open { background: #FBFCFD; } .st .qr.open .chev { transform: rotate(90deg); }
:root[data-theme="dark"] .st .qr.open, :root[data-theme="dark"] .st .det { background: var(--soft); }
.st .det { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; padding: 4px 22px 20px 66px; background: #FBFCFD; }
.st .det h4 { font-size: 12.5px; font-weight: 800; color: var(--mu); letter-spacing: .03em; margin-bottom: 6px; }
.st .det .a { font-size: 15px; line-height: 1.7; padding: 12px 14px; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1.5px var(--ln); background: var(--card); white-space: pre-wrap; }
.st .el { display: grid; gap: 6px; }
.st .el li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14px; line-height: 1.4; }
.st .el li span { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; }
.st .el li span svg { width: 13px; height: 13px; stroke-width: 3; }
.st .el .ok span { background: var(--ok-t); color: var(--ok); } .st .el .pt span { background: var(--am-t); color: var(--am-d); } .st .el .no span { background: var(--bad-t); color: var(--bad); }
.st .det .lk { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.st .det .etal { grid-column: 1 / -1; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ln); font-size: 14.5px; line-height: 1.55; }
.st .never { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--ln); font-size: 14.5px; font-weight: 700; cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font-family: inherit; color: inherit; text-align: left; }
.st .never .c { width: 30px; height: 30px; border-radius: 8px; background: var(--bad-t); color: var(--bad); display: grid; place-items: center; flex: none; }
.st .never .c svg { width: 16px; height: 16px; }
.st .never em { font-style: normal; font-weight: 600; color: var(--mu); font-size: 13.5px; }
.st .never .chev { margin-left: auto; color: var(--mu2); }
.st .never.open .chev { transform: rotate(90deg); }
.st .nvl { padding: 0 22px 18px 64px; display: grid; gap: 6px; font-size: 14px; }
.st .nvl li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.st .nvl li span { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--soft); color: var(--mu); }
.st .nvl li.hit span { background: var(--bad-t); color: var(--bad); }
.st .nvl li span svg { width: 13px; height: 13px; stroke-width: 3; }
@media (max-width: 760px) {
  .st .hd { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .st .hd .orb { width: 90px !important; height: 90px !important; margin: 0; }
  .st .hd h1 { font-size: 21px; } .st .hd p { font-size: 15px; }
  .st .vnums div { min-width: 0; flex: 1; }
  .st .vacts { flex-direction: column; align-items: stretch; padding: 16px 18px; } .st .vacts .btn { width: 100%; } .st .vacts .sp { margin: 0; }
  .st .qr { grid-template-columns: 26px 1fr 54px 16px; gap: 10px; padding: 14px 16px; }
  .st .qr b { font-size: 14.5px; }
  .st .det { grid-template-columns: 1fr; padding: 4px 16px 16px; }
  .st .never em { display: none; } .st .nvl { padding: 0 16px 16px; }
}

/* 10 — разделы */
.lrx .lr { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 24px; align-items: start; }
.lrx .side { padding: 20px; position: sticky; top: 80px; }
.lrx .srch { display: flex; align-items: center; gap: 8px; height: 44px; border-radius: var(--r-ctl); background: var(--soft); padding: 0 12px; color: var(--mu); font-size: 14.5px; }
.lrx .srch input { border: 0; background: transparent; min-height: 0; height: 40px; padding: 0; font-size: 14.5px; }
.lrx .grp { font-size: 12.5px; font-weight: 800; color: var(--mu); letter-spacing: .04em; margin: 20px 0 8px; text-transform: uppercase; }
.lrx .it { display: block; padding: 12px 14px; border-radius: var(--r-in); margin-bottom: 6px; color: inherit; text-decoration: none; }
.lrx .it:hover { background: var(--soft); }
.lrx .it.on { background: var(--am-t); box-shadow: inset 0 0 0 1.5px #F7C75A; }
.lrx .it b { display: block; font-size: 15px; line-height: 1.3; }
.lrx .it > span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mu); margin-top: 6px; }
.lrx .mini { flex: 1; height: 5px; border-radius: 3px; background: #E3E8EF; overflow: hidden; position: relative; }
:root[data-theme="dark"] .lrx .mini { background: var(--soft); }
.lrx .mini i { position: absolute; inset: 0 auto 0 0; background: var(--navy); border-radius: 3px; }
.lrx .fold { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r-in); background: var(--soft); font-weight: 700; font-size: 14px; color: var(--tx2); margin-top: 14px; cursor: pointer; list-style: none; }
.lrx .fold::-webkit-details-marker { display: none; }
.lrx .fold svg { margin-left: auto; width: 16px; height: 16px; }
.lrx details[open] > .fold svg { transform: rotate(90deg); }
.lrx .vsum { padding: 26px 28px; }
.lrx .kind { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--mu); }
.lrx .vsum h1 { font-size: 30px; margin-top: 8px; }
.lrx .now { display: grid; grid-template-columns: auto auto 1fr; gap: 26px; align-items: center; margin-top: 18px; }
.lrx .vnum b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.lrx .vnum span { display: block; font-size: 13px; color: var(--mu); margin-top: 4px; font-weight: 600; }
.ds .bar2 { position: relative; height: 10px; border-radius: 6px; background: var(--soft); overflow: hidden; display: block; }
.ds .bar2 .p { position: absolute; inset: 0 auto 0 0; background: var(--ring1); } .ds .bar2 .r { position: absolute; inset: 0 auto 0 0; background: var(--navy); border-radius: 6px; }
.lrx .nx { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; margin-top: 22px; padding: 14px 16px; border-radius: var(--r-in); background: var(--soft); }
.lrx .nx small { display: block; font-size: 12.5px; font-weight: 700; color: var(--mu); }
.lrx .nx b { display: block; font-size: 16px; line-height: 1.35; }
.lrx .two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 24px; }
.lrx .ways { margin-top: 12px; }
.lrx .ways li { display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--ln); }
.lrx .ways li:first-child { border-top: 0; }
.lrx .ways .n { width: 30px; height: 30px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; font-weight: 800; font-size: 13.5px; }
.lrx .ways b { display: block; font-size: 15.5px; } .lrx .ways li > div > span { display: block; font-size: 13px; color: var(--mu); margin-top: 2px; }
.lrx .vchk { margin-top: 12px; padding: 16px; border-radius: var(--r-in); background: var(--soft); }
.lrx .vchk + .vchk { margin-top: 10px; }
.lrx .vchk b { display: block; font-size: 16px; } .lrx .vchk > span { display: block; font-size: 13px; color: var(--mu); margin-top: 3px; }
.lrx .vchk .row { margin-top: 12px; }
.lrx .vchk select { height: 38px; min-height: 38px; width: auto; padding: 0 12px; font-weight: 700; font-size: 14px; border: 0; box-shadow: inset 0 0 0 1.5px var(--ln); }
.lrx .docs { margin-top: 24px; overflow: hidden; }
.lrx .dh { padding: 22px 24px 8px; }
.lrx .dr { display: grid; grid-template-columns: minmax(0,1fr) 110px 180px 54px 18px; gap: 16px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--ln); color: inherit; text-decoration: none; }
.lrx a.dr:hover { background: var(--soft); }
.lrx .dr b { display: block; font-size: 15.5px; }
.lrx .dr small { display: block; font-size: 12.5px; color: var(--mu); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrx .dr .pc { font-weight: 800; text-align: right; }
.lrx .dr .ch2 { color: var(--mu2); }
.lrx .dr.allbtn { color: var(--blue); font-weight: 700; font-size: 14.5px; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; font-family: inherit; text-align: left; cursor: pointer; padding-bottom: 18px; }
.lrx .msel { display: none; }
.lrx .extra-old { margin-top: 24px; }
@media (max-width: 760px) {
  .lrx .lr { grid-template-columns: 1fr; gap: 12px; }
  .lrx .side { padding: 14px; position: static; } .lrx .side .grp, .lrx .side .it, .lrx .side details, .lrx .side .lk { display: none; }
  .lrx .msel { display: block; margin-top: 10px; } .lrx .msel select { height: 48px; font-weight: 700; }
  .lrx .vsum { padding: 18px; } .lrx .vsum h1 { font-size: 24px; }
  .lrx .now { grid-template-columns: auto auto; gap: 18px; } .lrx .now .bar2 { grid-column: 1 / -1; }
  .lrx .vnum b { font-size: 28px; }
  .lrx .nx { grid-template-columns: 44px 1fr; } .lrx .nx .btn { grid-column: 1 / -1; }
  .lrx .two { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .lrx .dr { grid-template-columns: minmax(0,1fr) 54px; padding: 12px 16px; gap: 8px; } .lrx .dr .st, .lrx .dr .bw, .lrx .dr .ch2 { display: none; }
  .lrx .dh { padding: 18px 16px 6px; }
}

/* 11 — прогресс */
.pg .hd { display: flex; align-items: flex-end; gap: 14px; margin: 6px 0 18px; flex-wrap: wrap; }
.pg .hd .tag { margin-bottom: 6px; }
.pg .wk { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 20px; padding-bottom: 4px; border-bottom: 1px solid var(--ln); }
.pg .wk div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: flex-end; height: 100%; }
.pg .wk i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--navy); min-height: 3px; }
.pg .wk i.t { background: var(--am); }
.pg .wk i.o { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ln); height: 6px !important; }
.pg .wk i.z { background: var(--ln2); height: 3px !important; }
.pg .wl { display: flex; gap: 10px; margin-top: 6px; }
.pg .wl span { flex: 1; text-align: center; font-size: 11.5px; color: var(--mu); font-weight: 600; }
.pg .vfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.pg .vfacts div { padding: 12px 14px; border-radius: var(--r-in); background: var(--soft); }
.pg .vfacts b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pg .vfacts span { display: block; font-size: 12.5px; color: var(--mu); margin-top: 2px; }
.pg .ls { margin-top: 10px; }
.pg .ls li { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ln); font-size: 14.5px; }
.pg .ls li:first-child { border-top: 0; }
.pg .ls a { color: inherit; text-decoration: none; }
.pg .ls .d2 { font-size: 13px; color: var(--mu); font-weight: 700; }
.pg .ls b { display: block; font-weight: 700; } .pg .ls small { display: block; font-size: 12.5px; color: var(--mu); }
.pg .ls .v { font-weight: 800; white-space: nowrap; }
.pg .rk { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 12px; }
.pg .rk .pl { width: 64px; height: 64px; border-radius: var(--r-in); background: var(--am-t); display: grid; place-items: center; text-align: center; }
.pg .rk .pl b { display: block; font-size: 24px; font-weight: 800; line-height: 1; color: #3A2700; } .pg .rk .pl small { display: block; font-size: 11px; color: var(--am-d); font-weight: 700; margin-top: 2px; }
:root[data-theme="dark"] .pg .rk .pl b { color: var(--am-d); }
.pg .fold { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.pg .fold::-webkit-details-marker { display: none; }
.pg .fold svg { margin-left: auto; color: var(--mu2); }
.pg details[open] > .fold svg { transform: rotate(90deg); }
.pg .othl { padding: 0 20px 16px; display: grid; gap: 6px; }
.pg .othl a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--soft); color: inherit; text-decoration: none; font-size: 14.5px; }
.pg .bdg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pg .bdg span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--soft); color: var(--mu); }
.pg .bdg span.g { background: var(--am-t); color: var(--am-d); }
.pg .bdg svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .pg .vfacts { gap: 6px; } .pg .vfacts b { font-size: 18px; } .pg .wk { gap: 4px; height: 120px; } .pg .wl { gap: 4px; } .pg .wl span { font-size: 10px; } }

/* 12 — профиль */
.pf .hd { display: flex; align-items: center; gap: 16px; margin: 6px 0 20px; }
.pf .hd .vava { width: 56px; height: 56px; border-radius: 14px; font-size: 18px; background: #E3E8EF; display: grid; place-items: center; font-weight: 800; flex: none; }
:root[data-theme="dark"] .pf .hd .vava { background: var(--soft); }
.pf .hd p { font-size: 14px; color: var(--mu); margin-top: 2px; }
.pf .ps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.pf .p { text-align: center; padding: 12px 8px; }
.pf .p .pm { display: grid; place-items: center; height: 62px; }
.pf .p b { display: block; font-size: 14.5px; margin-top: 4px; }
.pf .p > span { display: block; font-size: 12px; color: var(--mu); margin-top: 2px; line-height: 1.3; }
.pf .vmodes { grid-template-columns: 1fr; gap: 8px; }
.pf .md { grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 12px 14px; }
.pf .md .c { width: 38px; height: 38px; }
.pf .md b { font-size: 15px; } .pf .md > div > span { font-size: 12.5px; margin-top: 0; }
.pf .pl { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; margin-top: 14px; padding: 14px; border-radius: var(--r-in); background: var(--soft); }
.pf .pl .c { width: 40px; height: 40px; border-radius: 10px; background: var(--card); display: grid; place-items: center; color: var(--am-d); }
.pf .pl b { display: block; font-size: 15px; } .pf .pl > div > span { display: block; font-size: 13px; color: var(--mu); }
.pf .seg { display: flex; background: var(--soft); border-radius: var(--r-ctl); padding: 4px; margin-top: 12px; width: max-content; max-width: 100%; }
.pf .seg button { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--mu); background: none; border: 0; cursor: pointer; font-family: inherit; }
.pf .seg button.on { background: var(--card); color: var(--tx); box-shadow: 0 1px 2px rgba(7,30,55,.08); }
.pf .sw { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 15px; cursor: pointer; }
.pf .sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf .sw i { width: 42px; height: 24px; border-radius: 12px; background: var(--ln2); position: relative; flex: none; transition: background .15s; }
.pf .sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.pf .sw input:checked + i { background: var(--navy); } .pf .sw input:checked + i::after { left: 21px; }
.pf .sw input:focus-visible + i { outline: 3px solid var(--info); outline-offset: 2px; }
.pf .sw small { display: block; font-size: 12.5px; color: var(--mu); }
.pf .out { color: var(--bad); font-weight: 700; font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.pf .pwf { margin-top: 12px; display: grid; gap: 10px; max-width: 420px; }
@media (max-width: 760px) { .pf .ps { grid-template-columns: 1fr 1fr; } }

/* 13 — мастер администратора */
.wz .hd { margin: 6px 0 18px; } .wz .hd p { margin-top: 6px; }
.wz .rows { margin-top: 12px; }
.wz .rw { display: grid; grid-template-columns: 24px minmax(0,1fr) 150px 150px; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--ln); }
.wz .rw:first-child { border-top: 0; }
.wz .cb { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #C9D2DD; background: var(--card); display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; color: transparent; }
.wz .cb.on { background: var(--navy); box-shadow: none; color: #fff; } .wz .cb svg { width: 14px; height: 14px; stroke-width: 3; }
.wz .rw b { display: block; font-size: 15px; } .wz .rw > div > span { display: block; font-size: 12.5px; color: var(--mu); }
.wz .mand { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.wz .dtw input { height: 36px; min-height: 36px; border-radius: 8px; padding: 0 8px; font-size: 13.5px; font-weight: 700; width: 100%; }
.wz .cap { font-size: 12.5px; font-weight: 800; color: var(--mu); letter-spacing: .04em; margin-top: 18px; text-transform: uppercase; }
.wz .foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ln); flex-wrap: wrap; }
.wz .foot .sp { margin-left: auto; }
.wz .pv { background: var(--soft); border-radius: var(--r-in); padding: 16px; margin-top: 12px; }
.wz .pv .mh { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.wz .pv li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--card); border-radius: var(--r-ctl); margin-top: 8px; font-size: 13.5px; }
.wz .pv li > i { width: 30px; height: 30px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; color: var(--mu); font-style: normal; }
.wz .pv li > i svg { width: 16px; height: 16px; }
.wz .pv li b { display: block; font-size: 14px; } .wz .pv li span { color: var(--mu); font-size: 12px; }
.wz .vtip { display: flex; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--tx2); line-height: 1.5; }
.wz .vtip svg { color: var(--blue); margin-top: 1px; }
.wz textarea { min-height: 200px; font-size: 15px; line-height: 1.6; }
.wz .links { display: grid; gap: 8px; margin-top: 12px; }
.wz .links li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--soft); font-size: 14px; }
.wz .links li code { display: block; font-size: 12.5px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz .gf { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 14px; margin-top: 14px; }
@media (max-width: 760px) {
  .wz .rw { grid-template-columns: 24px minmax(0,1fr); row-gap: 8px; } .wz .rw .mand, .wz .rw .dtw { grid-column: 2; }
  .wz .foot { flex-direction: column; align-items: stretch; } .wz .foot .sp { margin: 0; text-align: center; } .wz .foot .btn { width: 100%; }
  .wz .gf { grid-template-columns: 1fr; }
}

/* таблица «Люди»: план и готовность по разделам плана */
.ppl-plan { display: grid; gap: 4px; min-width: 200px; }
.ppl-plan .pr { display: grid; grid-template-columns: minmax(0,1fr) 60px 38px; gap: 8px; align-items: center; font-size: 12.5px; }
.ppl-plan .pr span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl-plan .pr .bar2 { position: relative; height: 6px; border-radius: 4px; background: var(--soft); overflow: hidden; display: block; }
.ppl-plan .pr .bar2 .p { position: absolute; inset: 0 auto 0 0; background: var(--ring1); } .ppl-plan .pr .bar2 .r { position: absolute; inset: 0 auto 0 0; background: var(--navy); }
.ppl-plan .pr b { text-align: right; }

/* голоса по характерам: шестерёнка настроек */
.vbtns { display: flex; gap: 8px; justify-content: flex-end; }
.btn.vgear-b { width: 38px; min-width: 38px; padding: 0; justify-content: center; } .vgear-b svg { flex: none; } .btn.vgear-b.on { background: var(--navy); color: #fff; }
.vgear { padding: 4px 0 14px 162px; }
.vgear-in { background: var(--soft); border-radius: var(--r-in); padding: 14px 16px; }
.vgear-in .field.rng { margin-bottom: 8px; }
@media (max-width: 900px) { .vgear { padding-left: 0; } }
.ds a { text-decoration: none; }
body.onb-k .tabs { display: none !important; }
body.onb-k #top-profile { margin-left: auto; }
.lrx .srch input::placeholder { font-size: 13px; }
.ppl-plan .pr svg.kd { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; color: var(--mu); }
.pf .pfg { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
@media (max-width: 760px) { .pf .pfg { grid-template-columns: 1fr; } .pf .pl { grid-template-columns: 40px 1fr; } .pf .pl .btn { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .td .sg .orb svg.char, .ob .vhero .orb svg.char { width: 120px; height: 120px; }
  .pq .vq .orb svg.char { width: 90px; height: 90px; }
  .st .hd .orb svg.char { width: 72px; height: 72px; }
}

/* 6.2.3: экран разговора — ровно в окно, без пустого хвоста; маскот крупнее и подстраивается под высоту окна */
.tk { --lv: max(230px, min(540px, calc(var(--dvh) - 320px))); }
.tk .stage { min-height: 0; padding: 22px 30px 22px; }
.tk .lv, .tk.show .lv { width: var(--lv); height: var(--lv); }
.tk .lv > i:nth-child(1) { inset: 11%; } .tk .lv > i:nth-child(2) { inset: 4.5%; } .tk .lv > i:nth-child(3) { inset: -2%; }
.tk .lv > .gl { inset: 18%; }
.tk .lv > #tm { width: 92%; display: block; position: relative; }
.tk .lv > #tm svg.char { width: 100%; height: auto; display: block; }
.tk .stt { margin-top: -14px; }
.tk .wave { margin: 10px 0 14px; }
@media (max-height: 780px) and (min-width: 761px) { .tk .hint { display: none; } .tk { --lv: max(230px, min(540px, calc(var(--dvh) - 286px))); } }
@media (max-width: 760px) {
  .tk { --lv: max(220px, min(calc(100vw - 56px), calc(var(--dvh) - 390px))); }
  .tk .lv, .tk.show .lv { width: var(--lv); height: var(--lv); max-width: 100%; }
  .tk .lv > i:nth-child(1) { inset: 12%; } .tk .lv > i:nth-child(2) { inset: 5%; } .tk .lv > i:nth-child(3) { inset: -1%; }
  .tk .lv > .gl { inset: 18%; }
  .tk .lv > #tm { width: 100%; }
}
/* 6.2.3: вкладки — скругление и при нажатии (без прямоугольной подсветки касания) */
.tabs a, .btn, .pick, .ib, .tt2 { -webkit-tap-highlight-color: transparent; }
.tabs a:focus-visible { outline: 2px solid var(--am); outline-offset: 2px; border-radius: var(--r-ctl); }
.tabs a:active { border-radius: var(--r-ctl); }
/* 6.2.3: «Текст разговора» прокручивается внутри панели — страница не вытягивается вниз */
.tk .tchat { max-height: calc(var(--dvh) - 172px); }
@media (max-width: 760px) { .tk .tchat { max-height: calc(var(--dvh) - 156px); } }
/* 6.2.6: длинные слова без пробелов (названия файлов вроде «япония_краткий_рассказ») переносятся, а не растягивают страницу вбок */
body { overflow-wrap: anywhere; }
.btn, .tag, .chip, .tabs a, .dots b, .vtimer, input, select, textarea { overflow-wrap: normal; }
.pg .wl span { overflow-wrap: normal; } .pg .wl span.t { color: var(--am-d); font-weight: 800; }
/* 6.2.6: подсказка в тренировке */
.tk .txo .hintb { background: var(--am-t); box-shadow: none; } .tk .txo .hintb small { display: inline-flex; align-items: center; gap: 6px; color: var(--am-d); font-weight: 800; }
.tk .txo .hintb small svg, .tag.hn svg { width: 15px; height: 15px; }
.tag.hn { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-left: 6px; font-size: 12px; }
/* 6.2.6: пауза в конце ответа (профиль) */
.pf .pz { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ln); flex-wrap: wrap; }
.pf .pz b { display: block; font-size: 15px; } .pf .pz small { display: block; color: var(--mu); font-size: 13px; margin-top: 2px; max-width: 360px; }
.seg { display: inline-flex; background: var(--soft); border-radius: var(--r-ctl); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 700; font-size: 14px; color: var(--tx2); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--tx); box-shadow: 0 1px 2px rgba(7,30,55,.1); }

/* 6.2.6 — напарник: карусель со свайпом и облачком при смене */
.ds .live.mate { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; -webkit-tap-highlight-color: transparent; }
.ds .live.mate .chg { font-weight: 600; font-size: 12.5px; color: var(--blue); margin-left: 2px; }
.ds .live.mate:hover { background: var(--am-t); }
.ds .live.mate:focus-visible { outline: 3px solid var(--am); outline-offset: 2px; }
.td .sg .orb { transition: transform .15s; }
.td .sg .orb:hover { transform: scale(1.03); }
.mc { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; grid-template-areas: "l st r" "in in in" "dt dt dt" "ac ac ac"; align-items: center; justify-items: center; gap: 10px 6px; padding: 8px 0 4px; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.mc:focus-visible { box-shadow: 0 0 0 3px var(--am); border-radius: var(--r-in); }
.mc-stage { grid-area: st; position: relative; display: grid; place-items: center; width: 100%; min-height: 236px; }
.mc.sm .mc-stage { min-height: 160px; }
.mc-orb { display: grid; place-items: center; width: 232px; height: 232px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--card) 0 52%, var(--soft) 53% 100%); box-shadow: 0 0 0 10px var(--ring0); transition: transform .19s ease, opacity .19s ease; }
.mc.sm .mc-orb { width: 156px; height: 156px; box-shadow: 0 0 0 7px var(--ring0); }
.mc-orb svg.char { display: block; }
.mc .poof { position: absolute; left: 50%; top: 50%; width: 250px; height: 200px; margin: -100px 0 0 -125px; opacity: 0; pointer-events: none; transform: scale(.3); }
.mc.sm .poof { width: 180px; height: 144px; margin: -72px 0 0 -90px; }
.mc .poof svg { width: 100%; height: 100%; display: block; }
.mc.poofing .poof { animation: mcpoof .56s ease-out; }
.mc.go-r .mc-orb { animation: mcout-r .56s ease; }
.mc.go-l .mc-orb { animation: mcout-l .56s ease; }
@keyframes mcpoof { 0% { opacity: 0; transform: scale(.3) rotate(-8deg); } 30% { opacity: 1; transform: scale(1.05) rotate(0); } 62% { opacity: .95; transform: scale(1.12); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes mcout-r { 0% { transform: none; opacity: 1; } 33% { transform: translateX(-46px) scale(.7); opacity: 0; } 34% { transform: translateX(46px) scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes mcout-l { 0% { transform: none; opacity: 1; } 33% { transform: translateX(46px) scale(.7); opacity: 0; } 34% { transform: translateX(-46px) scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
.mc-nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ln2); background: var(--card); color: var(--tx); display: grid; place-items: center; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; transition: background .15s, transform .1s; }
.mc-nav:hover { background: var(--am-t); border-color: var(--am); }
.mc-nav:active { transform: scale(.94); }
.mc-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mc-nav.l { grid-area: l; } .mc-nav.l svg { transform: rotate(180deg); }
.mc-nav.r { grid-area: r; }
.mc-info { grid-area: in; text-align: center; max-width: 560px; min-height: 52px; }
.mc-name { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.mc.sm .mc-name { font-size: 20px; }
.mc-trait { display: block; font-size: 14.5px; color: var(--mu); margin-top: 2px; line-height: 1.4; }
.mc-say { margin: 10px auto 0; font-size: 15.5px; font-weight: 600; color: var(--tx2); background: var(--soft); border-radius: var(--r-in); padding: 10px 14px; line-height: 1.45; max-width: 520px; }
.mc-dots { grid-area: dt; display: flex; gap: 4px; }
.mc-dots button { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.mc-dots button::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ln2); transition: width .2s, background .2s; }
.mc-dots button.on::after { width: 26px; border-radius: 5px; background: var(--am); }
.mc-acts { grid-area: ac; }
.mc-acts .btn svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .mc { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px 4px; }
  .mc-stage { min-height: 190px; } .mc.sm .mc-stage { min-height: 138px; }
  .mc-orb { width: 184px; height: 184px; } .mc.sm .mc-orb { width: 132px; height: 132px; }
  .mc-nav { width: 42px; height: 42px; }
  .mc-name { font-size: 22px; } .mc-trait { font-size: 13.5px; } .mc-say { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .mc.poofing .poof, .mc.go-l .mc-orb, .mc.go-r .mc-orb { animation: none !important; } }

/* 6.2.6 — знакомство по шагам */
.ob .ob-h { padding: 26px 34px 6px; text-align: center; }
.ob .ob-h h1 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.ob .ob-h p { font-size: 16px; color: var(--tx2); margin: 8px auto 0; max-width: 720px; line-height: 1.5; }
.ob .ob-h.row2 { display: flex; align-items: center; gap: 20px; text-align: left; padding-bottom: 0; }
.ob .ob-h.row2 p { margin-left: 0; }
.ob .ob-m { flex: none; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: var(--soft); }
.ob1 .mc { padding: 14px 34px 20px; }
.ob2 .vmodes { padding: 8px 34px 26px; margin-top: 10px; }
.ob .ob-l { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ob .ob-l li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--tx2); line-height: 1.45; }
.ob .ob-l svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ob3 .vhero { padding: 30px 34px; }
.ob .foot > :first-child { margin-right: auto; }
.mc .mc-say { margin: 12px auto 0; }
.mc { max-width: 760px; margin-inline: auto; }
@media (min-width: 1600px) { .ds.ob { max-width: 1200px; margin-inline: auto; } }
@media (max-width: 760px) {
  .ob .ob-h { padding: 18px 18px 2px; } .ob .ob-h h1 { font-size: 22px; } .ob .ob-h p { font-size: 14.5px; }
  .ob .ob-h.row2 { gap: 12px; } .ob .ob-m { width: 72px; height: 72px; }
  .ob1 .mc { padding: 8px 10px 14px; } .ob2 .vmodes { padding: 4px 18px 18px; }
  .ob3 .vhero { padding: 18px; } .ob .ob-l li { font-size: 14px; }
}

/* 6.2.6 — гостевое знакомство по шагам */
.dsteps { list-style: none; display: flex; gap: 8px; margin: 0 0 16px; padding: 0; flex-wrap: wrap; }
.dsteps li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--mu); background: var(--soft); border-radius: 999px; padding: 5px 12px 5px 6px; }
.dsteps li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--card); font-size: 12px; color: var(--tx); }
.dsteps li.on { background: var(--am-t); color: var(--tx); } .dsteps li.on b { background: var(--am); color: #1C1300; }
.dsteps li.ok b { background: var(--ok-t); color: var(--ok); }

/* 6.2.6 — лист «Напарник» */
.msheet { width: min(620px, calc(100vw - 24px)); }
.msheet .sheet-in { padding: 20px 22px; }
.msheet .ch { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.msheet .ch h2 { font-size: 22px; font-weight: 800; }
.msheet .ch span { font-size: 13.5px; color: var(--mu); }
.msheet .ch .mx { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--soft); border-radius: 50%; cursor: pointer; color: var(--tx); }
.msheet .ch .mx svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.msheet .foot { display: flex; justify-content: flex-end; padding-top: 10px; }
@media (max-width: 760px) { .msheet { width: 100vw; } .msheet .sheet-in { padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); } .msheet .ch span { flex-basis: 100%; order: 3; } .msheet .foot .btn { width: 100%; } }

/* 6.2.6 — широкие мониторы: страница шире, содержимое расходится по колонкам (zoom у body учтён: ширина в «логических» точках) */
@media (min-width: 1600px) {
  :root { --page: min(1680px, 100% - 112px); }
  main { max-width: var(--page); }
  body.in-test main { max-width: 1400px; }
  .ds .vgrid2 { gap: 28px; }
  .pg .rings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg .rings.one { grid-template-columns: 1fr; }
  .ds.pf { max-width: none !important; }
  .pf .pfg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf .pfg > .col:first-child { display: contents; }
  .pf .pfg > section, .pf .pfg > .col { align-self: start; }
  .lrn { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; }
}
@media (min-width: 3200px) { :root { --page: min(1880px, 100% - 112px); } }
@media (max-width: 760px) { .ob .foot .btn.y { order: -1; } .ob .foot #back { order: 3; } }
/* 6.2.6: «Выйти» и подписи кнопок не переносятся по буквам на узких телефонах */
button, .tk .run .x { overflow-wrap: normal; }
.tk .run .x { flex: none; white-space: nowrap; }
@media (max-width: 420px) { .tk .dots { flex: 0 1 auto; min-width: 0; gap: 4px; } .tk .dots i, .tk .dots.many i { flex: 0 1 16px; min-width: 4px; width: auto; } .tk .dots b { margin-left: 4px; } }

/* 6.2.7 — логотип SAYFE.PRO: каска оранжевая, облачко и надпись — тёмно-синие (в тёмной теме светлые), «про ПБ» — серо-синяя */
:root { --brand-ink: #000F26; --brand-tag: #3F4F66; }
:root[data-theme="dark"] { --brand-ink: #E8EEF5; --brand-tag: #93A1B0; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --brand-ink: #E8EEF5; --brand-tag: #93A1B0; } }
.brand { color: var(--brand-ink); display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { display: block; flex: none; }
.brand .b-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.top .logo.brand .b-mk { width: 38px; height: 40px; }
.top .logo.brand .b-wd { width: 126px; height: 18px; }
.top .logo.brand .b-tg { width: 49px; height: 14px; }
@media (max-width: 760px) { .top .logo.brand .b-mk { width: 32px; height: 34px; } .top .logo.brand .b-wd { width: 112px; height: 16px; } .top .logo.brand .b-tg { display: none; } }
/* вход: тёмная панель — надпись белая, «про ПБ» светлая */
.ent .lg.brand { color: #fff; --brand-tag: #A9BAD0; gap: 16px; }
.ent .lg.brand .b-mk { width: 62px; height: 65px; }
.ent .lg.brand .b-wd { width: 210px; height: 30px; }
.ent .lg.brand .b-tg { width: 80px; height: 23px; }
.ent .lg.brand .b-tx { gap: 8px; }
@media (max-width: 760px) { .ent .lg.brand .b-mk { width: 46px; height: 48px; } .ent .lg.brand .b-wd { width: 154px; height: 22px; } .ent .lg.brand .b-tg { width: 60px; height: 17px; } }
@media (max-width: 380px) { body.onb .top .logo.brand .b-tx { display: none; } }
