/* ==========================================================================
   «Оффер» — компоненты в продукте. Источник — эталон app/design/components.css:
   те же классы и разметка (построители — static/ui.js по prototype/lib/ui.js).
   Сюда не переносятся части только прототипа: кадр и имитация шапки и кнопок
   Telegram (их рисует клиент), слой шторки кадра (в продукте — .sheet-back
   оболочки, app.css), полоса ui.demo и режим check=1.
   Только токены из tokens.css, без жёстких цветов (исключение — прозрачный цвет
   и currentColor). Без inline-стилей: всё динамическое (ширина полосы, сдвиг
   карточки, сила индикатора жеста) передаётся CSS-переменной через
   element.style.setProperty. Узкий экран — контейнер frame (в продукте —
   main.view и шторка, app.css).
   Классы областей начинаются с имени области (.feed-…, .apply-…) и живут в
   area_<область>.css. Файл заморожен после волны R0: правка — эталон, затем
   этот файл, через координатора.
   ========================================================================== */

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-page);
  color: var(--text);
  font: 400 var(--fs-body)/1.35 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: normal; word-break: normal; hyphens: manual;
}
button, input, textarea, select { font: inherit; color: inherit; }
button {
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: none; border: 0; padding: 0; margin: 0; text-align: inherit;
}
button:disabled { cursor: default; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-tag); }

