/* Дизайн-система v2.44.1: копия components.css из «01 Бренд/design-system» (2026-11-27), tools/sync-ds.mjs. Не править здесь. */
/* ==========================================================================
   Форма Будущего — components.css
   Только на токенах из tokens.css. Сырые цвета, радиусы и длительности
   здесь запрещены.

   Состав: база, типографика, материалы, градиент, reveal, кнопки, теги,
   кружки, карточки, поля, чекбокс, радио, переключатель, слайдер,
   сегмент-контрол, навигация, сайдбар, модалка, шторка, тост, тултип,
   меню, таблица, кнопка-переключатель, появление и исчезание (.presence).
   Продуктовый слой (2.0.0): иконка, каркас окна, разделитель панелей,
   тулбар, поиск, список сайдбара, выделение и сортировка в таблице, бейдж,
   раскрытие, инспектор, степпер, прогресс, окно подтверждения, контекстное
   меню, HUD, клавиша; носитель [data-media="app"] — в конце файла.
   Поведение — в motion.js (FF.ui).
   Классы .is-hover / .is-active / .is-focus — только для показа
   состояний на витрине.
   ========================================================================== */

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-0);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--dur-base) var(--ease-standard);
}

[data-theme] { color: var(--text); }

:where(h1, h2, h3, h4, p, figure, blockquote, ul, ol) { margin: 0; }
img, svg, canvas, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.tnum, table, output { font-variant-numeric: tabular-nums; }

/* Полоса прокрутки: тонкая, ползунок --line-strong, дорожка без фона. Safari без scrollbar-color — через ::-webkit-scrollbar. */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
  ::-webkit-scrollbar-thumb { border-radius: var(--r-full); background: var(--line-strong); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Типографические роли ---------- */
.t-display {
  font-size: clamp(var(--fs-5), 7vw, var(--fs-8));
  font-weight: var(--fw-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.t-h1 {
  font-size: clamp(var(--fs-4), 4.6vw, var(--fs-6));
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}
.t-h2 {
  font-size: clamp(var(--fs-3), 3.2vw, var(--fs-5));
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}
.t-h3 {
  font-size: var(--fs-2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}
.t-lead {
  font-size: clamp(var(--fs-1), 2.2vw, var(--fs-2));
  font-weight: var(--fw-light);
  line-height: 1.3;
  text-wrap: pretty;
}
.t-body { font-size: var(--fs-0); font-weight: var(--fw-regular); line-height: var(--lh-body); text-wrap: pretty; }
.t-small { font-size: var(--fs-m1); line-height: 1.45; }
.t-label {
  font-size: var(--fs-m1);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  letter-spacing: var(--ls-label);
}
.t-muted { color: var(--text-2); }
.t-accent { color: var(--accent); }
.t-figure {
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Надзаголовок: лайм + квадратный маркер. На светлом фоне лайм как текст
   не используется — маркер остаётся лаймовым, текст становится основным. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-m1);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  letter-spacing: var(--ls-label);
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: var(--eyebrow-marker);
  height: var(--eyebrow-marker);
  background: var(--lime);
}
[data-theme="light"] .eyebrow { color: var(--text); }
[data-theme="light"] .eyebrow::before { outline: 1px solid var(--line-strong); }

/* ---------- Материалы ---------- */
.glass,
.glass-strong,
.glass-dark {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-edge), var(--glass-shadow);
  background: var(--glass-fallback);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
  }
  .glass-strong {
    background: var(--glass-strong-fill);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
  }
  .glass-dark {
    background: var(--glass-dark-fill);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
  }
}
.glass-strong { border-radius: var(--panel-r); }
.glass-dark {
  border-radius: var(--r-md);
  color: var(--on-accent); /* подпись поверх фото: всегда светлая */
  box-shadow: none;
  border-color: transparent;
}
.solid {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* ---------- Жидкий градиент ---------- */
.ff-gradient {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--grad-base);
}
.ff-gradient > canvas[data-ff-gradient] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.ff-gradient-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.ff-grad-fallback { background: var(--grad-fallback); }

/* ---------- Появление (reveal) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-distance)) scale(var(--reveal-scale));
  filter: blur(var(--reveal-blur));
  transition:
    opacity calc(var(--dur-slow) * var(--exit-ratio)) var(--ease-exit),
    transform calc(var(--dur-slow) * var(--exit-ratio)) var(--ease-exit),
    filter calc(var(--dur-slow) * var(--exit-ratio)) var(--ease-exit);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity var(--dur-slow) var(--ease-entrance),
    transform var(--dur-slow) var(--ease-entrance),
    filter var(--dur-slow) var(--ease-entrance);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].is-in {
    transform: none;
    filter: none;
    transition: opacity var(--dur-instant) linear;
    transition-delay: 0ms;
  }
}
@media (scripting: none) {
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ==========================================================================
   Кнопки
   <button class="btn btn--primary">…</button>
   Варианты: --primary --lime --glass --outline --ghost; размеры --s --l; --icon
   Состояния: :hover :active :focus-visible :disabled aria-busy="true"
   ========================================================================== */
.btn {
  --btn-h: var(--control-h-m);
  --btn-px: var(--control-px-m);
  --btn-fs: var(--fs-ui-m);
  --btn-fg: var(--text);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: var(--btn-h);
  padding: 0 var(--btn-px);
  border: var(--stroke-tag) solid transparent;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--btn-fg);
  font: inherit;
  font-size: var(--btn-fs);
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* отпускание — пружиной */
  transition:
    transform var(--dur-spring) var(--ease-spring),
    box-shadow var(--dur-fast) var(--ease-standard);
}
/* слой наведения/нажатия: анимируется только opacity */
.btn::before {
  content: "";
  position: absolute;
  inset: calc(var(--stroke-tag) * -1);
  z-index: -1;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { opacity: var(--hover-overlay); }
}
.btn.is-hover::before { opacity: var(--hover-overlay); }
/* нажатие — мгновенно */
.btn:active,
.btn.is-active {
  transform: scale(var(--press-scale));
  transition: transform calc(var(--dur-instant) / 2) var(--ease-standard);
}
.btn:active::before,
.btn.is-active::before { opacity: var(--press-overlay); }
.btn.is-focus { box-shadow: var(--focus-ring); }

.btn--s { --btn-h: var(--control-h-s); --btn-px: var(--control-px-s); --btn-fs: var(--fs-ui-s); }
.btn--l { --btn-h: var(--control-h-l); --btn-px: var(--control-px-l); --btn-fs: var(--fs-ui-l); }
.btn--icon { width: var(--btn-h); padding: 0; }
.btn--block { width: 100%; }

.btn--primary { --btn-fg: var(--on-accent); background: var(--accent); }
.btn--lime    { --btn-fg: var(--on-lime); background: var(--lime); }
.btn--outline { border-color: var(--accent); }
.btn--glass {
  border-color: var(--glass-border);
  background: var(--glass-fallback);
  box-shadow: var(--glass-edge);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn--glass {
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
  }
}
.btn--glass:focus-visible,
.btn--glass.is-focus { box-shadow: var(--glass-edge), var(--focus-ring); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: var(--disabled-opacity);
  cursor: not-allowed;
  transform: none;
}
.btn:disabled::before,
.btn[aria-disabled="true"]::before { opacity: 0; }

/* Загрузка: подпись прячется, размер кнопки не меняется */
.btn[aria-busy="true"] { color: transparent; cursor: progress; }
.btn[aria-busy="true"]::before { opacity: 0; }
.btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  width: calc(var(--btn-fs) + 2px);
  height: calc(var(--btn-fs) + 2px);
  border: 2px solid var(--btn-fg);
  border-right-color: transparent;
  border-radius: var(--r-full);
  animation: ff-spin var(--dur-cinematic) linear infinite;
}
@keyframes ff-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::after { animation-duration: calc(var(--dur-cinematic) * 3); }
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ==========================================================================
   Кнопка-переключатель: aria-pressed="true" — включено (Прогулка, Застройка)
   ========================================================================== */
.btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgb(var(--accent-rgb) / .24);
}
.btn--primary[aria-pressed="true"],
.btn--lime[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--text); }

/* ==========================================================================
   Появление и исчезание: .presence + атрибут hidden
   Элемент никогда не пропадает резко: при hidden он уходит тем же путём,
   каким пришёл, и только потом получает display: none. Переходы CSS
   перехватываются на лету — повторный клик разворачивает движение
   с текущего положения.
   Направление: --presence-x / --presence-y / --presence-scale
   или готовые модификаторы ниже. Только opacity, translate, scale, blur.
   ========================================================================== */
.presence {
  --presence-x: 0px;
  --presence-y: 8px;
  --presence-scale: .97;
  transition:
    opacity var(--dur-base) var(--ease-entrance),
    translate var(--dur-spring) var(--ease-spring),
    scale var(--dur-spring) var(--ease-spring),
    filter var(--dur-base) var(--ease-entrance),
    display var(--dur-base) allow-discrete,
    overlay var(--dur-base) allow-discrete;
}
.presence[hidden] {
  display: none;
  opacity: 0;
  translate: var(--presence-x) var(--presence-y);
  scale: var(--presence-scale);
  filter: blur(var(--reveal-blur));
  pointer-events: none;
  transition:
    opacity calc(var(--dur-base) * var(--exit-ratio)) var(--ease-exit),
    translate calc(var(--dur-base) * var(--exit-ratio)) var(--ease-exit),
    scale calc(var(--dur-base) * var(--exit-ratio)) var(--ease-exit),
    filter calc(var(--dur-base) * var(--exit-ratio)) var(--ease-exit),
    display calc(var(--dur-base) * var(--exit-ratio)) allow-discrete,
    overlay calc(var(--dur-base) * var(--exit-ratio)) allow-discrete;
}
@starting-style {
  .presence:not([hidden]) {
    opacity: 0;
    translate: var(--presence-x) var(--presence-y);
    scale: var(--presence-scale);
    filter: blur(var(--reveal-blur));
  }
}
/* Смена темы — кросс-фейд всей страницы (FF.ui.crossfade), без резкого скачка яркости */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--dur-base);
  animation-timing-function: var(--ease-standard);
}

/* Из кнопки: поповер растёт от точки --origin (ставит FF.ui.anchor) */
.presence--pop { --presence-y: 6px; --presence-scale: .94; transform-origin: var(--origin, 50% 100%); }
/* Панели у края экрана: приходят и уходят через свой край */
.presence--left  { --presence-x: -24px; --presence-y: 0px; --presence-scale: 1; }
.presence--right { --presence-x: 24px;  --presence-y: 0px; --presence-scale: 1; }
.presence--down  { --presence-y: -8px; }
.presence--fade  { --presence-y: 0px; --presence-scale: 1; }

@media (prefers-reduced-motion: reduce) {
  .presence, .presence[hidden] {
    --presence-x: 0px;
    --presence-y: 0px;
    --presence-scale: 1;
    filter: none;
  }
}

/* ==========================================================================
   Теги-пилюли и кружки
   ========================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: var(--tag-h);
  padding: 0 var(--sp-3);
  border: var(--stroke-tag) solid var(--accent);
  border-radius: var(--r-full);
  color: var(--text);
  font-size: var(--fs-ui-s);
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
}
.tag--lime  { border-color: var(--lime); background: var(--lime); color: var(--on-lime); }
.tag--muted { border-color: var(--line-strong); color: var(--text-2); }
/* «Внимание» (2.8.0): не хватает данных, нужно действие — не ошибка и не успех.
   <span class="tag tag--attention"><svg class="ui-icon">…info</svg>Не хватает: 2</span>
   Заливка акцентом с прозрачностью и значок: не красный (--danger — только ошибки) и не лайм (сигнал, ≤ 5 %).
   Отличается от обычного тега-статуса (контур) заливкой и значком; текст основным цветом — контраст как у текста. */
.tag--attention { border-color: transparent; background: var(--attention-fill); color: var(--on-attention-fill); }
.tag--attention > .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); }
.tag__dot { width: 6px; height: 6px; flex: none; background: currentColor; }
/* Тег без обводки (2.42.0, [PRODUCTION], задача 9.33 3D-вьюера): плотный список, где у строки несколько признаков
   («НПМ · IFC · АГР» у объекта), — контур на каждом теге перегружает список.
   <span class="tag tag--soft" title="IFC модель загружена">IFC</span>
   <span class="tag tag--soft tag--muted" title="Альбома АГР нет">АГР</span>
   Есть — нейтральная заливка --fill-2 и текст основным цветом; нет (+ .tag--muted) — без заливки, текст приглушён
   --label-3. Цвет не единственный признак: что значит метка, говорит подсказка словами. Без лайма и акцента. */
.tag--soft { border-color: transparent; background: var(--fill-2); color: var(--label); }
.tag--soft.tag--muted { border-color: transparent; background: transparent; color: var(--label-3); }
/* Значки готовности (2.44.0, [PRODUCTION], задача 9.33 3D-вьюера; вариант B — выбор пользователя 27.11.2026):
   что у объекта уже есть — рядом значков справа в строке списка вместо ряда тегов.
   <span class="ready-marks" role="img" aria-label="Есть: модель, IFC. Нет: альбом АГР, окружение" title="…">
     <span class="ready-marks__item" data-on><svg class="ui-icon">…box</svg></span>
     <span class="ready-marks__item"><svg class="ui-icon">…file-text</svg></span></span>
   Порядок значков постоянный (место значка — тоже признак); есть — основным цветом (data-on), нет — --label-3.
   Значок не единственный признак: что есть и чего нет — словами в aria-label и подсказке. Без лайма и акцента;
   в выделенной строке — цветом строки. */
.ready-marks { display: inline-flex; flex: none; align-items: center; gap: calc(var(--sp-1) + 2px); }
.ready-marks__item { display: inline-grid; place-items: center; color: var(--label-3); }
.ready-marks__item[data-on] { color: var(--label); }
.ready-marks__item > .ui-icon { width: var(--icon-s); height: var(--icon-s); color: inherit; }
/* Текст тега, который может не влезть (2.22.0): <span class="tag"><svg class="ui-icon">…</svg><span class="tag__text">Не заполнено: паспорт…</span></span>.
   Текст в обёртке сокращается многоточием, если тег ограничен шириной родителя (max-inline-size: 100%); полный текст — в title
   (ставит проект, когда текст сокращён). Без обёртки многоточие не работает: голый текст во flex-теге — анонимный элемент. */
.tag__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.step {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--step-size);
  height: var(--step-size);
  border: var(--stroke-tag) solid var(--accent);
  border-radius: var(--r-full);
  color: var(--text);
  font-size: var(--fs-ui-m);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.step svg { width: 18px; height: 18px; }
.steps { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.steps__line { flex: 1 1 var(--sp-6); min-width: var(--sp-5); height: 1px; background: var(--line-strong); }

/* ==========================================================================
   Карточки (материал задаётся .glass / .glass-strong / .solid)
   ========================================================================== */
.card {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--sp-2);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
}
.card__eyebrow { margin-bottom: var(--sp-2); }
.card__title { font-size: var(--fs-2); font-weight: var(--fw-bold); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.card__text { color: var(--text-2); font-size: var(--fs-ui-m); line-height: var(--lh-body); }
.card__figure {
  font-size: var(--fs-6);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.card__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }

/* 3D-иконка выходит за верхний край */
.card--icon { margin-top: calc(var(--icon-3d) * .5); padding-top: calc(var(--icon-3d) * .55); }
.card__icon {
  position: absolute;
  top: calc(var(--icon-3d) * -.5);
  left: var(--sp-4);
  width: var(--icon-3d);
  height: var(--icon-3d);
  object-fit: contain;
  pointer-events: none;
}

/* Фото с подписью .glass-dark */
.card--photo { padding: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.card--photo > img { width: 100%; height: 100%; object-fit: cover; }
.card__caption {
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: var(--sp-3);
  display: grid;
  gap: 2px;
  padding: var(--sp-3) var(--sp-4);
}
.card__caption-label {
  color: var(--grad-3);
  font-size: var(--fs-m1);
  font-weight: var(--fw-medium);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Пустое состояние */
.card--empty {
  justify-items: center;
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  border: var(--stroke-tag) dashed var(--line-strong);
  background: transparent;
}
.card--empty .card__art { width: calc(var(--icon-3d) * .85); height: calc(var(--icon-3d) * .85); object-fit: contain; }
.card--empty .card__text { max-width: 36ch; }

/* ==========================================================================
   Поля: .field > .field__label + .input / .select-wrap > .select / .textarea + .field__hint
   Ошибка передаётся текстом, значком и контрастом — без нового цвета.
   ========================================================================== */
.field { display: grid; gap: var(--sp-2); min-width: 0; }
.field__label { font-size: var(--fs-ui-s); font-weight: var(--fw-medium); color: var(--text); }
.field__hint { font-size: var(--fs-m1); color: var(--text-2); }
/* Обязательное поле (2.8.0). Звёздочка — после подписи, нейтральным цветом (красный — только ошибка):
   <label class="field__label" for="t">Название<span class="req" aria-hidden="true">*</span></label>
   <input class="input" id="t" aria-required="true">
   Поле само сообщает «обязательное» читалке (aria-required), звёздочка от неё скрыта. Где поля ввода нет
   (просмотр, паспорт) — текст для читалки: <span class="req"><span aria-hidden="true">*</span><span class="sr-only">обязательное поле</span></span>.
   FF.ui.required(label, control) ставит и то и другое. Пояснение — <span class="req-legend" aria-hidden="true">* — обязательные поля</span>. */
.req { margin-left: 2px; color: var(--label-2); font-weight: var(--fw-medium); }
.req-legend { color: var(--label-2); font-size: var(--fs-m1); }
/* Ошибка: красный текст, значок «!» и красная обводка поля — цвет не единственный признак. */
.field__hint--error { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--danger); font-weight: var(--fw-medium); }
.field__hint--error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: var(--r-full);
  background: var(--danger);
  color: var(--on-danger);
  font-size: 11px;
  font-weight: var(--fw-bold);
}

.input,
.select,
.textarea {
  width: 100%;
  min-width: 0;
  height: var(--control-h-m);
  padding: 0 var(--sp-4);
  border: 1px solid var(--control-border);
  border-radius: var(--r-md);
  background: var(--control-bg);
  color: var(--text);
  font: inherit;
  font-size: var(--field-fs);    /* сенсор — 16px: iOS не масштабирует страницу при фокусе (К5) */
  line-height: 1.2;
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.input::placeholder,
.textarea::placeholder { color: var(--text-2); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .input:hover, .select:hover, .textarea:hover { border-color: var(--field-border-hover); }
}
.input:focus-visible, .select:focus-visible, .textarea:focus-visible,
.input.is-focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.input[aria-invalid="true"]:focus-visible,
.select[aria-invalid="true"]:focus-visible,
.textarea[aria-invalid="true"]:focus-visible { box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 2px var(--bg), 0 0 0 4px var(--danger); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: var(--disabled-opacity); cursor: not-allowed; }
.input--s { height: var(--control-h-s); }
.input--l { height: var(--control-h-l); }
.textarea { height: auto; min-height: 112px; padding: var(--sp-3) var(--sp-4); line-height: var(--lh-body); resize: vertical; }

.select-wrap { position: relative; display: block; min-width: 0; }
.select { appearance: none; -webkit-appearance: none; padding-right: calc(var(--sp-4) * 2 + 8px); cursor: pointer; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: calc(var(--sp-4) + 2px);
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select option { background: var(--surface-solid); color: var(--text); }
.select-wrap--s .select { height: var(--control-h-s); font-size: var(--fs-ui-s); padding-left: var(--sp-3); }

/* ==========================================================================
   Чекбокс и радио
   <label class="check"><input type="checkbox" class="check__box"> Текст</label>
   <label class="radio"><input type="radio" class="radio__box" name="…"> Текст</label>
   ========================================================================== */
.check, .radio {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--control-h-s);
  font-size: var(--fs-ui-m);
  cursor: pointer;
  user-select: none;
}
.check__box, .radio__box {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--check-size);
  height: var(--check-size);
  margin: 0;
  border: var(--stroke-tag) solid var(--field-border-hover);
  border-radius: var(--r-xs);
  background: var(--field-bg);
  cursor: inherit;
  transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.radio__box { border-radius: var(--r-full); }
.check__box::after {
  content: "";
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--on-accent);
  border-bottom: 2px solid var(--on-accent);
  transform: translateY(-1px) rotate(-45deg) scale(.4);
  opacity: 0;
  transition: transform var(--dur-spring) var(--ease-spring), opacity var(--dur-fast) var(--ease-standard);
}
.check__box:checked,
.check__box:indeterminate { border-color: var(--accent); background: var(--accent); }
.check__box:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); opacity: 1; }
.check__box:indeterminate::after { width: 10px; height: 0; border-left: 0; transform: none; opacity: 1; }
.radio__box::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: var(--accent);
  transform: scale(.3);
  opacity: 0;
  transition: transform var(--dur-spring) var(--ease-spring), opacity var(--dur-fast) var(--ease-standard);
}
.radio__box:checked { border-color: var(--accent); }
.radio__box:checked::after { transform: scale(1); opacity: 1; }
.check__box:focus-visible, .radio__box:focus-visible { box-shadow: var(--focus-ring); }
.check:has(:disabled), .radio:has(:disabled) { opacity: var(--disabled-opacity); cursor: not-allowed; }

/* ==========================================================================
   Переключатель
   <label class="switch"><input type="checkbox" role="switch" class="switch__input"> Текст</label>
   ========================================================================== */
.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--control-h-s);
  font-size: var(--fs-ui-m);
  cursor: pointer;
  user-select: none;
}
.switch__input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: var(--switch-w);
  height: var(--switch-h);
  margin: 0;
  border-radius: var(--r-full);
  background: var(--line-strong);
  cursor: inherit;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.switch__input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(var(--switch-h) - 6px);
  height: calc(var(--switch-h) - 6px);
  border-radius: var(--r-full);
  background: var(--thumb);
  box-shadow: 0 1px 3px rgb(0 0 0 / .3);
  transition: transform var(--dur-spring) var(--ease-spring);
}
.switch__input:checked { background: var(--accent); }
.switch__input:checked::after { transform: translateX(calc(var(--switch-w) - var(--switch-h))); }
.switch__input:focus-visible { box-shadow: var(--focus-ring); }
.switch:has(:disabled) { opacity: var(--disabled-opacity); cursor: not-allowed; }

/* ==========================================================================
   Слайдер
   <div class="slider"><input type="range" class="slider__input">
     <span class="slider__track"><span class="slider__fill"></span></span></div>
   Заливка — transform: scaleX(--p); --p (0…1) ставит FF.ui.
   ========================================================================== */
.slider { --p: .5; position: relative; display: block; height: 24px; }
.slider__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: var(--r-full);
  background: var(--line-strong);
  overflow: hidden;
  pointer-events: none;
}
.slider__fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(var(--p));
  transform-origin: left center;
}
.slider__input {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.slider__input::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.slider__input::-moz-range-track { background: transparent; }
.slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--thumb);
  box-shadow: 0 1px 4px rgb(0 0 0 / .35), 0 0 0 1px var(--line);
  transition: transform var(--dur-spring) var(--ease-spring);
}
.slider__input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--thumb);
  box-shadow: 0 1px 4px rgb(0 0 0 / .35), 0 0 0 1px var(--line);
}
.slider__input:active::-webkit-slider-thumb { transform: scale(1.12); }
.slider__input:focus-visible { box-shadow: none; }
.slider__input:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus-ring); }
.slider__input:focus-visible::-moz-range-thumb { box-shadow: var(--focus-ring); }
.slider:has(:disabled) { opacity: var(--disabled-opacity); }

/* ==========================================================================
   Сегмент-контрол (и переключатель темы)
   <div class="segmented" role="radiogroup" aria-label="…">
     <label><input type="radio" name="…"><span>Тёмная</span></label> …
     <span class="segmented__thumb" aria-hidden="true"></span></div>
   Опции равной ширины; FF.ui ставит --seg-i и --seg-n.
   ========================================================================== */
.segmented {
  --seg-n: 2;
  --seg-i: 0;
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 3px;
  border-radius: var(--r-full);
  background: var(--line);
}
.segmented > label { position: relative; display: block; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented > label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--control-h-s) - 6px);
  padding: 0 var(--sp-4);
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: var(--fs-ui-s);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-standard);
}
.segmented input:checked + span { color: var(--text); }
.segmented input:disabled + span { opacity: var(--disabled-opacity); cursor: not-allowed; }
.segmented > label:has(input:disabled) { cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .segmented input:not(:checked):not(:disabled) + span:hover { color: var(--text); }
}
.segmented input:focus-visible + span { box-shadow: var(--focus-ring); }
.segmented__thumb {
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / var(--seg-n));
  border-radius: var(--r-full);
  background: var(--surface-solid);
  box-shadow: 0 1px 0 var(--line-strong), 0 2px 8px rgb(0 0 0 / .18);
  transform: translateX(calc(var(--seg-i) * 100%));
  transition: transform var(--dur-spring) var(--ease-spring);
}

/* ==========================================================================
   Навигация: верхняя панель и сайдбар сервиса
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--toolbar-h);
  padding: 0 var(--sp-5);
  border-bottom: 1px solid var(--mat-border);
  background: var(--mat-fallback);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar {
    background: var(--mat-toolbar);
    -webkit-backdrop-filter: var(--mat-filter);
    backdrop-filter: var(--mat-filter);
  }
}
.navbar__brand { display: flex; align-items: center; flex: none; color: inherit; text-decoration: none; border-radius: var(--r-sm); }
.navbar__brand img { width: 40px; height: auto; }
.navbar__links { display: flex; gap: var(--sp-1); flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: var(--sp-1); }
.navbar__links::-webkit-scrollbar { display: none; }
.navbar__link {
  flex: none;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: var(--fs-ui-s);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
  .navbar__link:hover { color: var(--text); background: var(--line); }
}
.navbar__link[aria-current="true"],
.navbar__link[aria-current="page"] { color: var(--text); background: var(--line); }
.navbar__end { display: flex; align-items: center; gap: var(--sp-3); flex: none; }

.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  width: var(--sidebar-w);
  padding: var(--sp-3);
}
.sidebar__brand { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3) var(--sp-4); font-weight: var(--fw-bold); }
.sidebar__brand img { width: 32px; height: auto; }
.sidebar__section { padding: var(--sp-4) var(--sp-3) var(--sp-2); color: var(--text-2); font-size: var(--fs-m1); font-weight: var(--fw-medium); }
.sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: var(--control-h-s);
  padding: 0 var(--sp-3);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: var(--fs-ui-m);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}
.sidebar__item::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: currentColor;
  opacity: .5;
}
@media (hover: hover) and (pointer: fine) {
  .sidebar__item:hover { color: var(--text); background: var(--line); }
}
.sidebar__item[aria-current="page"] { color: var(--text); background: var(--line); }
.sidebar__item[aria-current="page"]::before { background: var(--lime); opacity: 1; }
.sidebar__count { margin-left: auto; color: var(--text-2); font-size: var(--fs-m1); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Модалка и шторка — нативный <dialog>; FF.ui.open("id") / FF.ui.close("id")
   ========================================================================== */
.modal,
.sheet,
.side-sheet {
  color: var(--text);
  border: 1px solid var(--mat-border);
  background: var(--mat-fallback);
  box-shadow: var(--mat-edge), var(--mat-shadow);
  overflow: auto;
  overscroll-behavior: contain;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .modal, .sheet, .side-sheet {
    background: var(--mat-sheet);
    -webkit-backdrop-filter: var(--mat-filter);
    backdrop-filter: var(--mat-filter);
  }
}
.modal::backdrop,
.sheet::backdrop,
.side-sheet::backdrop {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(var(--scrim-blur));
  backdrop-filter: blur(var(--scrim-blur));
  opacity: 0;
  transition:
    opacity calc(var(--dur-base) * var(--exit-ratio)) var(--ease-exit),
    overlay calc(var(--dur-base) * var(--exit-ratio)) allow-discrete,
    display calc(var(--dur-base) * var(--exit-ratio)) allow-discrete;
}
.modal[open]::backdrop,
.sheet[open]::backdrop,
.side-sheet[open]::backdrop {
  opacity: 1;
  transition:
    opacity var(--dur-base) var(--ease-entrance),
    overlay var(--dur-base) allow-discrete,
    display var(--dur-base) allow-discrete;
}
@starting-style {
  .modal[open]::backdrop,
  .sheet[open]::backdrop,
  .side-sheet[open]::backdrop { opacity: 0; }
}

.modal {
  width: min(560px, calc(100vw - var(--sp-6)));
  max-height: calc(100dvh - var(--sp-7));
  padding: var(--window-pad);
  border-radius: var(--window-r);
  /* закрытое состояние = путь исчезания */
  opacity: 0;
  transform: translateY(8px) scale(.96);
  filter: blur(var(--window-blur));
  transition:
    opacity calc(var(--dur-window) * var(--exit-ratio)) var(--ease-exit),
    transform calc(var(--dur-window) * var(--exit-ratio)) var(--ease-exit),
    filter calc(var(--dur-window) * var(--exit-ratio)) var(--ease-exit),
    overlay calc(var(--dur-window) * var(--exit-ratio)) allow-discrete,
    display calc(var(--dur-window) * var(--exit-ratio)) allow-discrete;
}
.modal[open] {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity var(--dur-window) var(--ease-entrance),
    transform var(--dur-spring) var(--ease-spring),
    filter var(--dur-window) var(--ease-entrance),
    overlay var(--dur-window) allow-discrete,
    display var(--dur-window) allow-discrete;
}
@starting-style {
  .modal[open] { opacity: 0; transform: translateY(8px) scale(.96); filter: blur(var(--window-blur)); }
}
.modal__title { padding-right: var(--sp-7); font-size: var(--fs-title-1); font-weight: var(--fw-bold); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.modal__text { margin-top: var(--sp-3); color: var(--text-2); }
.modal__body { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-6); }
.modal__close { position: absolute; top: var(--sp-4); right: var(--sp-4); }

.sheet {
  inset: auto 0 0 0;
  width: min(640px, 100vw);
  max-width: 100vw;
  max-height: 85dvh;
  margin: 0 auto;
  padding: var(--sp-2) var(--sp-6) calc(var(--sp-6) + env(safe-area-inset-bottom));
  border-bottom: 0;
  border-radius: var(--window-r) var(--window-r) 0 0;
  transform: translateY(100%);
  transition:
    transform calc(var(--dur-base) * var(--exit-ratio)) var(--ease-exit),
    overlay calc(var(--dur-base) * var(--exit-ratio)) allow-discrete,
    display calc(var(--dur-base) * var(--exit-ratio)) allow-discrete;
}
.sheet[open] {
  transform: translateY(var(--sheet-drag, 0px));
  transition:
    transform var(--dur-spring) var(--ease-spring),
    overlay var(--dur-spring) allow-discrete,
    display var(--dur-spring) allow-discrete;
}
.sheet.is-dragging { transition: none; }
@starting-style {
  .sheet[open] { transform: translateY(100%); }
}
.sheet__grip {
  display: block;
  padding: var(--sp-3) 0 var(--sp-4);
  touch-action: none;
  cursor: grab;
}
.sheet__grip::before {
  content: "";
  display: block;
  width: 40px;
  height: 5px;
  margin: 0 auto;
  border-radius: var(--r-full);
  background: var(--line-strong);
}
.sheet.is-dragging .sheet__grip { cursor: grabbing; }

