/* Единая фитнес-база — стили интерфейса.
   Цветовая система построена на цветах олимпийских блинов: синий (20 кг), жёлтый (15 кг),
   зелёный (10 кг), красный (25 кг). Синий — основное действие, зелёный — успех,
   жёлтый — фокус и внимание, красный — ошибки и необратимые действия. */

@font-face { font-family: "Onest"; font-weight: 400; font-display: swap;
  src: url("../fonts/onest-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap;
  src: url("../fonts/onest-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2212; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap;
  src: url("../fonts/onest-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap;
  src: url("../fonts/onest-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2212; }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap;
  src: url("../fonts/onest-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap;
  src: url("../fonts/onest-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2212; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap;
  src: url("../fonts/unbounded-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap;
  src: url("../fonts/unbounded-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap;
  src: url("../fonts/unbounded-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap;
  src: url("../fonts/unbounded-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --ink: #18202f;
  --ink-2: #444e62;
  --ink-3: #5f687b;
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --line: #d9dee6;
  --line-strong: #b9c1cd;
  --blue: #1f4fd8;
  --blue-hover: #173dab;
  --blue-soft: #e7edfc;
  --blue-ink: #163a9e;
  --yellow: #f2b705;
  --yellow-soft: #fff5d6;
  --yellow-ink: #7a5a00;
  --green: #17855a;
  --green-soft: #e2f3eb;
  --green-ink: #0f6243;
  --red: #c7312b;
  --red-soft: #fbe8e7;
  --red-ink: #9b221d;
  --focus: #f2b705;
  /* 1.23: текст на цветной заливке (в тёмной теме заливки светлее — текст на них тёмный) и постоянные цвета блинов */
  --on-fill: #fff;
  --plate-blue: #1f4fd8; --plate-yellow: #f2b705; --plate-green: #17855a; --plate-red: #c7312b;
  --chart-line: #1f4fd8;
  --chart-grid: #e3e7ee;
  --shadow: 0 1px 2px rgba(24, 32, 47, .06), 0 4px 16px rgba(24, 32, 47, .05);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8ecf3; --ink-2: #c0c7d4; --ink-3: #9aa3b4;
    --bg: #0e131b; --surface: #161d29; --surface-2: #1b2331; --line: #2a3445; --line-strong: #3b4759;
    --blue: #6f95ff; --blue-hover: #8eabff; --blue-soft: #1d2a4a; --blue-ink: #a9bfff;
    --yellow: #f5c534; --yellow-soft: #3a3115; --yellow-ink: #f5d77a; --on-fill: #0e131b;
    --green: #3fbf88; --green-soft: #15342a; --green-ink: #8fe0bc;
    --red: #ff7a72; --red-soft: #3c1c1c; --red-ink: #ffb1ab;
    --chart-line: #6f95ff; --chart-grid: #263041;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--yellow-soft); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.prose { max-width: 70ch; }
/* Текстовая страница (соглашение, политика, программа заработка) — колонкой по центру, как остальные */
.page > .prose { margin-left: auto; margin-right: auto; }
.prose h2 { margin-top: 1.4em; }
.prose img { border-radius: var(--r-sm); }

/* --- Шапка ------------------------------------------------------------------ */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.topnav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.topnav a, .topnav button.linklike {
  color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: var(--r-sm); font-weight: 500; font-size: .95rem;
}
.topnav a:hover, .topnav button.linklike:hover { background: var(--surface-2); color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--blue-soft); }
.bell { position: relative; }
.bell .count { position: absolute; top: 0; right: -2px; background: var(--red); color: var(--on-fill); font-size: .7rem; line-height: 1; padding: 3px 5px; border-radius: 999px; font-weight: 700; }
.menu-toggle { display: none; margin-left: auto; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .topnav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .topnav.open { display: flex; }
  .topnav a, .topnav button.linklike { padding: 12px 10px; text-align: left; }
}

.areanav { background: var(--surface); border-bottom: 1px solid var(--line); }
.areanav-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.areanav-in::-webkit-scrollbar { display: none; }
.areanav a { flex: none; padding: 12px 12px 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; font-size: .95rem; }
.areanav a:hover { color: var(--ink); }
.areanav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.areanav .ws-name { flex: none; padding: 12px 12px 10px 0; font-weight: 700; color: var(--ink); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* на широком экране разделы переносятся во вторую строку, а не обрезаются у края */
@media (min-width: 900px) {
  .areanav-in { flex-wrap: wrap; overflow: visible; }
  .areanav a, .areanav .ws-name { padding: 10px 10px 8px; }
  .areanav .ws-name { padding-left: 0; }
}
/* на телефоне — лента с прокруткой и мягким затуханием у правого края */
@media (max-width: 899px) {
  .areanav-in { mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 20px; }
}

/* --- Кнопки ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 500 1rem/1.2 var(--font); cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--on-fill); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--on-fill); }
.btn-success { background: var(--green); border-color: var(--green); color: var(--on-fill); }
.btn-success:hover { background: var(--green); border-color: var(--green); filter: brightness(.92); color: var(--on-fill); }
.btn-danger { color: var(--red-ink); border-color: var(--red); background: var(--surface); }
.btn-danger:hover { background: var(--red-soft); color: var(--red-ink); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue-ink); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .9rem; border-radius: var(--r-sm); }
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
button.linklike { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
button.linklike.small { font-size: .875rem; } /* font: inherit выше перебивал .small — «Отменить запись» была крупнее соседних ссылок */
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline { display: inline; }

/* --- Сетка и карточки ----------------------------------------------------------- */
.page { padding-top: 24px; padding-bottom: 56px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; }
.crumbs { font-size: .9rem; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { color: var(--ink-3); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-main { grid-template-columns: 2fr 1fr; } }
.stack > * + * { margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card.attention { border-color: color-mix(in srgb, var(--yellow) 38%, var(--line)); background: color-mix(in srgb, var(--yellow-soft) 45%, var(--surface)); box-shadow: none; }
.card.link-card { display: block; text-decoration: none; color: inherit; }
.card.link-card:hover { border-color: var(--blue); }
.section { margin-top: 28px; }
.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.list > li:first-child { border-top: 0; padding-top: 0; }
.list > li:last-child { padding-bottom: 0; }
.list .grow { flex: 1 1 220px; min-width: 0; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--ink-3); font-size: .9rem; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* --- Статусы ------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 500; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-blue { background: var(--blue-soft); color: var(--blue-ink); border-color: transparent; }
.b-green { background: var(--green-soft); color: var(--green-ink); border-color: transparent; }
.b-yellow { background: var(--yellow-soft); color: var(--yellow-ink); border-color: transparent; }
.b-red { background: var(--red-soft); color: var(--red-ink); border-color: transparent; }

/* --- Сообщения ------------------------------------------------------------------- */
.flashes { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 8px; border: 1px solid; }
.flash-ok { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); }
.flash-error { background: var(--red-soft); border-color: var(--red); color: var(--red-ink); }
.flash-info { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-ink); }
.notice { position: relative; padding: 12px 16px 12px 46px; border-radius: var(--r-md); background: color-mix(in srgb, var(--yellow-soft) 70%, var(--surface)); color: var(--ink-2); border: 1px solid color-mix(in srgb, var(--yellow) 32%, var(--line)); line-height: 1.5; }
.notice::before { content: "!"; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: #3d2e00; font-weight: 800; font-size: .8rem; display: grid; place-items: center; line-height: 1; }
.notice a { color: var(--blue-ink); }
.notice.ok { background: var(--green-soft); color: var(--green-ink); border-color: transparent; }
.vk-linked { display: flex; gap: 12px; align-items: center; }
.empty { padding: 28px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--ink-2); background: var(--surface); }
.empty p { margin-bottom: 12px; }

/* --- Формы ------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 500; }
.req { color: var(--red); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], input[type=tel], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--font);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input[type=file] { font: inherit; max-width: 100%; }
.hint { font-size: .875rem; color: var(--ink-3); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.error { color: var(--red-ink); font-size: .9rem; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin: 0; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 20px; }
.filters .field { flex: 1 1 160px; }
.filters .field.wide { flex-basis: 240px; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; flex-wrap: wrap; }
.segmented a { padding: 8px 14px; text-decoration: none; color: var(--ink-2); border-left: 1px solid var(--line); font-size: .92rem; }
.segmented a:first-child { border-left: 0; }
.segmented a[aria-current="true"] { background: var(--blue); color: var(--on-fill); }

.role-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.role-pick label { border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 12px; display: flex; gap: 10px; align-items: center; cursor: pointer; background: var(--surface); }
.role-pick input { accent-color: var(--blue); width: 20px; height: 20px; }
.role-pick label:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }

/* --- Таблицы ------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--ink-3); background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Публичная главная ---------------------------------------------------------------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 40px; align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.25fr 1fr; padding-top: 72px; padding-bottom: 64px; } }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.1rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 56ch; margin-bottom: 28px; }
.hero .actions { gap: 12px; }

/* Штанга: фирменный элемент — блины в цветах весов */
.barbell { position: relative; height: 220px; display: flex; align-items: center; justify-content: center; }
.barbell .bar { position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 5px; background: linear-gradient(var(--line-strong), var(--ink-3)); }
.barbell .bb-side { position: relative; display: flex; align-items: center; gap: 6px; }
.barbell .bb-side.right { flex-direction: row-reverse; }
.barbell .gap { flex: 0 0 34%; }
.barbell .plate { display: block; width: 22px; border-radius: 6px; box-shadow: inset -3px 0 0 rgba(0,0,0,.15); }
.barbell .collar { width: 12px; height: 46px; border-radius: 3px; background: var(--ink-3); }
.p-red { background: var(--plate-red); height: 200px; }
.p-blue { background: var(--plate-blue); height: 184px; }
.p-yellow { background: var(--plate-yellow); height: 160px; }
.p-green { background: var(--plate-green); height: 136px; }
.barbell figcaption { position: absolute; bottom: -6px; left: 0; right: 0; text-align: center; font-size: .85rem; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .barbell .plate { animation: load .6s cubic-bezier(.2,.7,.2,1) both; }
  .barbell .bb-side .plate:nth-child(2) { animation-delay: .08s; }
  .barbell .bb-side .plate:nth-child(3) { animation-delay: .16s; }
  .barbell .bb-side .plate:nth-child(4) { animation-delay: .24s; }
  @keyframes load { from { transform: translateX(var(--from, -40px)); opacity: 0; } to { transform: none; opacity: 1; } }
  .barbell .bb-side.right .plate { --from: 40px; }
}
@media (max-width: 959px) { .barbell { height: 150px; } .p-red { height: 140px; } .p-blue { height: 128px; } .p-yellow { height: 112px; } .p-green { height: 96px; } .barbell .plate { width: 16px; } }

.band { padding: 56px 0; }
.band + .band { border-top: 1px solid var(--line); }
.band.alt { background: var(--surface); }
.band h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.3rem); letter-spacing: -.015em; max-width: 24ch; }
.band .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.roles { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 860px) { .roles { grid-template-columns: repeat(3, 1fr); } }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.role h3 { font-size: 1.3rem; margin: 0; }
.role dl { margin: 0; display: grid; gap: 10px; }
.role dt { font-weight: 700; font-size: .9rem; }
.role dd { margin: 0; color: var(--ink-2); }
.role .btn { margin-top: auto; align-self: flex-start; }
.disc { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.disc::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); }
.disc.blue { background: var(--plate-blue); } .disc.yellow { background: var(--plate-yellow); } .disc.green { background: var(--plate-green); } .disc.red { background: var(--plate-red); }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 28px 0; }
.feature { padding: 18px 20px; border-left: 4px solid var(--line-strong); background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); }
.f-blue .feature { border-left-color: var(--plate-blue); } .f-yellow .feature { border-left-color: var(--plate-yellow); } .f-green .feature { border-left-color: var(--plate-green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--surface); font-weight: 500; }
.chip:hover { border-color: var(--blue); color: var(--blue-ink); }
.chip[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-fill); }
.chip .n { color: var(--ink-3); font-weight: 400; }
.chip[aria-current="true"] .n { color: #dfe6ff; }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 28px 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--blue); display: block; margin-bottom: 8px; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 500; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); max-width: 70ch; }
.faq-group + .faq-group { margin-top: 28px; }
.final-cta { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 760px) { .final-cta { grid-template-columns: repeat(3, 1fr); } }
.final-cta .btn { justify-content: flex-start; padding: 18px 20px; min-height: 64px; }

.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 28px; font-size: .95rem; margin-top: auto; }
.footer-in { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .footer-in { grid-template-columns: 2fr 1fr 1fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--ink-2); }
.footer .legal { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; color: var(--ink-3); font-size: .875rem; }

/* --- Каталог ------------------------------------------------------------------- */
.item-card { display: flex; flex-direction: column; gap: 8px; }
.item-card h3 { margin: 0; font-size: 1.08rem; }
.item-card h3 a { color: var(--ink); text-decoration: none; }
.item-card h3 a:hover { color: var(--blue); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-3); font-size: .9rem; }
.cover { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Выполнение тренировки ------------------------------------------------------------ */
.ex { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.ex + .ex { margin-top: 12px; }
.ex-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.ex-head h2 { font-size: 1.15rem; margin: 0; }
.ex-plan { font-weight: 500; color: var(--ink-2); }
.ex-rule { font-size: .875rem; color: var(--yellow-ink); background: var(--yellow-soft); padding: 4px 10px; border-radius: 6px; display: inline-block; margin-top: 6px; }
.prev { margin-top: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-sm); font-size: .92rem; color: var(--ink-2); }
.prev strong { color: var(--ink); }
.sets { margin-top: 12px; display: grid; gap: 8px; }
.set-row { display: grid; grid-template-columns: 34px 1fr 1fr 56px; gap: 8px; align-items: center; }
.set-row.three { grid-template-columns: 34px 1fr 56px; }
.set-no { font-family: var(--display); font-weight: 800; color: var(--ink-3); text-align: center; }
.set-row input[type=number], .set-row input[type=text] { min-height: 52px; font-size: 1.15rem; text-align: center; font-variant-numeric: tabular-nums; padding: 8px 6px; }
.set-row .ph { font-size: .75rem; color: var(--ink-3); text-align: center; margin-top: 2px; }
.done-toggle { position: relative; width: 56px; height: 52px; }
.done-toggle input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.done-toggle span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 10px; border: 2px solid var(--line-strong); color: transparent; font-size: 1.4rem; background: var(--surface); }
.done-toggle input:checked + span { background: var(--green); border-color: var(--green); color: var(--on-fill); }
.done-toggle input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.set-head { display: grid; grid-template-columns: 34px 1fr 1fr 56px; gap: 8px; font-size: .8rem; color: var(--ink-3); text-align: center; }
.set-head.three { grid-template-columns: 34px 1fr 56px; }
.ex-tools { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.savebar { position: sticky; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 0; margin-top: 20px; }
.savebar-in { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.save-state { font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); }
.save-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.save-state[data-state="saved"] { color: var(--green-ink); } .save-state[data-state="saved"]::before { background: var(--green); }
.save-state[data-state="saving"] { color: var(--ink-2); } .save-state[data-state="saving"]::before { background: var(--yellow); }
.save-state[data-state="error"] { color: var(--red-ink); font-weight: 500; } .save-state[data-state="error"]::before { background: var(--red); }

/* --- Графики ------------------------------------------------------------------- */
.chart { width: 100%; height: auto; display: block; font-family: var(--font); }
.chart-grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart-axis { fill: var(--ink-3); font-size: 12px; }
.chart-line { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--chart-line); stroke: var(--surface); stroke-width: 2; }
.chart-hit { fill: transparent; }
.chart-pt:hover .chart-dot, .chart-pt:focus .chart-dot { r: 7; }
.chart-pt { outline: none; }
.chart-last { fill: var(--ink); font-size: 13px; font-weight: 700; }

.photos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
.photos figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 4px; }
.compare { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 14px 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue); }
.comment { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; }
.comment + .comment { margin-top: 8px; }
.comment .who { font-size: .85rem; color: var(--ink-3); margin-bottom: 4px; }
.lesson-row.locked { color: var(--ink-3); }
.notif.unread { box-shadow: inset 4px 0 0 var(--blue); padding-left: 12px; }
.builder-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; background: var(--surface); }
.builder-item + .builder-item { margin-top: 10px; }
.builder-item summary { cursor: pointer; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mini-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.mini-form .field { flex: 1 1 110px; }
.mini-form .field.wide { flex: 2 1 220px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; background: var(--surface-2); padding: 8px 10px; border-radius: 6px; word-break: break-all; }
.mail { white-space: pre-wrap; font-family: inherit; margin: 0; }

@media print { .topbar, .areanav, .footer, .savebar, .actions { display: none !important; } body { background: #fff; } }
.final-cta .disc { width: 28px; height: 28px; }
.final-cta .disc::after { width: 8px; height: 8px; }
.final-cta .btn-primary .disc { box-shadow: 0 0 0 2px #fff; }
a.stat { text-decoration: none; color: inherit; }
a.stat:hover strong { color: var(--blue); }
.actions input[type=number] { width: 84px; min-height: 36px; }
.mini-form .btn { align-self: flex-end; }
.btn.menu-toggle { display: none; }
@media (max-width: 860px) { .btn.menu-toggle { display: inline-flex; } }
.topnav a.btn-primary, .topnav a.btn-primary:hover { color: var(--on-fill); background: var(--blue); }
.topnav a.btn-primary:hover { background: var(--blue-hover); }
::placeholder { color: var(--ink-3); opacity: .7; }
.set-row input::placeholder { color: #a3abba; opacity: 1; font-weight: 400; }
.set-row input:not(:placeholder-shown) { font-weight: 700; border-color: var(--ink-3); }
@media (max-width: 600px) {
  .barbell { height: 104px; } .barbell .plate { width: 12px; border-radius: 4px; }
  .p-red { height: 100px; } .p-blue { height: 90px; } .p-yellow { height: 78px; } .p-green { height: 66px; }
  .barbell .collar { height: 30px; width: 8px; }
  .hero-in { padding-top: 32px; padding-bottom: 28px; gap: 20px; }
}
.mini-form input[type=date] { min-width: 150px; }
@media (max-width: 600px) {
  .savebar { padding: 8px 0; }
  .savebar-in { gap: 6px; }
  .savebar .save-state { font-size: .82rem; }
  .savebar .actions { flex-wrap: nowrap; width: 100%; }
  .savebar .actions .btn { min-height: 46px; padding: 8px 14px; }
  .savebar .actions .btn:last-child { flex: 1; }
}
.chart { max-width: 820px; }

/* --- Тарифы и оплата ------------------------------------------------------------- */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.recommended { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.plan.current { border-color: var(--green); }
.plan .plan-flag { position: absolute; top: -12px; left: 20px; }
.plan h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.plan .audience { color: var(--ink-3); margin: 0; font-size: .92rem; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; }
.price span { color: var(--ink-3); }
.price-year { font-size: .9rem; color: var(--ink-2); margin: 0; }
.price-year b { color: var(--green-ink); font-weight: 700; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.plan li.off { color: var(--ink-3); }
.plan li.off::before { background: transparent; border: 2px solid var(--line-strong); width: 6px; height: 6px; }
.plan .limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan .limits div { display: flex; flex-direction: column; }
.plan .limits strong { font-size: 1.15rem; }
.plan .limits span { font-size: .8rem; color: var(--ink-3); }
.plan .plan-actions { margin-top: auto; display: grid; gap: 8px; }
progress.meter { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; color: var(--blue); }
progress.meter::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
progress.meter::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
progress.meter::-moz-progress-bar { background: var(--blue); border-radius: 999px; }
progress.meter.near::-webkit-progress-value { background: var(--yellow); } progress.meter.near::-moz-progress-bar { background: var(--yellow); }
progress.meter.full::-webkit-progress-value { background: var(--red); } progress.meter.full::-moz-progress-bar { background: var(--red); }
.usage { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.usage .num { font-weight: 700; }
.pay-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pay-grid { grid-template-columns: 3fr 2fr; } }
.pay-amount { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1.1; margin: 4px 0 0; }
.pay-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pay-steps > li { counter-increment: step; padding-left: 40px; position: relative; }
.pay-steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.copy-row { margin: 10px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy-row .code { flex: 1 1 200px; }
.qr { max-width: 220px; width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 8px; }
.banner { border-bottom: 1px solid var(--yellow); background: var(--yellow-soft); color: var(--yellow-ink); }
.banner .container { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner.danger { background: var(--red-soft); color: var(--red-ink); border-color: var(--red); }
.areanav a.locked { color: var(--ink-3); }
.areanav a.locked::after { content: " ·\00a0тариф"; font-size: .75rem; font-weight: 400; }
.ws-logo { height: 40px; width: auto; max-width: 160px; object-fit: contain; border-radius: 6px; }
.ws-brand { display: flex; align-items: center; gap: 12px; }

/* Тарифы на телефоне — карусель: листается вправо-влево, карточки встают по центру */
.plans { position: relative; }
.plan-dots { display: none; }
@media (max-width: 899.98px) {
  .plans { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 16px 16px 6px; scroll-padding: 0 16px; scrollbar-width: none;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .plans::-webkit-scrollbar { display: none; }
  .plans > .plan { flex: 0 0 min(86%, 380px); scroll-snap-align: center; scroll-snap-stop: always; }
  .plan-dots { display: flex; justify-content: center; gap: 4px; margin: 12px 0 -10px; }
  .plan-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .plan-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); transition: width .2s, background .2s; }
  .plan-dots button[aria-current="true"]::before { width: 22px; background: var(--blue); }
}
@media (max-width: 899.98px) and (prefers-reduced-motion: reduce) { .plan-dots button::before { transition: none; } }

/* --- Расписание тренера: календарь недели ------------------------------------------ */
.week-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.week-nav .range { font-family: var(--display); font-weight: 600; font-size: 1.1rem; min-width: 15ch; text-align: center; }
.cal { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.cal-head, .cal-body { display: grid; grid-template-columns: 64px repeat(7, minmax(0, 1fr)); }
.cal-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.cal-head .dh { padding: 12px 8px 10px; text-align: center; border-left: 1px solid var(--line); text-decoration: none; color: inherit; }
.cal-head .dh .wd { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.cal-head .dh .num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-top: 4px; border-radius: 50%; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.cal-head .dh.today .num { background: var(--blue); color: var(--on-fill); }
.cal-head .dh.past { opacity: .55; }
.cal-head .dh .load { display: block; font-size: .75rem; color: var(--ink-3); margin-top: 2px; min-height: 1em; }
.cal-body { position: relative; height: 768px; --hour: 64px; }
.cal-times { position: relative; }
.cal-times span { position: absolute; right: 10px; transform: translateY(-50%); font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cal-times span:first-child { transform: none; }
/* нерабочее время — серое, рабочие часы — светлые; линии часов поверх */
.cal-day { position: relative; border-left: 1px solid var(--line); background-color: var(--surface-2); }
.cal-day::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hour)); }
.cal-work { position: absolute; left: 0; right: 0; background: var(--surface); }
.cal-day.today .cal-work { background: color-mix(in srgb, var(--blue-soft) 40%, var(--surface)); }
.cal-off { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: .85rem; font-weight: 600;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--surface) 10px 20px); }
.cal-ev { position: absolute; left: 5px; right: 5px; border-radius: 10px; padding: 6px 8px 6px 10px; overflow: hidden; text-decoration: none;
  font-size: .8rem; line-height: 1.25; background: var(--blue-soft); color: var(--blue-ink); border-left: 4px solid var(--blue);
  box-shadow: 0 1px 2px rgba(24, 32, 47, .08); display: flex; flex-direction: column; gap: 1px; min-height: 22px; }
.cal-ev:hover, .cal-ev:focus-visible { box-shadow: 0 4px 14px rgba(24, 32, 47, .18); z-index: 2; }
.cal-ev .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-ev .n { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev .s { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev { z-index: 1; }
.cal-ev.short { flex-direction: row; align-items: center; gap: 6px; padding-top: 2px; padding-bottom: 2px; white-space: nowrap; }
.cal-ev.short .s { display: none; }
.cal-ev.st-pending { background: var(--yellow-soft); color: var(--yellow-ink); border-left-color: var(--yellow); border-style: dashed; border-width: 0 0 0 4px; }
.cal-ev.st-completed { background: var(--green-soft); color: var(--green-ink); border-left-color: var(--green); }
.cal-ev.st-no_show { background: var(--red-soft); color: var(--red-ink); border-left-color: var(--red); }
.cal-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--red); z-index: 3; pointer-events: none; }
.cal-off { z-index: 1; }
.cal-now::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); }
.cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; background: var(--blue-soft); border-left: 3px solid var(--blue); }
.cal-legend .lg-work::before { background: var(--surface); border: 1px solid var(--line-strong); }
.cal-legend .lg-pending::before { background: var(--yellow-soft); border-left-color: var(--yellow); }
.cal-legend .lg-completed::before { background: var(--green-soft); border-left-color: var(--green); }
.agenda { display: none; }
@media (max-width: 899.98px) {
  .cal { display: none; }
  .agenda { display: grid; gap: 12px; }
}
.agenda-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.agenda-day.today { border-color: var(--blue); }
.agenda-day h3 { margin: 0 0 8px; font-size: 1rem; }
.agenda-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.agenda-row .time { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 6.5ch; }
.agenda-row .grow { min-width: 0; }

/* Рабочие часы: неделя полосками */
.hours-week { display: grid; gap: 10px; }
.hours-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.htrack { position: relative; height: 34px; border-radius: 8px; background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / 6)), var(--surface-2); }
.hbar { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; background: var(--green); color: var(--on-fill); font-size: .75rem; font-weight: 600; display: grid; place-items: center; overflow: hidden; white-space: nowrap; }
.hscale { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.hscale div { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-3); }
@media (max-width: 600px) { .hours-row, .hscale { grid-template-columns: 64px 1fr; } }

/* Прайс */
.price-list { display: grid; gap: 12px; }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.svc.off { opacity: .6; }
.svc h3 { margin: 0; font-size: 1.1rem; }
.svc .svc-price { font-family: var(--display); font-weight: 800; font-size: 1.35rem; white-space: nowrap; }
.svc .meta { grid-column: 1 / -1; }

/* Запись ученика */
.steps-book { display: grid; gap: 20px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.step-card > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 14px; }
.step-card > h2 .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--on-fill); font-size: .9rem; flex: none; }
.step-card.done > h2 .n { background: var(--green); }
.pick-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.pick { display: block; border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 14px 16px; text-decoration: none; color: inherit; background: var(--surface); }
.pick:hover { border-color: var(--blue); }
.pick[aria-current="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); background: color-mix(in srgb, var(--blue-soft) 35%, var(--surface)); }
.pick .pt { font-weight: 700; display: block; }
.pick .pp { font-family: var(--display); font-weight: 800; font-size: 1.2rem; display: block; margin-top: 6px; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; flex: none; }
.who { display: flex; align-items: center; gap: 12px; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.date-pill { flex: 0 0 74px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px;
  border: 1px solid var(--line-strong); text-decoration: none; color: inherit; background: var(--surface); }
.date-pill .wd { font-size: .75rem; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.date-pill .dn { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.1; }
.date-pill .mo { font-size: .75rem; color: var(--ink-3); }
.date-pill .cnt { font-size: .72rem; font-weight: 600; color: var(--green-ink); }
.date-pill:hover { border-color: var(--blue); }
.date-pill[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-fill); }
.date-pill[aria-current="true"] .wd, .date-pill[aria-current="true"] .mo, .date-pill[aria-current="true"] .cnt { color: #fff; }
.date-pill.none { opacity: .45; pointer-events: none; background: var(--surface-2); }
.date-pill.none .cnt { color: var(--ink-3); }
.time-group + .time-group { margin-top: 14px; }
.time-group h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 8px; }
.time-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.time-chip { position: relative; }
.time-chip input { position: absolute; opacity: 0; inset: 0; }
.time-chip span { display: inline-flex; flex-direction: column; align-items: center; min-width: 82px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; background: var(--surface); }
.time-chip small { font-weight: 500; font-size: .7rem; color: var(--ink-3); }
.time-chip input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--on-fill); }
.time-chip input:checked + span small { color: #fff; }
.time-chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.bk-card { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.bk-date { text-align: center; border-radius: 14px; background: var(--blue-soft); color: var(--blue-ink); padding: 8px 4px; }
.bk-date .dn { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.05; }
.bk-date .mo, .bk-date .wd { display: block; font-size: .75rem; font-weight: 600; }
.bk-card.pending .bk-date { background: var(--yellow-soft); color: var(--yellow-ink); }
.bk-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.bk-card .time { font-weight: 700; font-variant-numeric: tabular-nums; }
.steps-book > *, .step-card, .page.narrow { min-width: 0; }
fieldset.time-group { min-width: 0; border: 0; padding: 0; margin: 0; }

/* ===== Компактная запись (телефон в первую очередь) ===== */
.book-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.book-head h1 { margin: 0; }
.book-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 700; margin: 18px 0 8px; font-family: var(--font); }
.who-line { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; min-width: 0; }
.who-line .avatar { width: 34px; height: 34px; }
.who-line .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-list { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.opt { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t p" "m p"; column-gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); position: relative; min-height: 52px; }
.opt:first-child { border-top: 0; }
.opt .t { grid-area: t; font-weight: 700; min-width: 0; }
.opt .m { grid-area: m; font-size: .82rem; color: var(--ink-3); min-width: 0; }
.opt .p { grid-area: p; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt:hover { background: var(--surface-2); }
.opt[aria-current="true"] { background: var(--blue-soft); box-shadow: inset 4px 0 0 var(--blue); }
.opt[aria-current="true"] .p { color: var(--blue-ink); }
.book-note { margin: 6px 2px 0; }
.book .date-strip { gap: 6px; padding: 2px 2px 6px; margin: 0 -2px; }
.book .date-pill { flex-basis: 54px; padding: 7px 4px; border-radius: 12px; gap: 0; }
.book .date-pill .dn { font-size: 1.15rem; }
.book .date-pill .wd { font-size: .68rem; }
.book .date-pill .cnt { font-size: .68rem; }
.book-form .book-label { margin-top: 14px; }
.book-form fieldset.time-group { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: start; }
.book-form fieldset.time-group + fieldset.time-group { margin-top: 8px; }
.tg-label { font-size: .75rem; color: var(--ink-3); font-weight: 600; padding-top: 10px; }
.book-form .time-chips { gap: 6px; }
.book-form .time-chip span { min-width: 64px; padding: 8px 6px; border-radius: 10px; }
.book-comment { margin: 12px 0 6px; }
.book-comment summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .92rem; padding: 4px 0; }
.book-comment .field { margin: 8px 0 0; }
.book-bar { position: sticky; bottom: 8px; z-index: 20; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 10px 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 6px 24px rgba(24, 32, 47, .14); }
.book-bar .grow { min-width: 0; display: grid; line-height: 1.25; }
.book-bar .grow strong, .book-bar .grow .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-bar [data-pick-time] { font-weight: 700; }
.book-bar [data-pick-time].unset { color: var(--ink-3); font-weight: 500; }
.book-bar .btn { flex: none; }

/* Меню «Ещё» в кабинете */
.menu-list { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.menu-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); min-height: 56px; }
.menu-list a:first-child { border-top: 0; }
.menu-list a > span:first-child { display: grid; min-width: 0; }
.menu-list a > span:last-child { color: var(--ink-3); font-size: 1.3rem; }
.menu-list a:hover { background: var(--surface-2); }

/* Нижнее меню на телефоне */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(24, 32, 47, .06); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--ink-3); text-decoration: none; min-height: 50px; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar circle { fill: currentColor; stroke: none; }
  .tabbar a[aria-current="page"] { color: var(--blue); }
  .tabbar .tab-main svg { width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: var(--blue); color: var(--on-fill); stroke: #fff; margin-top: -20px; box-shadow: 0 6px 16px rgba(31, 79, 216, .35); }
  .tabbar .tab-main[aria-current="page"] { color: var(--blue); }
  body:has(.tabbar) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body:has(.tabbar) .client-nav { display: none; }
  body:has(.tabbar) .book-bar { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .book h1 { font-size: 1.5rem; }
}
@media (max-width: 760px) { body:has(.tabbar) .footer { display: none; } }
.menu-legal { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; }

/* Ближайшая запись на главной кабинета */
.next-bk { display: flex; align-items: stretch; gap: 8px; }
.next-bk .nb-main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.next-bk .bk-date { flex: none; width: 52px; padding: 6px 2px; border-radius: 12px; }
.next-bk .bk-date .dn { font-size: 1.3rem; }
.next-bk.pending .bk-date { background: var(--yellow-soft); color: var(--yellow-ink); }
.next-bk .nb-text { display: grid; min-width: 0; line-height: 1.3; }
.next-bk .nb-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-bk .time { font-weight: 700; font-variant-numeric: tabular-nums; }
.next-bk .nb-add { flex: none; width: 56px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--blue); color: var(--on-fill); font-size: 1.6rem; text-decoration: none; }
.next-bk .nb-add:hover { background: var(--blue-hover); }
@media (max-width: 760px) { .m-hide { display: none; } }
.opt:hover, .opt:visited { color: inherit; }

/* Телефон: плотнее карточки и заголовки, чтобы меньше листать */
@media (max-width: 600px) {
  .page { padding-top: 16px; padding-bottom: 32px; }
  h1 { font-size: 1.5rem; }
  .page-head { margin-bottom: 14px; }
  .card { padding: 16px; }
  .card-head { flex-wrap: nowrap; margin-bottom: 8px; }
  .card-head h2 { font-size: 1.1rem; min-width: 0; }
  .card-head > a { white-space: nowrap; font-size: .9rem; flex: none; }
  .section { margin-top: 16px; }
}

/* Оплата по СБП — компактно */
.pay-card { gap: 12px; }
.pay-how { margin: 0; font-size: .92rem; color: var(--ink-2); }
.pay-req { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pay-req > div { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px 8px 12px; border-top: 1px solid var(--line); min-height: 48px; }
.pay-req > div:first-child { border-top: 0; }
.pay-req dt { font-size: .82rem; color: var(--ink-3); }
.pay-req dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pay-req .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; }
.pay-req .copy-btn { padding-left: 10px; padding-right: 10px; font-size: .82rem; }
.pay-more summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .92rem; }
.pay-done h2 { font-size: 1.15rem; }
.pay-done .field { margin-bottom: 12px; }
.pay-cancel { margin-top: 10px; text-align: center; }
@media (max-width: 600px) { .pay-amount { font-size: 1.9rem; } .pay-req > div { grid-template-columns: 80px 1fr auto; } }