.ic {
  width: 24px; height: 24px; flex: none; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ic-16 { width: 16px; height: 16px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-22 { width: 22px; height: 22px; }
.ic-26 { width: 26px; height: 26px; }
.ic .fill { fill: currentColor; stroke: none; }

/* числа: табличные цифры везде, лицо — Onest там, где число главное */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.face { font-family: var(--font-face); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.pretty { text-wrap: pretty; }

/* тона: компонент берёт --tone и --tone-bg */
.tone-accent { --tone: var(--link); --tone-bg: var(--accent-tint); }
.tone-match  { --tone: var(--match); --tone-bg: var(--match-bg); }
.tone-good   { --tone: var(--good); --tone-bg: var(--good-bg); }
.tone-warn   { --tone: var(--warn); --tone-bg: var(--warn-bg); }
.tone-bad    { --tone: var(--bad); --tone-bg: var(--bad-bg); }
.tone-info   { --tone: var(--info); --tone-bg: var(--info-bg); }
.tone-quiet  { --tone: var(--text-2); --tone-bg: var(--fill); }
.tone-event  { --tone: var(--event); --tone-bg: var(--event-bg); }

/* ---------- типографика ---------- */
.t-display  { font: 700 var(--fs-display)/1.1 var(--font-face); letter-spacing: -.025em; }
.t-title    { font: 700 var(--fs-title)/1.15 var(--font-face); letter-spacing: -.02em; }
.t-headline { font: 600 var(--fs-headline)/1.2 var(--font-face); letter-spacing: -.015em; }
.t-section  { font: 600 var(--fs-section)/1.25 var(--font-face); letter-spacing: -.012em; }
.t-body     { font-size: var(--fs-body); line-height: 1.4; }
.t-callout  { font-size: var(--fs-callout); line-height: 1.4; }
.t-sub      { font-size: var(--fs-sub); line-height: 1.35; color: var(--text-2); }
.t-caption  { font-size: var(--fs-caption); line-height: 1.4; color: var(--text-2); }
.t-micro    { font-size: var(--fs-micro); line-height: 1.3; color: var(--text-2); }
.t-hint     { color: var(--hint); }
.t-2        { color: var(--text-2); }
.t-strong   { font-weight: 600; color: var(--text); }

/* своя панель вкладок: только на корневых экранах */
.tabbar {
  flex: none; height: var(--tabbar-h); display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface-bar); box-shadow: inset 0 .5px 0 var(--divider); position: relative; z-index: 3;
}
.tab {
  min-width: 0; position: relative; padding-top: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-2); font: 500 var(--fs-micro)/14px var(--font-text); white-space: nowrap;
}
.tab .ic { width: 26px; height: 26px; }
.tab.is-active { color: var(--link); }
.tab.is-active .tab-l { font-weight: 600; }
.badge {
  position: absolute; top: 3px; left: calc(50% + 4px);
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 2px var(--surface-bar);
  font: 700 var(--fs-micro)/20px var(--font-text); text-align: center;
  font-variant-numeric: tabular-nums;
}

/* плашка администратора: несворачиваемая, на каждом экране чужого профиля.
   «Профиль: Анна Морозова · Сменить · Выйти»; на узком кадре — «Анна М. · Сменить · Выйти».
   Без многоточия: если имя длинное, текст переносится, плашка растёт по высоте. */
.admin-plate {
  flex: none; display: flex; align-items: center; gap: var(--space-2);
  min-height: 40px; padding: 0 var(--space-1) 0 var(--space-4);
  background: var(--admin-bg); color: var(--on-admin);
  font-size: var(--fs-sub); line-height: 1.3; position: relative; z-index: 4;
}
.admin-plate > .ic { width: 18px; height: 18px; }
.admin-plate-t { flex: 1 1 auto; min-width: 0; padding: 6px 0; text-wrap: balance; }
.admin-plate-t b { font-weight: 600; }
.admin-plate-l b { white-space: nowrap; }
.admin-plate-s { display: none; white-space: nowrap; }
.admin-plate-acts { flex: none; display: flex; align-items: center; }
.admin-plate-dot { opacity: .7; }
.admin-plate-x {
  flex: none; height: 40px; padding: 0 6px; color: var(--on-admin); font-weight: 600; white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; position: relative;
}
.admin-plate-x::after { content: ""; position: absolute; inset: -4px 0; }
@container frame (max-width: 340px) {
  .admin-plate-l { display: none; }
  .admin-plate-s { display: inline; }
}

/* ==========================================================================
   Страница, заголовки, секции
   ========================================================================== */
.page { padding: var(--space-2) var(--space-4) var(--space-7); }
.page-eyebrow { font-size: var(--fs-caption); color: var(--text-2); margin: var(--space-2) var(--space-1) var(--space-1); }
.page-title { margin: var(--space-1) var(--space-1) 0; }
.page-sub { font-size: var(--fs-callout); color: var(--text-2); margin: var(--space-1) var(--space-1) 0; line-height: 1.4; }
.page-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.page-head-row .page-aside { font-size: var(--fs-caption); color: var(--text-2); white-space: nowrap; }

.section { margin-top: var(--space-6); }
.section.is-tight { margin-top: var(--space-4); }
.section-h { display: flex; align-items: baseline; gap: var(--space-2); min-height: 28px; margin: 0 var(--space-1) var(--space-2); }
.section-title { font: 600 var(--fs-section)/1.25 var(--font-face); letter-spacing: -.012em; min-width: 0; text-wrap: balance; }
.section-cnt { white-space: nowrap; }
.section-dot { color: var(--hint); font-weight: 400; }
.section-n { color: var(--link); font-variant-numeric: tabular-nums; }
.section-aside { margin-left: auto; font-size: var(--fs-caption); color: var(--text-2); white-space: nowrap; }
.section-h .seg, .section-h .link-act { margin-left: auto; align-self: center; }
.section-sub { font-size: var(--fs-sub); color: var(--text-2); margin: -4px var(--space-1) var(--space-2); line-height: 1.35; text-wrap: pretty; }
.section-foot { margin: var(--space-2) var(--space-4) 0; font-size: var(--fs-caption); line-height: 1.4; color: var(--text-2); text-wrap: pretty; }

/* ==========================================================================
   Список и строка (Section / Cell)
   ========================================================================== */
.list { background: var(--surface-card); border-radius: var(--r-container); overflow: hidden; box-shadow: var(--edge); }
.list > * { position: relative; }
.list > * + *::before {
  content: ""; position: absolute; top: 0; left: var(--sep, 16px); right: 0;
  height: .5px; background: var(--divider); pointer-events: none;
}
.list.is-flush { background: transparent; border-radius: 0; box-shadow: none; }
.list.is-flush > * + *::before { left: 0; }

.cell {
  --sep: 16px;
  display: flex; align-items: center; gap: var(--space-3); width: 100%;
  min-height: 56px; padding: 10px var(--space-4); color: inherit; text-align: left;
  transition: background var(--dur-press) var(--ease-standard);
}
.cell.is-compact { min-height: var(--tap); padding-top: 8px; padding-bottom: 8px; }
.cell.has-ic { --sep: 58px; }
.cell.has-tile { --sep: 74px; }
.cell.is-top { align-items: flex-start; }
button.cell:active, .cell.is-pressed { background: var(--fill-pressed); }
.cell[aria-disabled="true"] { color: var(--text-2); }
.cell-ic {
  flex: none; width: 30px; height: 30px; border-radius: var(--r-icon);
  display: grid; place-items: center; background: var(--tone-bg, var(--fill)); color: var(--tone, var(--text-2));
}
.cell-ic .ic { width: 18px; height: 18px; }
.cell.is-top .cell-ic { margin-top: 2px; }
.cell-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* заголовок и метка в одной строке, пока заголовок помещается словами; иначе метка уходит под него
   (заголовок не сжимается уже самого длинного неразрывного куска: «10:00–11:00», «Анна Морозова») */
.cell-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px var(--space-2); }
.cell-top > .cell-t { flex: 1 1 0; min-width: min-content; }
.cell-top .tag { flex: none; }
/* пояс у метки срока (data.dueTag(...).zoneText, круг 4): мелкой строкой под меткой, метка остаётся в одну строку */
.tag-zw { flex: 0 1 auto; min-width: 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.tag-z { font: 400 var(--fs-micro)/14px var(--font-text); color: var(--text-2); white-space: nowrap; }
.cell-aside { flex: none; margin-left: auto; font-size: var(--fs-caption); color: var(--hint); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* строка ссылок под строкой: строка — кнопка, ссылки — свои кнопки рядом */
.cell-wrap { --sep: 16px; }
.cell-wrap.has-ic { --sep: 58px; }
.cell-wrap.has-tile { --sep: 74px; }
.cell.has-links { padding-bottom: 2px; min-height: 48px; }
.acts-row.cell-links { justify-content: flex-start; gap: var(--space-3); padding: 0 var(--space-4) 4px var(--sep); }
.cell-o { font-size: var(--fs-caption); color: var(--text-2); line-height: 1.2; }
.cell-t { font-size: var(--fs-body); font-weight: 500; line-height: 1.3; min-width: 0; }
.cell-t.is-strong { font-weight: 600; }
.cell-s { font-size: var(--fs-sub); color: var(--text-2); line-height: 1.3; text-wrap: pretty; }
.cell-m { font-size: var(--fs-caption); color: var(--hint); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-3); margin-top: 4px; min-width: 0; }
.cell-after { flex: none; display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: var(--fs-sub); }
.cell-v { font: 600 var(--fs-section)/1 var(--font-face); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-v.is-none { font: 400 var(--fs-sub)/1.2 var(--font-text); color: var(--text-2); }
.chev { width: 16px; height: 16px; color: var(--chev); stroke-width: 2.2; }
.cell-tile {
  flex: none; width: 46px; height: 46px; border-radius: var(--r-icon);
  background: var(--info-bg); color: var(--info);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.cell-tile small { font-size: var(--fs-micro); font-weight: 500; margin-bottom: 3px; }
.cell-tile b { font: 700 var(--fs-sub)/1 var(--font-face); font-variant-numeric: tabular-nums; }
.cell-tile.is-event { background: var(--event-bg); color: var(--event); }
.in-num { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 var(--space-4); border-radius: var(--r-control);
  font: 600 var(--fs-callout)/1 var(--font-text); white-space: nowrap; position: relative;
  background: var(--accent-tint); color: var(--link);
  transition: transform var(--dur-press) var(--ease-standard), opacity var(--dur-press);
}
.btn::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; bottom: -2px; }
.btn .ic { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-s { height: 36px; padding: 0 14px; }
.btn-s::after { top: -6px; bottom: -6px; }
.btn-l { height: 50px; font-size: var(--fs-body); }
.btn-wide { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: var(--accent-tint); color: var(--link); }
.btn-plain { background: var(--fill); color: var(--text); }
.btn-danger { background: var(--bad-bg); color: var(--bad); }
.btn:disabled { background: var(--fill); color: var(--hint); }
.btn.is-loading { color: transparent; }
.btn.is-loading .ic { opacity: 0; }
.btn.is-loading::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2px solid var(--link); border-right-color: transparent; animation: spin .8s linear infinite;
}
.btn-primary.is-loading::before { border-color: var(--on-accent); border-right-color: transparent; }
.btn-danger.is-loading::before { border-color: var(--bad); border-right-color: transparent; }

/* текстовая ссылка-действие (из «Сигнала»): подчёркнута, без пилюли, цель 48 px */
.link-act {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0; position: relative;
  color: var(--link); font: 500 var(--fs-callout)/1.2 var(--font-text); white-space: nowrap;
}
/* цель касания 48 px по высоте всегда — и в баннере (36 px), и в таблице (40 px), и в шторке */
.link-act::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--tap); margin-top: calc(var(--tap) / -2); }
.link-act[aria-pressed="true"] { color: var(--match); }
.link-act[aria-pressed="true"] .ic path { fill: currentColor; }
.link-act .link-t { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link-act .ic { width: 18px; height: 18px; }
.link-act:active .link-t { text-decoration-thickness: 2.5px; }
.link-act:disabled { color: var(--hint); }
.link-act:disabled .link-t { text-decoration: none; }
.link-act.is-danger { color: var(--bad); }
.link-act.is-quiet { color: var(--text-2); }
.link-act.is-s { font-size: var(--fs-sub); }
/* строка текстовых действий «Вернуть · Отложить · Компания нравится» */
.acts-row { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-width: 0; }
.acts-row .acts-dot { color: var(--hint); flex: none; }

/* круглые кнопки свайпа: 56 главные, 48 второстепенные; подпись под кругом */
.round {
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px; min-width: var(--tap);
  font: 600 var(--fs-caption)/16px var(--font-text); color: var(--text); white-space: nowrap;
}
.round.is-start { align-items: flex-start; }
.round.is-end { align-items: flex-end; }
.round-c {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-raised); color: var(--text); box-shadow: var(--elev-round);
  transition: transform var(--dur-select) var(--ease-out), box-shadow var(--dur-select) var(--ease-out);
}
.round-c .ic { width: 26px; height: 26px; stroke-width: 2; }
.round.is-48 .round-c { width: 48px; height: 48px; }
.round.is-48 .round-c .ic { width: 22px; height: 22px; }
.round.is-no .round-c { color: var(--bad); }
.round.is-yes .round-c { background: var(--accent); color: var(--on-accent); box-shadow: var(--elev-round); }
.round:active .round-c { transform: scale(.94); }
.round.is-hot .round-c { transform: scale(1.08); }
/* «горячая» кнопка растёт к середине экрана, не за край ряда */
.round.is-start .round-c { transform-origin: 0 50%; }
.round.is-end .round-c { transform-origin: 100% 50%; }
.round.is-yes.is-hot .round-c { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 24%, transparent); }
.round.is-no.is-hot .round-c { box-shadow: 0 0 0 6px color-mix(in srgb, var(--bad) 22%, transparent); }
.round:disabled { color: var(--hint); }
.round:disabled .round-c, .round.is-yes:disabled .round-c { background: var(--fill); color: var(--hint); box-shadow: none; transform: none; }