/* ---------- Боковая панель (2.8.0) ----------
   <dialog class="side-sheet" id="tasks" aria-labelledby="tasks-t">
     <div class="sheet__grip" aria-hidden="true"></div>           ручка — видна только на узком экране
     <div class="side-sheet__head">
       <div><div class="eyebrow">Проект N001</div><h2 class="modal__title" id="tasks-t">Задачи</h2></div>
       <button class="btn btn--toolbar btn--icon" type="button" data-close aria-label="Закрыть">…x</button></div>
     <div class="side-sheet__body">…</div>
     <div class="side-sheet__foot">…</div>                         необязательно
   </dialog>
   Открыть — data-open="tasks" / FF.ui.open("tasks"); из кода — FF.ui.sideSheet({ title, subtitle, body, foot, onClose }).
   Шире 720 px — панель у правого края во всю высоту, приходит и уходит справа; уже — шторка снизу, смахивается вниз.
   Модальная: фокус не выходит из панели, Esc и щелчок мимо закрывают, фокус возвращается на кнопку, которая её открыла. */
.side-sheet {
  --side-sheet-gap: var(--sp-2);
  position: fixed;
  inset: var(--side-sheet-gap) var(--side-sheet-gap) var(--side-sheet-gap) auto;
  flex-direction: column;
  width: min(var(--side-sheet-w), calc(100vw - var(--side-sheet-gap) * 2));
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--window-r);
  /* закрытое состояние = путь исчезания: за правый край */
  transform: translateX(calc(100% + var(--side-sheet-gap) * 2));
  transition:
    transform calc(var(--dur-window) * var(--exit-ratio)) var(--ease-exit),
    overlay calc(var(--dur-window) * var(--exit-ratio)) allow-discrete,
    display calc(var(--dur-window) * var(--exit-ratio)) allow-discrete;
}
.side-sheet[open] {
  display: flex;
  transform: none;
  transition:
    transform var(--dur-spring) var(--ease-spring),
    overlay var(--dur-spring) allow-discrete,
    display var(--dur-spring) allow-discrete;
}
@starting-style {
  .side-sheet[open] { transform: translateX(calc(100% + var(--side-sheet-gap) * 2)); }
}
.side-sheet > .sheet__grip { display: none; }
.side-sheet__head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--window-pad) var(--window-pad) var(--sp-3);
}
.side-sheet__head .modal__title { margin-top: var(--sp-1); padding-right: 0; }
.side-sheet__head > .btn { flex: none; margin: calc(-1 * var(--sp-1)) calc(-1 * var(--sp-1)) 0 0; }
.side-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--sp-1) var(--window-pad) var(--window-pad);
}
.side-sheet__foot {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--window-pad) calc(var(--window-pad) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--separator);
}
@media (max-width: 720px) {
  .side-sheet {
    inset: auto 0 0 0;
    width: 100vw;
    max-height: 85dvh;
    border-bottom: 0;
    border-radius: var(--window-r) var(--window-r) 0 0;
    transform: translateY(100%);
  }
  .side-sheet[open] { transform: translateY(var(--sheet-drag, 0px)); }
  .side-sheet.is-dragging { transition: none; }
  @starting-style { .side-sheet[open] { transform: translateY(100%); } }
  .side-sheet > .sheet__grip { display: block; flex: none; padding: var(--sp-3) 0 var(--sp-2); }
  .side-sheet.is-dragging .sheet__grip { cursor: grabbing; }
  .side-sheet__head { padding-top: 0; }
  .side-sheet__body:last-child { padding-bottom: calc(var(--window-pad) + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .modal, .modal[open] { transform: none; filter: none; }
  .side-sheet, .side-sheet[open],
  .sheet, .sheet[open] {
    transform: none;
    opacity: 0;
    transition: opacity var(--dur-instant) linear, overlay var(--dur-instant) allow-discrete, display var(--dur-instant) allow-discrete;
  }
  .sheet[open], .side-sheet[open] { opacity: 1; }
  @starting-style {
    .modal[open] { transform: none; filter: none; }
    .sheet[open], .side-sheet[open] { transform: none; opacity: 0; }
  }
}

/* ---------- Каталог разделов (2.10.0) ----------
   Все разделы и сервисы в одной выдвижной панели — как «Все сервисы» у облачных консолей. Это боковая панель
   (dialog.side-sheet), которая приходит с левого края, со стороны сайдбара (.side-sheet--start), и шире обычной.
   <dialog class="side-sheet side-sheet--start catalog" id="catalog" aria-labelledby="catalog-t">
     <div class="sheet__grip" aria-hidden="true"></div>
     <div class="side-sheet__head"><h2 class="modal__title" id="catalog-t">Все разделы</h2><button … data-close>…x</button></div>
     <div class="side-sheet__body catalog__body">
       <label class="search catalog__search"><svg class="ui-icon search__icon">…</svg>
         <input class="input" type="search" placeholder="Найти раздел" aria-label="Найти раздел" autofocus>
         <button class="search__clear" type="button" aria-label="Очистить">…</button></label>
       <ul class="catalog__services" aria-label="Сервисы">                       крупные входы
         <li><a class="catalog__service" href="…"><span class="catalog__glyph"><svg class="ui-icon">…</svg></span>
           <span class="catalog__service-title">Проектный офис</span><span class="catalog__service-text">Реестр проектов</span></a></li></ul>
       <section class="catalog__group" aria-labelledby="g1"><h3 class="catalog__group-title" id="g1">Компания</h3>
         <ul class="catalog__list">
           <li class="catalog__entry" data-sort-id="news"><a class="catalog__item" href="…"><svg class="ui-icon">…</svg>
             <span class="catalog__label">Новости</span></a>
             <span class="hover-tools">…ручка .sort-handle, правка…</span></li></ul></section>
       <p class="catalog__empty" hidden>Ничего не найдено</p>
     </div>
   </dialog>
   Поиск фильтрует входы и пункты на лету (без учёта регистра, ё = е; data-search — дополнительные слова),
   пустые группы прячутся, Enter открывает первый найденный. Закрытие очищает поиск. Поведение — FF.ui.catalog(el),
   подключается само в FF.ui.init. Группы — на материале карточки, без градиента и цветных полос; пункты —
   в 3 колонки, на узком экране — в одну. */
@media (min-width: 721px) {
  .side-sheet--start {
    inset: var(--side-sheet-gap) auto var(--side-sheet-gap) var(--side-sheet-gap);
    transform: translateX(calc(-100% - var(--side-sheet-gap) * 2));
  }
  .side-sheet--start[open] { transform: none; }
  /* Начальный кадр — после [open]: @starting-style каскадируется вместе с обычными правилами. */
  @starting-style {
    .side-sheet--start[open] { transform: translateX(calc(-100% - var(--side-sheet-gap) * 2)); }
  }
}
/* Без движения — только прозрачность, как у боковой панели справа. */
@media (min-width: 721px) and (prefers-reduced-motion: reduce) {
  .side-sheet--start, .side-sheet--start[open] { transform: none; }
  @starting-style { .side-sheet--start[open] { transform: none; } }
}
.catalog { width: min(var(--catalog-w), calc(100vw - var(--side-sheet-gap) * 2)); }
.catalog__body { display: grid; align-content: start; gap: var(--sp-4); }
.catalog__search { display: flex; width: 100%; }
.catalog__search .input { width: 100%; }

.catalog__services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.catalog__service {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: var(--sp-3);
  row-gap: 2px;
  align-items: center;
  height: 100%;
  padding: var(--sp-3);
  border: 1px solid var(--mat-border);
  border-radius: var(--group-r);
  background: var(--mat-card);
  box-shadow: var(--mat-edge);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-standard), scale var(--dur-instant) var(--ease-standard);
}
.catalog__glyph {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: calc(var(--icon-l) + var(--sp-4));
  height: calc(var(--icon-l) + var(--sp-4));
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--on-accent);
}
.catalog__glyph .ui-icon { width: var(--icon-l); height: var(--icon-l); }
.catalog__service-title { font-weight: var(--fw-medium); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog__service-text { color: var(--label-2); font-size: var(--fs-caption); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.catalog__group {
  padding: var(--sp-2) var(--sp-2) var(--sp-3);
  border: 1px solid var(--mat-border);
  border-radius: var(--group-r);
  background: var(--mat-card);
  box-shadow: var(--mat-edge);
}
.catalog__group-title {
  margin: 0;
  padding: var(--sp-2) var(--sp-2) var(--sp-1);
  font-size: var(--fs-headline);
  font-weight: var(--fw-bold);
}
.catalog__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.catalog__entry { position: relative; display: flex; align-items: center; min-width: 0; border-radius: var(--menu-item-r); }
.catalog__item {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  min-height: var(--row-h-sidebar, var(--row-h));
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--menu-item-r);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.catalog__item .ui-icon { flex: none; width: var(--icon-m); height: var(--icon-m); color: var(--label-2); }
.catalog__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog__entry > .hover-tools { display: flex; flex: none; align-items: center; gap: 2px; }
.catalog__item[aria-current="page"] { background: var(--selection-inactive); }
@media (hover: hover) and (pointer: fine) {
  .catalog__item:hover, .catalog__service:hover { background: var(--fill-3); }
}
.catalog__service:active { scale: .97; }
/* Поиск идёт — порядок не меняют: ручки уходят. */
.catalog.is-filtering .sort-handle { display: none; }
.catalog__empty { margin: 0; padding: var(--sp-4) 0; color: var(--label-2); text-align: center; }
@media (max-width: 720px) {
  .catalog { width: 100vw; }
  .catalog__list { grid-template-columns: minmax(0, 1fr); }
  .catalog__services { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .catalog__service:active { scale: none; }
}

/* ==========================================================================
   Тост: FF.ui.toast("Текст", { tone: "success", action: { label, onClick } })
   ========================================================================== */
.toaster {
  position: fixed;
  z-index: 100;
  right: var(--sp-5);
  bottom: calc(var(--sp-5) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 260px;
  max-width: min(400px, calc(100vw - var(--sp-6)));
  min-height: calc(var(--control-h-s) + var(--sp-4));
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  border-radius: var(--r-lg);
  pointer-events: auto;
  font-size: var(--fs-ui-m);
  transition:
    transform var(--dur-spring) var(--ease-spring),
    opacity var(--dur-base) var(--ease-entrance);
}
.toast.is-entering,
.toast.is-leaving { transform: translateY(calc(100% + var(--sp-5))); opacity: 0; }
.toast.is-leaving {
  transition:
    transform calc(var(--dur-base) * var(--exit-ratio)) var(--ease-exit),
    opacity calc(var(--dur-base) * var(--exit-ratio)) var(--ease-exit);
}
.toast__marker { width: 8px; height: 8px; flex: none; background: var(--text-2); }
.toast--success .toast__marker { background: var(--lime); }
.toast--error .toast__marker { background: var(--danger); }
.toast__text { flex: 1; padding: var(--sp-1) 0; }
@media (max-width: 560px) {
  .toaster { left: var(--sp-4); right: var(--sp-4); align-items: stretch; }
  .toast { min-width: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast.is-entering, .toast.is-leaving { transform: none; }
}

/* ==========================================================================
   Тултип: [data-tooltip="Текст"] на фокусируемом элементе
   ========================================================================== */
.tooltip {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  max-width: 260px;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
  background: var(--text);
  color: var(--bg);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--tip-x, 0), var(--tip-y, 0)) translateY(4px) scale(.97);
  transform-origin: bottom center;
  transition: opacity var(--dur-fast) var(--ease-entrance), transform var(--dur-fast) var(--ease-entrance);
}
.tooltip.is-open { opacity: 1; transform: translate(var(--tip-x, 0), var(--tip-y, 0)); }
.tooltip.is-instant { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .tooltip { transform: translate(var(--tip-x, 0), var(--tip-y, 0)); }
}

/* ==========================================================================
   Меню
   <div class="menu-wrap">
     <button class="btn" aria-haspopup="menu" aria-expanded="false" aria-controls="m1">…</button>
     <div class="menu" id="m1" role="menu"><button role="menuitem" class="menu__item">…</button></div>
   </div>
   ========================================================================== */
.menu-wrap { position: relative; display: inline-block; }
.menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + var(--sp-2));
  left: 0;
  display: grid;
  min-width: 220px;
  padding: var(--menu-pad);
  border: 1px solid var(--mat-border);
  border-radius: var(--menu-r);
  background: var(--mat-fallback);
  box-shadow: var(--mat-edge), var(--mat-shadow);
  transform-origin: top left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(.96);
  transition:
    opacity calc(var(--dur-menu) * var(--exit-ratio)) var(--ease-exit),
    transform calc(var(--dur-menu) * var(--exit-ratio)) var(--ease-exit),
    visibility 0s linear calc(var(--dur-menu) * var(--exit-ratio));
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .menu {
    background: var(--mat-menu);
    -webkit-backdrop-filter: var(--mat-filter);
    backdrop-filter: var(--mat-filter);
  }
}
/* Телефон (2.6.1): меню широкое и закрывает много содержимого — плотная заливка того же оттенка, без просвечивания. */
@media (max-width: 720px) {
  .menu { background: var(--mat-fallback); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.menu--end { left: auto; right: 0; transform-origin: top right; }
/* Меню вверх от кнопки — у кнопки внизу экрана (поле ввода чата, 2.14.0). */
.menu--up { top: auto; bottom: calc(100% + var(--sp-2)); transform-origin: bottom left; transform: translateY(4px) scale(.96); }
.menu--up.menu--end { transform-origin: bottom right; }
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-menu) var(--ease-entrance),
    transform var(--dur-menu) var(--ease-entrance),
    visibility 0s;
}
.menu__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  height: var(--menu-item-h);
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: var(--menu-item-r);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-ui-m);
  text-align: left;
  cursor: pointer;
}
.menu__item:hover,
.menu__item:focus-visible { background: var(--line); box-shadow: none; }
.menu__item[aria-checked="true"]::after { content: ""; width: 6px; height: 6px; margin-left: auto; background: var(--lime); }
.menu__hint { margin-left: auto; color: var(--text-2); font-size: var(--fs-m1); }
.menu__sep { height: 1px; margin: var(--sp-1) var(--sp-2); background: var(--line); }
@media (prefers-reduced-motion: reduce) {
  .menu, .menu.is-open { transform: none; }
}

/* ==========================================================================
   Таблица: цифры справа, tabular-nums
   ========================================================================== */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-solid); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui-m); font-variant-numeric: tabular-nums; }
.table th {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: var(--fs-ui-s);
  font-weight: var(--fw-medium);
  text-align: left;
  white-space: nowrap;
}
.table td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
@media (hover: hover) and (pointer: fine) {
  .table tbody tr { transition: background-color var(--dur-fast) var(--ease-standard); }
  .table tbody tr:hover { background: var(--line); }
}

/* ==========================================================================
   ПРОДУКТОВЫЙ СЛОЙ (2.0.0, решения 2026-10-21)
   Компоненты рабочих сервисов «как в macOS 26». Работают в любом носителе —
   размеры берут из токенов плотности; полностью раскрываются в
   [data-media="app"] (носитель «Сервисы»), где ниже переопределены и базовые
   компоненты. Иконки — спрайт icons.svg (Lucide, К10).
   ========================================================================== */

/* ---------- Иконка интерфейса ----------
   <svg class="ui-icon" aria-hidden="true"><use href="icons.svg#i-folder"/></svg>
   Размеры: --s 12/16, по умолчанию 16/20, --l 20/24 (compact/touch). */
.ui-icon {
  width: var(--icon-m);
  height: var(--icon-m);
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ui-icon--s { width: var(--icon-s); height: var(--icon-s); }
.ui-icon--l { width: var(--icon-l); height: var(--icon-l); }
.btn .ui-icon { width: var(--icon-s); height: var(--icon-s); }
.btn--icon .ui-icon { width: var(--icon-m); height: var(--icon-m); }

/* ---------- Каркас окна сервиса ----------
   <div class="app-shell" data-media="app">
     <aside class="app-shell__sidebar">…<div class="split-handle" data-split></div></aside>
     <header class="app-shell__toolbar toolbar">…</header>
     <main class="app-shell__content">…</main>
     <aside class="app-shell__inspector">…</aside>
   </div>
   Ширину сайдбара меняет перетаскивание .split-handle (FF.ui) → --app-side-w.
   Без инспектора — .app-shell--no-inspector. */
.app-shell {
  display: grid;
  grid-template-columns: var(--app-side-w, var(--sidebar-w)) minmax(0, 1fr) var(--inspector-w);
  grid-template-rows: minmax(var(--toolbar-h), auto) minmax(0, 1fr);
  grid-template-areas:
    "sidebar toolbar toolbar"
    "sidebar content inspector";
  height: 100dvh;
  min-height: 0;
  background: transparent;
}
.app-shell--no-inspector {
  grid-template-columns: var(--app-side-w, var(--sidebar-w)) minmax(0, 1fr);
  grid-template-areas: "sidebar toolbar" "sidebar content";
}
.app-shell__sidebar {
  grid-area: sidebar;
  position: relative;
  min-width: 0;
  overflow: auto;
  padding: var(--sp-2);
  border-right: 1px solid var(--separator);
  background: var(--mat-fallback);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .app-shell__sidebar {
    background: var(--mat-sidebar);
    -webkit-backdrop-filter: var(--mat-filter);
    backdrop-filter: var(--mat-filter);
  }
}
.app-shell__toolbar { grid-area: toolbar; background: var(--bg-content); }
.app-shell__content { grid-area: content; min-width: 0; min-height: 0; overflow: auto; background: var(--bg-content); }
.app-shell__inspector { grid-area: inspector; min-width: 0; min-height: 0; overflow: auto; border-left: 1px solid var(--separator); background: var(--bg-content); }
@media (max-width: 1100px) {
  .app-shell:not(.app-shell--no-inspector) {
    grid-template-columns: var(--app-side-w, var(--sidebar-w)) minmax(0, 1fr);
    grid-template-rows: minmax(var(--toolbar-h), auto) minmax(0, 1fr) auto;
    grid-template-areas: "sidebar toolbar" "sidebar content" "sidebar inspector";
  }
  .app-shell__inspector { border-left: 0; border-top: 1px solid var(--separator); max-height: 45dvh; }
}
@media (max-width: 720px) {
  .app-shell,
  .app-shell--no-inspector,
  .app-shell:not(.app-shell--no-inspector) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(var(--toolbar-h), auto) auto minmax(0, 1fr) auto;
    grid-template-areas: "toolbar" "sidebar" "content" "inspector";
  }
  .app-shell__sidebar { max-height: 38dvh; border-right: 0; border-bottom: 1px solid var(--separator); }
  .split-handle { display: none; }
}

/* Разделитель панелей: тянуть мышью, стрелки с клавиатуры, двойной клик — ширина по умолчанию */
.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -3px;
  z-index: 2;
  width: 6px;
  cursor: col-resize;
  touch-action: none;
}
.split-handle::after {
  content: "";
  position: absolute;
  inset: 0 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.split-handle:hover::after,
.split-handle:focus-visible::after,
.split-handle.is-dragging::after { opacity: .7; }
.split-handle:focus-visible { box-shadow: none; }

/* ---------- Тулбар ----------
   <header class="toolbar"><span class="toolbar__title">…</span><span class="toolbar__spacer"></span>
     <div class="toolbar__group"><button class="btn btn--toolbar btn--icon">…</button>…</div></header> */
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  height: var(--toolbar-h);
  padding: 0 var(--sp-3);
  border-bottom: 1px solid var(--separator);
}
.toolbar__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-headline); font-weight: var(--fw-bold); }
.toolbar__subtitle { color: var(--label-2); font-size: var(--fs-caption); white-space: nowrap; }
.toolbar__titles { display: grid; min-width: 0; overflow: hidden; line-height: 1.25; }
.toolbar__titles > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar__spacer { flex: 1; }
.toolbar__group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--control-border);
  border-radius: var(--r-full);
  background: var(--control-bg);
}
.toolbar__group .btn { --btn-h: calc(var(--control-h-m) - 4px); }
.toolbar__group .btn--icon { width: calc(var(--btn-h) + var(--sp-3)); }
.toolbar__sep { width: 1px; height: calc(var(--control-h-m) - 8px); flex: none; background: var(--separator); }

/* Кнопки продуктового слоя */
.btn--toolbar { --btn-fg: var(--label-2); }
.btn--toolbar[aria-pressed="true"] { --btn-fg: var(--label); border-color: transparent; background: var(--fill-3); }
.btn--plain { border-color: var(--control-border); background: var(--control-bg); }
/* Необратимое действие — только в окне подтверждения (К12) */
.btn--destructive { --btn-fg: var(--on-destructive); background: var(--destructive); }

/* ---------- Тулбар по приоритету (2.24.0, [PRODUCTION], задача 7.10 3D-вьюера) ----------
   Тулбар, которому тесно, не обрезает и не сжимает элементы, а сворачивает их по шагам, от менее важных:
   <header class="toolbar" data-fit>
     <div class="toolbar__group" data-fold="1">…вкладки…</div>             — уровень ≥ 1: плотнее (.is-folded)
     <div class="search-fold" data-fold="3"><button class="btn btn--toolbar btn--icon search-fold__btn" …>
       <label class="search" data-fit-min="200">…</label></div>              — поле ≥ 200 px, иначе — значок
     <a class="btn btn--toolbar" data-fold="2" data-overflow="4" aria-label="Показ">…<span>Показ</span></a>
                                                                              — ≥ 2: только значок, ≥ 4: в меню «…»
     <div class="theme-switch" data-fold="1" data-overflow="4">…</div>        — ≥ 1: одна кнопка, ≥ 4: в меню
     <div class="menu-wrap toolbar__more" hidden><button class="btn btn--toolbar btn--icon" aria-haspopup="menu"
       aria-controls="…" aria-expanded="false" aria-label="Ещё">…ellipsis…</button>
       <div class="menu menu--end" id="…" role="menu"></div></div></header>
   FF.ui.fitToolbar (сам — для [data-fit] в FF.ui.init) подбирает наименьший уровень, при котором ничего не
   выходит за край и поля [data-fit-min] не уже своего минимума; пункты меню «…» строит из [data-overflow]
   (значок и aria-label элемента, клик — по самому элементу). Пересчёт — при смене ширины и содержимого. */
.btn.is-folded { width: var(--btn-h); padding: 0; }
.btn.is-folded > span:not(.badge) { display: none; }
.btn.is-folded > .ui-icon { width: var(--icon-m); height: var(--icon-m); }
.toolbar__group .btn.is-folded { width: calc(var(--btn-h) + var(--sp-3)); }
/* Счётчик у свёрнутой кнопки — в углу, как у колокольчика. */
.btn.is-folded:has(> .badge) { position: relative; }
.btn.is-folded > .badge {
  position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; margin: 0; padding: 0 4px;
  font-size: 10px; pointer-events: none; box-shadow: 0 0 0 2px var(--mat-fallback);
}
.toolbar__group.is-folded .btn:not(.btn--icon) { --btn-px: var(--sp-2); }
.is-overflowed { display: none !important; }
/* Последний шаг (data-fit-scroll): места нет и после всех сворачиваний — ряд прокручивается вбок, кнопки не сжимаются. */
.is-scrolled { flex-shrink: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.is-scrolled::-webkit-scrollbar { display: none; }
.is-scrolled > * { flex: none; }
/* Группа, у которой все кнопки ушли в меню, не оставляет пустой рамки. */
.toolbar__group:not(:has(> :not(.is-overflowed, [hidden]))) { display: none; }
.toolbar__more { flex: none; }
.toolbar__more:not([hidden]) { transition: opacity var(--dur-base) var(--ease-entrance); }
@starting-style { .toolbar__more:not([hidden]) { opacity: 0; } }
.toolbar__more[hidden] { display: none; }
.toolbar__more .menu { min-width: 200px; }
.toolbar__more .menu__item > .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); color: var(--label-2); }

/* Переключатель темы: сегменты «Тёмная / Светлая», в тесном тулбаре — одна кнопка (значок темы, на которую
   переключит). <div class="theme-switch"><div class="segmented" data-theme-toggle …>…</div>
   <button class="btn btn--toolbar btn--icon theme-switch__btn" type="button" data-theme-cycle aria-label="Светлая тема">
   <svg class="ui-icon theme-switch__to-light">…sun…</svg><svg class="ui-icon theme-switch__to-dark">…moon…</svg></button></div> */
.theme-switch { display: inline-flex; flex: none; align-items: center; }
.theme-switch:not(.is-folded) > .theme-switch__btn,
.theme-switch.is-folded > .segmented { display: none; }
:root[data-theme="light"] .theme-switch__to-light,
:root:not([data-theme="light"]) .theme-switch__to-dark { display: none; }

/* Поиск, который сворачивается в значок: по клику поле раскрывается поверх соседних кнопок, к левому краю от
   значка, и уходит тем же путём (Esc, клик мимо, фокус ушёл при пустом поле). Без .is-folded — обычное поле. */
.search-fold { position: relative; display: flex; align-items: center; min-width: 0; }
.search-fold > .search { width: 100%; }
.search-fold:not(.is-folded) > .search-fold__btn { display: none; }
.search-fold.is-folded { flex: none; }
.search-fold.is-folded > .search {
  position: absolute; z-index: 25; top: 50%; right: 0; width: var(--search-fold-w, min(360px, 70vw));
  transform-origin: center right; opacity: 0; visibility: hidden; transform: translateY(-50%) scaleX(.9);
  transition:
    opacity calc(var(--dur-menu) * var(--exit-ratio)) var(--ease-exit),
    transform calc(var(--dur-menu) * var(--exit-ratio)) var(--ease-exit),
    visibility 0s linear calc(var(--dur-menu) * var(--exit-ratio));
}
.search-fold.is-folded > .search .input { background: var(--mat-fallback); box-shadow: var(--mat-edge), var(--mat-shadow); }
.search-fold.is-folded.is-open > .search {
  opacity: 1; visibility: visible; transform: translateY(-50%);
  transition: opacity var(--dur-menu) var(--ease-entrance), transform var(--dur-menu) var(--ease-entrance), visibility 0s;
}
.search-fold.is-folded.is-open > .search-fold__btn { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .search-fold.is-folded > .search, .search-fold.is-folded.is-open > .search { transform: translateY(-50%); }
}

/* ---------- Поле поиска ----------
   <label class="search"><svg class="ui-icon search__icon">…</svg>
     <input class="input" type="search" placeholder="Поиск">
     <button class="search__clear" type="button" aria-label="Очистить">…</button></label> */
.search { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.search .input { padding-left: calc(var(--control-px-m) + var(--icon-s) + var(--sp-1)); padding-right: var(--control-h-m); border-radius: var(--r-full); }
.search .input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search__icon { position: absolute; left: calc(var(--control-px-m) - 2px); width: var(--icon-s); height: var(--icon-s); color: var(--label-3); pointer-events: none; }
.search__clear {
  position: absolute;
  right: 2px;
  display: grid;
  place-items: center;
  width: calc(var(--control-h-m) - 4px);
  height: calc(var(--control-h-m) - 4px);
  padding: 0;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--label-3);
  cursor: pointer;
  opacity: 0;
  scale: .8;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-standard), scale var(--dur-fast) var(--ease-standard);
}
.search__clear .ui-icon { width: var(--icon-s); height: var(--icon-s); }
.search .input:not(:placeholder-shown) ~ .search__clear { opacity: 1; scale: 1; pointer-events: auto; }

/* ---------- Список в сайдбаре (source list) ----------
   <nav class="source-list" role="listbox" aria-label="…" data-selectable>
     <div class="source-list__section">Объекты</div>
     <div class="source-list__item" role="option" aria-selected="true" tabindex="0">
       <svg class="ui-icon">…</svg><span class="source-list__label">…</span><span class="source-list__count">24</span></div></nav>
   Выделение: в фокусе — акцент, без фокуса — серое (FF.ui: клик, стрелки, Shift, ⌘/Ctrl, набор букв). */