/* Тариф тренера — компактно */
.plan-now-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plan-now-head h2 { margin: 0; font-size: 1.2rem; }
.plan-now p { margin: 10px 0 0; }
.usage-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.usage-mini > div { display: grid; gap: 2px; min-width: 0; }
.usage-mini .num { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.usage-mini .num .muted { font-weight: 500; font-size: .9rem; }
.usage-mini progress { width: 100%; height: 6px; }
.plan.compact { padding: 18px 18px 16px; gap: 10px; }
.plan.compact .limits { padding: 8px 0; }
.plan.compact .plan-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
.plan.compact .plan-actions .btn { flex-direction: column; gap: 0; padding-top: 8px; padding-bottom: 8px; line-height: 1.2; text-align: center; }
.plan.compact .plan-actions .btn span { font-size: .78rem; font-weight: 500; opacity: .9; }
.plan.compact .plan-actions .btn b { font-size: .98rem; white-space: nowrap; }
.plan-feats summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .92rem; padding: 2px 0; }
.plan-feats[open] summary { margin-bottom: 10px; }
.plan-feats ul { font-size: .92rem; }
.hint-more summary { cursor: pointer; color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.pay-hist { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.pay-hist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-top: 1px solid var(--line); }
.pay-hist li:first-child { border-top: 0; }
.pay-hist .grow { min-width: 0; }
.pay-hist-st { text-align: right; flex: none; }

/* ===== Расписание тренера ===== */
.m-only { display: none; }
@media (max-width: 899.98px) { .m-only { display: block; } .day-strip.m-only { display: grid; } .desk-only { display: none; } }
.sched-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sched-head h1 { margin: 0; }
.sched-head p { margin: 2px 0 0; }
.sched-tools { display: flex; gap: 8px; }
.sched-tools .tool { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.sched-tools .tool:hover { border-color: var(--blue); color: var(--blue); }
.sched-tools svg, .setup svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sched-tools circle[r="1.5"] { fill: currentColor; stroke: none; }
@media (max-width: 600px) {
  .sched-head { flex-wrap: nowrap; align-items: center; }
  .sched-tools .tool { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .sched-tools .tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.setup h2 { font-size: 1.15rem; margin: 0 0 2px; }
.setup > p { margin: 0 0 12px; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.setup-steps a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: inherit; background: var(--surface); }
.setup-steps .grow { display: grid; min-width: 0; }
.setup-steps .step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); font-weight: 700; flex: none; }
.setup-steps .go { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.setup-steps .done .step-n { background: var(--green); border-color: var(--green); color: var(--on-fill); }
.setup-steps .cur a { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.setup-steps .cur .step-n { background: var(--blue); border-color: var(--blue); color: var(--on-fill); }
.setup-steps .cur .go { color: var(--on-fill); background: var(--blue); padding: 6px 12px; border-radius: 8px; }
.week-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.week-sum { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) {
  .week-bar { gap: 6px; }
  .week-nav { width: 100%; flex-wrap: nowrap; }
  .week-nav .range { flex: 1; min-width: 0; font-size: 1rem; }
}
.day-strip { grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.day-pill { display: flex; flex-direction: column; align-items: center; padding: 6px 0 5px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; min-width: 0; }
.day-pill .wd { font-size: .66rem; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.day-pill .dn { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.day-pill .cnt { font-size: .68rem; font-weight: 700; color: var(--blue-ink); min-height: 1em; }
.day-pill.rest { background: var(--surface-2); }
.day-pill.rest .dn { color: var(--ink-3); }
.day-pill.today { border-color: var(--blue); }
.day-pill[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-fill); }
.day-pill[aria-current="true"] .wd, .day-pill[aria-current="true"] .cnt, .day-pill[aria-current="true"] .dn { color: #fff; }
.day-view { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 12px 6px; }
.day-view h2 { font-size: 1rem; margin: 2px 4px 8px; }
.tl-empty { margin: 4px 4px 10px; color: var(--ink-3); }
.day-line { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; padding-bottom: 6px; }
.day-line li > a, .day-line li > div { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; border-radius: 10px; padding: 8px 10px; min-height: 48px; }
.tl-time { width: 46px; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; display: grid; line-height: 1.2; }
.tl-time small { font-weight: 500; color: var(--ink-3); font-size: .75rem; }
.day-line .grow { min-width: 0; display: grid; line-height: 1.3; }
.day-line .grow > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-ev > a { background: var(--blue-soft); box-shadow: inset 4px 0 0 var(--blue); }
.tl-ev .small { color: var(--ink-2); }
.tl-st { font-size: .72rem; font-weight: 700; color: var(--blue-ink); flex: none; }
.tl-ev.st-pending > a { background: var(--yellow-soft); box-shadow: inset 4px 0 0 var(--yellow); }
.tl-ev.st-pending .tl-st { color: var(--yellow-ink); }
.tl-ev.st-completed > a { background: var(--green-soft); box-shadow: inset 4px 0 0 var(--green); }
.tl-ev.st-completed .tl-st { color: var(--green-ink); }
.tl-ev.st-no_show > a { background: var(--red-soft); box-shadow: inset 4px 0 0 var(--red); }
.tl-ev.st-no_show .tl-st { color: var(--red-ink); }
.tl-free > a, .tl-free > div { border: 1px dashed var(--line-strong); color: var(--ink-3); min-height: 40px; font-size: .9rem; }
.tl-free .tl-time { font-weight: 500; }
.tl-free > a:hover { border-color: var(--blue); color: var(--blue); }
.tl-add { flex: none; font-weight: 700; color: var(--blue); font-size: .85rem; }
.tl-free.past { opacity: .5; }
.add-book > summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 10px; list-style: none; }
.add-book > summary::-webkit-details-marker { display: none; }
.add-book .plus { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--on-fill); }
.add-book[open] > summary { margin-bottom: 12px; }
.add-book .form { max-width: 520px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair > .field { min-width: 0; }
.pair input { min-width: 0; width: 100%; }
.usage-mini > div { align-content: start; }

/* Рабочие часы */
.hours-page h1 { margin-bottom: 2px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-row form { margin: 0; }
.preset { font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.preset:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.week-hours .card-head form { margin: 0; }
.wh-list { list-style: none; margin: 0; padding: 0; }
.wh-day { display: grid; grid-template-columns: 34px 1fr 40px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.wh-day:first-child { border-top: 0; }
.wh-name { font-weight: 700; font-size: .9rem; text-transform: uppercase; }
.wh-day.rest .wh-name { color: var(--ink-3); }
.wh-main { min-width: 0; display: grid; gap: 6px; }
.wh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wh-chip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border-radius: 8px; background: var(--green-soft); color: var(--green-ink); font-weight: 700; font-size: .88rem; font-variant-numeric: tabular-nums; }
.wh-chip form { margin: 0; display: inline; }
.wh-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: .8rem; width: 26px; height: 26px; border-radius: 6px; opacity: .7; }
.wh-chip button:hover { opacity: 1; background: rgba(15, 98, 67, .12); }
.wh-off { color: var(--ink-3); font-size: .88rem; padding: 4px 0; }
.wh-track { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.wh-track span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--green); }
.wh-add { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px dashed var(--line-strong); color: var(--blue); text-decoration: none; font-size: 1.1rem; justify-self: end; }
.wh-add:hover { border-color: var(--blue); background: var(--blue-soft); }
.add-hours { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.add-hours > summary { cursor: pointer; color: var(--blue); font-weight: 700; padding: 4px 0; }
.add-hours[open] > summary { margin-bottom: 10px; }
.wd-pills { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.wd-pill { position: relative; }
.wd-pill input { position: absolute; opacity: 0; inset: 0; }
.wd-pill span { display: grid; place-items: center; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); font-weight: 700; font-size: .85rem; text-transform: uppercase; cursor: pointer; background: var(--surface); }
.wd-pill input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--on-fill); }
.wd-pill input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
details.fold > summary { cursor: pointer; display: flex; align-items: center; gap: 10px; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .grow { display: grid; min-width: 0; }
details.fold > summary::after { content: "›"; font-size: 1.4rem; color: var(--ink-3); transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(90deg); }
details.fold[open] > summary { margin-bottom: 12px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.switch-row input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line-strong); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s; }
.switch-row input:checked { background: var(--green); }
.switch-row input:checked::after { left: 21px; }
.switch-row input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 12px; }
.rule-grid .field { min-width: 0; }
.rule-grid input { min-width: 0; width: 100%; }
details.fold > summary .grow { flex: 1; }
.wh-chip { font-size: .84rem; padding-left: 8px; }
.wh-chip button { width: 24px; height: 24px; }

/* Прайс тренера */
.svc-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.svc-row { border-top: 1px solid var(--line); }
.svc-row:first-child { border-top: 0; }
.svc-row > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; min-height: 56px; }
.svc-row > summary::-webkit-details-marker { display: none; }
.svc-row > summary .grow { display: grid; min-width: 0; flex: 1; }
.svc-row > summary::after { content: "›"; font-size: 1.3rem; color: var(--ink-3); transition: transform .15s; }
.svc-row[open] > summary { background: var(--surface-2); }
.svc-row[open] > summary::after { transform: rotate(90deg); }
.svc-row.off > summary { opacity: .6; }
.svc-p { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-body { padding: 4px 14px 14px; }
.svc-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.svc-acts form { margin: 0; }
.wh-day { grid-template-columns: 30px 1fr 36px; gap: 6px; }
.wh-chips { gap: 4px; }
.wh-chip { padding-left: 7px; gap: 0; font-size: .82rem; }
.wh-chip button { width: 22px; height: 24px; }
.wh-add { width: 34px; height: 34px; }
.rule-grid { align-items: start; }
.rule-grid label { font-size: .85rem; }
.book .bk-card { grid-template-columns: 60px 1fr; gap: 12px; padding: 12px; }
.book .bk-card h3 { font-size: 1rem; }
.book .bk-card p { margin: 2px 0; }
.book .bk-date .dn { font-size: 1.4rem; }

/* ===== 1.10: уведомления ВКонтакте, сообщения, абонементы, вовлечённость ===== */
:root { --vk: #0077ff; --vk-hover: #0063d6; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--on-fill); font-size: .72rem; font-weight: 700; line-height: 1; vertical-align: 1px; }
.tabbar a { position: relative; }
.tab-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: var(--on-fill); font-size: .66rem; display: grid; place-items: center; font-weight: 700; }
.hide-sm { }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* ВКонтакте */
.vk-logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--vk); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: -.02em; flex: none; }
.btn-vk { background: var(--vk); border-color: var(--vk); color: #fff; }
.btn-vk:hover { background: var(--vk-hover); border-color: var(--vk-hover); color: #fff; }
.btn-vk .vk-logo { width: 24px; height: 24px; border-radius: 7px; background: #fff; color: var(--vk); font-size: .65rem; margin-right: 6px; }
.vk-banner { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--vk) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--vk) 25%, var(--line)); }
.vk-banner .grow { min-width: 0; }
.vk-banner form { margin: 0; }
@media (max-width: 600px) { .vk-banner { flex-wrap: wrap; } .vk-banner .grow { flex: 1 1 calc(100% - 50px); } .vk-banner .btn { flex: 1; } }
.vk-card { border-color: color-mix(in srgb, var(--vk) 30%, var(--line)); }
.vk-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 12px; }
.vk-steps li::marker { color: var(--ink-3); font-weight: 700; }
.vk-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; background: var(--surface-2); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); user-select: all; }
.vk-wait { margin: 12px 0 0; }
.vk-wait::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--vk); margin-right: 8px; vertical-align: 0; animation: vkpulse 1.2s infinite ease-in-out; }
.vk-wait.ok { color: var(--green-ink); font-weight: 700; }
.vk-wait.ok::before { background: var(--green); animation: none; }
@keyframes vkpulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .vk-wait::before { animation: none; } }
.vk-head { display: flex; align-items: center; gap: 12px; }
.vk-what { margin: 12px 0; padding-left: 1.2em; color: var(--ink-2); }
.channel-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.channel-row:first-of-type { border-top: 0; }
.channel-row .grow { display: grid; min-width: 0; }
.push-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); flex: none; }
.push-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* После записи */
.done-hero { text-align: center; padding: 8px 0 16px; }
.done-hero h1 { margin: 8px 0 4px; }
.done-hero p { margin: 0; }
.done-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--on-fill); font-size: 1.6rem; font-weight: 800; box-shadow: 0 8px 22px rgba(23, 133, 90, .3); }
.done-skip { text-align: center; margin-top: 8px; }
.health-cta { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; }
.health-cta .grow { display: grid; }
.health-cta > span:last-child { color: var(--ink-3); font-size: 1.3rem; }

/* Лист ожидания, повтор */
.date-pill.full { background: var(--yellow-soft); border-color: color-mix(in srgb, var(--yellow) 60%, var(--line)); }
.date-pill.full .cnt { color: var(--yellow-ink); }
.wl-box { margin-top: 14px; padding: 14px; border-radius: var(--r-md); background: var(--yellow-soft); border: 1px solid color-mix(in srgb, var(--yellow) 50%, var(--line)); }
.wl-box p { margin: 0 0 10px; }
.wl-box form { margin: 0; }
.book-repeat { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.book-repeat label { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.book-repeat select { flex: 1; min-width: 0; }
.pkg-line { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--green-soft); color: var(--green-ink); }
.wl-line { margin: 8px 4px 0; color: var(--yellow-ink); }
.sched-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .9rem; }
.sched-links a { color: var(--ink-2); }

/* Ежедневная отметка */
.checkin .card-head { flex-wrap: wrap; }
.streaks { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.streak { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--yellow-soft); color: var(--yellow-ink); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.streak::before { content: "🔥"; }
.streak.alt { background: var(--blue-soft); color: var(--blue-ink); }
.streak.alt::before { content: "💪"; }
.checkin-form fieldset.scale { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
.checkin-form legend { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.scale-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale-pill { position: relative; }
.scale-pill input { position: absolute; opacity: 0; inset: 0; }
.scale-pill > span { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: 1.35rem; cursor: pointer; background: var(--surface); transition: transform .1s; }
.scale-pill input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px var(--blue); }
.scale-pill input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.checkin-form .pair { margin-bottom: 10px; }

/* Анкета здоровья (1.22.1: вопрос и переключатель в одну строку, колонка по центру) */
/* 1.22.2: анкета здоровья — плотные ряды, переключатель «Нет / Да», лампы ответов в нижней панели */
.hq { max-width: 760px; margin-left: auto; margin-right: auto; --hq-pad: 20px; }
.hq-head { margin: 4px 0 18px; }
.hq-head h1 { margin: 0 0 6px; }
.hq-head p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.hq-private { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; font-size: .85rem; color: var(--ink-3) !important; }
.hq-private .ic { flex: none; color: var(--green); }
.hq-form { display: flex; flex-direction: column; gap: 12px; }
.hq-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.hq-sheet-head { padding: 18px var(--hq-pad) 4px; }
.hq-sheet-head h2 { margin: 0 0 4px; font-size: 1.05rem; }
.hq-sheet-head p { margin: 0; font-size: .875rem; color: var(--ink-3); max-width: 64ch; }
.hq fieldset.hq-group { border: 0; border-radius: 0; margin: 0; padding: 10px 0 6px; min-width: 0; }
.hq fieldset.hq-group + .hq-group { border-top: 1px solid var(--line); }
.hq-group legend { float: left; width: 100%; padding: 8px var(--hq-pad) 2px; font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.hq-group legend + * { clear: left; }
.hq-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px;
  padding: 9px var(--hq-pad); box-shadow: inset 3px 0 0 transparent; transition: background-color .15s, box-shadow .15s; }
.hq-q.is-yes { background: color-mix(in srgb, var(--yellow-soft) 70%, var(--surface)); box-shadow: inset 3px 0 0 var(--yellow); }
.hq-q.is-missing { box-shadow: inset 3px 0 0 var(--red); }
.hq-q.is-missing .hq-seg { box-shadow: 0 0 0 2px var(--red); }
.hq-text { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--ink); }
.hq-seg { display: grid; grid-template-columns: 1fr 1fr; width: 116px; height: 34px; padding: 2px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); }
.hq-opt { position: relative; display: block; }
.hq-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hq-opt span { display: grid; place-items: center; height: 100%; border-radius: 8px; font-size: .875rem; font-weight: 600;
  color: var(--ink-3); transition: background-color .12s, color .12s; pointer-events: none; }