/* ==========================================================================
   Сегменты и вкладки «число над словом»
   ========================================================================== */
.seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 2px; padding: 2px;
  border-radius: var(--r-control); background: var(--seg-track);
}
.seg.is-wide { display: grid; grid-auto-columns: 1fr; width: 100%; }
.seg-b {
  height: 32px; padding: 0 12px; border-radius: var(--r-icon); position: relative;
  font: 500 var(--fs-sub)/1 var(--font-text); white-space: nowrap; color: var(--text); text-align: center;
  transition: background var(--dur-select) var(--ease-standard);
}
.seg-b::after { content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }
.seg-b[aria-pressed="true"] { background: var(--seg-thumb); font-weight: 600; box-shadow: var(--elev-control); }
.seg-b:disabled { color: var(--hint); }

.ntabs {
  display: flex; justify-content: space-between; gap: var(--space-1); min-width: 0;
  padding: 0 var(--space-4); box-shadow: inset 0 -.5px 0 var(--divider);
  container: ntabs / inline-size; /* запасной вид считается от ширины самих разделов */
}
.ntab {
  flex: none; min-width: var(--tap); height: 52px; position: relative;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  white-space: nowrap; color: var(--text-2);
}
.ntab-n { font: 600 var(--fs-body)/18px var(--font-face); color: var(--text); height: 18px; display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.ntab-n .ic { width: 18px; height: 18px; color: var(--text-2); }
.ntab-n.is-none { font: 400 var(--fs-caption)/18px var(--font-text); color: var(--text-2); }
.ntab-l { font: 500 var(--fs-caption)/16px var(--font-text); }
.ntab[aria-selected="true"] .ntab-l { color: var(--text); font-weight: 600; }
.ntab[aria-selected="true"] .ntab-n { color: var(--link); }
.ntab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--link);
}
/* подпись под названием раздела (ui.ntabs, sub; круг 4, п. 19: «Уточнить» — «Не хватает данных»): мелко, не уже
   названия и не шире 5,5 em, переносится по словам (не внутри слова); ряд разделов тогда выше и числа стоят вровень сверху.
   Перенос подписи — не перенос кнопки: оболочка его в check=1 не считает. */
.ntab-sub { display: block; min-width: 100%; max-width: 5.5em; white-space: normal; overflow-wrap: normal; hyphens: manual; font: 400 var(--fs-micro)/14px var(--font-text); color: var(--text-2); }
.ntabs:has(.ntab.has-sub) .ntab { height: 76px; justify-content: flex-start; padding-top: 6px; }
/* на узком кадре высота нужна карточке: подпись не рисуем (она остаётся описанием вкладки для чтеца;
   поток показывает её строкой под разделами, как «В «Ещё 2»: …») */
@container frame (max-width: 340px) {
  .ntab-sub { display: none; }
  .ntabs:has(.ntab.has-sub) .ntab { height: 52px; justify-content: center; padding-top: 0; }
}
.ntab.is-more { display: none; }
.ntab.is-more .ntab-n .ic { width: 16px; height: 16px; }
.ntabs.is-collapsed { justify-content: flex-start; gap: var(--space-5); }
.ntabs.is-collapsed .ntab.is-extra { display: none; }
.ntabs.is-collapsed .ntab.is-more { display: flex; }
/* запасной вид на узком экране: три раздела и «Ещё 2». Пять подписей занимают ~327 px;
   при 375 px ширина содержимого 343 px — запас 16 px на более широкий шрифт iOS */
@container ntabs (max-width: 330px) {
  .ntabs.has-more .ntab.is-extra { display: none; }
  .ntabs.has-more .ntab.is-more { display: flex; }
}
/* scroll: все разделы в ряд с прокруткой. Край со стороны продолжения растворяется (маска),
   у края — стрелка-признак; check=1 считает прокрутку намеренной только в этом виде. */
.ntabs-scroll { position: relative; box-shadow: inset 0 -.5px 0 var(--divider); }
.ntabs.is-scroll {
  justify-content: flex-start; gap: var(--space-5); overflow-x: auto; overflow-y: hidden; position: relative;
  scrollbar-width: none; overscroll-behavior-x: contain; box-shadow: none; container: none;
}
.ntabs.is-scroll::-webkit-scrollbar { display: none; }
.ntabs.is-scroll .ntab { flex: none; }
.ntabs.is-scroll::after { content: ""; flex: none; width: 1px; }
/* --ntabs-fr / --ntabs-fl ставит ui.ntabs: расстояние от края до начала раздела, который не помещается
   целиком (не меньше 24 px под стрелку); растворение — 8 px перед ним, обрезанного слова на краю нет */