.source-list { display: grid; align-content: start; gap: 1px; outline: none; }
.source-list__section {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-2) var(--sp-1);
  color: var(--label-2);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
}
.source-list__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  height: var(--row-h-sidebar);
  padding: 0 var(--sp-2);
  border-radius: var(--row-r);
  color: var(--label);
  font-size: var(--fs-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
.source-list__item .ui-icon { color: color-mix(in srgb, var(--accent) 60%, var(--label)); }
.source-list__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.source-list__sub { color: var(--label-2); font-size: var(--fs-callout); }
.source-list__count { margin-left: auto; color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .source-list__item:hover { background: var(--fill-4); }
}
.source-list__item[aria-selected="true"],
.source-list__item[aria-current="page"] { background: var(--selection-inactive); }
.source-list:focus-within .source-list__item[aria-selected="true"],
.source-list:focus-within .source-list__item[aria-current="page"] { background: var(--selection); color: var(--on-selection); }
.source-list:focus-within .source-list__item[aria-selected="true"] :is(.ui-icon, .source-list__count, .source-list__sub) { color: inherit; }
.source-list__item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.source-list:focus-within .source-list__item[aria-selected="true"]:focus-visible { box-shadow: inset 0 0 0 2px var(--on-selection); }

/* ---------- Таблица: выделение рядов и сортировка ----------
   <table class="table" data-selectable tabindex="0"> <tr aria-selected="true"> …
   <th aria-sort="ascending"><button class="table__sort">Название <svg class="ui-icon">…chevron-down</svg></button></th> */
.table tbody tr[aria-selected="true"] td { background: var(--selection-inactive); }
.table:focus-within tbody tr[aria-selected="true"] td,
.table:focus tbody tr[aria-selected="true"] td { background: var(--selection); color: var(--on-selection); }
.table:focus-visible { box-shadow: none; }
.table tbody tr[aria-selected] { cursor: default; user-select: none; }
.table__sort {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.table__sort .ui-icon { width: var(--icon-s); height: var(--icon-s); opacity: 0; transition: opacity var(--dur-fast) var(--ease-standard), rotate var(--dur-fast) var(--ease-standard); }
th[aria-sort] .table__sort { color: var(--label); }
th[aria-sort] .table__sort .ui-icon { opacity: 1; }
th[aria-sort="ascending"] .table__sort .ui-icon { rotate: 180deg; }

/* ---------- Бейдж ---------- <span class="badge">3</span> */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(var(--fs-caption) * 1.7);
  height: calc(var(--fs-caption) * 1.7);
  padding: 0 var(--sp-1);
  border-radius: var(--r-full);
  background: var(--fill-2);
  color: var(--label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.badge--accent { background: var(--accent); color: var(--on-accent); }
.badge--signal { background: var(--signal); color: var(--on-signal); }

/* ---------- Крупная цифра (2.5.0) ----------
   <dl class="stat-grid">
     <div class="stat stat--tile"><dt>Площадь</dt><dd><span class="stat__row"><span class="stat__value">4,8</span>
       <span class="stat__unit">га</span></span><span class="stat__note">пояснение</span></dd></div>
   </dl>
   Показатели паспорта объекта и дашбордов: подпись, значение --stat-fs, единица рядом по базовой линии, пояснение ниже.
   .stat--tile — плитка на подложке, значение у нижнего края; плитка следит за своим размером (container query):
   высокая — цифра --stat-fs-l, узкая — --stat-fs-s. Высоту плитке задаёт сетка (grid-auto-rows); в сетке с рядами
   по содержимому поставьте плитке container-type: inline-size. Цифры табличные, значение не переносится.
   Значение целиком (2.40.0, [PRODUCTION]): FF.ui.fitStats (сам в FF.ui.init) плавно уменьшает кегль значения по ширине
   плитки, но не мельче единицы (--fs-title-3). Не влезает и так — значение «А / Б» встаёт в две строки .stat__split
   (у плитки data-fit="split"), у каждой строки — своя часть пояснения «X / Y». Многоточия в значении нет;
   пояснение переносится, целиком — в подсказке (title). */
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-1); min-width: 0; margin: 0; }
.stat > dt { color: var(--label-2); font-size: var(--fs-callout); font-weight: var(--fw-medium); }
.stat > dd { display: grid; gap: 2px; margin: 0; min-width: 0; }
.stat__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sp-2); min-width: 0; }
.stat__value { font-size: var(--stat-fs); font-weight: var(--fw-bold); line-height: 1.05; letter-spacing: var(--ls-heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__unit { color: var(--label-2); font-size: var(--fs-title-3); font-weight: var(--fw-medium); }
.stat__note { color: var(--label-2); font-size: var(--fs-callout); }

/* ---------- Поле пароля: «Показать» и Caps Lock (2.6.0) ----------
   <label class="field"><span class="field__label">Пароль</span>
     <span class="password"><input class="input" type="password" autocomplete="current-password">
       <button class="btn btn--toolbar btn--icon password__toggle" type="button" aria-label="Показать пароль" aria-pressed="false">
         <svg class="ui-icon password__show" aria-hidden="true"><use href="icons.svg#i-eye"/></svg>
         <svg class="ui-icon password__hide" aria-hidden="true"><use href="icons.svg#i-eye-off"/></svg></button></span>
     <span class="field__hint password__caps presence presence--fade" hidden>Включён Caps Lock</span>
   </label>
   Поведение — FF.ui (motion.js): кнопка показывает и прячет пароль (фокус остаётся в поле), подсказка Caps Lock
   приходит, пока клавиша включена и поле в фокусе. Подсказка необязательна. */
.password { position: relative; display: block; min-width: 0; }
.password > .input { width: 100%; padding-right: calc(var(--control-h-m) + var(--sp-1)); }
.password__toggle { position: absolute; top: 50%; right: var(--sp-1); translate: 0 -50%; }
.password__toggle .password__hide,
.password__toggle[aria-pressed="true"] .password__show { display: none; }
.password__toggle[aria-pressed="true"] .password__hide { display: block; }

/* ---------- Плитка выбора (2.6.0) ----------
   <div class="choice-list">
     <button class="choice continuous" type="button">
       <span class="choice__icon"><svg class="ui-icon" aria-hidden="true"><use href="icons.svg#i-building-2"/></svg></span>
       <span class="choice__text"><span class="choice__title">Компания</span><span class="choice__sub">Email и личный пароль</span></span>
       <svg class="ui-icon choice__chevron" aria-hidden="true"><use href="icons.svg#i-chevron-right"/></svg>
     </button>
   </div>
   Выбор пути из 2–4 вариантов, после которого открывается следующий шаг (вход, мастер). Значок в кружке,
   заголовок жирным, пояснение подписью, стрелка «дальше». Радиус — --group-r, нажатие — сжатие до .97. */
.choice-list { display: grid; gap: var(--sp-3); }
.choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--separator);
  border-radius: var(--group-r);
  background: var(--fill-4);
  color: var(--label);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard), scale var(--dur-instant) var(--ease-standard);
}
@media (hover: hover) { .choice:hover { background: var(--fill-3); } }
.choice:active { scale: .97; }
.choice__icon { display: grid; place-items: center; width: calc(var(--icon-m) * 2); aspect-ratio: 1; border-radius: var(--r-full); background: var(--fill-3); }
.choice__text { display: grid; gap: 2px; min-width: 0; }
.choice__title { font-size: var(--fs-headline); font-weight: var(--fw-bold); }
.choice__sub { color: var(--label-2); font-size: var(--fs-callout); }
.choice__chevron { color: var(--label-2); }
@media (prefers-reduced-motion: reduce) { .choice:active { scale: 1; } }
.stat--tile { container-type: size; padding: var(--sp-3) var(--sp-4); border-radius: var(--group-r); background: var(--fill-4); }
.stat--tile .stat__row { overflow: hidden; }
.stat__split { display: none; }
.stat[data-fit="split"] .stat__row, .stat[data-fit="split"] > dd > .stat__note { display: none; }
.stat[data-fit="split"] .stat__split { display: grid; gap: 2px; min-width: 0; }
.stat__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sp-2); min-width: 0; }
.stat__line > .stat__note { font-size: var(--fs-callout); }
@container (min-height: 120px) and (min-width: 220px) {
  .stat--tile .stat__value { font-size: var(--stat-fs-l); }
  .stat--tile .stat__unit { font-size: var(--fs-title-2); }
}
@container (max-width: 200px) { .stat--tile .stat__value { font-size: var(--stat-fs-s); } }
/* Крупная плитка растёт с экраном (2.42.0, [PRODUCTION], задача 9.33 3D-вьюера): плитка с высотой от сетки
   (container-type: size) на большом экране — подпись, значение, единица и пояснение растут вместе с плиткой
   (cqh / cqw), а не стоят мелкими у нижнего края пустого поля. Пропорции текста к плитке постоянны: значение —
   до 30 % высоты и 14 % ширины плитки, не мельче --stat-fs-l и не крупнее --stat-fs-xl; подписи — от своих
   ролей до --stat-label-fs-xl и --stat-unit-fs-xl. Плитке с высотой по содержимому (container-type: inline-size)
   правило не действует: запрос по высоте у неё не срабатывает. FF.ui.fitStats подгоняет длинное значение и здесь
   (пересчёт по ширине и высоте плитки). */
@container (min-height: 180px) and (min-width: 300px) {
  .stat--tile > dt { font-size: clamp(var(--fs-callout), 5.5cqh, var(--stat-label-fs-xl)); }
  .stat--tile .stat__value { font-size: clamp(var(--stat-fs-l), min(30cqh, 14cqw), var(--stat-fs-xl)); }
  .stat--tile .stat__unit { font-size: clamp(var(--fs-title-2), min(10cqh, 5cqw), var(--stat-unit-fs-xl)); }
  .stat--tile .stat__note { font-size: clamp(var(--fs-callout), 5cqh, var(--stat-label-fs-xl)); }
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-2); margin: 0; }
@media (max-width: 720px) { .stat__value { font-size: var(--stat-fs-s); } .stat__unit { font-size: var(--fs-callout); } }

/* ---------- Выбор из списка с поиском (2.7.0) ----------
   <div class="combobox" id="pm"></div>  →  FF.ui.combobox(el, { options, multiple, me, value, placeholder, onChange })
   Разметку строит FF.ui (motion.js):
   <div class="combobox">
     <div class="combobox__control">
       <span class="tag">Иванов<button class="tag__remove" type="button" aria-label="Убрать: Иванов">…x</button></span>
       <input class="combobox__input" role="combobox" aria-expanded="false" aria-controls="…" aria-autocomplete="list">
       <svg class="ui-icon combobox__chevron">…chevron-down</svg></div>
     <div class="combobox__list presence presence--pop" role="listbox" hidden>
       <div class="combobox__option combobox__option--me" role="option" aria-selected="false">…</div>
       <div class="combobox__sep" role="presentation"></div>
       <div class="combobox__option" role="option" aria-selected="true">…</div>
       <div class="combobox__empty">Ничего не найдено</div></div>
   </div>
   Поле — как .input (капсула в сервисах; когда теги не помещаются в ряд — скругление многострочного поля).
   Список — материал и радиусы меню, растёт из поля (.presence), длительность меню; активный пункт — выделение. */
.combobox { position: relative; display: block; min-width: 0; }
.combobox__control {
  --cb-pad: max(1px, calc((var(--control-h-m) - var(--tag-h)) / 2 - 1px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
  min-height: var(--control-h-m);
  padding: var(--cb-pad) calc(var(--control-px-m) + var(--icon-s) + var(--sp-1)) var(--cb-pad) var(--sp-4);
  border: 1px solid var(--control-border);
  border-radius: var(--r-md);
  background: var(--control-bg);
  color: var(--text);
  cursor: text;
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
  .combobox__control:hover { border-color: var(--field-border-hover); }
}
.combobox__control:focus-within { border-color: var(--accent); box-shadow: var(--focus-ring); }
.combobox[aria-invalid="true"] .combobox__control { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.combobox.is-disabled .combobox__control { opacity: var(--disabled-opacity); cursor: not-allowed; }
.combobox__control:has(.tag) { padding-left: var(--cb-pad); }
.combobox__input {
  flex: 1 1 8ch;
  min-width: 6ch;
  height: var(--tag-h);
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--field-fs);
}
.combobox__control:has(.tag) .combobox__input { padding-left: var(--sp-1); }
.combobox__input::placeholder { color: var(--text-2); opacity: 1; }
.combobox__input:focus-visible { box-shadow: none; }
.combobox__chevron {
  position: absolute;
  top: calc(var(--control-h-m) / 2);
  right: calc(var(--control-px-m) - 2px);
  width: var(--icon-s);
  height: var(--icon-s);
  translate: 0 -50%;
  color: var(--label-2);
  pointer-events: none;
  transition: rotate var(--dur-fast) var(--ease-standard);
}
.combobox.is-open .combobox__chevron { rotate: 180deg; }
.combobox .tag { gap: var(--sp-1); max-width: 100%; padding-right: 2px; }
.tag__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tag__remove {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(var(--tag-h) - 6px);
  height: calc(var(--tag-h) - 6px);
  padding: 0;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--label-2);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.tag__remove .ui-icon { width: var(--icon-s); height: var(--icon-s); }
@media (hover: hover) and (pointer: fine) { .tag__remove:hover { background: var(--fill-2); color: var(--label); } }
.tag__remove:focus-visible { box-shadow: var(--focus-ring); }

.combobox__list {
  container: cb-list / inline-size;
  --dur-base: var(--dur-menu);
  --reveal-blur: 0px;
  position: absolute;
  z-index: 30;
  top: calc(100% + var(--sp-1));
  left: 0;
  right: 0;
  display: grid;
  align-content: start;
  max-height: min(calc(var(--menu-item-h) * 9 + var(--menu-pad) * 2), 50vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--menu-pad);
  border: 1px solid var(--mat-border);
  border-radius: var(--menu-r);
  background: var(--mat-fallback);
  box-shadow: var(--mat-edge), var(--mat-shadow);
  transform-origin: var(--origin, 50% 0);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .combobox__list { background: var(--mat-menu); -webkit-backdrop-filter: var(--mat-filter); backdrop-filter: var(--mat-filter); }
}
@media (max-width: 720px) {
  .combobox__list { background: var(--mat-fallback); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.combobox__list.is-up { top: auto; bottom: calc(100% + var(--sp-1)); --presence-y: 6px; }
.combobox__list:not(.is-up) { --presence-y: -6px; }
.combobox__option {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  min-height: var(--menu-item-h);
  padding: 0 var(--sp-3);
  border-radius: var(--menu-item-r);
  color: var(--text);
  font-size: var(--fs-ui-m);
  cursor: pointer;
  user-select: none;
}
.combobox__option[hidden] { display: none; }
.combobox__label { flex: 0 0 auto; max-width: calc(100% - var(--icon-s) - var(--sp-2)); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Пояснение (должность) уступает место первым: имя обрезается, только если не помещается само (2.8.0). */
.combobox__sub { flex: 1 1 0; min-width: 0; margin-left: auto; overflow: hidden; color: var(--text-2); font-size: var(--fs-m1); text-align: right; text-overflow: ellipsis; white-space: nowrap; }
/* Узкий список (телефон): пояснение — второй строкой под именем. */
@container cb-list (max-width: 400px) {
  .combobox__list .combobox__option:has(.combobox__sub) {
    display: grid;
    grid-template-columns: var(--icon-s) minmax(0, 1fr);
    align-content: center;
    column-gap: var(--sp-2);
    padding-block: var(--sp-1);
  }
  .combobox__option:has(.combobox__sub) .combobox__check { grid-row: 1 / span 2; align-self: center; }
  .combobox__option:has(.combobox__sub) .combobox__label { max-width: none; }
  .combobox__option .combobox__sub { grid-column: 2; margin-left: 0; text-align: left; line-height: var(--lh-ui, 1.3); }
}
.combobox__check { flex: none; width: var(--icon-s); height: var(--icon-s); opacity: 0; }
.combobox__option[aria-selected="true"] .combobox__check { opacity: 1; }
.combobox__option--me .combobox__label { font-weight: var(--fw-bold); }
.combobox__option.is-active { background: var(--line); }
.combobox__sep { height: 1px; margin: var(--sp-1) var(--sp-2); background: var(--line); }
.combobox__sep[hidden] { display: none; }
.combobox__empty { padding: var(--sp-2) var(--sp-3); color: var(--text-2); font-size: var(--fs-ui-m); }
.combobox__empty[hidden] { display: none; }

/* ---------- Файл или ссылка с историей (2.7.0) ----------
   <div class="attach" id="docs"></div>  →  FF.ui.attachments(el, { accept, maxSize, hint, download, items, onFile, onLink, onDelete })
   Разметку строит FF.ui (motion.js):
   <div class="attach">
     <div class="attach__bar">
       <button class="btn btn--plain">…upload Загрузить файл</button><input type="file" hidden accept="…">
       <form class="attach__link"><label class="search">…link<input class="input" type="url" placeholder="Вставить ссылку"></label>
         <button class="btn btn--plain">Добавить</button></form></div>
     <div class="progressbar attach__progress presence presence--fade" role="progressbar" hidden>…</div>   прогресс загрузки (2.8.0)
     <span class="field__hint attach__hint">Файлом: PDF, DOCX — до 20 МБ. Или ссылкой.</span>   hint (2.8.0)
     <span class="field__hint field__hint--error presence presence--fade" role="alert" hidden>…</span>
     <div class="table-wrap"><table class="table attach__table">… имя · дата · автор · корзина …</table></div>
     <p class="attach__empty presence presence--fade">Файлов и ссылок пока нет</p>
   </div>
   Компонент только рисует и сообщает события: загрузку делает приложение и добавляет строку через api.add(item).
   Ряд приходит и уходит прозрачностью. Узкое место (до 480 px): дата и автор — подписью под именем.
   Поле ссылки не сжимается уже 14rem: «Добавить» переносится на следующую строку (2.8.0). */
.attach { container-type: inline-size; display: grid; gap: var(--sp-2); min-width: 0; }
.attach__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.attach__link { display: flex; flex: 1 1 260px; flex-wrap: wrap; gap: var(--sp-2); min-width: 0; margin: 0; }
.attach__link .search { flex: 1 1 14rem; min-width: min(100%, 14rem); }
.attach__progress { max-width: 100%; }
.attach__upload .attach__pct { font-variant-numeric: tabular-nums; }
.attach__link .search .input { width: 100%; padding-right: var(--control-px-m); }
.attach__table { table-layout: fixed; }
.attach__table col.attach__col-date { width: 12ch; }
.attach__table col.attach__col-author { width: 30%; }
.attach__table col.attach__col-act { width: calc(var(--control-h-m) + var(--sp-3) * 2); }
.attach__table td.attach__act { overflow: visible; }
.attach__table td { overflow: hidden; text-overflow: ellipsis; }
.attach__table tbody tr { transition: opacity var(--dur-fast) var(--ease-standard); }
@starting-style { .attach__table tbody tr { opacity: 0; } }
.attach__table tbody tr.is-leaving { opacity: 0; }
.attach__name { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.attach__name > .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); color: var(--label-2); }
.attach__title { min-width: 0; overflow: hidden; color: inherit; text-overflow: ellipsis; white-space: nowrap; }
a.attach__title { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { a.attach__title:hover { text-decoration-color: currentColor; } }
.attach__meta { display: none; color: var(--label-2); font-size: var(--fs-callout); }
.attach__table td.attach__act { padding-top: 0; padding-bottom: 0; text-align: right; }
.attach__del { --btn-fg: var(--label-2); }
.attach__empty { margin: 0; padding: var(--sp-3) var(--sp-4); border: 1px dashed var(--line-strong); border-radius: var(--group-r); color: var(--label-2); font-size: var(--fs-callout); text-align: center; }
@container (max-width: 480px) {
  .attach__table :is(col.attach__col-date, col.attach__col-author),
  .attach__table :is(th, td):is(.attach__c-date, .attach__c-author) { display: none; }
  .attach__table td.attach__c-name { height: auto; padding-top: var(--sp-1); padding-bottom: var(--sp-1); white-space: normal; }
  .attach__meta { display: block; padding-left: calc(var(--icon-s) + var(--sp-2)); }
  .attach__link { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .combobox__chevron { transition: none; } }

/* ---------- Файлы: хлебные крошки, зона перетаскивания, очередь загрузок, плитки (2.11.0) ----------
   Хлебные крошки — путь папки, последний пункт текущий; длинный путь прокручивается вбок, конец всегда виден:
   <nav class="crumbs" aria-label="Путь"><ol class="crumbs__list">
     <li><button class="crumbs__item" type="button">…house Файлы</button></li>
     <li><svg class="ui-icon crumbs__sep">…chevron-right</svg><button class="crumbs__item" type="button">Папка</button></li>
     <li><svg class="ui-icon crumbs__sep">…</svg><span class="crumbs__item" aria-current="page">Текущая</span></li></ol></nav>
   Зона перетаскивания — область, куда бросают файлы с компьютера; пока файл над ней, поверх — рамка и подпись:
   <section class="dropzone"> … содержимое …
     <div class="dropzone__overlay presence presence--fade" hidden><svg class="ui-icon">…upload</svg><span class="dropzone__label">Отпустите…</span></div></section>
   Поведение — FF.ui.dropzone(el, { onFiles(files), label, disabled }) → { disable(on), label(text), destroy() }.
   Цель переноса внутри списка (папка, пункт крошек) — [data-drop-target]; пока над ней тащат, у неё .is-drop-over.
   Очередь загрузок — ряд на файл: значок, имя, проценты или итог, отмена; под рядом — полоса .progressbar:
   <ul class="uploads"><li class="uploads__item" data-state="active|done|error|canceled">
     <svg class="ui-icon uploads__icon">…</svg><span class="uploads__name">plan.pdf</span>
     <span class="uploads__meta tnum">42 % · 120 из 300 МБ</span>
     <button class="btn btn--toolbar btn--icon uploads__cancel" aria-label="Отменить загрузку plan.pdf">…x</button>
     <div class="progressbar uploads__bar">…</div></li></ul>
   Готово — circle-check и итог («v3 · только что»), ошибка — triangle-alert и текст --danger (цвет не единственный признак). */
.crumbs { min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs__list { display: flex; align-items: center; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.crumbs__list > li { display: flex; flex: none; align-items: center; gap: var(--sp-1); min-width: 0; }
.crumbs__sep { flex: none; width: var(--icon-s); height: var(--icon-s); color: var(--label-3); }
.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  max-width: 24ch;
  height: var(--control-h-m);
  padding: 0 var(--control-px-s);
  overflow: hidden;
  border: 0;
  border-radius: var(--r-full);
  background: none;
  color: var(--label-2);
  font: inherit;
  font-size: var(--fs-ui-m);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumbs__item .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); }
button.crumbs__item, a.crumbs__item { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { :is(button, a).crumbs__item:hover { background: var(--fill-4); color: var(--label); } }
.crumbs__item[aria-current="page"] { color: var(--label); font-weight: 600; }
.crumbs__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dropzone { position: relative; }
.dropzone__overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border: 2px dashed var(--accent);
  border-radius: var(--group-r);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-solid) 82%);
  color: var(--label);
  font-size: var(--fs-ui-l);
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}
.dropzone__overlay .ui-icon { width: var(--icon-l); height: var(--icon-l); color: var(--accent); }
.dropzone__label { max-width: 36ch; padding: 0 var(--sp-4); }
[data-drop-target].is-drop-over { box-shadow: inset 0 0 0 2px var(--accent); }
.table tbody tr[data-drop-target].is-drop-over td { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.uploads { display: grid; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }
.uploads__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: var(--sp-2);
  row-gap: var(--sp-1);
  min-height: var(--control-h-m);
  padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-3);
  border-radius: var(--inner-r);
  background: var(--fill-4);
  font-size: var(--fs-ui-m);
  transition: opacity var(--dur-fast) var(--ease-standard);
}
@starting-style { .uploads__item { opacity: 0; } }
.uploads__item.is-leaving { opacity: 0; }
.uploads__icon { width: var(--icon-s); height: var(--icon-s); color: var(--label-2); }
.uploads__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uploads__meta { color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; white-space: nowrap; }
.uploads__cancel { --btn-fg: var(--label-2); }
.uploads__bar { grid-column: 1 / -1; }
.uploads__item:not([data-state="active"]) .uploads__bar { display: none; }
.uploads__item[data-state="done"] .uploads__icon { color: var(--accent); }
.uploads__item[data-state="error"] :is(.uploads__icon, .uploads__meta) { color: var(--danger); }
.uploads__item[data-state="error"] .uploads__meta { white-space: normal; }
.uploads__item[data-state="canceled"] { opacity: .6; }
@container (max-width: 480px) {
  .uploads__item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .uploads__meta { grid-column: 2; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .uploads__item { transition: none; } }
/* Плитки файлов — вид «Плитки» у списка папок и файлов (2.11.0): крупный значок, имя в две строки, подпись;
   «…» — инструменты при наведении (.hover-tools). Папка — значок акцентом на подложке акцента, файл — нейтральный
   с расширением. Цель переноса — [data-drop-target] (.is-drop-over).
   <ul class="tiles"><li class="tile hover-host" data-drop-target>
     <a class="tile__main" href="…"><span class="tile__icon tile__icon--folder"><svg class="ui-icon">…folder</svg></span>
       <span class="tile__name">Документы</span><span class="tile__meta">Папка</span></a>
     <div class="hover-tools tile__tools"><button class="btn btn--toolbar btn--icon">…ellipsis</button></div></li>
   <li class="tile hover-host"><a class="tile__main" …><span class="tile__icon"><svg>…file-text</svg><span class="tile__ext">PDF</span></span>…</a>…</li></ul> */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr)); gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.tile { position: relative; min-width: 0; border-radius: var(--group-r); transition: opacity var(--dur-fast) var(--ease-standard); }
@starting-style { .tile { opacity: 0; } }
.tile__main {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--sp-1);
  width: 100%;
  height: 100%;
  padding: var(--sp-3) var(--sp-2) var(--sp-2);
  border: 0;
  border-radius: inherit;
  background: none;
  color: var(--label);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .tile:hover { background: var(--fill-4); } }
.tile[aria-selected="true"] { background: var(--selection-inactive); }
.tile__main:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tile__icon { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: var(--sp-1); color: var(--label-2); }
.tile__icon .ui-icon { width: 64px; height: 64px; stroke-width: calc(var(--icon-stroke) * .75); } /* крупный значок без подложки; линия тоньше, чтобы на 64 px не была жирной */
.tile__icon--folder { color: var(--accent); }
.tile__ext { position: absolute; right: 0; bottom: var(--sp-1); padding: 0 var(--sp-1); border-radius: var(--r-full); background: var(--surface-solid); color: var(--label-2); font-size: var(--fs-caption); font-weight: var(--fw-bold); line-height: 1.5; letter-spacing: .02em; }
.tile__name { display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: var(--fs-ui-m); font-weight: var(--fw-medium); line-height: 1.3; overflow-wrap: anywhere; }
.tile__meta { max-width: 100%; overflow: hidden; color: var(--label-2); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.tile.is-fresh .tile__meta { color: var(--label); font-weight: var(--fw-medium); }
.tile__tools { position: absolute; top: var(--sp-1); right: var(--sp-1); }
.tile.is-dragging { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }

/* ---------- История версий (2.12.0, [SOURCE] 2026-11-18, задача 6.3 3D-вьюера) ----------
   Список версий файла в боковой панели: новые сверху, у каждой — метка vN, «текущая», кто и когда, размер,
   комментарий, служебные пометки («Восстановлена из v1», «Комментарий изменён: …»); действия — рядом значков под
   версией, видны всегда (не .hover-tools: пустое место под версией читалось как сбой, а скрытые действия не находят).
   Удалённые — отдельной группой
   «Корзина» с датой окончательного стирания и кнопкой «Вернуть». Действие, которое сейчас нельзя (удалить текущую),
   — кнопка aria-disabled с подсказкой; по нажатию под версией — причина (.versions__why, role=status), не тост.
   <ol class="versions"><li class="versions__item" data-current>
     <span class="tag versions__n">v4</span>
     <div class="versions__head"><span class="tag tag--muted versions__badge">текущая</span>
       <span class="versions__who">Иван Петров</span><time class="versions__at">16.11.2026, 12:40</time></div>
     <span class="versions__size tnum">18,4 МБ</span>
     <p class="versions__comment">Исправлены отметки кровли</p>
     <p class="versions__note">Восстановлена из v1</p>
     <div class="versions__tools">…btn btn--toolbar btn--icon…</div>
     <p class="versions__why" role="status" hidden>…</p></li></ol>
   <h3 class="versions__group">Корзина</h3><p class="versions__hint">Удалённые версии стираются через 30 дней.</p>
   <ol class="versions versions--trash"><li class="versions__item"> … <p class="versions__purge">Сотрётся 16.12.2026</p>
     <div class="versions__tools">…скачать… <button class="btn btn--plain btn--s">…undo-2 Вернуть</button></div></li></ol> */
.versions { display: grid; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }
.versions__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: var(--sp-2);
  row-gap: 2px;
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
  border-radius: var(--inner-r);
  font-size: var(--fs-ui-m);
  transition: opacity var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}
@starting-style { .versions__item { opacity: 0; } }
.versions__item[data-current] { background: var(--fill-4); }
@media (hover: hover) and (pointer: fine) { .versions__item:not([data-current]):hover { background: color-mix(in srgb, var(--fill-4) 60%, transparent); } }
.versions__n { grid-row: 1; grid-column: 1; font-variant-numeric: tabular-nums; }
.versions__item:not([data-current]) .versions__n { border-color: var(--line-strong); color: var(--text-2); }
.versions__head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--sp-2); row-gap: 2px; grid-column: 2; min-width: 0; min-height: var(--tag-h); align-content: center; }
.versions__badge { align-self: center; }
.versions__who { min-width: 0; overflow: hidden; color: var(--label); font-weight: var(--fw-medium); text-overflow: ellipsis; white-space: nowrap; }
.versions__at { color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.versions__size { grid-column: 3; grid-row: 1; align-self: center; color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; white-space: nowrap; }
.versions__item > :is(.versions__comment, .versions__note, .versions__purge, .versions__tools, .versions__why) { grid-column: 2 / -1; margin: 0; }
.versions__comment { color: var(--label); overflow-wrap: anywhere; white-space: pre-line; }
.versions__note, .versions__purge { color: var(--label-2); font-size: var(--fs-callout); overflow-wrap: anywhere; }
.versions__purge { color: var(--label); }
.versions__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: var(--sp-1) !important; margin-left: calc(-1 * var(--sp-1)) !important; }
.versions__tools .btn--toolbar { --btn-fg: var(--label-2); }
.versions__tools .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.versions__tools .btn--plain { margin-left: var(--sp-1); }
.versions__why { display: flex; gap: var(--sp-1); align-items: start; color: var(--label-2); font-size: var(--fs-callout); }
.versions__why .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); margin-top: 1px; color: var(--accent); }
.versions__why[hidden] { display: none; }
.versions--trash .versions__item { background: none; }
.versions--trash :is(.versions__n, .versions__head, .versions__size, .versions__comment) { opacity: .6; }
.versions__group { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-5) 0 var(--sp-1); color: var(--label); font-size: var(--fs-ui-l); font-weight: var(--fw-bold); }
.versions__group .ui-icon { width: var(--icon-m); height: var(--icon-m); color: var(--label-2); }
.versions__hint { margin: 0 0 var(--sp-2); color: var(--label-2); font-size: var(--fs-callout); }
@media (prefers-reduced-motion: reduce) { .versions__item { transition: none; } }

/* ---------- Статус материала (2.17.0, [SOURCE] 2026-11-18, задача 6.8 3D-вьюера) ----------
   Статус версии файла: Черновик → На проверке → Принято / Отклонено → Выдано. Метка — тег .status-tag на .tag
   с data-status; цвет не единственный признак — у каждого статуса свой значок Lucide и слово:
     draft    — контур нейтральный, circle-dashed («ещё не отправлен»);
     review   — заливка «внимание» (как .tag--attention), clock — ждёт действия проверяющего;
     accepted — контур акцентом, circle-check акцентом;
     rejected — нейтральная заливка --fill-2, circle-x; не красный: отказ — рабочий шаг, а не ошибка (--danger — только ошибки);
     issued   — заливка акцентом, send — материал передан (самый «весомый» статус; лайм не берём — не сигнал).
   <span class="tag status-tag" data-status="review"><svg class="ui-icon">…clock</svg>На проверке</span>
   В истории версий — строка статуса .versions__status под шапкой версии: метка, кто и когда поставил, причина отказа
   (.versions__reason — с отступом слева чертой, как цитата) и кнопки переходов (.btn--plain.btn--s), доступных роли.
   В карточке версии чата метка идёт в .ver-card__meta; в списке файлов — рядом с vN (на узком экране — словом в подписи строки). */