.hq-opt:hover span { color: var(--ink); }
.hq-no input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong), 0 1px 2px rgba(24, 32, 47, .12); }
.hq-yes input:checked + span { background: var(--yellow); color: #2a2000; }
.hq-opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }
.hq-follow { grid-column: 1 / -1; margin-top: 10px; }
.hq-follow label { display: block; margin-bottom: 4px; font-size: .8rem; font-weight: 600; color: var(--yellow-ink); }
.hq-follow textarea { width: 100%; min-height: 0; resize: vertical; font-size: .9rem; background: var(--surface); }
.hq-follow:not([hidden]) { animation: hq-open .18s ease-out; }
@keyframes hq-open { from { opacity: 0; transform: translateY(-4px); } }
.hq-more > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  padding: 14px var(--hq-pad); cursor: pointer; list-style: none; border-radius: var(--r-lg); }
.hq-more > summary::-webkit-details-marker { display: none; }
.hq-more > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hq-more-t { font-weight: 600; color: var(--ink); }
.hq-more-s { grid-row: 2; font-size: .85rem; color: var(--ink-3); }
.hq-more-ic { grid-row: 1 / 3; grid-column: 2; color: var(--ink-3); transition: transform .15s; }
.hq-more[open] .hq-more-ic { transform: rotate(180deg); }
.hq-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 2px var(--hq-pad) 18px; }
.hq-more-grid .field { margin: 0; }
.hq-more-grid textarea { min-height: 0; resize: vertical; }
.hq-more-grid .hint { font-size: .78rem; }
.hq-consent { display: flex; gap: 10px; align-items: flex-start; padding: 2px 4px; font-size: .8rem; line-height: 1.5; color: var(--ink-3); cursor: pointer; }
.hq-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }
.hq-consent.is-missing { color: var(--red-ink); }
.hq-consent.is-missing input { outline: 2px solid var(--red); outline-offset: 2px; }
.hq-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 4px; padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(24, 32, 47, .14); }
.hq-status { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hq-lamps { display: flex; gap: 5px; flex: none; }
.hq-lamp { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color .15s, border-color .15s; }
.hq-lamp.is-no { background: var(--green); border-color: var(--green); }
.hq-lamp.is-yes { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 30%, transparent); }
.hq-status-t { font-size: .875rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-save { flex: none; gap: .3em; }
.hq-delete { margin: 18px 0 0; text-align: center; }
.hq-delete .linklike { font-size: .85rem; color: var(--ink-3); }
.hq-delete .linklike:hover { color: var(--red-ink); }
@media (max-width: 760px) {
  body:has(.tabbar) .hq-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .hq { --hq-pad: 14px; }
  .hq-q { align-items: start; column-gap: 12px; padding-top: 11px; padding-bottom: 11px; }
  .hq-text { font-size: .9rem; }
  .hq-seg { width: 104px; height: 32px; }
  .hq-more-grid { grid-template-columns: minmax(0, 1fr); }
  .hq-bar { padding: 8px 8px 8px 14px; gap: 10px; }
  .hq-lamps { gap: 4px; }
  .hq-lamp { width: 8px; height: 8px; }
  .hq-status { flex-direction: column; align-items: flex-start; gap: 5px; }
  .hq-status-t { font-size: .8rem; }
  .hq-save-long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hq-q, .hq-opt span, .hq-lamp, .hq-more-ic { transition: none; }
  .hq-follow:not([hidden]) { animation: none; }
}
.flag-note { display: block; margin-top: 2px; font-size: .85rem; color: var(--ink-2); }
.consent { align-items: flex-start; }
.health-alert { padding: 10px 14px; border-radius: var(--r-md); background: var(--red-soft); color: var(--red-ink); border: 1px solid color-mix(in srgb, var(--red) 35%, var(--line)); }
.flag-list { margin: 0 0 10px; padding-left: 1.1em; color: var(--red-ink); font-size: .9rem; display: grid; gap: 4px; }
.ok-line { color: var(--green-ink); }

/* Сообщения */
.thread-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.thread-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 64px; }
.thread-row:first-child { border-top: 0; }
.thread-row:hover { background: var(--surface-2); }
.thread-row .grow { display: grid; min-width: 0; }
.thread-row .grow .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-row.unread strong { color: var(--blue-ink); }
.thread-row.unread .grow .small { color: var(--ink); font-weight: 600; }
.thread-meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.chat-page { display: flex; flex-direction: column; padding-top: 12px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 0 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.chat-head .grow { display: grid; min-width: 0; }
.chat-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; text-decoration: none; color: var(--ink); font-size: 1.2rem; }
.chat-back:hover { background: var(--surface-2); }
.chat { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-direction: column; gap: 6px; min-height: 40vh; }
.chat-day { align-self: center; margin: 8px 0 4px; }
.chat-day span { font-size: .75rem; color: var(--ink-3); background: var(--surface-2); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.msg { max-width: min(80%, 520px); align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px 6px; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--blue); border-color: var(--blue); color: var(--on-fill); border-radius: 16px 16px 4px 16px; }
.msg p { margin: 0; }
.msg-who { display: block; font-size: .75rem; font-weight: 700; color: var(--blue-ink); margin-bottom: 2px; }
.msg-time { display: block; text-align: right; font-size: .68rem; color: var(--ink-3); margin-top: 2px; }
.msg.mine .msg-time { color: rgba(255, 255, 255, .8); }
.msg-photo { display: block; margin: 2px -6px 6px; }
.msg-photo img { display: block; max-width: 100%; max-height: 320px; border-radius: 12px; }
.chat-empty { text-align: center; padding: 32px 12px; }
.chat-form { position: sticky; bottom: 8px; display: flex; align-items: flex-end; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 6px 24px rgba(24, 32, 47, .12); }
.chat-form textarea { flex: 1; min-width: 0; border: 0; resize: none; padding: 8px 4px; font: inherit; background: transparent; max-height: 160px; min-height: 40px; box-shadow: none; outline: none; }
.chat-form textarea:focus-visible { outline: none; }
.chat-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft), 0 6px 24px rgba(24, 32, 47, .12); }
.chat-attach { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-3); cursor: pointer; flex: none; }
.chat-attach:hover { background: var(--surface-2); color: var(--blue); }
.chat-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chat-attach svg, .chat-send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-send { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; flex: none; }
.chat-file-name { margin: 6px 12px 0; }
@media (max-width: 760px) { body:has(.tabbar) .chat-form { bottom: calc(70px + env(safe-area-inset-bottom)); } .chat-head { top: 0; } }

/* Отзывы */
.stars { border: 0; padding: 0; margin: 0 0 12px; }
.stars legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.stars-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-row label { font-size: 2.2rem; line-height: 1; color: var(--line-strong); cursor: pointer; padding: 0 2px; }
.stars-row label:hover, .stars-row label:hover ~ label, .stars-row input:checked ~ label { color: var(--yellow); }
.stars-row input:focus-visible + label { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.stars-line { color: var(--yellow); letter-spacing: 1px; white-space: nowrap; }
.rating-head { display: flex; align-items: center; gap: 14px; }
.rating-head > span:last-child { display: grid; }
.rating-big { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.review .review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review p { margin: 6px 0; }
.review.off { opacity: .6; }
.review-reply { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--blue); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.rating-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--yellow-soft); color: var(--yellow-ink); font-weight: 700; text-decoration: none; }
.rating-chip .muted { font-weight: 500; }

/* Достижения, отметки, тесты */
.badges { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.badge-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.badge-card > span:last-child { display: grid; min-width: 0; }
.badge-card.locked { background: var(--surface-2); }
.badge-card.locked strong { color: var(--ink-3); }
.badge-ico { font-size: 1.6rem; flex: none; }
.badge-card.locked .badge-ico { filter: grayscale(1); opacity: .5; font-size: 1.2rem; width: 26px; text-align: center; }
.ci-grid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: .9rem; }
.ci-row { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 6px; padding: 7px 12px; border-top: 1px solid var(--line); align-items: center; font-variant-numeric: tabular-nums; }
.ci-row:first-child { border-top: 0; }
.ci-head { background: var(--surface-2); font-size: .75rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ci-row.empty { color: var(--ink-3); }
.lvl { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 700; }
.lvl.l1 { background: var(--red-soft); color: var(--red-ink); }
.lvl.l2 { background: color-mix(in srgb, var(--red-soft) 50%, var(--yellow-soft)); color: var(--yellow-ink); }
.lvl.l3 { background: var(--yellow-soft); color: var(--yellow-ink); }
.lvl.l4 { background: color-mix(in srgb, var(--green-soft) 60%, var(--yellow-soft)); color: var(--green-ink); }
.lvl.l5 { background: var(--green-soft); color: var(--green-ink); }
.ci-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ci-day { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ci-day .wd { font-size: .65rem; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.ci-day .v { font-weight: 800; }
.ci-day.l1, .ci-day.l2 { background: var(--red-soft); color: var(--red-ink); border-color: transparent; }
.ci-day.l3 { background: var(--yellow-soft); color: var(--yellow-ink); border-color: transparent; }
.ci-day.l4, .ci-day.l5 { background: var(--green-soft); color: var(--green-ink); border-color: transparent; }
.test-list { display: grid; gap: 8px; }
.test-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.test-card > div:first-child { display: grid; min-width: 0; }
.test-vals { display: grid; justify-items: end; gap: 2px; text-align: right; flex: none; }
.test-now { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.test-vals .up { color: var(--green-ink); font-weight: 700; }
.gto { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.gto-gold { background: #fff1c2; color: var(--yellow-ink); }
.gto-silver { background: #e9edf2; color: #3d4757; }
.gto-bronze { background: #f6e1cf; color: #7a4318; }
.gto-none { background: var(--surface-2); color: var(--ink-3); }
.gto-mark { font-size: .65rem; font-weight: 800; color: var(--blue-ink); background: var(--blue-soft); padding: 1px 5px; border-radius: 4px; vertical-align: 1px; }
.test-inputs { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.test-inputs label { font-size: .85rem; }

/* Абонементы */
.pkg-mini { padding: 8px 0; border-top: 1px solid var(--line); }
.pkg-mini:first-of-type { border-top: 0; }
.pkg-mini.off { opacity: .55; }
.pkg-top { display: flex; justify-content: space-between; gap: 8px; }
.pkg-left { font-family: var(--display); font-weight: 800; white-space: nowrap; }
.pkg-left small { font-family: var(--font); font-weight: 500; color: var(--ink-3); }
.pick-pill { position: relative; }
.pick-pill input { position: absolute; opacity: 0; inset: 0; }
.pick-pill span { display: inline-grid; place-items: center; min-width: 52px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 700; cursor: pointer; background: var(--surface); }
.pick-pill input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--on-fill); }
.pick-pill input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pill-input { width: 96px; height: 40px; border-radius: 999px; text-align: center; }
details.more { margin: 4px 0 12px; }
details.more > summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.pkg-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pkg-row { border-top: 1px solid var(--line); }
.pkg-row:first-child { border-top: 0; }
.pkg-row > summary { display: flex; align-items: center; gap: 14px; padding: 10px 14px; cursor: pointer; list-style: none; }
.pkg-row > summary::-webkit-details-marker { display: none; }
.pkg-row > summary .grow { display: grid; min-width: 0; flex: 1; }
.pkg-row > summary .pkg-left { font-size: 1.3rem; }
.pkg-row[open] > summary { background: var(--surface-2); }
.pkg-row.off > summary { opacity: .6; }
.pkg-row progress.meter { margin-top: 4px; height: 6px; }
.pkg-body { padding: 4px 14px 14px; }

/* Отчёты и сводка */
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.kpi { display: grid; gap: 2px; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.kpi.warn { background: var(--yellow-soft); border-color: color-mix(in srgb, var(--yellow) 50%, var(--line)); }
.kpi-v { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.15; }
.kpi-v small { font-family: var(--font); font-size: .85rem; font-weight: 500; color: var(--ink-3); }
.kpi-l { font-size: .82rem; color: var(--ink-3); }
@media (max-width: 600px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi-v { font-size: 1.15rem; } }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.bars .bl { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bars .bn { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.bars progress { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border: 0; border-radius: 6px; background: var(--surface-2); overflow: hidden; color: var(--blue); }
.bars progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 6px; }
.bars progress::-webkit-progress-value { background: var(--blue); border-radius: 6px; }
.bars progress::-moz-progress-bar { background: var(--blue); border-radius: 6px; }
.pkg-chips { display: grid; gap: 8px; }
.pkg-chip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line)); }
.pkg-chip.low { background: var(--yellow-soft); border-color: color-mix(in srgb, var(--yellow) 50%, var(--line)); }
.pkg-chip .grow { display: grid; min-width: 0; }
.pkg-n { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--green-ink); white-space: nowrap; }
.pkg-chip.low .pkg-n { color: var(--yellow-ink); }
.pkg-n small { font-family: var(--font); font-size: .8rem; font-weight: 600; opacity: .8; }
.bk-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#achievements .card-head { flex-wrap: wrap; }
.badges-more { margin-top: 8px; }
.badges-more > summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: .9rem; padding: 6px 0; }
[hidden] { display: none !important; }
.channel-row[data-push] { flex-wrap: wrap; }
.channel-row[data-push] .grow { flex: 1 1 160px; }
.grid-2 > *, .grid-main > *, .stack > *, .card { min-width: 0; }
.table-wrap { max-width: 100%; }
.mono { overflow-wrap: anywhere; }

/* ===== 1.11: зона риска, объявления, видеоразбор, цели ===== */
.risk-list { list-style: none; margin: 0; padding: 0; }
.risk-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.risk-row:first-child { border-top: 0; padding-top: 2px; }
.risk-row .grow { display: grid; gap: 4px; min-width: 0; }
.risk-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.risk-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.risk-tag { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red-ink); }
.risk-acts { display: grid; justify-items: end; gap: 4px; flex: none; }
.risk-acts form { margin: 0; }
.risk-card { border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.quick { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.quick:hover { border-color: var(--blue); }
@media (max-width: 600px) { .quick { flex: 1 1 100%; } .risk-row { flex-wrap: wrap; } .risk-acts { flex-direction: row; display: flex; align-items: center; gap: 12px; width: 100%; padding-left: 52px; } }
.ann-card p { margin: 6px 0; }
.ann-strip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line)); text-decoration: none; color: inherit; }
.ann-strip .grow { display: grid; min-width: 0; }
.ann-strip .grow .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Видео техники */
.vid-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: .9rem; flex: none; }
.video-box { margin-top: 12px; border-radius: var(--r-md); overflow: hidden; background: #000; }
.video-box video { display: block; width: 100%; max-height: 70vh; background: #000; }
.video-link { display: flex; align-items: center; gap: 12px; padding: 28px 20px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.video-link .small { display: block; color: rgba(255, 255, 255, .7); font-weight: 500; }
.video-link > span:first-child { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); }
.video-gone { margin: 0; padding: 24px 16px; color: rgba(255, 255, 255, .8); text-align: center; }
.video-note { margin: 10px 0 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.tc-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.tc { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.tc.mine-client { background: var(--surface-2); }
.tc .grow { min-width: 0; }
.tc p { margin: 2px 0 0; }
.tc-time { flex: none; font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 8px; border: 0; background: var(--blue); color: var(--on-fill); cursor: pointer; }
.tc-time:disabled { background: var(--line-strong); cursor: default; }
.tc-at { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.tc-at label { font-size: .85rem; font-weight: 600; align-self: center; }
.tc-at input { width: 90px; }
.video-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; margin-bottom: 14px; border: 2px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); cursor: pointer; }
.video-drop:hover { border-color: var(--blue); }
.video-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.video-drop > span:last-child { display: grid; min-width: 0; }
.video-drop strong { overflow-wrap: anywhere; }
.vd-ico { font-size: 1.8rem; }
.upload-state { text-align: center; margin: 10px 0 0; }
.ex-video { font-size: .85rem; font-weight: 600; white-space: nowrap; }

/* Цели */
.goal { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.goal + .goal { margin-top: 8px; }
.goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.goal-pct { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--blue-ink); }
.goal-bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 8px 0 6px; color: var(--blue); }
.goal-bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.goal-bar::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
.goal-bar::-moz-progress-bar { background: var(--blue); border-radius: 999px; }
.goal.done { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); background: var(--green-soft); }
.goal.done .goal-pct { color: var(--green-ink); }
.goal.done .goal-bar::-webkit-progress-value { background: var(--green); } .goal.done .goal-bar::-moz-progress-bar { background: var(--green); }
.goal.behind .goal-bar::-webkit-progress-value { background: var(--yellow); } .goal.behind .goal-bar::-moz-progress-bar { background: var(--yellow); }
.goal-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.goal-acts { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.goal-acts form { margin: 0; }
.goal-manual { display: flex; gap: 6px; }
.goal-manual input { width: 100px; }
.goal-form .preset-row { margin-bottom: 12px; }
.goals-mini .card-head { margin-bottom: 8px; }
.ann-card .review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.risk-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
@media (max-width: 600px) {
  .risk-row { grid-template-columns: 40px minmax(0, 1fr); }
  .risk-acts { grid-column: 2; display: flex; flex-direction: row; align-items: center; gap: 14px; width: auto; padding-left: 0; justify-items: start; }
}

/* выбор файла: своя кнопка и имя файла вместо системных подписей браузера */
.file-pick { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; }
.file-pick .file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-pick .file-input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.file-pick .file-name { overflow-wrap: anywhere; }

/* правка материала тренера администратором */
.admin-edit-bar { background: var(--yellow-soft); }
.admin-edit-bar .areanav-in { align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-edit-bar span { color: var(--yellow-ink); padding: 8px 0; }
.admin-mark { display: inline-flex; gap: 6px; align-items: center; }
.lib-actions { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lib-actions form { display: inline; }
.lib-del { display: inline-block; }
.lib-del > summary { list-style: none; }
.lib-del > summary::-webkit-details-marker { display: none; }
.lib-del[open] form { display: flex; gap: 6px; margin-top: 6px; }
.lib-author { margin-left: 8px; }

/* Курсы (1.15): карточки курсов ученика, прогресс, стоп-урок, расписание потока */
.course-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.course-card { display: flex; flex-direction: column; gap: 12px; }
.course-progress { display: grid; gap: 4px; }
.course-progress progress.meter { margin-top: 0; }
.course-next { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--blue-soft); color: var(--blue-ink); text-decoration: none; font-weight: 500; }
.course-next:hover { background: color-mix(in srgb, var(--blue) 16%, var(--surface)); }
.course-next.k-wait { background: var(--yellow-soft); color: var(--yellow-ink); }
.course-next.k-revision, .course-next.k-intake { background: var(--red-soft); color: var(--red-ink); }
.course-next.k-done { background: var(--green-soft); color: var(--green-ink); }
.stop-check { align-items: flex-start; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--yellow) 55%, var(--line)); border-radius: var(--r-md); background: var(--yellow-soft); }
.stop-check span { line-height: 1.45; }
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.schedule-table .group-row th { background: var(--surface-2); font-weight: 600; }
.schedule-table input[type=date] { min-width: 150px; }
.mini-form .flow-actions { flex-basis: 100%; align-items: center; gap: 10px; }

/* Меню кабинетов (1.16): группы задач + страницы группы */
.area2 { position: relative; }
.area2-top { display: flex; align-items: center; gap: 14px; padding: 8px 0; min-width: 0; }
.area2-title { flex: none; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink); text-decoration: none; }
a.area2-title:hover { color: var(--blue); }
.area2-groups { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.area2-groups::-webkit-scrollbar, .area2-sub-in::-webkit-scrollbar { display: none; }
.area2-groups .grp { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; line-height: 1.2; }
.area2-groups .grp:hover { background: var(--surface-2); color: var(--ink); }
.area2-groups .grp.on { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.area2-groups .grp-all { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.area2-sub { border-top: 1px solid var(--line); }
.area2-sub-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.area2-sub a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 11px 10px 9px; color: var(--ink-2); text-decoration: none; font-size: .93rem; border-bottom: 3px solid transparent; }
.area2-sub a:hover { color: var(--ink); }
.area2-sub a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--blue); }
.area2-sub a.locked { color: var(--ink-3); }
.area2-sub a.locked::after { content: "тариф"; font-size: .7rem; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); }
.area2 .nav-count { min-width: 18px; height: 18px; font-size: .7rem; }
@media (max-width: 760px) {
  .area2-top { flex-wrap: wrap; row-gap: 4px; padding: 8px 0 6px; }
  .area2-title { max-width: 100%; font-size: .85rem; color: var(--ink-3); }
  .area2-groups { flex-basis: 100%; mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  .area2-groups .grp { padding: 9px 13px; }
  .area2-sub-in { mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  .area2-sub a { padding: 12px 10px 10px; }
}
.sections-map { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); align-items: start; }
.sec-group h2 { font-size: 1.05rem; margin-bottom: 6px; }
.sec-list { list-style: none; margin: 0; padding: 0; }
.sec-list li + li { border-top: 1px solid var(--line); }
.sec-list a { display: flex; align-items: center; gap: 10px; padding: 11px 0; color: inherit; text-decoration: none; }
.sec-list a .grow { flex: 1; display: grid; gap: 2px; }
.sec-list a:hover strong { color: var(--blue); }
@media (min-width: 761px) {
  .area2-groups { flex-wrap: wrap; overflow: visible; }
  .area2-sub-in { flex-wrap: wrap; overflow: visible; }
}

/* Журнал действий: лента карточек — читается с телефона */
.audit-filters { display: grid; gap: 10px 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.audit-filters .field { margin: 0; }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.audit-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.audit-day { margin-top: 14px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.audit-day:first-child { margin-top: 0; }
.audit-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 4px; }
.audit-item.is-admin { box-shadow: inset 3px 0 0 var(--blue); }
.audit-main { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.audit-what { font-weight: 600; }
.audit-time { flex: none; font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: .9rem; }
.audit-who { color: var(--ink-2); overflow-wrap: anywhere; }
.audit-more { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .table-wrap:has(table.stack) { overflow: visible; border: 0; background: none; box-shadow: none; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; margin-bottom: 10px; }
  table.stack td { border: 0; padding: 5px 0; display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 10px; overflow-wrap: anywhere; }
  table.stack td::before { content: attr(data-label); color: var(--ink-3); font-size: .85rem; }
  table.stack td:not([data-label])::before, table.stack td[data-label=""]::before { content: none; }
  table.stack td:not([data-label]), table.stack td[data-label=""] { grid-template-columns: 1fr; }
  table.stack td[colspan] { grid-template-columns: 1fr; }
  table.stack td[colspan]::before { content: none; }
}

/* Видео файлом (1.16) */
.video-file { border-radius: var(--r-md); overflow: hidden; background: #0b1220; }
.video-file video { display: block; width: 100%; max-height: 72vh; background: #0b1220; }
.video-upload { display: grid; gap: 12px; }
.vu-meta { margin-top: -4px; }
.vu-form { display: grid; gap: 10px; }
.vu-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); cursor: pointer; }
.vu-drop:hover, .vu-drop:focus-within { border-color: var(--blue); background: var(--blue-soft); }
.vu-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.vu-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); display: grid; place-items: center; }
.vu-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.vu-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.vu-progress { display: grid; gap: 6px; }
.vu-progress progress { width: 100%; height: 10px; accent-color: var(--blue); }

/* Страница урока (1.16): спокойные блоки вместо жёлтых рамок */
.lesson-kicker { margin: 4px 0 2px; color: var(--ink-3); font-size: .9rem; }
.lesson-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.lb-title { font-size: 1.08rem; margin: 0; }
.lb-label { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); background: var(--blue-soft); padding: 5px 10px 5px 8px; border-radius: 999px; margin-bottom: 10px; }
.lb-label svg, .lb-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-text { font-size: 1.05rem; line-height: 1.6; }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lb-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.lb-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; }
.lb-steps li { position: relative; padding-top: 18px; font-size: .85rem; color: var(--ink-3); }
.lb-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 4px; border-radius: 4px; background: var(--line); }
.lb-steps li .dot { display: none; }
.lb-steps li.done { color: var(--ink); font-weight: 600; }
.lb-steps li.done::before { background: var(--blue); }
.lb-steps li.now::before { background: linear-gradient(90deg, var(--blue) 0 45%, var(--line) 45%); }
.lb-answer.is-done .lb-steps li.done::before { background: var(--green); }
.lb-note { margin: 0 0 12px; color: var(--ink-2); }
.lb-note.ok { color: var(--green-ink); }
.lb-note.warn { color: var(--red-ink); }
.lb-answer.is-revision { border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
.lb-ask summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.lb-ask summary::-webkit-details-marker { display: none; }
.lb-ask summary::before { content: "＋"; color: var(--blue); font-weight: 700; }
.lb-ask[open] summary::before { content: "－"; }
.lesson-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.lesson-files a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: inherit; }
.lesson-files a:hover { border-color: var(--blue); }
.lf-ext { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--ink-2); }
.lesson-done { display: flex; justify-content: center; }
.lesson-done .btn { min-width: 260px; }
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lesson-nav a, .lesson-nav span.locked { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none; color: var(--ink); min-width: 0; }
.lesson-nav a:hover { border-color: var(--blue); }
.lesson-nav .ln-next { text-align: right; }
.lesson-nav span.locked { color: var(--ink-3); background: var(--surface-2); }
.lesson-nav a > span:last-child, .lesson-nav span.locked > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .lesson-block { padding: 16px; border-radius: var(--r-md); } .lesson-done .btn { width: 100%; } }
.qa-title { font-size: 1rem; color: var(--ink-2); margin-bottom: 10px; }
.qa-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.qa { display: grid; gap: 3px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.qa:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.qa strong { font-size: .98rem; }
@media (max-width: 600px) { .qa-grid { grid-template-columns: 1fr 1fr; } .qa { padding: 12px; } }
@media (max-width: 899px) { .admins-grid .admin-add { order: -1; } }
@media (max-width: 600px) { .btn-block-sm { width: 100%; } }
/* Кнопки действий: главное — первым, опасное — отдельно (1.16) */
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) { .card-actions { display: grid; grid-template-columns: 1fr 1fr; } .card-actions .btn { width: 100%; justify-content: center; } .card-actions .btn-primary { grid-column: 1 / -1; } }
.danger-zone { border-color: color-mix(in srgb, var(--red) 25%, var(--line)); }
.danger-zone h2 { font-size: 1rem; }
@media (max-width: 899px) { .grid-main > .create-card { order: -1; } }
.danger-text, .btn.danger-text { color: var(--red-ink); }
.ws-actions { display: grid; gap: 6px; justify-items: start; }
.plan-edit > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.plan-edit > summary::-webkit-details-marker { display: none; }
.plan-edit > summary .grow { display: grid; gap: 2px; flex: 1; }
.plan-edit > summary > .small { color: var(--blue); }
.plan-edit[open] > summary > .small { visibility: hidden; }
@media (max-width: 700px) { table.stack td.num { text-align: left; } }
.quiz-mark { margin-left: 8px; font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.quiz-mark.ok { background: var(--green-soft); color: var(--green-ink); }
.quiz-mark.no { background: var(--red-soft); color: var(--red-ink); }
.check.quiz-right { font-weight: 600; color: var(--green-ink); }
.quiz-score { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.quiz-score strong { font-size: 1.4rem; }

/* Сертификат (1.18) */
.cert-tools { margin-bottom: 16px; }
.certificate { max-width: 900px; margin: 0 auto; background: var(--surface); border-radius: var(--r-lg); padding: 56px 48px 40px; text-align: center; position: relative; box-shadow: var(--shadow); border: 10px solid var(--blue-soft); outline: 2px solid color-mix(in srgb, var(--blue) 40%, transparent); outline-offset: -18px; }
.cert-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; color: var(--ink); }
.cert-brand .brand-mark { width: 32px; height: 32px; }
.cert-kind { margin: 28px 0 4px; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.cert-lead { color: var(--ink-2); margin: 6px 0; }
.cert-name { font-size: clamp(1.6rem, 5vw, 2.6rem); margin: 10px 0; border-bottom: 2px solid var(--yellow); display: inline-block; padding: 0 16px 6px; }
.cert-course { font-size: clamp(1.2rem, 3.4vw, 1.7rem); margin: 6px 0 26px; }
.cert-meta { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin: 0 0 18px; }
.cert-meta dt { font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.cert-meta dd { margin: 2px 0 0; font-weight: 600; }
.cert-check { color: var(--ink-3); }
@media (max-width: 600px) { .certificate { padding: 36px 18px 28px; border-width: 6px; outline-offset: -12px; } }
@media print { .cert-tools, .flashes, .cert-valid { display: none !important; } .certificate { box-shadow: none; } .cert-page { padding: 0; } }
.program-list li { margin: 4px 0; }
.course-done { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r-lg); background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line)); }
.course-done .cd-mark { font-size: 1.8rem; }
.course-done .grow { flex: 1; min-width: 200px; }
.quiz-mark { white-space: nowrap; display: inline-block; }