.ntabs-scroll.is-more-r .ntabs.is-scroll { -webkit-mask-image: linear-gradient(to right, currentColor calc(100% - var(--ntabs-fr, 56px) - 8px), transparent calc(100% - var(--ntabs-fr, 56px))); mask-image: linear-gradient(to right, currentColor calc(100% - var(--ntabs-fr, 56px) - 8px), transparent calc(100% - var(--ntabs-fr, 56px))); }
.ntabs-scroll.is-more-l .ntabs.is-scroll { -webkit-mask-image: linear-gradient(to left, currentColor calc(100% - var(--ntabs-fl, 56px) - 8px), transparent calc(100% - var(--ntabs-fl, 56px))); mask-image: linear-gradient(to left, currentColor calc(100% - var(--ntabs-fl, 56px) - 8px), transparent calc(100% - var(--ntabs-fl, 56px))); }
.ntabs-scroll.is-more-l.is-more-r .ntabs.is-scroll { -webkit-mask-image: linear-gradient(to right, transparent var(--ntabs-fl, 56px), currentColor calc(var(--ntabs-fl, 56px) + 8px), currentColor calc(100% - var(--ntabs-fr, 56px) - 8px), transparent calc(100% - var(--ntabs-fr, 56px))); mask-image: linear-gradient(to right, transparent var(--ntabs-fl, 56px), currentColor calc(var(--ntabs-fl, 56px) + 8px), currentColor calc(100% - var(--ntabs-fr, 56px) - 8px), transparent calc(100% - var(--ntabs-fr, 56px))); }
.ntabs-hint { position: absolute; top: 0; bottom: 3px; width: 20px; display: none; align-items: center; justify-content: center; color: var(--text-2); pointer-events: none; }
.ntabs-hint .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.ntabs-hint.is-r { right: 2px; }
.ntabs-hint.is-l { left: 2px; }
.ntabs-scroll.is-more-r .ntabs-hint.is-r, .ntabs-scroll.is-more-l .ntabs-hint.is-l { display: flex; }

/* ==========================================================================
   Чипы и метки
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips.is-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); }
.chips.is-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; position: relative;
  border-radius: var(--r-tag); background: var(--fill); color: var(--text);
  font: 500 var(--fs-sub)/1 var(--font-text); white-space: nowrap;
}
.chip::after { content: ""; position: absolute; left: 0; right: 0; top: -7px; bottom: -7px; }
.chip .ic { width: 16px; height: 16px; }
.chip.is-on { background: var(--accent-tint); color: var(--link); font-weight: 600; }
.chip.is-match { background: var(--match-bg); color: var(--match); }
.chip-x { margin-right: -4px; color: currentColor; }
.chip-x .ic { width: 14px; height: 14px; stroke-width: 2.4; }

.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px;
  border-radius: var(--r-tag); white-space: nowrap;
  font: 600 var(--fs-caption)/1 var(--font-text);
  background: var(--tone-bg, var(--fill)); color: var(--tone, var(--text-2));
}
.tag .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.tag.is-quiet { font-weight: 500; }

/* статус «значок + слово» */
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: var(--fs-sub); font-weight: 600; color: var(--tone, var(--text)); }
.status-ic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--tone-bg, var(--fill)); color: var(--tone, var(--text-2)); }
.status-ic .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.status.is-quiet { color: var(--text-2); font-weight: 500; }
.status.is-wrap { white-space: normal; align-items: flex-start; }
.status.is-wrap .status-t { padding-top: 1px; text-wrap: pretty; }

/* ряд «статус · пояснение · время» (ui.metaRow): не уместился — столбцом и без точек;
   доступное имя — фразой с точками (aria-label), точки-разделители скрыты от чтеца */
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); min-width: 0; font-size: var(--fs-sub); color: var(--text-2); }
.meta-row > .meta-p { white-space: nowrap; }
.meta-dot { color: var(--hint); }
.meta-row.is-stacked { flex-direction: column; align-items: flex-start; row-gap: 4px; }
.meta-row.is-stacked > .meta-dot { display: none; }
.meta-row.is-stacked > .meta-p { white-space: normal; text-wrap: pretty; }

/* ==========================================================================
   Совпадение: шкала из 4 сегментов с подписями (фирменный акцент)
   ========================================================================== */