.status-tag { gap: 4px; padding-inline: var(--sp-2); }
.status-tag > .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); }
.status-tag[data-status="draft"] { border-color: var(--line-strong); color: var(--text-2); }
.status-tag[data-status="review"] { border-color: transparent; background: var(--attention-fill); color: var(--on-attention-fill); }
.status-tag[data-status="accepted"] { border-color: var(--accent); color: var(--label); }
.status-tag[data-status="accepted"] > .ui-icon { color: var(--accent); }
.status-tag[data-status="rejected"] { border-color: transparent; background: var(--fill-2); color: var(--label); }
.status-tag[data-status="issued"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.versions__item > .versions__status { grid-column: 2 / -1; margin: 0; }
.versions__status { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--sp-2); row-gap: var(--sp-1); min-width: 0; }
.versions__status-by { color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.versions__status-acts { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.versions__reason { flex-basis: 100%; margin: 0; padding-left: var(--sp-2); border-left: 2px solid var(--line-strong); color: var(--label); overflow-wrap: anywhere; white-space: pre-line; }

/* ---------- Чат объекта (2.14.0, [SOURCE] 2026-11-18, задача 6.7 3D-вьюера) ----------
   Рабочий чат по объекту: разделы — переключателем .segmented над лентой (число сообщений — .chat__count, новые —
   .chat__count.is-new), лента — плоский список (не «пузыри» слева-справа: в рабочей переписке важнее кто и когда,
   чем «я / не я»), своё сообщение отмечено подписью «вы», не цветом. Файл в сообщении — карточка версии .ver-card:
   ссылка на конкретную vN (имя, vN, дата, автор, размер), не копия; новее есть — пометка «Текущая — v5» подписью,
   файл удалён — карточка приглушена и без скачивания. Автосообщение (.chat-msg--auto) — строка подписью со значком.
   Новое сообщение приходит прозрачностью и сдвигом на 4 px (@starting-style), при reduced-motion — сразу.
   <section class="chat">
     <div class="chat__feed" role="log" aria-live="polite" aria-label="Сообщения">
       <p class="chat__day"><span>Сегодня</span></p>
       <article class="chat-msg" data-mine>
         <span class="chat-msg__avatar" aria-hidden="true">ИП</span>
         <header class="chat-msg__head"><b class="chat-msg__who">Иван Петров</b><span class="chat-msg__me">вы</span>
           <time class="chat-msg__at">12:40</time></header>
         <blockquote class="chat-msg__quote"><b>Мария Соколова</b> Пришлите акт…</blockquote>
         <p class="chat-msg__text">Акт на подпись</p>
         <div class="chat-msg__files"><div class="ver-card">…</div></div>
         <div class="chat-msg__tools hover-tools"><button class="btn btn--toolbar btn--icon" aria-label="Ответить">…reply</button></div>
       </article>
       <p class="chat__new"><span>Новые</span></p>
       <article class="chat-msg chat-msg--auto"><svg class="ui-icon">refresh-cw</svg><p class="chat-msg__text">Файл «Акт.pdf»
         обновлён до v2</p><time class="chat-msg__at">12:55</time><div class="chat-msg__files">…ver-card…</div></article>
     </div>
     <form class="composer">…</form>
   </section>
   <div class="ver-card [is-gone]"><svg class="ui-icon ver-card__icon">file-text</svg>
     <div class="ver-card__main"><span class="ver-card__name">Акт.pdf</span>
       <span class="ver-card__meta"><span class="tag ver-card__n">v2</span>16.11.2026, 12:40 · Иван Петров · 2,4 МБ</span>
       <span class="ver-card__note">Текущая — v3</span></div>
     <a class="btn btn--toolbar btn--icon ver-card__get" href="…" download aria-label="Скачать v2">…download</a></div> */
.chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--sp-2); min-height: 0; }
.chat__count { margin-left: var(--sp-1); color: var(--label-2); font-variant-numeric: tabular-nums; }
.chat__count.is-new { color: var(--accent); font-weight: var(--fw-bold); }
.chat__feed { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-2) 0; }
.chat__day, .chat__new {
  display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-1);
  color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums;
}
.chat__day::before, .chat__day::after, .chat__new::before, .chat__new::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chat__new { color: var(--accent); }
.chat__new::before, .chat__new::after { background: color-mix(in srgb, var(--accent) 50%, transparent); }
.chat__empty { margin: auto; max-width: 36ch; color: var(--label-2); text-align: center; }
/* Колонка чтения (2.22.0): лента, поле ввода и строки под ними — не шире --chat-measure и по левому краю сетки страницы,
   чтобы строки не разъезжались на широком экране. Уже колонки (телефон, узкая панель) — во всю ширину. */
.chat__feed, .chat > .composer { max-inline-size: var(--chat-measure); }
/* Смена раздела, темы, канала (2.22.0): прежняя лента держится, пока не пришла новая, — без служебной надписи и прыжков высоты.
   Ожидание дольше --chat-busy-delay — лента тихо приглушается (aria-busy="true"); пришла новая — проявляется (.is-fresh).
   Ленте нечего держать (первое открытие) — скелетон строк .chat__skel на её месте, высота ленты та же.
   <div class="chat__feed" aria-busy="true"><div class="chat__skel" aria-hidden="true"><span class="chat__skel-row">
     <span class="chat__skel-avatar"></span><span class="chat__skel-line"></span><span class="chat__skel-line chat__skel-line--short"></span></span>…</div></div> */
.chat__feed { transition: opacity var(--dur-fast) var(--ease-standard); }
.chat__feed[aria-busy="true"]:not(:has(> .chat__skel)) { opacity: .55; transition-delay: var(--chat-busy-delay); }
.chat__feed.is-fresh { animation: chat-fresh var(--dur-base) var(--ease-entrance); }
@keyframes chat-fresh { from { opacity: .55; } }
.chat__skel { display: grid; gap: var(--sp-4); padding: var(--sp-3) var(--sp-3) 0; animation: chat-skel 1.6s var(--ease-standard) infinite alternate; }
.chat__skel-row { display: grid; grid-template-columns: var(--chat-avatar, 32px) minmax(0, 1fr); column-gap: var(--sp-3); row-gap: var(--sp-2); }
.chat__skel-avatar { grid-row: span 2; width: var(--chat-avatar, 32px); height: var(--chat-avatar, 32px); border-radius: var(--r-full); background: var(--fill-3); }
.chat__skel-line { height: 10px; width: 72%; border-radius: var(--r-full); background: var(--fill-3); }
.chat__skel-line--short { width: 40%; }
.chat__skel-row:nth-child(2n) .chat__skel-line { width: 56%; }
.chat__skel-row:nth-child(2n) .chat__skel-line--short { width: 28%; }
@keyframes chat-skel { from { opacity: 1; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  .chat__feed, .chat__feed[aria-busy="true"]:not(:has(> .chat__skel)) { transition: none; }
  .chat__feed.is-fresh, .chat__skel { animation: none; }
}
.chat-msg {
  position: relative;
  display: grid;
  grid-template-columns: var(--chat-avatar, 32px) minmax(0, 1fr);
  column-gap: var(--sp-3);
  row-gap: 2px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--inner-r);
  font-size: var(--fs-ui-m);
  transition: opacity var(--dur-normal) var(--ease-entrance), translate var(--dur-normal) var(--ease-entrance), background-color var(--dur-fast) var(--ease-standard);
}
@starting-style { .chat-msg { opacity: 0; translate: 0 4px; } }
@media (hover: hover) and (pointer: fine) { .chat-msg:hover { background: var(--fill-4); } }
.chat-msg.is-target { background: var(--fill-3); }
.chat-msg + .chat-msg[data-cont] { padding-top: 0; }
.chat-msg[data-cont] :is(.chat-msg__avatar, .chat-msg__head) { display: none; }
.chat-msg > :not(.chat-msg__avatar, .chat-msg__tools) { grid-column: 2; margin: 0; min-width: 0; }
.chat-msg__avatar {
  grid-row: 1 / span 4; display: grid; place-items: center; width: var(--chat-avatar, 32px); height: var(--chat-avatar, 32px);
  border-radius: var(--r-full); background: var(--fill-3); color: var(--label); font-size: var(--fs-callout); font-weight: var(--fw-bold);
}
.chat-msg[data-role="admin"] .chat-msg__avatar, .chat-msg[data-role="team"] .chat-msg__avatar { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.chat-msg__head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--sp-2); }
.chat-msg__who { color: var(--label); font-weight: var(--fw-medium); }
.chat-msg__me, .chat-msg__org { color: var(--label-2); font-size: var(--fs-callout); }
.chat-msg__at { color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.chat-msg__text { color: var(--label); overflow-wrap: anywhere; white-space: pre-line; }
.chat-msg__quote {
  display: block; margin: 2px 0 var(--sp-1) !important; padding: 2px 0 2px var(--sp-2);
  border-left: 2px solid var(--line-strong); color: var(--label-2); font-size: var(--fs-callout);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
.chat-msg__quote b { color: var(--label); font-weight: var(--fw-medium); margin-right: var(--sp-1); }
.chat-msg__files { display: grid; gap: var(--sp-1); margin-top: var(--sp-1) !important; max-width: 480px; }
.chat-msg__tools { position: absolute; top: var(--sp-1); right: var(--sp-2); display: flex; gap: 2px; }
.chat-msg__tools .btn--toolbar { --btn-fg: var(--label-2); }
.chat-msg--auto { grid-template-columns: var(--chat-avatar, 32px) minmax(0, 1fr) auto; align-items: center; color: var(--label-2); }
.chat-msg--auto > .ui-icon { grid-column: 1; justify-self: center; width: var(--icon-s); height: var(--icon-s); color: var(--label-2); }
.chat-msg--auto .chat-msg__text { color: var(--label-2); font-size: var(--fs-callout); }
.chat-msg--auto .chat-msg__at { grid-column: 3; }
.chat-msg--auto .chat-msg__files { grid-column: 2 / -1; }
@container (max-width: 480px) {
  .chat-msg { --chat-avatar: 28px; column-gap: var(--sp-2); padding-inline: var(--sp-2); }
  .chat-msg:not(.chat-msg--auto):has(.chat-msg__tools) { padding-right: var(--control-h-m); }
  .chat-msg__tools { top: 2px; right: 0; }
}
@media (prefers-reduced-motion: reduce) { .chat-msg { transition: none; } }

/* Карточка версии файла — в ленте чата и в поле ввода (вложения до отправки — .ver-card--chip с крестиком). */
.ver-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
  border: 1px solid var(--line); border-radius: var(--group-r); background: var(--fill-4);
  font-size: var(--fs-ui-m);
}
.ver-card__icon { width: var(--icon-m); height: var(--icon-m); color: var(--label-2); }
.ver-card__main { display: grid; gap: 2px; min-width: 0; }
.ver-card__name { overflow: hidden; color: var(--label); font-weight: var(--fw-medium); text-overflow: ellipsis; white-space: nowrap; }
.ver-card__meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--sp-2); row-gap: 2px; color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.ver-card__n { font-variant-numeric: tabular-nums; }
.ver-card__note { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--label-2); font-size: var(--fs-callout); overflow-wrap: anywhere; }
.ver-card__note .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); }
.ver-card__get { --btn-fg: var(--label-2); }
.ver-card.is-gone :is(.ver-card__icon, .ver-card__main) { opacity: .6; }
.ver-card--chip { grid-template-columns: auto minmax(0, 1fr) auto; padding-block: var(--sp-1); transition: opacity var(--dur-fast) var(--ease-standard); }
@starting-style { .ver-card--chip { opacity: 0; } }
.ver-card--chip.is-leaving { opacity: 0; }

/* Поле ввода сообщения: ответ (цитата с крестиком), вложения, строка — «прикрепить», текст (растёт до 8 строк),
   «Отправить». Enter — отправить, Shift+Enter — новая строка (подсказка .composer__hint).
   <form class="composer">
     <div class="composer__reply presence presence--fade" hidden><svg class="ui-icon">reply</svg><span>Ответ <b>Мария</b>: …</span>
       <button class="btn btn--toolbar btn--icon" type="button" aria-label="Не отвечать">x</button></div>
     <div class="composer__files"><div class="ver-card ver-card--chip">…</div></div>
     <div class="composer__row">
       <button class="btn btn--toolbar btn--icon composer__attach" aria-haspopup="menu" aria-label="Прикрепить файл">…paperclip</button>
       <textarea class="textarea composer__input" rows="1" placeholder="Сообщение"></textarea>
       <button class="btn btn--primary btn--icon composer__send" aria-label="Отправить">…send-horizontal</button></div>
     <p class="composer__hint">Enter — отправить, Shift+Enter — новая строка</p>
   </form> */
.composer { display: grid; gap: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.composer__reply {
  display: flex; align-items: center; gap: var(--sp-2); padding-left: var(--sp-2);
  border-left: 2px solid var(--accent); color: var(--label-2); font-size: var(--fs-callout);
}
.composer__reply > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer__reply b { color: var(--label); font-weight: var(--fw-medium); }
.composer__reply > .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); color: var(--accent); }
.composer__reply[hidden], .composer__files:empty { display: none; }
.composer__files { display: grid; gap: var(--sp-1); }
.composer__row { display: flex; align-items: flex-end; gap: var(--sp-2); }
.composer__input {
  flex: 1; height: auto; min-height: var(--control-h-m); max-height: calc(8 * 1.4em + 2 * var(--sp-2));
  padding-block: calc((var(--control-h-m) - 1.4em - 2px) / 2); line-height: 1.4; resize: none; overflow-y: auto;
  field-sizing: content;
}
.composer__attach, .composer__send { flex: none; }
.composer__attach { --btn-fg: var(--label-2); height: var(--control-h-m); width: var(--control-h-m); }
.composer__send { height: var(--control-h-m); width: var(--control-h-m); }
.composer__hint { margin: 0; color: var(--label-2); font-size: var(--fs-callout); }
@media (pointer: coarse) { .composer__hint { display: none; } }


/* ---------- Журнал событий объекта (2.15.0, [SOURCE] 2026-11-18, задача 6.6 3D-вьюера) ----------
   Аудит «кто, что, когда и с какого адреса» — для споров «что и когда передано». Сверху — состояние целостности
   (.audit__seal: цепочка хешей цела / старые записи не подцеплены / нарушена — значок щита и текст, не только цвет;
   нарушение — красным по правилу ошибки), под ним фильтры (.audit__filters: тип события, кто, файл, период, поиск;
   «Сбросить» и «CSV» справа), счётчик «Найдено N из M» и таблица (.table) новыми сверху: когда (дата и время
   отдельными строками), кто (имя и роль подписью), событие — нейтральным тегом, что — текстом, IP — табличными
   цифрами. Журнал только читается: действий в строке нет. Записи до начала цепочки помечены подписью «до цепочки».
   Узкий контейнер (меньше 640 px — телефон, боковая панель) — таблица становится списком карточек: шапка скрыта
   для глаз (остаётся для читалки), строка — сетка «когда» (подписью) / событие / «что» / «кто · IP». Длинный журнал —
   кнопкой «Показать ещё» (.audit__more), не бесконечной прокруткой.
   <section class="audit">
     <p class="audit__seal" data-state="ok|legacy|broken|empty" role="status"><svg class="ui-icon">shield-check</svg>
       <span><b>Цепочка цела</b> · 515 записей, последняя 16.11.2026, 20:05</span>
       <button class="btn btn--toolbar btn--s audit__check">Проверить</button></p>
     <form class="audit__filters">
       <label class="audit__filter"><span class="t-label">Событие</span><span class="select-wrap select-wrap--s"><select class="select input input--s">…</select></span></label>
       … «Кто», «Файл», «С» / «По» (input type=date), поиск .search …
       <div class="audit__actions"><button class="btn btn--plain btn--s" type="reset">Сбросить</button>
         <a class="btn btn--plain btn--s" href="…a=audit-csv…" download><svg class="ui-icon">download</svg>CSV</a></div>
     </form>
     <p class="audit__count">Найдено 42 из 515</p>
     <div class="table-wrap audit__wrap"><table class="table audit__table">
       <thead><tr><th>Когда</th><th>Кто</th><th>Событие</th><th>Что</th><th>IP</th></tr></thead>
       <tbody><tr data-group="download">
         <td class="audit__at"><time datetime="…">16.11.2026</time><span>20:05:14</span></td>
         <td class="audit__who"><b>Иван Петров</b><span>Компания</span></td>
         <td class="audit__ev"><span class="tag tag--muted">Скачал</span></td>
         <td class="audit__what">«Акт.pdf» v2<span class="audit__legacy">до цепочки</span></td>
         <td class="audit__ip">10.0.0.12</td></tr></tbody></table></div>
     <button class="btn btn--plain btn--s audit__more">Показать ещё</button>
   </section> */
.audit { display: grid; align-content: start; gap: var(--sp-3); min-width: 0; container: audit / inline-size; }
.audit__seal {
  display: flex; align-items: center; gap: var(--sp-2); margin: 0; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--group-r); background: var(--fill-4); color: var(--label-2); font-size: var(--fs-callout);
}
.audit__seal > span { flex: 1; min-width: 0; }
.audit__seal b { color: var(--label); font-weight: var(--fw-medium); }
.audit__seal > .ui-icon { flex: none; color: var(--accent); }
.audit__seal[data-state="legacy"] > .ui-icon, .audit__seal[data-state="empty"] > .ui-icon { color: var(--label-2); }
.audit__seal[data-state="broken"] { box-shadow: inset 0 0 0 1px var(--danger); }
.audit__seal[data-state="broken"] > .ui-icon, .audit__seal[data-state="broken"] b { color: var(--danger); }
.audit__check { flex: none; }
.audit__filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2) var(--sp-3); margin: 0; }
.audit__filter { display: grid; gap: var(--sp-1); min-width: 0; flex: 1 1 150px; max-width: 260px; }
.audit__filter--date { flex: 0 1 140px; }
.audit__filter--q { flex: 2 1 200px; max-width: 320px; }
.audit__filter .t-label { color: var(--label-2); }
.audit__actions { display: flex; gap: var(--sp-2); margin-left: auto; }
/* Строка счёта — зарезервированное место для состояния (2.42.0, [PRODUCTION], задача 9.33): «Загружаем журнал…» и
   ошибка загрузки (.is-error) пишутся в неё, а не новой строкой над таблицей, — таблица не сдвигается. Пока
   журнал грузится, таблица приглушена (.audit__wrap[aria-busy="true"]). Плашка цепочки до первых данных
   (пустая) держит свою высоту. */
.audit__count { min-height: calc(var(--fs-callout) * var(--lh-ui)); margin: 0; color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.audit__count.is-error { color: var(--danger); }
.audit__seal:empty { min-height: calc(var(--control-h-s) + 2 * var(--sp-2)); }
.audit__wrap { transition: opacity var(--dur-fast) var(--ease-standard); }
.audit__wrap[aria-busy="true"] { opacity: .55; }
.audit__wrap { min-width: 0; }
/* Журнал — текст в несколько строк: в «Сервисах» ряды таблицы по умолчанию в одну строку фиксированной высоты. */
.audit .table.audit__table td { height: auto; padding-block: var(--sp-2); vertical-align: top; white-space: normal; }
.audit__at { white-space: nowrap; font-variant-numeric: tabular-nums; }
.audit .table.audit__table td.audit__at, .audit .table.audit__table td.audit__ip, .audit .table.audit__table td.audit__ev { white-space: nowrap; }
.audit__at > :is(time, span), .audit__who > :is(b, span) { display: block; }
.audit__at > span, .audit__who > span { color: var(--label-2); font-size: var(--fs-callout); }
.audit__who b { font-weight: var(--fw-medium); overflow-wrap: anywhere; }
.audit__what { overflow-wrap: anywhere; }
.audit__ip { color: var(--label-2); font-variant-numeric: tabular-nums; }
.audit__legacy { display: inline-block; margin-left: var(--sp-2); color: var(--label-2); font-size: var(--fs-caption); }
.audit__more { justify-self: center; }
.audit__more[hidden] { display: none; }
@container audit (max-width: 640px) {
  .audit__seal { flex-wrap: wrap; }
  .audit__seal > span { flex: 1 1 200px; }
  .audit__check { margin-left: auto; }
  .audit__actions { margin-left: 0; }
  .audit__filter { max-width: none; }
  .audit__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Карточка: «когда» подписью сверху, событие, что, внизу «кто · IP». Зебра — на ряду, не на ячейках. */
  .audit__table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-2); row-gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-3); grid-template-areas: "at at" "ev ev" "what what" "who ip";
  }
  .audit__table tbody tr:nth-child(even) { background: var(--fill-4); }
  .audit .table.audit__table tbody tr:nth-child(n) td { height: auto; min-height: 0; padding: 0; border: 0; background: none; }
  .audit__ev { grid-area: ev; min-width: 0; }
  .audit__at { grid-area: at; color: var(--label-2); font-size: var(--fs-callout); }
  .audit__at > :is(time, span) { display: inline; }
  .audit__at > span::before { content: ", "; }
  .audit__what { grid-area: what; }
  .audit__who { grid-area: who; color: var(--label-2); font-size: var(--fs-callout); }
  .audit__who > :is(b, span) { display: inline; }
  .audit__who > span::before { content: " · "; }
  .audit__ip { grid-area: ip; align-self: end; text-align: right; font-size: var(--fs-callout); }
}


/* ---------- Участники объекта и матрица прав (2.16.0, [SOURCE] 2026-11-18, задача 6.9 3D-вьюера) ----------
   Кто работает с файлами и чатом объекта и что ему можно. Два блока:
   1. .members — список участников: кружок с инициалами (.members__avatar, как у чата), имя и подпись
      (.members__name, .members__sub: email · организация · папка участника), справа роль (.members__role:
      маленький выбор .select-wrap--s у того, кто назначает, иначе нейтральный тег) и меню «…» (.members__tools).
      Строки «по умолчанию» (.members__item--default: админ, сотрудники, владелец — их не убрать) — без меню,
      кружок тише. Внешний участник помечен значком папки перед её именем (.members__area). Узкий контейнер
      (меньше 520 px) — роль и меню уходят под имя, строка не сжимает текст.
   2. .perm-matrix — таблица «право × роль» на .table: в клетке галочка (есть) или тире (нет) — значком и текстом
      для читалки, не только цветом; столбец текущей роли сессии подсвечен (th/td[data-current]). Первый столбец —
      подпись права, прилипает при горизонтальной прокрутке на телефоне.
   Цвет: акцент только у галочек и текущего столбца; лайм не используется. */
.members { display: grid; margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.members__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-2); border-bottom: 1px solid var(--line);
}
.members__item:last-child { border-bottom: 0; }
.members__avatar {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-full);
  background: var(--fill-3); color: var(--label); font-size: var(--fs-callout); font-weight: var(--fw-bold);
}
.members__item[data-kind="external"] .members__avatar { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.members__item--default .members__avatar { background: transparent; border: 1px dashed var(--line-strong); color: var(--label-2); }
.members__main { display: grid; gap: 2px; min-width: 0; }
.members__name { color: var(--label); font-weight: var(--fw-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.members__sub { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--sp-2); color: var(--label-2); font-size: var(--fs-callout); min-width: 0; }
.members__sub > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.members__area { display: inline-flex; align-items: center; gap: var(--sp-1); }
.members__area > .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); }
.members__area[data-deleted] { color: var(--danger); }
.members__role { justify-self: end; min-width: 0; }
.members__role .select { min-width: 9.5rem; }
.members__tools { justify-self: end; }
.members__item--default .members__tools { visibility: hidden; }
@container (max-width: 520px) {
  .members__item { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: var(--sp-2); }
  .members__role { grid-column: 2; grid-row: 2; justify-self: start; }
  .members__tools { grid-column: 3; grid-row: 1 / span 2; align-self: start; }
}

.perm-matrix { width: 100%; }
.perm-matrix th, .perm-matrix td { text-align: center; white-space: nowrap; }
.perm-matrix th:first-child, .perm-matrix td:first-child {
  position: sticky; left: 0; z-index: 1; text-align: left; white-space: normal; min-width: 11rem; background: var(--surface-solid);
}
.perm-matrix td:first-child { color: var(--label); }
.perm-matrix__yes, .perm-matrix__no { display: inline-grid; place-items: center; width: var(--icon-m); height: var(--icon-m); vertical-align: middle; }
.perm-matrix__yes { color: var(--accent); }
.perm-matrix__no { color: var(--label-2); }
.perm-matrix__yes > .ui-icon, .perm-matrix__no > .ui-icon { width: var(--icon-m); height: var(--icon-m); }
.perm-matrix :is(th, td)[data-current] { background: color-mix(in srgb, var(--accent) 8%, var(--surface-solid)); }
.perm-matrix th[data-current] { color: var(--accent); }


/* ---------- Сравнение версий файла (2.18.0, [SOURCE] 2026-11-18, задача 6.11 3D-вьюера) ----------
   Две версии одного файла в одном окне: сведения (кто, когда, размер, хеш, комментарий, статус) и, где получается,
   содержимое. PDF и изображения — «Рядом» (общие прокрутка и масштаб), «Наложение» (новая поверх старой, ползунок
   прозрачности), «Разница» (изменившееся — акцентом поверх бледной новой версии, области — рамками, переход по ним).
   Модели GLB и IFC — «Рядом» (одна камера на обе) или «Наложение»; изменено, добавлено, удалено — цветами разницы
   --diff-* (tokens.css), у каждой категории — кнопка-переключатель легенды с числом (цвет не единственный признак).
   Окно — модалка почти во весь экран (dialog.modal.compare): шапка, слева колонка сведений, справа картинка; уже 900 px
   сведения уходят наверх; на телефоне окно — во весь экран без полей. «Рядом» на высокой узкой сцене — сверху вниз
   (@container по пропорции; 3D-проект делит холст по тому же правилу).
   <dialog class="modal compare" aria-labelledby="cmp-title">
     <header class="compare__head">
       <div class="compare__heading"><p class="compare__eyebrow">Сравнение версий</p>
         <h2 class="modal__title compare__title" id="cmp-title">План 3 этажа.pdf</h2></div>
       <div class="compare__pick"><select class="select compare__ver" aria-label="Было">…</select>
         <svg class="ui-icon">…arrow-right</svg><select class="select compare__ver" aria-label="Стало">…</select></div>
       <button class="btn btn--toolbar btn--icon compare__close" type="button" data-close aria-label="Закрыть">…x</button>
     </header>
     <div class="compare__body">
       <section class="compare__meta" aria-label="Сведения">
         <p class="compare__same">…equal Содержимое совпадает побайтно</p>
         <table class="table compare__table"><thead><tr><th scope="col">…</th><th scope="col">v2</th><th scope="col">v5</th></tr></thead>
           <tbody><tr data-changed><th scope="row"><svg class="ui-icon compare__mark">…equal-not</svg>Размер</th>
             <td>18,1 МБ</td><td>18,4 МБ<span class="compare__delta">+0,3 МБ</span></td></tr></tbody></table>
         <h3 class="compare__sub">Элементы</h3><ul class="compare__list"><li><button class="compare__item" data-kind="changed">…</button></li></ul>
       </section>
       <section class="compare__view" aria-label="Содержимое">
         <div class="compare__bar"><div class="segmented">Рядом · Наложение · Разница</div>
           <label class="compare__mix">v2 <span class="slider">…</span> v5</label></div>
         <div class="compare__stage" data-mode="side|overlay|diff" data-kind="doc|model">
           <div class="compare__pane" data-side="a"><span class="tag tag--media compare__label">v2</span>
             <div class="compare__scroll"><div class="compare__sheet"><canvas></canvas></div></div></div>
           <div class="compare__pane" data-side="b">…</div>
           <div class="float float-bar compare__float">‹ стр. 3 из 12 › − 100 % + вписать</div>
           <p class="compare__state presence presence--fade">…spinner Загружаем…</p>
         </div>
         <div class="compare__legend"><button class="btn btn--plain btn--s compare__key" data-kind="changed" aria-pressed="true">
           <span class="compare__swatch"></span>Изменено <b>12</b></button>…</div>
       </section>
     </div>
   </dialog>
   В истории версий — выбор двух: флажок «Сравнить» у версии (.versions__pick) и строка .compare-pick над списком
   («Отметьте две версии» → кнопка «Сравнить v2 и v5»); у карточки версии в чате — кнопка .ver-card__act
   «Сравнить с текущей». Иконки git-compare, columns-2, blend, diff, zoom-in, zoom-out, scan, equal, equal-not, crosshair. */
.compare {
  width: calc(100vw - 2 * var(--sp-4));
  max-width: none;
  height: calc(100dvh - 2 * var(--sp-4));
  max-height: none;
  padding: 0;
  overflow: hidden;
  corner-shape: var(--corner-shape);
}
.compare[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.compare__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--window-pad);
  border-bottom: 1px solid var(--separator);
}
.compare__heading { flex: 1 1 14rem; min-width: 0; }
.compare__eyebrow { margin: 0; color: var(--label-2); font-size: var(--fs-callout); }
.compare__title { padding: 0; overflow: hidden; font-size: var(--fs-title-2); text-overflow: ellipsis; white-space: nowrap; }
.compare__pick { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.compare__pick > .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); color: var(--label-2); }
.compare__ver { width: auto; min-width: 7rem; }
.compare__close { flex: none; }
.compare__body { display: grid; grid-template-columns: var(--compare-meta-w) minmax(0, 1fr); min-height: 0; }
.compare__meta { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: var(--sp-3) var(--sp-4) var(--sp-4); border-right: 1px solid var(--separator); }
.compare__same {
  display: flex; gap: var(--sp-2); align-items: start; margin: 0 0 var(--sp-3); padding: var(--sp-2) var(--sp-3);
  border-radius: var(--group-r); background: var(--fill-4); color: var(--label); font-size: var(--fs-callout);
}
.compare__same .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); margin-top: 1px; color: var(--accent); }
.compare__same[hidden] { display: none; }
.compare .table.compare__table { width: 100%; table-layout: auto; }
.compare .table.compare__table :is(td, th) { height: auto; padding-block: var(--sp-1); vertical-align: top; white-space: normal; overflow-wrap: break-word; hyphens: auto; }
.compare__table thead th:not(:first-child) { font-variant-numeric: tabular-nums; }
.compare__table th[scope="row"] { width: 1%; color: var(--label-2); font-weight: var(--fw-regular); text-align: left; }
.compare .table.compare__table th[scope="row"] { white-space: nowrap; }
.compare__table .status-tag { max-width: 100%; white-space: normal; text-align: left; }
.compare__table tr[data-changed] th[scope="row"] { color: var(--label); font-weight: var(--fw-medium); }
.compare__table tr[data-changed] td:last-child { font-weight: var(--fw-medium); }
.compare__table td { font-variant-numeric: tabular-nums; }
.compare__mark { display: inline-block; width: var(--icon-s); height: var(--icon-s); margin-right: 4px; vertical-align: -2px; color: var(--diff-changed); }
.compare__delta { display: block; color: var(--label-2); font-size: var(--fs-callout); font-weight: var(--fw-regular); }
.compare__sub { margin: var(--sp-4) 0 var(--sp-1); color: var(--label); font-size: var(--fs-ui-l); font-weight: var(--fw-bold); }
.compare__note { margin: var(--sp-2) 0 0; color: var(--label-2); font-size: var(--fs-callout); }
.compare__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.compare__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--sp-2); width: 100%;
  padding: var(--sp-1) var(--sp-2); border: 0; border-radius: var(--menu-item-r); background: none; color: var(--label);
  font: inherit; font-size: var(--fs-ui-m); text-align: left; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .compare__item:hover { background: var(--fill-3); } }