/* ===================================================================================================
   1.19 — кабинеты тренера и ученика: боковое меню, шапка-панель и нижнее меню на телефоне,
   плотная и спокойная вёрстка. Всё ниже действует только внутри кабинетов (html.shell-html / body.shell).
   =================================================================================================== */
:root { --side-w: 260px; --line-soft: #e6e9ef; --r-card: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05); --shadow-md: 0 12px 32px rgba(16, 24, 40, .14); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --line-soft: #243042; --shadow-sm: none; --shadow-md: 0 12px 32px rgba(0, 0, 0, .5); }
}
html.shell-html { font-size: 15px; }
html.side-open { overflow: hidden; }
body.shell { display: block; line-height: 1.5; }
.shell .app-main { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; margin-left: var(--side-w); }
.shell main { flex: 1 0 auto; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 11px;
  background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .ic { width: 22px; height: 22px; }

/* Аватары: пространство — квадрат со скруглением, человек — круг */
.ava { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; object-fit: cover;
  background: linear-gradient(140deg, var(--plate-blue), #5b82ff); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .03em; }
.ava-img { background: var(--surface); border: 1px solid var(--line-soft); }
.ava-sm { width: 34px; height: 34px; border-radius: 50%; font-size: .74rem; }
.ava-xs { width: 28px; height: 28px; border-radius: 8px; font-size: .66rem; }
.ava-user { background: linear-gradient(140deg, var(--plate-yellow), #f08c00); color: #2d2200; }

/* --- Боковое меню ------------------------------------------------------------------------------ */
.side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: var(--side-w); display: flex; flex-direction: column; gap: 4px;
  padding: 14px 12px 10px; background: var(--surface); border-right: 1px solid var(--line-soft); overflow: hidden; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 10px 8px; }
.side-brand { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: .84rem; letter-spacing: -.01em; white-space: nowrap; }
.side-brand:hover { color: var(--ink); }
.side-brand .brand-mark { width: 26px; height: 26px; }
.side-close { display: none; }
.ws-card { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 8px 10px 8px 8px; border-radius: 13px;
  border: 1px solid var(--line-soft); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.ws-card:hover { border-color: var(--line-strong); color: var(--ink); }
.ws-card > .ic { color: var(--ink-3); }
.ws-t { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.ws-t strong, .ws-t span, .me-t strong, .me-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-t strong { font-size: .93rem; }
.ws-t span { font-size: .76rem; color: var(--ink-3); }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  margin: 0 -6px; padding: 0 6px 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sn { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 10px; border-radius: 10px; list-style: none;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .94rem; cursor: pointer; user-select: none; }
.sn::-webkit-details-marker { display: none; }
.sn .ic { color: var(--ink-3); }
.sn:hover { background: var(--surface-2); color: var(--ink); }
.sn.on { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.sn.on .ic, .sn.on-group .ic:not(.sn-chev) { color: var(--blue); }
.sn.on-group { color: var(--ink); font-weight: 600; }
.sn-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-chev { color: var(--ink-3); transition: transform .18s ease; }
.sn-group[open] > .sn .sn-chev { transform: rotate(180deg); }
.sn-sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 20px; padding-left: 10px; border-left: 1.5px solid var(--line-soft); }
.sn-sub a { display: flex; align-items: center; gap: 8px; min-height: 33px; padding: 0 10px; border-radius: 9px;
  color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.sn-sub a:hover { background: var(--surface-2); color: var(--ink); }
.sn-sub a.on { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.sn-sub a.locked { color: var(--ink-3); }
.sn-sub .lock { font-size: .68rem; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line-soft); }
.side .nav-count { min-width: 20px; height: 20px; font-size: .7rem; }
.sn-head { margin: 14px 10px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.sn-all { margin-top: 4px; color: var(--ink-3); }
.side-foot .sn { min-height: 34px; font-size: .9rem; }
.side-foot { flex: none; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.sn-switch { color: var(--blue-ink); }
.sn-switch .ic { color: var(--blue); }
.me-row { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.me-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 11px; color: var(--ink); text-decoration: none; }
.me-link:hover { background: var(--surface-2); color: var(--ink); }
.me-t { display: grid; min-width: 0; line-height: 1.25; }
.me-t strong { font-size: .87rem; }
.me-t span { font-size: .74rem; color: var(--ink-3); }
.me-row form { margin: 0; }

/* --- Шапка-панель и подразделы (телефон, планшет) ---------------------------------------------- */
.appbar, .subtabs { display: none; }
.app-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 18px; padding-bottom: 22px; color: var(--ink-3); }
.app-foot a { color: var(--ink-3); text-decoration: none; }
.app-foot a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 1023.98px) {
  .shell .app-main { margin-left: 0; }
  .side { width: min(86vw, 312px); padding-top: 10px; border-right: 0; box-shadow: var(--shadow-md); visibility: hidden;
    transform: translateX(-104%); transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility .26s; }
  .side-open .side { transform: none; visibility: visible; }
  .side-close { display: inline-grid; }
  .side-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(12, 17, 28, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .side-scrim[hidden] { display: none; }
  .appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 2px; height: 56px; padding: 0 6px;
    background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--line-soft); }
  .appbar-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 0 4px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
  .appbar-t:hover { color: var(--ink); }
  .appbar-t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .appbar-t .brand-mark { width: 26px; height: 26px; }
  .shell-client .appbar-t > span { font-family: var(--display); font-weight: 800; font-size: .84rem; letter-spacing: -.01em; }
  .appbar .dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; border: 2px solid var(--surface);
    background: var(--red); color: var(--on-fill); font-size: .62rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
  .subtabs { display: block; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
  .subtabs-in { display: flex; gap: 6px; padding: 8px 14px 9px; overflow-x: auto; scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  .subtabs-in::-webkit-scrollbar { display: none; }
  .subtabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-soft);
    background: var(--surface-2); color: var(--ink-2); text-decoration: none; font-size: .87rem; font-weight: 500; white-space: nowrap; }
  .subtabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 600; }
  .subtabs a.locked { opacity: .55; }
  .subtabs .nav-count { min-width: 18px; height: 18px; font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) { .side, .sn-chev { transition: none; } }

/* --- Нижнее меню телефона ------------------------------------------------------------------------ */
@media (max-width: 760px) {
  .shell .tabbar { padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: none; border-top: 1px solid var(--line-soft);
    background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
  .shell .tabbar a { gap: 3px; min-height: 52px; font-size: .68rem; font-weight: 600; justify-content: center; }
  .shell .tabbar .ic { width: 52px; height: 30px; padding: 4px 14px; border-radius: 999px; stroke-width: 1.8; transition: background .15s; }
  .shell .tabbar .ic circle { fill: none; stroke: currentColor; }
  .shell .tabbar a[aria-current="page"] { color: var(--blue-ink); }
  .shell .tabbar a[aria-current="page"]:not(.tab-main) .ic { background: var(--blue-soft); color: var(--blue); }
  .shell .tabbar .tab-main .ic { width: 50px; height: 50px; padding: 13px; margin-top: -22px; border-radius: 17px; background: var(--blue); color: var(--on-fill); stroke: #fff;
    box-shadow: 0 8px 18px rgba(31, 79, 216, .35), 0 0 0 4px var(--surface); }
  .shell .tab-badge { top: 1px; left: calc(50% + 8px); border: 2px solid var(--surface); min-width: 19px; height: 19px; }
  .shell .app-foot { display: none; }
  body.shell { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* --- Плотная вёрстка внутри кабинетов ----------------------------------------------------------- */
.shell .container { max-width: 1200px; padding-left: 28px; padding-right: 28px; }
/* Колонка контента всегда по центру рабочей области — и на обычных, и на узких страницах
   (раньше узкие — «Записи», «Сообщения», «Уведомления» и др. — прижимались к левому краю). */
.shell .container.narrow { max-width: 816px; margin-left: auto; margin-right: auto; }
/* Плашки сообщений и подвал — той же ширины, что и колонка страницы, чтобы края совпадали */
.shell #main:has(> .page.narrow) > .flashes,
.shell .app-main:has(#main > .page.narrow) > .app-foot { max-width: 816px; }
.shell #main:has(> .page.narrow-wide) > .flashes,
.shell .app-main:has(#main > .page.narrow-wide) > .app-foot { max-width: 920px; }
.shell #main:has(> .page.page-wide) > .flashes,
.shell .app-main:has(#main > .page.page-wide) > .app-foot { max-width: 1480px; }
.shell .page { padding-top: 26px; padding-bottom: 44px; }
.shell h1 { font-size: 1.6rem; letter-spacing: -.015em; }
.shell h2 { font-size: 1.13rem; letter-spacing: -.005em; }
.shell h3 { font-size: 1rem; }
.shell .page-head { margin-bottom: 18px; align-items: center; }
.shell .page-head p { margin-top: 3px; }
.shell .crumbs { font-size: .86rem; margin-bottom: 4px; }
.shell .crumbs a { text-decoration: none; }
.shell .crumbs a:hover { text-decoration: underline; }
.shell .card { border-color: var(--line-soft); border-radius: var(--r-card); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.shell .card-head { margin-bottom: 10px; align-items: center; }
.shell .card-head > a:not(.btn) { font-size: .87rem; font-weight: 500; text-decoration: none; }
.shell .card-head > a:not(.btn):hover { text-decoration: underline; }
.shell .section { margin-top: 20px; }
.shell .grid-2 { gap: 16px; }
.shell .stack > * + * { margin-top: 14px; }
.shell .list > li { padding: 10px 0; border-top-color: var(--line-soft); }
.shell .list > li:first-child { padding-top: 2px; }
.shell .list a:not(.btn) { text-decoration: none; }
.shell .list a.grow, .shell .list .grow > a:first-child, .shell .list .grow > strong > a { color: var(--ink); font-weight: 500; }
.shell .list a.grow:hover, .shell .list .grow > a:first-child:hover, .shell .list .grow > strong > a:hover { color: var(--blue); }
.shell .btn { min-height: 40px; padding: 8px 16px; font-size: .95rem; border-radius: 10px; font-weight: 500; transition: background .12s, border-color .12s, box-shadow .12s; }
.shell .btn:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-ghost):not(.btn-vk) { border-color: var(--line); box-shadow: var(--shadow-sm); }
.shell .btn:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-ghost):not(.btn-vk):hover { border-color: var(--line-strong); }
.shell .btn-primary { box-shadow: 0 1px 2px rgba(31, 79, 216, .3), inset 0 1px 0 rgba(255, 255, 255, .14); }
.shell .btn-sm { min-height: 34px; padding: 5px 12px; font-size: .87rem; border-radius: 9px; }
.shell .btn-lg { min-height: 48px; padding: 12px 22px; font-size: 1rem; }
.shell input:not([type]), .shell input[type=text], .shell input[type=email], .shell input[type=password], .shell input[type=number],
.shell input[type=date], .shell input[type=time], .shell input[type=url], .shell input[type=search], .shell input[type=tel], .shell select, .shell textarea {
  min-height: 42px; padding: 9px 12px; border-color: var(--line); border-radius: 10px; font-size: .97rem; }
.shell .form { gap: 14px; }
.shell .form-row { gap: 14px; }
.shell .field { gap: 5px; }
.shell .field > label, .shell .field > .label { font-size: .92rem; }
.shell fieldset { border-color: var(--line-soft); border-radius: var(--r-card); }
.shell .badge { font-size: .76rem; padding: 2px 9px; }
.shell .table-wrap { border-color: var(--line-soft); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.shell th { font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.shell th, .shell td { padding: 9px 14px; border-bottom-color: var(--line-soft); }
.shell .flashes { margin-top: 14px; }
.shell .flash { border: 0; border-radius: 12px; padding: 10px 14px 10px 16px; box-shadow: inset 4px 0 0 currentColor; font-weight: 500; }
.shell .empty { border-color: var(--line); border-radius: var(--r-card); padding: 24px 18px; }
.shell .chip { padding: 6px 13px; font-size: .9rem; border-color: var(--line); }
.shell .segmented { border-color: var(--line); }
.shell .segmented a { padding: 7px 13px; font-size: .9rem; }
.shell .banner .container { padding-top: 8px; padding-bottom: 8px; font-size: .93rem; }
.shell .notice { border-radius: 12px; }
@media (max-width: 760px) {
  .shell .container { padding-left: 14px; padding-right: 14px; }
  .shell .page { padding-top: 16px; padding-bottom: 24px; }
  .shell h1 { font-size: 1.36rem; }
  .shell h2 { font-size: 1.06rem; }
  .shell .page-head { margin-bottom: 12px; gap: 10px; }
  .shell .card { padding: 14px 15px; }
  .shell .section { margin-top: 14px; }
  .shell .grid-2 { gap: 12px; }
  .shell input:not([type]), .shell input[type=text], .shell input[type=email], .shell input[type=password], .shell input[type=number],
  .shell input[type=date], .shell input[type=time], .shell input[type=url], .shell input[type=search], .shell input[type=tel], .shell select, .shell textarea {
    min-height: 44px; font-size: 16px; }
  .shell .btn { min-height: 42px; }
  .shell .btn-sm { min-height: 36px; }
}
@media print { .side, .side-scrim, .appbar, .subtabs, .tabbar, .app-foot { display: none !important; } .shell .app-main { margin-left: 0; } }

/* --- Обзор тренера ------------------------------------------------------------------------------ */
.eyebrow { margin: 0 0 2px; font-size: .82rem; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; }
.eyebrow::first-letter { text-transform: uppercase; }
.head-actions .btn .ic { margin-left: -3px; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; transition: border-color .12s, transform .12s; }
.tile:hover { border-color: var(--line-strong); color: var(--ink); }
.tile-ic { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.tile-v { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-l { font-size: .82rem; color: var(--ink-3); line-height: 1.3; }
.tile.hot::after { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.t-blue { background: var(--blue-soft); color: var(--blue); }
.t-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.t-green { background: var(--green-soft); color: var(--green); }
.t-red { background: var(--red-soft); color: var(--red); }
.todo { display: grid; gap: 8px; }
.todo-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--yellow-soft) 60%, var(--surface)); border: 1px solid color-mix(in srgb, var(--yellow) 30%, var(--line-soft)); }
.todo-row:hover { color: var(--ink); border-color: var(--yellow); }
.todo-row .grow { display: grid; min-width: 0; }
.todo-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--yellow); color: #3d2e00; flex: none; }
.shell .qa-title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.shell .qa-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shell .qa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; min-width: 0; }
.shell .qa:hover { border-color: var(--blue); color: var(--ink); }
.shell .qa:hover .qa-ic { background: var(--blue); color: var(--on-fill); }
.qa-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue); transition: background .12s, color .12s; }
.qa-t { display: grid; min-width: 0; line-height: 1.3; }
.qa-t strong { font-size: .93rem; font-weight: 600; }
.qa-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-list > li { justify-content: flex-start; flex-wrap: nowrap; }
.wk-list a.grow { display: grid; }
.ag-date { flex: none; width: 46px; padding: 4px 0; border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); display: grid; text-align: center; font-size: .7rem; line-height: 1.15; text-transform: lowercase; }
.ag-date b { font-size: 1.1rem; font-weight: 800; font-family: var(--display); }
.ag-date.pending { background: var(--yellow-soft); color: var(--yellow-ink); }
.ok-line { display: flex; align-items: center; gap: 8px; margin: 0; }
.ok-line .ic { color: var(--green); }
@media (max-width: 1180px) { .shell .qa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shell .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .dash .page-head { align-items: flex-start; }
  .head-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .head-actions .btn { padding: 8px 10px; white-space: nowrap; font-size: .92rem; gap: 6px; }
  .tiles { gap: 8px; }
  .tile { padding: 11px 12px; column-gap: 10px; }
  .tile-ic { width: 34px; height: 34px; border-radius: 10px; }
  .tile-ic .ic { width: 18px; height: 18px; }
  .tile-v { font-size: 1.2rem; }
  .tile-l { font-size: .74rem; }
  .shell .qa-grid { gap: 8px; }
  .shell .qa { flex-direction: column; align-items: flex-start; gap: 8px; padding: 11px 12px; }
  .qa-ic { width: 34px; height: 34px; }
  .qa-t strong { font-size: .88rem; }
  .qa-t span { white-space: normal; font-size: .76rem; }
}

/* --- Кабинет ученика: продолжить курс ------------------------------------------------------------ */
.hero-course { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.hc-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.hc-ph { display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--plate-blue) 0%, #5b82ff 55%, var(--plate-yellow) 140%); }
.hc-ph .ic { width: 44px; height: 44px; stroke-width: 1.4; }
.hc-body { min-width: 0; }
.hc-body h2 { font-size: 1.3rem; margin: 0 0 10px; }
.hc-body h2 a { color: var(--ink); text-decoration: none; }
.hc-body h2 a:hover { color: var(--blue); }
.hc-prog { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hc-prog .meter { margin: 0; flex: 1; height: 8px; }
.hc-next { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 13px; text-decoration: none; font-weight: 600;
  background: var(--blue); color: var(--on-fill); box-shadow: 0 6px 16px rgba(31, 79, 216, .25); }
.hc-next:hover { background: var(--blue-hover); color: var(--on-fill); }
.hc-next-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); flex: none; }
.hc-next.k-wait, .hc-next.k-done { background: var(--surface-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line-soft); }
.hc-next.k-wait .hc-next-ic, .hc-next.k-done .hc-next-ic { background: var(--surface); color: var(--ink-3); }
.hc-next.k-done .hc-next-ic { color: var(--green); }
.hc-next.k-revision, .hc-next.k-intake { background: var(--yellow); color: #2d2200; box-shadow: none; }
.hc-next.k-revision .hc-next-ic, .hc-next.k-intake .hc-next-ic { background: rgba(255, 255, 255, .45); }
@media (max-width: 760px) {
  .hero-course { grid-template-columns: 1fr; gap: 12px; padding: 12px; border-radius: 16px; }
  .hc-cover { aspect-ratio: 16 / 7; }
  .hc-ph { display: none; }
  .hc-body h2 { font-size: 1.12rem; margin-bottom: 8px; }
  .hc-prog { margin-bottom: 12px; }
}
.next-wo { display: block; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  background-image: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--blue) 9%, transparent) 0%, transparent 55%); }
.nw-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--blue); color: var(--on-fill); }
.nw-ic .ic { width: 20px; height: 20px; }
.next-wo.quiet .nw-ic { background: var(--blue-soft); color: var(--blue); }
.nw-body { flex: 1; min-width: 0; }
.nw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.nw-head h2 { flex: 1; min-width: 0; margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.nw-head a { text-decoration: none; white-space: nowrap; }
.nw-title { font-size: 1.12rem; margin: 0 0 2px; }
.next-wo .btn { margin-top: 8px; }
@media (max-width: 760px) { .next-wo { padding: 14px; } .nw-ic { width: 32px; height: 32px; border-radius: 10px; } .nw-ic .ic { width: 18px; height: 18px; } .next-wo .btn { width: 100%; } .nw-title { font-size: 1.02rem; } }

.shell td a:not(.btn) { text-decoration: none; font-weight: 500; }
.shell td a:not(.btn):hover { text-decoration: underline; }
.shell .chat-send { padding: 0; min-height: 40px; border-radius: 50%; }
.shell .list > li.notif.unread { padding-left: 14px; }
.shell .notif.unread { border-radius: 0 10px 10px 0; }
@media (max-width: 760px) {
  .shell .segmented { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .shell .segmented::-webkit-scrollbar { display: none; }
  .shell .segmented a { flex: none; white-space: nowrap; }
}
.item-card .badge { align-self: flex-start; }
@media (max-width: 600px) { .card-actions .btn-ghost { grid-column: 1 / -1; } }
.ava-admin { background: linear-gradient(140deg, #18202f, #444e62); color: var(--plate-yellow); }
.ava-admin .ic { width: 20px; height: 20px; }
.ava-xs.ava-admin .ic { width: 15px; height: 15px; }

/* --- Админка 1.20 -------------------------------------------------------------------------------- */
.kpi-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.kpi-c { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
a.kpi-c:hover { border-color: var(--line-strong); color: var(--ink); }
.kpi-c b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; }
.kpi-c span { font-size: .8rem; color: var(--ink-3); line-height: 1.3; }
.people { list-style: none; margin: 0; padding: 4px 6px; }
.people > li + li { border-top: 1px solid var(--line-soft); }
.people > li.muted { padding: 14px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.person:hover { background: var(--surface-2); color: var(--ink); }
.p-main { flex: 1 1 auto; min-width: 0; display: grid; line-height: 1.3; }
.p-main strong, .p-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-meta { flex: none; width: 150px; line-height: 1.35; }
.p-badges { flex: none; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; width: 190px; }
.p-chev { color: var(--ink-3); flex: none; }
.ws-list { display: grid; gap: 12px; }
.ws-row-head { display: flex; align-items: center; gap: 12px; }
.ws-row-head .grow { min-width: 0; }
.ws-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.ws-facts dt { font-size: .74rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.ws-facts dd { margin: 0; font-weight: 600; font-size: .92rem; }
.ws-row .ws-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.ws-row .ws-actions details { flex: 1 1 100%; }
.ws-row .ws-actions details:not([open]) { flex: none; }
.ws-row .ws-actions summary { cursor: pointer; font-weight: 500; color: var(--blue-ink); }
@media (max-width: 760px) {
  .p-meta { display: none; }
  .p-badges { width: auto; max-width: 40%; }
  .ws-facts { grid-template-columns: 1fr 1fr 1fr; padding: 8px 10px; }
}
.tz-note { display: flex; align-items: center; gap: 6px; margin: -4px 0 8px; color: var(--ink-3); }
.tz-note .ic { color: var(--blue); }
.cal-ev[data-movable] { cursor: grab; touch-action: none; }
.cal-ev.dragging { cursor: grabbing; z-index: 5; box-shadow: 0 10px 24px rgba(16, 24, 40, .25); opacity: .95; }
.cal-tip { margin: 8px 0 -6px; }
.move-now { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); }
.bk-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.bk-acts details { flex: 1 1 auto; }
.move-box > summary { list-style: none; }
.move-box > summary::-webkit-details-marker { display: none; }

/* --- CRM: воронка заявок ------------------------------------------------------------------------- */
.ic-xs { width: 13px; height: 13px; }
.m-only-flex { display: none; }
.desk-only-grid { display: grid; }
@media (max-width: 899.98px) { .m-only-flex { display: flex; } .desk-only-grid { display: none; } }
.shell .container.page-wide { max-width: 1480px; }
.crm-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crm-tools .grow { flex: 1 1 260px; }
.crm-tools .field { margin: 0; }
.new-lead > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.new-lead > summary::-webkit-details-marker { display: none; }
.nl-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--blue); color: var(--on-fill); }
.kanban { grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.kb-col { background: color-mix(in srgb, var(--surface-2) 70%, var(--bg)); border: 1px solid var(--line-soft); border-radius: 16px; padding: 10px; min-height: 240px; transition: background .12s, border-color .12s; }
.kb-col.over { background: var(--blue-soft); border-color: var(--blue); }
.kb-col header { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-size: .9rem; }
.kb-col header strong { flex: 1; }
.kb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.kb-contacted .kb-dot { background: #7c5cff; } .kb-trial .kb-dot { background: var(--yellow); }
.kb-won .kb-dot { background: var(--green); } .kb-lost .kb-dot { background: var(--ink-3); }
.kb-n { font-size: .78rem; font-weight: 700; color: var(--ink-3); background: var(--surface); border-radius: 999px; padding: 1px 8px; }
.kb-cards { display: grid; gap: 8px; }
.kb-empty { margin: 0; padding: 18px 8px; text-align: center; font-size: .8rem; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 12px; }
.lead-card { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; cursor: grab; }
.lead-card:hover { border-color: var(--line-strong); color: var(--ink); }
.lead-card.due { border-left: 3px solid var(--red); }
.lead-card.dragging { opacity: .5; }
.lead-top { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; }
.lead-top strong { font-size: .93rem; }
.lead-sum { font-size: .78rem; font-weight: 700; color: var(--green-ink); white-space: nowrap; }
.lead-int { font-size: .82rem; color: var(--ink-2); line-height: 1.3; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .76rem; color: var(--ink-3); }
.lead-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.lead-card.due .lead-when { color: var(--red-ink); font-weight: 600; }
.lead-on { color: var(--green-ink); }
.lead-src { font-size: .72rem; color: var(--ink-3); }
.stage-tabs { gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 14px -14px 10px; padding: 0 14px; }
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tabs a { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink-2); font-size: .88rem; font-weight: 500; }
.stage-tabs a b { color: var(--ink-3); font-weight: 600; margin-left: 2px; }
.stage-tabs a[aria-current="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.stage-tabs a[aria-current="true"] b { color: var(--surface); opacity: .7; }
.stage-list { display: grid; gap: 8px; }
.invite-all { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line); }
.invite-all p { margin: 0; display: flex; align-items: center; gap: 6px; }
.contact-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-bar form { margin: 0; }
.stage-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stage-pick form { margin: 0; }
.sp { width: 100%; padding: 9px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 .85rem var(--font); cursor: pointer; }
.sp:hover { border-color: var(--blue); }
.sp.on { background: var(--blue); border-color: var(--blue); color: var(--on-fill); font-weight: 600; cursor: default; }
.sp-won.on { background: var(--green); border-color: var(--green); }
.sp-lost.on { background: var(--ink-3); border-color: var(--ink-3); }
.badge.stage-won { background: var(--green-soft); color: var(--green-ink); }
.badge.stage-lost { background: var(--surface-2); color: var(--ink-3); }
.badge.stage-new { background: var(--blue-soft); color: var(--blue-ink); }
.badge.stage-trial { background: var(--yellow-soft); color: var(--yellow-ink); }
@media (max-width: 600px) { .stage-pick { grid-template-columns: repeat(3, 1fr); } .contact-bar .btn { flex: 1 1 45%; } }
.result-card h2 { display: flex; align-items: center; gap: 8px; color: var(--green-ink); }
.search-big { display: flex; align-items: center; gap: 10px; padding: 4px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.search-big .ic { color: var(--ink-3); }
.shell .search-big input { border: 0; box-shadow: none; padding-left: 0; font-size: 1.05rem; }
.side-search { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 0 10px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--ink-3); }
.side-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.shell .side-search input { flex: 1; min-width: 0; min-height: 0; height: 34px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: .9rem; }
.side-search kbd { font: 600 .7rem var(--font); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-3); background: var(--surface); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form h2 { margin: 0; }
.tag-filter { margin: -6px 0 14px; }
.tag-line { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); }
.tags-form { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); }
.tags-form .ic { color: var(--ink-3); flex: none; }
.shell .tags-form input { flex: 1; min-width: 0; min-height: 34px; border: 0; box-shadow: none; padding: 4px 2px; }
.stage-list.m-only { display: none; }
@media (max-width: 899.98px) { .stage-list.m-only { display: grid; } }
.kanban { grid-template-columns: repeat(5, minmax(176px, 1fr)); }
@media (max-width: 760px) { .invite-all .btn { width: 100%; } }

/* --- Тренировка: суперсеты, техника, таймер отдыха, оценка нагрузки ----------------------------- */
.ss-badge { font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #efe9ff; color: #5b3fd6; }
.ex.in-ss { border-left: 4px solid #7c5cff; }
.ex.in-ss:not(.ss-last) { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ex.in-ss + .ex.in-ss:not(.ss-first) { margin-top: 0; border-top: 1px dashed #c9bcff; border-top-left-radius: 0; border-top-right-radius: 0; }
.ss-label { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .82rem; font-weight: 600; color: #5b3fd6; }
.how-to { margin-top: 8px; }
.how-to > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--blue-ink);
  padding: 5px 10px; border-radius: 999px; background: var(--blue-soft); list-style: none; }
.how-to > summary::-webkit-details-marker { display: none; }
.how-to[open] > summary { margin-bottom: 10px; }
.how-img { max-width: 100%; border-radius: 12px; margin: 8px 0; }
.rest-timer { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--ink); color: var(--surface);
  box-shadow: var(--shadow-md); min-width: 280px; }
.rest-timer[hidden] { display: none; }
.rest-timer > .ic { color: var(--yellow); width: 24px; height: 24px; }
.rt-text { flex: 1; display: grid; line-height: 1.1; }
.rt-label { font-size: .74rem; opacity: .75; }
.rest-timer b { font-family: var(--display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.rest-timer .btn { min-height: 34px; }
.rest-timer .btn:not(.btn-primary) { background: transparent; color: var(--surface); border-color: color-mix(in srgb, var(--surface) 35%, transparent); box-shadow: none; }
.rest-timer.done { background: var(--green); animation: rt-pulse 1s ease-in-out 3; }
@keyframes rt-pulse { 50% { transform: translateX(-50%) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .rest-timer.done { animation: none; } }
@media (max-width: 760px) { .rest-timer { bottom: calc(150px + env(safe-area-inset-bottom)); } }
.rpe { border: 0; padding: 0; }
.rpe legend { padding: 0; font-weight: 600; margin-bottom: 8px; }
.rpe-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.rpe-pill { position: relative; cursor: pointer; }
.rpe-pill input { position: absolute; opacity: 0; inset: 0; }
.rpe-pill span { display: grid; place-items: center; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; color: var(--ink-2); }
.rpe-pill input:checked + span { color: #fff; border-color: transparent; }
.rpe-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.r1 input:checked + span, .r2 input:checked + span, .r3 input:checked + span { background: var(--green); }
.r4 input:checked + span, .r5 input:checked + span, .r6 input:checked + span { background: var(--blue); }
.r7 input:checked + span, .r8 input:checked + span { background: #e08a00; }
.r9 input:checked + span, .r10 input:checked + span { background: var(--red); }
.rpe-badge { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); }
.rpe-badge.r1, .rpe-badge.r2, .rpe-badge.r3 { background: var(--green-soft); color: var(--green-ink); }
.rpe-badge.r7, .rpe-badge.r8 { background: #fff1db; color: #8a5200; }
.rpe-badge.r9, .rpe-badge.r10 { background: var(--red-soft); color: var(--red-ink); }
.rpe-chart { display: grid; gap: 6px; margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.rpe-bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.rb { flex: 1; max-width: 32px; display: flex; align-items: flex-start; justify-content: center; border-radius: 6px 6px 3px 3px; background: var(--blue); color: var(--on-fill); font-size: .68rem; }
.rb b { margin-top: 2px; }
.rb.r1, .rb.r2, .rb.r3 { background: var(--green); } .rb.r7, .rb.r8 { background: #e08a00; } .rb.r9, .rb.r10 { background: var(--red); }
/* Во время тренировки нижнее меню прячем: внизу — панель сохранения, места больше */
@media (max-width: 760px) {
  body.shell:has(form[data-session]) .tabbar { display: none; }
  body.shell:has(form[data-session]) { padding-bottom: env(safe-area-inset-bottom); }
  body.shell:has(form[data-session]) .rest-timer { bottom: calc(110px + env(safe-area-inset-bottom)); }
}
.reply-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chip.chip-sm { padding: 4px 10px; font-size: .82rem; font-weight: 500; cursor: pointer; font-family: var(--font); }
.chip.chip-ghost { border-style: dashed; color: var(--ink-3); }
.chat-form + .reply-chips, .reply-chips + .chat-form { margin-top: 6px; }
.reply-row > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.reply-row > summary::-webkit-details-marker { display: none; }
.reply-row summary .grow { display: grid; min-width: 0; }
.reply-row summary .ic { color: var(--ink-3); }
.todo-row.bday { background: color-mix(in srgb, #ffe3f0 70%, var(--surface)); border-color: #f6c1d9; }
.todo-row.bday .todo-ic { background: #e5487f; color: #fff; }
.ptabs { margin: -4px 0 16px; border-bottom: 1px solid var(--line-soft); }
.ptabs-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ptabs-in::-webkit-scrollbar { display: none; }
.ptabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.ptabs a:hover { color: var(--ink); }
.ptabs a[aria-current="page"] { color: var(--blue-ink); border-bottom-color: var(--blue); font-weight: 600; }
.ptabs .ic { color: var(--ink-3); }
.ptabs a[aria-current="page"] .ic { color: var(--blue); }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: fn; }
.funnel li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; counter-increment: fn; }
.fn-t { min-width: 0; font-size: .92rem; }
.fn-t::before { content: counter(fn) ". "; color: var(--ink-3); }
.fn-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.fn-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #5b82ff); }
.fn-n { font-size: .82rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .funnel li { grid-template-columns: 1fr auto; } .fn-bar { grid-column: 1 / -1; grid-row: 2; } }
.drip.off { opacity: .6; }
.drip h2 { margin: 6px 0 0; font-size: 1rem; }
.empty-start ul { margin: 6px 0 12px; padding-left: 18px; }
.stars-line { color: #f2a900; letter-spacing: 1px; }
.price s { font-size: 1rem; margin-left: 6px; }
.early-line { color: var(--green-ink); font-weight: 600; margin: -4px 0 8px; }
.lb-discuss .comment.by-author { background: var(--blue-soft); }
.discuss-form { display: flex; gap: 8px; align-items: flex-end; }
.discuss-form textarea { flex: 1; min-height: 44px; }
@media (max-width: 640px) { .discuss-form { flex-direction: column; align-items: stretch; } .discuss-form textarea { min-height: 76px; } }
.stars-pick { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-pick label { font-size: 2rem; line-height: 1; color: var(--line-strong); cursor: pointer; }
.stars-pick input:checked ~ label, .stars-pick label:hover, .stars-pick label:hover ~ label { color: #f2a900; }
.stars-pick input:focus-visible + label { outline: 3px solid var(--focus); border-radius: 4px; }
.review-box > summary { cursor: pointer; }
.later-box > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--blue-ink); font-weight: 500; }
.ann-card.scheduled { border-style: dashed; }

/* --- Состояние сервиса (админка) ---------------------------------------------------------------- */
.ml-auto { margin-left: auto; }
.card-head form.ml-auto { margin-bottom: 0; }
.health-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.health-c { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); }
.health-c .grow { display: grid; gap: 2px; min-width: 0; }
.health-t { font-size: .8rem; color: var(--ink-3); }
.health-c strong { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.health-h { font-size: .8rem; color: var(--ink-2); line-height: 1.35; overflow-wrap: anywhere; }
.health-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.health-c.warn { background: var(--yellow-soft); border-color: color-mix(in srgb, var(--yellow) 45%, var(--line)); }
.health-c.warn .health-dot { background: var(--yellow); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 25%, transparent); }
.health-c.bad { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.health-c.bad .health-dot { background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent); }
.err-list { display: grid; gap: 6px; }
.err-row { border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 12px; background: var(--surface-2, var(--bg)); }
.err-row summary { display: flex; gap: 10px; align-items: baseline; cursor: pointer; list-style: none; flex-wrap: wrap; }
.err-row summary::-webkit-details-marker { display: none; }
.err-row code { font-size: .8rem; }
.err-msg { color: var(--red-ink); font-size: .85rem; overflow-wrap: anywhere; }
.err-trace { margin: 8px 0 0; max-height: 320px; overflow: auto; font-size: .74rem; line-height: 1.45; background: #121826; color: #e8ecf5; padding: 10px 12px; border-radius: 8px; white-space: pre; }

/* --- Каталог специалистов 1.20 ------------------------------------------------------------------ */
.dir-chips { flex-wrap: wrap; }
.dir-chips .ic { width: 15px; height: 15px; vertical-align: -2px; }
.field-check { align-self: end; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.spec-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.spec-card { display: flex; flex-direction: column; gap: 10px; }
.spec-top { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.spec-top .grow { display: grid; gap: 1px; min-width: 0; }
.spec-top strong { font-size: 1.05rem; line-height: 1.25; }
.spec-top:hover strong { color: var(--blue); }
.spec-ava, .spec-logo { flex: none; width: 52px; height: 52px; border-radius: 14px; }
.spec-ava { display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-soft), color-mix(in srgb, var(--blue-soft) 40%, var(--yellow-soft))); color: var(--blue-ink); font-weight: 800; font-family: var(--display); }
.spec-logo { object-fit: contain; background: var(--surface-2); border: 1px solid var(--line-soft); }
.spec-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.spec-meta .rating-chip { margin-top: 0; padding: 2px 10px; font-size: .88rem; }
.spec-meta .badge .ic { width: 13px; height: 13px; vertical-align: -2px; }
.spec-spec { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.tags-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tags-row a.tag { text-decoration: none; font-size: .75rem; padding: 2px 9px; }
.tags-row a.tag:hover { background: var(--blue); color: var(--on-fill); }
.spec-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.links-row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.seo-text p { color: var(--ink-2); max-width: 75ch; }
.dir-pick { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.dir-pick legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.dir-group { display: grid; gap: 6px; }
.dir-group-t { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.dir-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.dir-pick label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; cursor: pointer; background: var(--surface); font-weight: 500; }
.dir-pick label:has(input:checked) { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-ink); }
.dir-pick.has-error .dir-opts label { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.dir-pick input { width: 15px; height: 15px; margin: 0; }
.section-sm { margin-top: 10px; }

/* --- Чек-лист первого запуска ------------------------------------------------------------------- */
.onboard { border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--blue-soft) 55%, var(--surface)), var(--surface) 120px); }
.onboard { margin-bottom: 14px; }
.ob-bar { display: block; width: 100%; height: 6px; border: 0; border-radius: 99px; background: var(--line-soft); overflow: hidden; margin-bottom: 8px; -webkit-appearance: none; appearance: none; }
.ob-bar::-webkit-progress-bar { background: var(--line-soft); border-radius: 99px; }
.ob-bar::-webkit-progress-value { background: var(--blue); border-radius: 99px; }
.ob-bar::-moz-progress-bar { background: var(--blue); border-radius: 99px; }
.ob-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ob-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.ob-list li:first-child { border-top: 0; }
.ob-list .grow { flex: 1; display: grid; gap: 1px; min-width: 0; }
.ob-list a { color: var(--ink); text-decoration: none; }
.ob-list a:hover strong { color: var(--blue); }
.ob-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; border: 2px solid var(--blue); color: var(--blue); }
.ob-list li.done .ob-mark { background: var(--green); border-color: var(--green); color: var(--on-fill); }
.ob-list li.done .ob-mark .ic { stroke: #fff; }
.ob-list li.done strong { color: var(--ink-3); text-decoration: line-through; font-weight: 500; }
.ob-act { display: flex; gap: 6px; flex: none; }
.ob-act form { margin: 0; }
@media (max-width: 640px) { .ob-list li { flex-wrap: wrap; } .ob-act { width: 100%; padding-left: 40px; } }
@media (max-width: 640px) {
  .dir-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .dir-chips::-webkit-scrollbar { display: none; }
  .dir-chips .chip { flex: none; }
}

/* --- Выбор вида деятельности с поиском ---------------------------------------------------------- */
.dir-pick.dp-on .dir-group { display: none; }
.dp { display: grid; gap: 8px; }
.dp-field { position: relative; }
.dp-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px 8px; border: 1px solid var(--line-strong, var(--line)); border-radius: 12px; background: var(--surface); cursor: text; }
.dp-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.dir-pick.has-error .dp-box { border-color: var(--red); }
.dp-chips { display: contents; }
.dp-chip { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 11px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: .86rem; font-weight: 600; }
.dp-x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer; }
.dp-x:hover, .dp-x:focus-visible { background: color-mix(in srgb, var(--blue) 18%, transparent); }
.dp-in { flex: 1; min-width: 180px; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent; padding: 6px 4px !important; min-height: 32px; font: inherit; color: var(--ink); }
.dp-in:disabled { cursor: default; }
.dp-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 4px; max-height: 300px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 40px -16px rgba(16, 24, 40, .35); }
.dp-g { padding: 8px 10px 4px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.dp-opt { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.dp-opt:hover, .dp-opt.on { background: var(--blue-soft); color: var(--blue-ink); }
.dp-empty { padding: 10px; font-size: .88rem; color: var(--ink-3); }
.dp-pop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dp-pop[hidden] { display: none; }
.dp-pop-t { font-size: .8rem; color: var(--ink-3); margin-right: 2px; }
.dp-quick { padding: 4px 10px; border: 1px dashed var(--line-strong, var(--line)); border-radius: 999px; background: transparent; color: var(--ink-2); font-size: .8rem; cursor: pointer; }
.dp-quick:hover { border-style: solid; border-color: var(--blue); color: var(--blue-ink); }
.dp-quick[hidden] { display: none; }
@media (max-width: 640px) { .dp-in { min-width: 120px; font-size: 16px; } .dp-list { max-height: 260px; } }

/* --- Главная: плотная вёрстка (1.20) ------------------------------------------------------------ */
.lp .hero-in { gap: 24px; padding-top: 40px; padding-bottom: 36px; }
@media (min-width: 960px) { .lp .hero-in { grid-template-columns: 1.3fr 1fr; padding-top: 56px; padding-bottom: 48px; } }
.lp .hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin-bottom: 14px; }
.lp .hero .lead { font-size: 1.06rem; margin-bottom: 20px; max-width: 54ch; }
.lp-eyebrow { margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.lp-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-facts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.lp-facts .ic { color: var(--blue); }
.lp .barbell { height: 180px; }

.lp .band { padding: 40px 0; }
.lp .band h2 { font-size: clamp(1.35rem, 2.7vw, 1.95rem); margin-bottom: 6px; max-width: 30ch; }
.lp .band .lead { font-size: 1rem; margin: 0; max-width: 64ch; }
.lp-head { margin-bottom: 20px; }
.lp-tag { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.lp-tag.t-blue { background: var(--blue-soft); color: var(--blue-ink); }
.lp-tag.t-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.lp-tag.t-green { background: var(--green-soft); color: var(--green-ink); }

/* роли */
.lp .roles { margin-top: 0; gap: 12px; }
.lp .role { padding: 18px; gap: 10px; border-radius: 16px; border-top: 3px solid var(--line-strong); }
.lp .role-blue { border-top-color: var(--plate-blue); } .lp .role-yellow { border-top-color: var(--plate-yellow); } .lp .role-green { border-top-color: var(--plate-green); }
.role-h { display: flex; gap: 12px; align-items: flex-start; }
.role-h .disc { width: 34px; height: 34px; }
.role-h .disc::after { width: 9px; height: 9px; }
.lp .role h3 { font-size: 1.12rem; }
.role-who { margin: 2px 0 0; font-size: .88rem; color: var(--ink-3); line-height: 1.4; }
.role-get { margin: 0; font-size: .94rem; color: var(--ink-2); line-height: 1.45; }
.role-next { margin: 0; display: flex; gap: 6px; font-size: .84rem; color: var(--ink-3); line-height: 1.4; }
.role-next .ic { flex: none; margin-top: 2px; color: var(--ink-3); }

/* о проекте */
@media (min-width: 900px) { .lp-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; align-items: start; } }
.lp-about .prose { max-width: 72ch; }
.lp-about .prose p { margin: 0 0 10px; }

/* возможности */
.lp-feats { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .lp-feats { grid-template-columns: repeat(3, 1fr); } }
.lp-feat { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.band.alt .lp-feat { background: var(--bg); }
.lp-feat h3 { font-size: .98rem; margin: 0 0 3px; }
.lp-feat p { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.lp-fi { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.lp-fi .ic { width: 20px; height: 20px; }
.f-blue .lp-fi { background: var(--blue-soft); color: var(--blue); }
.f-yellow .lp-fi { background: var(--yellow-soft); color: var(--yellow-ink); }
.f-green .lp-fi { background: var(--green-soft); color: var(--green-ink); }
.lp-cats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.lp-cats-t { font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; margin-top: 18px; }
.lp-cta p { margin: 0; flex: 1 1 320px; color: var(--ink-2); font-size: .95rem; max-width: 62ch; }
.lp-cta .actions { gap: 8px; }
.lp .hint { margin: 10px 0 0; }

/* вопросы раздела — свёрнуты под одну строку */
.lp-fold { margin-top: 16px; border-top: 1px solid var(--line); }
.lp-fold > summary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0 0; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--blue-ink); list-style: none; }
.lp-fold > summary::-webkit-details-marker { display: none; }
.lp-fold > summary .n { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--blue-soft); font-size: .75rem; text-align: center; }
.lp-fold[open] > summary { margin-bottom: 8px; }
.lp .faq summary { padding: 12px 32px 12px 0; font-size: .95rem; }
.lp .faq summary::after { top: 8px; }
.lp .faq details > div { padding-bottom: 12px; font-size: .92rem; }

/* как начать + программа заработка */
.lp-split { display: grid; gap: 28px; }
@media (min-width: 900px) { .lp-split { grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; } }
.lp-steps { margin: 14px 0 16px; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.lp-steps li { padding: 14px; border-radius: 14px; background: var(--bg); }
.lp-steps li::before { font-size: 1.2rem; margin-bottom: 4px; }
.lp-steps h3 { font-size: .98rem; }
.lp-steps p { font-size: .88rem; }
.lp-amb { padding: 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-soft); }
.lp-amb h2 { font-size: 1.2rem !important; }
.lp-amb p { color: var(--ink-2); font-size: .93rem; }
.lp-amb .form { gap: 10px; }

/* общий FAQ в две колонки */
@media (min-width: 900px) { .lp-faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; } .lp-faq details:last-child { border-bottom: 0; } .lp-faq details { border-bottom: 0; } }
.lp-final .final-cta { margin-top: 0; gap: 10px; }
.lp-final .final-cta .btn { min-height: 54px; padding: 12px 18px; }

@media (max-width: 600px) {
  .lp .band { padding: 28px 0; }
  .lp .hero-in { padding-top: 26px; padding-bottom: 22px; gap: 14px; }
  .lp .barbell { height: 86px; }
  .lp-facts { margin-top: 16px; gap: 6px; }
  .lp-facts li { font-size: .8rem; padding: 6px 10px; }
  .lp .role { padding: 14px; }
  .lp-feat { padding: 12px; }
  .lp-fi { width: 34px; height: 34px; }
  .lp-cta .actions { width: 100%; }
  .lp-cta .actions .btn { flex: 1 1 auto; }
}
@media (max-width: 600px) {
  .lp-steps { grid-template-columns: 1fr; gap: 8px; }
  .lp-steps li { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; padding: 12px; }
  .lp-steps li::before { grid-row: span 2; margin: 0; }
  .lp-steps h3, .lp-steps p { grid-column: 2; }
}

/* Вход с кодом из приложения: резервные коды крупно и в сетку — их удобно переписать или распечатать */
.backup-codes { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.backup-codes code, code.secret { font-size: 1.05rem; padding: 2px 8px; border-radius: 6px; background: var(--surface-2, rgba(127, 127, 127, .12)); user-select: all; }
code.secret--wrap { word-break: break-all; }

/* =====================================================================================================
   1.21 — реферальная программа, карточка тренера для администратора, режим поддержки, групповая запись
   ===================================================================================================== */
.nowrap { white-space: nowrap; }
.d-block { display: block; }
.warn-text { color: var(--yellow-ink); }
.pager { display: flex; gap: 8px; justify-content: flex-end; }
.kpi.ok { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.kpi.ok .kpi-v { color: var(--green-ink); }

/* Ссылка с кнопкой «Скопировать» */
.ref-copy { display: flex; gap: 8px; align-items: stretch; }
.ref-copy input { flex: 1 1 auto; min-width: 0; font-size: .95rem; background: var(--surface-2); }
.ref-copy .btn { flex: none; white-space: nowrap; }
.btn.copied { background: var(--green); border-color: var(--green); color: var(--on-fill); }

/* Кабинет участника */
.ref-head { margin-bottom: 4px; }
.ref-link { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px 24px; align-items: start; }
.ref-label { display: flex; align-items: center; gap: 6px; font-size: .95rem; margin: 0 0 8px; }
.ref-link .hint { margin: 8px 0 0; }
.ref-terms { margin: 0; display: grid; gap: 8px; padding-left: 20px; border-left: 1px solid var(--line); }
.ref-terms div { display: grid; gap: 2px; }
.ref-terms dt { font-size: .8rem; color: var(--ink-3); }
.ref-terms dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ref-pct { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--blue-ink); }
.ref-note { grid-column: 1 / -1; padding: 10px 12px; border-radius: var(--r-md); background: var(--blue-soft); color: var(--ink-2); }
.ref-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ref-kpis .kpi { padding: 12px 14px; }
.ref-kpis .kpi-v { font-size: 1.25rem; }
.ref-tabs { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ref-filters { margin-top: 12px; }
.ref-table td { vertical-align: top; }
.ref-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ref-table th.cb, .ref-table td.cb { width: 34px; }
.ref-empty { display: flex; gap: 14px; align-items: flex-start; text-align: left; }
.ref-empty .ic { width: 28px; height: 28px; color: var(--blue); flex: none; margin-top: 2px; }
.ref-invited { display: flex; gap: 8px; align-items: center; padding: 10px 12px; margin: 0 0 14px; border-radius: var(--r-md);
  background: var(--green-soft); color: var(--green-ink); font-size: .92rem; }
.ref-invited .ic { flex: none; }

/* История операций — плотный список */
.ref-history { list-style: none; margin: 0; padding: 4px 0 !important; }
.ref-history li { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto auto; gap: 4px 14px; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--line); }
.ref-history li:last-child { border-bottom: 0; }
.rh-main { display: grid; gap: 1px; min-width: 0; }
.rh-kind { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.rh-text { overflow-wrap: anywhere; }
.rh-amount { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.rh-accrued .rh-amount, .rh-manual .rh-amount { color: var(--green-ink); }
.rh-paid .rh-amount { color: var(--blue-ink); }
.rh-cancelled .rh-amount, .rh-skipped .rh-text { color: var(--ink-3); }

/* Админка: действия с начислением */
.rw-acts { display: flex; gap: 6px; align-items: center; justify-content: flex-end; position: relative; }
.rw-acts form { margin: 0; }
.rw-more { position: relative; }
.rw-more > summary { list-style: none; }
.rw-more > summary::-webkit-details-marker { display: none; }
.rw-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(360px, 86vw); display: grid; gap: 12px;
  box-shadow: 0 12px 32px rgba(24, 32, 47, .18); }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface); position: sticky; top: 8px; z-index: 5; }
.bulk-bar .bulk-note { flex: 1 1 220px; min-width: 0; }
.ref-grid { align-items: start; }
.ref-bal { font-family: var(--display); font-size: 1.3rem; color: var(--green-ink); }
.plan-pcts { border: 0; padding: 0; margin: 4px 0 0; }
.plan-pcts legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.plan-pcts .form-row { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

@media (max-width: 900px) {
  .ref-link { grid-template-columns: 1fr; }
  .ref-terms { padding-left: 0; border-left: 0; padding-top: 12px; border-top: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .ref-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ref-copy { flex-direction: column; }
  .ref-history li { grid-template-columns: minmax(0, 1fr) auto; }
  .rh-date { grid-column: 1 / -1; }
  .rh-status { grid-column: 1 / -1; }
  .rw-acts { justify-content: flex-start; }
  .rw-pop { left: 0; right: auto; }
}

/* Календарь: параллельные записи — дорожками; групповое занятие — одним блоком с заполненностью */
.cal-ev.ln2 { right: auto; width: calc(50% - 7px); }
.cal-ev.ln2.l1 { left: calc(50% + 2px); }
.cal-ev.ln3 { right: auto; width: calc(33.33% - 6px); }
.cal-ev.ln3.l1 { left: calc(33.33% + 2px); }
.cal-ev.ln3.l2 { left: calc(66.66% + 1px); }
.cal-ev.ln4 { right: auto; width: calc(25% - 5px); padding-left: 6px; padding-right: 4px; }
.cal-ev.ln4.l1 { left: calc(25% + 2px); }
.cal-ev.ln4.l2 { left: calc(50% + 1px); }
.cal-ev.ln4.l3 { left: calc(75% + 0px); }
.cal-ev.cal-group { background: color-mix(in srgb, var(--blue) 14%, var(--surface)); border-left-width: 6px;
  background-image: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--blue) 7%, transparent) 9px 18px); }
.cal-ev.cal-group.st-pending { background-color: var(--yellow-soft); }
.cal-ev.cal-group.st-completed { background-color: var(--green-soft); }
.grp-n { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 0 5px; border-radius: 999px; background: var(--surface); color: var(--blue-ink); font-size: .74rem; line-height: 1.5; }
.grp-n .ic { width: 12px; height: 12px; }
.grp-n.low { color: var(--yellow-ink); background: var(--yellow-soft); }
.cal-legend .lg-group::before { background: color-mix(in srgb, var(--blue) 14%, var(--surface)); border-left-width: 6px; }
.cal-legend .lg-par::before { background: var(--surface-2); border-left-color: var(--ink-3); }
.tl-group > a { background: color-mix(in srgb, var(--blue) 14%, var(--surface)) !important; }
.tl-group .tl-st { display: inline-flex; align-items: center; gap: 3px; }

/* Страница группового занятия */
.grp-fill { display: grid; gap: 4px; margin: 8px 0 4px; max-width: 420px; }
.grp-fill progress { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border: 0; border-radius: 6px;
  background: var(--surface-2); overflow: hidden; color: var(--blue); }
.grp-fill progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 6px; }
.grp-fill progress::-webkit-progress-value { background: var(--blue); border-radius: 6px; }
.grp-fill progress::-moz-progress-bar { background: var(--blue); border-radius: 6px; }
.grp-list li { gap: 10px; }
.grp-came { margin: 0; }
.grp-opts { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 10px 12px; }
.grp-opts[open] { background: var(--surface-2); }
.grp-opts summary { cursor: pointer; }
.grp-opts .wd-pills { margin: 6px 0 10px; }
.grp-note { display: flex; gap: 6px; align-items: flex-start; color: var(--blue-ink); }
.time-chip small.last { color: var(--red-ink); font-weight: 700; }
.wh-cap { display: inline-flex; align-items: center; gap: 1px; margin-left: 4px; font-size: .78rem; font-weight: 700; color: var(--blue-ink); }
.wh-cap .ic { width: 12px; height: 12px; }

/* Режим поддержки */
.banner.support-banner { background: color-mix(in srgb, var(--blue) 12%, var(--surface)); color: var(--blue-ink); border-color: var(--blue); }
.banner.support-banner .container { justify-content: flex-start; }
.banner.support-banner .grow { flex: 1 1 280px; }
.banner.support-banner form { margin: 0; }

/* Администратор: тренеры */
.tr-list .p-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tr-ready { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--yellow-ink); font-variant-numeric: tabular-nums; }
.tr-ready.ok { color: var(--green-ink); }
.tr-ready progress { -webkit-appearance: none; appearance: none; width: 56px; height: 6px; border: 0; border-radius: 4px; background: var(--surface-2); overflow: hidden; color: var(--yellow); }
.tr-ready progress::-webkit-progress-bar { background: var(--line); border-radius: 4px; }
.tr-ready progress::-webkit-progress-value { background: var(--yellow); }
.tr-ready progress::-moz-progress-bar { background: var(--yellow); }
.tr-ready.ok progress::-webkit-progress-value { background: var(--green); }
.tr-ready.ok progress::-moz-progress-bar { background: var(--green); }
.tr-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; }
.ava-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.25rem; font-weight: 800; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.tr-who h1 { margin: 0; }
.tr-who p { margin: 2px 0 0; }
.tr-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px !important; }
.tr-actions { display: grid; gap: 8px; justify-items: end; }
.tr-support { display: flex; gap: 8px; margin: 0; }
.tr-support input { width: 260px; min-width: 0; }
.temp-pass { border-color: var(--yellow); background: var(--yellow-soft); }
.temp-pass h2 { margin-top: 0; }
.tr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tr-steps li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.tr-steps li.done { background: var(--surface-2); }
.tr-steps li.done strong { color: var(--ink-3); font-weight: 600; }
.tr-steps form { margin: 0; }
.tr-step-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .82rem;
  background: var(--yellow-soft); color: var(--yellow-ink); }
.tr-steps li.done .tr-step-ic { background: var(--green-soft); color: var(--green-ink); }
.tr-sub { font-size: 1rem; margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.tr-sub:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.tr-svc > li { display: block; }
.tr-svc summary { cursor: pointer; }
.tr-presets { margin: 10px 0; }
.tr-week { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.tr-week li { display: flex; gap: 10px; align-items: center; min-height: 34px; }
.tr-week .wh-name { width: 28px; font-weight: 700; color: var(--ink-2); }
.tr-week .wh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-week li.rest .wh-name { color: var(--ink-3); }
.tr-notes, .tr-log { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.tr-notes li { padding: 8px 10px; border-radius: var(--r-md); background: var(--surface-2); }
.tr-notes p { margin: 0 0 4px; }
.tr-notes form { display: inline; margin-left: 6px; }
.tr-log li { display: grid; gap: 1px; font-size: .9rem; }
@media (max-width: 900px) {
  .tr-head { grid-template-columns: auto minmax(0, 1fr); }
  .tr-actions { grid-column: 1 / -1; justify-items: stretch; }
  .tr-support { flex-direction: column; }
  .tr-support input { width: 100%; }
}
.ref-table { font-size: .9rem; }
.ref-table th, .ref-table td { padding-left: 10px; padding-right: 10px; }
.ref-table .badge { white-space: nowrap; }
.ref-more { margin: 4px 0 8px; }
.ref-more > summary { cursor: pointer; color: var(--blue-ink); font-weight: 600; margin-bottom: 8px; }
.ref-stack { display: grid; gap: 8px; }
.ref-stack .field { margin: 0; }
.ref-stack .btn { width: 100%; }
.tr-steps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tr-steps li { padding: 6px 8px; min-height: 44px; }
.tr-steps li strong { font-size: .93rem; }
.tr-card .rule-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cal-ev .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.cal-group .s { display: flex; align-items: center; gap: 4px; }
.cal-ev[class*=" ln"] { padding-left: 7px; padding-right: 4px; }
.bk-card > div { min-width: 0; }
.bk-card h1 { overflow-wrap: anywhere; }
/* Быстрая правка условий в списке участников */
.ref-quick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.rq-f { position: relative; display: inline-flex; align-items: center; }
.rq-f input { width: 64px; padding: 6px 20px 6px 8px; min-height: 34px; font-variant-numeric: tabular-nums; }
.rq-f i { position: absolute; right: 7px; font-style: normal; color: var(--ink-3); font-size: .85rem; pointer-events: none; }
.rq-on { display: inline-flex; }
.rq-on input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.ref-pcts { display: flex !important; gap: 16px !important; }
.ref-pcts span { display: grid; }
.ref-pcts small { font-size: .78rem; color: var(--ink-3); }
.ref-quick { flex-wrap: nowrap; }
.rq-save { padding: 6px 9px; min-height: 34px; }
@media (max-width: 700px) { .ref-quick { flex-wrap: wrap; } }
/* Поделиться ссылкой и QR-код */
.ref-share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ref-qr { position: relative; }
.ref-qr > summary { list-style: none; }
.ref-qr > summary::-webkit-details-marker { display: none; }
.ref-qr-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: grid; gap: 8px; justify-items: center;
  box-shadow: 0 12px 32px rgba(24, 32, 47, .18); }
.ref-qr-pop img { width: 200px; height: 200px; border-radius: 8px; background: #fff; }
.kpi-link { text-decoration: none; color: inherit; }
.kpi-link:hover { border-color: var(--green); }
.risk-text { color: var(--red-ink); }
@media (max-width: 600px) { .ref-qr-pop { left: auto; right: -80px; } }
.ob-help { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; color: var(--ink-2); }
.help-req { border-color: var(--red); background: color-mix(in srgb, var(--red-soft) 60%, var(--surface)); }
.help-req h2 { display: flex; gap: 6px; align-items: center; margin: 0; }
.help-sent { border-color: var(--green); background: var(--green-soft); }
.help-sent h2 { display: flex; gap: 6px; align-items: center; margin-top: 0; }
/* Публичная страница: ближайшие групповые занятия */
.pub-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pub-groups li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.pub-groups li.full { opacity: .7; }
.pg-date { flex: none; width: 52px; display: grid; justify-items: center; line-height: 1.05; font-size: .78rem; color: var(--ink-3); text-transform: lowercase; }
.pg-date b { font-family: var(--display); font-size: 1.3rem; color: var(--blue-ink); }
.pg-seats { flex: none; }
@media (max-width: 600px) { .pub-groups li { flex-wrap: wrap; } .pub-groups .grow { flex: 1 1 60%; } }
.pub-groups .pg-seats { min-width: 128px; text-align: right; }
.pub-groups li > .btn { min-width: 150px; justify-content: center; }
.ref-grid { margin-top: 12px; }
@media (max-width: 600px) { .pub-groups .pg-seats { min-width: 0; text-align: left; } .pub-groups li > .btn { min-width: 0; width: 100%; } }

/* Конструктор тренировки: выбор упражнения, «своё упражнение», вставка списком */
.add-ex-tip { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 9px 12px; border-radius: var(--r-md);
  background: var(--green-soft); color: var(--green-ink); font-size: .92rem; }
.add-ex-tip .ic { flex: none; margin-top: 2px; }
.ex-pick { position: relative; }
.ex-results { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 4px; max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: 0 12px 30px rgba(24, 32, 47, .16);
  padding: 4px; display: grid; gap: 2px; }
.ex-opt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; cursor: pointer; min-height: 40px; }
.ex-opt small { color: var(--ink-3); font-size: .78rem; white-space: nowrap; }
.ex-opt:hover, .ex-opt.on { background: var(--blue-soft); }
.ex-opt.ex-create { color: var(--green-ink); font-weight: 700; background: var(--green-soft); }
.ex-opt.ex-create:hover, .ex-opt.ex-create.on { background: color-mix(in srgb, var(--green) 22%, var(--surface)); }
.ex-new[hidden] { display: none; }
.ex-main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ex-more { margin: 4px 0 10px; }
.ex-more > summary { cursor: pointer; color: var(--blue-ink); }
.bulk-card textarea, .prog-new textarea { font-family: inherit; }
.prog-new { border-top: 1px solid var(--line); padding-top: 14px; }
.prog-new h3 { display: flex; align-items: center; gap: 6px; font-size: 1rem; margin: 0 0 6px; }
@media (max-width: 600px) { .ex-main { grid-template-columns: 1fr 1fr; } }
.ex-main { display: grid; gap: 8px; }
.lib-removed { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .lib-removed form { margin: 0; }
.bulk-card > summary .grow > .small { display: block; margin-top: 2px; font-weight: 400; }
/* 1.21.4: понятнее — шаги записи с кнопкой справа */
.setup-steps .grow { flex: 1; }
.setup-steps .go { border: 1px solid var(--line-strong); padding: 6px 12px; border-radius: 8px; color: var(--ink-2); }
.setup-steps .cur .go { border-color: var(--blue); }

.pkg-chip .grow { display: grid; gap: 1px; }
.book-label .step-no { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: 8px; border-radius: 50%; background: var(--blue); color: var(--on-fill); font-size: .8em; vertical-align: 2px; }

/* 1.21.4 — приглашение клиента */
.invite-main { padding: 24px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.inv-head { display: flex; gap: 14px; align-items: flex-start; }
.inv-head h2 { margin: 0 0 2px; }
.inv-head p { margin: 0; }
.inv-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.inv-link { display: flex; gap: 10px; align-items: stretch; }
.inv-url { flex: 1 1 auto; min-width: 0; font: 500 .95rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); }
.inv-link .btn { flex: none; }
.inv-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inv-sh { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; color: #fff; transition: filter .15s; }
.inv-sh:hover { filter: brightness(1.08); }
.inv-sh-wa { background: #1fa855; }
.inv-sh-tg { background: #229ed9; }
.inv-sh-vk { background: var(--vk); }
.inv-foot { display: flex; gap: 8px; align-items: center; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.inv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.inv-steps li { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); }
.inv-steps li.cur { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); background: var(--blue-soft); }
.inv-steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2); }
.inv-steps .cur .n { background: var(--blue); border-color: var(--blue); color: var(--on-fill); }
.inv-steps li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.inv-steps small { color: var(--ink-3); font-size: .82rem; }
.inv-create { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 0; }
@media (max-width: 720px) {
  .inv-steps { grid-template-columns: 1fr; }
  .inv-link { flex-direction: column; }
  .inv-create .btn { width: 100%; justify-content: center; }
}

/* 1.21.4 — готовые варианты услуги */
.svc-presets { display: grid; gap: 10px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.svc-presets-t { margin: 0; font-size: .9rem; color: var(--ink-2); }
.svc-preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.svc-preset { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.svc-preset:hover { border-color: color-mix(in srgb, var(--blue) 50%, var(--line)); box-shadow: var(--shadow); }
.svc-preset.on { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 18%, transparent); }
.svc-preset-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.svc-preset.on .svc-preset-ic { background: var(--blue); color: var(--on-fill); }
.svc-preset-tx { display: grid; gap: 1px; min-width: 0; }
.svc-preset-tx strong { font-size: .95rem; }
.svc-preset-tx small { font-size: .8rem; color: var(--ink-3); }
@media (max-width: 420px) { .svc-preset-grid { grid-template-columns: 1fr; } }

/* 1.21.4 — пустые заявки: как это работает */
.crm-how { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: var(--r-md); background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line)); }
.crm-how-t { margin: 0; flex: 1 1 380px; color: var(--ink-2); line-height: 1.5; }
.crm-how-t strong { color: var(--ink); }
.crm-how-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crm-how-steps li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.crm-how-steps li:not(.arr) { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.crm-how-steps .arr { color: var(--ink-3); }
.crm-how .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.crm-how .d-contacted { background: #7c5cff; } .crm-how .d-trial { background: var(--yellow); } .crm-how .d-won { background: var(--green); }

/* 1.21.4 — карточка «Мои тренеры» */
.mt-card { display: grid; gap: 14px; }
.mt-top { display: flex; gap: 14px; align-items: center; }
.mt-top h2 { margin: 0; font-size: 1.15rem; }
.mt-top p { margin: 2px 0 0; }
.mt-av { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 1.2rem; }
.mt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-note { margin: -4px 0 0; }
.btn-attn { border-color: color-mix(in srgb, var(--yellow) 60%, var(--line)); background: var(--yellow-soft); }
.mt-more { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 0; }
.mt-more summary { cursor: pointer; color: var(--ink-2); }
.mt-leave { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.mt-leave p { margin: 0 0 8px; }
@media (max-width: 520px) { .mt-actions .btn { flex: 1 1 100%; justify-content: center; } }
.pkg-chip .pkg-n { display: grid; justify-items: center; min-width: 48px; gap: 2px; }
.pkg-chip .pkg-n small { display: block; }
.inv-more > summary { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.inv-more > summary .grow { display: grid; gap: 2px; }
ul.opt-list { padding: 0; margin: 0; list-style: none; }

/* 1.21.4 — «С чего начать» на телефоне: весь шаг — одна кнопка, без отдельного «Сделать» */
@media (max-width: 640px) {
  .ob-list li { flex-wrap: nowrap; position: relative; padding: 12px 28px 12px 0; }
  .ob-list li:not(.done)::after { content: "›"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--ink-3); }
  .ob-list li:not(.done) .grow > a::after { content: ""; position: absolute; inset: 0; }
  .ob-act { width: auto; padding-left: 0; position: relative; z-index: 1; }
  .ob-act > .btn { display: none; }
  .ob-act .btn-ghost { padding: 6px 8px; font-size: .8rem; white-space: nowrap; }
  .ob-list .grow .small { font-size: .82rem; }
}
@media (max-width: 640px) {
  .ob-list li { flex-wrap: wrap; }
  .ob-list li .grow { flex: 1 1 calc(100% - 44px); }
  .ob-act { margin: -4px 0 0 32px; }
  .ob-act:not(:has(form)) { display: none; }
}

/* 1.21.6 — живая переписка */
.msg-new { animation: msg-in .22s ease-out; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg-new { animation: none; } }
.msg-tick { letter-spacing: -2px; margin-left: 2px; }
.msg.mine .msg-tick.read { color: #fff; font-weight: 700; }
.chat-form.sending .chat-send { opacity: .6; cursor: progress; }
.chat-error { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--r-md); background: var(--red-soft, #fde8e8); color: var(--red-ink, #9b1c1c); font-size: .9rem; }

/* 1.21.7 — «Где выполнен вход» */
.logins { display: grid; gap: 14px; }
.logins > * { min-width: 0; }
.logins h2 { margin: 0; }
.logins > p { margin: -6px 0 0; }
.dev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dev { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.dev.cur { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); background: color-mix(in srgb, var(--green-soft) 55%, var(--surface)); }
.dev-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.dev.cur .dev-ic { background: var(--green-soft); color: var(--green-ink); }
.dev-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dev-tx strong { font-size: .95rem; }
.dev-meta { font-size: .82rem; color: var(--ink-3); line-height: 1.45; }
.dev-meta > span { white-space: nowrap; }
.dev-now { color: var(--green-ink); font-weight: 700; }
.dev-more > summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--blue); padding: 2px 0; list-style: none; }
.dev-more > summary::-webkit-details-marker { display: none; }
.dev-more > .dev-list { margin-top: 8px; }
.dev form { margin: 0; flex: none; }
.lg-hist { border-top: 1px solid var(--line); padding-top: 12px; }
.lg-hist > summary { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; cursor: pointer; font-weight: 600; }
.lg-t { white-space: nowrap; margin-right: auto; }
.lg-list { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; }
.lg-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 6px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft, var(--line)); font-size: .9rem; }
.lg-list li:first-child { border-top: 0; }
.lg-what { display: contents; }
.lg-dev { grid-column: 1 / 3; grid-row: 1; color: var(--ink); font-weight: 500; min-width: 0; }
.lg-list .badge { grid-column: 3; grid-row: 1; justify-self: end; }
.lg-when { grid-column: 1; grid-row: 2; font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-ip { grid-column: 2 / 4; grid-row: 2; font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lg-ip::before { content: "· "; }
.lg-list li.bad { background: color-mix(in srgb, var(--red-soft) 55%, transparent); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; }
.lg-list li.bad + li, .lg-list li + li.bad { border-top-color: transparent; }
.lg-hist > p { margin: 0; }
.lg-foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.lg-foot form { margin: 0; }
.lg-alarm { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); color: var(--red-ink); background: var(--red-soft); }
.lg-alarm:hover { border-color: var(--red); }
@media (max-width: 520px) {
  .lg-foot .btn { width: 100%; justify-content: center; }
  .lg-foot form { flex: 1 1 100%; }
}

/* 1.21.7 — видео по ссылке: запасная ссылка, облака, подсказка про ключ ВК */
.vbox { margin: 0; display: grid; gap: 8px; }
.video-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 6px; font-size: .82rem; color: var(--ink-3); }
.video-alt a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--blue); text-decoration: none; }
.video-alt a:hover { text-decoration: underline; }
.video-cloud { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--blue-soft) 70%, var(--surface)), var(--surface)); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.video-cloud:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); box-shadow: 0 6px 18px -12px color-mix(in srgb, var(--blue) 60%, transparent); }
.video-cloud .grow { display: grid; gap: 2px; min-width: 0; }
.video-cloud > .ic { color: var(--ink-3); flex: none; }
.video-cloud-play { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--on-fill); }
.video-cloud-play .ic, .video-cloud-play svg { width: 24px; height: 24px; }
.vkey { display: flex; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, #E8A33D 45%, var(--line)); background: color-mix(in srgb, #FDF1DC 75%, var(--surface)); color: var(--ink); font-size: .88rem; }
.vkey-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, #E8A33D 22%, var(--surface)); color: #8A5A06; }
.vkey-ic svg { width: 18px; height: 18px; }
.vkey p { margin: 4px 0 0; }
.vkey ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vkey { background: color-mix(in srgb, #E8A33D 12%, var(--surface)); border-color: color-mix(in srgb, #E8A33D 35%, var(--line)); } :root:not([data-theme="light"]) .vkey-ic { color: #F3C67A; }
}

/* 1.21.9 — iPhone (Safari): поле даты и времени не вылезает за форму и одной высоты с остальными полями */
input[type=date], input[type=time], input[type=datetime-local], input[type=month] {
  -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; box-sizing: border-box;
}
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value,
input[type=datetime-local]::-webkit-date-and-time-value, input[type=month]::-webkit-date-and-time-value { text-align: left; min-height: 1.4em; margin: 0; }
.field { min-width: 0; }

/* 1.22 — дети в аккаунте родителя */
.ava-kid { background: linear-gradient(140deg, #34c38f, #1f9d6b); color: #fff; }
.fam-sw { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 6px 2px; margin-top: 4px; border-top: 1px solid var(--line-soft); }
.fam-sw-h { flex: 1 0 100%; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 0 4px 2px; }
.fam-sw form { margin: 0; }
.fam-sw-i { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 .82rem/1.2 var(--font); cursor: pointer; transition: border-color .15s, background .15s; }
.fam-sw-i .ava-xs { width: 22px; height: 22px; border-radius: 50%; font-size: .58rem; }
.fam-sw-i:hover { border-color: var(--line-strong); color: var(--ink); }
.fam-sw-i.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.fam-sw-dot { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--red, #e5484d); border: 2px solid var(--surface); }
.child-bar { background: linear-gradient(90deg, color-mix(in srgb, #34c38f 18%, var(--surface)), color-mix(in srgb, #34c38f 8%, var(--surface))); border-bottom: 1px solid color-mix(in srgb, #34c38f 35%, var(--line)); }
.child-bar-in { max-width: var(--container, 1120px); margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.child-bar-t { flex: 1; min-width: 0; font-size: .92rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.child-bar-age { color: var(--ink-2); }
.child-bar form { margin: 0; flex: none; }
.child-bar-btn { background: var(--surface); }
.fam-lead { max-width: 62ch; }
.fam-grid { align-items: start; }
.kid-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kid { display: grid; gap: 14px; }
.kid-top { display: flex; align-items: center; gap: 12px; }
.kid-ava { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #fff; background: linear-gradient(140deg, #34c38f, #1f9d6b); }
.kid-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.kid-t strong { font-size: 1.05rem; }
.kid-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.kid-actions form { margin: 0; }
.kid-edit { flex: 0 1 auto; }
.kid-edit[open] { flex-basis: 100%; }
.kid-edit > summary { list-style: none; display: inline-flex; }
.kid-edit > summary::-webkit-details-marker { display: none; }
.kid-edit[open] > summary { margin-bottom: 10px; }
.kid-form { padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-soft); }
.kid-actions > form:first-child { order: -1; }
.btn-danger-text { color: var(--red-ink); }
.btn-danger-text:hover { background: var(--red-soft); color: var(--red-ink); }
.fam-empty { text-align: center; padding: 28px 20px; display: grid; justify-items: center; gap: 6px; }
.fam-empty h2 { margin: 6px 0 0; }
.fam-empty p { margin: 0; }
.fam-empty-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, #34c38f 16%, var(--surface)); color: #1f9d6b; }
.fam-empty-ic svg { width: 28px; height: 28px; }
.steps-mini { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.steps-mini strong { color: var(--ink); }
.fam-add { position: sticky; top: 16px; }
.consent-check { align-items: flex-start; font-size: .88rem; line-height: 1.45; }
.consent-check.has-error { color: var(--red-ink); }
.quiet-check { margin-top: 4px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); align-items: flex-start; font-size: .9rem; }
.child-manage h2 .muted { font-weight: 500; }
@media (max-width: 760px) {
  .fam-add { position: static; order: -1; }
  .fam-grid.has-kids .fam-add { order: 0; }
  .kid-actions .btn { flex: 1 1 auto; justify-content: center; }
  .child-bar-in { padding: 8px 12px; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .child-bar { background: color-mix(in srgb, #34c38f 14%, var(--surface)); } :root:not([data-theme="light"]) .fam-empty-ic { color: #5fd6a8; }
}
.inv-who { display: grid; gap: 14px; }
.who-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.who-pick legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.who-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.who-opt > span:last-child { display: grid; gap: 1px; }
.who-opt input { position: absolute; opacity: 0; pointer-events: none; }
.who-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 18%, transparent); }
.who-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.who-new { border-style: dashed; color: var(--ink-2); }
.who-plus { background: var(--surface-2); color: var(--ink-2); }
.inv-kid-hint { margin-top: 12px; }
.promo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.promo-row { display: grid; gap: 6px; }
.promo-row.off { opacity: .66; }
.promo-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.promo-code { font-weight: 700; font-size: 1.02rem; letter-spacing: .04em; padding: 2px 10px; border-radius: 8px; background: var(--surface-2); border: 1px dashed var(--line-strong); }
.promo-val { margin-left: auto; font-weight: 700; font-size: 1.1rem; color: var(--green-ink); }
.promo-title { font-size: .95rem; }
.promo-meta { margin: 0; line-height: 1.5; }
.promo-partner { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-ink); }
.promo-actions { display: flex; gap: 6px; }
.promo-actions form { margin: 0; }
.promo-new { position: sticky; top: 16px; }
.promo-applied { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); font-size: .9rem; }
.promo-form.promo-on { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
@media (max-width: 760px) { .promo-new { position: static; } }
.src-channel { margin: 0 0 8px; }
.src-card .kv { margin: 0 0 12px; }
.src-card .kv dd { word-break: break-all; }
.src-mgr { margin: 0; }

/* 1.22 — кабинет партнёра */
.kpi-accent { background: color-mix(in srgb, var(--blue-soft) 70%, var(--surface)); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); }
.kpi-accent .kpi-v { color: var(--blue-ink); }
.pr-chart .card-head { flex-wrap: wrap; gap: 10px; }
.pr-bars { width: 100%; height: auto; display: block; margin-top: 8px; }
.pr-axis { stroke: var(--line); stroke-width: 1; }
.pr-any { fill: color-mix(in srgb, var(--blue) 30%, var(--surface)); }
.pr-reg { fill: var(--blue); }
.pr-val { font: 600 11px var(--font); fill: var(--ink-2); }
.pr-lbl { font: 500 11px var(--font); fill: var(--ink-3); }
.pr-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 6px 0 0; color: var(--ink-2); }
.pr-legend span { display: inline-flex; align-items: center; white-space: nowrap; }
.pr-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.dot-any { background: color-mix(in srgb, var(--blue) 30%, var(--surface)); }
.dot-reg { background: var(--blue); }
.pr-cuts .card h2 { margin-bottom: 10px; }
.pr-cut { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pr-cut li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: .9rem; }
.pr-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pr-track svg { width: 100%; height: 8px; display: block; }
.pr-track rect { fill: var(--blue); }
.pr-cut b { font-variant-numeric: tabular-nums; min-width: 2.5em; text-align: right; }
.pr-act { white-space: nowrap; text-align: right; vertical-align: middle; }
.pr-act form { display: inline-block; margin: 0 0 0 4px; vertical-align: middle; }
.ptn-table td { vertical-align: middle; }
.pr-narrow { display: none; }
@media (max-width: 600px) { .pr-wide { display: none; } .pr-narrow { display: block; } .pr-act { text-align: left; } }
.pr-empty { display: flex; gap: 14px; align-items: flex-start; padding: 22px 4px 8px; }
.pr-empty > .ic { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); }
.pr-empty p { margin: 2px 0 0; max-width: 60ch; }
.pr-links { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pr-links .label { display: block; font-weight: 600; margin-bottom: 6px; }
.check-list { margin: 0 0 4px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--green-ink); font-weight: 700; }
.check-list.no li::before { content: "✕"; color: var(--red-ink); }
.partner-row.off { opacity: .66; }
@media (max-width: 560px) { .pr-cut li { grid-template-columns: minmax(0, 1fr) 70px auto; } }
.b-gold { background: color-mix(in srgb, var(--plate-yellow) 18%, var(--surface)); color: #7a5600; border-color: color-mix(in srgb, var(--plate-yellow) 45%, var(--line)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b-gold { color: #f5cf5c; } }
.pct-w { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; font-size: .86em; }
.pct-none { font-weight: 500; background: var(--surface-2); color: var(--ink-2); }
.str-card { display: grid; gap: 14px; }
.str-lifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.str-lift { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-soft); }
.str-lift.empty { opacity: .7; }
.str-n { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.str-v { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1.15; }
.str-v small { font-family: var(--font); font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.str-sum { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.str-sum > div { display: grid; gap: 1px; }
.str-sum strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.str-card .hint { margin: 0; }
@media (max-width: 520px) { .str-lifts { grid-template-columns: 1fr; } .str-lift { grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: baseline; } .str-v { grid-row: 1 / 3; grid-column: 2; } }

/* 1.22 — обратная связь и оценка */
.nps-card { margin-top: 4px; }
.nps-head { display: flex; align-items: flex-start; gap: 10px; }
.nps-head h2 { flex: 1; margin: 0 0 12px; font-size: 1.02rem; }
.nps-head form, .nps-head .icon-btn { flex: none; }
.nps-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.nps-b { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: 700 .95rem var(--font); color: var(--ink); cursor: pointer; transition: transform .08s, border-color .15s, background .15s; }
.nps-b:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.nps-b.nps-lo:hover { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.nps-b.nps-mid:hover { background: var(--yellow-soft); }
.nps-b.nps-hi:hover { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.nps-ends { display: flex; justify-content: space-between; margin-top: 6px; }
.nps-more { display: grid; gap: 10px; }
.nps-more h2 { margin: 0; font-size: 1.02rem; }
.nps-chip { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-weight: 800; }
.nps-chip.nps-lo { background: var(--red-soft); color: var(--red-ink); }
.nps-chip.nps-mid { background: var(--yellow-soft); color: #7a5600; }
.nps-chip.nps-hi { background: var(--green-soft); color: var(--green-ink); }
.fb-kinds { margin-bottom: 4px; }
.fb-kind { position: relative; }
.fb-kind input { position: absolute; opacity: 0; }
.fb-kind span { display: inline-block; padding: 7px 14px; cursor: pointer; }
.fb-kind input:checked + span { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; border-radius: 9px; }
.fb-kind input:focus-visible + span { outline: 2px solid var(--blue); }
.fb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fb-item { display: grid; gap: 8px; }
.fb-item p { margin: 0; white-space: pre-line; }
.fb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fb-answer { padding: 10px 12px; border-radius: var(--r-md); background: var(--blue-soft); }
.fb-answer p { margin-top: 2px; }
.fb-reply { display: grid; gap: 8px; }
@media (max-width: 520px) { .nps-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.fb-hint { margin: 8px 0 0; }
.fb-done { justify-self: start; }

/* 1.22 — соревнования */
.cmp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cmp-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .08s; }
.cmp-row:hover { border-color: var(--line-strong); color: var(--ink); }
.cmp-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cmp-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-date { flex: none; width: 52px; height: 52px; border-radius: 13px; display: grid; place-content: center; text-align: center; background: var(--blue-soft); color: var(--blue-ink); line-height: 1.05; }
.cmp-date b { font: 800 1.25rem var(--display); }
.cmp-date span { font-size: .72rem; text-transform: lowercase; }
.cmp-date.past { background: var(--surface-2); color: var(--ink-2); }
.cmp-date.big { width: 84px; height: 84px; border-radius: 18px; }
.cmp-date.big b { font-size: 2rem; }
.cmp-st { flex: none; }
.cmp-st.cmp-open { background: var(--green-soft); color: var(--green-ink); border-color: transparent; }
.cmp-st.cmp-closed { background: var(--yellow-soft); color: #7a5600; border-color: transparent; }
.cmp-st.cmp-done { background: var(--blue-soft); color: var(--blue-ink); border-color: transparent; }
.cmp-empty { display: flex; gap: 16px; align-items: flex-start; }
.cmp-empty h2 { margin: 0 0 8px; }
.cmp-empty-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--yellow-soft); color: #7a5600; }
.cmp-how { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.cmp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: none; }
.cmp-steps li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink-3); font-weight: 600; font-size: .9rem; }
.cmp-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .78rem; flex: none; }
.cmp-steps li.done { color: var(--green-ink); }
.cmp-steps li.done span { background: var(--green-soft); }
.cmp-steps li.on { color: var(--blue-ink); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); background: var(--blue-soft); }
.cmp-steps li.on span { background: var(--blue); color: var(--on-fill); }
.cmp-next { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-color: color-mix(in srgb, var(--blue) 25%, var(--line)); }
.cmp-next .grow { flex: 1 1 260px; }
.cmp-next p { margin: 2px 0 0; }
.cat-list { list-style: none; margin: 0 0 8px; padding: 0; }
.cat-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.cat-list li:first-child { border-top: 0; }
.cat-list .grow { flex: 1; min-width: 0; }
.cat-add > summary { cursor: pointer; font-weight: 600; color: var(--blue-ink); padding: 6px 0; list-style: none; }
.cat-add > summary::-webkit-details-marker { display: none; }
.cat-add[open] > summary { margin-bottom: 8px; }
.cat-add .form { padding-top: 4px; }
.cat-add:has(input[name="preset"]:not([value=""]):checked) .cat-one { display: none; }
.cmp-cat + .cmp-cat { margin-top: 16px; }
.cmp-cat h3 { margin: 0 0 8px; font-size: 1rem; }
.cmp-table td { vertical-align: middle; }
.cmp-table .cmp-in { width: 92px; min-height: 36px; padding: 6px 10px; }
.cmp-res { font-weight: 700; }
.cmp-act { text-align: right; white-space: nowrap; }
.es-applied { background: color-mix(in srgb, var(--yellow-soft) 55%, transparent); }
.es-rejected, .es-withdrawn { opacity: .55; }
.cmp-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.cmp-save .hint { flex: 1 1 220px; margin: 0; }
.cmp-share { display: grid; gap: 12px; }
.cmp-share h2 { margin: 0; }
.cmp-qr { display: flex; gap: 14px; align-items: center; }
.cmp-qr img { flex: none; width: 132px; height: 132px; border-radius: 12px; border: 1px solid var(--line-soft); background: #fff; }
.cmp-qr p { margin: 0 0 8px; }
.cmp-danger { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.medal { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 50%; font: 800 .9rem var(--display); background: var(--surface-2); color: var(--ink-2); }
.medal.m1 { background: linear-gradient(145deg, #ffe17a, var(--plate-yellow)); color: #5a4100; }
.medal.m2 { background: linear-gradient(145deg, #eef1f6, #b8c0cc); color: #39414d; }
.medal.m3 { background: linear-gradient(145deg, #f3c79c, #c98544); color: #4d2b0b; }
.medal.big { min-width: 44px; height: 44px; font-size: 1.1rem; }
.st-hero { display: flex; gap: 20px; align-items: flex-start; }
.st-main { flex: 1; min-width: 0; }
.st-main h1 { margin: 0 0 4px; }
.st-main p { margin: 2px 0; }
.st-main .actions { margin-top: 12px; }
.st-qr { flex: none; width: 132px; height: 132px; border-radius: 12px; background: #fff; border: 1px solid var(--line-soft); }
.st-cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 10px; }
.st-cat h3 { margin: 0 0 10px; font-size: 1rem; }
.st-cat h3 .muted { font-weight: 500; }
.st-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.st-rows li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.st-rows li:first-child { border-top: 0; }
.st-n { flex: 1; min-width: 0; display: grid; }
.st-n .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-r { font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-mine li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.st-mine .grow { flex: 1; min-width: 0; display: grid; }
.st-mine form { margin: 0; }
.ap-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ap-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; }
.ap-row.is-in { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.ap-who { flex: 1 1 220px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ap-who strong { width: 100%; }
.ap-pick { display: flex; gap: 8px; flex: 1 1 320px; }
.ap-pick select { flex: 1; min-width: 0; }
.ap-bw { width: 100px; flex: none; }
.ap-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.narrow-wide { max-width: 920px; }
@media (max-width: 720px) {
  .cmp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-hero { flex-wrap: wrap; }
  .st-qr { display: none; }
  .cmp-row { flex-wrap: wrap; }
  .cmp-row .cmp-main { flex: 1 1 calc(100% - 70px); }
  .cmp-act { text-align: left; }
  .cmp-table .cmp-in { width: 100%; }
}

/* 1.22 — рейтинг марафона */
.rt-card { display: grid; gap: 12px; }
.rt-card h2 { margin: 0; }
.rt-me { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 14px; border-radius: var(--r-md); background: var(--blue-soft); }
.rt-me-place, .rt-me-pts { display: grid; line-height: 1.1; }
.rt-me b { font: 800 1.6rem var(--display); color: var(--blue-ink); }
.rt-me span span { font-size: .8rem; color: var(--ink-2); }
.rt-gap { flex: 1 1 200px; }
.rt-gap.up { color: var(--green-ink); font-weight: 600; }
.rt-win { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--plate-yellow) 14%, var(--surface)); }
.rt-win .medal { min-width: 44px; height: 44px; font-size: 1.1rem; }
.rt-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rt-top li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.rt-top li.me { background: var(--surface-2); font-weight: 600; }
.rt-top b { font-variant-numeric: tabular-nums; }
.rt-more summary { cursor: pointer; color: var(--blue-ink); }
.rt-rules { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.rt-rules li { display: flex; gap: 10px; align-items: baseline; }
.rt-rules b { flex: none; min-width: 40px; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.rt-table td { vertical-align: middle; }
.rt-prize { background: color-mix(in srgb, var(--plate-yellow) 9%, transparent); }
.rt-finish { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.rt-finish .hint { flex: 1 1 240px; margin: 0; }
.cert-place { display: inline-block; padding: 2px 12px; border-radius: 999px; font-weight: 800; background: var(--plate-yellow); color: #3d2c00; }
.cert-place.m2 { background: #c9d0da; color: #2c333d; }
.cert-place.m3 { background: #d99a5e; color: #3a1f06; }

/* 1.22 — карточка рекорда */
.rs-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: start; }
.rs-fig, .rec-fig { margin: 0; }
.rs-fig img, .rec-fig img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 18px 50px -20px rgb(13 26 68 / .55); }
.rs-side { display: grid; gap: 14px; }
.rs-actions { display: grid; gap: 8px; }
.rs-actions .btn { justify-content: center; }
.rs-status { min-height: 1.2em; margin: 0; }
.rs-tips { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rec-page { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; }
.rec-side h1 { margin: 2px 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); }
.rec-coach { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.rec-coach .grow { display: grid; flex: 1; min-width: 0; }
.rec-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.rec-cta { padding: 16px; border-radius: var(--r-md); background: var(--blue-soft); }
.rec-cta p { margin: 0 0 12px; }
.test-share { display: inline; margin: 0; }
.test-share .btn { min-height: 30px; padding: 3px 10px; }
.test-share .btn .vk-logo { width: 20px; height: 20px; font-size: .58rem; }
@media (max-width: 820px) { .rs-grid, .rec-page { grid-template-columns: minmax(0, 1fr); } }

/* 1.22 — первые шаги ученика и счётчики на главной */
.fs-card { display: grid; gap: 12px; }
.fs-head { display: flex; align-items: center; gap: 14px; }
.fs-head > div { flex: 1; min-width: 0; }
.fs-head h2 { margin: 0; font-size: 1.05rem; }
.fs-head p { margin: 2px 0 0; }
.fs-head .fs-meter { width: 120px; flex: none; margin-top: 0; }
.fs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fs-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.fs-list li .grow { display: grid; gap: 1px; flex: 1; min-width: 0; }
.fs-list li.done { background: none; color: var(--ink-3); }
.fs-list li.done strong { font-weight: 500; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 50%, transparent); }
.fs-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; }
.fs-list li.done .fs-n { background: var(--green-soft); border-color: transparent; color: var(--green-ink); }
@media (max-width: 560px) { .fs-meter { display: none; } .fs-list li { flex-wrap: wrap; } .fs-list li .btn { margin-left: 40px; } }
.ab-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 22px 0 0; }
.ab-stats div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.ab-stats dd { margin: 0; font: 800 1.7rem/1.1 var(--display); color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.ab-stats dt { font-size: .86rem; color: var(--ink-2); }

/* 1.22 — клуб: команда, залы, счета */
.month-nav { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.month-nav strong { min-width: 9.5em; text-align: center; font-size: .95rem; }
.month-nav .icon-btn { text-decoration: none; font-size: 1.2rem; }
.month-nav .off { opacity: .3; }
.team-table td, .team-table th { vertical-align: middle; }
.team-table tfoot th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.tm-who { display: flex; align-items: center; gap: 10px; }
.tm-who > span:last-child { display: grid; }
.avatar.sm { width: 32px; height: 32px; font-size: .78rem; }
.rate-edit > summary { cursor: pointer; color: var(--blue-ink); list-style: none; }
.rate-edit > summary::-webkit-details-marker { display: none; }
.rate-edit[open] > summary { margin-bottom: 8px; }
.rate-form { min-width: 240px; gap: 8px; }
.tm-how { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.lead-trainer-form { display: flex; gap: 8px; }
.lead-trainer-form select { flex: 1; min-width: 0; }
.rm-board { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.rm-col { padding: 12px; border-radius: var(--r-md); background: var(--surface-2); }
.rm-col h3 { margin: 0 0 8px; font-size: .98rem; display: grid; }
.rm-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rm-slots li { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); }
.rm-slots .grow { display: grid; min-width: 0; }
.rm-t { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--blue-ink); font-size: .9rem; }
.rm-assign, .rm-list { list-style: none; margin: 0; padding: 0; }
.rm-assign li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.rm-assign li:first-child { border-top: 0; }
.rm-assign .grow { display: grid; flex: 1; min-width: 0; }
.rm-assign select { width: min(220px, 45%); }
.rm-list li { border-top: 1px solid var(--line-soft); }
.rm-list li:first-child { border-top: 0; }
.rm-list summary { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; }
.rm-list summary::-webkit-details-marker { display: none; }
.rm-list summary .grow { flex: 1; min-width: 0; }
.rm-list summary > .small:last-child { color: var(--blue-ink); }
.rm-list li.off { opacity: .6; }
.inv-cta { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.inv-cta:hover { border-color: var(--line-strong); color: var(--ink); }
.inv-cta .grow { display: grid; flex: 1; }
.inv-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); }
.inv-page { max-width: 900px; }
.inv-tools { margin-bottom: 14px; }
.inv-tools form { margin: 0; }
.inv-note { margin-bottom: 14px; }
.inv-doc { background: #fff; color: #111; padding: 40px 44px; border-radius: 6px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.inv-doc h1 { font: 700 1.3rem/1.3 var(--font); margin: 24px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #111; color: #111; }
.inv-doc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.inv-doc td, .inv-doc th { border: 1px solid #111; padding: 5px 8px; color: #111; background: none; text-transform: none; letter-spacing: 0; font-size: 13px; }
.inv-doc th { font-weight: 700; text-align: center; }
.inv-cap { font-size: 11px; color: #555; margin-top: 4px; }
.inv-parties { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0 0 14px; }
.inv-parties dt { font-weight: 400; }
.inv-parties dd { margin: 0; font-weight: 700; }
.inv-items td:nth-child(n+3) { text-align: right; white-space: nowrap; }
.inv-items td:first-child { text-align: center; width: 30px; }
.inv-total { display: grid; grid-template-columns: 1fr max-content; gap: 2px 14px; margin: 10px 0 14px; text-align: right; font-weight: 700; }
.inv-total dd { margin: 0; min-width: 110px; }
.inv-sign { display: flex; gap: 40px; margin-top: 40px; padding-top: 10px; border-top: 2px solid #111; }
.inv-sign > div { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 10px; flex: 1; }
.inv-sign.two > div { grid-template-columns: 1fr; gap: 4px; }
.inv-sign i { border-bottom: 1px solid #111; min-width: 140px; height: 24px; }
@media print { .inv-tools, .inv-note, .flashes { display: none !important; } .inv-doc { box-shadow: none; border: 0; padding: 0; } .inv-page { padding: 0; max-width: none; } }
@media (max-width: 640px) { .inv-doc { padding: 20px 16px; font-size: 13px; } .inv-sign { flex-direction: column; gap: 24px; } .rm-assign li { flex-wrap: wrap; } .rm-assign select { width: 100%; } }
.club-team { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.club-team li { display: flex; align-items: center; gap: 10px; }
.club-team li > span:last-child { display: grid; }
.org-hero { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.org-hero .grow { flex: 1 1 360px; }
.org-hero h1 { margin: 2px 0 8px; }
.org-about { color: var(--ink-2); }
.org-stats { display: grid; gap: 8px; margin: 0; min-width: 200px; }
.org-stats div { display: flex; flex-direction: column-reverse; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface-2); }
.org-stats dd { margin: 0; font: 800 1.5rem/1.1 var(--display); color: var(--blue-ink); }
.org-stats dt { font-size: .84rem; color: var(--ink-2); }
.org-clubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.org-club { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; height: 100%; }
.org-club:hover { border-color: var(--line-strong); color: var(--ink); }
.org-club .grow { display: grid; flex: 1; min-width: 0; }
.org-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.gto-list { display: grid; gap: 10px; }
.gto-row { display: grid; gap: 10px; }
.gto-who { display: grid; }
.gto-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.gto-tests { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gto-tests li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.gto-tests .grow { flex: 1; min-width: 0; }
.gto-center.on { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.cmp-next + .grid-2 { margin-top: 16px; }
.cat-list li { padding: 6px 0; min-height: 44px; }
.cat-list .icon-btn { width: 30px; height: 30px; }
.cat-list form { margin: 0; }
.cmp-share .ref-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cmp-table th:nth-child(3), .cmp-table th:nth-child(4) { width: 1%; white-space: nowrap; }
.cmp-act .btn + .btn { margin-left: 4px; }
.st-empty { margin: 12px 0 0; }
.inv-doc tr:last-child td, .inv-doc tr:last-child th { border-bottom: 1px solid #111; }
.inv-doc h1 { font-family: var(--font); font-weight: 800; }
.chips.section-sm + .org-clubs { margin-top: 12px; }
.ap-pick select { width: 100%; }
@media (max-width: 720px) {
  .ap-pick { flex: 1 1 100%; }
  .ap-bar { position: static; background: none; }
  table.stack.cmp-table tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding: 10px 12px; margin-bottom: 8px; }
  table.stack.cmp-table td { display: block; padding: 0; width: auto; }
  table.stack.cmp-table td::before { content: none; }
  table.stack.cmp-table td.cmp-place { grid-column: 1; grid-row: 1; text-align: left; color: var(--ink-3); }
  table.stack.cmp-table td[data-label="Спортсмен"] { grid-column: 2 / -1; grid-row: 1; }
  table.stack.cmp-table td[data-label="Свой вес"] { grid-column: 2; }
  table.stack.cmp-table td[data-label="Результат"], table.stack.cmp-table td[data-label="Статус"] { grid-column: 3; }
  table.stack.cmp-table td.cmp-act { grid-column: 4; }
}
.ap-pick .ap-bw { width: 96px; min-width: 0; }
.ap-pick { min-width: 0; }
@media (min-width: 721px) { .cmp-table td:nth-child(2) { min-width: 190px; } .cmp-table .badge { white-space: nowrap; } }

/* 1.22.2 — плотнее: соревнования */
.cmp-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 16px; margin-top: 12px; }
.cmp-dots { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex: none; }
.cmp-dots li { display: flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--ink-3); }
.cmp-dots li + li::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--line); margin-right: 2px; }
.cmp-dots li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; background: var(--surface-2); }
.cmp-dots li.done { color: var(--green-ink); }
.cmp-dots li.done span { background: var(--green-soft); }
.cmp-dots li.done + li::before { background: color-mix(in srgb, var(--green) 50%, var(--line)); }
.cmp-dots li.on { color: var(--blue-ink); }
.cmp-dots li.on span { background: var(--blue); color: var(--on-fill); }
.cmp-now { display: flex; align-items: center; gap: 12px; flex: 1 1 320px; min-width: 0; }
.cmp-now p { margin: 0; }
.cmp-now form { margin: 0; }
.cmp-next + .grid-2 { margin-top: 12px; }
.cat-group { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.cat-group:first-of-type { border-top: 0; padding-top: 0; }
.cat-disc { flex: none; width: 128px; font-weight: 700; font-size: .92rem; }
.cat-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.cat-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: .84rem; white-space: nowrap; }
.cat-chips li.has { background: var(--blue-soft); border-color: transparent; color: var(--blue-ink); }
.cat-chips li b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: var(--on-fill); font-size: .72rem; display: inline-grid; place-items: center; }
.cat-chips form { margin: 0; display: inline; }
.cat-chips button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 1rem; line-height: 1; }
.cat-chips button:hover { background: var(--red-soft); color: var(--red-ink); }
.cat-chips li:not(.has) { padding-right: 4px; }
.cat-add { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.cat-add .form { gap: 10px; }
.cat-row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cat-row-end { display: flex; gap: 8px; }
.cat-row-end .cat-title { flex: 1; min-width: 0; }
.cat-add:has(input[name="preset"]:not([value=""]):checked) .cat-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmp-share { gap: 10px; }
.cmp-share h2 { margin: 0 0 2px; font-size: 1rem; }
.cmp-share .cmp-qr { align-items: flex-start; }
.cmp-share .cmp-qr img { width: 96px; height: 96px; }
.cmp-share .cmp-qr p { margin: 0 0 8px; }
.cmp-links { display: flex; gap: 6px; flex-wrap: wrap; }
.cmp-table td, .cmp-table th { padding-top: 6px; padding-bottom: 6px; }
.cmp-table .cmp-in { min-height: 34px; }
.cmp-cat h3 { font-size: .95rem; }
@media (max-width: 720px) {
  .cat-group { flex-direction: column; gap: 6px; }
  .cat-disc { width: auto; }
  .cat-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-dots li { font-size: 0; gap: 0; }
  .cmp-dots li span { font-size: .72rem; }
  .cmp-dots li.on { font-size: .84rem; gap: 6px; }
}
/* 1.22.2 — заявка спортсменов одним списком */
.ap-card { padding: 0; overflow: hidden; }
.ap-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding: 9px 16px; background: var(--surface-2); font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ap-card .ap-list { margin: 0; gap: 0; }
.ap-card .ap-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line-soft); border-radius: 0; }
.ap-card .ap-row.is-in { background: color-mix(in srgb, var(--green-soft) 45%, transparent); }
.ap-card .ap-who { display: grid; gap: 1px; }
.ap-card .ap-who strong { width: auto; }
.ap-card .ap-pick select, .ap-card .ap-pick .ap-bw { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.ap-in { display: inline-flex; align-items: center; gap: 3px; color: var(--green-ink); font-weight: 600; }
.ic-xs { width: 13px; height: 13px; }
.ap-warn { color: #9a6700; }
.ap-bar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 -6px 20px -12px rgb(16 24 40 / .25); }
.ap-bar .small { flex: 1 1 260px; }
@media (max-width: 720px) {
  .ap-head { display: none; }
  .ap-card .ap-row { grid-template-columns: minmax(0, 1fr); }
  .ap-bar { position: sticky; bottom: 8px; }
}
/* 1.22.2 — кабинет партнёра плотнее */
.pr-cuts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.pr-cuts .card { padding: 14px 16px; }
.pr-cuts .card h2 { font-size: .95rem; margin-bottom: 8px; }
.pr-cut { gap: 6px; }
.pr-cut li { grid-template-columns: minmax(0, 1fr) 56px auto; font-size: .86rem; }
.pr-chart .card-head { margin-bottom: 0; }
.pr-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pr-inv-txt { flex: 1 1 360px; }
.pr-inv-txt h2 { margin: 0 0 2px; font-size: 1rem; }
.pr-inv-txt p { margin: 0; }
.pr-inv-btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* 1.22.3: свои кабинеты партнёра и пустой список */
.pr-own { border-color: color-mix(in srgb, var(--yellow) 45%, var(--line)); }
.pr-own-head h2 { margin: 0 0 4px; font-size: 1rem; }
.pr-own-head p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pr-own-list { list-style: none; margin: 10px 0 0; padding: 0; }
.pr-own-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.pr-own-ws { display: flex; flex-direction: column; min-width: 0; }
.pr-own-ws strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-own-list form { flex: none; margin: 0; }
.pr-steps { margin: 4px 0 0; padding-left: 20px; color: var(--ink-2); }
.pr-steps li + li { margin-top: 2px; }
@media (max-width: 520px) { .pr-own-list li { flex-direction: column; align-items: stretch; } .pr-own-list .btn { width: 100%; } }
.ptn-table td, .ptn-table th { padding-top: 8px; padding-bottom: 8px; }
.st-mine-box > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.st-mine-box > summary::-webkit-details-marker { display: none; }
.st-mine-box > summary .small { flex: 1; }
.st-mine-box[open] > summary { margin-bottom: 8px; }
.st-mine-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 20px; }
.st-mine-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-soft); min-height: 44px; }
.st-mine-list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-mine-list form { margin: 0; }
.st-hero { padding: 18px 20px; }
.st-cats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.st-cat { padding: 14px 16px; }
.st-rows li { padding: 5px 0; }
.pr-cut li { grid-template-columns: minmax(0, 1fr) 36px auto; gap: 8px; }
.pr-cuts + .hint { margin-top: 8px; }
.pr-cuts .pr-k { font-size: .84rem; }
/* 1.22.2 — залы: настройки прямо в колонке */
.rm-board { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.rm-col { padding: 10px 12px; display: grid; gap: 8px; align-content: start; }
.rm-edit > summary { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; list-style: none; }
.rm-edit > summary::-webkit-details-marker { display: none; }
.rm-edit > summary .grow { display: grid; flex: 1; min-width: 0; }
.rm-gear { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); }
.rm-edit > summary:hover .rm-gear, .rm-edit[open] .rm-gear { background: var(--surface); color: var(--blue-ink); }
.rm-form { margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--surface); gap: 8px; }
.rm-free { margin: 0; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line); text-align: center; }
.inline-form { display: inline; margin: 0; }
details.rm-edit > summary::before { display: none !important; }
.preset-row.sm { gap: 6px; }
.preset-row.sm .pick-pill span { height: 32px; min-width: 0; padding: 0 12px; font-size: .86rem; font-weight: 600; }
.pr-wide .pr-lbl { font-size: 14px; }
.pr-wide .pr-val { font-size: 14px; }
/* разрезы партнёра — вкладками, без лишней длины */
.pr-tab-in { position: absolute; opacity: 0; pointer-events: none; }
.pr-tab-bar { margin-bottom: 12px; }
.pr-tab-bar label { padding: 7px 14px; cursor: pointer; border-left: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.pr-tab-bar label:first-child { border-left: 0; }
.pr-tab-panel { display: none; }
#cut-dir:checked ~ .pr-p-dir, #cut-city:checked ~ .pr-p-city, #cut-age:checked ~ .pr-p-age, #cut-sex:checked ~ .pr-p-sex { display: block; }
#cut-dir:checked ~ .pr-tab-bar label[for="cut-dir"], #cut-city:checked ~ .pr-tab-bar label[for="cut-city"],
#cut-age:checked ~ .pr-tab-bar label[for="cut-age"], #cut-sex:checked ~ .pr-tab-bar label[for="cut-sex"] { background: var(--blue); color: var(--on-fill); }
.pr-tab-in:focus-visible ~ .pr-tab-bar { outline: 2px solid var(--blue); outline-offset: 2px; }
.pr-tabs .pr-cut { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px 28px; }
.pr-tabs .pr-cut li { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
.pr-tabs + .hint { margin-top: 8px; }
@media (max-width: 700px) {
  .ptn-table.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; }
  .ptn-table.stack td { display: inline; padding: 0; width: auto; }
  .ptn-table.stack td::before { content: none; }
  .ptn-table.stack td[data-label="Кабинет"] { grid-column: 1; }
  .ptn-table.stack td.pr-act { grid-column: 2; grid-row: 1 / span 4; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .ptn-table.stack td[data-label="Учеников"], .ptn-table.stack td[data-label="За 30 дней"], .ptn-table.stack td[data-label="Последнее"] { display: none; }
  .ptn-table.stack td.pr-act { grid-row: 1; flex-direction: row; align-items: center; }
}
.pr-mstat { display: none; }
@media (max-width: 700px) { .pr-mstat { display: inline; } }
@media (max-width: 700px) {
  .ptn-table.stack tr { grid-template-columns: minmax(0, 1fr); }
  .ptn-table.stack td.pr-act { grid-column: 1; grid-row: auto; justify-content: space-between; margin-top: 6px; }
  .ptn-table.stack td.pr-act form { margin: 0; }
}
@media (max-width: 899px) { .grid-main > .create-card.rm-create { order: 2; } }
@media (max-width: 640px) {
  .rm-assign li { flex-wrap: nowrap; }
  .rm-assign select { width: 46%; flex: none; min-height: 40px; }
  .org-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; min-width: 0; }
  .org-stats div { padding: 8px 10px; }
  .org-stats dd { font-size: 1.25rem; }
  .org-stats dt { font-size: .74rem; line-height: 1.2; }
  .org-hero { gap: 14px; padding: 16px; }
  .st-hero { gap: 12px; }
  .st-hero .cmp-date.big { width: 60px; height: 60px; border-radius: 14px; }
  .st-hero .cmp-date.big b { font-size: 1.4rem; }
  .st-main h1 { font-size: 1.35rem; }
  .st-main .actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .st-mine-box > summary { flex-wrap: wrap; }
  .st-mine-box > summary .small { flex: 1 1 100%; order: 3; }
  .st-mine-list .grow { white-space: normal; display: grid; }
}
.st-n { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.st-n > span:first-child { flex: none; }
.st-n .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-empty { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.st-echip { display: inline-block; margin: 0 2px; padding: 1px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink-3); font-size: .8rem; }
@media (max-width: 700px) {
  .team-table tfoot { display: none; }
  .team-table.stack tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; padding: 12px; }
  .team-table.stack td { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; text-align: left; font-size: .9rem; }
  .team-table.stack td::before { font-size: .72rem; }
  .team-table.stack td[data-label="Тренер"], .team-table.stack td[data-label="Ставка"] { grid-column: 1 / -1; }
  .team-table.stack td[data-label="Тренер"]::before, .team-table.stack td[data-label="Ставка"]::before { content: none; }
  .team-table.stack td[data-label="Ставка"] { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
}
.cmp-pend { white-space: nowrap; }
.cmp-pend .badge { margin-right: 6px; }
.cmp-pend .btn, .cmp-pend .icon-btn { vertical-align: middle; }
@media (max-width: 720px) { table.stack.cmp-table td.cmp-pend { grid-column: 3 / -1; display: flex; align-items: center; gap: 6px; } }
@media (max-width: 720px) { .cmp-pend .badge { display: none; } table.stack.cmp-table td.cmp-pend { justify-content: flex-end; } }

/* 1.22.3 — вкладки длинных страниц */
.tabs-bar { position: sticky; top: 0; z-index: 5; margin: 0 0 14px; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.tabs-bar-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs-bar-in::-webkit-scrollbar { display: none; }
.tabs-bar button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-2); font: 500 .93rem var(--font); cursor: pointer; white-space: nowrap; }
.tabs-bar button:hover { color: var(--ink); }
.tabs-bar button[aria-selected="true"] { color: var(--blue-ink); border-bottom-color: var(--blue); font-weight: 600; }
.tabs-bar button .n { min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .72rem; display: inline-grid; place-items: center; }
.tabs-bar button .n.warn { background: var(--red-soft); color: var(--red-ink); }
.tabs-on [data-panel] > .section:first-child, .tabs-on [data-panel] > section:first-child { margin-top: 0; }
[data-panel] { display: grid; gap: 14px; align-content: start; }
[data-panel][hidden] { display: none; }
@media (max-width: 900px) { .tabs-bar { top: 56px; margin-left: -14px; margin-right: -14px; padding: 0 6px; } }
.pg-stats { margin: 0; }
.pg-ci h2, .pg-ach h2 { font-size: 1.02rem; }
.ci-strip { display: grid; gap: 4px; overflow-x: auto; }
.ci-line { display: grid; grid-template-columns: 104px repeat(14, minmax(18px, 1fr)); gap: 4px; align-items: center; }
.ci-k { font-size: .8rem; color: var(--ink-3); }
.ci-dot { height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: .74rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.ci-days span:not(.ci-k) { text-align: center; font-size: .68rem; color: var(--ink-3); }
.ci-avg { margin: 8px 0 0; }
.pg-ach .badges { gap: 8px; }
@media (max-width: 560px) { .ci-line { grid-template-columns: 74px repeat(14, minmax(14px, 1fr)); gap: 3px; } .ci-dot { height: 22px; font-size: .66rem; border-radius: 5px; } }
.cc-main { min-width: 0; }
@media (min-width: 900px) {
  .cc-aside[hidden] { display: grid !important; }
  .tabs-bar .cc-about-tab { display: none !important; }
}
.more-list { margin-top: 4px; }
.more-list > summary { color: var(--blue-ink); font-weight: 600; padding: 6px 0; }
.more-list[open] > summary { margin-bottom: 4px; }
@media (max-width: 700px) {

  .page > nav.card-actions { display: flex !important; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding: 0 14px 2px; }
  .page > nav.card-actions::-webkit-scrollbar { display: none; }
  .page > nav.card-actions .btn { flex: none; width: auto; min-height: 38px; padding: 7px 14px; font-size: .9rem; white-space: nowrap; }
}
@media (max-width: 560px) {
  .str-lifts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px; }
  .str-lift { padding: 8px 10px; display: grid !important; grid-template-columns: 1fr !important; gap: 0; }
  .str-lift .str-v { font-size: 1.25rem; order: 0; justify-self: start; }
  .str-lift .str-n { font-size: .78rem; }
  .str-lift .str-s { font-size: .68rem; }
  .str-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
  .pg-ach .badges { grid-template-columns: 1fr; gap: 6px; }
  .pg-ach .badge-card { padding: 8px 10px; }
  .pg-ach .badge-card .small { display: none; }
  .ci-dot { height: 20px; }
}
@media (max-width: 560px) { .str-lift .str-v { grid-row: auto !important; grid-column: auto !important; } .str-lift .str-v small { font-size: .7rem; } }

/* 1.23 — мероприятия */
:root { --ev: #6a46d6; --ev-soft: #efeafd; --ev-ink: #4a2ba8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ev: #a68bff; --ev-soft: #2a2246; --ev-ink: #cbbcff; } }
.ev-kind { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ev-ink); }
.ev-live { color: var(--red-ink); font-weight: 700; }
.ev-meter { display: block; width: 100%; height: 6px; }
.ev-meter .bg { fill: var(--surface-2); }
.ev-meter .fg { fill: var(--green); }
.ev-meter.hot .fg { fill: var(--yellow); }
.ev-meter.full .fg { fill: var(--ev); }
.badge.ev-full { background: var(--ev-soft); color: var(--ev-ink); border-color: transparent; }

/* строка мероприятия: карточка, афиша, «ещё у организатора» */
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev-li { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color .15s; }
.ev-li:hover { border-color: var(--line-strong); }
.ev-li.is-mine { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.ev-li-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.ev-li-main:hover strong { color: var(--blue-ink); }
.ev-li .cmp-date { background: var(--ev-soft); color: var(--ev-ink); }
.ev-li-text { min-width: 0; display: grid; gap: 1px; }
.ev-li-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-li-text .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-li-side { flex: none; display: grid; justify-items: end; gap: 4px; }
.ev-li-price { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) {
  .ev-li { flex-wrap: wrap; padding: 10px; }
  .ev-li-text strong, .ev-li-text .small { white-space: normal; }
  .ev-li-side { width: 100%; display: flex; justify-content: space-between; align-items: center; padding-left: 64px; }
}
.ev-month { margin: 22px 0 8px; font-size: 1.05rem; }
.ev-month:first-of-type { margin-top: 4px; }
.ev-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 8px; }
.ev-filter .segmented { flex: 1 1 auto; overflow-x: auto; }
.ev-filter select { width: auto; min-height: 40px; }

/* публичная страница мероприятия */
.ev-reg { display: grid; gap: 12px; border-color: color-mix(in srgb, var(--ev) 30%, var(--line)); }
.ev-reg .form { gap: 12px; }
.ev-reg-seats { display: grid; gap: 6px; font-size: .9rem; }
.ev-mine { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r-md); background: var(--green-soft); color: var(--green-ink); }
.ev-mine p { margin: 2px 0 0; color: var(--ink-2); }
.ev-mine strong { color: var(--green-ink); }
.ev-mine-pending, .ev-mine-waitlist { background: var(--yellow-soft); }
.ev-mine-pending strong, .ev-mine-waitlist strong, .ev-mine-pending .ev-mine-ic, .ev-mine-waitlist .ev-mine-ic { color: var(--yellow-ink); }
.ev-mine-ic { flex: none; display: grid; }
.ev-cancel { justify-self: center; color: var(--ink-3); }
.ev-reg form:has(.ev-cancel) { text-align: center; }
.ev-note-f > summary { cursor: pointer; color: var(--blue-ink); list-style: none; }
.ev-note-f > summary::-webkit-details-marker { display: none; }
.ev-note-f[open] > summary { margin-bottom: 6px; }
.notice.error { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 30%, var(--line)); color: var(--red-ink); }
.notice.error::before { background: var(--red); color: #fff; }

/* кабинет организатора */
.ev-row .cmp-date { background: var(--ev-soft); color: var(--ev-ink); }
.ev-row .cmp-date.ev-draft { background: var(--surface-2); color: var(--ink-3); }
.ev-side { flex: none; display: flex; align-items: center; gap: 8px; }
.ev-count { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ev-count small { color: var(--ink-3); font-weight: 500; }
.ev-ph-open { background: var(--green-soft); color: var(--green-ink); border-color: transparent; }
.ev-ph-closed, .ev-ph-live { background: var(--yellow-soft); color: var(--yellow-ink); border-color: transparent; }
.ev-ph-cancelled { background: var(--red-soft); color: var(--red-ink); border-color: transparent; }
.ev-empty-ic { background: var(--ev-soft); color: var(--ev-ink); }
@media (max-width: 600px) { .ev-row { flex-wrap: wrap; } .ev-side { width: 100%; padding-left: 66px; } }
.ev-now { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; border-color: color-mix(in srgb, var(--ev) 30%, var(--line)); }
.ev-now .grow { flex: 1 1 280px; display: grid; gap: 6px; }
.ev-now p { margin: 0; }
.ev-now .ev-meter { max-width: 420px; }
.ev-now-draft { border-style: dashed; }
.ev-now-cancelled { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.ev-now-act form { margin: 0; }
.ev-tools { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.ev-group-h { margin: 14px 0 6px; font-size: .92rem; }
.ev-group-h:first-of-type { margin-top: 0; }
.ev-people { list-style: none; margin: 0; padding: 0; }
.ev-p { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.ev-p:first-child { border-top: 0; }
.ev-p .grow { flex: 1; min-width: 0; }
.ev-p .grow .small a { color: inherit; }
.ev-p-pending { background: linear-gradient(90deg, color-mix(in srgb, var(--yellow-soft) 70%, transparent), transparent); border-radius: 8px; padding-left: 6px; }
.ev-p-waitlist .avatar { background: var(--surface-2); color: var(--ink-3); }
.ev-p-attended .avatar { background: var(--green-soft); color: var(--green-ink); }
.ev-p-no_show { opacity: .7; }
.ev-p-cancelled, .ev-p-rejected { opacity: .6; }
.ev-p-act { flex: none; display: flex; gap: 4px; align-items: center; }
.ev-note { color: var(--ink-2); font-style: italic; }
.ev-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.ev-seg button { border: 0; background: var(--surface); padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--ink-2); min-height: 34px; }
.ev-seg button + button { border-left: 1px solid var(--line); }
.ev-seg button[aria-pressed="true"]:first-child { background: var(--green-soft); color: var(--green-ink); font-weight: 700; }
.ev-seg button[aria-pressed="true"]:last-child { background: var(--red-soft); color: var(--red-ink); font-weight: 700; }
.ev-gone { margin-top: 12px; }
.ev-gone > summary { cursor: pointer; }
.ev-more { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft); display: grid; gap: 2px; }
.inline-h { display: inline; font-size: 1.15rem; margin: 0; }
#about > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#about > summary::-webkit-details-marker { display: none; }
#about > summary::after { content: "Изменить"; margin-left: auto; font-size: .88rem; color: var(--blue-ink); font-weight: 600; }
#about[open] > summary::after { content: "Свернуть"; }
.ev-when { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.ev-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
@media (max-width: 600px) { .ev-when { grid-template-columns: 1fr 1fr; } .ev-when > .field:first-child { grid-column: 1 / -1; } .ev-grid3 { grid-template-columns: 1fr 1fr; } .ev-grid3 > .field:last-child { grid-column: 1 / -1; } }
.ev-flags { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev-url { display: block; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: .82rem; overflow-wrap: anywhere; }
.ev-dup { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.ev-dup .field { flex: 1 1 150px; margin: 0; }
.ev-danger > summary { cursor: pointer; color: var(--red-ink); }
[hidden].ev-offline, [hidden].ev-online { display: none !important; }

/* календарь недели: мероприятие */
.cal-ev.cal-event { background: var(--ev-soft); color: var(--ev-ink); border-left: 6px solid var(--ev); }
.cal-ev.cal-event.is-draft { border-left-style: dashed; opacity: .85; }
.cal-ev.cal-event .grp-n { color: var(--ev-ink); }
.cal-ev.cal-event .s { display: flex; align-items: center; gap: 4px; }
.cal-legend .lg-event::before { background: var(--ev-soft); border-left: 4px solid var(--ev); }
.tl-event > a { background: var(--ev-soft) !important; border-left-color: var(--ev) !important; }
.tl-event .tl-st { display: inline-flex; align-items: center; gap: 3px; color: var(--ev-ink); }

/* список на вход */
.ev-print h1 { margin: 12px 0 4px; }
.ev-print-t { width: 100%; border-collapse: collapse; margin-top: 12px; }
.ev-print-t th, .ev-print-t td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.ev-print-t th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.ev-print-t .n { width: 36px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ev-print-t .mark { width: 70px; text-align: center; }
.ev-print-t .box { display: inline-block; width: 18px; height: 18px; border: 1.5px solid var(--ink-2); border-radius: 4px; vertical-align: middle; }
.ev-print-t tr.blank td { height: 34px; }
@media print { .ev-print-t th, .ev-print-t td { border-color: #999; } }
.ev-p { padding: 7px 0; }
.ev-p .grow .small a { text-decoration: none; }
.ev-p .grow .small a:hover { text-decoration: underline; }
.cal-ev.cal-event:not(.short) .n { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#people > .card-head { flex-wrap: nowrap; align-items: center; }
#people > .card-head h2 { white-space: nowrap; }
.ev-tools { flex-wrap: nowrap; }
@media (max-width: 600px) { .ev-tools .btn { padding-left: 8px; padding-right: 8px; } .ev-tools .ev-tl { display: none; } }

/* публичная страница мероприятия — компактно: всё главное на первом экране */
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 900px) {
  .ev-layout { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "main reg" "more reg"; column-gap: 20px; }
  .ev-main { grid-area: main; } .ev-reg { grid-area: reg; position: sticky; top: 84px; } .ev-more-sec { grid-area: more; }
}
.ev-main { display: grid; gap: 14px; }
.ev-top { display: flex; gap: 14px; align-items: center; }
.ev-top .cmp-date { background: var(--ev-soft); color: var(--ev-ink); }
.ev-top .cmp-date.past { background: var(--surface-2); color: var(--ink-3); }
.ev-top-t { min-width: 0; }
.ev-top h1 { margin: 2px 0 0; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.18; }
.ev-facts { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 6px 18px; }
@media (min-width: 700px) { .ev-facts { grid-template-columns: 1fr 1fr; } }
.ev-facts li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; min-width: 0; }
.ev-facts li > .ic { flex: none; margin-top: 2px; color: var(--ev-ink); }
.ev-desc { margin: 0; }
.ev-desc > summary { cursor: pointer; list-style: none; color: var(--ink-2); line-height: 1.5; }
.ev-desc > summary::-webkit-details-marker { display: none; }
.ev-desc-more { color: var(--blue-ink); font-weight: 600; white-space: nowrap; }
.ev-desc[open] > summary .ev-desc-prev { display: none; }
.ev-desc[open] > summary .ev-desc-more { display: none; }
.ev-desc .prose > :first-child, .prose.ev-desc > :first-child { margin-top: 0; }
.ev-desc .prose > :last-child, .prose.ev-desc > :last-child { margin-bottom: 0; }
.ev-orgline { display: flex; gap: 8px; align-items: center; margin: 0; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--ink-2); }
.avatar.xs { width: 26px; height: 26px; font-size: .68rem; }
.ev-reg { gap: 10px; }
.ev-reg .form { gap: 10px; }
.ev-reg .field { margin: 0; }
.ev-reg-row { display: flex; gap: 8px; align-items: flex-end; }
.ev-reg-row .grow { flex: 1; min-width: 0; }
.ev-seats-f { flex: none; width: 76px; }
.ev-note-f input { width: 100%; }
.ev-login { margin: 0; text-align: center; }
.ev-share-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.ev-sh { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: inherit; font-size: .76rem; text-decoration: none; cursor: pointer; }
.ev-sh:hover { background: var(--surface-2); color: var(--ink); }
.ev-sh b { font-size: .8rem; line-height: 18px; color: var(--vk); }
.ev-more-h { font-size: .95rem; margin: 4px 0 8px; display: flex; gap: 8px; align-items: baseline; }
.ev-mini { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.ev-mini li + li { border-top: 1px solid var(--line-soft); }
.ev-mini a { display: flex; gap: 12px; align-items: baseline; padding: 9px 14px; color: var(--ink); text-decoration: none; }
.ev-mini a:hover { background: var(--surface-2); }
.ev-mini-d { flex: none; width: 52px; font-weight: 700; color: var(--ev-ink); font-size: .85rem; }
.ev-mini-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-mini-p { flex: none; font-size: .85rem; color: var(--ink-3); }
@media (max-width: 520px) {
  .ev-page { padding-top: 12px; }
  .ev-main { gap: 12px; }
  .ev-top .cmp-date { width: 46px; height: 46px; border-radius: 12px; }
  .ev-top .cmp-date b { font-size: 1.1rem; }
  .ev-top { align-items: flex-start; }
  .ev-top h1 { font-size: 1.2rem; }
}
.ev-desc > summary::before, .ev-note-f > summary::before { display: none !important; }
.ev-note-f > summary { font-weight: 500; }
.bk-card h3 a { color: inherit; text-decoration: none; }
.bk-card h3 a:hover { color: var(--blue-ink); }
/* 1.23.1: группа участников мероприятия */
.ev-groupset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px 16px; margin: 0; display: grid; gap: 10px; background: color-mix(in srgb, var(--ev-soft) 45%, var(--surface)); }
.ev-groupset legend { padding: 0 6px; font-weight: 700; }
.ev-groupset .hint { margin: 0; }
.ev-groupset .field { margin: 0; }
.ev-newgroup[hidden] { display: none; }
.ev-groupcard { display: grid; gap: 12px; border-color: color-mix(in srgb, var(--ev) 25%, var(--line)); }
.ev-groupcard .card-head { margin: 0; }
.ev-groupcard h2 { margin: 0; }
.ev-gname { display: flex; gap: 10px; align-items: center; margin: 0; }
.ev-gdot { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ev-soft); color: var(--ev-ink); }
.ev-gmiss { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--yellow-soft); margin: 0; }
.ev-gacts { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-gform > summary { cursor: pointer; color: var(--blue-ink); font-weight: 600; }
.ev-gform[open] > summary { margin-bottom: 8px; }
.ev-gform .form { gap: 10px; }
.badge.ev-ingroup { background: var(--ev-soft); color: var(--ev-ink); border-color: transparent; }
.ev-gnote { margin: -4px 0 0; }
.ev-dup .preset-row { margin: 0; }
.ev-when-pick[hidden] { display: none; }
.ev-when-pick .preset-row { margin-top: 6px; }
.ev-join { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--ev-soft); margin: 0; }
.ev-join p { margin: 0; }
.ev-gconsent { background: var(--surface-2); }

/* Список видео в материале */
.vlist-rows { display: grid; gap: 10px; margin: 8px 0; }
.vrow { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.vrow-fields { flex: 1; min-width: 0; width: 100%; display: grid; gap: 8px; }
.vrow-f { display: grid; gap: 4px; }
.vrow-l { font-size: .82rem; color: var(--muted); }
.vrow-opt { display: inline-block; font-style: normal; font-size: .72rem; line-height: 1.5; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); vertical-align: 1px; }
.vrow input { width: 100%; }
.vrow-act { display: flex; gap: 4px; flex: none; }
.kv-title { margin: 18px 0 8px; font-size: 1.05rem; }
@media (max-width: 560px) { .vrow { flex-direction: column; align-items: stretch; } .vrow-act { align-self: flex-end; } }