.match { --lvl: var(--match-3); }
.match[data-level="1"] { --lvl: var(--match-1); }
.match[data-level="2"] { --lvl: var(--match-2); }
.match[data-level="3"] { --lvl: var(--match-3); }
.match[data-level="4"] { --lvl: var(--match-4); }
.match-h { display: flex; align-items: baseline; gap: 6px; }
.match-q { font-size: var(--fs-callout); color: var(--text-2); }
.match-v { font: 700 var(--fs-callout)/1 var(--font-face); color: var(--text); }
.match[data-level="3"] .match-v, .match[data-level="4"] .match-v { color: var(--match); }
.match-n { margin-left: auto; font: 500 var(--fs-micro)/1 var(--font-text); color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.match-help { margin-left: auto; }
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 10px; }
.scale i { height: 6px; border-radius: 3px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--divider-strong); }
.scale i.is-on { background: var(--lvl); box-shadow: none; }
.scale-l { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 5px; font-size: var(--fs-micro); color: var(--text-2); }
.scale-l span { white-space: nowrap; }
.scale-l .is-cur { color: var(--text); font-weight: 600; }
/* компактный вид для строки списка: слово и 4 коротких сегмента */
.match.is-compact { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.match.is-compact .scale { display: inline-grid; grid-template-columns: repeat(4, 8px); gap: 2px; margin: 0; }
.match.is-compact .scale i { height: 4px; border-radius: 2px; }
.match.is-compact .match-v { font: 600 var(--fs-sub)/1 var(--font-text); }
.match.is-compact[data-level="1"] .match-v, .match.is-compact[data-level="2"] .match-v { color: var(--text-2); }

/* почему подходит: ✓ / ✗ / ? с причиной словами */
.why { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.why li { display: flex; align-items: flex-start; gap: 9px; font-size: var(--fs-sub); line-height: 20px; color: var(--text-2); }
.why b { color: var(--text); font-weight: 600; }
.g { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.g .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.g-yes { background: var(--good-bg); color: var(--good); }
.g-no { background: var(--bad-bg); color: var(--bad); }
.g-q { background: var(--warn-bg); color: var(--warn); }

/* ==========================================================================
   Плашка отмены (snackbar): 5 с, «Отменить», полоска таймера
   ========================================================================== */
.snack-host { position: absolute; left: 8px; right: 8px; bottom: var(--snack-bottom, 96px); z-index: 6; pointer-events: none; }
/* Плашка с якорем (ряд действий экрана, ui.deck): ложится на нижний ряд текстовых действий якоря, а не на
   карточку над ним — «Как считаем» и «Подробнее» остаются открытыми (п. 22 прогона персон, круг 3).
   Закрытый ряд на время плашки скрыт и недоступен (оболочка ставит inert и .is-under-snack). */
.snack-host.is-over .snack { min-height: var(--tap); }
/* Подпись под главной кнопкой ленты (`.deck > p`) и [data-snack-keep] плашка не закрывает (круг 4, check6/g):
   оболочка опускает плашку под подпись (не ниже низа содержимого) и ставит is-keep — текст плашки с меньшими
   полями по высоте (цель касания «Отменить» — по-прежнему 48 px), чтобы уместиться между подписью и вкладками. */
.snack-host.is-keep .snack-t { padding: 4px 0; }
.is-under-snack { visibility: hidden; }
.snack {
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: 0 4px 0 var(--space-4);
  border-radius: var(--r-control); background: var(--snack-bg); color: var(--snack-text);
  box-shadow: var(--elev-float); font-size: var(--fs-sub);
  animation: snack-in var(--dur-snack) var(--ease-out) both;
}
.snack .ic { width: 18px; height: 18px; flex: none; }
.snack-t { flex: 1 1 auto; min-width: 0; padding: 8px 0; line-height: 1.3; text-wrap: pretty; } /* без многоточия: длинный текст — в две строки */
.snack-t b { font-weight: 600; }
.snack-act { flex: none; height: var(--tap); padding: 0 12px; color: var(--snack-link); font: 600 var(--fs-callout)/1 var(--font-text); white-space: nowrap; }
.snack-timer {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--snack-link);
  transform-origin: 0 50%; animation: snack-timer var(--dur-undo) linear forwards;
}
.snack-acts { flex: none; display: flex; align-items: center; }
/* два действия («Открыть отклик» и «Отменить»): текст во всю ширину, действия — рядом справа под ним */
.snack.is-two { flex-wrap: wrap; row-gap: 0; padding-top: 4px; }
.snack.is-two .snack-t { flex: 1 1 calc(100% - 40px); padding-bottom: 0; }
.snack.is-two .snack-acts { margin-left: auto; }
.snack.is-static { animation: none; }
.snack.is-static .snack-timer { animation: none; transform: scaleX(.62); }
.snack.is-out { animation: snack-out var(--dur-snack) var(--ease-standard) forwards; }
@keyframes snack-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes snack-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes snack-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ==========================================================================
   Шторка (bottom sheet)
   ========================================================================== */
.sheet {
  position: relative; max-height: calc(100% - 24px); overflow-y: auto; scrollbar-width: none;
  background: var(--surface-raised); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding: 6px var(--space-4) calc(var(--space-4) + var(--safe-bottom, 0px));
  box-shadow: var(--edge);
  animation: sheet-in var(--dur-sheet) var(--ease-out) both;
}
.sheet::-webkit-scrollbar { display: none; }
/* внутри шторки: списки и варианты — на подложке --surface-inset, сегменты, поиск и поле времени —
   на --seg-track-raised; так они отличимы от фона шторки в обеих темах */
.sheet { --surface-card: var(--surface-inset); --seg-track: var(--seg-track-raised); }
.sheet .list { box-shadow: none; }
.sheet:focus, .sheet:focus-visible { outline: none; } /* фокус — на элементах внутри, не на самой шторке */
.sheet-grab { width: 36px; height: 5px; border-radius: 3px; background: var(--divider-strong); margin: 0 auto 10px; }
.sheet-h { display: flex; align-items: flex-start; gap: var(--space-2); }
.sheet-title { flex: 1 1 auto; font: 600 var(--fs-headline)/1.2 var(--font-face); letter-spacing: -.015em; padding-top: 6px; text-wrap: balance; }
.sheet-x { flex: none; width: var(--tap); height: var(--tap); margin-top: -4px; display: grid; place-items: center end; color: var(--text-2); }
.sheet-x span { width: 30px; height: 30px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; }
.sheet-x .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.sheet-text { margin-top: var(--space-2); font-size: var(--fs-callout); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.sheet-body { margin-top: var(--space-4); }
.sheet-actions { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-5); }
.sheet-actions .link-act { align-self: center; }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* варианты в шторке: один выбор */
.opts { display: flex; flex-direction: column; gap: var(--space-2); }
.opt {
  display: flex; align-items: flex-start; gap: var(--space-3); width: 100%; min-height: 56px; padding: 12px 14px;
  border-radius: var(--r-control); background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--divider); text-align: left;
}
.opt-mark { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--divider-strong); display: grid; place-items: center; }
.opt-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.opt-t { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; }
.opt-s { font-size: var(--fs-sub); color: var(--text-2); line-height: 1.35; text-wrap: pretty; }
.opt[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-tint); }
.opt[aria-checked="true"] .opt-mark { box-shadow: inset 0 0 0 7px var(--accent); }
.opt:disabled { color: var(--text-2); }
/* сетка коротких вариантов (время через 30 минут): 3 колонки, без кружка */
.opts.is-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.opts.is-grid .opt { min-height: var(--tap); padding: 0; align-items: center; justify-content: center; text-align: center; font-variant-numeric: tabular-nums; }
.opts.is-grid .opt-mark { display: none; }
.opts.is-grid .opt-main { flex: none; }
.opts.is-grid .opt-t { font: 600 var(--fs-body)/1 var(--font-face); }
.opt:disabled .opt-t { color: var(--text-2); }
/* длинные фразы вариантами (layout: 'text'): обычное начертание */
.opts.is-text .opt-t { font-size: var(--fs-callout); font-weight: 400; line-height: 1.45; }

/* ==========================================================================
   Поля ввода, переключатель, время
   ========================================================================== */
.field { padding: 14px var(--space-4) var(--space-4); }
.field.is-bare { padding: 0; }
.field-h { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.field-l { font-size: var(--fs-body); font-weight: 600; }
.input {
  display: block; width: 100%; height: var(--tap); margin-top: 10px; padding: 0 14px;
  border: 1px solid var(--divider-strong); border-radius: var(--r-control);
  background: var(--surface-card); color: var(--text); font-size: var(--fs-body);
}
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input::placeholder { color: var(--hint); }
.input:focus { outline: none; border: 2px solid var(--accent); padding: 0 13px; }
textarea.input:focus { padding: 11px 13px; }
.input:disabled { background: var(--fill); border-color: var(--divider); color: var(--text-2); }
.field-hint { font-size: var(--fs-caption); color: var(--text-2); margin-top: 8px; line-height: 1.4; text-wrap: pretty; }
.field-err { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-caption); color: var(--bad); margin-top: 8px; line-height: 1.4; }
.field-err .ic { width: 16px; height: 16px; margin-top: 1px; }
.field.is-error .input { border: 2px solid var(--bad); padding: 0 13px; }
.search {
  display: flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 12px;
  border-radius: var(--r-control); background: var(--seg-track); color: var(--text-2);
}
.search .ic { width: 18px; height: 18px; }
.search input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font-size: var(--fs-body); }
.search input::placeholder { color: var(--hint); }

/* переключатель: кнопка role="switch" */
.switch {
  flex: none; width: 51px; height: 31px; border-radius: 16px; position: relative;
  background: var(--divider-strong); transition: background var(--dur-select) var(--ease-standard);
}
.switch::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: var(--switch-thumb); box-shadow: 0 1px 3px var(--switch-shadow);
  transition: transform var(--dur-select) var(--ease-out);
}
.switch::after { content: ""; position: absolute; inset: -9px 0; }
.switch[aria-checked="true"] { background: var(--match); }
.switch[aria-checked="true"]::before { transform: translateX(20px); }
.switch:disabled { opacity: .45; }