.compare__item[aria-current="true"] { background: var(--selection); color: var(--on-selection); }
.compare__item > span:last-child { display: grid; min-width: 0; }
.compare__item b { overflow: hidden; font-weight: var(--fw-medium); text-overflow: ellipsis; white-space: nowrap; }
.compare__item small { overflow: hidden; color: var(--label-2); font-size: var(--fs-callout); text-overflow: ellipsis; white-space: nowrap; }
.compare__item[aria-current="true"] small { color: inherit; opacity: .8; }
.compare__view { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.compare__bar { grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); padding: var(--sp-2) var(--sp-4); }
/* Строки закреплены: без панели режимов (только сведения, содержимое совпадает) сцена не схлопывается. */
.compare__view > .compare__stage { grid-row: 2; }
.compare__view > .compare__legend { grid-row: 3; }
.compare__bar[hidden] + .compare__stage { margin-top: var(--sp-4); }
.compare__bar[hidden], .compare__mix[hidden] { display: none; }
.compare__bar .segmented .ui-icon { width: var(--icon-s); height: var(--icon-s); margin-right: 4px; vertical-align: -3px; }
.compare__mix { display: flex; flex: 0 1 18rem; align-items: center; gap: var(--sp-2); min-width: 12rem; color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.compare__mix .slider { flex: 1; }
.compare__stage {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; min-height: 0;
  margin: 0 var(--sp-4); overflow: hidden; border-radius: var(--group-r); corner-shape: var(--corner-shape);
  background: var(--separator); container: compare-stage / size;
}
.compare__stage:not([data-mode="side"]) { grid-template-columns: 1fr; }
.compare__stage:not([data-mode="side"]) > .compare__pane[data-side="a"] { display: none; }
@container compare-stage (aspect-ratio < 1.1) {
  .compare__stage[data-mode="side"] { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
}
.compare__pane { position: relative; display: grid; min-width: 0; min-height: 0; background: var(--bg-content); }
.compare__label { position: absolute; top: var(--sp-2); left: var(--sp-2); z-index: 2; pointer-events: none; font-variant-numeric: tabular-nums; }
.compare__scroll { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.compare__sheet { position: relative; width: max-content; margin: var(--sp-6) auto; box-shadow: var(--mat-shadow); }
.compare__sheet > :is(canvas, img) { display: block; max-width: none; }
.compare__layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare__missing { display: grid; place-content: center; min-height: 100%; padding: var(--sp-6); color: var(--label-2); font-size: var(--fs-callout); text-align: center; }
.compare__region {
  position: absolute; border: 2px solid var(--diff-changed); border-radius: var(--r-xs); pointer-events: none;
  transition: box-shadow var(--dur-fast) var(--ease-standard);
}
.compare__region.is-current { box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .28); }
/* 3D: один холст на всю сцену (обе половины рисует проект), панели — только подписи версий поверх. */
.compare__stage[data-kind="model"] { background: var(--bg-content); }
.compare__stage[data-kind="model"] > .compare__pane { background: none; pointer-events: none; }
.compare__stage[data-kind="model"][data-mode="side"] > .compare__pane[data-side="b"] { border-left: 1px solid var(--separator); }
@container compare-stage (aspect-ratio < 1.1) {
  .compare__stage[data-kind="model"][data-mode="side"] > .compare__pane[data-side="b"] { border-left: 0; border-top: 1px solid var(--separator); }
}
.compare__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.compare__float { position: absolute; left: 50%; bottom: var(--sp-3); z-index: 3; translate: -50% 0; max-width: calc(100% - 2 * var(--sp-3)); }
.compare__float[hidden] { display: none; }
.compare__float output { min-width: 4.5em; padding: 0 var(--sp-1); color: var(--label); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.compare__state {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: var(--sp-2);
  padding: var(--sp-6); background: var(--bg-content); color: var(--label-2); font-size: var(--fs-callout); text-align: center;
}
.compare__state progress { width: 12rem; }
.compare__legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); min-height: calc(var(--control-h-s) + 2 * var(--sp-2)); padding: var(--sp-2) var(--sp-4) var(--sp-3); }
.compare__legend[hidden] { display: none; }
.compare__legend-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.compare__legend-key { color: var(--label); }
.compare__legend-key b { font-weight: var(--fw-bold); }
.compare__key b { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.compare__key[aria-pressed="false"] { --btn-fg: var(--label-2); }
.compare__swatch { flex: none; width: 10px; height: 10px; border-radius: var(--r-full); background: var(--diff-changed); }
.compare__key[data-kind="added"] .compare__swatch, .compare__item[data-kind="added"] .compare__swatch { background: var(--diff-added); }
.compare__key[data-kind="removed"] .compare__swatch, .compare__item[data-kind="removed"] .compare__swatch { background: rgb(var(--accent-rgb) / var(--diff-ghost)); box-shadow: inset 0 0 0 1.5px var(--diff-removed); }
.compare__key[data-kind="same"] .compare__swatch { background: var(--diff-same); }
.compare__key[aria-pressed="false"] .compare__swatch { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
/* Узкое окно — сведения сверху (сворачиваются), картинка ниже; телефон — окно во весь экран. */
@media (max-width: 900px) {
  .compare__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .compare__meta { max-height: 38dvh; border-right: 0; border-bottom: 1px solid var(--separator); }
}
@media (max-width: 720px) {
  .compare { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .compare__head { padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); }
  .compare__pick { order: 3; flex-basis: 100%; }
  .compare__ver { flex: 1; min-width: 0; }
  .compare__meta { max-height: 30dvh; padding-inline: var(--sp-3); }
  .compare .table.compare__table :is(td, th) { padding-inline: var(--sp-1); }
  .compare .table.compare__table th[scope="row"] { white-space: normal; }
  .compare__bar { padding-inline: var(--sp-3); }
  .compare__stage { margin-inline: var(--sp-2); }
  .compare__legend { padding-inline: var(--sp-3); }
}
/* В истории версий: выбор двух версий и строка «Сравнить». */
.compare-pick {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-2);
  padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-3); border-radius: var(--group-r); background: var(--fill-4);
  color: var(--label-2); font-size: var(--fs-callout);
}
.compare-pick > .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); }
.compare-pick__text { flex: 1 1 10rem; min-width: 0; }
.versions__tools > .versions__pick { order: 99; margin-left: auto; padding-right: var(--sp-1); color: var(--label-2); font-size: var(--fs-callout); }
.versions__pick:has(:checked) { color: var(--label); }
.ver-card__act { margin-left: var(--sp-1); }
.ver-card__note:has(.ver-card__act) { flex-wrap: wrap; row-gap: var(--sp-1); }
@media (prefers-reduced-motion: reduce) { .compare__region { transition: none; } }

/* ---------- Уведомления, поиск, упоминания (2.19.0, [SOURCE] 2026-11-18, задача 6.10 3D-вьюера) ----------
   Колокольчик со счётчиком (кнопка тулбара; число — бейдж акцентом, приходит и уходит .presence):
   <button class="btn btn--toolbar btn--icon bell" type="button" aria-haspopup="dialog" aria-label="Уведомления, 3 новых">
     <svg class="ui-icon"><use href="icons.svg#i-bell"/></svg>
     <span class="badge badge--accent bell__count presence presence--pop" aria-hidden="true">3</span>
   </button>                                     новое пришло — .is-ring на миг (качнуть значок; reduced motion — нет)
   Лента уведомлений — в поповере из колокольчика (.popover.notify-pop) или в шторке на телефоне:
   <section class="notify">
     <header class="notify__head"><h2 class="notify__title">Уведомления</h2> … «Прочитать все» (check-check)</header>
     <div class="segmented notify__scope">Все объекты | Этот объект</div>
     <ol class="notify__list">
       <li class="notify__day">Сегодня</li>
       <li class="notify__item hover-host is-unread" data-event="mention|version|status">
         <button class="notify__go" type="button">               переход к месту: объект, вкладка, файл или сообщение
           <span class="notify__icon"><svg …at-sign|history|clock…/></span>
           <span class="notify__body"><b class="notify__line">…</b><span class="notify__text">…</span>
             <span class="notify__meta">Объект 626 · 12:40 · Вы проверяющий</span></span>
           <span class="notify__dot" aria-hidden="true"></span><span class="sr-only">Новое</span>
         </button>
         <div class="notify__tools hover-tools"><button class="btn btn--toolbar btn--icon">check</button></div>
       </li>
     </ol>
     <p class="notify__empty">…</p>   <button class="btn btn--plain btn--s notify__more">Показать ещё</button>
   </section>
   Непрочитанное — точка акцентом и жирная строка, не только цвет; лайм не используется.
   Результаты поиска, сгруппированные по объектам (поповер под полем поиска в шапке или блок в шторке):
   <div class="search-results">
     <section class="search-results__group"><h3 class="search-results__obj"><span class="tag tag--muted">626</span>Щапово<span class="search-results__n">3</span></h3>
       <ul class="search-results__list"><li><button class="search-results__item">значок · имя с <mark> · путь · теги</button></li></ul>
     </section>
     <p class="search-results__more">Показаны 20 из 34</p>   <p class="search-results__empty">Ничего не найдено</p>
   </div>
   Подсказка упоминаний над полем ввода чата (@): список из материала меню, растёт вверх от поля (.presence):
   <ul class="mention-list presence presence--pop" role="listbox"><li class="mention-list__item" role="option" aria-selected="true">
     <span class="mention-list__avatar">ИП</span><span class="mention-list__name">Иван Петров</span><span class="mention-list__sub">Загрузчик · ООО «СтройПодряд»</span></li></ul>
   Упоминание в тексте сообщения: <span class="mention">@Иван Петров</span>; упомянули вас — .mention.is-me (подложка). */
.bell { position: relative; }
.bell__count {
  position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  font-size: 10px; pointer-events: none; box-shadow: 0 0 0 2px var(--mat-fallback);
  --origin: 50% 50%;
}
.bell.is-ring > .ui-icon { animation: ff-bell-ring 700ms var(--ease-standard); transform-origin: 50% 10%; }
@keyframes ff-bell-ring { 0%, 100% { rotate: 0deg; } 20% { rotate: 14deg; } 40% { rotate: -10deg; } 60% { rotate: 6deg; } 80% { rotate: -3deg; } }
@media (prefers-reduced-motion: reduce) { .bell.is-ring > .ui-icon { animation: none; } }

/* Лента и результаты поиска лежат поверх рабочего контента (таблицы, текста), а не над сценой: материал меню — плотнее
   стекла сцены, текст под ним не читается. На телефоне — плотная заливка без размытия (как меню, 2.6.1). */
.notify-pop, .search-pop { border-color: var(--mat-border); background: var(--mat-fallback); box-shadow: var(--mat-edge), var(--mat-shadow); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .notify-pop, .search-pop { background: var(--mat-menu); -webkit-backdrop-filter: var(--mat-filter); backdrop-filter: var(--mat-filter); }
}
@media (max-width: 720px) {
  .notify-pop, .search-pop { background: var(--mat-fallback); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.notify-pop { width: min(420px, calc(100vw - 2 * var(--sp-4))); padding: var(--sp-3); }
.notify { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: var(--sp-2); min-height: 0; max-height: min(72vh, 600px); }
.notify__head { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--control-h-m); }
.notify__title { flex: 1; margin: 0; color: var(--label); font-size: var(--fs-headline); font-weight: var(--fw-bold); }
.notify__scope { justify-self: start; max-width: 100%; }
.notify__list { display: grid; align-content: start; gap: 2px; min-height: 0; margin: 0; padding: 0; overflow: auto; list-style: none; overscroll-behavior: contain; }
.notify__day { padding: var(--sp-2) var(--sp-2) var(--sp-1); color: var(--label-2); font-size: var(--fs-caption); font-weight: var(--fw-medium); }
.notify__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; border-radius: var(--inner-r); }
.notify__go {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-3); align-items: start; width: 100%;
  padding: var(--sp-2); border: 0; border-radius: var(--inner-r); background: transparent; color: var(--label); font: inherit; text-align: left; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.notify__go:hover, .notify__go:focus-visible { background: var(--fill-3); }
.notify__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-full); background: var(--fill-3); color: var(--label-2); }
.notify__icon > .ui-icon { width: var(--icon-s); height: var(--icon-s); }
.notify__item[data-event="mention"] .notify__icon { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.notify__body { display: grid; gap: 2px; min-width: 0; }
.notify__line { overflow: hidden; color: var(--label); font-weight: var(--fw-regular); text-overflow: ellipsis; }
.notify__item.is-unread .notify__line { font-weight: var(--fw-medium); }
.notify__text { display: -webkit-box; overflow: hidden; color: var(--label-2); overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notify__meta { color: var(--label-2); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
.notify__dot { width: 8px; height: 8px; margin-top: 6px; border-radius: var(--r-full); background: transparent; }
.notify__item.is-unread .notify__dot { background: var(--accent); }
.notify__tools { align-self: center; padding-right: var(--sp-1); }
.notify__item:not(.is-unread) .notify__tools { visibility: hidden; }
.notify__empty { display: grid; justify-items: center; gap: var(--sp-2); margin: 0; padding: var(--sp-6) var(--sp-4); color: var(--label-2); text-align: center; }
.notify__empty > .ui-icon { width: var(--icon-l); height: var(--icon-l); color: var(--label-3); }
.notify__more { justify-self: center; }
.notify__item.is-leaving { opacity: 0; transition: opacity var(--dur-fast) var(--ease-exit); }

.search-pop { width: min(560px, calc(100vw - 2 * var(--sp-4))); max-height: min(72vh, 640px); padding: var(--sp-3); overflow: auto; overscroll-behavior: contain; }
.search-results { display: grid; gap: var(--sp-3); min-width: 0; }
.search-results__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); color: var(--label-2); font-size: var(--fs-callout); }
.search-results__group { display: grid; gap: var(--sp-1); min-width: 0; }
.search-results__obj {
  display: flex; align-items: center; gap: var(--sp-2); margin: 0; padding: 0 var(--sp-2);
  color: var(--label); font-size: var(--fs-ui-m); font-weight: var(--fw-medium);
}
.search-results__obj > .search-results__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results__n { color: var(--label-2); font-size: var(--fs-caption); font-weight: var(--fw-regular); font-variant-numeric: tabular-nums; }
.search-results__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.search-results__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--sp-3); align-items: center; width: 100%;
  padding: var(--sp-2); border: 0; border-radius: var(--inner-r); background: transparent; color: var(--label); font: inherit; text-align: left; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.search-results__item:hover, .search-results__item:focus-visible, .search-results__item.is-active { background: var(--fill-3); }
.search-results__item > .ui-icon { grid-row: span 2; width: var(--icon-m); height: var(--icon-m); color: var(--label-2); }
.search-results__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results__sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); min-width: 0; color: var(--label-2); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
.search-results__sub > .tag { font-size: var(--fs-caption); }
.search-results mark { padding: 0 1px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 24%, transparent); color: inherit; }
.search-results__more, .search-results__empty { margin: 0; padding: 0 var(--sp-2); color: var(--label-2); font-size: var(--fs-callout); }
.search-results__empty { padding: var(--sp-4) var(--sp-2); text-align: center; }
.search-results__state { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2); color: var(--label-2); font-size: var(--fs-callout); }

.mention-list {
  position: absolute; z-index: 30; bottom: calc(100% + var(--sp-2)); left: 0; display: grid; gap: 1px;
  width: min(340px, 100%); max-height: 260px; margin: 0; padding: var(--menu-pad); overflow: auto; list-style: none;
  border: 1px solid var(--mat-border); border-radius: var(--menu-r); background: var(--mat-fallback); box-shadow: var(--mat-edge), var(--mat-shadow);
  --presence-y: 6px; --origin: 24px 100%;
}
.mention-list__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-2); align-items: center;
  padding: var(--sp-1) var(--sp-2); border-radius: var(--menu-item-r); color: var(--label); cursor: pointer;
}
.mention-list__item:hover, .mention-list__item[aria-selected="true"] { background: var(--line); }
.mention-list__avatar {
  grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-full);
  background: var(--fill-3); font-size: 10px; font-weight: var(--fw-bold);
}
.mention-list__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-list__sub { overflow: hidden; color: var(--label-2); font-size: var(--fs-caption); text-overflow: ellipsis; white-space: nowrap; }
.mention-list__empty { padding: var(--sp-2); color: var(--label-2); font-size: var(--fs-callout); }
/* Текст — основным цветом (акцент текстом на тёмной теме не читается), признак — подложка акцентом; «вас» — плотнее и обводкой. */
.mention { padding: 0 2px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--label); font-weight: var(--fw-medium); }
.mention.is-me { background: color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent); }

/* ---------- Переписки: каналы и темы чата компании (2.20.0, [SOURCE] 2026-11-18, задача 6.12 3D-вьюера) ----------
   Список переписок — строка на канал (у «Формы Будущего» — все компании и демо-доступы) или на тему внутри канала:
   <ul class="inbox">
     <li><a class="inbox__item is-unread" href="?co=company:test" aria-current="page" data-kind="company|demo|topic" data-off>
       <span class="inbox__avatar" aria-hidden="true">ТА</span>          у темы — значок message-square
       <span class="inbox__main">
         <span class="inbox__top"><b class="inbox__name">Тест Атриум</b><time class="inbox__at">12:40</time></span>
         <span class="inbox__line"><span class="inbox__topic">Договор · </span>Иван: последнее сообщение</span>
       </span>
       <span class="badge badge--accent inbox__count">3<span class="sr-only"> непрочитанных</span></span>
     </a></li>
   </ul>
   Непрочитанное — бейдж акцентом и жирное имя (не только цвет); демо-доступ — кружок пунктиром; выключенная
   компания (data-off) — приглушена. Выбранная строка — aria-current, как в .source-list. На телефоне список и лента —
   два экрана: лента приходит справа (.presence--right) и уходит тем же путём.
   Объект на карточке версии (вложение не из «Файлов» текущего объекта):
   <span class="ver-card__obj"><span class="tag tag--muted">626</span>Щапово</span> — первой строкой .ver-card__main.
   Счётчик на кнопке тулбара с подписью: <a class="btn btn--toolbar btn--count">…Чат<span class="badge badge--accent
   presence presence--pop">3</span></a> — бейдж после подписи, приходит и уходит .presence. */
.inbox { display: grid; align-content: start; gap: 1px; margin: 0; padding: 0; list-style: none; }
.inbox__item {
  display: grid; grid-template-columns: var(--inbox-avatar, 36px) minmax(0, 1fr) auto; align-items: center; column-gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--inner-r); color: var(--label); text-decoration: none; outline: none;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) { .inbox__item:hover { background: var(--fill-4); } }
.inbox__item[aria-current] { background: var(--selection-inactive); }
.inbox:focus-within .inbox__item[aria-current] { background: var(--selection); color: var(--on-selection); }
.inbox:focus-within .inbox__item[aria-current] :is(.inbox__at, .inbox__line, .inbox__topic) { color: inherit; }
.inbox__item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.inbox__avatar {
  display: grid; place-items: center; box-sizing: border-box; width: var(--inbox-avatar, 36px); height: var(--inbox-avatar, 36px); border-radius: var(--r-full);
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: var(--fs-callout); font-weight: var(--fw-bold);
}
.inbox__item[data-kind="demo"] .inbox__avatar { background: transparent; color: var(--label-2); border: 1px dashed var(--line-strong); }
.inbox__item[data-kind="topic"] .inbox__avatar { background: var(--fill-3); color: var(--label-2); }
.inbox__avatar .ui-icon { width: var(--icon-s); height: var(--icon-s); }
.inbox__main { display: grid; gap: 2px; min-width: 0; }
.inbox__top { display: flex; align-items: baseline; gap: var(--sp-2); min-width: 0; }
.inbox__name { flex: 1; min-width: 0; overflow: hidden; font-weight: var(--fw-medium); text-overflow: ellipsis; white-space: nowrap; }
.inbox__item.is-unread .inbox__name { font-weight: var(--fw-bold); }
.inbox__at { flex: none; color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.inbox__line { overflow: hidden; color: var(--label-2); font-size: var(--fs-callout); text-overflow: ellipsis; white-space: nowrap; }
.inbox__topic { color: var(--label); }
.inbox__count { grid-column: 3; }
.inbox__item[data-off] :is(.inbox__avatar, .inbox__main) { opacity: .6; }
.ver-card__obj { display: flex; align-items: center; gap: var(--sp-1); min-width: 0; overflow: hidden; color: var(--label-2); font-size: var(--fs-callout); white-space: nowrap; }
.ver-card__obj .tag { flex: none; }
.btn--count > .badge { margin-inline-start: 2px; }

/* ---------- Обзор: стартовый экран сервиса (2.21.0, [SOURCE] 2026-11-18, задача 7.4 3D-вьюера) ----------
   Шесть компонентов «Обзора» (вариант F, решение владельца 17.11.2026) и рамка блока, в которой они живут.
   Только токены: новых цветов, радиусов и длительностей нет; лайм не используется. Сигналы — теги системы:
   статус материала .status-tag, «внимание» .tag--attention, нейтральное .tag--muted, метка поверх кадра .tag--media. */

/* ---------- Блок обзора: рамка группы с заголовком, числом и ссылкой «Все» ----------
   <section class="dash-block" aria-labelledby="h-todo">
     <header class="dash-block__head">
       <h2 class="dash-block__title" id="h-todo">Требует действия</h2><span class="badge">6</span>
       <a class="btn btn--plain btn--s dash-block__more" href="…">Ещё 3</a>
     </header>
     …содержимое…
     <p class="dash-block__note">Пояснение мелким текстом</p>
   </section>
   Рамка — --group-r и разделитель, фон — фон содержимого (не стекло и не градиент: блок в рабочей области). */
.dash-block { display: flex; flex-direction: column; min-width: 0; padding: var(--sp-4); border: 1px solid var(--separator); border-radius: var(--group-r); background: var(--bg-content); }
.dash-block__head { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; margin-bottom: var(--sp-3); }
.dash-block__title { flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; font-size: var(--fs-title-3); font-weight: var(--fw-bold); text-overflow: ellipsis; white-space: nowrap; }
.dash-block__more { margin-left: auto; }
.dash-block__note { margin: var(--sp-2) 0 0; color: var(--label-2); font-size: var(--fs-callout); }
@media (max-width: 720px) { .dash-block { padding: var(--sp-3); } }

/* ---------- Номер и значок объекта ----------
   Номер объекта — плашка .obj-num (как номер в списке объектов сайдбара): <span class="obj-num">626</span>.
   Значок объекта — ссылка на объект в строке ленты, задачи или сообщения:
   <a class="obj-chip" href="/objects/626"><span class="obj-num">626</span><span class="obj-chip__name">Щапово</span></a>
   Не разрывается; длинное название обрезается многоточием. Наведение — подчёркивание названия, фокус — кольцо. */
.obj-num { display: inline-block; flex: none; padding: 0 var(--sp-1); border-radius: var(--r-xs); background: var(--fill-3); color: var(--label); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.obj-chip { display: inline-flex; align-items: baseline; gap: var(--sp-1); max-width: 100%; border-radius: var(--r-xs); color: var(--label); font-size: var(--fs-callout); font-weight: var(--fw-regular); text-decoration: none; white-space: nowrap; outline: none; }
.obj-chip__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) { .obj-chip:hover .obj-chip__name { text-decoration: underline; text-underline-offset: 2px; } }
.obj-chip:focus-visible { box-shadow: var(--focus-ring); }

/* ---------- Требует действия: что ждёт шага пользователя ----------
   <ul class="todo">
     <li class="todo__row">
       <span class="tag status-tag" data-status="review">…clock…На проверке</span>   или .tag.tag--attention (значок + слово)
       <span class="todo__what">
         <span class="todo__file">Акт скрытых работ №12.pdf <span class="todo__ver">v1</span></span>
         <span class="todo__meta"><a class="obj-chip" …>…</a><span class="todo__note">Загрузил Иван Петров · сегодня, 12:21</span></span>
       </span>
       <button class="btn btn--plain btn--s todo__act" type="button">Проверить</button>   нет шага — кнопки нет
     </li>
   </ul>
   Колонки выровнены по всем строкам (subgrid): метка — по самой широкой. Зебра — --fill-4, ряд — --r-xs.
   Уже 560 px по контейнеру: метка и кнопка — сверху в строку, файл и пояснение — под ними на всю ширину; длинная
   кнопка занимает остаток строки и переносит текст (2.21.1). */
.todo { container: todo / inline-size; display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.todo__row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; grid-template-areas: "tag what act"; align-items: center; column-gap: var(--sp-3); row-gap: var(--sp-1); min-width: 0; padding: var(--sp-2); border-radius: var(--r-xs); }
@supports not (grid-template-columns: subgrid) { .todo__row { grid-template-columns: 9.5rem minmax(0, 1fr) auto; } }
.todo__row:nth-child(odd) { background: var(--fill-4); }
.todo__row > .tag { grid-area: tag; justify-self: start; max-width: 100%; }
.todo__what { grid-area: what; display: grid; gap: 2px; min-width: 0; }
.todo__file { min-width: 0; overflow: hidden; font-weight: var(--fw-medium); text-overflow: ellipsis; white-space: nowrap; }
.todo__ver { color: var(--label-2); font-weight: var(--fw-regular); font-variant-numeric: tabular-nums; }
.todo__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--sp-2); min-width: 0; color: var(--label-2); font-size: var(--fs-callout); }
.todo__note { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.todo__act { grid-area: act; justify-self: end; }
@container todo (max-width: 560px) {
  /* 2.21.1: длинная кнопка шага («Связаться с «Формой Будущего»») не наезжает на метку — сжимается и переносит текст. */
  .todo__row { grid-template-columns: max-content minmax(0, 1fr); grid-template-areas: "tag act" "what what"; }
  .todo__file { white-space: normal; overflow-wrap: anywhere; }
  .todo__act { max-width: 100%; height: auto; min-height: var(--btn-h); padding-block: var(--sp-1); line-height: 1.2; white-space: normal; text-align: center; }
}

/* ---------- Карточка объекта ----------
   <div class="obj-cards">                                   сетка; .obj-cards--list — список компактных карточек
     <a class="obj-card continuous hover-lift" href="/objects/626">      .obj-card--compact — превью слева
       <span class="obj-card__media"><img src="…" alt="" loading="lazy">     нет превью — <span class="obj-card__ph">626</span>
         <span class="obj-card__label"><span class="tag tag--media">Вы работали сегодня</span></span></span>
       <span class="obj-card__body">
         <span class="obj-card__title"><span class="obj-num">626</span><span class="obj-card__name">Щапово</span></span>
         <span class="obj-card__sub">ТАО · Производственно-складской комплекс</span>
         <span class="obj-card__signals">…теги-сигналы…</span>      тихая карточка — без сигналов (пустой ряд скрыт)
       </span>
     </a>
   </div>
   Превью 16:10 в рамке --group-r; отклик — .hover-lift (подъём и тень, без цветной обводки), поэтому у карточки
   нет overflow: hidden — скругление держит само превью. Метка поверх превью — .tag--media (в компактной скрыта). */
.obj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: var(--sp-4); }
.obj-cards--list { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
.obj-card { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; border: 1px solid var(--separator); border-radius: var(--group-r); background: var(--bg-content); color: inherit; text-decoration: none; outline: none; }
.obj-card:focus-visible { box-shadow: var(--focus-ring); }
.obj-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--group-r) - 1px) calc(var(--group-r) - 1px) 0 0; background: var(--fill-3); }
.obj-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.obj-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--label-3); font-size: var(--fs-title-1); font-weight: var(--fw-bold); }
.obj-card__label { position: absolute; top: var(--sp-2); right: var(--sp-2); left: var(--sp-2); display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.obj-card__label .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-card__body { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 2px; min-width: 0; padding: var(--sp-3); } /* колонка 0…1fr (2.22.0): длинный тег не раздвигает тело карточки */
.obj-card__title { display: flex; align-items: baseline; gap: var(--sp-2); min-width: 0; font-weight: var(--fw-bold); }
.obj-card__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-card__sub { overflow: hidden; color: var(--label-2); font-size: var(--fs-callout); text-overflow: ellipsis; white-space: nowrap; }
.obj-card__signals, .resume__signals { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.obj-card__signals { margin-top: var(--sp-2); }
.obj-card__signals:empty, .resume__signals:empty { display: none; }
:is(.obj-card__signals, .resume__signals) .tag { gap: 4px; max-inline-size: 100%; min-inline-size: 0; padding-inline: var(--sp-2); } /* 2.22.0: не шире карточки */
:is(.obj-card__signals, .resume__signals) .tag > .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); }
:is(.obj-card--compact, .obj-cards--list > .obj-card) { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: none; }
:is(.obj-card--compact, .obj-cards--list > .obj-card) .obj-card__media { aspect-ratio: auto; min-height: 84px; border-radius: calc(var(--group-r) - 1px) 0 0 calc(var(--group-r) - 1px); }
:is(.obj-card--compact, .obj-cards--list > .obj-card) .obj-card__label { display: none; }
:is(.obj-card--compact, .obj-cards--list > .obj-card) .obj-card__signals { margin-top: var(--sp-1); }

/* ---------- Продолжить: последний открытый объект и вкладка ----------
   <section class="resume" aria-label="Продолжить">
     <div class="resume__media"><img src="…" alt=""></div>
     <div class="resume__body">
       <span class="resume__eyebrow">Продолжить · вы работали сегодня в 12:21</span>
       <h2 class="resume__title"><span class="obj-num">626</span><span class="resume__name">Щапово</span></h2>
       <div class="resume__signals">…теги-сигналы…</div>
       <div class="resume__actions">
         <a class="btn btn--primary btn--s" href="…?tab=files">…folder-open…Открыть «Файлы»</a>   основная — во вкладку
         <a class="btn btn--plain btn--s" href="…?tab=passport">Паспорт</a> …                   остальные вкладки
       </div>
     </div>
   </section>
   Без автоперехода: экран только предлагает вернуться. На телефоне (до 720 px) — компактно: превью маленьким
   кадром слева от подписи и названия, сигналы и кнопки — под ними на всю ширину. */
.resume { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); min-width: 0; border: 1px solid var(--separator); border-radius: var(--group-r); background: var(--bg-content); }
/* 2.21.2: width — по колонке; без него при высоком теле (сигналы в две строки) ширина считалась от высоты и картинка наезжала на текст. */
.resume__media { align-self: stretch; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--group-r) - 1px) 0 0 calc(var(--group-r) - 1px); background: var(--fill-3); }
.resume__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.resume__body { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: var(--sp-2); min-width: 0; padding: var(--sp-4) var(--sp-5); }
.resume__eyebrow { color: var(--label-2); font-size: var(--fs-callout); }
.resume__title { display: flex; align-items: baseline; gap: var(--sp-2); min-width: 0; margin: 0; font-size: var(--fs-title-2); }
.resume__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-1); }
@media (max-width: 720px) {
  .resume { grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3); }
  .resume__body { display: contents; }
  .resume__media { grid-row: 1 / span 2; align-self: center; border-radius: var(--r-xs); }
  .resume__eyebrow { grid-column: 2; align-self: end; }
  .resume__title { grid-column: 2; align-self: start; font-size: var(--fs-title-3); }
  .resume__signals, .resume__actions { grid-column: 1 / -1; margin: 0; }
}

/* ---------- Место для блока: блок на выбор пользователя ----------
   <div class="dash-row">                                   ряд: слева обязательные блоки, справа — место
     <div class="dash-col">….resume, .dash-block «Требует действия»…</div>
     <div class="dash-slot">
       <section class="dash-block" aria-label="События">           выбранный блок
         <header class="dash-block__head">
           <div class="segmented dash-slot__pick" role="radiogroup" aria-label="Блок">…События | Новое в чатах…</div>
           <button class="btn btn--toolbar btn--icon" type="button" aria-label="Убрать блок" data-tooltip="Убрать блок">…x…</button>
         </header>
         <div class="dash-slot__body">….feed или лента чата…</div>
       </section>
       <section class="dash-block dash-slot__empty" aria-label="Свой блок">   пусто: пунктир, 3D-иконка, «добавить»
         <img class="dash-slot__art" src="…/icons/cube-glass.webp" alt="">
         <h2 class="dash-block__title">Добавьте блок</h2><p>Выберите, что показывать здесь.</p>
         <div class="dash-slot__add"><button class="btn btn--plain" type="button">…history…События</button>…</div>
       </section>
     </div>
   </div>
   Высоту ряда задаёт левая колонка: блок в месте её не раздвигает — растягивается на всю высоту, а содержимое
   прокручивается внутри (.dash-slot__body). Смена блока, «Убрать» и «добавить» — через FF.ui.crossfade(fn):
   содержимое меняется кросс-фейдом, не скачком. Уже 1200 px — колонки друг под другом, место — обычный блок
   высотой по содержимому, но не выше 70 % экрана. Выбор пользователя хранит проект. */
