@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap; src: url(/fonts/montserrat-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap; src: url(/fonts/montserrat-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Экраны сервиса поверх ui.css: оболочка, редактор, пульт занятия, слайды, телефон. Цвета только из токенов ui.css. */
html { -webkit-text-size-adjust: 100%; }
h1, h2, h3 { letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
.num, .mono { font-family: var(--fontStack-monospace); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--fgColor-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- оболочка ведущего ---------- */
.topbar .grow { flex: 1; }
.empty { text-align: center; padding: 64px 24px; }
.empty h2 { font-size: 20px; }
.toast.error { background: var(--bgColor-danger-emphasis); }

/* редактор */
.editor { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.editor nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; }
.editor nav button:hover { background: var(--bgColor-neutral-muted); }
.editor nav button[aria-current=true] { background: var(--bgColor-accent-muted); color: var(--fgColor-accent); font-weight: 600; }
.editor h2 { font-size: 18px; margin: 0 0 4px; }
.editor .hint { margin: 0 0 20px; color: var(--fgColor-muted); font-size: 14px; max-width: 60ch; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.field .help { color: var(--fgColor-muted); font-size: 13px; margin-top: 4px; }
.grid-fields { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.item { padding: 16px; border-bottom: 1px solid var(--borderColor-muted); }
.item:last-child { border-bottom: 0; }
.save-state.err { color: var(--fgColor-danger); }
@media (max-width: 860px) {
  .editor { grid-template-columns: 1fr; }
  .editor nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* результаты */
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid td { padding: 8px 12px; border-bottom: 1px solid var(--borderColor-muted); }
table.grid td.r, table.grid th.r { text-align: right; }
table.grid select { width: auto; min-height: 30px; padding: 2px 6px; }

/* подключение */
.qr { display: inline-block; padding: 14px; border: 1px solid var(--borderColor-default); border-radius: var(--r-ctl); background: #fff; }
.qr svg { display: block; width: 220px; height: 220px; }

/* ---------- телефон ---------- */
.phone { max-width: 560px; margin: 0 auto; padding: 20px 16px 120px; }
.block { padding: 16px 0; border-top: 1px solid var(--borderColor-default); }
input[type=range] { accent-color: var(--fgColor-accent); height: 36px; width: 100%; }
.cr { font: 600 14px var(--fontStack-monospace); padding: 1px 6px; border-radius: var(--r-ctl); }
.cr.ok { background: var(--bgColor-success-muted); color: var(--fgColor-success); }
.cr.bad { background: var(--bgColor-danger-muted); color: var(--fgColor-danger); }
.wbar { height: 6px; background: var(--bgColor-neutral-muted); border-radius: var(--r-bar); overflow: hidden; }
.wrow { margin: 10px 0; font-size: 14px; }
.wrow .l { display: flex; justify-content: space-between; margin-bottom: 4px; }

/* ---------- сцена показа (масштабируется по ширине контейнера) ---------- */
.stage-frame { container-type: inline-size; background: var(--bgColor-default); }
.stage h2 { font-size: 1.9em; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
.stage h3 { font-size: 1.15em; font-weight: 600; margin: 0 0 .4em; }
.stage .lead { font-size: 1.25em; color: var(--fgColor-muted); max-width: 40em; margin: 0 0 1.4em; }
.stage .cols { display: grid; gap: 4em; grid-template-columns: 1.4fr 1fr; align-items: start; }
.stage .cols.even { grid-template-columns: 1fr 1fr; }
.stage .cols.three { grid-template-columns: repeat(3, 1fr); gap: 3em; }
.stage .big { font: 600 7em/1 var(--fontStack-monospace); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stage ol.points { list-style: none; counter-reset: p; padding: 0; margin: 1.6em 0 0; max-width: 40em; }
.stage ol.points li { counter-increment: p; padding: .7em 0 .7em 2.4em; border-top: 1px solid var(--borderColor-default); position: relative; font-size: 1.45em; line-height: 1.35; }
.stage table { width: 100%; border-collapse: collapse; font-size: 1em; }
.stage th { text-align: left; font-weight: 500; color: var(--fgColor-muted); font-size: .85em; padding: .5em .8em .5em 0; border-bottom: 1px solid var(--borderColor-default); }
.stage td { padding: .65em .8em .65em 0; border-bottom: 1px solid var(--borderColor-muted); vertical-align: middle; }
.stage .r { text-align: right; }
.stage .num { font-family: var(--fontStack-monospace); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage .tag.ok { background: var(--bgColor-success-muted); color: var(--fgColor-success); }
.stage .tag.bad { background: var(--bgColor-danger-muted); color: var(--fgColor-danger); }
.stage .arg { padding: .9em 0; border-top: 1px solid var(--borderColor-default); font-size: 1.15em; }
.stage .arg .who { font-size: .75em; color: var(--fgColor-muted); display: block; margin-bottom: .2em; }
.stage .meter { height: .45em; background: var(--bgColor-neutral-muted); border-radius: 1em; overflow: hidden; }
.stage .meter > i { display: block; height: 100%; background: var(--fgColor-accent); }
.stage .dist { display: flex; align-items: flex-end; gap: .15em; height: 2em; }
.stage .dist i { display: block; width: .6em; background: var(--fgColor-accent); border-radius: .1em .1em 0 0; min-height: .1em; }
.stage .dist i.z { background: var(--bgColor-neutral-muted); }
.stage .timer { position: absolute; top: 1.4em; right: 2em; font: 600 2.2em var(--fontStack-monospace); font-variant-numeric: tabular-nums; padding: .1em .5em; border-radius: .3em; background: var(--bgColor-muted); border: 1px solid var(--borderColor-default); }
.stage .timer.low { color: var(--fgColor-danger); border-color: var(--borderColor-danger-muted); background: var(--bgColor-danger-muted); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* экран проектора */
.screen-page { min-height: 100dvh; }
.screen-page .stage-frame { min-height: 100dvh; }

/* пульт показа */
.present { display: grid; grid-template-columns: 1fr 340px; height: calc(100dvh - 56px - 64px); }
.present .stage-wrap { overflow: auto; border-right: 1px solid var(--borderColor-default); }
.present aside h3:first-child { margin-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li button { width: 100%; text-align: left; background: none; border: 0; padding: 6px 10px; border-radius: var(--r-ctl); font: inherit; font-size: 14px; color: var(--fgColor-muted); cursor: pointer; }
.steps li button:hover { background: var(--bgColor-neutral-muted); }
.steps li.done button { color: var(--fgColor-default); }
.steps li.cur button { background: var(--bgColor-accent-muted); color: var(--fgColor-accent); font-weight: 600; }
.pbar .cur { text-align: center; }
.pbar .cur span { font-size: 13px; color: var(--fgColor-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.arg-pick { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--borderColor-muted); font-size: 13px; align-items: flex-start; }
.arg-pick input { margin-top: 3px; }
@media (max-width: 960px) {
  .present { grid-template-columns: 1fr; height: auto; }
  .present aside { border-top: 1px solid var(--borderColor-default); }
}

/* Один акцентный цвет: главные кнопки тоже акцентные (синие), зелёный только для смысла "успех" */
.btn-primary:disabled { opacity: .5; }
.stage h1, .stage h2 { overflow-wrap: break-word; }

/* плотные этапы: таблицы и графики, чтобы всё помещалось на одном экране проектора */
.stage.dense h1 { font-size: 2.6em; margin-bottom: .5em; }
.stage.dense .lead { font-size: 1.1em; margin-bottom: 1em; }
.stage .tag { display: inline-block; padding: .05em .55em; border-radius: 2em; font-size: .72em; font-weight: 600; background: var(--bgColor-neutral-muted); white-space: nowrap; }

/* колода в редакторе */

/* QR и код на каждом экране показа */
.join-chip .qr { padding: .4em; border-radius: .3em; }
.join-chip .qr svg { width: 5.2em; height: 5.2em; }
.join-chip .code { font-size: 1.6em; font-weight: 600; letter-spacing: .12em; }
.present .steps li.slide button { padding-left: 22px; font-size: 13px; }
.present .stage-frame { height: 100%; }

/* проверка перед показом */
.pf-backdrop { position: fixed; inset: 0; background: rgb(24 24 27 / .5); z-index: var(--z-dialog); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pf-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--borderColor-muted); }
.fs-hint { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: var(--bgColor-emphasis); color: var(--fgColor-onEmphasis); padding: 8px 14px; border-radius: var(--r-ctl); font-size: 15px; z-index: var(--z-dialog); transition: opacity .6s; }
.editor nav button { text-align: left; background: none; border: 0; padding: 8px 12px; border-radius: var(--r-ctl); color: var(--fgColor-default); cursor: pointer; font: inherit; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.pbar .btn-large { min-width: 120px; }

/* =====================================================================
   Темы оформления (все светлые) и макеты слайдов
   ===================================================================== */
.stage-rel .meter > i, .stage .dist i, .wbar > i { background: var(--ac); }
.stage .tag.sel { background: var(--ac-soft); color: var(--ac-ink); }
.stage ol.points li::before { content: counter(p); position: absolute; left: 0; top: .78em; font: 600 .62em var(--fontStack-monospace); color: var(--ac); }
.stage .qr svg { width: 17em; height: 17em; }
.stage h1 { font-size: 3.4em; font-weight: 600; line-height: 1.08; margin: 0 0 .35em; max-width: 16em; letter-spacing: -0.035em; }
.sl-join { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4em; align-items: center; min-height: 62vh; }
.sl-join h1 { font-size: 3.6em; }
.sl-join .mono-url { font-family: var(--fontStack-monospace); font-weight: 600; word-break: break-all; margin-bottom: .2em; }
.sl-join .code-big { color: var(--ac); letter-spacing: .12em; font-size: 1.3em; }
.sl-join .sl-qr { text-align: center; }
.sl-cover { display: grid; grid-template-columns: 1fr; gap: 3em; align-items: center; min-height: 60vh; }
.sl-cover.with-img { grid-template-columns: 1.1fr 1fr; }
.sl-cover:not(.with-img) { grid-template-columns: 1fr 9em; }
.sl-cover h1 { font-size: 5em; line-height: 1.02; }
.sl-img { display: block; max-width: 100%; border-radius: var(--r-ctl); }
.cover-img { width: 100%; max-height: 30em; object-fit: cover; }
.stage .lead strong, .stage b { color: inherit; }
.sl-statement.quote blockquote { font-weight: 500; }
.sl-statement .cap { margin: 1.1em 0 0 1.6em; font-size: 1.3em; color: var(--fgColor-muted); }
.sl-figure { margin: 0; }
.sl-figure img { max-height: 28em; width: auto; max-width: 100%; border-radius: var(--r-ctl); }
.sl-figure figcaption { margin-top: .8em; color: var(--fgColor-muted); font-size: 1.2em; }
.sl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4em; align-items: center; }
.sl-split.rev > :first-child { order: 2; }
.sl-split.no-img { grid-template-columns: 1fr; }
.side-img { width: 100%; max-height: 28em; object-fit: cover; }
.num-lab { margin-top: .4em; font-size: 1.3em; color: var(--fgColor-muted); }
.sl-steps li { display: flex; gap: 1.2em; align-items: center; padding: .75em 0; border-top: 1px solid var(--borderColor-default); font-size: 1.45em; line-height: 1.35; }
.sl-table { width: 100%; border-collapse: collapse; font-size: 1.35em; margin-top: 1em; }
.sl-table td { padding: .6em .8em .6em 0; border-bottom: 1px solid var(--borderColor-muted); }
.sl-wait { text-align: left; margin-top: 1em; }
.sl-wait .big { color: var(--ac); }
.sl-foot { margin-top: 1.4em; font-size: 1.05em; }
.sl-expl { background: var(--ac-soft); color: var(--ac-ink); border-radius: var(--r-ctl); padding: .8em 1.1em; font-size: 1.25em; max-width: 36em; }
.sl-bars { margin-top: 1.4em; }
.bar-row { display: grid; grid-template-columns: minmax(10em, 20em) 1fr 7em; gap: 1.1em; align-items: center; margin: .8em 0; font-size: 1.3em; }
.bar-track { height: 1.5em; background: var(--bgColor-neutral-muted); border-radius: var(--r-ctl); overflow: hidden; }
.bar-track > i { display: block; height: 100%; background: var(--ac); border-radius: var(--r-ctl); }
.bar-val { text-align: right; white-space: nowrap; }
.bar-row.is-correct .bar-lab { font-weight: 600; }
.bar-row.is-wrong { opacity: .6; }
.sl-scale { display: grid; grid-template-columns: 12em 1fr; gap: 3em; align-items: end; margin-top: 1.4em; }
.scale-hist { display: flex; align-items: flex-end; gap: .7em; height: 15em; }
.hist-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; text-align: center; }
.hist-n { color: var(--fgColor-muted); min-height: 1.4em; }
.hist-v { margin-top: .5em; font-weight: 600; font-size: 1.2em; }
.sl-cloud { display: flex; flex-wrap: wrap; gap: .3em 1.1em; justify-content: center; align-items: center; min-height: 18em; margin-top: 1.4em; }
.cloud-w { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.cloud-w.ac { color: var(--ac); }
.cloud-w.in { color: var(--fgColor-default); }
.cloud-w.mu { color: var(--fgColor-muted); }
.sl-feed { columns: 3 17em; column-gap: 1em; margin-top: 1.4em; }
.sl-rank { list-style: none; padding: 0; margin: 1.4em 0 0; }
.sl-rank li { display: grid; grid-template-columns: 2em minmax(8em, 18em) 1fr 3em; gap: 1em; align-items: center; padding: .55em 0; font-size: 1.3em; border-top: 1px solid var(--borderColor-muted); }
.rank-n { font: 600 1em var(--fontStack-monospace); color: var(--ac); }
.rank-track { height: 1em; background: var(--bgColor-neutral-muted); border-radius: var(--r-ctl); overflow: hidden; }
.rank-track > i { display: block; height: 100%; background: var(--ac); border-radius: var(--r-ctl); }
.rank-val { text-align: right; }
.round-head { display: flex; align-items: center; gap: 2em; margin-bottom: 1.4em; }
.stage table.plain { width: 100%; }
.stage table.plain.big-rows td { padding: .8em .8em .8em 0; font-size: 1.1em; }

/* =====================================================================
   Редактор слайдов: плёнка, предпросмотр, форма
   ===================================================================== */
.ed-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
/* у ленты своя прокрутка: справа оставлено место под полосу, чтобы она не ложилась на карточки, а рамка выбранного слайда не обрезалась */
.filmstrip { position: sticky; top: 72px; max-height: calc(100dvh - 96px); overflow-y: auto; overflow-x: hidden; padding: 3px 16px 3px 3px; margin: -3px 0 -3px -3px; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #c9c9cf transparent; }
.filmstrip::-webkit-scrollbar { width: 8px; }
.filmstrip::-webkit-scrollbar-thumb { background: #c9c9cf; border-radius: var(--r-pill); }
.thumb:hover { border-color: var(--borderColor-emphasis); }
.thumb.dragging { opacity: .4; }
.thumb.over { border-color: var(--fgColor-accent); border-style: dashed; }
.thumb-view { container-type: inline-size; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-bar); background: #fff; border: 1px solid var(--borderColor-muted); pointer-events: none; }
.thumb-view .stage-rel { min-height: 0; }
.thumb-view .stage { font-size: 1.55cqw; padding: 3.2em 4em; min-height: 0; }
.thumb-view .join-chip, .thumb-view .timer { display: none; }
.thumb-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; margin-top: 5px; color: var(--fgColor-muted); }
.ed-preview .stage-rel { min-height: 0; height: 100%; }
.ed-preview .stage { font-size: 1.55cqw; padding: 3.4em 4.2em; min-height: 0; }
.ed-preview .join-chip { font-size: 1.2cqw; }
.ed-form h2 { font-size: 16px; margin: 0 0 12px; }
.img-field { border: 1px dashed var(--borderColor-default); border-radius: var(--r-ctl); padding: 10px; }
.img-field img { max-width: 100%; max-height: 120px; border-radius: var(--r-bar); display: block; margin-bottom: 8px; }
.theme-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: var(--r-ctl); border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--fgColor-default); box-shadow: 0 0 0 2px var(--bgColor-default) inset; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.gal-card { text-align: left; border: 1px solid var(--borderColor-default); border-radius: var(--r-ctl); padding: 8px; background: var(--bgColor-default); cursor: pointer; font: inherit; }
.gal-card:hover { border-color: var(--fgColor-accent); }
.gal-card b { display: block; margin-top: 6px; font-size: 14px; }
.gal-card span { font-size: 13px; color: var(--fgColor-muted); }
dialog.wide { width: min(860px, calc(100vw - 32px)); max-height: 88dvh; overflow: auto; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 14px 0; }
.tpl-card { text-align: left; border: 1px solid var(--borderColor-default); border-radius: var(--r-ctl); padding: 12px; cursor: pointer; background: var(--bgColor-default); font: inherit; }
.tpl-card b { display: block; margin-bottom: 4px; }
/* среднее окно: форма идёт под предпросмотром в той же колонке, лента слайдов слева на всю высоту и ничего не перекрывает */
@media (max-width: 1100px) {
  .ed-wrap { grid-template-columns: 200px minmax(0, 1fr); }
  .ed-form { grid-column: 2; }
  .filmstrip { grid-row: 1 / span 2; }
}
@media (max-width: 760px) {
  .ed-wrap { grid-template-columns: 1fr; }
  .ed-form { grid-column: 1; }
  .filmstrip { grid-row: auto; }
  .filmstrip { position: static; max-height: none; display: flex; gap: 8px; overflow-x: auto; padding: 0; margin: 0; }
  .thumb { min-width: 180px; }
}

/* адаптация экрана под слайды: на проекторе без внутренних отступов в 100dvh */

/* телефон: ответы на вопросы */
.opts { display: grid; gap: 8px; margin: 12px 0; }
.opt { text-align: left; padding: 14px 16px; border: 1px solid var(--borderColor-default); border-radius: var(--r-ctl); background: var(--bgColor-default); font: inherit; font-size: 16px; cursor: pointer; color: var(--fgColor-default); }
.opt:disabled { cursor: default; opacity: .8; }

/* миниатюры и предпросмотр: высота определяется содержимым, а не окном браузера */
.thumb-view .sl-join, .thumb-view .sl-cover, .thumb-view .sl-statement, .thumb-view .sl-wait, .ed-preview .sl-join, .ed-preview .sl-cover, .ed-preview .sl-statement, .ed-preview .sl-wait { min-height: 0; }
.thumb-view .stage, .ed-preview .stage { padding-top: 2.6em; padding-bottom: 2em; }
.thumb-view .sl-statement blockquote, .ed-preview .sl-statement blockquote { font-size: 3em; }
.sl-join .big { font-size: 5em; }
.ed-preview .sl-join, .thumb-view .sl-join { align-items: start; }
.scale-avg .big { font-size: 6.5em; color: var(--ac); font-family: var(--fontStack-sansSerif); letter-spacing: -0.04em; }
.scale-ends { margin: .6em 0 0 15em; display: flex; justify-content: space-between; font-size: 1.1em; }
.stage.dense { padding-top: 2.6em; font-size: clamp(11px, 1.3cqw, 24px); }

/* =====================================================================
   Обновление вида: мягкие градиенты, движение, адаптив
   ===================================================================== */
/* Цвета темы. Сначала значения по умолчанию, ниже темы: порядок важен, иначе умолчание перекрывает выбранный цвет. */
.stage-rel { display: flex; flex-direction: column; min-height: 100%; position: relative; --ac: var(--accent); --ac-soft: var(--accent-soft); --ac-ink: #1b3a9c; --ac-2: #6f8ff0; background: #fff; }
.stage-rel.theme-classic { --ac: var(--accent); --ac-soft: var(--accent-soft); --ac-ink: #1b3a9c; --ac-2: #6f8ff0; }
.stage-rel.theme-emerald { --ac: #1a7f4b; --ac-soft: #dafbe1; --ac-ink: #116329; --ac-2: #4ac26b; }
.stage-rel.theme-terracotta { --ac: #bc4c00; --ac-soft: #fff1e5; --ac-ink: #953800; --ac-2: #fb8f44; }
.stage-rel.theme-violet { --ac: #8250df; --ac-soft: #fbefff; --ac-ink: #6639ba; --ac-2: #c297ff; }
.stage-rel.theme-graphite { --ac: #24292f; --ac-soft: #eaeef2; --ac-ink: #24292f; --ac-2: #6e7781; }

/* --- градиенты на сцене --- */
.stage-rel.bg-soft { background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--ac-soft) 92%, transparent) 0%, transparent 62%), radial-gradient(55% 70% at 0% 100%, color-mix(in srgb, var(--ac-soft) 55%, transparent) 0%, transparent 60%), #fff; }
.sl-cover-block { border-radius: var(--r-ctl); align-self: stretch; min-height: 18em; background: linear-gradient(165deg, var(--ac) 0%, var(--ac-2) 100%); }
.bar-track > i, .rank-track > i, .stage-rel .meter > i { background: linear-gradient(90deg, var(--ac) 0%, var(--ac-2) 100%); }
.hist-bar { border-radius: var(--r-bar) var(--r-bar) 0 0; min-height: .2em; background: linear-gradient(180deg, var(--ac-2) 0%, var(--ac) 100%); }
.bar-row.is-correct .bar-track > i { background: linear-gradient(90deg, #1a7f37, #4ac26b); }
.step-n { flex: none; width: 1.9em; height: 1.9em; border-radius: var(--r-ctl); color: var(--ac-ink); font: 600 .9em var(--fontStack-monospace); display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--ac-soft), #fff); border: 1px solid color-mix(in srgb, var(--ac) 18%, transparent); }
.sl-table th { text-align: left; color: var(--ac-ink); font-weight: 600; padding: .5em .8em .5em 0; border-bottom: .1em solid var(--ac); border-image: linear-gradient(90deg, var(--ac), var(--ac-2)) 1; }
.join-chip { align-self: flex-end; margin: 0 1.6em 1.4em; display: flex; align-items: center; gap: .9em; padding: .6em .9em; background: var(--bgColor-default); border: 1px solid var(--borderColor-default); border-radius: .5em; font-size: clamp(11px, 1.1cqw, 18px); box-shadow: 0 .4em 1.6em rgb(24 24 27 / .08); }
.stage .qr { padding: 1em; box-shadow: 0 1em 3em rgb(24 24 27 / .10); border-radius: var(--r-card); }

/* --- градиенты в кабинете и на телефоне --- */
.screen-page, body:has(.present) { background: #fff; }
.btn-primary { background-color: var(--bgColor-accent-emphasis); color: var(--fgColor-onEmphasis); box-shadow: none; background-image: linear-gradient(180deg, var(--accent) 0%, var(--accent) 100%); border-color: var(--accent); }
.wbar > i { display: block; height: 100%; border-radius: var(--r-bar); background: linear-gradient(90deg, var(--ui-ac), var(--ui-ac-2)); }
.phone::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--ui-ac), var(--ui-ac-2)); z-index: var(--z-menu); }
.ed-preview { container-type: inline-size; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--borderColor-default); border-radius: var(--r-ctl); background: #fff; box-shadow: 0 10px 40px rgb(24 24 27 / .08); }
.pbar { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; border-top: 1px solid var(--borderColor-default); z-index: var(--z-bar); background: rgb(255 255 255 / .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* --- движение --- */
@keyframes growW { from { transform: scaleX(calc(var(--from, 0) / 100)); } }
@keyframes growH { from { transform: scaleY(calc(var(--from, 0) / 100)); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes bump { 50% { transform: scale(1.14); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
.g-w { animation: growW .7s cubic-bezier(.16, 1, .3, 1) both; }
.g-h { animation: growH .7s cubic-bezier(.16, 1, .3, 1) both; }
.pop { animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.cloud-w, .feed-card { display: inline-block; }
.feed-card { break-inside: avoid; border: 1px solid var(--borderColor-default); border-radius: var(--r-ctl); padding: .8em 1em; margin-bottom: .8em; font-size: 1.15em; background: var(--bgColor-default); display: block; }
.bump { display: inline-block; animation: bump .4s cubic-bezier(.34, 1.56, .64, 1); }
.page > *, .login > * { animation: fadeUp .45s cubic-bezier(.16, 1, .3, 1) both; }
.page > *:nth-child(2) { animation-delay: .04s; }
.page > *:nth-child(3) { animation-delay: .08s; }
.page > *:nth-child(4) { animation-delay: .12s; }
.phone.enter > * { animation: fadeUp .4s cubic-bezier(.16, 1, .3, 1) both; }
.phone.enter > *:nth-child(2) { animation-delay: .05s; }
.phone.enter > *:nth-child(3) { animation-delay: .1s; }
.phone.enter > *:nth-child(n+4) { animation-delay: .14s; }
dialog[open] { animation: dlgIn .25s cubic-bezier(.16, 1, .3, 1); }
@keyframes fadeIn { from { opacity: 0; } }
.pf-card { background: var(--bgColor-default); border: 1px solid var(--borderColor-default); border-radius: var(--r-card); padding: 28px; width: min(560px, 100%); max-height: 90dvh; overflow: auto; animation: dlgIn .3s cubic-bezier(.16, 1, .3, 1); }
.btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.btn-primary:not(:disabled) { box-shadow: 0 1px 0 rgb(24 24 27 / .1), 0 4px 12px rgb(36 80 216 / .18); }
.thumb, .gal-card, .tpl-card, .opt { transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
.thumb:hover, .gal-card:hover, .tpl-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgb(24 24 27 / .08); }
.opt:active { transform: scale(.985); }
.stage.enter > * { animation: rise .55s cubic-bezier(.16, 1, .3, 1) both; }
.stage.enter > *:nth-child(2) { animation-delay: .07s; }
.stage.enter > *:nth-child(3) { animation-delay: .14s; }
.stage.enter > *:nth-child(n+4) { animation-delay: .2s; }
.stage.enter .points li, .stage.enter .sl-steps li, .stage.enter .num-card, .stage.enter .bar-row { animation: rise .5s cubic-bezier(.16, 1, .3, 1) both; }
.stage.enter li:nth-child(1), .stage.enter .num-card:nth-child(1), .stage.enter .bar-row:nth-child(1) { animation-delay: .12s; }
.stage.enter li:nth-child(2), .stage.enter .num-card:nth-child(2), .stage.enter .bar-row:nth-child(2) { animation-delay: .19s; }
.stage.enter li:nth-child(3), .stage.enter .num-card:nth-child(3), .stage.enter .bar-row:nth-child(3) { animation-delay: .26s; }
.stage.enter li:nth-child(4), .stage.enter .num-card:nth-child(4), .stage.enter .bar-row:nth-child(4) { animation-delay: .33s; }
.stage.enter li:nth-child(n+5), .stage.enter .bar-row:nth-child(n+5) { animation-delay: .4s; }
.thumb-view *, .ed-preview * { animation: none !important; }
.timer { transition: color .3s ease, background-color .3s ease; }
.timer.low { animation: bump 1s ease-in-out infinite; }

/* --- адаптив --- */
.access-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
@media (max-width: 900px) {
  .page { padding: 20px 16px 72px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head h1 { font-size: 21px; }
  .tabs { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .access-grid { grid-template-columns: 1fr; }
  .access-grid .qr { justify-self: start; }
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar .muted { display: none; }
  .grid-fields { grid-template-columns: 1fr; }
  .join-code { font-size: 40px; }
  dialog { padding: 18px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 960px) {
  .present { grid-template-columns: 1fr; height: auto; padding-bottom: 76px; }
  .present .stage-wrap { border-right: 0; min-height: 56vw; }
  .present .stage-frame { height: auto; }
  .pbar { padding: 0 12px; gap: 8px; }
  .pbar .cur { display: none; }
  .pbar .btn-large { flex: 1; min-width: 0; justify-content: center; }
  .pbar #next { max-width: none; }
}
@media (max-width: 700px) {
  .sl-join, .sl-cover.with-img, .sl-split, .stage .cols, .stage .cols.even, .stage .cols.three, .sl-scale { grid-template-columns: 1fr; gap: 2em; }
  .sl-cover:not(.with-img) { grid-template-columns: 1fr; }
  .sl-cover-block { display: none; }
  .bar-row { grid-template-columns: 1fr 5.5em; }
  .bar-row .bar-track { grid-column: 1 / -1; order: 3; }
  .scale-ends { margin-left: 0; }
  .stage { padding: 2.4em 1.6em 3em; font-size: clamp(11px, 3cqw, 18px); }
  .join-chip { bottom: 1em; }
}
@media (max-width: 420px) {
  .phone { padding: 18px 14px 120px; }
}
@media (hover: none) {
  .thumb:hover, .gal-card:hover, .tpl-card:hover { transform: none; box-shadow: none; }
}
.ed-preview .stage.dense, .thumb-view .stage.dense { font-size: 1.3cqw; }

/* слайд вписывается в экран: высоту задаёт рамка, а не содержимое */
.stage-rel > .stage { flex: 1; min-height: 0; }
.screen-page .stage-rel { height: 100dvh; min-height: 0; overflow: hidden; }
.present .stage-rel { height: 100%; min-height: 0; }
.ed-preview .stage-rel, .thumb-view .stage-rel { overflow: hidden; height: 100%; }
.sl-join, .sl-cover, .sl-statement { min-height: 0; flex: 1; }
.stage { font-size: clamp(12px, 1.55cqw, 28px); padding: 4em 5em 5em; min-height: 100%; line-height: 1.45; display: flex; flex-direction: column; }
.stage > .sl-join, .stage > .sl-cover, .stage > .sl-statement { flex: 1; }
.stage.t-statement, .stage.t-quote, .stage.t-cover, .stage.t-join { justify-content: center; }

/* --- список карточками --- */
.sl-cards { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 1.1em; }
.sl-cards.two { grid-template-columns: 1fr 1fr; }
.sl-cards.one { grid-template-columns: 1fr; max-width: 46em; }
.sl-cards li { display: flex; gap: 1em; align-items: flex-start; padding: 1.1em 1.3em; border-radius: var(--r-card); font-size: 1.32em; line-height: 1.35; background: linear-gradient(160deg, color-mix(in srgb, var(--ac-soft) 70%, #fff) 0%, #fff 70%); border: 1px solid color-mix(in srgb, var(--ac) 14%, var(--borderColor-default)); }
.sl-cards.one li { font-size: 1.5em; }
.card-n { font: 600 .82em var(--fontStack-monospace); color: var(--ac); padding-top: .2em; flex: none; }
.stage.enter .sl-cards li { animation: rise .5s cubic-bezier(.16, 1, .3, 1) both; }

/* --- шаги цепочкой --- */
.sl-steps { list-style: none; margin: 1.4em 0 0; padding: 0; max-width: none; }
.sl-steps.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1.4em; margin-top: 2em; counter-reset: none; }
.sl-steps.row li { display: flex; flex-direction: column; align-items: flex-start; gap: .9em; padding: 1.3em 1.3em 1.5em; border: 1px solid color-mix(in srgb, var(--ac) 14%, var(--borderColor-default)); border-radius: var(--r-card); font-size: 1.28em; line-height: 1.35; position: relative; background: linear-gradient(170deg, color-mix(in srgb, var(--ac-soft) 75%, #fff) 0%, #fff 62%); }
.sl-steps.row li + li::before { content: ""; position: absolute; left: -1.15em; top: 2.2em; width: .9em; height: 2px; background: linear-gradient(90deg, var(--ac), var(--ac-2)); }
.sl-steps.row .step-n { width: 2.2em; height: 2.2em; border-radius: 50%; font-size: 1em; background: linear-gradient(145deg, var(--ac), var(--ac-2)); color: #fff; border: 0; }
.sl-steps.col { max-width: 48em; }
.sl-steps.col li { border-top: 0; padding: .55em 0; }
.sl-steps.col .step-n { border-radius: 50%; background: linear-gradient(145deg, var(--ac), var(--ac-2)); color: #fff; border: 0; }

/* --- цифры и главная мысль --- */
.sl-numbers.n4 .num-val { font-size: 3.3em; }
.sl-numbers.n3 .num-val { font-size: 4.4em; }
.sl-numbers.n1 .num-val, .sl-numbers.n2 .num-val { font-size: 6em; }
.sl-numbers { display: grid; gap: 3em; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin-top: 2em; }
.num-card { padding-top: 1em; border-top: .2em solid transparent; padding: 1.2em 1.2em 1.3em; border: 1px solid color-mix(in srgb, var(--ac) 14%, var(--borderColor-default)); border-radius: var(--r-card); border-image: none; background: linear-gradient(170deg, color-mix(in srgb, var(--ac-soft) 75%, #fff) 0%, #fff 62%); }
.num-val { font-size: 4.4em; font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; background: linear-gradient(120deg, var(--ac-ink), var(--ac) 55%, var(--ac-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sl-statement { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; }
.sl-statement blockquote { margin: 0; padding-left: .55em; border-left: .13em solid var(--ac); line-height: 1.14; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; border-image: linear-gradient(180deg, var(--ac), var(--ac-2)) 1; font-size: 3.8em; }
.sl-text p { font-size: 1.65em; line-height: 1.5; margin: 0 0 .8em; max-width: 40em; }
@media (max-width: 700px) {
  .sl-cards.two, .sl-steps.row { grid-template-columns: 1fr; }
  .sl-steps.row li + li::before { display: none; }
}

/* ---------- телефон: редактор и пульт ведущего ---------- */
@media (max-width: 760px) {
  .filmstrip { display: block; overflow: visible; padding: 0; margin: 0; }
  .filmstrip > .btn { margin-bottom: 10px; }
  .filmstrip > div { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .filmstrip > div > * { flex: 0 0 170px; min-width: 0; scroll-snap-align: start; }
  .present .stage-wrap { overflow-x: hidden; }
  .present .stage table { table-layout: fixed; width: 100%; font-size: .82em; }
  .present .stage table td, .present .stage table th { overflow-wrap: anywhere; padding-left: .3em; padding-right: .3em; }
  .present .stage .Label { white-space: normal; }
}
.topbar .crumb, .topbar .btn { white-space: nowrap; flex: none; }
.topbar #ttl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .topbar #helpBtn { display: none; }
}
.ed-wrap > * { min-width: 0; }

/* =====================================================================
   Дизайн-система, версия 3: иерархия текста и спокойная оболочка.
   Шкала: заголовок страницы 30/700, раздел 18/650, название в списке 17/600,
   текст 15/400, подпись поля 13/500, пояснение 13/400 серым.
   ===================================================================== */
body { font-family: var(--fontStack-sansSerif); color: var(--color-fg-default, var(--fgColor-default)); min-height: 100dvh; background: var(--bg-2); background-attachment: scroll; }
.screen-page, body:has(.present), body:has(.phone) { background: #fff; }
.btn-primary, .btn-primary:hover:not(:disabled) { background-image: none; }
.btn-primary:not(:disabled), .btn-primary:hover:not(:disabled) { box-shadow: 0 1px 2px rgb(24 24 27 / .2); }
.topbar { display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: var(--z-bar); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); height: 60px; padding: 0 28px; background: rgb(255 255 255 / .9); border-bottom: 1px solid var(--line); }
.topbar .brand:hover { text-decoration: none; }
.topbar .who { font-size: 13px; }
.crumb { color: var(--fgColor-muted); text-decoration: none; font-size: 13px; font-weight: 500; }
.crumb:hover { color: var(--ink); text-decoration: none; }
.page { margin: 0 auto; max-width: 1040px; padding: 40px 28px 96px; }
.page-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 28px; }
.page-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 0; }
.page-head .crumb + h1 { margin-top: 6px; }
.page-sub { margin: 6px 0 0; color: var(--mut); font-size: 15px; max-width: 60ch; }
.sec-title { font-size: 18px; font-weight: 650; letter-spacing: -.015em; margin: 36px 0 12px; }
.lead-sm { color: var(--mut); margin: 0 0 20px; }
.tabs { display: flex; border-bottom: 1px solid var(--borderColor-default); gap: 20px; margin-bottom: 28px; }
.tabs a { text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s ease, border-color .2s ease; padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--mut); }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current=page] { color: var(--ink); font-weight: 600; border-color: var(--ink); }

/* презентации и занятия */
.deck-list { display: grid; gap: 14px; }
.deck { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.deck-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; }
.deck-info { min-width: 0; }
.deck-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; font-size: 18px; font-weight: 650; letter-spacing: -.015em; color: var(--ink); line-height: 1.25; }
.deck-title:hover { color: var(--accent); text-decoration: none; }
.deck-meta { margin-top: 4px; font-size: 13px; color: var(--mut); }
.deck-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.deck-runs { border-top: 1px solid var(--line-2); padding: 12px 22px 14px; background: var(--bg-2); border-radius: 0 0 var(--r-card) var(--r-card); }
.deck-runs.flat { border-top: 0; background: #fff; border-radius: var(--r-card); padding: 6px 22px; }
.runs-title { font-size: 13px; font-weight: 500; color: var(--mut); margin-bottom: 4px; }
.run { display: grid; grid-template-columns: minmax(0, 1.4fr) 76px 96px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 0; font-size: 14px; }
.run + .run { border-top: 1px solid var(--line-2); }
.run-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-name:hover { color: var(--accent); text-decoration: none; }
.run-code { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); }
.run .Label { justify-self: start; }
.run-meta { font-size: 13px; color: var(--mut); }
.run-actions { display: flex; gap: 4px; justify-content: flex-end; }
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: var(--z-menu); min-width: 190px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-2); display: grid; }
.menu-list button { text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: var(--r-ctl); font-size: 14px; cursor: pointer; }
.menu-list button:hover { background: var(--bg-3); }
.menu-list button.danger { color: var(--bad); }
.menu-list button.danger:hover { background: var(--bad-soft); }
.welcome { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 40px; max-width: 640px; }
.welcome h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
.how { list-style: none; counter-reset: how; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.how li::before { content: counter(how); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-3); color: var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.how li b { font-weight: 600; }
.how li span { color: var(--mut); font-size: 14px; grid-column: 2; }
.Box.empty { background: #fff; padding: 36px 24px; }

/* вход */
.login { max-width: 400px; margin: 10vh auto 0; padding: 36px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.login h1 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; margin: 0 0 6px; }
.login-alt { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--mut); }
.login-alt a { font-weight: 600; }
.login-foot { margin: 14px 0 0; text-align: center; font-size: 13px; }
.login-foot a { color: var(--mut); }
body:has(.login) { background: var(--bg-2); }

/* формы */
.field { margin-bottom: 18px; }
.field label, .field-title { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px rgb(194 54 43 / .12); }
dialog { background: var(--bgColor-default); color: var(--fgColor-default); border-radius: var(--r-card); padding: 28px; border: 0; box-shadow: 0 24px 80px -20px rgb(24 24 27 / .35); width: min(460px, calc(100vw - 32px)); }
dialog h2 { margin-top: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
dialog::backdrop { animation: fadeIn .2s ease both; backdrop-filter: blur(2px); background: rgb(24 24 27 / .4); }
.toast { position: fixed; right: 20px; bottom: 20px; padding: 10px 14px; background: var(--bgColor-emphasis); color: var(--fgColor-onEmphasis); z-index: var(--z-toast); font-size: 14px; max-width: 360px; animation: toastIn .3s cubic-bezier(.16, 1, .3, 1); box-shadow: 0 8px 24px rgb(24 24 27 / .2); border-radius: var(--r-ctl); font-weight: 500; }

/* редактор */
.save-state { color: var(--fgColor-muted); text-align: right; transition: color .2s ease; font-size: 13px; min-width: 0; }
.ed-bar { margin: 12px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ed-bar .grow { flex: 1; }
.ed-pos { font-size: 13px; font-weight: 500; color: var(--mut); margin-right: 6px; }
.form-title { font-size: 18px; font-weight: 650; letter-spacing: -.015em; margin: 0 0 2px; }
.form-hint { font-size: 13px; color: var(--mut); margin: 0 0 18px; }
.thumb-meta b { color: var(--fgColor-default); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 0; min-width: 0; font-weight: 600; font-size: 13px; }
.thumb-meta span { font-size: 13px; color: var(--mut); flex: 0 1 auto; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tpl-card[aria-pressed=true] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--bg-2); }
.gal-group { font-size: 13px; font-weight: 600; color: var(--ink); margin: 20px 0 8px; }

/* страница занятия */
.code-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.code-cap { font-size: 13px; font-weight: 500; color: var(--mut); margin-bottom: 6px; }
.join-code { font: 600 56px/1 var(--fontStack-monospace); display: inline-block; font-size: 52px; font-weight: 700; letter-spacing: .1em; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
.code-live { text-align: right; }
.code-live b { display: block; font-size: 34px; font-weight: 650; line-height: 1; }
.code-live span { font-size: 13px; color: var(--mut); }
.copy-row { display: flex; gap: 8px; }
.quiet-actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; margin-left: -11px; }
.qr-card { display: grid; gap: 10px; justify-items: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); font-size: 13px; }
.qr-card .qr { border: 0; padding: 0; }
table.grid th { text-align: left; color: var(--fgColor-muted); padding: 8px 12px; border-bottom: 1px solid var(--borderColor-default); white-space: nowrap; font-size: 13px; font-weight: 500; }
.Box-header b { font-weight: 600; }

/* пульт занятия */
.present aside { overflow: auto; background: var(--bg-2); padding: 20px 22px 32px; }
.present aside h3 { font-size: 13px; font-weight: 600; color: var(--ink); margin: 24px 0 8px; letter-spacing: 0; }
.present aside details > summary:hover { color: var(--ink); }
.side-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.pbar .cur b { display: block; font-size: 15px; font-weight: 650; }
.pf-card h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pf-code { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; padding: 16px 18px; margin: 4px 0 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card); }
.pf-code span { display: block; font-size: 13px; margin-bottom: 2px; }
.pf-code b { font-size: 17px; font-weight: 600; }
.pf-code b.num { font-size: 30px; font-weight: 700; letter-spacing: .1em; line-height: 1; }
.pf-item b { font-weight: 600; }

/* телефон студента */
.block h2 { margin: 0 0 6px; font-size: 18px; font-weight: 650; letter-spacing: -.015em; margin-bottom: 8px; }
.opt.on { font-weight: 600; background: var(--accent-soft); border-color: var(--accent); }
@media (max-width: 900px) {
  .page { padding: 24px 16px 80px; }
  .page-head { align-items: stretch; }
  .page-head h1 { font-size: 25px; }
  .topbar { padding: 0 16px; }
  .deck-head { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .deck-actions { flex-wrap: wrap; }
  .deck-actions .btn-primary { flex: 1 1 100%; }
  .deck-runs, .deck-runs.flat { padding-left: 18px; padding-right: 18px; }
  .run { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; }
  .run-name { grid-column: 1; }
  .run .Label { grid-column: 2; grid-row: 1; justify-self: end; }
  .run-code { grid-column: 1; grid-row: 2; }
  .run-meta { grid-column: 2; grid-row: 2; text-align: right; }
  .run-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .menu-list { right: auto; left: 0; }
  .welcome { padding: 28px 22px; }
  .login { margin: 4vh 16px 0; padding: 28px 22px; }
  .code-card { padding: 18px; }
  .join-code { font-size: 40px; }
  .copy-row { flex-wrap: wrap; }
  .copy-row input { flex: 1 1 100%; }
  .qr-card { justify-self: start; }
  .pf-code { grid-template-columns: 1fr; gap: 12px; }
}
.btn-primary:hover:not(:disabled) { background-image: linear-gradient(180deg, var(--accent) 0%, #1c41b8 100%); box-shadow: 0 1px 0 rgb(24 24 27 / .1), 0 6px 18px rgb(36 80 216 / .28); background-color: #1c41b8; border-color: #1c41b8; filter: none; }
.btn-primary.btn-danger, .btn-primary.btn-danger:hover:not(:disabled) { background-color: var(--bad); border-color: var(--bad); }
.pf-item .Label { flex: none; margin-top: 2px; text-align: center; min-width: 76px; justify-content: center; }

/* меньше бледного мелкого текста: пояснения темнее и не мельче 13px */
:root { --fontStack-sansSerif: var(--font-body); --fontStack-monospace: var(--font-head); --ui-ac: var(--accent); --ui-ac-2: #6f8ff0; --mut: #5c5c66; }
.muted { color: var(--mut); }
.field .help, .field .error { margin-top: 6px; line-height: 1.4; font-size: 13px; color: var(--mut); }
.field .error { font-size: 13px; margin-top: 4px; font-weight: 500; color: var(--bad); }
.deck-meta, .run-meta, .runs-title, .thumb-meta span, table.grid th, .code-cap, .code-live span, .pf-code span { font-size: 13px; color: var(--mut); }
.dlg-sub { margin: -2px 0 18px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.side-p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pf-text { font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* раскрывающиеся блоки без треугольников: обычная подчёркнутая ссылка */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
.present aside details > summary { cursor: pointer; display: inline-block; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: #c4c4cc; text-underline-offset: 3px; }
.present aside details[open] > summary { margin-bottom: 8px; }
.pbar #next { max-width: 44vw; overflow: hidden; text-overflow: ellipsis; display: block; }

/* соавторы и присутствие */
.cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: var(--r-pill); background: var(--bg-3); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ppl-box { display: inline-flex; align-items: center; gap: 6px; }
.ppl-cap { font-size: 13px; color: var(--mut); }
.ppl { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; animation: pop .35s cubic-bezier(.2, .8, .2, 1) both; }
.thumb { display: block; width: 100%; text-align: left; border: 1px solid var(--borderColor-default); padding: 6px; margin-bottom: 8px; background: var(--bgColor-default); cursor: pointer; font: inherit; border-radius: var(--r-card); position: relative; }
.thumb-who { position: absolute; top: 8px; right: 8px; z-index: 1; max-width: 70%; padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb:has(.thumb-who) { border-color: var(--accent); }
.share-list { display: grid; border: 1px solid var(--line); border-radius: var(--r-card); }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.share-row + .share-row { border-top: 1px solid var(--line-2); }
.share-row b { display: block; font-weight: 600; }
.share-row span { font-size: 13px; color: var(--mut); }
.share-err { min-height: 20px; margin: 8px 0 8px; color: var(--bad); font-size: 14px; font-weight: 500; }

/* вкладка «Экспертная оценка» */
.method { max-width: 860px; display: grid; gap: 14px; }
.sec-add { margin-top: 12px; }

/* конструктор «Групповой выбор» */
.m-intro h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.m-intro p { margin: 0 0 6px; max-width: 66ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.m-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px; }
.m-card h3 { font-size: 17px; font-weight: 650; letter-spacing: -.015em; margin: 0 0 4px; }
.m-hint { margin: 0 0 16px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 64ch; }
.m-toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.m-toggle .m-hint { margin-bottom: 0; }
.m-toggle + * { margin-top: 18px; }
.sw { position: relative; flex: none; width: 44px; height: 26px; padding: 0; border: 0; border-radius: var(--r-pill); background: #d4d4d8; cursor: pointer; transition: background-color .2s ease; }
.sw i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(24 24 27 / .25); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.sw.on { background: var(--accent); }
.sw.on i { transform: translateX(18px); }
.sw.locked { opacity: .45; cursor: default; display: inline-block; }
.steps-list { display: grid; }
.step { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.step:first-child { border-top: 0; }
.step-t b { display: block; font-weight: 600; color: var(--mut); transition: color .2s ease; }
.step.on .step-t b { color: var(--ink); }
.step-t span { font-size: 14px; color: var(--mut); }
.step.on .step-t span { color: var(--ink-2); }
.step-go { font-size: 13px; font-weight: 500; white-space: nowrap; }
.rows { display: grid; gap: 8px; }
.rows-h, .rows-r { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 8px; align-items: start; }
.rows.money .rows-h, .rows.money .rows-r { grid-template-columns: minmax(0, 1.1fr) 120px minmax(0, 1.6fr) auto; }
.rows.roles .rows-h, .rows.roles .rows-r { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.8fr) auto; }
.rows-h span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.rows-h span:last-child { width: 66px; }
.rows-r .btn { margin-top: 4px; }
.chips-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-in { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-2); }
.chip-in .form-control { width: 210px; min-height: 34px; padding: 5px 10px; border-color: transparent; background: #fff; }
.chip-in.first { border-color: var(--accent); background: var(--accent-soft); }
.matrix-wrap { overflow-x: auto; }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.matrix th { text-align: left; font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 0 8px 2px 0; }
.matrix td { padding: 0 8px 0 0; font-size: 14px; }
.matrix td:first-child { font-weight: 500; min-width: 180px; }
.matrix .form-control { min-width: 84px; }
@media (max-width: 760px) {
  .m-card { padding: 18px; }
  .rows-h { display: none; }
  .rows-r, .rows.money .rows-r, .rows.roles .rows-r { grid-template-columns: 1fr; padding: 12px 0; border-top: 1px solid var(--line-2); }
  .chip-in .form-control { width: 160px; }
  .step { grid-template-columns: 44px 1fr; }
  .step-go { grid-column: 2; }
}

/* знак сервиса */
.topbar .brand { color: var(--fgColor-default); text-decoration: none; font-size: 15px; font-weight: 650; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { display: block; width: 30px; height: 30px; }
.brand-word { font-size: 16px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
.topbar .btn.cur { background: var(--bg-3); color: var(--ink); }

/* выпадающие списки в таблицах: место под стрелку */
table.grid select, table.grid .form-select { width: auto; min-width: 68px; min-height: 34px; padding: 4px 30px 4px 10px; font-size: 14px; background-position: right 10px center; }

/* помощь */
.help-grid { display: grid; grid-template-columns: 200px minmax(0, 680px); gap: 48px; align-items: start; }
.help-toc { position: sticky; top: 84px; display: grid; gap: 2px; }
.help-toc a { padding: 7px 10px; border-radius: var(--r-ctl); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.help-toc a:hover { background: var(--bg-3); color: var(--ink); text-decoration: none; }
.help-sec { padding: 0 0 36px; scroll-margin-top: 84px; }
.help-sec h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
.help-sec h3 { font-size: 16px; font-weight: 650; margin: 0 0 4px; }
.help-sec p { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0 0 12px; max-width: 64ch; }
.help-sec .how { margin: 4px 0 16px; gap: 16px; }
.help-sec .how li b { font-size: 16px; }
.help-sec .how li span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.help-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 16px; }
.help-two > div, .help-qa > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; }
.help-two p, .help-qa p { margin: 0; font-size: 15px; }
.help-qa { display: grid; gap: 10px; }
@media (max-width: 900px) {
  .help-grid { grid-template-columns: 1fr; gap: 20px; }
  .help-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .help-toc a { background: #fff; border: 1px solid var(--line); }
  .help-two { grid-template-columns: 1fr; }
  .brand-word { display: none; }
}
.page:has(#resBody table.grid) { max-width: 1320px; }

/* ---------- полосы и столбики: растут через transform, ширину и высоту не анимируем ---------- */
.bar-track, .rank-track, .wbar, .meter { overflow: hidden; }
.bar-track > i, .rank-track > i, .wbar > i, .meter > i { display: block; width: 100%; height: 100%; border-radius: 0; transform: scaleX(calc(var(--v, 0) / 100)); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.hist-box { flex: 1; min-height: 0; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--r-bar) var(--r-bar) 0 0; }
.hist-bar { width: 100%; height: 100%; min-height: 0; border-radius: 0; transform: scaleY(calc(var(--v, 0) / 100)); transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }

.page-head h1, .ph-hero, .ph-q { font-weight: 800; }
.stage h1 { font-weight: 800; letter-spacing: -.025em; }
.stage h2 { font-weight: 700; }
.num-val { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ac); font-weight: 800; }

/* ---------- заглушки на время загрузки ---------- */
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel { border-radius: var(--r-card); background: linear-gradient(90deg, #ededf0 25%, #f6f6f8 37%, #ededf0 63%); background-size: 400% 100%; animation: skel 1.4s ease infinite; }
.skel-title { width: 280px; height: 36px; border-radius: var(--r-ctl); margin-bottom: 28px; }
.skel-tabs { width: 340px; height: 22px; border-radius: var(--r-ctl); margin-bottom: 28px; }
.skel-card { height: 96px; margin-bottom: 14px; }
.skel-ed { display: grid; grid-template-columns: 220px 1fr 300px; gap: 20px; }
.skel-ed .skel { height: 420px; }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 760px) { .skel-ed { grid-template-columns: 1fr; } .skel-ed .skel { height: 160px; } }
.stage .wrow { font-size: .7em; }
.method { grid-template-columns: minmax(0, 1fr); } .method > * { min-width: 0; } .chip-in { max-width: 100%; } .chip-in .form-control { min-width: 0; }

.brand-word { font-weight: 700; }
.present aside .btn.reveal { margin: 12px 0 8px; }
.present aside details.mod { margin-top: 12px; }
.set-card { margin: 20px 0 4px; }

/* ---------- режим презентующего: предупреждения и показ на одной вкладке ---------- */
@media (min-width: 961px) {
  #app:has(> .present) { display: flex; flex-direction: column; height: 100dvh; padding-bottom: 64px; }
  #app > .present { flex: 1; min-height: 0; height: auto; }
}
.warn-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 24px; background: var(--warn-soft); color: #5a3c00; font-size: 14px; border-bottom: 1px solid var(--borderColor-attention-muted); }
.warn-row.bad { background: var(--bad-soft); color: #7a1f17; border-bottom-color: var(--borderColor-danger-muted); }
.warn-row b { font-weight: 700; }
.warn-act { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-two { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.side-p.time-up { color: var(--bad); font-weight: 600; }
#barAct:empty { display: none; }
body.mono .present { grid-template-columns: 1fr; }
body.mono .present aside { display: none; }
body.mono .present .stage-wrap { border-right: 0; }
body.mono .topbar { height: 44px; background: var(--bg-2); }
body.mono .topbar #ttl { font-weight: 500; color: var(--mut); font-size: 13px; }
body.mono .pbar .cur { display: none; }
body.mono .pbar { justify-content: center; }
@media (min-width: 961px) { body.mono #app:has(> .present) { height: 100dvh; } }
.run-pick { display: grid; gap: 8px; }
.run-opt { display: block; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--accent); color: #fff; transition: background-color .15s ease, transform .1s ease; }
.run-opt:hover { background: #1c41b8; text-decoration: none; }
.run-opt:active { transform: translateY(1px); }
.run-opt b { display: block; font-weight: 700; }
.run-opt span { font-size: 13px; opacity: .9; }

/* ---------- пользователи ---------- */
.user-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1.3fr) 110px auto; }
.user-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-link { grid-column: 1 / -1; padding: 6px 0 10px; }
.topbar .who { font-weight: 500; }
@media (max-width: 900px) { .user-row { grid-template-columns: 1fr; } .user-row .run-actions { justify-content: flex-start; } }

/* ---------- режим презентующего на небольших экранах ---------- */
.sl-join > * { min-width: 0; }
.sl-join .sl-qr svg { max-width: 100%; height: auto; }
.warn-row { padding: 8px 24px; font-size: 13px; }
.present .stage { font-size: clamp(12px, 1.7cqw, 28px); }
@media (min-width: 961px) and (max-width: 1320px) { .present { grid-template-columns: 1fr 300px; } .present .stage { padding: 2.6em 3em 3em; } }
@media (min-width: 961px) and (max-height: 760px) { .present .stage { padding-top: 2.2em; padding-bottom: 2.4em; } }
@media (max-width: 760px) { body.mono .pbar { gap: 6px; padding: 0 8px; } body.mono .pbar .btn-large { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; } }

/* ---------- коды приглашения ---------- */
.inv-new { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.inv-new .field { margin-bottom: 0; }
.inv-new .inv-note { flex: 1; min-width: 220px; }
.inv-new #inv-max { width: 140px; }
.inv-row { grid-template-columns: 130px 170px minmax(0, 1fr) 110px auto; }
.inv-code { font-size: 15px; letter-spacing: .1em; }
@media (max-width: 900px) { .inv-row { grid-template-columns: 1fr; } }

/* --- редактор: списки, цифры, таблица --- */
.rows-ed { display: grid; gap: 6px; }
.row-ed { display: flex; align-items: center; gap: 6px; border-radius: var(--r-ctl); }
.row-ed .form-control { flex: 1; min-width: 0; }
.row-ed .btn { flex: none; padding: 0 8px; }
.row-ed.over { box-shadow: 0 -2px 0 var(--accent); }
.row-ed.dragging { opacity: .45; }
.row-n { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-3); color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: grab; user-select: none; }
.row-radio { flex: none; width: 20px; height: 20px; margin: 0 3px; accent-color: var(--ok); cursor: pointer; }
.pair-v.form-control { flex: 0 0 84px; font-weight: 600; }
.row-foot { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.row-foot.wrap { flex-wrap: wrap; gap: 6px; }
.row-foot .help { margin: 0; }
.tbl-ed { overflow-x: auto; padding-bottom: 2px; }
.tbl-ed table { border-collapse: separate; border-spacing: 4px; margin: -4px; }
.tbl-ed td { padding: 0; }
.tbl-ed .form-control { width: 100%; min-width: 92px; min-height: 36px; padding: 6px 8px; font-size: 14px; }
.tbl-ed tr.head .form-control { font-weight: 600; background: var(--bg-2); }

/* --- плашка с кодом занятия: выезжает справа, сама прячется --- */
.stage-rel { overflow-x: clip; }
.join-chip { position: absolute; right: 0; bottom: 1.4em; margin: 0; align-self: auto; border-right: 0; border-radius: .7em 0 0 .7em; cursor: pointer; z-index: 2;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
.join-chip .chip-tab { display: none; writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; font-size: .95em; letter-spacing: .06em; color: var(--ink-2); }
.join-chip.tucked { transform: translateX(calc(100% - 2.4em)); padding-left: .7em; box-shadow: 0 .2em .8em rgb(24 24 27 / .08); }
.join-chip.tucked .chip-tab { display: block; margin-right: .5em; }
.join-chip.tucked:hover { transform: translateX(calc(100% - 2.8em)); }
.join-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ed-preview .join-chip { cursor: default; }
@media (prefers-reduced-motion: reduce) { .join-chip { transition: none; } }

/* --- оценки группы: доводы участников карточками --- */
.stage .cols.fb { grid-template-columns: 1.1fr 1fr; gap: 3em; }
.fb-args { display: grid; gap: .8em; margin-top: .8em; }
.fb-args.two { grid-template-columns: 1fr 1fr; }
.fb-arg { padding: .9em 1.1em 1em; border-radius: var(--r-card); border: 1px solid var(--borderColor-default); background: #fff; break-inside: avoid; }
.fb-arg-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5em .7em; margin-bottom: .5em; }
.fb-arg-top b { font-size: 1em; line-height: 1.25; }
.fb-tag { flex: none; padding: .22em .7em; border-radius: var(--r-pill); font-size: .8em; font-weight: 600; }
.fb-arg.hi .fb-tag { background: var(--ok-soft); color: var(--ok); }
.fb-arg.lo .fb-tag { background: var(--warn-soft); color: var(--warn); }
.fb-arg p { margin: 0 0 .4em; font-size: 1.2em; line-height: 1.4; }
.fb-arg .who { font-size: .85em; color: var(--mut); }
@media (max-width: 700px) { .fb-args.two { grid-template-columns: 1fr; } }