/* галочка: вся строка — кнопка role="checkbox" */
.checkrow { display: flex; align-items: flex-start; gap: var(--space-3); width: 100%; min-height: var(--tap); padding: 12px var(--space-4); text-align: left; color: inherit; }
.check-box {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: var(--r-tag);
  box-shadow: inset 0 0 0 2px var(--divider-strong); display: grid; place-items: center; color: transparent;
  transition: background var(--dur-select) var(--ease-standard);
}
.check-box .ic { width: 16px; height: 16px; stroke-width: 2.8; }
.checkrow[aria-checked="true"] .check-box { background: var(--accent); box-shadow: none; color: var(--on-accent); }
.checkrow-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.checkrow-t { font-size: var(--fs-body); line-height: 1.35; }
.checkrow-s { font-size: var(--fs-sub); color: var(--text-2); line-height: 1.35; text-wrap: pretty; }
.checkrow:disabled { color: var(--text-2); }
.checkrow:disabled .check-box { opacity: .5; }

/* поле выбора времени: кнопка открывает шторку со списком через 30 мин */
.timefield {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
  height: 40px; min-width: 84px; padding: 0 10px 0 12px; position: relative;
  border-radius: var(--r-control); background: var(--seg-track); color: var(--text);
  font: 600 var(--fs-body)/1 var(--font-face); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.timefield::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
.timefield .ic { width: 16px; height: 16px; color: var(--text-2); stroke-width: 2.2; }
.timefield.is-open { box-shadow: inset 0 0 0 2px var(--accent); }
.timefield.is-error { box-shadow: inset 0 0 0 2px var(--bad); }
.timefield:disabled { color: var(--hint); }
.timefield.is-empty { color: var(--hint); font-family: var(--font-text); font-weight: 500; }
.timerange { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.timerange-dash { color: var(--text-2); }
.timerange-x { width: var(--tap); height: var(--tap); display: grid; place-items: center; color: var(--text-2); margin-left: -4px; }
.timerange-x .ic { width: 18px; height: 18px; }
.timerange-note { font-size: var(--fs-caption); color: var(--text-2); white-space: nowrap; }

/* ==========================================================================
   Пустое состояние, ошибка, загрузка, баннер
   ========================================================================== */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-8) var(--space-6) var(--space-6); }