.dash-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; gap: var(--sp-5); }
.dash-col { display: grid; align-content: start; gap: var(--sp-5); min-width: 0; }
.dash-slot { position: relative; min-width: 0; }
.dash-slot > .dash-block { position: absolute; inset: 0; min-height: 0; }
/* Переключатель блока — по ширине подписей (2.42.0, [PRODUCTION], задача 9.33): не растягивается на всю шапку,
   «Убрать» — справа. */
.dash-slot__pick { flex: 0 1 auto; min-width: 0; }
.dash-slot__pick ~ .btn { margin-left: auto; }
.dash-slot__body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.dash-slot__empty { align-items: center; justify-content: center; gap: var(--sp-2); border-style: dashed; border-color: var(--line-strong); background: transparent; text-align: center; }
.dash-slot__empty > p { max-width: 32ch; margin: 0 0 var(--sp-2); color: var(--label-2); }
.dash-slot__empty > .dash-block__title { white-space: normal; }
.dash-slot__art { width: calc(var(--icon-3d) * .7); height: calc(var(--icon-3d) * .7); object-fit: contain; }
.dash-slot__add { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
@media (max-width: 1200px) {
  .dash-row { grid-template-columns: minmax(0, 1fr); }
  .dash-slot > .dash-block { position: static; max-height: 70dvh; }
}
@media (max-width: 720px) { .dash-row, .dash-col { gap: var(--sp-4); } }

/* ---------- Лента событий: что случилось по всем объектам ----------
   <div class="feed">
     <p class="feed__day">Сегодня</p>
     <div class="feed__row">
       <time class="feed__at" datetime="2026-11-17T12:21">12:21</time>
       <span class="feed__who" data-role="admin|team|company|external" aria-hidden="true">ИТ</span>
       <p class="feed__text"><b>Иван Тестов</b> принял «Проект КЖ, раздел 3.pdf» v1 <a class="obj-chip" …>…</a></p>
     </div>
   </div>
   Новые сверху, дни — подписью. Кто — кружок с инициалами (свои — акцентом, как в чате). Уже 420 px по контейнеру
   время уходит под текст. */
.feed { container: feed / inline-size; display: grid; gap: var(--sp-1); }
.feed__day { margin: var(--sp-2) 0 var(--sp-1); color: var(--label-2); font-size: var(--fs-caption); font-weight: var(--fw-bold); }
.feed__day:first-child { margin-top: 0; }
.feed__row { display: grid; grid-template-columns: 4.5rem calc(var(--fs-caption) * 2.2) minmax(0, 1fr); align-items: baseline; gap: var(--sp-2); padding: 2px 0; }
.feed__at { color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.feed__who { display: grid; place-items: center; width: calc(var(--fs-caption) * 2.2); height: calc(var(--fs-caption) * 2.2); border-radius: var(--r-full); background: var(--fill-3); color: var(--label); font-size: var(--fs-caption); font-weight: var(--fw-bold); }
.feed__who:is([data-role="admin"], [data-role="team"]) { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.feed__text { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.feed__text b { font-weight: var(--fw-medium); }
.feed__text .obj-chip { margin-left: var(--sp-1); }
@container feed (max-width: 420px) {
  .feed__row { grid-template-columns: calc(var(--fs-caption) * 2.2) minmax(0, 1fr); row-gap: 0; }
  .feed__who { grid-column: 1; grid-row: 1; }
  .feed__text { grid-column: 2; grid-row: 1; }
  .feed__at { grid-column: 2; grid-row: 2; }
}

/* ---------- Сортировка перетаскиванием (2.9.0) ----------
   <div class="rows" id="list">
     <article class="row" data-sort-id="12">
       <button class="btn btn--toolbar btn--icon sort-handle" type="button" aria-label="Переместить «Договор»">
         <svg class="ui-icon" aria-hidden="true"><use href="icons.svg#i-grip-vertical"/></svg></button>
       <h3><a href="…">Договор</a></h3> …
     </article> …
   </div>
   FF.ui.sortable(list, { items: "[data-sort-id]", handle: ".sort-handle", axis: "y" | "x" | "grid", onChange(ids) { return put(…) } })
   Блок поднимается (тень и масштаб 1.03 — копия .sortable-ghost идёт за указателем), остальные раздвигаются,
   место вставки — .is-sort-slot (пустая рамка акцентом). Ручку видят только те, кто может менять порядок.
   С клавиатуры блок «в руке» — .is-sort-grabbed. Без ручки (handle: null) тянется весь блок — .sortable--whole. */
.sortable { position: relative; }
.sort-handle { cursor: grab; touch-action: none; color: var(--label-3); }
@media (hover: hover) { .sort-handle:hover { color: var(--label); } }
.sort-handle[aria-pressed="true"] { color: var(--accent); }
.sortable--whole { cursor: grab; }
.sortable--whole, .sortable--whole * { -webkit-user-drag: none; -webkit-touch-callout: none; }
.is-sorting, .is-sorting * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.is-sort-slot {
  background: var(--fill-4) !important;
  box-shadow: inset 0 0 0 1px var(--accent) !important;
  border-color: transparent !important;
  backdrop-filter: none !important;
}
.is-sort-slot > * { visibility: hidden; }
.sortable-ghost {
  position: fixed !important;
  z-index: 1000;
  margin: 0 !important;
  pointer-events: none;
  box-sizing: border-box;
  box-shadow: var(--mat-shadow);
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.sortable-ghost.is-outside { opacity: .6; }
.is-sort-grabbed {
  position: relative;
  z-index: 2;
  scale: 1.02;
  box-shadow: var(--mat-shadow), 0 0 0 1px var(--accent);
  transition: scale var(--dur-instant) var(--ease-entrance), box-shadow var(--dur-fast) var(--ease-standard);
}
@media (prefers-reduced-motion: reduce) { .is-sort-grabbed { scale: 1; } }

/* ---------- Инструменты блока при наведении (2.9.0) ----------
   <article class="card hover-host"> … <div class="hover-tools"><button class="… sort-handle">…</button><button …>…</button></div> … </article>
   Ручка и правка не шумят на странице: с мышью они проявляются, когда указатель над блоком или фокус внутри него
   (Tab их находит — фокус сразу показывает), и уходят тем же путём. На сенсоре видны всегда. Хозяин — .hover-host
   или блок сортировки [data-sort-id]. При reduced-motion — только прозрачность. */
@media (hover: hover) and (pointer: fine) {
  .hover-tools {
    opacity: 0;
    translate: var(--sp-1) 0;
    transition: opacity var(--dur-fast) var(--ease-standard), translate var(--dur-fast) var(--ease-entrance);
  }
  :is(.hover-host, [data-sort-id]):is(:hover, :focus-within) .hover-tools,
  .hover-tools:focus-within,
  :is(.is-sort-grabbed, .sortable-ghost) .hover-tools { opacity: 1; translate: 0 0; }
  .is-sorting :is(.hover-host, [data-sort-id]):not(.sortable-ghost):hover .hover-tools { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hover-tools { translate: none !important; } }
/* Ряд списка — хозяин (2.29.1, задача 7.13 3D-вьюера): <li class="hover-host"><a class="source-list__item">…</a>
   <a class="btn … hover-tools">…</a></li>. Подложка ряда и инструменты проявляются вместе — от наведения на весь ряд
   (и на сам инструмент), с одной длительностью; иначе подложка гаснет, когда указатель переходит на инструмент. */
@media (hover: hover) and (pointer: fine) {
  .source-list .hover-host > .source-list__item { transition: background-color var(--dur-fast) var(--ease-standard); }
  .source-list .hover-host:hover > .source-list__item:not([aria-current="page"], [aria-selected="true"]) { background: var(--fill-4); }
}

/* ---------- Подъём при наведении (2.9.0) ----------
   <article class="card solid hover-lift">…</article>
   Отклик карточки-ссылки на указатель вместо цветной обводки: карточка приподнимается на 2 px, под ней
   проявляется тень материала. Анимируются только сдвиг и прозрачность тени. Только с мышью; при reduced-motion —
   без сдвига, одна тень. Пока идёт перетаскивание, карточки не поднимаются. */
@media (hover: hover) and (pointer: fine) {
  .hover-lift { isolation: isolate; }
  .hover-lift:not(.sortable-ghost) { transition: translate var(--dur-fast) var(--ease-entrance); }
  .hover-lift::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    box-shadow: var(--mat-shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease-standard);
  }
  .hover-lift:hover { translate: 0 -2px; }
  .hover-lift:hover::before { opacity: 1; }
  .is-sorting .hover-lift:hover, .hover-lift.is-sort-slot { translate: none; }
  .is-sorting .hover-lift:hover::before, .hover-lift.is-sort-slot::before { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hover-lift:hover { translate: none; } }

/* ---------- Раскрытие ----------
   <button class="disclosure" aria-expanded="true" aria-controls="g1"><svg class="ui-icon">…chevron-right</svg>Слои</button>
   <div class="disclosure-panel" id="g1"><div>…</div></div>
   Панель сворачивается плавно: высота уходит к нулю вместе с прозрачностью, соседи
   ниже подтягиваются без скачка. FF.ui ставит data-collapsed и inert. */
.disclosure {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  width: 100%;
  min-height: var(--row-h);
  padding: 0;
  border: 0;
  border-radius: var(--row-r);
  background: none;
  color: var(--label);
  font: inherit;
  font-size: var(--fs-headline);
  font-weight: var(--fw-bold);
  text-align: left;
  cursor: pointer;
}
.disclosure > .ui-icon { width: var(--icon-s); height: var(--icon-s); color: var(--label-2); transition: rotate var(--dur-fast) var(--ease-standard); }
.disclosure[aria-expanded="true"] > .ui-icon { rotate: 90deg; }
.disclosure__end { margin-left: auto; color: var(--label-2); font-weight: var(--fw-regular); font-size: var(--fs-callout); }
.disclosure-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition:
    grid-template-rows var(--dur-base) var(--ease-standard),
    opacity var(--dur-base) var(--ease-standard);
}
.disclosure-panel > * { min-height: 0; overflow: clip; overflow-clip-margin: 4px; }
.disclosure-panel[data-collapsed] {
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows calc(var(--dur-base) * var(--exit-ratio)) var(--ease-standard),
    opacity calc(var(--dur-base) * var(--exit-ratio)) var(--ease-exit);
}
@media (prefers-reduced-motion: reduce) {
  .disclosure-panel, .disclosure-panel[data-collapsed] { transition: opacity var(--dur-fast) linear; }
}

/* ---------- Инспектор и форма «подпись — значение» ----------
   <aside class="inspector"><section class="inspector__section"><button class="disclosure">…</button>
     <div class="inspector__body"><div class="form-grid"><label class="form-grid__label" for="…">…</label><input class="input">…</div></div></section></aside> */
.inspector { display: grid; align-content: start; }
.inspector__section { padding: var(--sp-2) var(--sp-4) var(--sp-3); border-bottom: 1px solid var(--separator); }
.inspector__body { display: grid; gap: var(--sp-2); }
.inspector__body > :first-child { margin-top: var(--sp-1); }
.form-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--sp-2) var(--sp-3); align-items: center; }
.form-grid__label { justify-self: end; color: var(--label-2); font-size: var(--fs-body); }
.form-grid__full { grid-column: 1 / -1; }
.form-grid__value { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-width: 0; }
.form-grid > :is(.stepper, .switch, .check, .radio, .segmented, .btn, .badge, .tag) { justify-self: start; }

/* ---------- Степпер ----------
   <span class="stepper"><button class="stepper__btn" type="button" data-step="-1" aria-label="Меньше">−</button>
     <input class="stepper__input" type="number" value="12"><button class="stepper__btn" type="button" data-step="1" aria-label="Больше">+</button></span> */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: var(--control-h-m);
  padding: 0 2px;
  border: 1px solid var(--control-border);
  border-radius: var(--r-full);
  background: var(--control-bg);
}
.stepper__input {
  width: 4ch;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--label);
  font: inherit;
  font-size: var(--field-fs);
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper__input::-webkit-inner-spin-button,
.stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__input:focus-visible { box-shadow: none; }
.stepper:focus-within { border-color: var(--accent); box-shadow: var(--focus-ring); }
.stepper__btn {
  display: grid;
  place-items: center;
  width: calc(var(--control-h-m) - 6px);
  height: calc(var(--control-h-m) - 6px);
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--r-full);
  background: var(--fill-4);
  color: var(--label);
  font: inherit;
  font-size: var(--fs-ui-m);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.stepper__btn .ui-icon { width: var(--icon-s); height: var(--icon-s); }
.stepper__btn:active { background: var(--fill-2); }
@media (hover: hover) and (pointer: fine) {
  .stepper__btn:hover { background: var(--fill-3); }
}

/* ---------- Прогресс и ожидание ----------
   <div class="progressbar" role="progressbar" aria-valuenow="40" style="--p:.4"><span class="progressbar__fill"></span></div>
   Неопределённый — .progressbar--indeterminate. Круговой — <span class="spinner" role="status" aria-label="Загрузка"></span> */
.progressbar { position: relative; height: 4px; overflow: hidden; border-radius: var(--r-full); background: var(--fill-3); }
.progressbar__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-standard);
}
.progressbar--indeterminate .progressbar__fill { right: auto; width: 40%; transform: none; animation: ff-indeterminate 1.4s var(--ease-standard) infinite; }
@keyframes ff-indeterminate { from { translate: -100% 0; } to { translate: 250% 0; } }
.spinner {
  display: inline-block;
  width: var(--icon-m);
  height: var(--icon-m);
  flex: none;
  border: 2px solid var(--fill-2);
  border-top-color: var(--label-2);
  border-radius: var(--r-full);
  animation: ff-spin var(--dur-cinematic) linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .progressbar--indeterminate .progressbar__fill { width: 100%; animation: ff-pulse 2s ease-in-out infinite; }
  .spinner { animation-duration: calc(var(--dur-cinematic) * 3); }
}
@keyframes ff-pulse { 50% { opacity: .35; } }

/* ---------- Окно подтверждения (alert) ----------
   <dialog class="modal alert"><div class="alert__icon"><svg class="ui-icon ui-icon--l">…</svg></div>
     <h2 class="alert__title">…</h2><p class="alert__text">…</p>
     <form method="dialog" class="alert__actions"><button class="btn btn--destructive" value="ok">Удалить</button>
       <button class="btn btn--plain" value="cancel">Отмена</button></form></dialog>
   Основная кнопка — сверху; разрушительное действие — .btn--destructive, только здесь (К12). */
.modal.alert {
  width: min(300px, calc(100vw - var(--sp-6)));
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  text-align: center;
}
.modal.alert[open] { display: grid; justify-items: center; gap: var(--sp-2); }
.alert__icon { display: grid; place-items: center; width: calc(var(--icon-l) * 2); height: calc(var(--icon-l) * 2); border-radius: var(--r-md); background: var(--fill-3); }
.alert__title { font-size: var(--fs-headline); font-weight: var(--fw-bold); line-height: var(--lh-heading); }
.alert__text { color: var(--label-2); font-size: var(--fs-callout); }
.alert__actions { display: grid; gap: var(--sp-2); width: 100%; margin-top: var(--sp-2); }
.alert__actions .btn { width: 100%; }

/* ---------- Контекстное меню ----------
   <div class="menu menu--context" id="ctx" role="menu">…</div>; цели — [data-context-menu="ctx"] (FF.ui) */
.menu--context { position: fixed; top: var(--ctx-y, 0); left: var(--ctx-x, 0); z-index: 120; transform-origin: top left; }
.menu__item--danger { color: var(--destructive); }
.menu__kbd { margin-left: auto; padding-left: var(--sp-4); color: var(--label-3); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }

/* ---------- Панель поверх медиа и 3D (HUD) ---------- */
.hud {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1);
  border-radius: var(--r-full);
  background: var(--mat-hud);
  color: var(--on-accent);
  -webkit-backdrop-filter: var(--mat-filter);
  backdrop-filter: var(--mat-filter);
}
.hud .btn { --btn-fg: var(--on-accent); }
/* Метка поверх фото и 3D: <span class="tag tag--media">IFC</span> — тёмная подложка, читается на любом кадре */
.tag--media {
  border-color: transparent;
  background: var(--mat-hud);
  color: var(--on-accent);
  -webkit-backdrop-filter: var(--mat-filter);
  backdrop-filter: var(--mat-filter);
}

/* ---------- Клавиша ---------- <kbd class="kbd">⌘S</kbd> */
.kbd {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--sp-1);
  border: 1px solid var(--separator-strong);
  border-radius: var(--r-xs);
  color: var(--label-2);
  font: inherit;
  font-size: var(--fs-caption);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Плашки над сценой (2.0.1, решения 2026-10-22): поповер, плашка-материал,
   переключатель-пилюля, сетка превью, лифт уровней, шкала
   ========================================================================== */
/* ---------- Поповер ----------
   <div class="popover presence presence--pop" id="p1" hidden>…</div>
   Плашка из материала поверх контента; растёт из своей кнопки (FF.ui.anchor) и уходит в неё.
   Позицию задаёт страница. */
.popover {
  position: absolute;
  z-index: 40;
  padding: var(--panel-pad);
  border: 1px solid var(--scene-glass-border);
  border-radius: var(--panel-r);
  background: var(--scene-glass-fallback);
  box-shadow: var(--scene-glass-edge), var(--scene-glass-shadow);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .popover { background: var(--scene-glass); -webkit-backdrop-filter: var(--scene-glass-filter); backdrop-filter: var(--scene-glass-filter); }
}
.popover__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); color: var(--label-2); font-size: var(--fs-callout); }
.popover__body { display: grid; gap: var(--sp-2); }

/* ---------- Плашка из материала над медиа и 3D ----------
   <div class="float">…</div> — капсула или панель поверх сцены (переключатель, лифт, шкала).
   Высота всего над сценой одна (2.2.0, как в macOS 26): --hud-h — 36 с мышью, 44 на сенсоре.
   Кнопка внутри капсулы — --hud-inner-h (концентрично: --hud-h − 2 × --hud-pad − рамка). */
.float {
  border: 1px solid var(--scene-glass-border);
  background: var(--scene-glass-fallback);
  box-shadow: var(--scene-glass-edge), var(--scene-glass-shadow);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .float { background: var(--scene-glass); -webkit-backdrop-filter: var(--scene-glass-filter); backdrop-filter: var(--scene-glass-filter); }
}
/* На стекле значки и подписи — основным цветом: вторичный серый тонет в цветной сцене. */
.float .btn--toolbar { --btn-fg: var(--label); }
.float .ui-icon, .btn--float .ui-icon { width: var(--hud-icon); height: var(--hud-icon); }

/* Группа кнопок над сценой: одна капсула вместо отдельных кружков (как группы тулбара macOS 26).
   <div class="float float-bar"><button class="btn btn--toolbar btn--icon">…</button>…</div> */
.float-bar { display: inline-flex; align-items: center; gap: 2px; height: var(--hud-h); padding: var(--hud-pad); border-radius: var(--r-full); }
.float-bar > .btn { --btn-h: var(--hud-inner-h); }
.float-bar > [hidden] { display: none; }

/* Одиночная кнопка над сценой — капсула из материала той же высоты.
   <button class="btn btn--float">Свет</button>, иконка — .btn--float.btn--icon */
.btn--float {
  --btn-h: var(--hud-h);
  --btn-fg: var(--label);
  border: 1px solid var(--scene-glass-border);
  background: var(--scene-glass-fallback);
  box-shadow: var(--scene-glass-edge), var(--scene-glass-shadow);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn--float { background: var(--scene-glass); -webkit-backdrop-filter: var(--scene-glass-filter); backdrop-filter: var(--scene-glass-filter); }
}
.btn--float:focus-visible { box-shadow: var(--scene-glass-edge), var(--focus-ring); }

/* ---------- Показ с телефона над сценой (2.34.0, [PRODUCTION], задача 9.2 3D-вьюера) ----------
   Гость открывает объект с телефона по ссылке и сам проходит путь по шагам. Три плашки внизу сцены:
   <nav class="float scene-steps" aria-label="…" style="--n: 4; --i: 0">
     <span class="scene-steps__thumb" aria-hidden="true"></span>
     <button class="scene-steps__item" type="button" aria-pressed="true"><svg class="ui-icon"><use href="icons.svg#i-rotate-3d"/></svg><span>Облёт</span></button>…</nav>
   Шаги — 3–4, значок над короткой подписью (одно слово или два, без терминов); выбран один, подложка переезжает пружиной.
   --n — сколько шагов, --i — выбранный (с нуля); ни один не выбран — атрибут data-none на <nav>. Шаг готовится —
   aria-busy="true": спиннер вместо значка.
   <div class="float scene-slice"><output class="scene-slice__label">Этаж 21</output><div></div></div> — срез здания:
   подпись и шкала FF.ui.scrubber во всю оставшуюся ширину.
   <div class="float scene-hint presence presence--down" role="status"><span class="scene-hint__text">…</span><button class="btn btn--toolbar btn--icon" aria-label="Закрыть подсказку">×</button></div> —
   подсказка к шагу: одна короткая фраза, один раз, уходит после действия или по «×»; стоит над шагами, не поверх кнопок.
   Цели касания — не меньше 44 px: у шага — вся колонка, у кнопок внутри капсулы — зона нажатия шире видимого (.hit-44). */
.scene-steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); padding: var(--hud-pad); border-radius: var(--panel-r); }
.scene-steps__item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; min-height: calc(var(--hud-h) + var(--sp-2)); padding: 0 2px; border: 0; background: none; cursor: pointer;
  border-radius: calc(var(--panel-r) - var(--hud-pad) - 1px); color: var(--label);
  font: var(--fw-medium) var(--fs-caption) / 1.2 var(--font); white-space: nowrap;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: color var(--dur-fast) var(--ease-standard), scale var(--dur-fast) var(--ease-standard);
}
.scene-steps__item:active { scale: .97; }
.scene-steps__item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.scene-steps__item[aria-pressed="true"] { color: var(--on-accent); }
.scene-steps__item[aria-busy="true"] .ui-icon { opacity: 0; }
.scene-steps__item[aria-busy="true"]::before {
  content: ""; position: absolute; left: 50%; top: calc(50% - 10px); width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: var(--r-full); animation: ff-spin var(--dur-cinematic) linear infinite;
}
.scene-steps__thumb {
  position: absolute; left: var(--hud-pad); top: var(--hud-pad); bottom: var(--hud-pad); width: calc((100% - 2 * var(--hud-pad)) / var(--n, 4));
  border-radius: calc(var(--panel-r) - var(--hud-pad) - 1px); background: var(--accent);
  translate: calc(100% * var(--i, 0)) 0; transition: translate var(--dur-spring) var(--ease-spring), opacity var(--dur-fast) var(--ease-standard);
}
.scene-steps[data-none] .scene-steps__thumb { opacity: 0; }
.scene-slice { display: flex; align-items: center; gap: var(--sp-2); height: var(--hud-h); padding: var(--hud-pad) var(--sp-2) var(--hud-pad) var(--sp-4); border-radius: var(--r-full); }
.scene-slice__label { flex: none; min-width: 8ch; color: var(--label); font-size: var(--fs-ui-m); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scene-slice .scrubber { height: var(--hud-h); margin: calc(-1 * var(--hud-pad)) 0; min-width: 0; }
.scene-slice .scrubber__tick { position: relative; width: 0; }
.scene-slice .scrubber__tick::before { content: ""; position: absolute; inset: 0 -1px; border-radius: inherit; background: inherit; }
.scene-slice .scrubber__bubble { display: none; } /* этаж — в подписи слева, под пальцем его не видно */
/* Этаж, где есть что посмотреть (план, квартира) — деление акцентом. */
.scene-slice .scrubber__tick.is-mark { height: 20px; background: var(--accent); }
.scene-slice .scrubber__tick.is-mark::before { inset: 0 -2px; }
.scene-hint { display: flex; align-items: center; gap: var(--sp-1); min-height: var(--hud-h); padding: var(--hud-pad) var(--hud-pad) var(--hud-pad) var(--sp-4); border-radius: var(--r-full); color: var(--label); font-size: var(--fs-ui-m); font-weight: var(--fw-medium); }
.scene-hint__text { min-width: 0; text-wrap: balance; }
.scene-hint .btn { --btn-h: var(--hud-inner-h); flex: none; }
/* Зона нажатия 44 px у кнопки, которая на вид меньше (капсула над сценой). */
.hit-44 { position: relative; }
.hit-44::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); translate: -50% -50%; }
@media (prefers-reduced-motion: reduce) { .scene-steps__thumb, .scene-steps__item { transition: none; } .scene-steps__item:active { scale: none; } }

/* ---------- Компас над сценой (2.13.0, [SOURCE] 2026-11-18, задача 5.5 3D-вьюера) ----------
   <button class="btn btn--float btn--icon compass" type="button" aria-label="Север. Повернуть камеру на север">
     <span class="compass__dial" aria-hidden="true"><span class="compass__n">С</span>
       <svg class="ui-icon compass__needle"><use href="icons.svg#i-navigation-2"/></svg></span></button>
   Круглая кнопка из материала высоты --hud-h. Внутри — диск со стрелкой и буквой «С», он показывает, где север
   на экране: --compass-turn (deg, по часовой) скрипт меняет каждый кадр вместе с камерой, без перехода — движение
   задаёт сама камера. Нажатие разворачивает камеру к северу — это делает проект (во вьюере — перелётом камеры).
   Нет привязки к сторонам света — компаса нет совсем (hidden), а не серый. */
.compass { position: relative; padding: 0; overflow: hidden; }
.compass__dial { position: absolute; inset: 0; transform: rotate(var(--compass-turn, 0deg)); }
/* Буква «С» — у края диска, стрелка — в центре и смотрит на неё: вращение вокруг середины кнопки. */
.compass__n {
  position: absolute; top: calc(var(--hud-h) * .07); left: 50%; translate: -50% 0;
  font-size: calc(var(--hud-icon) * .5); font-weight: 700; line-height: 1; letter-spacing: 0;
}
.btn--float .compass__needle {
  position: absolute; left: 50%; top: 50%; translate: -50% -38%;
  width: calc(var(--hud-icon) * .72); height: calc(var(--hud-icon) * .72);
  fill: var(--accent); stroke: var(--accent);
}

/* ---------- Наложение двух моделей объекта (2.23.0, [PRODUCTION], задача 8.2 3D-вьюера) ----------
   Полигональная модель и IFC в одной сцене: видно, насколько они совпадают. Содержимое плашки над сценой
   (.scene-panel, поповер из кнопки) — сверху состояние совмещения, ниже вид, какая модель полупрозрачная и насколько,
   в виде «Разница» — порог и шкала расстояний.
   <section class="scene-panel glass-strong presence presence--pop"><div class="model-mix">
     <p class="model-mix__note" data-state="ok|warn|wait"><svg class="ui-icon">…circle-check | triangle-alert | refresh-cw</svg>
       <span>Совмещено по пятну застройки<span class="model-mix__sub">точность ±0,04 м</span></span></p>
     <div class="model-mix__row"><span class="model-mix__label">Вид</span><div class="segmented">Наложение · Разница</div></div>
     <div class="model-mix__row"><span class="model-mix__label">Полупрозрачная</span><div class="segmented">Полигональная · IFC</div></div>
     <div class="model-mix__row"><label class="model-mix__label" for="…">Прозрачность <output class="model-mix__value">60 %</output></label>
       <div class="slider">…</div></div>
     <div class="dist-scale" style="--dist-at: 50%">
       <div class="dist-scale__bar" role="img" aria-label="…"></div>
       <div class="dist-scale__ticks"><span>0</span><span>0,10 м</span><span>0,20 м и дальше</span></div>
       <ul class="dist-scale__keys"><li><span class="dist-scale__swatch" data-kind="same"></span>Совпадает <b>92 %</b></li>
         <li><span class="dist-scale__swatch" data-kind="far"></span>Расходится <b>8 %</b></li>
         <li><span class="dist-scale__swatch" data-kind="skip"></span>Не сравнивается: рельеф, озеленение</li></ul>
       <p class="dist-scale__stats">Медиана 0,03 м · 95 % ближе 0,14 м</p></div>
   </div></section>
   Цвета расстояний — роли разницы (tokens.css): до половины порога — --diff-same, к порогу — переход к --diff-changed,
   дальше порога — --diff-changed; не сравнивается — --diff-same с прозрачностью --diff-ghost. Красный не используется:
   расхождение — не ошибка. Цвет не единственный признак: подписи и доли у ключей легенды, порог в метрах числом.
   Шкала — от 0 до двух порогов: порог стоит на --dist-at (50 %), метка порога — тонкая черта основного цвета.
   «Совмещение не проверено / не сходится» — state="warn": заливка «внимание» (--attention-fill) и значок, не красный. */
.model-mix { display: grid; gap: var(--sp-3); }
.model-mix[hidden], .model-mix [hidden] { display: none; }
.model-mix__row { display: grid; gap: var(--sp-1); }
.model-mix__row > .segmented { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; width: 100%; }
.model-mix__label { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); color: var(--label-2); font-size: var(--fs-callout); }
.model-mix__value { color: var(--label); font-variant-numeric: tabular-nums; }
.model-mix__note {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--sp-2);
  margin: 0; padding: var(--sp-2) var(--sp-3); border-radius: var(--inner-r);
  background: var(--fill-2); color: var(--label); font-size: var(--fs-callout); line-height: var(--lh-body);
}
.model-mix__note > .ui-icon { margin-top: 1px; color: var(--label-2); }
.model-mix__note[data-state="warn"] { background: var(--attention-fill); color: var(--on-attention-fill); }
.model-mix__note[data-state="warn"] > .ui-icon { color: var(--accent); }
.model-mix__note[data-state="wait"] > .ui-icon { animation: ff-spin 1s linear infinite; }
.model-mix__sub { display: block; color: var(--label-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .model-mix__note[data-state="wait"] > .ui-icon { animation: none; } }

.dist-scale { --dist-at: 50%; display: grid; gap: 6px; }
.dist-scale__bar {
  position: relative; height: 8px; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--diff-same) 0 calc(var(--dist-at) / 2), var(--diff-changed) var(--dist-at) 100%);
}
.dist-scale__bar::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: var(--dist-at); width: 2px; translate: -50% 0; border-radius: var(--r-full); background: var(--label); }
.dist-scale__ticks { display: flex; justify-content: space-between; gap: var(--sp-2); color: var(--label-2); font-size: var(--fs-m1); font-variant-numeric: tabular-nums; }
.dist-scale__ticks > :nth-child(2) { color: var(--label); }
.dist-scale__keys { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-callout); }
.dist-scale__keys > li { display: flex; align-items: center; gap: var(--sp-2); }
.dist-scale__keys b { margin-left: auto; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.dist-scale__swatch { flex: none; width: 10px; height: 10px; border-radius: var(--r-full); background: var(--diff-same); }
.dist-scale__swatch[data-kind="far"] { background: var(--diff-changed); }
.dist-scale__swatch[data-kind="skip"] { opacity: var(--diff-ghost); }
.dist-scale__stats { margin: 0; color: var(--label-2); font-size: var(--fs-m1); font-variant-numeric: tabular-nums; }

/* ---------- Подгонка двух моделей объекта (2.36.0, [PRODUCTION], задача 8.4 3D-вьюера) ----------
   Ручная подстройка полигональной модели к IFC в той же плашке, что наложение (.model-mix): шаг сдвига сегментом,
   крестовина сторон света, выше и ниже, поворот у центра модели; под ней — что изменено и не сохранено, действия.
   <div class="model-fit">
     <div class="model-mix__row"><span class="model-mix__label">Подгонка</span><div class="segmented">1 см · 5 см · 10 см</div></div>
     <div class="model-fit__pad" role="group" aria-label="Сдвиг и поворот">
       <button class="btn btn--outline btn--icon btn--l model-fit__key" data-key="n" aria-label="К северу на шаг">
         <span class="model-fit__dir" aria-hidden="true">С</span></button>
       … data-key="w | e | s" (З, В, Ю), data-key="up | down" (arrow-up-to-line | arrow-down-to-line),
       <span class="model-fit__hub" aria-hidden="true"></span></div>
     <div class="model-fit__turns" role="group" aria-label="Поворот"> — data-key="ccw | cw" (rotate-ccw | rotate-cw,
       подпись 0,1° — .model-fit__turn) </div>
     <p class="model-fit__readout" data-changed="1">Не сохранено: 5 см к северу, поворот +0,10°</p>
     <div class="model-fit__actions"><button class="btn btn--outline btn--s">…wand-sparkles Довести</button>
       <button class="btn btn--plain btn--s">Сбросить</button><button class="btn btn--primary btn--s">Сохранить подгонку</button></div>
     <p class="model-fit__status" role="status">Доведено: ±0,90 м → ±0,03 м</p>
   </div>
   Стороны света — буквы на кнопках (как «С» у компаса 2.13.0), нажатие двигает модель на шаг сразу. Цвет не меняется:
   «не сохранено» — текстом и точкой акцента у подписи, не красным. Кнопки — всегда --r-full. */
.model-fit { display: grid; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--separator); }
.model-fit[hidden] { display: none; }
.model-fit__pad {
  display: grid; justify-content: center; align-items: center; gap: 6px;
  grid-template-columns: repeat(3, var(--control-h-l)) var(--sp-4) var(--control-h-l);
  grid-template-areas:
    ".  n   .  .  up"
    "w  hub e  .  ."
    ".  s   .  .  down";
}
.model-fit__key[data-key="n"] { grid-area: n; }
.model-fit__key[data-key="s"] { grid-area: s; }
.model-fit__key[data-key="w"] { grid-area: w; }
.model-fit__key[data-key="e"] { grid-area: e; }
.model-fit__key[data-key="up"] { grid-area: up; }
.model-fit__key[data-key="down"] { grid-area: down; }
.model-fit__turns { display: flex; justify-content: center; gap: var(--sp-2); }
.model-fit__key[data-key="ccw"], .model-fit__key[data-key="cw"] { width: auto; padding-inline: var(--sp-3); gap: 4px; }
.model-fit__dir { font-size: var(--fs-ui-m); font-weight: var(--fw-bold); line-height: 1; }
.model-fit__turn { font-size: var(--fs-m1); font-variant-numeric: tabular-nums; }
.model-fit__hub { grid-area: hub; justify-self: center; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--label-3); }
.model-fit__readout { margin: 0; color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.model-fit__readout[data-changed="1"] { color: var(--label); }
.model-fit__readout[data-changed="1"]::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: middle;
  border-radius: var(--r-full); background: var(--accent);
}
.model-fit__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.model-fit__actions > :last-child { margin-left: auto; }
.model-fit__status { margin: 0; color: var(--label-2); font-size: var(--fs-m1); }
.model-fit__status:empty { display: none; }

/* ---------- Категории объёмов над сценой (2.32.0, [PRODUCTION], задача 9.19 3D-вьюера) ----------
   Площади и помещения IFC, раскрашенные по категориям: легенда-плашка и подпись выбранного объёма.
   Режимы («Модель · СПП в ГНС · Общие площади · Помещения») — обычный .segmented--float рядом с переключателем моделей.
   <section class="scene-panel glass-strong continuous presence presence--left space-legend">
     <button class="disclosure space-legend__head" aria-expanded="true" aria-controls="sl"><svg class="ui-icon">…chevron-right</svg>
       <span class="space-legend__title">Общие площади</span><span class="space-legend__total">26 · 71 817 м²</span></button>
     <div class="disclosure-panel" id="sl"><div class="space-legend__body">
       <ul class="space-legend__list"><li><button class="space-legend__item" type="button" aria-pressed="true" style="--space: var(--space-nonres)">
         <span class="space-legend__swatch"></span><span class="space-legend__name">Нежилые надземные</span>
         <span class="space-legend__count">22</span><span class="space-legend__area">51 443 м²</span></button></li></ul>
       <p class="space-legend__note">Площадь указана у 40 из 45</p>
       <label class="switch">… Модель вокруг</label></div></div></section>
   Под заголовком — необязательный выбор вида: <div class="space-legend__view"><div class="segmented">Объём · Чертёж</div>
     <div class="segmented">Под углом · Сверху</div></div> (второй — только у чертежа); при свёрнутой легенде остаётся.
   Нажатие на строку прячет и возвращает категорию (aria-pressed): образец становится кольцом, строка — вторым цветом.
   Площадь — только из данных; нет её — колонки нет, не «0 м²». data-kind="unknown" — образец пунктиром.
   Подпись объёма: <div class="float space-tip presence presence--down"><span class="space-tip__swatch"></span>
     <span class="space-tip__text"><b class="space-tip__name">…</b><span class="space-tip__meta">…</span></span>
     <button class="btn btn--toolbar btn--icon btn--s space-tip__close">×</button></div> */
.space-legend { display: grid; width: 264px; padding: var(--sp-2); border-radius: var(--panel-r); }
.space-legend[hidden] { display: none; }
.space-legend__head { display: flex; align-items: center; gap: var(--sp-1); width: 100%; min-height: var(--control-h-m, 28px); padding: 0 var(--sp-2) 0 var(--sp-1); text-align: left; }
.space-legend__title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fw-bold); }
.space-legend__total { flex: none; color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.space-legend__view { display: grid; gap: var(--sp-1); padding: var(--sp-1) var(--sp-2) 0; }
.space-legend__view[hidden] { display: none; }
.space-legend__view > .segmented { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; width: 100%; }
.space-legend__view > .segmented[hidden] { display: none; }
.space-legend__body { display: grid; gap: var(--sp-2); padding-top: var(--sp-1); }
.space-legend__list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.space-legend__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--sp-2);
  width: 100%; min-height: var(--row-h); padding: var(--sp-1) var(--sp-2); border: 0; border-radius: var(--inner-r);
  background: transparent; color: var(--label); font: inherit; font-size: var(--fs-ui-m); line-height: 1.3; text-align: left; cursor: pointer;
}
.space-legend__item:hover { background: var(--fill-3); }
.space-legend__item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.space-legend__swatch, .space-tip__swatch {
  flex: none; width: 12px; height: 12px; border-radius: var(--r-full); background: var(--space, var(--space-unknown));
  box-shadow: inset 0 0 0 1px rgb(var(--label-rgb) / .35);
}
.space-legend__item[data-kind="unknown"] .space-legend__swatch, .space-tip[data-kind="unknown"] .space-tip__swatch { border: 1.5px dashed var(--label); background-clip: padding-box; box-shadow: none; }
.space-legend__count { color: var(--label); font-variant-numeric: tabular-nums; }
.space-legend__area { grid-column: 2 / -1; color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.space-legend__item[aria-pressed="false"] :is(.space-legend__name, .space-legend__count) { color: var(--label-2); }
.space-legend__item[aria-pressed="false"] .space-legend__swatch { background: none; box-shadow: inset 0 0 0 1.5px var(--space, var(--space-unknown)), 0 0 0 1px rgb(var(--label-rgb) / .35); }
.space-legend__note { margin: 0 var(--sp-2); color: var(--label-2); font-size: var(--fs-callout); line-height: var(--lh-body); }
.space-legend__body > .switch { padding: 0 var(--sp-2); }
.space-tip { display: flex; align-items: center; gap: var(--sp-2); max-width: min(320px, calc(100vw - 32px)); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3); border-radius: var(--panel-r); background: var(--scene-glass-fallback); } /* плотнее стекла: стоит поверх ярких зон */
.space-tip__text { display: grid; min-width: 0; }
.space-tip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--label); font-size: var(--fs-ui-m); font-weight: var(--fw-bold); }
.space-tip__meta { color: var(--label-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; }
.space-tip__close { flex: none; }

/* ---------- Переключатель-пилюля (‹ текущий ▾ ›) ----------
   <div class="switcher float"><button class="btn btn--toolbar btn--icon" aria-label="Предыдущий">‹</button>
     <button class="switcher__current" aria-haspopup="dialog" aria-expanded="false"><img class="switcher__thumb" alt="">063<svg class="ui-icon ui-icon--s">…</svg></button>
     <button class="btn btn--toolbar btn--icon" aria-label="Следующий">›</button></div>
   Текущий элемент открывает поповер со всеми (сетка превью). */
.switcher { display: inline-flex; align-items: center; gap: 2px; height: var(--hud-h); padding: var(--hud-pad); border-radius: var(--r-full); }
.switcher .btn { --btn-h: var(--hud-inner-h); }
.switcher__current {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: var(--hud-inner-h);
  padding: 0 var(--sp-2) 0 3px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--label);
  font: inherit;
  font-size: var(--fs-ui-m);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.switcher__current .ui-icon { color: var(--label-2); }
.switcher__thumb { width: calc(var(--hud-inner-h) * 1.6); height: calc(var(--hud-inner-h) - 6px); flex: none; overflow: hidden; object-fit: cover; border-radius: var(--r-full); background: var(--fill-3); }
.switcher__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } /* превью внутри обёртки <span class="switcher__thumb"> */
.switcher__current:active { transform: scale(var(--press-scale)); }
@media (hover: hover) and (pointer: fine) {
  .switcher__current:hover { background: var(--fill-3); }
}

/* ---------- Сетка превью ----------
   <div class="thumb-grid"><button class="thumb" aria-current="true"><img alt=""><span class="thumb__label">063</span></button>…</div> */
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: var(--sp-2); }
.thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  border-radius: var(--inner-r); /* концентрично поповеру: --panel-r − --panel-pad */
  background: var(--fill-3);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb__label {
  position: absolute;
  left: var(--sp-1);
  bottom: var(--sp-1);
  padding: 0 var(--sp-1);
  border-radius: var(--r-full);
  background: var(--mat-hud);
  color: var(--on-accent);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.thumb__empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--label-2); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.thumb[aria-current="true"] { box-shadow: 0 0 0 2px var(--accent); }
.thumb:active { transform: scale(var(--press-scale)); }
@media (hover: hover) and (pointer: fine) {
  .thumb:not([aria-current="true"]):hover { box-shadow: 0 0 0 1px var(--separator-strong), var(--mat-shadow); }
}

/* ---------- Лифт: выбор уровня у края сцены ----------
   <div class="lift float"><button class="btn btn--toolbar btn--icon btn--s">⌃</button>
     <div class="lift__list"><button class="lift__item" aria-current="true" title="Этаж 12">12</button>…</div>
     <button class="btn btn--toolbar btn--icon btn--s">⌄</button><span class="lift__sep"></span>…</div>
   Как выбор этажа в картах: вертикальная капсула с номерами, текущий — акцентом, скрытые — приглушены. */
.lift {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: var(--hud-h);
  padding: var(--hud-pad);
  border-radius: var(--r-full);
}
.lift .btn { --btn-h: var(--hud-inner-h); }
.lift__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  align-self: stretch;
  min-height: 0;
  padding: 2px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, #000 var(--sp-3), #000 calc(100% - var(--sp-3)), transparent);
  mask-image: linear-gradient(transparent, #000 var(--sp-3), #000 calc(100% - var(--sp-3)), transparent);
}
.lift__list::-webkit-scrollbar { display: none; }
.lift__item {
  flex: none;
  min-height: var(--hud-inner-h);
  padding: 0 2px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--label-2);
  font: inherit;
  font-size: var(--fs-callout);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.lift__item.is-off { color: var(--label-4); }
.lift__item[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
.lift__item:active { transform: scale(var(--press-scale)); }
@media (hover: hover) and (pointer: fine) {
  .lift__item:not([aria-current="true"]):hover { background: var(--fill-3); color: var(--label); }
}
.lift__sep { width: 50%; height: 1px; margin: 2px 0; background: var(--separator); flex: none; }

/* ---------- Шкала (scrubber): горизонтальный выбор из ряда значений ----------
   <div class="scrubber" tabindex="0" role="slider"></div> — деления, ручку и подпись строит FF.ui.scrubber(el, { count, value, label, onInput }).
   Тянуть — 1:1 за пальцем, клик — сразу к значению, ← → Home End с клавиатуры. */
.scrubber { --p: 0; position: relative; flex: 1 1 auto; min-width: 120px; height: var(--hud-inner-h); border-radius: var(--r-full); cursor: ew-resize; touch-action: none; user-select: none; }
.scrubber:focus-visible { box-shadow: var(--focus-ring); }
.scrubber__ticks { position: absolute; inset: 0 var(--sp-2); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.scrubber__tick { width: 2px; height: 8px; flex: none; border-radius: 1px; background: var(--label-3); transition: background-color var(--dur-fast) var(--ease-standard); }
.scrubber__tick.is-major { height: 14px; background: var(--label-2); }
.scrubber__tick.is-off { background: var(--label-4); }
.scrubber__thumb, .scrubber__bubble { position: absolute; left: calc(var(--sp-2) + (100% - 2 * var(--sp-2)) * var(--p)); pointer-events: none; transition: left var(--dur-fast) var(--ease-standard); }
.scrubber__thumb { top: 50%; width: 16px; height: 16px; translate: -50% -50%; border-radius: var(--r-full); background: var(--thumb); box-shadow: 0 0 0 3px var(--accent), 0 1px 4px rgb(0 0 0 / .4); }
.scrubber__bubble { bottom: calc(100% + var(--sp-2)); translate: -50% 0; padding: 2px var(--sp-2); border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-size: var(--fs-callout); font-weight: var(--fw-bold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.scrubber.is-dragging .scrubber__thumb, .scrubber.is-dragging .scrubber__bubble { transition: none; }
.scrubber.is-idle .scrubber__thumb { box-shadow: 0 0 0 3px var(--fill-1), 0 1px 4px rgb(0 0 0 / .4); }
.scrubber.is-idle .scrubber__bubble { background: var(--mat-hud); }
@media (prefers-reduced-motion: reduce) { .scrubber__thumb, .scrubber__bubble { transition: none; } }

/* ==========================================================================
   Носитель «Сервисы» [data-media="app"]: базовые компоненты
   плотнее и тише. Значения — из токенов носителя (tokens.css, раздел 6).
   ========================================================================== */
[data-media="app"] { font-size: var(--fs-body); line-height: var(--lh-ui); }
[data-media="app"] :is(.t-h1, .t-h2) { font-size: var(--fs-title-1); }
[data-media="app"] .t-h3 { font-size: var(--fs-title-2); }

[data-media="app"] .btn { gap: var(--sp-1); }

/* Без лаймовых квадратных маркеров (решение владельца 2026-10-21): надзаголовок — серый
   текст, отмеченный пункт меню — галочка, тост без маркера; ошибка — красная точка. */
[data-media="app"] .eyebrow { color: var(--label-2); }
[data-media="app"] .eyebrow::before,
[data-media="app"] .sidebar__item::before { display: none; }
[data-media="app"] .menu__item[aria-checked="true"]::after {
  width: 8px;
  height: 4px;
  margin-right: 2px;
  background: none;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
}
[data-media="app"] .toast__marker { display: none; }
[data-media="app"] .toast--error .toast__marker { display: block; border-radius: var(--r-full); }
[data-media="app"] .navbar { gap: var(--sp-3); padding: 0 var(--sp-3); }

/* Поля — капсулы, как кнопки (К1); многострочное — скругление по шкале */
[data-media="app"] :is(.input, .select) { padding: 0 var(--control-px-m); border-radius: var(--r-full); }
[data-media="app"] .textarea { padding: var(--sp-2) var(--control-px-m); border-radius: var(--r-sm); line-height: var(--lh-ui); }
[data-media="app"] .select { padding-right: calc(var(--control-px-m) * 2 + 6px); }
[data-media="app"] .select-wrap::after { right: calc(var(--control-px-m) + 2px); width: 6px; height: 6px; }
[data-media="app"] .select-wrap--s .select { padding-left: var(--control-px-s); }
[data-media="app"] .search .input { padding-left: calc(var(--control-px-m) + var(--icon-s) + var(--sp-1)); padding-right: var(--control-h-m); }
[data-media="app"] .field { gap: var(--sp-1); }
[data-media="app"] .field__label { font-size: var(--fs-body); }
[data-media="app"] :is(.field__hint, .req-legend) { font-size: var(--fs-callout); }

[data-media="app"] :is(.check, .radio, .switch) { gap: var(--sp-2); min-height: var(--control-h-m); font-size: var(--fs-ui-m); }
[data-media="app"] .check__box { border-width: 1px; border-radius: calc(var(--r-xs) * .67); }
[data-media="app"] .check__box::after { width: 8px; height: 4px; border-width: 1.5px; }
[data-media="app"] .radio__box { border-width: 1px; }
[data-media="app"] .radio__box::after { width: 6px; height: 6px; }
[data-media="app"] .switch__input::after { top: 2px; left: 2px; width: calc(var(--switch-h) - 4px); height: calc(var(--switch-h) - 4px); }

[data-media="app"] .segmented { padding: 2px; }
[data-media="app"] .segmented > label > span { height: calc(var(--control-h-m) - 4px); padding: 0 var(--sp-3); font-size: var(--fs-ui-m); }
[data-media="app"] .segmented__thumb { top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / var(--seg-n)); box-shadow: 0 1px 2px rgb(0 0 0 / .2); }

[data-media="app"] .tag { height: var(--tag-h); padding: 0 var(--sp-2); border-width: 1px; font-size: var(--fs-caption); }
[data-media="app"] .card { gap: var(--sp-1); padding: var(--sp-4); border-radius: var(--group-r); }
[data-media="app"] .card__title { font-size: var(--fs-title-3); }

/* Стекло в носителе «Сервисы» — нейтральные материалы (К6); стеклянная кнопка — материал сайдбара */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-media="app"] .glass { background: var(--mat-sidebar); }
  [data-media="app"] .glass-strong { background: var(--mat-popover); }
  [data-media="app"] .btn--glass { background: var(--mat-sidebar); -webkit-backdrop-filter: var(--mat-filter); backdrop-filter: var(--mat-filter); }
}
[data-media="app"] .btn--glass { border-color: var(--mat-border); box-shadow: var(--mat-edge); }
[data-media="app"] :is(.glass, .glass-strong) { border-color: var(--mat-border); box-shadow: var(--mat-edge), var(--mat-shadow); }
[data-media="app"] .glass { box-shadow: var(--mat-edge); }

/* Таблица: ряды 24 px, зебра, без линий между рядами */
[data-media="app"] .table-wrap { border-color: var(--separator); border-radius: var(--group-r); background: var(--bg-content); }
[data-media="app"] .table { font-size: var(--fs-body); }
[data-media="app"] .table th { height: var(--row-h); padding: 0 var(--sp-3); font-size: var(--fs-callout); }
[data-media="app"] .table td { height: var(--row-h); padding: 0 var(--sp-3); border-bottom: 0; white-space: nowrap; }
[data-media="app"] .table tbody tr:nth-child(even) td { background: var(--fill-4); }
[data-media="app"] .table tbody tr[aria-selected="true"] td { background: var(--selection-inactive); }
[data-media="app"] .table:is(:focus, :focus-within) tbody tr[aria-selected="true"] td { background: var(--selection); color: var(--on-selection); }
@media (hover: hover) and (pointer: fine) {
  [data-media="app"] .table tbody tr:hover { background: transparent; }
}

/* Меню: пункт под курсором — выделение акцентом, как в macOS */
[data-media="app"] .menu { min-width: 200px; }
[data-media="app"] .menu__item { gap: var(--sp-2); padding: 0 var(--sp-2); font-size: var(--fs-body); }
[data-media="app"] :is(.menu__item:hover, .menu__item:focus-visible) { background: var(--selection); color: var(--on-selection); }
[data-media="app"] :is(.menu__item:hover, .menu__item:focus-visible) :is(.menu__kbd, .menu__hint) { color: inherit; }
[data-media="app"] .menu__sep { margin: var(--sp-1) var(--sp-2); }

/* Выбор из списка (2.7.0): поле — капсула (К1), в несколько рядов — как многострочное поле; пункт — как пункт меню */
[data-media="app"] .combobox__control { padding-left: var(--control-px-m); border-radius: var(--r-full); }
[data-media="app"] .combobox__control:has(.tag) { padding-left: var(--cb-pad); }
[data-media="app"] .combobox.is-multiline .combobox__control { border-radius: var(--r-sm); }
[data-media="app"] .combobox__option { padding: 0 var(--sp-2); font-size: var(--fs-body); }
[data-media="app"] .combobox__option.is-active { background: var(--selection); color: var(--on-selection); }
[data-media="app"] .combobox__option.is-active .combobox__sub { color: inherit; }
[data-media="app"] :is(.combobox__empty, .combobox__sub) { font-size: var(--fs-callout); }

[data-media="app"] .modal__title { font-size: var(--fs-title-3); padding-right: var(--sp-6); }
[data-media="app"] .modal__body { gap: var(--sp-3); margin-top: var(--sp-4); }
[data-media="app"] .modal__actions { margin-top: var(--sp-5); }
[data-media="app"] .toast { min-width: 240px; border-radius: var(--panel-r); }

/* ==========================================================================
   Логотип продукта в сервисе (2.25.0, [PRODUCTION], задача 7.12 3D-вьюера; «продукт главный», логотип «Мегаполис 3D»,
   его размер и знак компании справа — решения владельца 2026-11-18). Мастера — brand.md 5.1, не перерисовываются.
   Логотип продукта: холст 1592.76 × 622.4, рисунок x 193–1399.25, y 193.68–423.45 (1206.25 × 229.77).
   Знак компании: холст Zone 966.54 × 892.56, рисунок x 322–643, y 297–594. Поля холстов — охранные.

   В рабочей части (сайдбар, шапка телефона):
   <div class="brand-bar">
     <div class="product-logo">                       ← или <a> (в шапке телефона — ссылка на «Обзор»)
       <img class="product-logo__img product-logo__img--dark" src="Megapolis3D Logo Full White.svg" alt="Мегаполис 3D">
       <img class="product-logo__img product-logo__img--light" src="Megapolis3D Logo.svg" alt="" aria-hidden="true">
       <span class="product-logo__sub">Демо-доступ</span>                    ← роль или компания, необязательно
     </div>
     <span class="brand-bar__rule" aria-hidden="true"></span>
     <a class="brand-bar__company" href="https://formafuturi.ru/" target="_blank" rel="noopener"
        aria-label="Сайт «Формы Будущего» (в новой вкладке)"><img class="brand-bar__sign" src="FFLogo Sign Mono White.svg" alt=""></a>
   </div>
   --product-ink (на .brand-bar или выше) — ширина рисунка логотипа продукта без поля: сайдбар 147 px (высота рисунка —
   28 px, 7 шагов сетки 4 px), телефон 104 px (больше не даёт шапка 56 px с полями сверху и снизу: 0.516 × ширина ≤ 56).
   --company-ink — высота рисунка знака: 24 px (6 шагов) и 16 px. Поле логотипа продукта слева уходит в отступ (--product-logo-pull),
   сверху и снизу остаётся (--product-logo-pull-y: 0); справа от него — линия, за ней поле знака и знак; поле знака
   справа тоже свободно. Вся строка — 1.16 × --product-ink + 1 px + 3.25 × --company-ink (сайдбар — 250 px; с отступами и полем знака справа — 266 px). Тесно (ближайший
   контейнер уже 250 px; у .brand-bar--compact — уже 180 px) — линия и знак уходят.
   ========================================================================== */
.product-logo {
  --pi: var(--product-ink, 147px); --pull: var(--product-logo-pull, 1); --pull-y: var(--product-logo-pull-y, var(--pull));
  display: grid; justify-items: start; min-width: 0; color: var(--label); text-decoration: none;
}
.product-logo__img {
  display: block; width: calc(var(--pi) * 1592.76 / 1206.25); max-width: none; height: auto;
  margin: calc(var(--pi) * -193.68 / 1206.25 * var(--pull-y)) 0 calc(var(--pi) * -198.95 / 1206.25 * var(--pull-y)) calc(var(--pi) * -193 / 1206.25 * var(--pull));
}
.product-logo__sub { max-width: 100%; overflow: hidden; margin-top: var(--sp-1); color: var(--label-2); font-size: var(--fs-caption); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.product-logo__sub:empty { display: none; }

/* Знак компании справа. Середины рисунков — на одной линии: у логотипа продукта (без снятого поля сверху)
   середина рисунка — 0.2558 × --product-ink от верха. Линия — сразу за полем логотипа продукта, знак — за своим полем. */
.brand-bar { --pi: var(--product-ink, 147px); --ci: var(--company-ink, 24px); --ci-box: calc(var(--ci) * 892.56 / 297); display: flex; align-items: flex-start; min-width: 0; }
.brand-bar > .product-logo { flex: 0 1 auto; }
.brand-bar__rule { flex: none; width: 1px; height: var(--ci); margin-top: calc(var(--pi) * 0.2558 - var(--ci) / 2); background: var(--separator-strong); }
.brand-bar__company {
  flex: none; display: block; margin-top: calc(var(--pi) * 0.2558 - var(--ci-box) * 445.78 / 892.56); border-radius: var(--r-sm);
  opacity: .72; transition: opacity var(--dur-fast) var(--ease-standard);
}
.brand-bar__company:hover, .brand-bar__company:focus-visible { opacity: 1; }
.brand-bar__company:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.brand-bar__sign { display: block; width: calc(var(--ci-box) * 966.54 / 892.56); height: var(--ci-box); max-width: none; }
[data-theme="light"] .brand-bar__sign { filter: invert(1); }
@container (max-width: 250px) { .brand-bar:not(.brand-bar--compact) > :is(.brand-bar__rule, .brand-bar__company) { display: none; } }
/* Шапка телефона: логотип 104 px и знак 16 px помещаются от 180 px. */
@container (max-width: 180px) { .brand-bar--compact > :is(.brand-bar__rule, .brand-bar__company) { display: none; } }
@media (prefers-reduced-motion: reduce) { .brand-bar__company { transition: none; } }

/* Заголовок продукта на входе:
   <div class="product-title">
     <img class="product-title__logo" src="FFLogo Full Mono White.svg" alt="Форма Будущего">
     <h1 class="product-title__name"><img class="product-logo__img--dark" src="Megapolis3D Logo Full White.svg" alt="Мегаполис 3D"><img class="product-logo__img--light" src="Megapolis3D Logo.svg" alt=""></h1>
     <p class="product-title__sub">Модели, паспорта и ТЭП ваших объектов</p>
   </div>
   Логотип компании — монохромный (фон входа — градиент, brand.md 5.2), логотип продукта — цветной: «3D» и контур — акцент
   (решение владельца 2026-11-18). Верхнее поле логотипа компании можно отдать отступу окна: --product-title-pull: 1 (по умолчанию 0). */
.product-title { --product-logo-w: 160px; --product-title-ink: 240px; display: grid; justify-items: center; text-align: center; }
.product-title__logo { display: block; width: var(--product-logo-w); height: auto; margin-top: calc(var(--product-logo-w) * -297 / 1989.25 * var(--product-title-pull, 0)); }
.product-title__name { margin: 0; line-height: 0; }
/* Поле логотипа продукта (больше нижнего поля логотипа компании) перекрывает нижнее поле логотипа компании. */
.product-title__name > img { width: min(100%, calc(var(--product-title-ink) * 1592.76 / 1206.25)); height: auto; margin-top: calc(var(--product-logo-w) * -298.56 / 1989.25); }
.product-title__sub { margin: 0; color: var(--label-2); font-size: var(--fs-body); line-height: var(--lh-ui); text-wrap: balance; }

/* Тема: белая надпись на тёмной теме, чёрная — на светлой. Решает ближайший [data-theme] — через наследуемые переменные,
   как и цвета окна: страница, где тема стоит не на <html> (главная вьюера держит её на <body>), показывает верный вариант. */
[data-theme="dark"] { --theme-dark-only: block; --theme-light-only: none; }
[data-theme="light"] { --theme-dark-only: none; --theme-light-only: block; }
.product-logo__img--dark { display: var(--theme-dark-only, block); }
.product-logo__img--light { display: var(--theme-light-only, none); }

/* ==========================================================================
   Непрерывный изгиб углов (2.1.0, как у Apple): поверхности со скруглением по шкале,
   не капсулы. Где браузер не знает corner-shape — обычная дуга того же радиуса.
   В проекте свои поверхности с радиусом по шкале — класс .continuous.
   ========================================================================== */
@supports (corner-shape: superellipse(2)) {
  :is(.glass, .glass-strong, .glass-dark, .solid, .card, .popover, .menu, .modal, .sheet, .toast, .table-wrap, .thumb,
      .textarea, .alert, .tooltip, .combobox__list, .attach__empty, .continuous) { corner-shape: var(--corner-shape); }
}

/* ==========================================================================
   Сегмент над сценой (2.2.0) — та же высота --hud-h, подложка из материала.
   <div class="segmented segmented--float">. В конце файла: перекрывает размеры сегмента носителя «Сервисы».
   ========================================================================== */
.segmented.segmented--float { padding: var(--hud-pad); border: 1px solid var(--scene-glass-border); background: var(--scene-glass-fallback); box-shadow: var(--scene-glass-edge), var(--scene-glass-shadow); }
.segmented.segmented--float > label > span { height: var(--hud-inner-h); }
.segmented.segmented--float .segmented__thumb { top: var(--hud-pad); bottom: var(--hud-pad); left: var(--hud-pad); width: calc((100% - 2 * var(--hud-pad)) / var(--seg-n)); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .segmented.segmented--float { background: var(--scene-glass); -webkit-backdrop-filter: var(--scene-glass-filter); backdrop-filter: var(--scene-glass-filter); }
}

/* Панель над сценой (2.4.0): стеклянная панель поверх 3D и медиа — подсказка, свет, таблица, список слоёв.
   <section class="glass-strong scene-panel">…</section>. В конце файла: перекрывает материал меню носителя «Сервисы». */
.scene-panel { border-color: var(--scene-glass-border); background: var(--scene-glass-fallback); box-shadow: var(--scene-glass-edge), var(--scene-glass-shadow); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .scene-panel, [data-media="app"] .scene-panel { background: var(--scene-glass); -webkit-backdrop-filter: var(--scene-glass-filter); backdrop-filter: var(--scene-glass-filter); }
}
[data-media="app"] .scene-panel { border-color: var(--scene-glass-border); box-shadow: var(--scene-glass-edge), var(--scene-glass-shadow); }

/* ==========================================================================
   Выбор над сценой (2.27.0, [PRODUCTION], задача 8.9 3D-вьюера): много взаимоисключающих пунктов над 3D
   (варианты модели — до 16). Пока пунктов немного (до 4) и они помещаются — обычный .segmented--float;
   больше — одна кнопка-капсула с текущим значением и меню-списком с прокруткой.
   <div class="menu-wrap float-pick">
     <button class="btn btn--float float-pick__btn" type="button" aria-haspopup="menu" aria-expanded="false" aria-controls="vp">
       <span class="float-pick__key">Вариант</span><span class="float-pick__value">Терракота</span>
       <span class="float-pick__count">4/16</span><svg class="ui-icon float-pick__chev"><use href="icons.svg#i-chevron-down"/></svg></button>
     <div class="menu float-pick__menu" id="vp" role="menu" aria-label="Вариант">
       <button class="menu__item" role="menuitemradio" aria-checked="true"><span class="float-pick__n">1</span><span class="float-pick__label">…</span></button>
     </div></div>
   Поведение — меню FF.ui (стрелки, Esc, клик мимо); при открытии список прокручен к выбранному, фокус с клавиатуры — на нём.
   Пункт, который сейчас нельзя выбрать (идёт загрузка), — aria-disabled="true", у меню — aria-busy="true"; у кнопки aria-busy
   не ставить (.btn[aria-busy] — спиннер вместо подписи): процент загрузки пишется в __count. Отметка — галочка носителя «Сервисы».
   ========================================================================== */
.float-pick { min-width: 0; max-width: 100%; pointer-events: auto; }
.float-pick__btn { min-width: 0; max-width: 100%; gap: var(--sp-2); }
.float-pick__key { flex: none; color: var(--text-2); }
/* 2.31.1: минимум значения без процента — min(…, 100%) не разрешался при расчёте ширины капсулы по содержимому, и рамка
   выходила уже значения (текст вплотную к краю). Короткое значение — по своей ширине (calc-size), длинное — не уже 8ch. */
.float-pick__value { min-width: var(--float-pick-value-min, 8ch); min-width: calc-size(max-content, min(size, var(--float-pick-value-min, 8ch))); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fw-medium); }
.float-pick__count { flex: none; color: var(--text-2); font-variant-numeric: tabular-nums; }
.float-pick__btn .float-pick__chev { flex: none; width: var(--icon-s); height: var(--icon-s); color: var(--text-2); transition: transform var(--dur-menu) var(--ease-entrance); }
.float-pick__btn[aria-expanded="true"] .float-pick__chev { transform: rotate(180deg); }
.float-pick__menu {
  min-width: max(100%, 240px);
  max-width: min(360px, calc(100vw - 2 * var(--sp-4)));
  max-height: min(var(--float-pick-max, 420px), calc(100dvh - 160px));
  grid-template-columns: minmax(0, 1fr); /* длинная подпись — многоточием, без прокрутки вбок */
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
}
.float-pick__menu .menu__item { flex: none; min-width: 0; }
.float-pick__n { flex: none; min-width: 2ch; color: var(--text-2); font-size: var(--fs-callout); font-variant-numeric: tabular-nums; text-align: right; }
.float-pick__label { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.float-pick__menu .menu__item[aria-checked="true"] { font-weight: var(--fw-medium); }
.float-pick__menu .menu__item[aria-disabled="true"] { color: var(--text-2); cursor: progress; }
.float-pick__menu .menu__item[aria-disabled="true"]:hover { background: transparent; color: var(--text-2); }
/* Тесно (капсула уже ~200 px) — подпись «Вариант» уходит первой: значение и «N/16» важнее; полное — в aria-label. */
.float-pick--compact .float-pick__key { display: none; }
@media (prefers-reduced-motion: reduce) {
  .float-pick__btn .float-pick__chev { transition: none; }
}

/* ==========================================================================
   Фильтр списка значком (2.28.0, [PRODUCTION], задача 7.13 3D-вьюера): фильтр узкого списка (сайдбар, шторка)
   не ряд сегментов над списком, а одна кнопка-значок у заголовка списка и меню с вариантами.
   <div class="menu-wrap filter-pick">
     <button class="btn btn--toolbar btn--icon filter-pick__btn" type="button" aria-haspopup="menu" aria-expanded="false"
       aria-controls="f1" aria-label="Фильтр списка: все" data-tooltip="Фильтр">
       <svg class="ui-icon" aria-hidden="true"><use href="icons.svg#i-filter"/></svg>
       <span class="filter-pick__dot presence presence--pop" aria-hidden="true" hidden></span></button>
     <div class="menu menu--end filter-pick__menu" id="f1" role="menu" aria-label="Фильтр">
       <button class="menu__item" type="button" role="menuitemradio" aria-checked="true" data-value="all">Все</button>…</div></div>
   Выбран не первый пункт («Все») — кнопка в состоянии «включено» ([data-active]: как нажатая кнопка тулбара) и точка
   акцентом в углу (появляется и уходит .presence--pop); подсказка и aria-label называют выбранный вариант. Меню — FF.ui
   (стрелки, Esc, клик мимо, ff:select); отмечен — галочкой носителя «Сервисы».
   ========================================================================== */
.filter-pick { flex: none; }
.filter-pick__btn { position: relative; }
.filter-pick__btn[data-active] { --btn-fg: var(--label); background: var(--fill-3); }
.filter-pick__dot {
  position: absolute; top: 1px; right: 1px; width: 7px; height: 7px; border-radius: var(--r-full);
  background: var(--accent); pointer-events: none; --origin: 50% 50%;
}
.filter-pick__menu { min-width: 180px; }

/* ==========================================================================
   Сортировка списка значком (2.38.0, [PRODUCTION], задача 9.27 3D-вьюера): рядом с фильтром у заголовка списка —
   кнопка-значок и меню из двух групп выбора: «по чему» и «направление». Подписи направления зависят от признака
   («По возрастанию», «А → Я», «Сначала новые», «Сначала демо»); у признака без направления группа скрыта (hidden).
   <div class="menu-wrap sort-pick">
     <button class="btn btn--toolbar btn--icon sort-pick__btn" type="button" aria-haspopup="menu" aria-expanded="false"
       aria-controls="s1" aria-label="Сортировка: по номеру, по возрастанию" data-tooltip="Сортировка: по номеру">
       <svg class="ui-icon" aria-hidden="true"><use href="icons.svg#i-arrow-up-down"/></svg></button>
     <div class="menu menu--end sort-pick__menu" id="s1" role="menu" aria-label="Сортировка">
       <div class="sort-pick__group" role="group" aria-labelledby="s1-by"><span class="sort-pick__cap" id="s1-by">Сортировать</span>
         <button class="menu__item" type="button" role="menuitemradio" aria-checked="true" data-sort="number">По номеру</button>…</div>
       <div class="menu__sep" role="separator"></div>
       <div class="sort-pick__group" role="group" aria-labelledby="s1-dir"><span class="sort-pick__cap" id="s1-dir">Порядок</span>
         <button class="menu__item" type="button" role="menuitemradio" aria-checked="true" data-dir="asc">По возрастанию</button>…</div></div></div>
   Отметка снимается только внутри своей группы (FF.ui, role="group", 2.38.0). Порядок — не фильтр: точки и
   «включено» у кнопки нет; подсказка и aria-label называют выбранный порядок. Рядом может стоять видимая подпись
   порядка (.sort-pick__label) — там, где места хватает (заголовок блока «Обзора»). Сортировка по дате: дата первой в
   подписи строки; без даты — в конце группы под разделителем «Дата … неизвестна · N» (.source-list__section, пояснение в title).
   ========================================================================== */
.sort-pick { flex: none; }
.sort-pick__menu { min-width: 216px; }
.sort-pick__group { display: grid; }
.sort-pick__group[hidden], .sort-pick__group[hidden] + .menu__sep, .menu__sep:has(+ .sort-pick__group[hidden]) { display: none; }
.sort-pick__cap { padding: var(--sp-1) var(--sp-3) 2px; color: var(--label-2); font-size: var(--fs-caption); }
.sort-pick__label { color: var(--label-2); font-size: var(--fs-callout); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ==========================================================================
   Широкая таблица сравнения (2.43.0, [PRODUCTION], задача 9.34 3D-вьюера; созвон 27.11.2026: длинные подписи столбцов
   раздували таблицу ТЭП, «Отклонение» уезжало за край). Модификатор .table (.table-wrap + .table.table--wide):
   - шапка переносится и обрезается до двух строк: подпись — в .table__clip, полная — в title ячейки (подсказка);
   - числовые столбцы узкие (меньше поля по бокам), название показателя (.table__name) — в несколько строк;
   - закреплённые столбцы: .table__stick-start — у левого края (номер и показатель), .table__stick-end — у правого
     («Отклонение»); середина прокручивается вбок между ними. Сдвиги закреплённых и граница у крайних — FF.ui.stickyColumns(table)
     (ширины меряются и пересчитываются при смене размера); без него все закреплённые встают к краю с нулевым сдвигом —
     если с одной стороны их больше одного, вызов обязателен;
   - строка во всю ширину (.table__row-note внутри td с colspan) не растягивает таблицу и остаётся в видимой части.
   <div class="table-wrap"><table class="table table--wide">
     <thead><tr><th class="table__stick-start" scope="col">№</th><th class="table__stick-start" scope="col">Показатель</th>
       <th class="num" scope="col" title="АГР от 17.04.2024 № 284-2-2/С"><span class="table__clip">АГР от 17.04.2024 № 284-2-2/С</span></th> …
       <th class="num table__stick-end" scope="col">Отклонение</th></tr></thead>
     <tbody><tr><td class="table__stick-start">1</td><td class="table__stick-start table__name">Площадь…</td> … <td class="num table__stick-end">+1,2 %</td></tr></tbody>
   </table></div>
   ========================================================================== */
.table-wrap:has(> .table--wide) { container-type: inline-size; }
/* Через .table.table--wide — сильнее переопределений носителя «Сервисы» (ряд 24 px, nowrap) и правил таблиц проекта. */
.table.table--wide thead th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
[data-media="app"] .table.table--wide thead th { height: auto; padding-block: var(--sp-1); }
.table--wide .table__clip {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; width: max-content; max-width: var(--table-head-max); overflow-wrap: anywhere; white-space: normal;
}
.table--wide th.num .table__clip { margin-left: auto; }
.table--wide :is(th, td).num { padding-inline: var(--sp-2); }
.table.table--wide .table__name { white-space: normal; min-width: var(--table-name-min); max-width: var(--table-name-max); }
[data-media="app"] .table.table--wide td.table__name { height: auto; padding-block: var(--sp-1); }
.table--wide :is(.table__stick-start, .table__stick-end) { position: sticky; z-index: 1; background: var(--table-stick-bg); }
/* Слои: шапка (она прилипает и сверху) — над строками, закреплённые ячейки шапки — над всем. */
.table.table--wide thead th { z-index: 2; }
.table.table--wide thead :is(.table__stick-start, .table__stick-end) { z-index: 3; }
.table--wide .table__stick-start { left: var(--stick-at, 0); }
.table--wide .table__stick-end { right: var(--stick-at, 0); }
.table--wide .is-stick-edge-start { box-shadow: inset -1px 0 0 var(--separator); }
.table--wide .is-stick-edge-end { box-shadow: inset 1px 0 0 var(--separator); }
[data-media="app"] .table--wide tbody tr:nth-child(even) :is(.table__stick-start, .table__stick-end) {
  background: linear-gradient(var(--fill-4), var(--fill-4)), var(--table-stick-bg);
}
.table.table--wide .table__row-note { position: sticky; left: var(--sp-3); display: block; max-width: calc(100cqw - 2 * var(--sp-3)); white-space: normal; }

/* ==========================================================================
   Выбор столбцов для сравнения (2.39.0, [PRODUCTION], задача 9.28 3D-вьюера; выбор вручную — ответ Александра 26.11.2026 [SOURCE]): над таблицей,
   где один столбец считается из других («Отклонение» = IFC − альбом), — с какими столбцами сравнивать. Флажки-пилюли
   по столбцам (можно несколько — сравнение с их суммой или попарно), подпись режима и «По умолчанию».
   <div class="basis-pick" role="group" aria-labelledby="bp-cap">
     <span class="basis-pick__cap" id="bp-cap">Отклонение — с</span>
     <div class="basis-pick__opts">
       <label class="basis-pick__opt"><input type="checkbox" value="0"><span>ГПЗУ ВГК-2</span></label>
       <label class="basis-pick__opt"><input type="checkbox" value="2" checked><span>Намерение ВГК-2</span></label>…</div>
     <span class="basis-pick__state">по корпусам · по умолчанию</span>
     <button class="btn btn--plain btn--s basis-pick__reset" type="button" hidden>По умолчанию</button></div>
   Выбранный — обводка акцентом и галочка, невыбранный — приглушённая обводка (как .tag и .tag--muted). Флажок
   настоящий (input type=checkbox, фокус Tab, Пробел) — кольцо фокуса на пилюле. «По умолчанию» виден, только когда
   выбор сделан вручную (hidden). Состояние (.basis-pick__state) — словами, что сейчас считается.
   ========================================================================== */
.basis-pick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.basis-pick__cap { color: var(--label-2); font-size: var(--fs-callout); white-space: nowrap; }
.basis-pick__opts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); }
.basis-pick__opt { position: relative; display: inline-flex; cursor: pointer; }
.basis-pick__opt > input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.basis-pick__opt > span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  height: var(--tag-h);
  padding: 0 var(--sp-3);
  border: var(--stroke-tag) solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: var(--fs-ui-s);
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
}
.basis-pick__opt > span::before {
  content: "";
  width: 0;
  height: 0.35em;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  rotate: -45deg;
  translate: 0 -1px;
  opacity: 0;
}
.basis-pick__opt:hover > span { border-color: var(--text-2); }
.basis-pick__opt > input:checked + span { border-color: var(--accent); color: var(--text); }
.basis-pick__opt > input:checked + span::before { width: 0.65em; opacity: 1; }
.basis-pick__opt > input:focus-visible + span { box-shadow: var(--focus-ring); }
.basis-pick__opt > input:disabled + span { opacity: var(--disabled-opacity); cursor: not-allowed; }
.basis-pick__state { color: var(--label-2); font-size: var(--fs-caption); }