.empty-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--tone-bg, var(--fill)); color: var(--tone, var(--text-2)); }
.empty-ic .ic { width: 30px; height: 30px; stroke-width: 1.6; }
.empty-t { margin-top: var(--space-4); font: 600 var(--fs-section)/1.3 var(--font-face); text-wrap: balance; }
.empty-s { margin-top: var(--space-2); max-width: 300px; font-size: var(--fs-callout); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.empty .btn { margin-top: var(--space-5); }
.empty.is-error .empty-ic { background: var(--bad-bg); color: var(--bad); }
.empty.is-compact { padding: var(--space-6) var(--space-4); }

.inline-err { display: flex; align-items: center; gap: var(--space-3); padding: 12px var(--space-4); }
.inline-err .ic { width: 20px; height: 20px; color: var(--bad); flex: none; }
.inline-err-t { flex: 1 1 auto; min-width: 0; font-size: var(--fs-sub); line-height: 1.35; }

.skel { display: block; height: 12px; border-radius: 6px; background: var(--fill); position: relative; overflow: hidden; }
.skel::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--fill), transparent);
  animation: skel 1.4s var(--ease-standard) infinite;
}
.skel.is-t { height: 16px; }
.skel.is-big { height: 24px; }
.skel.is-ic { width: 30px; height: 30px; border-radius: var(--r-icon); flex: none; }
.skel.w-30 { width: 30%; } .skel.w-45 { width: 45%; } .skel.w-60 { width: 60%; } .skel.w-75 { width: 75%; } .skel.w-90 { width: 90%; }
.skel-cell { display: flex; align-items: center; gap: var(--space-3); min-height: 64px; padding: 12px var(--space-4); }
.skel-cell .skel-col { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
@keyframes skel { to { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; } }

.banner {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: var(--r-container); background: var(--tone-bg, var(--fill)); color: var(--text);
  font-size: var(--fs-sub); line-height: 1.4;
}
.banner > .ic { width: 20px; height: 20px; color: var(--tone, var(--text-2)); margin-top: 0; flex: none; }
.banner-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.banner-t { font-weight: 600; color: var(--tone, var(--text)); }
.banner-s { color: var(--text); text-wrap: pretty; }
.banner .link-act { min-height: 36px; margin-top: 2px; align-self: flex-start; color: var(--tone, var(--link)); }

/* ==========================================================================
   Карточка вакансии для свайпа, стопка, панель действий
   ========================================================================== */
.vstack { flex: 1 1 auto; min-height: 0; position: relative; margin: var(--space-3) var(--space-4) 0; }
.vcard {
  position: absolute; left: 0; right: 0; top: 0; bottom: 14px; overflow: hidden;
  background: var(--surface-raised); border-radius: var(--r-container); box-shadow: var(--elev-card);
  padding: var(--space-4); display: flex; flex-direction: column;
  transform-origin: 50% 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) rotate(var(--rot, 0deg));
}
.vcard.is-next {
  background: var(--surface-card); box-shadow: var(--elev-next); pointer-events: none;
  transform: translateY(calc(14px * (1 - var(--lift, 0)))) scale(calc(.94 + .06 * var(--lift, 0)));
}
.vcard.is-next .vc-body { opacity: calc(.55 + .45 * var(--lift, 0)); }
.vcard.is-returning { transition: transform var(--dur-return) var(--ease-return); }
.vcard.is-leaving { transition: transform var(--dur-exit) var(--ease-exit), opacity var(--dur-exit) var(--ease-exit); opacity: 0; }
.vcard.is-next.is-lifting { transition: transform var(--dur-lift) var(--ease-out); }
.vc-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
/* в карточке не сжимается ничего, кроме списка причин: при нехватке высоты он обрезается снизу */
.vc-body > * { flex: none; }
.vc-body > .why { flex: 0 1 auto; min-height: 0; overflow: hidden; }
.vc-body > .vc-foot { margin-top: auto; }
.vcard.is-top, .vcard.is-next { container: vcard / inline-size; }
.match-q-s { display: none; }
@container vcard (max-width: 300px) {
  .match-q-l { display: none; }
  .match-q-s { display: inline; }
}
/* на узком кадре (320 px) «Насколько подходит:» сокращается до «Подходит:» везде, не только в стопке */
@container frame (max-width: 340px) {
  .match-q-l { display: none; }
  .match-q-s { display: inline; }
}
.vc-title {
  font: 600 var(--fs-headline)/1.2 var(--font-face); letter-spacing: -.015em; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; /* полное название — в «Подробнее» */
}
.vc-line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-top: 4px; min-width: 0; }
.vc-co { font-size: var(--fs-callout); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vc-liked { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: var(--match); }
.vc-liked .ic { width: 16px; height: 16px; }
.vc-liked .ic path { fill: currentColor; }
.vc-flag { align-self: flex-start; margin-bottom: 8px; }
.vc-src { flex: none; font-size: var(--fs-caption); color: var(--hint); white-space: nowrap; }
.vc-pay { font: 700 var(--fs-headline)/1.2 var(--font-face); letter-spacing: -.01em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.vc-pay.is-none { font: 500 var(--fs-body)/1.3 var(--font-text); color: var(--text-2); letter-spacing: 0; }
.vc-pay-est { display: block; font: 400 var(--fs-caption)/1.35 var(--font-text); color: var(--text-2); margin-top: 2px; letter-spacing: 0; }
/* пометка вилки, прочитанной моделью (ui.salary, salary_model), — мелким шрифтом, как .vc-pay-est: шрифт
   вилки она не наследует. Отдельной строкой под вилкой — в правилах мест (лента — area_feed.css): в строке
   списка она может стоять и рядом с вилкой */
.vc-pay-mark { font: 400 var(--fs-caption)/1.35 var(--font-text); color: var(--text-2); letter-spacing: 0; }
.vc-meta { font-size: var(--fs-sub); color: var(--text-2); margin-top: 2px; }
.vc-sep { height: .5px; background: var(--divider); margin: 12px 0; flex: none; }
.vc-foot { margin-top: auto; padding-top: var(--space-2); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
/* индикатор жеста: полоса внизу карточки, насыщенность — от смещения (--p = |dx| / порог) */
.vc-band {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: 600 var(--fs-body)/1 var(--font-text); white-space: nowrap;
  border-top: .5px solid var(--divider); opacity: 0; pointer-events: none;
}
.vc-band .ic { width: 22px; height: 22px; }
.vcard.is-drag-yes .vc-band.is-yes, .vcard.is-drag-no .vc-band.is-no { opacity: 1; }
.vc-band.is-yes { color: var(--link); background: color-mix(in srgb, var(--accent-tint) calc(var(--p, 1) * 100%), var(--surface-raised)); }
.vc-band.is-no { color: var(--bad); background: color-mix(in srgb, var(--bad-bg) calc(var(--p, 1) * 100%), var(--surface-raised)); }
/* подпись полосы — по центру: прижатая к стороне, что остаётся на экране,
   «Не подходит» при смахивании влево стояла справа, у кнопки «Подходит», и
   читалась как «вправо — не подходит» (живой отзыв кандидата 03.11) */
.vcard.is-past .vc-band { font-weight: 700; }

.deck { flex: none; padding: var(--space-2) var(--space-4) 0; display: flex; flex-direction: column; gap: 2px; }
.deck-main { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.deck-remain { align-self: flex-start; margin-top: 18px; font-size: var(--fs-sub); color: var(--text-2); white-space: nowrap; }
.deck-remain b { font: 700 var(--fs-callout)/1 var(--font-face); color: var(--text); font-variant-numeric: tabular-nums; }
.deck .acts-row { justify-content: space-between; }
.deck.is-disabled .deck-remain { color: var(--hint); }
.deck .acts-row.is-two { justify-content: center; gap: var(--space-3); }
/* на узком кадре у «Компания нравится» без значка: строка из трёх ссылок не помещается; состояние — цветом и aria-pressed */
@container frame (max-width: 340px) { .deck .acts-row .link-act[aria-pressed] .ic { display: none; } }

/* ==========================================================================
   Статистика: крупные числа с линейкой, списки чисел, воронка, столбики
   ========================================================================== */
/* пара крупных чисел рядом, между ними тонкая вертикальная линейка (из «Блокнота») */
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-card); border-radius: var(--r-container); box-shadow: var(--edge); }
.stat { padding: 14px var(--space-4) var(--space-4); min-width: 0; display: flex; flex-direction: column; }
.stat + .stat { box-shadow: inset 1px 0 0 var(--divider); }
.stat-l { font-size: var(--fs-sub); font-weight: 600; line-height: 1.3; min-height: 36px; text-wrap: balance; }
.stat-v { margin-top: 6px; font: 700 var(--fs-num-xl)/1 var(--font-face); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-v small { font: 600 var(--fs-section)/1 var(--font-face); letter-spacing: -.01em; margin-left: 2px; }
.stat-v.is-none { font: 500 var(--fs-headline)/1.1 var(--font-face); color: var(--text-2); letter-spacing: -.01em; }
.stat-d { margin-top: 8px; font-size: var(--fs-caption); color: var(--text-2); line-height: 1.35; text-wrap: pretty; }
.stat-tag { margin-top: 6px; align-self: flex-start; }

/* список чисел: подпись и определение слева, число справа по правому краю */
.numlist > * { display: flex; align-items: center; gap: var(--space-4); min-height: 60px; padding: 10px var(--space-4); width: 100%; text-align: left; color: inherit; }
.numlist-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.numlist-l { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; }
.numlist-d { font-size: var(--fs-caption); color: var(--text-2); line-height: 1.35; text-wrap: pretty; }
.numlist-v { flex: none; min-width: 44px; text-align: right; font: 600 var(--fs-num)/1 var(--font-face); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.numlist-v.is-none { font: 400 var(--fs-sub)/1.2 var(--font-text); color: var(--text-2); letter-spacing: 0; }
.numlist .chev { margin-left: -8px; }

/* воронка: шаг, «N % дошли» или «пока нет», число, полоса, определение */
.funnel-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px var(--space-4) 4px; font-size: var(--fs-caption); color: var(--text-2); }
.funnel-leg > span { display: inline-flex; align-items: center; gap: 6px; }
.funnel-row { padding: 12px var(--space-4) 14px; }
.funnel-top { display: flex; align-items: baseline; gap: var(--space-2); }
.funnel-l { font-size: var(--fs-callout); font-weight: 600; }
.funnel-step { font-size: var(--fs-caption); color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.funnel-step b { color: var(--match); font-weight: 600; }
.funnel-v { margin-left: auto; font: 700 var(--fs-headline)/1 var(--font-face); font-variant-numeric: tabular-nums; }
.funnel-v.is-none { font: 400 var(--fs-sub)/1.2 var(--font-text); color: var(--text-2); }
.funnel-d { font-size: var(--fs-caption); color: var(--text-2); margin-top: 2px; text-wrap: pretty; }
.bar { position: relative; height: 8px; border-radius: 4px; background: var(--fill); margin-top: 9px; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); border-radius: 4px; background: var(--match); }
.bar i.is-neutral { background: var(--divider-strong); }
.bar i.is-zero { width: 0; }
.sw { display: inline-block; width: 12px; height: 8px; border-radius: 2px; background: var(--match); flex: none; }
.sw.is-neutral { background: var(--divider-strong); }

/* столбики с подписями: сайт, «6 откликов · 2 ответа», две полосы */
.hbar { padding: 12px var(--space-4) 14px; }
.hbar-top { display: flex; align-items: baseline; gap: var(--space-2); }
.hbar-l { font-size: var(--fs-callout); font-weight: 600; white-space: nowrap; }
.hbar-v { margin-left: auto; font-size: var(--fs-sub); color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbar-v b { font: 700 var(--fs-callout)/1 var(--font-face); color: var(--text); }
.hbar-r { flex: none; min-width: 48px; text-align: right; font: 700 var(--fs-callout)/1 var(--font-face); font-variant-numeric: tabular-nums; color: var(--match); white-space: nowrap; }
.hbar-r.is-none { font: 500 var(--fs-caption)/1.2 var(--font-text); color: var(--text-2); }
.hbar-s { display: flex; align-items: center; gap: var(--space-2); margin-top: 6px; font-size: var(--fs-caption); color: var(--text-2); }
.hbar-track { position: relative; height: 10px; margin-top: 8px; border-radius: 3px; overflow: hidden; }
.hbar-track .is-a { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); border-radius: 3px; background: var(--divider-strong); }
.hbar-track .is-b { position: absolute; left: 0; top: 0; bottom: 0; width: var(--wb, 0%); border-radius: 3px; background: var(--match); }

/* ==========================================================================
   Хронология событий
   ========================================================================== */
.timeline { padding: 6px var(--space-4) 8px; }
.tl { display: grid; grid-template-columns: 20px 1fr auto; column-gap: var(--space-3); position: relative; padding: 8px 0 10px; }
.tl::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--divider); }
.tl:first-child::before { top: 18px; }
.tl:last-child::before { bottom: calc(100% - 18px); }
.tl-dot { position: relative; z-index: 1; width: 20px; height: 20px; margin-top: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface-card); }
.tl-dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--match); }
.tl.is-now .tl-dot i { width: 14px; height: 14px; background: var(--surface-card); box-shadow: inset 0 0 0 3px var(--accent); }
.tl.is-next .tl-dot i { background: var(--surface-card); box-shadow: inset 0 0 0 2px var(--divider-strong); }
.tl.is-bad .tl-dot i { background: var(--bad); }
.tl-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-t { font-size: var(--fs-callout); font-weight: 600; line-height: 1.3; }
.tl.is-next .tl-t { font-weight: 500; color: var(--text-2); }
.tl-s { font-size: var(--fs-sub); color: var(--text-2); line-height: 1.35; text-wrap: pretty; }
.tl-d { font-size: var(--fs-caption); color: var(--text-2); white-space: nowrap; padding-top: 2px; font-variant-numeric: tabular-nums; }
/* строка пояснения у первого действия администратора (ui.timeline, data.adminNote; решение 22.10) */
.tl-s.tl-note { font-size: var(--fs-caption); line-height: 1.4; }

/* Строка пояснения у действия администратора (ui.adminNote): одна, сразу под строкой о действии.
   Вторичный мелкий текст, без цвета-сигнала: это сведение, не предупреждение. */
.admin-note { margin: var(--space-2) var(--space-4) 0; font-size: var(--fs-caption); line-height: 1.4; color: var(--text-2); text-wrap: pretty; }
.list > .admin-note, .cell-wrap > .admin-note { margin: 0; padding: 0 var(--space-4) var(--space-3) 58px; }

/* ==========================================================================
   «Что получит работодатель» (из «Сигнала») и письмо-документ
   ========================================================================== */
.kvt > * { display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: 10px var(--space-4); }
.kvt-k { flex: none; width: 72px; font-size: var(--fs-caption); color: var(--text-2); line-height: 1.3; align-self: flex-start; padding-top: 2px; }
.kvt-v { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kvt-t { font-size: var(--fs-callout); font-weight: 500; line-height: 1.3; }
.kvt-s { font-size: var(--fs-caption); color: var(--text-2); line-height: 1.35; }
.kvt-a { flex: none; }
.kvt .link-act { min-height: 40px; font-size: var(--fs-sub); }

.letter {
  background: var(--surface-raised); border-radius: var(--r-container); box-shadow: var(--edge);
  padding: var(--space-5) var(--space-5) var(--space-5); font-size: var(--fs-body); line-height: 26px; color: var(--text);
}
.letter p { margin: 0 0 12px; text-wrap: pretty; }
.letter p:last-child { margin-bottom: 0; }
.letter-sign { margin-top: var(--space-4) !important; padding-top: var(--space-3); box-shadow: inset 0 .5px 0 var(--divider); }
.letter-sign-note { display: block; font-size: var(--fs-micro); line-height: 1.35; color: var(--text-2); margin-top: 6px; }
.letter-meta { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin: 0 0 var(--space-3); font-size: var(--fs-caption); color: var(--text-2); }
.letter-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-4); padding: 0 var(--space-1) var(--space-3); font-size: var(--fs-caption); color: var(--text-2); }
.lg { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lg-exp { width: 22px; height: 14px; border-radius: 3px; background: var(--match-mark); box-shadow: inset 0 -2px 0 var(--match); }
.lg-gen { width: 22px; height: 14px; border-bottom: 2px dotted var(--text-2); }
.ph-exp { background: var(--match-mark); color: inherit; border-radius: 3px; padding: 2px 0; box-shadow: inset 0 -2px 0 var(--match); -webkit-box-decoration-break: clone; box-decoration-break: clone; cursor: pointer; }
.ph-gen { text-decoration: underline dotted var(--text-2); text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; }
.ph-exp.is-sel { background: color-mix(in srgb, var(--match) 34%, transparent); box-shadow: inset 0 -3px 0 var(--match); }
.letter.is-plain .ph-exp { background: none; box-shadow: none; padding: 0; cursor: auto; }
.letter.is-plain .ph-gen { text-decoration: none; cursor: auto; }
.letter-name { display: inline; padding: 0 3px; border-radius: 3px; background: var(--fill); }
.basis { margin-top: var(--space-3); }
.basis-l { display: block; font-size: var(--fs-caption); color: var(--text-2); margin: 0 var(--space-1) var(--space-2); }

/* ==========================================================================
   Сайт в «Сайтах и входах»: нейтральный значок и название, без монограмм
   ========================================================================== */
.site-st { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-2); margin-top: 4px; }
.site-when { font-size: var(--fs-caption); color: var(--hint); white-space: nowrap; }
.site-use { font-size: var(--fs-caption); color: var(--text-2); line-height: 1.35; }
.site-todo { font-size: var(--fs-sub); color: var(--text); line-height: 1.35; margin-top: 2px; text-wrap: pretty; }
.site-n { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.site-n b { font: 700 var(--fs-section)/1 var(--font-face); color: var(--text); }
.site-n small { font-size: var(--fs-micro); color: var(--text-2); margin-top: 2px; }

/* шторка «Как считаем совпадение»: оси, значки, уровни */
.mhelp-row { display: flex; flex-direction: column; gap: 2px; padding: 10px var(--space-4); font-size: var(--fs-sub); color: var(--text-2); line-height: 1.35; }
.mhelp-row b { font-size: var(--fs-callout); color: var(--text); font-weight: 600; }
.mhelp-g { margin: var(--space-4) var(--space-1) 0; }
.mhelp-lv { margin: var(--space-4) var(--space-1) 0; }
.mhelp-n { margin: var(--space-3) var(--space-1) 0; font-size: var(--fs-caption); color: var(--text-2); line-height: 1.4; }