/* ==========================================================================
   Меню аккаунта (2.29.0, [PRODUCTION], задача 7.13 3D-вьюера; вариант «В» выбран владельцем 2026-11-19): в тулбаре
   справа — только частое (чаты, уведомления, главное действие); редкое и личное — в одном меню за кнопкой аккаунта.
   <div class="menu-wrap acct-menu">
     <button class="btn btn--toolbar btn--icon acct-menu__btn" type="button" aria-haspopup="menu" aria-expanded="false"
       aria-controls="am" aria-label="Аккаунт" data-tooltip="Аккаунт"><svg class="ui-icon"><use href="icons.svg#i-user"/></svg></button>
     <div class="menu menu--end acct-menu__menu" id="am" role="menu" aria-label="Аккаунт">
       <div class="menu__head"><span class="menu__title">Администратор</span><span class="menu__sub">Форма Будущего</span></div>
       <div class="menu__sep" role="separator"></div>
       <a class="menu__item" role="menuitem" href="…"><svg class="ui-icon">…</svg>Показ</a> …
       <div class="menu__sep" role="separator"></div>
       <div class="menu__row"><span>Тема</span><div class="segmented" data-theme-toggle …>…</div></div>
       <div class="menu__sep" role="separator"></div>
       <button class="menu__item" role="menuitem" type="button">…log-out…Выйти</button></div></div>
   Шапка (.menu__head) — кто вошёл, не пункт и не фокусируется. Строка (.menu__row) — подпись и контрол прямо в меню
   (тема); фокус Tab, стрелки меню её пропускают. Пункт, которого у роли нет, — hidden (стрелки его не находят).
   ========================================================================== */
.menu__head { display: grid; gap: 2px; padding: var(--sp-1) var(--sp-3) var(--sp-2); }
.menu__title { color: var(--label); font-weight: var(--fw-medium); }
.menu__sub { color: var(--label-2); font-size: var(--fs-caption); }
.menu__sub:empty { display: none; }
.menu__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-3); color: var(--label-2); font-size: var(--fs-ui-m); }
.acct-menu { flex: none; }
.acct-menu__menu { min-width: 248px; }
.acct-menu__menu .menu__item { text-decoration: none; }
.acct-menu__menu .menu__item > .ui-icon { flex: none; width: var(--icon-s); height: var(--icon-s); color: var(--label-2); }
.acct-menu__menu .menu__item[hidden] { display: none; }

/* ==========================================================================
   Настройка уведомлений (2.30.0, [PRODUCTION], задача 6.13 3D-вьюера; решение владельца 2026-11-18: каждый сам выбирает,
   куда приходят уведомления и о каких событиях). Два блока:
   1. .pref-matrix — таблица «событие × канал» на .table-wrap + .table: строка — событие (__label, ниже __hint), столбец —
      канал (__ch: значок и имя; канал, который ещё не подключён, — [data-unready] и подпись __state «Пока недоступен»).
      В клетке — чекбокс .check__box в метке __cell (вся клетка — цель нажатия), у чекбокса aria-label «Событие — канал».
      Выбор у неподключённого канала не блокируется: он сохраняется и заработает, когда канал подключат.
      Узкий контейнер (меньше 480 px) — строка-блок: событие сверху, под ним клетки с подписью канала (data-label).
   2. .pref-channel — строка канала под таблицей: значок, имя и состояние (__name, __sub: адрес, «Не привязан»,
      «Пока недоступен»), справа действие (привязать, отвязать). Строки — списком .pref-channels.
   <div class="table-wrap pref-matrix"><table class="table">
     <thead><tr><th scope="col"><span class="sr-only">Событие</span></th>
       <th scope="col" class="pref-matrix__ch"><svg class="ui-icon">…bell…</svg><span>В интерфейсе</span></th>
       <th scope="col" class="pref-matrix__ch" data-unready><svg class="ui-icon">…mail…</svg><span>Email</span>
         <span class="pref-matrix__state">Пока недоступен</span></th></tr></thead>
     <tbody><tr><th scope="row"><span class="pref-matrix__label">Упоминания</span><span class="pref-matrix__hint">…</span></th>
       <td><label class="pref-matrix__cell" data-label="Интерфейс"><input type="checkbox" class="check__box" aria-label="Упоминания — в интерфейсе"></label></td>…
   Узко (меньше 480 px) строка становится блоком: событие сверху, клетки в ряд, подпись канала — из data-label клетки.
   Цвет: акцент — только у отмеченных чекбоксов; лайм не используется.
   ========================================================================== */
.pref-matrix { container-type: inline-size; }
/* Селекторы через .table — сильнее переопределений носителя «Сервисы» (ряды 24 px, nowrap). */
.pref-matrix .table :is(th, td) { height: auto; vertical-align: middle; }
.pref-matrix .table thead th { vertical-align: bottom; padding: var(--sp-2) var(--sp-3); }
/* Строка-событие — как ячейка, а не как заголовок таблицы: обычный цвет и размер, перенос, отступы клетки. */
.pref-matrix .table tbody th {
  text-align: left; white-space: normal; color: var(--label); font-size: var(--fs-ui-m); font-weight: var(--fw-regular);
  padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line);
}
.pref-matrix .table tbody tr:last-child th { border-bottom: 0; }
[data-media="app"] .pref-matrix .table tbody th { border-bottom: 0; font-size: var(--fs-body); }
[data-media="app"] .pref-matrix .table tbody tr:nth-child(even) th { background: var(--fill-4); }
.pref-matrix .table .pref-matrix__ch { width: 1%; min-width: 8.5rem; text-align: center; white-space: normal; line-height: 1.25; }
.pref-matrix__ch > .ui-icon { display: block; width: var(--icon-s); height: var(--icon-s); margin: 0 auto var(--sp-1); color: var(--label-2); }
.pref-matrix__state { display: block; margin-top: 2px; color: var(--label-2); font-size: var(--fs-caption); font-weight: var(--fw-regular); }
.pref-matrix__label { display: block; color: var(--label); font-weight: var(--fw-medium); }
.pref-matrix__hint { display: block; margin-top: 2px; color: var(--label-2); font-size: var(--fs-callout); }
.pref-matrix .table td { padding: 0; text-align: center; }
.pref-matrix__cell {
  display: grid; place-items: center; min-width: var(--control-h-m); min-height: var(--control-h-m);
  padding: var(--sp-2) var(--sp-3); cursor: pointer;
}
.pref-matrix__cell:has(:disabled) { cursor: not-allowed; opacity: var(--disabled-opacity); }
/* Узко (меньше 480 px): строка — блок: событие во всю ширину, под ним клетки каналов в ряд, под чекбоксом — подпись
   канала (__cell[data-label]); шапка таблицы остаётся только для читалки. Число каналов — --pref-cols (по умолчанию 3). */
@container (max-width: 480px) {
  .pref-matrix .table, .pref-matrix .table tbody { display: block; }
  .pref-matrix .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pref-matrix .table tbody tr { display: grid; grid-template-columns: repeat(var(--pref-cols, 3), minmax(0, 1fr)); }
  .pref-matrix .table tbody th { grid-column: 1 / -1; padding: var(--sp-3) var(--sp-3) 0; border-bottom: 0; }
  .pref-matrix .table tbody tr:not(:last-child) { border-bottom: 1px solid var(--line); }
  [data-media="app"] .pref-matrix .table tbody tr { border-bottom: 0; }
  [data-media="app"] .pref-matrix .table tbody tr:nth-child(even) { background: var(--fill-4); }
  [data-media="app"] .pref-matrix .table tbody tr:nth-child(even) :is(th, td) { background: transparent; }
  .pref-matrix__hint { display: none; }
  .pref-matrix__cell { display: flex; flex-direction: column; justify-content: center; gap: var(--sp-1); min-width: 0; padding: var(--sp-2) var(--sp-1) var(--sp-3); }
  .pref-matrix__cell::after { content: attr(data-label); max-width: 100%; color: var(--label-2); font-size: var(--fs-caption); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.pref-channels { display: grid; margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.pref-channel {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-1); border-bottom: 1px solid var(--line);
}
.pref-channel:last-child { border-bottom: 0; }
.pref-channel > .ui-icon { width: var(--icon-m); height: var(--icon-m); color: var(--label-2); }
.pref-channel__main { display: grid; gap: 2px; min-width: 0; }
.pref-channel__name { color: var(--label); font-weight: var(--fw-medium); }
.pref-channel__sub { color: var(--label-2); font-size: var(--fs-callout); overflow-wrap: anywhere; }
.pref-channel__act { display: flex; gap: var(--sp-2); justify-self: end; }
@container (max-width: 420px) {
  .pref-channel { grid-template-columns: auto minmax(0, 1fr); row-gap: var(--sp-2); }
  .pref-channel__act { grid-column: 2; justify-self: start; }
}

/* ---------- Замечания по модели (2.41.0, [PRODUCTION], задача 9.32 3D-вьюера) ----------
   Точка на сцене — обёртка 0×0 в точке (позицию каждый кадр ставит проект: transform translate(x, y)) в слое .remark-pins:
   <div class="remark-pin" data-state="open|done|draft"><span class="remark-pin__dot"></span>
     <button class="remark-pin__btn presence presence--pop" aria-label="Замечание 3: …">3</button></div>
   Кружок с номером стоит над точкой на стебельке и не закрывает то, на что указывает; точка — сама метка на модели.
   Открытое — акцент; отработанное — материал сцены и галочка вместо номера (data-state="done");
   новое, ещё без текста, — пунктир (draft). .is-active — открыто по ссылке или выбрано (кольцо фокуса);
   .is-lost — элемента в текущей версии модели нет, точка стоит по координатам (точка — кольцом, кружок — пунктиром).
   Точек много и они наехали друг на друга — .is-compact: точка и маленький кружок без номера (номер — в подсказке).
   Подсказка (наведение и фокус на точке), растёт из точки (--origin):
   <div class="float remark-tip presence presence--pop" role="tooltip"><div class="remark-tip__head"><b class="remark-tip__n">№ 3</b>
     <span class="remark-tip__by">Имя · 26.11, 14:20</span></div><p class="remark-tip__text">…</p>
     <p class="remark-tip__meta">Элемента нет в текущей версии</p></div>
   Ввод у точки: <form class="float remark-form presence presence--pop"><label class="remark-form__label">Замечание</label>
     <textarea class="textarea remark-form__input"></textarea><div class="remark-form__row"><span class="remark-form__where">…</span>
     <button class="btn btn--plain btn--s">Отмена</button><button class="btn btn--primary btn--s">Сохранить</button></div></form>
   Список во вкладке чата: <div class="remarks"><form class="remarks__new">(поле + «Добавить»)</form>
     <div class="remarks__bar"><span class="remarks__count">…</span><label class="switch">Показывать отработанные</label></div>
     <ol class="remarks__list"><li class="remark-row" data-state="open|done">
       <label class="remark-row__check"><input type="checkbox" class="check__box" aria-label="Отработано"></label>
       <span class="remark-row__n">3</span><div class="remark-row__body"><p class="remark-row__text">…</p>
       <p class="remark-row__meta">Имя · 26.11, 14:20 · <span class="tag tag--muted">Без точки</span></p>
       <p class="remark-row__done">Отработано: Имя, 26.11, 15:02</p></div>
       <div class="remark-row__acts"><a class="btn btn--plain btn--s">Перейти на 3D-вид</a></div></li></ol></div>
   Лайм и красный не используются: открытое — акцент, отработанное — вторичный цвет. */
.remark-pins { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.remark-pin { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; --remark-size: var(--hud-inner-h); }
.remark-pin__dot {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: var(--r-full);
  background: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 1px 4px rgb(0 0 0 / .35);
}
.remark-pin__btn {
  position: absolute; left: 0; bottom: calc(var(--sp-3) + 4px); translate: -50% 0;
  display: inline-grid; place-items: center; min-width: var(--remark-size); height: var(--remark-size); padding: 0 var(--sp-1);
  border: 1.5px solid var(--on-accent); border-radius: var(--r-full); background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: var(--fs-ui-s); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; line-height: 1;
  box-shadow: var(--scene-glass-shadow); cursor: pointer; pointer-events: auto; transform-origin: 50% 100%;
}
.remark-pin__btn.presence[hidden] { translate: -50% var(--presence-y); }
.remark-pin__btn::after { /* стебелёк до точки */
  content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: calc(var(--sp-3) + 1px); margin-left: -1px;
  border-radius: var(--r-full); background: var(--accent);
}
.remark-pin__btn:hover { filter: brightness(1.08); }
.remark-pin__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.remark-pin__btn .ui-icon { width: var(--icon-s); height: var(--icon-s); }
.remark-pin[data-state="done"] .remark-pin__btn {
  border-color: var(--scene-glass-border); background: var(--scene-glass-fallback); color: var(--label-2);
  box-shadow: var(--scene-glass-edge), var(--scene-glass-shadow);
}
.remark-pin[data-state="done"] .remark-pin__dot,
.remark-pin[data-state="done"] .remark-pin__btn::after { background: var(--label-2); }
.remark-pin[data-state="draft"] .remark-pin__btn { border-style: dashed; border-color: var(--accent); background: var(--scene-glass-fallback); color: var(--label); }
.remark-pin.is-active { z-index: 1; }
.remark-pin.is-active .remark-pin__btn { box-shadow: var(--focus-ring), var(--scene-glass-shadow); }
.remark-pin.is-lost .remark-pin__dot { background: transparent; box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 3px var(--bg); }
.remark-pin.is-lost .remark-pin__btn { border-style: dashed; }
.remark-pin.is-compact { --remark-size: 12px; }
.remark-pin.is-compact .remark-pin__btn { bottom: 8px; padding: 0; font-size: 0; }
.remark-pin.is-compact .remark-pin__btn::after { height: 5px; }
.remark-pin.is-compact .remark-pin__btn .ui-icon { display: none; }

.remark-tip {
  position: fixed; left: 0; top: 0; z-index: 30; display: grid; gap: var(--sp-1);
  width: max-content; max-width: min(300px, calc(100vw - 32px)); padding: var(--sp-2) var(--sp-3);
  border-radius: var(--panel-r); background: var(--scene-glass-fallback); pointer-events: none; transform-origin: var(--origin, 50% 100%);
}
.remark-tip__head { display: flex; align-items: baseline; gap: var(--sp-2); min-width: 0; }
.remark-tip__n { flex: none; color: var(--label); font-size: var(--fs-ui-m); font-variant-numeric: tabular-nums; }
.remark-tip__by { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--label-2); font-size: var(--fs-callout); }
.remark-tip__text {
  display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 8;
  color: var(--label); font-size: var(--fs-ui-m); line-height: var(--lh-body); white-space: pre-line; overflow-wrap: anywhere;
}
.remark-tip__meta { margin: 0; color: var(--label-2); font-size: var(--fs-callout); }
.remark-tip__meta[hidden] { display: none; }

.remark-form {
  position: fixed; left: 0; top: 0; z-index: 31; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2);
  width: min(320px, calc(100vw - 32px)); padding: var(--sp-3); border-radius: var(--panel-r); transform-origin: var(--origin, 50% 100%);
}
.remark-form__label { color: var(--label); font-size: var(--fs-ui-m); font-weight: var(--fw-bold); }
.remark-form__input { width: 100%; min-height: calc(var(--row-h) * 3); resize: vertical; }
.remark-form__row { display: flex; align-items: center; gap: var(--sp-2); }
.remark-form__row > .btn { flex: none; }
.remark-form__where { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--label-2); font-size: var(--fs-callout); }

.remarks { display: grid; align-content: start; gap: var(--sp-3); min-height: 0; container-type: inline-size; }
.remarks[hidden] { display: none; }
.remarks__new { display: flex; align-items: flex-end; gap: var(--sp-2); }
.remarks__new > .textarea { flex: 1 1 auto; min-width: 0; min-height: var(--control-h-m); resize: none; }
.remarks__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); color: var(--label-2); font-size: var(--fs-callout); }
.remarks__count { font-variant-numeric: tabular-nums; }
.remarks__list { display: grid; margin: 0; padding: 0; list-style: none; }
.remarks__empty { margin: 0; padding: var(--sp-5) var(--sp-2); color: var(--label-2); text-align: center; }
.remark-row {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: start; column-gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-2); border-bottom: 1px solid var(--line); border-radius: var(--inner-r);
}
.remark-row:last-child { border-bottom: 0; }
.remark-row.is-active { background: var(--fill-3); }
.remark-row__check { display: inline-flex; padding-top: 2px; cursor: pointer; }
.remark-row__n {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 var(--sp-1); border-radius: var(--r-full);
  background: var(--accent); color: var(--on-accent); font-size: var(--fs-callout); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums;
}
.remark-row__body { display: grid; gap: 2px; min-width: 0; }
.remark-row__text { margin: 0; color: var(--label); line-height: var(--lh-body); white-space: pre-line; overflow-wrap: anywhere; }
.remark-row__meta, .remark-row__done { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); margin: 0; color: var(--label-2); font-size: var(--fs-callout); }
.remark-row__done[hidden] { display: none; }
.remark-row__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-1); }
.remark-row[data-state="done"] .remark-row__n { background: var(--fill-2); color: var(--label-2); }
.remark-row[data-state="done"] .remark-row__text { color: var(--label-2); }
@container (max-width: 520px) {
  .remark-row { grid-template-columns: auto auto minmax(0, 1fr); row-gap: var(--sp-2); }
  .remark-row__acts { grid-column: 3; justify-content: flex-start; }
}
