/* Шрифты библиотеки. Блок data-tc макета их не объявляет: там @font-face
   указывает на файлы рядом с макетом и живёт в <style> страницы. */
@font-face {
	font-family: "Literata";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/Literata.ttf") format("truetype");
}

@font-face {
	font-family: "Public Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/PublicSans.ttf") format("truetype");
}

@font-face {
	font-family: "Source Code Pro";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/SourceCodePro.ttf") format("truetype");
}
:root{
  --tc-ink:#17211C; --tc-card:#E8DFCB; --tc-edge:#C9BFA6; --tc-accent:#4A6B52;
  --tc-bg:#F5F1E8; --tc-surface:#FFFDF7; --tc-rule:#D8CFBB; --tc-hair:#E2DACA; --tc-dusty:#6A6351; --tc-muted:#56503F; --tc-danger:#A84232; --tc-progress:#7D5E0C;
  --tc-font-serif:"Literata", Georgia, "Times New Roman", serif;
  --tc-font-sans:"Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tc-font-mono:"Source Code Pro", ui-monospace, "Cascadia Mono", monospace;
}
/* Классы .tc-* — набор компонентов библиотеки Typecase. */
.tc-root{--tc-rail:264px;--tc-side:400px;--tc-top:52px;--tc-page-gutter:20px;--tc-page-gutter-narrow:14px;
  /* Ступени зазоров и отступов (владелец, 09.11: ступени вместо чисел): тесно, обычно, широко, просторно (поля рядом, как в формах; абзац после раздела). Контейнер может их переопределить. */
  --tc-gap-tight:4px;--tc-gap:8px;--tc-gap-wide:12px;--tc-gap-loose:16px;
  /* Колонка значений полей: от подписи (или фото 104 px) её отделяет этот зазор — у списка полей и у шапки с фото один, чтобы имя стояло над значениями. */
  --tc-fields-gap:14px;
  font-family:var(--tc-font-sans);font-size:13px;line-height:1.45;color:var(--tc-ink);background:var(--tc-bg);
  container:tcbox / inline-size}
/* Коробка кадра-компонента: то, что раньше давало правило страницы .demo.
   Идиома та же, что у components-1…8: tc-root и варианты корня. */
.tc-root--wrap.tc-root--wrap{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px}
.tc-root--col.tc-root--col{display:flex;flex-direction:column;flex-wrap:wrap;align-items:stretch;gap:10px}
.tc-root--pad18-20.tc-root--pad18-20{padding:18px 20px}
/* Тело страницы библиотеки (package page): без полей, фон и текст — токены. */
body[data-tc-root]{margin:0;background:var(--tc-bg);color:var(--tc-ink);font-family:var(--tc-font-sans)}
.tc-root *{box-sizing:border-box}
.tc-root p,.tc-root h1,.tc-root h2,.tc-root h3,.tc-root h4,.tc-root ul,.tc-root ol,.tc-root dl,.tc-root dd,.tc-root dt,.tc-root figure{margin:0;padding:0}
.tc-root ul{list-style:none}
.tc-root a{color:inherit;text-decoration:none}
.tc-root code,.tc-root .tc-mono{font-family:var(--tc-font-mono);font-size:11.5px}
.tc-root svg{display:block}
[data-tc-theme="dark"]{--tc-ink:#E8DFCB;--tc-bg:#141A16;--tc-surface:#1B231D;--tc-card:#242E27;--tc-edge:#3A463D;
  --tc-rule:#2F3B33;--tc-hair:#28332B;--tc-dusty:#99927C;--tc-muted:#A79E88;--tc-accent:#7FA085;--tc-danger:#D5786B;--tc-progress:#C9A23E}
/* верхняя панель */
.tc-top{height:var(--tc-top);display:flex;align-items:center;gap:14px;padding:0 16px;background:var(--tc-surface);border-bottom:.5px solid var(--tc-rule)}
/* Поиск по центру: равные крылья flex:1 1 0 слева и справа. */
.tc-brand{display:flex;align-items:center;gap:9px;font-family:var(--tc-font-serif);font-size:17px;
  flex:1 1 0}
.tc-brand svg{width:19px;height:19px;flex:none}
/* Логотип: знак встроен в последнюю «l» — одна графика. Цвета через <use>. */
.tc-brand__logo{width:56px;height:22px;flex:none}
.tc-logo__word{fill:var(--tc-ink)}
.tc-logo__shade{fill:var(--tc-accent)}
/* Знак davloom — по эталону carrel/docs/visual/davloom-icon.html (v1.1), хинт 16 px:
   нити и вал — чернила, полотно — единственный акцент. Собран из частей, как логотип:
   под правилом значков fill:none вал и полотно не выжили бы. Меньше 16 px не рисуется.
   Не отвечает — знак на плашке тревоги; сам знак не перекрашивается: красное полотно
   в 7×4 px не читалось. Плашка 24 px — ниже кнопок ряда (26), строка не прыгает. */
.tc-emblem{width:16px;height:16px;flex:none}
.tc-emblem__stroke{fill:none;stroke:var(--tc-ink);stroke-width:1;stroke-linecap:round}
.tc-emblem__fill{fill:var(--tc-ink);stroke:none}
.tc-emblem__accent{fill:var(--tc-accent);stroke:none}
.tc-emblem.is-alert{box-sizing:content-box;padding:3px;border:1px solid var(--tc-danger);border-radius:3px;
  background:color-mix(in srgb,var(--tc-danger) 11%,transparent)}
.tc-nav .tc-emblem{width:16px;height:16px;opacity:1}
/* в подвале приложения — не кнопка: прижат вправо, чтобы не читался равным кнопкам */
.tc-railfoot > .tc-emblem{margin-left:auto}
.tc-brand .tc-brand__logo{width:56px;height:22px}
.tc-badge.is-local{border-color:transparent;color:var(--tc-danger);
  background:color-mix(in srgb,var(--tc-danger) 11%,transparent)}
.tc-badge.is-local::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor;flex:none}
.tc-search{flex:0 1 560px;width:560px;display:flex;align-items:center;gap:7px;height:28px;padding:0 9px;
  background:var(--tc-bg);border:.5px solid var(--tc-edge);border-radius:3px;color:var(--tc-dusty);font-size:12.5px}
.tc-top__actions{flex:1 1 0;display:flex;align-items:center;justify-content:flex-end;gap:8px}
/* «⋯» верхней полосы (владелец 11.11): стоит, только пока под ним действие второго ранга (is-2nd); меню держит его двойника. */
.tc-top__more{display:none}
.tc-usermenu{display:flex;align-items:center;gap:7px;padding:0 2px 0 10px;font-size:12.5px;color:var(--tc-muted)}
.tc-usermenu .tc-avatar{width:22px;height:22px;font-size:9.5px}
/* каркас */
.tc-shell__body{display:grid;grid-template-columns:var(--tc-rail) minmax(0,1fr);min-height:480px;--tc-shell-mode:full}
.tc-shell__body.tc-shell__body--side{grid-template-columns:var(--tc-rail) minmax(0,1fr) var(--tc-side)}
.tc-shell__body.tc-shell__body--no-rail{grid-template-columns:minmax(0,1fr)}
.tc-shell__rail{border-right:.5px solid var(--tc-rule);padding:12px 0 0;display:flex;flex-direction:column;gap:16px;min-width:0}
.tc-main{min-width:0;display:flex;flex-direction:column;background:var(--tc-bg);container:tcbox / inline-size;overflow-x:auto;position:relative}
.tc-side{border-left:.5px solid var(--tc-rule);background:var(--tc-surface);display:flex;flex-direction:column;min-width:0;position:relative;container:tcbox / inline-size}
/* рейл */
.tc-nav{display:flex;flex-direction:column;gap:1px;padding:0 8px}
.tc-nav--bottom{display:none}
.tc-nav .tc-nav__item{display:flex;align-items:center;gap:9px;height:29px;padding:0 8px;border-radius:3px;font-size:13.5px;color:var(--tc-ink)}
.tc-nav .tc-nav__item.is-on{background:var(--tc-card);font-weight:600}
.tc-nav .tc-nav__item.is-on .tc-num{color:var(--tc-muted)}
.tc-nav svg{width:15px;height:15px;flex:none;stroke:currentColor;stroke-width:1.3;fill:none;
  stroke-linecap:round;stroke-linejoin:round;opacity:.75}
.tc-num{margin-left:auto;font-family:var(--tc-font-mono);font-size:11px;color:var(--tc-dusty)}
.tc-num.is-alert{color:var(--tc-danger)}
.tc-rubric{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--tc-dusty);font-weight:600}
.tc-rubric:has(> .tc-btn),.tc-rubric:has(> .tc-drop){display:flex;align-items:center;gap:4px}
.tc-railsec{display:flex;flex-direction:column;gap:3px}
.tc-railsec > .tc-rubric{padding:0 16px;display:flex;justify-content:space-between;align-items:baseline;margin-bottom:3px}
/* Три фиксированные колонки, хвост (ro, Retry) раскладывается сам. */
.tc-tickrow{display:grid;grid-template-columns:12px 3px minmax(3.5em,1fr);
  grid-auto-flow:column;grid-auto-columns:minmax(0,auto);gap:9px;align-items:center;
  height:26px;padding:0 14px 0 12px;font-size:13px}
/* Уступает хвост, не имя: имя — то, за что строку узнают. */
.tc-tickrow .tc-tickrow__meta{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Флажок знает свой размер сам — как полоска ниже. */
.tc-tickrow__tick{display:inline-block;vertical-align:middle;width:11px;height:11px;
  border-radius:2px;background:var(--tc-ink);flex:none}
.tc-tickrow__tick.is-off{background:transparent;border:.5px solid var(--tc-edge)}
/* Галка-флажок формы (выбор до действия): состояние — :checked, частичный выбор — класс. */
input.tc-tickrow__tick{appearance:none;margin:0;cursor:pointer}
input.tc-tickrow__tick:not(:checked):not(.is-part){background:transparent;border:.5px solid var(--tc-edge)}
input.tc-tickrow__tick.tc-tickrow__tick:checked{background:var(--tc-ink);border:0}
/* Полоска коллекции знает свой размер сама. */
.tc-mark{display:inline-block;vertical-align:middle;width:3px;height:14px;border-radius:1px;flex:none}
.tc-tickrow .tc-mark{width:3px;height:14px;border-radius:1px}
.tc-tickrow__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-tickrow .tc-tickrow__meta{font-size:11px;color:var(--tc-dusty);font-family:var(--tc-font-mono)}
.tc-tickrow.is-on{background:var(--tc-card);font-weight:600}
.tc-tickrow.is-off .tc-tickrow__label{color:var(--tc-dusty)}
.tc-tickrow.is-error .tc-tickrow__meta{color:var(--tc-danger)}
/* Отказ источника (решение человека 02.10): в рейле — значок, причина — в его подсказке; полностью — в меню отказов полосы хода. Борьба с длиной строки обречена. */
.tc-tickrow__err{margin-left:auto;display:inline-flex;align-items:center;color:var(--tc-danger);flex:none}
.tc-tickrow__err svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.6}
.tc-menu__refusal{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 8px;align-items:start;padding:8px 12px;border-bottom:.5px solid var(--tc-hair)}
.tc-menu__refusal > .tc-mark{margin-top:3px}
.tc-menu__what{display:flex;flex-direction:column;gap:2px;min-width:0}
.tc-menu__source{font-size:12.5px;color:var(--tc-ink)}
.tc-menu__answer{font-family:var(--tc-font-mono);font-size:11px;color:var(--tc-danger);white-space:normal;overflow-wrap:anywhere}
/* Combined … — единый вид раздела. Полоска из цветов всех коллекций. */
.tc-tickrow.is-all{margin-bottom:2px}
/* Корень файлов — навигация, не единый вид: значок раздела вместо сборной
   полоски. Флажок трёхпозиционный: отмеченные хранилища и есть корень. */
.tc-tickrow.is-root{grid-template-columns:12px 13px minmax(3.5em,1fr);margin-bottom:2px}
.tc-tickrow.is-root > svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.3;
  fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:.75}
/* Чужая лента: цвет из адреса, полоска штрихованная. Штриховку знает
   сама полоска — она же стоит в таблице подключений. */
.tc-mark.is-ext,.tc-tickrow.is-ext .tc-mark{position:relative}
.tc-mark.is-ext::after,.tc-tickrow.is-ext .tc-mark::after{content:"";position:absolute;inset:0;
  background:repeating-linear-gradient(0deg,transparent 0 2px,var(--tc-surface) 2px 3px);opacity:.8}
.tc-tickrow.is-ext .tc-tickrow__label{font-style:normal}
.tc-mark.is-multi{background:linear-gradient(#4A6B52 0 20%,#3F6E8C 20% 40%,#A05A2C 40% 60%,#6B4E7A 60% 80%,#8C6239 80% 100%)}
.tc-tickrow__tick.is-part{background:linear-gradient(var(--tc-ink) 0 0) center/7px 2px no-repeat;border:.5px solid var(--tc-edge)}
/* Подвал рейла — ряд квадратов с title, прижат к низу колонки, как Delete в панели. */
.tc-railfoot{margin-top:auto;padding:11px 16px;border-top:.5px solid var(--tc-hair);display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;align-items:center}
.tc-railfoot > .tc-btn{padding:0 7px;flex:none}
/* подвал отдельно от рейла, его ширины — для кадров-образцов компонента */
.tc-railfoot--strip{width:var(--tc-rail);border-right:.5px solid var(--tc-rule)}
/* Баннер подвала: важное состояние, которое должно быть на виду, чтобы за ним
   не ходить в раздел. Первая строка — что сейчас, вторая — подробность. */
.tc-railstatus{flex:1 1 100%;font-size:11px;line-height:1.5}
.tc-railstatus.is-alert{color:var(--tc-danger)}
.tc-railstatus.is-off{color:var(--tc-dusty)}
.tc-railstatus .tc-mono{color:inherit}
/* Последняя строка рейла: версия и ссылка на «о программе». C-13 (AGPL) требует видимую
   ссылку на исходники именно запущенной версии — она стоит в оболочке, а не только
   на странице без входа. Занимает всю ширину подвала, поэтому переносится под кнопки. */
a.tc-railfoot__about{flex:1 1 100%;font-size:11px;line-height:1.5;color:var(--tc-dusty);
  text-decoration:underline;text-decoration-color:var(--tc-hair);text-underline-offset:2px}
/* шапка раздела и панель управления */
.tc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:15px var(--tc-page-gutter) 11px;flex-wrap:wrap}
.tc-head__title{font-family:var(--tc-font-serif);font-size:22px;font-weight:400;line-height:1.15;display:flex;align-items:center;gap:9px}
.tc-head__title .tc-mark{width:3px;height:20px;border-radius:1px}
.tc-head__sub{font-size:11.5px;color:var(--tc-dusty);margin-top:4px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.tc-acts{display:flex;gap:6px;align-items:center;flex:none;flex-wrap:wrap;justify-content:flex-end}
/* Набор кнопок шапки не шире шапки: иначе, пока порог 620 не пустил его в перенос, он выдавливает колонку. */
.tc-head .tc-acts{max-width:100%}
/* Полоса: свой отступ 7 px сверху и снизу; одна строка; лишнее — is-2nd. */
.tc-head:has(+ .tc-bar){padding-bottom:4px}
.tc-side > .tc-head{flex-wrap:nowrap}
.tc-side > .tc-head > .tc-acts{flex:none}
/* Левая половина шапки: .tc-head__group (фото + заголовки), внутри .tc-head__titles. */
.tc-head__group{display:flex;gap:var(--tc-fields-gap);align-items:flex-start;min-width:0}
.tc-head__titles{min-width:0}
.tc-bar{display:flex;align-items:center;gap:10px;padding:7px var(--tc-page-gutter);border-bottom:.5px solid var(--tc-rule);
  position:relative}
/* Фильтр и диапазон дат не прячутся под «...» (хронология человека): где обоим не хватает места, полоса переносится (Р-65). */
.tc-bar:has(> .tc-in):has(> .tc-range){flex-wrap:wrap}
.tc-bar__right{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:11.5px;color:var(--tc-dusty)}
/* Правая группа не переносит подписи: «Draft in this window · 11:42» в две строки наезжал на Auto-save. Лишнее уходит по порогу, а не сжатием. */
.tc-bar__right > *{white-space:nowrap;flex:none}
/* Потомок, не ребёнок: «...» с меню лежит в .tc-drop. Узел спрятан вместе с кнопкой,
   иначе пустой flex-элемент добавил бы полосе промежуток. */
.tc-bar .tc-bar__more,.tc-docbar .tc-bar__more{display:none;margin-left:auto}
.tc-bar .tc-drop:has(> .tc-bar__more),.tc-docbar .tc-drop:has(> .tc-bar__more){display:none;margin-left:auto;flex:none}
/* В панели документа «⋯» прячет кнопки форматирования и стоит сразу за ними; к правому краю панель прижимает её правая группа. Два отступа auto делили свободное место, и «⋯» висел посередине (владелец, 08.11). */
.tc-docbar .tc-bar__more,.tc-docbar .tc-drop:has(> .tc-bar__more){margin-left:0}
/* Меню «...» полосы открыто, только пока видна сама кнопка: без неё оно висело бы ни от чего. */
.tc-bar .tc-bar__more + .tc-menu,.tc-docbar .tc-bar__more + .tc-menu{display:none}
/* .tc-bar__sep и .tc-range — элементы панели: диапазон уходит в «...» целиком.
   В панели сжимается только поле, не ниже 96 px; переключатель не сжимается. */
/* Поле со значком поиска внутри (фильтр) держит свой минимум само (Р-65), где бы ни стояло:
   сначала сжимается до него, растёт до ширины своего класса — так ряд переносится, только
   когда и минимума не хватает. Класс размера фильтра поэтому держит и max-width. */
.tc-in:has(> .tc-q){min-width:88px;overflow:hidden;white-space:nowrap;flex:1 1 88px}
/* Короткая подсказка (Query.Short, владелец 16.11): поверх строки на её месте (за значком 13 px с отступом 6 px или тихим 12 px)
   стоит короткое слово и поверх него — вся подсказка с фоном поля; не входит вся — уходит на вторую строку, которой не видно,
   и остаётся короткое слово целиком, а не обрезанная полная. Своя подсказка строки при этом прозрачна; набрано — не видна и эта. */
.tc-in:has(> .tc-q__ph){position:relative}
.tc-in > .tc-q:has(+ .tc-q__ph)::placeholder{color:transparent}
.tc-q__ph{position:absolute;top:0;bottom:0;left:28px;right:9px;padding:inherit;padding-left:0;padding-right:0;display:flex;align-items:center;pointer-events:none;background:inherit}
.tc-in:has(> .tc-ico--dusty) > .tc-q__ph{left:21px}
.tc-q__hint{flex:1;display:flex;flex-wrap:wrap;min-width:0;max-height:1lh;overflow-x:visible;overflow-y:clip;background:inherit;position:relative}
.tc-q__hint::before{content:"\200b";width:0}
.tc-q__short{position:absolute;left:0;top:0;white-space:nowrap}
.tc-q__full{position:relative;white-space:nowrap;background:inherit}
.tc-q:not(:placeholder-shown) + .tc-q__ph{display:none}
.tc-bar > .tc-seg,.tc-bar > .tc-btn,.tc-bar > .tc-check,.tc-bar > .tc-range,
.tc-bar > .tc-bar__right,.tc-bar > .tc-bar__sep{flex:none}
.tc-bar__sep{width:1px;height:20px;background:var(--tc-edge);flex:none}
.tc-range{display:flex;align-items:center;gap:8px;flex:none;max-width:100%;flex-wrap:wrap}
.tc-range__dash{font-style:normal;color:var(--tc-dusty)}
/* native controls: zero specificity */
:where(.tc-root) :where(button,input,textarea,select,form){margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-transform:inherit;min-width:0;min-height:0}
:where(.tc-root) :where(button){cursor:pointer;appearance:none}
:where(.tc-root) :where(input[type=search]){appearance:none;-webkit-appearance:none}
:where(.tc-root) :where(input[type=search])::-webkit-search-decoration,
:where(.tc-root) :where(input[type=search])::-webkit-search-cancel-button,
:where(.tc-root) :where(input[type=search])::-webkit-search-results-button,
:where(.tc-root) :where(input[type=search])::-webkit-search-results-decoration{display:none;appearance:none}
:where(.tc-root) ::placeholder{color:inherit;opacity:1}
:where(.tc-root) :where(textarea){field-sizing:content;resize:none}
:where(.tc-root) :where(button[role=menuitem],a[role=menuitem]){width:100%}
.tc-root .tc-q{flex:1;min-width:0;min-height:0;overflow:hidden}
/* Крестик фильтра со словом — ссылка на адрес без фильтра (Filter.Clear, задача Carrel 231). */
.tc-in__clear{display:inline-flex;flex:none;align-items:center;justify-content:center;width:18px;height:18px;margin-left:4px;color:var(--tc-dusty);border-radius:2px}
.tc-in__clear:hover{color:var(--tc-ink)}
.tc-in__clear > svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:1.6}
/* Подсказка пустого поля — тем же цветом, что набранное: поле само тихое (U-1). */
.tc-root .tc-q::placeholder{color:inherit;opacity:1;font:inherit;letter-spacing:inherit;line-height:inherit}
.tc-acts > .tc-drop{flex:none}
/* действия шапки в два яруса: второй ярус — уточнение к первому (порог под фильтром) */
.tc-acts--stack{flex-direction:column;align-items:flex-end}
/* элементы управления */
.tc-btn{height:26px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;border:.5px solid var(--tc-edge);
  border-radius:3px;background:var(--tc-surface);font-size:12.5px;color:var(--tc-ink);white-space:nowrap;flex:none;box-sizing:border-box;
  text-transform:none;letter-spacing:normal;font-weight:400}
.tc-btn svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tc-btn.is-primary{background:var(--tc-accent);border-color:var(--tc-accent);color:#FFFDF7}
.tc-btn.is-danger{color:var(--tc-danger);border-color:var(--tc-edge)}
/* Недоступная кнопка остаётся своего цвета и бледнеет: по цвету видно, что она сделала бы. */
.tc-btn:disabled{opacity:.45;cursor:default}
/* Кнопка-ссылка — та же кнопка: адрес вместо действия. Недоступная — без адреса. */
a.tc-btn[aria-disabled=true]{opacity:.45;cursor:default}
/* Кнопка ждёт свою форму: пока в форме, диалоге или листе вокруг пусто
   обязательное поле, она бледнеет, как недоступная, причина — в подсказке;
   нажатую браузер не отправит и назовёт поле. Заполнили — готова; решает
   :has(), сценарий не нужен. Что выбрать, экран говорит над полями. */
:is(form,.tc-dialog,.tc-sheet):has(:invalid) .tc-btn.is-wait{opacity:.45;cursor:default}
/* Заливка — уничтожение; рамка — отвязать. Подпись на заливке — --tc-surface:
   в тёмной теме белое на --tc-danger даёт 3.9, бумага — 5.5. */
.tc-btn.is-danger-solid{background:var(--tc-danger);border-color:var(--tc-danger);color:var(--tc-surface)}
.tc-btn.is-sm{height:22px;font-size:11.5px;padding:0 7px}
/* Крестик — тихая кнопка в шапке, в потоке, как остальные действия. */
.tc-close{width:24px;height:24px;padding:0;justify-content:center;flex:none;margin-left:auto;
  border-color:transparent;background:transparent;color:var(--tc-muted)}
.tc-close > svg{width:14px;height:14px}
.tc-root a.tc-close{color:var(--tc-muted)}
/* Один auto на ряд: иначе Apply / «куда» и крестик делят свободное место. */
.tc-push + .tc-close,.tc-acts > .tc-close{margin-left:0}
.tc-split{display:inline-flex;flex:none}
.tc-split > .tc-btn:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0;border-right:0}
.tc-split > .tc-btn + .tc-btn{border-top-left-radius:0;border-bottom-left-radius:0;padding:0 8px;border-left:0}
/* Переключатель не сжимается и не переносит подписи: целиком или под «⋯». */
.tc-seg{display:inline-flex;border:.5px solid var(--tc-edge);border-radius:3px;overflow:hidden;height:26px;
  flex:none;white-space:nowrap}
.tc-seg__opt{padding:0 11px;display:inline-flex;align-items:center;font-size:12.5px;color:var(--tc-muted);border-right:.5px solid var(--tc-hair)}
.tc-seg__opt:last-child{border-right:0}
/* Сегмент, которому тесно (решение 30.09.2026): на узкой полосе он складывается в выпадающий выбор —
   текущий вариант и меню остальных. <details> открывается без сценария; варианты — ссылки. */
.tc-segfold{display:inline-flex}
.tc-segfold__pick{display:none;position:relative}
/* Текущий вариант — как поле-список (.tc-in.is-pick), меню — как .tc-menu: свои элементы, не чужие блоки. */
.tc-segfold__current{height:28px;border:.5px solid var(--tc-edge);border-radius:3px;background:var(--tc-surface);padding:0 26px 0 9px;
  font-size:12.5px;display:flex;align-items:center;color:var(--tc-ink);white-space:nowrap;position:relative;list-style:none;cursor:pointer}
.tc-segfold__current::-webkit-details-marker{display:none}
.tc-segfold__current::after{content:"";position:absolute;right:9px;top:50%;width:6px;height:6px;
  margin-top:-5.5px;border-right:1.3px solid currentColor;border-bottom:1.3px solid currentColor;
  transform:rotate(45deg);opacity:.5;pointer-events:none}
.tc-segfold__menu{position:absolute;top:100%;left:0;margin-top:4px;z-index:6;width:180px;
  background:var(--tc-surface);border:.5px solid var(--tc-edge);border-radius:4px;padding:4px}
.tc-segfold__item{display:flex;align-items:center;gap:9px;height:28px;padding:0 8px;border-radius:3px;font-size:12.5px;color:var(--tc-ink)}
.tc-segfold__item.is-on{background:var(--tc-card)}
.tc-segfold__count{margin-left:auto;color:var(--tc-dusty)}
.tc-seg__opt.is-on{background:var(--tc-card);color:var(--tc-ink);font-weight:600}
/* Вариант-ссылка — того же цвета, что вариант-кнопка: правило ссылок корня (color:inherit) его не перекрашивает. */
.tc-root a.tc-seg__opt{color:var(--tc-muted)}
.tc-root a.tc-seg__opt.is-on{color:var(--tc-ink)}
/* Сегмент на радиокнопках: выбранный — тот, чья кнопка отмечена. */
label.tc-seg__opt{position:relative;cursor:pointer}
.tc-seg__opt:has(> .tc-seg__box:checked){background:var(--tc-card);color:var(--tc-ink);font-weight:600}
.tc-seg__opt:has(> .tc-seg__box:focus-visible){outline:1.5px solid var(--tc-accent);outline-offset:-2px}
/* Поле — одна строка; не помещающееся обрезается. Многострочное — .is-area. */
.tc-in{height:28px;border:.5px solid var(--tc-edge);border-radius:3px;background:var(--tc-surface);padding:0 9px;
  font-size:12.5px;display:flex;align-items:center;color:var(--tc-ink);min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-in.is-ph{color:var(--tc-dusty)}
/* Поле-список: стрелку рисует система (.is-pick). */
.tc-in.is-pick{padding-right:26px;position:relative}
/* Список браузера в поле-списке: поле рисует рамку и стрелку, список — только слова (задача 149). */
.tc-in.is-pick > .tc-in__list{appearance:none;border:0;background:transparent;font:inherit;color:inherit;letter-spacing:inherit;padding:0;margin:0;flex:1 1 auto;min-width:0;width:100%;outline:0;cursor:pointer}
/* Буквы по середине (владелец 08.11): Public Sans оставляет под строкой больше
   места, чем над заглавными, и текст однострочных полей, выборов и кнопок стоял
   на 1 px выше середины; поле ввода (input) браузер и так ставит по середине.
   Поле сверху на 2 px больше — текст ниже на 1 px; значки остаются, где были.
   Против полей вариантов (padding:0 Npx) — вес id. */
:is(.tc-btn,.tc-seg__opt,.tc-segfold__current,.tc-in:not(input,textarea,.tc-in--tags,.tc-in--cols)):not(#_){padding-top:2px;padding-bottom:0}
:is(.tc-btn,.tc-seg__opt,.tc-segfold__current,.tc-in) > svg{margin-top:-2px}
/* Отметка-флажок в поле формы — отметка, а не подпись поля. */
.tc-field > label.tc-check{font-size:12.5px;letter-spacing:normal;color:inherit}
/* Стрелка в правых 24 px; маска цвета поля закрывает хвост текста. */
.tc-in.is-pick::before{content:"";position:absolute;right:0;top:0;bottom:0;width:24px;
  background:var(--tc-surface);pointer-events:none;border-radius:0 3px 3px 0;z-index:1}
.tc-in.is-pick::after{content:"";position:absolute;right:9px;top:50%;width:6px;height:6px;
  margin-top:-5.5px;border-right:1.3px solid currentColor;border-bottom:1.3px solid currentColor;
  transform:rotate(45deg);opacity:.5;z-index:2;pointer-events:none}
.tc-in.is-focus{outline:1.5px solid var(--tc-accent);outline-offset:1px;border-color:var(--tc-accent)}
/* Поле, значение которого сервер не принял: рамка — цвет опасности, причина — подсказкой под ним. */
.tc-in.is-error{border-color:var(--tc-danger)}
.tc-in:disabled{opacity:.45;cursor:default}
.tc-in[type=date],.tc-in[type=time]{-webkit-appearance:none;appearance:none}
/* Поле даты и времени само знает свою ширину (Р-65): это значение со значком
   календаря или часов — не уже и не шире; ни контекст, ни класс размера её не
   задают. Поле формы вокруг него — по нему же (ниже, у .tc-field). */
.tc-in[type=date],.tc-in[type=time],.tc-in[type=datetime-local]{min-width:max-content;width:max-content}
.tc-say__short{display:none}
/* Выбор с многоточием, поле тегов и строка поиска сжимаются сами: у выбора обрезка
   объявлена многоточием, теги переносятся, значение поиска прокручивается (Р-65). */
.tc-in.is-pick,.tc-in.tc-in--cols,.tc-search{min-width:0}
/* поле формы с датой или временем — по ширине своего значения, а не по классу
   размера: класс задаёт ширину полю, которое своей не знает (решение владельца 16.10) */
.tc-field:has(> .tc-in[type=date]),.tc-field:has(> .tc-in[type=time]),.tc-field:has(> .tc-in[type=datetime-local]){width:fit-content;flex:0 0 auto}
.tc-in.is-area{height:auto;min-height:76px;align-items:flex-start;padding:7px 9px;line-height:1.5;
  white-space:pre-wrap;overflow:visible;text-overflow:clip}
.tc-in.is-mono{font-family:var(--tc-font-mono);font-size:11.5px}
.tc-check{display:flex;align-items:center;gap:7px;font-size:12.5px}
.tc-check:has(> .tc-check__box:disabled){opacity:.45;cursor:default}
/* Подпись поля — label без класса; отметка-флажок (label.tc-check) подписью не считается. */
/* Высота строки: 28 поле, 26 панель, 22 таблица. Всё в строке берёт её. */
.tc-field > .tc-check:only-child,.tc-field > label + .tc-check:last-child,*:has(> .tc-field > label:not(.tc-check)) > .tc-field:not(.is-own-line) > .tc-check:first-child:has(+ .tc-field__hint),.tc-form > .tc-check,.tc-fset > .tc-check{min-height:28px}
/* Форма равняется сверху, по строке подписи. Пустая строка подписи —
   только если подпись есть у соседа; одинокой кнопке она не нужна. */
*:has(> .tc-field > label:not(.tc-check)) > .tc-field:has(> .tc-check:only-child)::before,
*:has(> .tc-field > label:not(.tc-check)) > .tc-field:has(> .tc-check:first-child + .tc-field__hint)::before,
*:has(> .tc-field > label:not(.tc-check)) > .tc-field:has(> .tc-btn:only-child)::before,
*:has(> .tc-field > label:not(.tc-check)) > .tc-field:has(> .tc-seg:only-child)::before{content:"";height:16px;flex:none}
.tc-field.is-own-line::before{display:none}
.tc-form .tc-btn,.tc-fset .tc-btn,.tc-field .tc-btn{height:28px}
.tc-field > .tc-seg,.tc-form > .tc-seg,.tc-fset > .tc-seg{height:28px}
/* Переключатель в поле — по своим вариантам, не во всю ширину поля. */
.tc-field > .tc-seg{align-self:flex-start}
/* Переключатель в карточке — своей ширины и на телефоне, где карточка ставит части столбцом. */
.tc-card > .tc-seg{align-self:flex-start}
:where(div,span,label,p):has(> .tc-in) > .tc-btn,
:where(div,span,label,p):has(> .tc-in) > :where(.tc-drop) > .tc-btn,
:where(div,span,label,p):has(> .tc-in) > .tc-seg,
:where(div,span,label,p):has(> .tc-field) > .tc-btn,
:where(div,span,label,p):has(> .tc-field) > .tc-seg{height:28px}
:where(div,span,label,p):has(> .tc-field) > .tc-check,
:where(div,span,label,p):has(> .tc-in:where(:not(.tc-in--chip))) > .tc-check{min-height:28px}
/* Панель инструментов — 26 px всему, включая поле фильтра в ней. */
.tc-bar .tc-btn,.tc-docbar .tc-btn,.tc-head .tc-acts .tc-btn,.tc-formfoot .tc-btn,
.tc-queue__head .tc-btn:not(.is-sm),.tc-sheet__head .tc-btn{height:26px}
.tc-bar .tc-in,.tc-docbar .tc-in,.tc-head .tc-acts .tc-in,.tc-sheet__head .tc-in{height:26px}
.tc-bar .tc-seg,.tc-docbar .tc-seg,.tc-head .tc-acts .tc-seg{height:26px}
.tc-bar .tc-check,.tc-docbar .tc-check{min-height:26px;white-space:nowrap}
/* Строка таблицы — 22 px: полей в ней нет, и кнопка не должна её распирать. */
.tc-table td .tc-btn{height:22px}
.tc-check .tc-tickrow__tick{width:12px;height:12px;border-radius:2px;background:var(--tc-ink);flex:none}
.tc-check .tc-tickrow__tick.is-off{background:transparent;border:.5px solid var(--tc-edge)}
/* Отметка с настоящим флажком: флажок невидим, квадрат рисует его состояние — и без сценариев. */
label.tc-check{position:relative;cursor:pointer}
.tc-check__box,.tc-seg__box{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.tc-check__box:not(:checked) ~ .tc-tickrow__tick{background:transparent;border:.5px solid var(--tc-edge)}
.tc-check__box:checked ~ .tc-tickrow__tick.tc-tickrow__tick{background:var(--tc-ink);border:0}
.tc-check__box:focus-visible ~ .tc-tickrow__tick{outline:1.5px solid var(--tc-accent);outline-offset:1px}
/* Один из нескольких (radio) — кружок, выбранный — с точкой: квадрат обещал бы, что можно
   отметить и соседний (решение владельца 16.10). Форму знает сам флажок, не место. */
.tc-check__box[type=radio] ~ .tc-tickrow__tick.tc-tickrow__tick{border-radius:50%}
.tc-check__box[type=radio]:checked ~ .tc-tickrow__tick.tc-tickrow__tick{background:radial-gradient(circle,var(--tc-ink) 0 2.5px,transparent 3px);border:1px solid var(--tc-ink)}
/* поля формы: ширина по содержимому, не 100% */
.tc-form{display:flex;flex-wrap:wrap;gap:13px 16px;padding:14px var(--tc-page-gutter);align-items:flex-start}
.tc-form.is-tight{padding-top:4px}
.tc-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.tc-field > label,.tc-field__label{font-size:11px;letter-spacing:.04em;color:var(--tc-muted);text-transform:none}
.tc-field .tc-field__hint,.tc-field__hint{font-size:11px;color:var(--tc-dusty);line-height:1.45}
.tc-field--xs{width:96px}
.tc-field--sm{width:140px}
.tc-field--md{width:210px}
.tc-field--lg{width:300px}
.tc-field--xl{width:420px}
.tc-field--full{flex:1 1 100%}
.tc-field--full > .tc-in{max-width:760px}
.tc-fset{flex:1 1 100%;border-top:.5px solid var(--tc-hair);padding-top:12px;margin-top:2px;
  display:flex;flex-wrap:wrap;gap:13px 16px;align-items:flex-start}
/* min-width:0: сетка auto-fill иначе держит набор шириной в max-width и выдавливает колонку. */
/* Группа-форма (form.tc-fset) не сжимается ниже своего содержимого: общий сброс ставит элементам формы min-height:0. */
.tc-fset{min-width:0;min-height:auto}
.tc-fset > .tc-rubric{flex:1 1 100%;margin-bottom:-2px}
/* «Remove» у повторяющегося поля прижат к нижнему краю строки — к полю. */
.tc-fset > .tc-btn{align-self:flex-end}
.tc-formfoot{display:flex;gap:10px;align-items:center;padding:12px var(--tc-page-gutter) 16px;border-top:.5px solid var(--tc-hair);margin-top:4px}
.tc-danger{display:flex;gap:12px;align-items:center;padding:11px var(--tc-page-gutter);border-top:.5px solid var(--tc-hair);
  margin-top:auto;font-size:12px;color:var(--tc-dusty);flex-wrap:wrap}
/* списки */
.tc-list{display:flex;flex-direction:column;container:tcbox / inline-size}
.tc-row{display:grid;align-items:center;gap:12px;padding-left:var(--tc-page-gutter);padding-right:var(--tc-page-gutter);
  min-height:38px;border-bottom:.5px solid var(--tc-hair)}
.tc-row.is-on{background:var(--tc-card)}
/* Плотные строки (Compact rows, решение 28.09.2026): 30 px вместо 38; на телефоне плотность молчит. */
.tc-list.is-compact .tc-row{min-height:30px}
.tc-row .tc-mark{width:3px;height:22px;border-radius:1px}
.tc-row .tc-row__title{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Значок и имя файла — одна строка: .tc-root svg{display:block} иначе ставит значок над именем. */
.tc-row__name{display:flex;align-items:center;gap:7px;min-width:0}
.tc-row__name svg{width:15px;height:15px;flex:none;stroke:var(--tc-muted);stroke-width:1.3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tc-row__file{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-row__title.is-strong{font-weight:600}
/* Название строки — ссылка на запись, когда у строки своя галка (задача 95): цвет и вид — названия. */
a.tc-row__title{color:inherit;text-decoration:none}
a.tc-row__title:hover{text-decoration:underline}
.tc-row .tc-row__excerpt{font-size:12px;color:var(--tc-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-row .tc-row__cell{font-size:11.5px;color:var(--tc-dusty);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-row .tc-mono{color:var(--tc-muted)}
/* Зачёркнутое — своей чертой по середине строчных: черта шрифта стоит на пиксель выше (владелец, 25.10). */
.tc-row.is-done .tc-row__title{color:var(--tc-dusty);justify-self:start;max-width:100%;background:linear-gradient(currentColor,currentColor) no-repeat 0 50%/100% 1px}
.tc-row.is-overdue .tc-mono{color:var(--tc-danger)}
.tc-row--avatarcols{grid-template-columns:3px 28px minmax(130px,1.4fr) 142px minmax(150px,1.1fr) minmax(110px,.9fr) 140px}
/* Строка своих столбцов (Columns): набор и порядок — человека, ширина — рода столбца; столбцы ровны, потому что
   у всех строк списка один набор в одном порядке. */
.tc-row.tc-row--cols{display:flex}
.tc-row--cols > *{flex:none}
.tc-row--cols > .tc-col--name{flex:1.4 1 130px;min-width:0}
.tc-row--cols > .tc-col--phone{width:142px}
.tc-row--cols > .tc-col--email{flex:1.1 1 150px;min-width:0}
.tc-row--cols > .tc-col--org{flex:.9 1 110px;min-width:0}
.tc-row--cols > .tc-col--birthday{width:84px}
.tc-row--cols > .tc-col--tags{flex:.8 1 100px;min-width:0}
/* Столбец тегов показывает первый тег и считает остальные; все — в подсказке ячейки (Р-53). */
.tc-row__tags > .tc-row__more{margin-left:5px;color:var(--tc-dusty)}
.tc-row--cols > .tc-col--changed{width:96px}
.tc-row--cols > .tc-col--source{width:140px}
.tc-row--cols > .tc-col--due{width:96px}
.tc-row--cols > :is(.tc-col--complete,.tc-col--priority){width:48px}
.tc-row--cols > .tc-col--status{width:112px}
.tc-row--cols > .tc-col--badges{width:168px}
/* Плашки события по важности: стоят те, что умещаются целыми, — следующая уходит на вторую строку ячейки и не видна, а не обрезается; подсказка ячейки называет все. */
.tc-row--timecols > .tc-row__caption,.tc-row--cols > .tc-col--badges{white-space:normal;max-height:18px}
.tc-row--cols > .tc-col--excerpt{flex:1.6 1 160px;min-width:0}
.tc-row--cols > .tc-col--date{width:62px}
.tc-row--cols > .tc-col--detail{flex:1 1 120px;min-width:0}
.tc-row--cols > .tc-col--kind{width:56px}
/* Просрочен срок, а не всё дело: остальные числа строки своего цвета. */
.tc-row--cols.is-overdue > .tc-row__cell{color:var(--tc-dusty)}
/* Значение поля, которое куда-то ведёт (почта, телефон, связанная запись): вид значения, подчёркивание — при наведении. */
.tc-fields__link{color:inherit;text-decoration:none}
.tc-fields__link:hover{text-decoration:underline}
/* Упоминание карточки, которой в отмеченных книгах нет: имя, не ссылка. */
.tc-mention.is-lost{color:var(--tc-dusty);text-decoration:underline dotted;text-underline-offset:2px}
.tc-row--timecols{grid-template-columns:3px 62px minmax(168px,2fr) minmax(110px,1fr) 168px 140px}
.tc-row--tickmarkcols{grid-template-columns:14px 3px minmax(178px,2fr) 84px 44px 140px}
.tc-row--excerpt{grid-template-columns:3px minmax(118px,1.2fr) minmax(170px,2fr) 80px 140px}
/* Список одной коллекции: источника у строки нет — нет и его столбца. */
.tc-row--avatarcols.tc-row--single{grid-template-columns:3px 28px minmax(130px,1.4fr) 142px minmax(150px,1.1fr) minmax(110px,.9fr)}
.tc-row--timecols.tc-row--single{grid-template-columns:3px 62px minmax(168px,2fr) minmax(110px,1fr) 168px}
.tc-row--tickmarkcols.tc-row--single{grid-template-columns:14px 3px minmax(178px,2fr) 84px 44px}
.tc-row--excerpt.tc-row--single{grid-template-columns:3px minmax(118px,1.2fr) minmax(170px,2fr) 80px}
.tc-row--find{grid-template-columns:3px 76px minmax(208px,2.4fr) minmax(120px,1fr) 74px 140px}
.tc-row--tickcols{grid-template-columns:16px minmax(208px,2.4fr) 90px 130px 60px 140px}
.tc-row--phone{grid-template-columns:3px minmax(0,1fr) auto;align-items:center}
.tc-list__group{display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding:15px var(--tc-page-gutter) 5px;border-bottom:.5px solid var(--tc-rule);background:var(--tc-bg)}
.tc-list__group .tc-num{margin-left:0}
.tc-tick{width:13px;height:13px;border:1px solid var(--tc-edge);border-radius:2px}
.tc-tick.is-done{background:var(--tc-accent);border-color:var(--tc-accent)}
.tc-avatar{width:28px;height:28px;border-radius:3px;background:#D9D2BE;color:#4E4738;font-size:10.5px;
  display:flex;align-items:center;justify-content:center;font-weight:600;flex:none}
.tc-avatar.is-photo{background:#8C7B6A}
/* Картинка на месте фотографии: заполняет место, обрезаясь по нему; пока не пришла — видно место. */
.tc-avatar__img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.tc-avatar:has(> .tc-avatar__img),.tc-avatar--photo:has(> .tc-avatar__img){overflow:hidden;padding:0}
[data-tc-theme="dark"] .tc-avatar{background:#3A463D;color:#C9BFA6}
/* метки, значки, статусы */
.tc-tag{border:.5px solid var(--tc-hair);border-radius:2px;padding:0 5px;font-size:10.5px;color:var(--tc-muted);background:var(--tc-surface);white-space:nowrap}
.tc-tag:has(> .tc-mark, > svg){display:inline-flex;align-items:center;gap:5px}
.tc-tag.is-on{border-color:var(--tc-accent);color:var(--tc-accent)}
.tc-badge{display:inline-flex;align-items:center;gap:4px;height:16px;line-height:1;vertical-align:1px;
  border:.5px solid var(--tc-rule);border-radius:2px;padding:0 6px;font-size:10px;color:var(--tc-muted);white-space:nowrap;
  letter-spacing:.03em;background:transparent}
.tc-badge.is-linked{border-color:var(--tc-accent);color:var(--tc-accent)}
.tc-badge.is-alert{border-color:var(--tc-danger);color:var(--tc-danger)}
.tc-badge.is-progress{border-color:var(--tc-progress);color:var(--tc-progress)}
.tc-runbar{display:flex;align-items:center;gap:8px;padding:7px var(--tc-page-gutter);background:var(--tc-card);flex-wrap:wrap;
  border-bottom:.5px solid var(--tc-rule);font-size:11.5px;color:var(--tc-muted)}
/* Индикатор опроса 64 px, не шкала: 120 на планшете выталкивает хвост. */
.tc-runbar .tc-meter{width:64px;height:3px;border-radius:2px;background:var(--tc-edge);overflow:hidden;flex:none}
.tc-runbar .tc-meter__bar{display:block;height:100%;background:var(--tc-accent)}
/* Кончившийся опрос: точка итога вместо полоски хода (владелец 17.11) — зелёная, если ответили все, красная, если кто-то нет, серая, если опрос остановили. Между точкой и текстом 5px, как у точек состояния; по середине цифр и прописных (владелец 17.11): подъём на 0.5px ставит её низ на целый пиксель от линии букв, так что округление везде одинаково — ровно ряд над точкой и ряд под ней (владелец 18.11). */
.tc-runbar > .tc-dot--accent.tc-dot--accent,.tc-runbar > .tc-dot--danger.tc-dot--danger,.tc-runbar > .tc-dot--dusty.tc-dot--dusty{flex:none;margin-right:-3px;position:relative;top:-0.5px}
/* Отступ у баннера с обеих сторон. */
/* Полоса сообщений — зона живого слоя без своего вида: отступы у сообщений (Notices, задача Carrel 226). */
.tc-notices{display:contents}
.tc-notices[hidden]{display:none}
.tc-msg{display:block;padding:9px 12px;margin:12px var(--tc-page-gutter);font-size:12.5px;line-height:1.5;
  background:var(--tc-card);border-left:2px solid var(--tc-edge);border-radius:0 3px 3px 0}
.tc-msg.is-row{display:flex;gap:9px;align-items:flex-start}
.tc-msg.is-row > svg{flex:none;margin-top:1px}
.tc-msg.is-alert{border-left-color:var(--tc-danger);color:var(--tc-danger);background:transparent;border:.5px solid var(--tc-danger);border-left-width:2px}
.tc-msg.is-accent{border-left-color:var(--tc-accent)}
/* кнопка после слов сообщения — с зазором */
.tc-msg > .tc-btn,.tc-msg__aside > .tc-btn{margin-left:6px}
/* кнопка-ссылка в тревоге — цвета кнопки, а не тревоги */
.tc-msg.is-alert > a.tc-btn{color:var(--tc-ink)}
.tc-empty{padding:26px var(--tc-page-gutter);color:var(--tc-muted);font-size:13px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.tc-prose{max-width:72ch;font-size:13.5px;line-height:1.65;white-space:pre-wrap}
.tc-diag{font-family:var(--tc-font-mono);font-size:11px;line-height:1.65;background:var(--tc-card);border-radius:3px;
  padding:9px 11px;color:var(--tc-muted);white-space:pre-wrap;overflow-x:auto}
/* панель подробностей */
.tc-root .tc-fields{display:grid;grid-template-columns:104px minmax(0,1fr);gap:7px var(--tc-fields-gap);padding:12px var(--tc-page-gutter);font-size:13px}
.tc-fields dt{color:var(--tc-dusty);font-size:11.5px;padding-top:1px}
.tc-fields dd{overflow-wrap:anywhere}
.tc-sec{border-top:.5px solid var(--tc-hair);padding:12px var(--tc-page-gutter)}
.tc-sec > .tc-rubric{margin-bottom:8px;display:flex;justify-content:space-between;align-items:baseline}
/* Список в секции: поле у секции, строка своего не берёт — иначе метка на 20 px правее рубрики (хронология карточки, 08.11). */
.tc-sec > .tc-list > .tc-row{padding-left:0;padding-right:0}
.tc-avatar--photo{width:104px;height:104px;border-radius:4px;background:#8C7B6A;flex:none}
.tc-avatar--photo.is-ph{background:#D9D2BE;display:flex;align-items:center;justify-content:center;color:#4E4738;font-size:26px;font-family:var(--tc-font-serif)}
/* таблицы */
.tc-table{width:100%;border-collapse:collapse}
.tc-table th{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--tc-dusty);text-align:left;
  font-weight:600;padding:9px 12px;border-bottom:.5px solid var(--tc-rule);white-space:nowrap}
.tc-table td{padding:7px 12px;border-bottom:.5px solid var(--tc-hair);font-size:12.5px;vertical-align:middle}
/* Машинная строка без пробелов: anywhere, иначе таблица не ужимается. */
.tc-table td.tc-mono,.tc-table td .tc-mono{overflow-wrap:anywhere}
.tc-table td.tc-mono{font-family:var(--tc-font-mono);font-size:11.5px;color:var(--tc-muted)}
.tc-table tr td:first-child,.tc-table tr th:first-child{padding-left:var(--tc-page-gutter)}
.tc-table tr td:last-child,.tc-table tr th:last-child{padding-right:var(--tc-page-gutter)}
.tc-table .tc-acts{justify-content:flex-start;flex-wrap:nowrap;white-space:nowrap}
/* Ячейка кнопок строки остаётся ячейкой таблицы (Р-65): с display:flex она выпадала
   из таблицы, и линия строки на ней обрывалась. Кнопки стоят в строку с отступом. */
.tc-table td.tc-acts{display:table-cell;vertical-align:middle}
.tc-table td.tc-acts > * + *{margin-left:6px}
.tc-table td.tc-acts > *{vertical-align:middle}
/* «⋯» строки — голая кнопка или раскрытие с меню (задача 117): на широкой не видно ни того, ни другого. */
.tc-acts__more,.tc-acts > .tc-drop:has(> .tc-acts__more){display:none}
@container tcbox (max-width:640px){
  .tc-table .tc-acts > .is-2nd{display:none}
  .tc-table .tc-acts:has(> .is-2nd) > .tc-acts__more,.tc-table .tc-acts:has(> .is-2nd) > .tc-drop > .tc-acts__more{display:inline-flex}
  .tc-table .tc-acts:has(> .is-2nd) > .tc-drop:has(> .tc-acts__more){display:inline-flex}
}
/* Таблица в карточке: отступы у карточки, последняя строка без линии. */
.tc-card > .tc-table{margin-top:9px}
.tc-card > .tc-table tr td:first-child,.tc-card > .tc-table tr th:first-child{padding-left:0}
/* Таблица в диалоге и прямо в теле листа: поле у них, первая и последняя колонка своего не берут —
   иначе отступ двойной (шаг импорта: имя на 20 px правее шагов; свободная сборка 10.11: строки листа
   правее его заголовка). */
.tc-dialog .tc-table tr td:first-child,.tc-dialog .tc-table tr th:first-child,
.tc-sheet__body > .tc-table tr td:first-child,.tc-sheet__body > .tc-table tr th:first-child{padding-left:0}
.tc-dialog .tc-table tr td:last-child,.tc-dialog .tc-table tr th:last-child,
.tc-sheet__body > .tc-table tr td:last-child,.tc-sheet__body > .tc-table tr th:last-child{padding-right:0}
.tc-card > .tc-table tr td:last-child,.tc-card > .tc-table tr th:last-child{padding-right:0}
.tc-card > .tc-table tbody tr:last-child td,.tc-card > .tc-table tbody td[rowspan]{border-bottom:0}
.tc-card > .tc-table tbody td{padding-top:5px;padding-bottom:5px}
/* Выбранная строка в карточке: у её ячеек нет поля, и подсветка начиналась у края галочки (владелец 03.11) — выносим её на 8 px за край. */
.tc-card > .tc-table tr.is-sel{box-shadow:-8px 0 0 var(--tc-card),8px 0 0 var(--tc-card)}
/* Не опрашивается — приглушено имя, числа остаются. */
.tc-table tr.is-off .tc-table__filename:last-child{color:var(--tc-dusty)}
/* файловый менеджер */
.tc-bar--sel{background:var(--tc-card);border-bottom:.5px solid var(--tc-rule)}
.tc-bar--sel .tc-btn{background:var(--tc-surface)}
.tc-bar--sel .tc-btn.is-off{color:var(--tc-dusty);border-color:var(--tc-hair)}
/* Бумага панели не перебивает заливку уничтожения. */
.tc-bar--sel .tc-btn.is-danger-solid{background:var(--tc-danger);border-color:var(--tc-danger);color:var(--tc-surface)}
.tc-table__file{display:flex;align-items:center;gap:8px;min-width:0}
.tc-table__file svg{width:15px;height:15px;flex:none;stroke:var(--tc-muted);stroke-width:1.3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tc-table__file .tc-table__filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-table tr.is-sel{background:var(--tc-card)}
.tc-table tr.is-folder .tc-table__file .tc-table__filename{font-weight:600}
.tc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:14px;padding:14px var(--tc-page-gutter)}
.tc-tile{border:.5px solid var(--tc-hair);border-radius:4px;background:var(--tc-surface);padding:7px;display:flex;flex-direction:column;gap:6px}
.tc-tile.is-sel{border-color:var(--tc-accent);background:var(--tc-card)}
.tc-tile:has(> .tc-tile__box){position:relative}
.tc-tile__box{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.tc-tile:has(> .tc-tile__box:checked){border-color:var(--tc-accent);background:var(--tc-card)}
.tc-tile.is-sel:has(> .tc-tile__box:not(:checked)){border-color:var(--tc-hair);background:var(--tc-surface)}
.tc-tile:has(> .tc-tile__box:focus-visible){outline:1.5px solid var(--tc-accent);outline-offset:1px}
.tc-tile__box ~ a.tc-tile__name{position:relative;z-index:1}
a.tc-tile__name:hover,a.tc-table__filename:hover{text-decoration:underline}
.tc-thumb{aspect-ratio:4/3;border-radius:3px;background:#D9D2BE;display:flex;align-items:center;justify-content:center}
[data-tc-theme="dark"] .tc-thumb{background:#33403A}
.tc-thumb svg{width:22px;height:22px;stroke:var(--tc-muted);stroke-width:1.2;fill:none}
.tc-thumb:has(> .tc-thumb__img){overflow:hidden;position:relative}
:root:not([data-tc-noscript]) .tc-thumb:has(> .tc-thumb__img:not([hidden])) > svg{display:none}
.tc-thumb__img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.tc-tile__name{font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-tile__meta{font-size:10.5px;color:var(--tc-dusty);font-family:var(--tc-font-mono)}
.tc-queue{width:330px;margin:14px var(--tc-page-gutter) 16px auto;border:.5px solid var(--tc-edge);border-radius:4px;background:var(--tc-surface)}
.tc-main > .tc-queue{position:absolute;right:var(--tc-page-gutter);bottom:16px;margin:0;z-index:4}
/* На телефоне плавающая очередь встаёт под содержимое во всю ширину: поверх она закрывала бы последнюю строку списка (Р-65). */
@container tcbox (max-width:460px){
  .tc-main > .tc-queue{position:static;width:auto;margin:14px var(--tc-page-gutter) 16px}
}
.tc-queue.is-min{width:auto}
.tc-queue.is-min .tc-queue__head{border-bottom:none}
.tc-queue__head{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:.5px solid var(--tc-hair);font-size:12px}
.tc-queue ul{padding:6px 10px 8px;display:flex;flex-direction:column;gap:7px}
.tc-queue li{display:flex;flex-direction:column;gap:3px;font-size:11.5px}
.tc-queue__row{display:flex;justify-content:space-between;gap:8px}
.tc-queue__row span:last-child{color:var(--tc-dusty);font-family:var(--tc-font-mono);font-size:10.5px;white-space:nowrap}
.tc-crumbs{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--tc-dusty);flex-wrap:wrap}
.tc-crumbs .tc-crumbs__link{color:var(--tc-accent)}
.tc-crumbs b{font-weight:600;color:var(--tc-ink)}
.tc-tree{display:flex;flex-direction:column;gap:1px;font-size:12.5px}
.tc-tree__row{display:flex;align-items:center;gap:7px;height:26px;padding:0 8px;border-radius:3px}
.tc-tree__row.is-on{background:var(--tc-card);font-weight:600}
.tc-tree__box{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
label.tc-tree__row{cursor:pointer}
.tc-tree__row:has(> .tc-tree__box:checked){background:var(--tc-card);font-weight:600}
.tc-tree__row.is-on:has(> .tc-tree__box:not(:checked)){background:none;font-weight:400}
.tc-tree__row:has(> .tc-tree__box:focus-visible){outline:1.5px solid var(--tc-accent);outline-offset:1px}
.tc-tree svg{width:14px;height:14px;stroke:var(--tc-muted);stroke-width:1.3;fill:none}
/* наложение: быстрая заметка поверх любого экрана */
.tc-overlay{position:relative;container:tcbox / inline-size;min-width:0}
/* Затемнение — слой над всей страницей, открытые меню (6) и поднятые кнопки ящика (1) тоже под ним. */
/* Лист открывается и по адресу (#id) — без сценариев: ссылка на него, крестик — ссылка «#». */
.tc-scrim[hidden]{display:none}
/* Место листа над всей оболочкой (Shell.Sheet, задача Carrel 226): затемнение ложится на полосу, рейл и страницу. */
.tc-shell:has(> .tc-scrim){position:relative}
.tc-scrim[hidden]:target{display:flex}
.tc-scrim{position:absolute;inset:0;z-index:7;background:rgba(23,33,28,.22);display:flex;align-items:flex-start;justify-content:center;padding-top:44px}
[data-tc-theme="dark"] .tc-scrim{background:rgba(0,0,0,.42)}
.tc-sheet{--tc-page-gutter:var(--tc-page-gutter-narrow);width:560px;max-width:92%;background:var(--tc-surface);border:.5px solid var(--tc-edge);border-radius:5px;display:flex;flex-direction:column;position:relative;container:tcbox / inline-size}
.tc-sheet__head{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:.5px solid var(--tc-hair);position:relative}
.tc-sheet__body{padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.tc-sheet__foot{display:flex;align-items:center;gap:8px;padding:11px 14px;border-top:.5px solid var(--tc-hair)}
/* Кнопка с клавишей не сжимается: в тесной строке переносятся слова, а не «Cancel · Esc». */
.tc-sheet__foot > .tc-line, .tc-sheet__foot > .tc-btn, .tc-sheet__foot > .tc-kbd{flex:none}
.tc-kbd{font-family:var(--tc-font-mono);font-size:10.5px;border:.5px solid var(--tc-edge);border-radius:3px;
  padding:1px 5px;color:var(--tc-muted);background:var(--tc-bg);white-space:nowrap}
.tc-menu{width:236px;background:var(--tc-surface);border:.5px solid var(--tc-edge);border-radius:4px;padding:4px}
/* Меню на экране всплывает и места в раскладке не занимает.
   Витрины раздела 6 — исключение: там меню и есть предмет. */
.tc-menu.is-pop{position:absolute;top:100%;left:0;margin-top:4px;z-index:3}
.tc-menu.is-pop.is-right{left:auto;right:0}
/* Открытое меню стоит там, где есть место (свободная сборка 10.11): то, что ушло бы за край страницы,
   tc.js поворачивает к другому краю кнопки — data-tc-side. */
.tc-menu.is-pop[data-tc-side="end"]{left:auto;right:0}
.tc-menu.is-pop[data-tc-side="start"]{left:0;right:auto}
/* Кнопка и меню — .tc-drop, везде один: меню встаёт краем к краю кнопки, на 4 px ниже. */
.tc-drop{position:relative;display:inline-flex}
/* Отметка полосы формой (Compact rows): форма не рисуется; Apply — только пока страница без сценария (data-tc-noscript снимает tc.js). */
.tc-checkform{display:inline-flex;align-items:center;gap:6px}
.tc-checkform__apply{display:none}
[data-tc-noscript] .tc-checkform__apply{display:contents}
/* Фильтр полосы формой (действие и день журнала): форма не рисуется — её поля стоят в полосе; Show — только пока страница без сценария. */
.tc-barform{display:contents}
.tc-barform__show{display:none}
[data-tc-noscript] .tc-barform__show{display:contents}
/* Полоса с такой формой переносит, что не влезло, на любой ширине: ряд, пока влезает. */
.tc-bar:has(> .tc-barform){flex-wrap:wrap}
/* «Save as» показанного текста (задача 94): файл собирает сценарий страницы — без него кнопки нет. */
[data-tc-noscript] [data-tc-save]{display:none}
[data-tc-noscript] button[data-tc-copy],[data-tc-noscript] button[data-tc-copy-from]{display:none}
/* Файл без сценария (задача 109): кнопка и пункт — подпись поля файла, браузер открывает выбор сам. Со сценарием выбор сразу отправляет форму; без него поле видно, и Upload отправляет. */
.tc-file{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;pointer-events:none}
/* Слова области броска, выбирающие файл (задача 119): подпись своего поля файла, как кнопка и пункт. */
.tc-empty__pick{cursor:pointer}
/* Список выбранных файлов в области броска: имена — цветом текста, размер приглушён; пока пуст, места не занимает. */
.tc-empty > .tc-line{color:var(--tc-ink)}
.tc-empty > .tc-line:empty{display:none}
:root:not([data-tc-noscript]) .tc-nojs{display:none}
/* Обратное: то, что работает только со сценарием (бросок, вставка, живая очередь), пока страница без сценария не показывается —
   вместо него стоит сказанное словами (tc-nojs): недоступное названо на экране, а не замолчано (задача 90). */
[data-tc-noscript] .tc-js{display:none}
/* Полоса опроса с отказом и своей кнопкой (поиск: «1 failed» и Search again) на телефоне переносится: строкам — зазор, чтобы зоны нажатия не налезали. */
@container tcbox (max-width:460px){
  .tc-runbar:has(> .tc-drop):has(> .tc-push .tc-btn){row-gap:22px}
}
/* Вложение с Remove в колонке правки: строка — имя, размер, где лежит; Remove прижат вправо; строкам — зазор, чтобы кнопки не сливались. */
.tc-docmeta__sec > .tc-line__text:has(> .tc-btn){display:flex;align-items:center;flex-wrap:wrap;column-gap:5px;row-gap:4px}
.tc-docmeta__sec > .tc-line__text > .tc-btn{margin-left:auto}
.tc-docmeta__sec > .tc-line__text:has(> .tc-btn) + .tc-line__text{margin-top:6px}
/* Полоса правки без сценария (задача 104, решения 02.10): правка не перезагружается — остаются Save (submit) и Cancel (ссылка); разметка, автосохранение, ширина, фокус и «⋯» живут сценарием. */
[data-tc-noscript] .tc-docbar--edit > :not(button[type="submit"]):not(a.tc-btn){display:none}
/* Файл правки уходит по Save (решение 02.10): выбранный — строкой списка; «Nothing attached» прячется, пока она стоит; полоса Save ждёт отправки с файлами. */
.tc-runbar[hidden],[data-tc-empty][hidden],.tc-fset > [hidden],.tc-field[hidden]{display:none}
/* Строка имени файла импорта (задача 133): без сценария имя показывает само поле файла рядом с Browse — строка не нужна. */
[data-tc-noscript] [data-tc-filename]{display:none}
[data-tc-noscript] .tc-file{position:static;opacity:1;width:auto;height:auto;max-width:200px;font-size:11px;pointer-events:auto}
/* Двойник отметок в меню «⋯» (задача 82): та же форма, отметки — пункты-флажки столбиком; Apply без сценария — под ними. */
.tc-menu .tc-checkform{display:flex;flex-direction:column;align-items:stretch;gap:0}
[data-tc-noscript] .tc-menu .tc-checkform__apply{display:block;padding:4px 10px 6px}
/* Выбор из меню с поиском (пояс): без сценария искать нечем — строки поиска нет, пункты-радио уходят с формой. */
[data-tc-noscript] .tc-menu > .tc-in[type=search]{display:none}
/* Закрытая выпадашка — details: меню открывается и без сценария (U-8); кнопка — её summary. */
details.tc-drop,details.tc-drop__anchor{display:inline-block;position:relative}
/* Выпадашка в шапке листа сжимается, как поле на её месте: выбор подключения не выталкивает строку пути. */
.tc-sheet__head > .tc-drop{display:flex;min-width:0;flex:0 1 auto}
.tc-sheet__head > .tc-drop > .tc-in{flex:1 1 auto}
/* «куда» листа, прижатое вправо, остаётся справа и когда шапка растягивает его */
.tc-sheet__head > .tc-drop.tc-push{justify-content:flex-end}
.tc-drop > summary,.tc-drop__anchor > summary{list-style:none;cursor:pointer}
.tc-drop > summary::-webkit-details-marker,.tc-drop__anchor > summary::-webkit-details-marker{display:none}
.tc-field:has(> .tc-menu.is-pop){position:relative}
/* Раскрытая кнопка — точка отсчёта для своего меню. */
.tc-btn:has(> .tc-menu.is-pop){position:relative}
.tc-btn > .tc-menu.is-pop{margin-top:4px;font-weight:400;text-align:left}
.tc-drop > .tc-menu.is-pop{margin-top:4px;font-weight:400;text-align:left}
/* Меню, раскрытое на месте в ряду кнопок, стоит под своей кнопкой; кнопки ряда остаются на одной верхней линии. */
span.tc-drop:has(> .tc-btn + .tc-menu:not(.is-pop):not([hidden])){flex-direction:column;align-items:flex-start;gap:4px}
.tc-line:has(> span.tc-drop > .tc-btn + .tc-menu:not(.is-pop):not([hidden])){align-items:flex-start}
/* Рубрика внутри меню: говорит, откуда взялся набор строк. */
.tc-menu > .tc-rubric{padding:4px 8px 6px}
/* Поиск в длинном списке — поле во всю ширину меню, над строками. */
.tc-menu > .tc-in{display:block;width:100%;margin-bottom:4px}
.tc-menu__item{display:flex;align-items:center;gap:9px;height:28px;padding:0 8px;border-radius:3px;font-size:12.5px}
.tc-menu__item.is-on,.tc-menu__item:has(> .tc-seg__box:checked){background:var(--tc-card)}
/* Пункт-флажок меню-формы (Columns): отмечен — столбец показан; ручка тянет пункт, порядок пунктов — порядок столбцов. */
label.tc-menu__item{position:relative;cursor:pointer}
.tc-menu__item.is-drag{opacity:.5}
.tc-menu__item > .tc-ico--op-35:first-of-type{cursor:grab}
.tc-menu__item:disabled{opacity:.45;cursor:default}
/* Выбор коллекции (задача 103): метка — и в пункте, и в поле; коллекция только для чтения видна со значком ro, не выбирается, причина — в подсказке. */
.tc-menu__item:has(> .tc-seg__box:disabled){cursor:default}
.tc-in.is-pick > .tc-mark{margin-right:7px}
.tc-menu__item > svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.3;fill:none;stroke-linecap:round;opacity:.75}
.tc-menu__item > .tc-kbd{margin-left:auto}
/* Разделитель меню — 1 px: полпикселя на короткой линии пропадает. */
.tc-menu__sep{display:block;height:1px;background:var(--tc-hair);margin:4px 6px;padding:0}
/* Меню с полями кончается кнопками: сохранить — это действие, а не пункт.
   Пункт меню действует сразу; поля ждут кнопки. */
.tc-menu__text{display:flex;flex-direction:column;gap:2px;padding:6px 8px;font-size:12px;line-height:1.45;color:var(--tc-muted)}
.tc-menu__text > b{color:var(--tc-ink);font-weight:600}
.tc-menu__foot{display:flex;flex-wrap:wrap;gap:8px;padding:8px 8px 4px;margin-top:4px;border-top:1px solid var(--tc-hair)}
/* полноэкранная заметка: чтение и правка */
/* Колонка справа — та же панель подробностей, 400 px; при рабочей области уже 880 — 296. */
.tc-doc__layout{display:grid;grid-template-columns:minmax(0,1fr) var(--tc-side);min-height:0}
.tc-doc__layout.is-focus{grid-template-columns:minmax(0,1fr)}
/* Полный экран: поля не зажаты. «Reading width» — названный режим. */
.tc-doc{padding:20px var(--tc-page-gutter) 30px;min-width:0}
/* В документе поле занимает свою ячейку целиком. Без width сброс
   textarea{field-sizing:content} делает заголовок и тело шириною в свой текст,
   и три коробки в одном столбце получают три разные ширины. */
.tc-doc .tc-prose{max-width:none}
.tc-doc .tc-in{max-width:none;width:100%}
/* Форма POST без полей — для кнопок вне формы (атрибут form): её не видно. */
.tc-post{display:none}
.tc-doc__table{margin:14px 0 4px}
/* Части текста заметки (задача 102): цитата — приглушённый текст за чертой; код — как написан, длинная строка прокручивается в блоке; вложенный список — кружками. */
.tc-doc__quote{margin:0;padding:2px 0 2px 14px;border-left:2px solid var(--tc-rule);color:var(--tc-muted);font-size:14.5px;line-height:1.7}
.tc-doc__code{margin:0;font-family:var(--tc-font-mono);font-size:12px;line-height:1.6;background:var(--tc-card);border-radius:3px;padding:10px 12px;overflow-x:auto;white-space:pre;scrollbar-width:thin}
.tc-doc__bullets .tc-doc__bullets.tc-doc__bullets{margin-top:6px;list-style:circle}
/* Текст заметки в панели (задача 125): части текста отделены друг от друга, как абзацы. */
.tc-sec > :is(.tc-doc__heading,.tc-doc__bullets,.tc-doc__quote,.tc-doc__code,.tc-doc__table){margin-top:10px}
/* Абзац после списка дел отделён так же. */
.tc-sec > .tc-doc__list + .tc-prose{margin-top:10px}
.tc-doc__code.is-wrap{white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:visible}
.tc-doc__tablebar{display:none;justify-content:flex-end;margin-bottom:6px}
.tc-doc__scroll{overflow-x:auto;scrollbar-width:thin}
.tc-doc__grid{border-collapse:collapse;width:100%;font-size:13.5px;line-height:1.45}
.tc-doc__grid th{font-weight:600;text-align:left;vertical-align:bottom;padding:5px 12px 6px 0;border-bottom:1px solid var(--tc-rule)}
.tc-doc__grid td{vertical-align:top;padding:6px 12px 6px 0;border-bottom:.5px solid var(--tc-hair)}
.tc-doc__grid :is(th,td):last-child{padding-right:0}
.tc-doc__grid .is-center{text-align:center}
.tc-doc__grid .is-end{text-align:right}
.tc-doc__grid :is(a,.tc-mono){white-space:nowrap}
.tc-doc__table.is-line :is(th,td){white-space:nowrap}
@container tcbox (max-width:640px){
  .tc-doc__tablebar{display:flex}
}
.tc-doc__layout.is-measure .tc-doc > *{max-width:78ch}
.tc-doc__title{font-family:var(--tc-font-serif);font-size:27px;line-height:1.15;font-weight:400}
.tc-docmeta{border-left:.5px solid var(--tc-rule);padding:16px 18px;display:flex;flex-direction:column;gap:15px;background:var(--tc-surface)}
.tc-docmeta .tc-rubric{margin-bottom:6px}
.tc-docbar{display:flex;align-items:center;gap:6px;padding:7px var(--tc-page-gutter);border-bottom:.5px solid var(--tc-hair);background:var(--tc-surface)}
/* Выбор коллекции в панели документа — по ширине своего текста, не шире 210: сначала сжимается он, потом кнопки уходят под «⋯» (владелец, 09.11). */
.tc-docbar > .tc-field{width:auto;max-width:210px}
/* диалоги и одиночные страницы */
/* Страницы до входа: карточка в поле пустой страницы. Не примитив набора. */
.tc-auth{min-height:520px;display:flex;align-items:center;justify-content:center;padding:40px 20px}
/* Две ссылки под Sign in — пара в .tc-auth__stack, не два края карточки. */
.tc-auth__stack{display:flex;flex-direction:column;gap:13px;align-items:flex-start}
.tc-auth__stack > .tc-form,.tc-auth__stack > .tc-auth__links{align-self:stretch}
.tc-auth__links{display:flex;flex-wrap:wrap;gap:13px;font-size:12px}
.tc-auth__links > *{color:var(--tc-accent)}
.tc-dialog{width:100%;max-width:760px;margin:0 auto;padding:22px var(--tc-page-gutter) 26px;container:tcbox / inline-size}
.tc-dialog.is-wide{max-width:1080px}
.tc-dialog.is-narrow{max-width:420px}
.tc-dialog .tc-head{padding-left:0;padding-right:0}
.tc-dialog .tc-form{padding-left:0;padding-right:0}
.tc-dialog .tc-formfoot{padding-left:0;padding-right:0}
/* Вопрос мастера над полосой выбора — с зазором (восстановление, «уже есть»). */
.tc-dialog > .tc-field + .tc-bar{margin-top:14px}
.tc-steps{display:flex;gap:0;align-items:center;font-size:11px;color:var(--tc-dusty);margin-bottom:14px;letter-spacing:.1em;text-transform:uppercase}
.tc-steps__item{padding:0 12px 0 0}
.tc-steps__item.is-on{color:var(--tc-ink);font-weight:600}
.tc-steps__rule{width:22px;height:.5px;background:var(--tc-rule);margin-right:12px;display:block}
/* Счёт разобранного — .tc-stats: один примитив на три мастера. */
.tc-stats{display:flex;gap:18px;flex-wrap:wrap;margin:6px 0 12px;font-size:13px}
.tc-stat.is-error{color:var(--tc-danger)}
.tc-card{border:.5px solid var(--tc-hair);border-radius:4px;background:var(--tc-surface);padding:12px 14px;margin-bottom:10px}
.tc-card > .tc-rubric{margin-bottom:7px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px}
/* Правая часть рубрики: части переносятся целиком, фраза внутри не рвётся и за край карточки не выходит. */
.tc-rubric__aside{display:inline-flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-end;gap:4px 6px;white-space:nowrap;min-width:0}
/* Длинная моноширинная приписка переносится внутри себя: «220 points · same UID, same phone…» на 390 уходила за край карточки (проверка геометрии, 08.11). */
.tc-rubric__aside > .tc-mono{white-space:normal;text-align:right}
/* Слияние: список «куда» сжимается (min-width:0), кнопка не уезжает. */
/* Конфликт: карточка на свойство, не три колонки в ряд. */
.tc-diff{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.tc-diff__item{border:.5px solid var(--tc-hair);border-radius:4px;background:var(--tc-surface);padding:10px 12px}
.tc-diff__item > .tc-rubric{margin-bottom:8px}
.tc-diff__options{display:flex;flex-direction:column;gap:6px}
.tc-diff__options .tc-check{align-items:flex-start;padding:7px 8px;border:.5px solid var(--tc-hair);border-radius:3px}
.tc-diff__options .tc-check:not(:has(> .tc-check__box)):has(.tc-tickrow__tick:not(.is-off)),.tc-diff__options .tc-check:has(> .tc-check__box:checked){border-color:var(--tc-accent);
  background:color-mix(in srgb,var(--tc-accent) 7%,transparent)}
.tc-diff__value{display:flex;flex-direction:column;gap:1px;min-width:0}
.tc-diff__source{font-size:11px;color:var(--tc-dusty)}
.tc-diff__agree{font-size:12.5px;color:var(--tc-muted);margin:8px 0 0}
/* печать и телефон */
.tc-root.tc-root--print{background:#fff;color:#000;padding:26px 30px;font-size:12.5px}
.tc-root.tc-root--print .tc-print__h1{font-family:var(--tc-font-serif);font-size:20px;margin-bottom:2px}
.tc-root.tc-root--print .tc-print__rub{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#555;margin:16px 0 4px}
.tc-root.tc-root--print .tc-print__row{display:grid;grid-template-columns:66px 1fr;gap:12px;padding:5px 0;border-bottom:.5px solid #bbb}
/* Три колонки: имя / размер / дата. Базовое правило выше — 66px 1fr,
   tc-print__row--3col его не перебивает (слабее). Без этого дата уезжает
   на вторую строку в узкий столбец и ломается по дефисам. */
.tc-root.tc-root--print .tc-print__row--3col{grid-template-columns:minmax(0,1fr) 10em 14.5em}
.tc-root.tc-root--print .tc-print__row--3col > :not(:first-child){white-space:nowrap}
/* Поле карточки на бумаге и текст заметки в ширине для чтения (задача Carrel 228). */
.tc-root.tc-root--print .tc-print__row--field{grid-template-columns:minmax(90px,150px) minmax(0,1fr)}
.tc-root.tc-root--print .tc-print__row--field > .tc-print__cell{overflow-wrap:anywhere}
.tc-root.tc-root--print .tc-print__text{max-width:68ch;margin:0 0 8px;line-height:1.5}
.tc-root.tc-root--print .tc-print__h2{font-size:13.5px;font-weight:600;margin:14px 0 6px}
.tc-root.tc-root--print .tc-print__sources + :is(.tc-print__row,.tc-print__text){margin-top:14px}
/* Имя строки на бумаге — обычным начертанием (владелец, 25.10); галка — нарисованный квадрат, у сделанного — с галкой внутри. */
.tc-root.tc-root--print .tc-print__cell > b{font-weight:400}
.tc-root.tc-root--print .tc-print__tick{display:inline-block;position:relative;width:10px;height:10px;margin-right:7px;border:1px solid #000;border-radius:2px;vertical-align:-1px}
.tc-root.tc-root--print .tc-print__tick.is-done::after{content:"";position:absolute;left:50%;top:38%;width:3px;height:6px;border:solid #000;border-width:0 1.5px 1.5px 0;box-sizing:border-box;transform:translate(-50%,-50%) rotate(45deg)}
.tc-root.tc-root--print .tc-print__text.is-done{color:#555}
.tc-root.tc-root--print .tc-print__struck{background:linear-gradient(currentColor,currentColor) no-repeat 0 calc(50% + 1px)/100% 1px}
.tc-root.tc-root--print .tc-print__cell:has(.tc-print__tick) > .tc-dim--print{display:inline-block;margin-left:19px}
.tc-root.tc-root--print .tc-print__row:has(+ .tc-print__foot){border-bottom:0}
/* Строка подписей столбцов на бумаге (владелец, 25.10). */
.tc-root.tc-root--print .tc-print__row--head{margin-top:14px;padding:2px 0 4px;border-bottom:.5px solid #555;color:#555}
.tc-root.tc-root--print .tc-print__row--head > *{font-family:inherit;font-size:9.5px;letter-spacing:.12em;text-transform:uppercase}
.tc-root.tc-root--print .tc-print__row--head + .tc-print__rub{margin-top:8px}
.tc-root.tc-root--print .tc-print__rub + .tc-print__row--head{margin-top:2px}
/* Узкий лист: имя — строкой, остальные столбцы — под ним; подписи остаётся одна. */
@container tcbox (max-width:560px){
.tc-root.tc-root--print .tc-print__row--3col{grid-template-columns:max-content minmax(0,1fr);row-gap:2px}
.tc-root.tc-root--print .tc-print__row--3col > :first-child{grid-column:1/-1}
.tc-root.tc-root--print .tc-print__row--3col > :not(:first-child){overflow:hidden;text-overflow:ellipsis}
.tc-root.tc-root--print .tc-print__row--3col.tc-print__row--head > :not(:first-child){display:none}
}
.tc-row__text{display:flex;flex-direction:column;gap:2px;min-width:0}
.tc-skel{background:var(--tc-hair);border-radius:2px;height:9px;display:block}
/* Колонки уходят по сужению .tc-main, не окна.
   Панель подробностей скрывается. Порог 1190: рейл 264 + панель 400 +
   пол колонки 480 = 1144, и запас; порог прежний — на нём стоят ступени лестницы 1191/1190. */
/* Select all и Clear selection — иконками, пока полосе с действиями письма тесно (s-mailbox-3 до ~1260). */
@container tcbox (max-width:1280px){
  .tc-bar--sel:where(:not([data-tc-fold])) > .tc-bar__right .tc-btn > .tc-btn__label{display:none}
  .tc-bar--sel:where(:not([data-tc-fold])) > .tc-bar__right .tc-btn:has(> .tc-btn__label){padding:0 9px}
}
@container tcbox (max-width:1190px){
  .tc-shell__body.tc-shell__body--side{grid-template-columns:var(--tc-rail) minmax(0,1fr)}
  .tc-shell__body.tc-shell__body--side > .tc-side{display:none}
}
/* Колонка заметки считается от рабочей области: 400 панели + 480 текста. Уже — 296. */
@container tcbox (max-width:880px){
  .tc-doc__layout{grid-template-columns:minmax(0,1fr) 296px}
}
/* Панель правки заметки: порог 1280 — с выбором блокнота по его тексту целиком она занимает около 1270
   (правая группа: черновик + Ctrl+S + ширина + Focus), без второго ранга — около 850; на 1191 в «Focus»
   (`s-notes-4`) выбор блокнота сжимался до метки (08.11). Пороги считаны по «nextcloud · Записи»;
   имя длиннее сначала укорачивается многоточием в пределах 210. */
@container tcbox (max-width:1280px){
  .tc-docbar:where(:not([data-tc-fold])) .is-2nd{display:none}
  .tc-docbar:where(:not([data-tc-fold])):has(.is-2nd) .tc-bar__more,.tc-docbar:where(:not([data-tc-fold])):has(.is-2nd) .tc-drop:has(> .tc-bar__more){display:inline-flex}
  .tc-docbar:where(:not([data-tc-fold])):has(.is-2nd) .tc-bar__more + .tc-menu{display:block}
}
/* Значками, с третьим рангом и «⋯», панели правки нужно около 737 px (у колонки правки на 1008 их 744):
   с 740 третий ранг (H2, список, задача, ссылка, Auto-save) уходит под «⋯» здесь же, не только на телефоне, —
   панель держится рангами в одну строку, а не сжимает выбор блокнота до метки и не переносится
   (проверка геометрии и владелец, 08.11). */
@container tcbox (max-width:740px){
  .tc-docbar:where(:not([data-tc-fold])) > .is-3rd,.tc-docbar:where(:not([data-tc-fold])) > .tc-bar__right > .is-3rd{display:none}
}
/* Тяжёлая полоса — .tc-bar--wide: целиком ей нужно 930–940 px, поэтому
   is-2nd уходит под «...» с 960, а не с 800. Агенда, хронология человека. */
@container tcbox (max-width:960px){
  .tc-bar--wide:where(:not([data-tc-fold])) .is-2nd{display:none}
  .tc-bar--wide:where(:not([data-tc-fold])) .tc-segfold > .tc-seg{display:none}
  .tc-bar--wide:where(:not([data-tc-fold])) .tc-segfold__pick{display:block}
  .tc-bar--wide:where(:not([data-tc-fold])):has(.is-2nd) .tc-bar__more,.tc-bar--wide:where(:not([data-tc-fold])):has(.is-2nd) .tc-drop:has(> .tc-bar__more){display:inline-flex}
  .tc-bar--wide:where(:not([data-tc-fold])):has(.is-2nd) .tc-bar__more + .tc-menu{display:block}
}
/* Широкая полоса с фильтром (агенда, Carrel's task 196) шире на поле фильтра — около 1070 px: её is-2nd уходит под «...» с 1100. */
@container tcbox (max-width:1100px){
  .tc-bar--wide:where(:not([data-tc-fold])):has(> .tc-in) .is-2nd{display:none}
  .tc-bar--wide:where(:not([data-tc-fold])):has(> .tc-in):has(.is-2nd) .tc-bar__more,.tc-bar--wide:where(:not([data-tc-fold])):has(> .tc-in):has(.is-2nd) .tc-drop:has(> .tc-bar__more){display:inline-flex}
  .tc-bar--wide:where(:not([data-tc-fold])):has(> .tc-in):has(.is-2nd) .tc-bar__more + .tc-menu{display:block}
}
/* Короткий переключатель (.tc-segfold--phone, Day / Week / Month / Range агенды) широкая полоса держит целиком: он складывается только на телефоне, с 640. */
@container tcbox (min-width:641px){
  .tc-bar:where(:not([data-tc-fold])) .tc-segfold.tc-segfold--phone > .tc-seg{display:inline-flex}
  .tc-bar:where(:not([data-tc-fold])) .tc-segfold.tc-segfold--phone > .tc-segfold__pick{display:none}
}
/* Панель документа уже 740: кнопки теряют подписи, не действия, и стоят плотнее. */
@container tcbox (max-width:740px){
  .tc-docbar:where(:not([data-tc-fold])) .tc-btn > .tc-btn__label{display:none}
  .tc-docbar:where(:not([data-tc-fold])) .tc-btn{padding:0 7px}
}
/* Панели правки заметки без второго ранга с подписями нужно около 850: с 860 её кнопки теряют подписи —
   раньше, чем третий ранг уходит под «⋯» (владелец, 09.11: место есть — кнопки на виду). */
@container tcbox (max-width:860px){
  .tc-docbar--edit:where(:not([data-tc-fold])) .tc-btn > .tc-btn__label{display:none}
  .tc-docbar--edit:where(:not([data-tc-fold])) .tc-btn{padding:0 7px}
}
@container tcbox (max-width:800px){
  /* is-2nd уходит под «...». У таблицы порог 700: ячейка умеет сжиматься. */
  .tc-bar:where(:not([data-tc-fold])) .is-2nd{display:none}
  .tc-bar:where(:not([data-tc-fold])) .tc-segfold > .tc-seg{display:none}
  .tc-bar:where(:not([data-tc-fold])) .tc-segfold__pick{display:block}
  /* Панель выделения теряет подписи, не действия. */
  .tc-bar--sel:where(:not([data-tc-fold])) .tc-btn > .tc-btn__label{display:none}
  .tc-bar--sel:where(:not([data-tc-fold])) .tc-btn:has(> .tc-btn__label){padding:0 9px}
  .tc-bar:where(:not([data-tc-fold])):has(.is-2nd) .tc-bar__more,.tc-bar:where(:not([data-tc-fold])):has(.is-2nd) .tc-drop:has(> .tc-bar__more){display:inline-flex}
  .tc-bar:where(:not([data-tc-fold])):has(.is-2nd) .tc-bar__more + .tc-menu{display:block}
  /* Тяжёлая таблица — .tc-table--wide: целиком ей нужно около 790, поэтому is-2nd уходит с 800, а не с 700. */
  .tc-table--wide th.is-2nd,.tc-table--wide td.is-2nd{display:none}
  .tc-row--cols > :is(.tc-col--org,.tc-col--birthday,.tc-col--tags,.tc-col--changed,.tc-col--complete,.tc-col--priority){display:none}
  .tc-row--avatarcols{grid-template-columns:3px 28px minmax(100px,1.4fr) 130px minmax(120px,1fr) 140px}
  .tc-row--avatarcols .tc-row__caption{display:none}
  .tc-row--timecols{grid-template-columns:3px 60px minmax(116px,2fr) 168px 140px}
  .tc-row--timecols .tc-row__detail{display:none}
  .tc-row--find{grid-template-columns:3px 70px minmax(136px,2.4fr) 66px 140px}
  .tc-row--find .tc-row__detail{display:none}
  .tc-row--tickmarkcols{grid-template-columns:14px 3px minmax(112px,2fr) 74px 140px}
  .tc-row--tickmarkcols .tc-row__progress{display:none}
  .tc-row--tickcols{grid-template-columns:16px minmax(176px,2.4fr) 84px 124px 140px}
  .tc-row--tickcols .tc-row__detail{display:none}
}
@container tcbox (max-width:700px){
  /* Колонка is-2nd исчезает, когда панель узкая. */
  .tc-table th.is-2nd,.tc-table td.is-2nd{display:none}
  /* После скрытия слотов таблица всё ещё может быть шире панели.
     --fit: ведущая колонка держит имя, заголовки переносятся словами. */
  .tc-table--fit{table-layout:fixed}
  .tc-table--fit td{min-width:0}
  .tc-table--fit th:first-child{width:36%}
  .tc-table--fit th{white-space:normal}
  .tc-table--fit .tc-table__filename{white-space:normal;overflow:visible;text-overflow:clip}
  /* --fit: break-word, не anywhere — иначе «4 calendars · 1 book» по буквам. */
  .tc-table--fit td.tc-mono,.tc-table--fit td .tc-mono{overflow-wrap:break-word}
  .tc-table--fit .tc-acts{justify-content:flex-start}
  .tc-row--excerpt{grid-template-columns:3px minmax(116px,1.4fr) 80px 140px}
  .tc-row--excerpt > :nth-child(3){display:none}
  .tc-row--avatarcols.tc-row--single{grid-template-columns:3px 28px minmax(100px,1.4fr) 130px minmax(120px,1fr)}
  .tc-row--timecols.tc-row--single{grid-template-columns:3px 60px minmax(116px,2fr) 168px}
  .tc-row--tickmarkcols.tc-row--single{grid-template-columns:14px 3px minmax(112px,2fr) 74px}
  .tc-row--excerpt.tc-row--single{grid-template-columns:3px minmax(116px,1.4fr) 80px}
}
@container tcbox (max-width:620px){
  /* Заголовок колонки в карточке переносится, когда тесно: «Changed on the server» в одну строку выталкивал таблицу за край карточки на 641; шире — в одну строку, как было (проверка геометрии, 08.11). */
  .tc-card > .tc-table th{white-space:normal}
  /* Строки держат поле страницы, как заголовки групп над ними (проверка геометрии, 08.11): своё поле 12 px ставило метку на 8 px левее заголовка дня. */
  /* Тесная шапка: набор кнопок переносится, а не выдавливает панель. */
  .tc-head .tc-acts{flex:0 1 auto;min-width:0}
  .tc-row--cols > :is(.tc-col--email,.tc-col--status,.tc-col--badges,.tc-col--excerpt){display:none}
  .tc-row--cols > .tc-col--phone{width:118px}
  .tc-row--avatarcols{grid-template-columns:3px 28px minmax(100px,1.6fr) 118px 130px}
  .tc-row--avatarcols .tc-row__detail{display:none}
  .tc-row--timecols{grid-template-columns:3px 54px minmax(110px,1fr) 130px}
  .tc-row--timecols .tc-row__caption{display:none}
  .tc-row--find{grid-template-columns:3px 62px minmax(110px,2fr) 130px}
  .tc-row--find .tc-row__caption{display:none}
  .tc-row--tickmarkcols{grid-template-columns:14px 3px minmax(100px,2fr) 70px 130px}
  .tc-row--excerpt{grid-template-columns:3px minmax(100px,1.4fr) 74px 130px}
  .tc-row--avatarcols.tc-row--single{grid-template-columns:3px 28px minmax(100px,1.6fr) 118px}
  .tc-row--timecols.tc-row--single{grid-template-columns:3px 54px minmax(110px,1fr)}
  .tc-row--tickmarkcols.tc-row--single{grid-template-columns:14px 3px minmax(100px,2fr) 70px}
  .tc-row--excerpt.tc-row--single{grid-template-columns:3px minmax(100px,1.4fr) 74px}
  .tc-row--tickcols{grid-template-columns:16px minmax(120px,2fr) 78px 130px}
  .tc-row--tickcols .tc-row__time{display:none}
}
@container tcbox (max-width:460px){
  .tc-row--cols > :is(.tc-col--source,.tc-col--kind){display:none}
  .tc-row--avatarcols{grid-template-columns:3px 28px minmax(0,1fr) 118px}
  .tc-row--avatarcols .tc-row__source{display:none}
  .tc-row--timecols{grid-template-columns:3px 50px minmax(0,1fr)}
  .tc-row--timecols .tc-row__source{display:none}
  .tc-row--find{grid-template-columns:3px 58px minmax(0,1fr)}
  .tc-row--find .tc-row__source{display:none}
  .tc-row--excerpt{grid-template-columns:3px minmax(0,1fr) 70px}
  .tc-row--excerpt .tc-row__source{display:none}
  .tc-row--tickmarkcols{grid-template-columns:14px 3px minmax(0,1fr) 66px}
  .tc-row--tickmarkcols .tc-row__source{display:none}
  .tc-row--avatarcols.tc-row--single{grid-template-columns:3px 28px minmax(0,1fr) 118px}
  .tc-row--timecols.tc-row--single{grid-template-columns:3px 50px minmax(0,1fr)}
  .tc-row--excerpt.tc-row--single{grid-template-columns:3px minmax(0,1fr) 70px}
  .tc-row--tickmarkcols.tc-row--single{grid-template-columns:14px 3px minmax(0,1fr) 66px}
  .tc-row--tickcols{grid-template-columns:16px minmax(0,1fr) 74px}
  .tc-row--tickcols .tc-row__source{display:none}
  .tc-table .tc-table__n3,.tc-table .tc-table__n3,
  .tc-table .tc-table__n4,.tc-table .tc-table__n4{display:none}
}
/* Плотная таблица (ссылки; решения человека 09.10): моноширинное не переносится — слово и дата стоят целиком
   или столбца нет. Что не помещается, уходит — первым n1 (Kind), за ним n3 (Created) — и, пока ширина рейла та
   же, не возвращается: пороги — по ширине панели. Когда рейл сворачивается, панель становится шире, и столбцы,
   которым снова есть место, стоят снова. Last opened уходит как is-2nd (700), Expires — на телефоне (n4). */
.tc-table--packed td.tc-mono{white-space:nowrap}
@container tcbox (max-width:880px){
  .tc-table--packed .tc-table__n1{display:none}
}
@container tcbox (max-width:752px){
  .tc-table--packed .tc-table__n3{display:none}
}
/* Телефон (≤460), третий ранг бара (Р-4): is-3rd уходит под «⋯» вслед за is-2nd.
   В меню «⋯» у него двойник с тем же is-3rd — виден только здесь, пока сам элемент
   спрятан. Кнопка бара со складной подписью остаётся значком. Бар своих элементов
   не сжимает и краем не режет (Р-65): бар с тем, что в «⋯» не уходит, — диапазоном,
   полем, поиском, — переносит не поместившееся на следующую строку (бар из кнопок и
   переключателей держится рангами и «⋯»: перенос в нём раздувал коробку с открытым
   меню на высоту меню); так же панель документа, диапазон внутри себя,
   кнопки строки таблицы в своей ячейке и подвал листа. Решение человека 2026-09-26: без прокрутки. */
@container tcbox (max-width:460px){
  .tc-bar:where(:not([data-tc-fold])) > .is-3rd,:where(:not([data-tc-fold])) > .tc-bar__right > .is-3rd,.tc-docbar:where(:not([data-tc-fold])) > .is-3rd{display:none}
  /* шапка карточки: третий ранг (Print) уходит под её «⋯» */
  .tc-head .tc-acts > .is-3rd{display:none}
  /* верхняя полоса без сценария: второй ранг уходит под её «⋯» на телефоне */
  .tc-top:where(:not([data-tc-fold])) .tc-top__actions > .is-2nd{display:none}
  .tc-top:where(:not([data-tc-fold])):has(.tc-top__actions > .is-2nd) .tc-top__more{display:inline-block}
  .tc-bar:where(:not([data-tc-fold])):has(> .is-3rd) .tc-bar__more,.tc-bar:where(:not([data-tc-fold])):has(> .is-3rd) .tc-drop:has(> .tc-bar__more),
  .tc-docbar:where(:not([data-tc-fold])):has(.is-3rd) .tc-bar__more,.tc-docbar:where(:not([data-tc-fold])):has(.is-3rd) .tc-drop:has(> .tc-bar__more){display:inline-flex}
  .tc-bar:where(:not([data-tc-fold])):has(> .is-3rd) .tc-bar__more + .tc-menu,.tc-docbar:where(:not([data-tc-fold])):has(.is-3rd) .tc-bar__more + .tc-menu{display:block}
  .tc-bar:where(:not([data-tc-fold])) .tc-btn > .tc-btn__label{display:none}
  .tc-bar:has(> .tc-range,> .tc-in,> .tc-search){flex-wrap:wrap}
  /* Панель выделения: счёт первой строкой, все действия — второй (разделитель становится
     переносом), а не одна кнопка, упавшая вниз сама (решение владельца 02.11). */
  .tc-bar.tc-bar--sel{flex-wrap:wrap;row-gap:8px}
  .tc-bar.tc-bar--sel > .tc-bar__sep{flex-basis:100%;height:0;margin-top:-8px;background:none}
  /* Правая часть (Select all, Clear selection) — к счёту, справа: на строке действий она уезжала на край одна. */
  .tc-bar.tc-bar--sel > .tc-bar__sep,.tc-bar.tc-bar--sel > .tc-bar__sep ~ :not(.tc-bar__right){order:1}
  .tc-docbar{flex-wrap:wrap}
  .tc-bar > .tc-range{flex-wrap:wrap}
  .tc-table .tc-acts{flex-wrap:wrap;white-space:normal}
  .tc-sheet__foot{flex-wrap:wrap}
  /* строка хода: кнопка со складной подписью остаётся значком, как в баре */
  .tc-runbar .tc-btn > .tc-btn__label{display:none}
  /* Таблица с главной колонкой — карточки (Р-66): имя и «⋯» первой строкой, под ними
     главное с подписью колонки; остальные колонки уходят, кнопки строки — в «⋯».
     Имя — первая ячейка с файлом, а где файла нет — первая непустая, кроме галочки; справа — «⋯» и кнопка перед
     ним (Copy link приглашения, Download файла); одна кнопка без «⋯», как Revoke, остаётся
     сама. Где у строки складное «⋯» (tc-acts__more), уходит только сложенное в него
     (is-2nd): Copy ссылки остаётся. */
  .tc-table:has(td.tc-table__main),.tc-table:has(td.tc-table__main) > tbody{display:block;width:100%}
  .tc-table:has(td.tc-table__main) > thead{display:none}
  .tc-table:has(td.tc-table__main) > tbody > tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:0;row-gap:4px;
    align-items:center;padding:10px var(--tc-page-gutter);border-bottom:.5px solid var(--tc-hair)}
  /* Промежутки — полями ячеек, не сетки: карточка без галочки не держит 10 px под её пустую колонку. */
  /* В диалоге, в карточке и в теле листа поле уже есть: строка-карточка своего не берёт. */
  .tc-dialog .tc-table:has(td.tc-table__main) > tbody > tr,.tc-card > .tc-table:has(td.tc-table__main) > tbody > tr,
  .tc-sheet__body > .tc-table:has(td.tc-table__main) > tbody > tr{padding-left:0;padding-right:0}
  .tc-table:has(td.tc-table__main) > tbody > tr > td{display:none;padding:0;border:0}
  .tc-table:has(td.tc-table__main) > tbody > tr > td:has(> .tc-tickrow__tick,> .tc-tick){display:block;grid-column:1;grid-row:1;margin-right:10px}
  .tc-table:has(td.tc-table__main) > tbody > tr > td:has(> .tc-table__file):not(td:has(> .tc-table__file) ~ td),
  .tc-table:has(td.tc-table__main) > tbody > tr > td.tc-table__name,
  .tc-table:has(td.tc-table__main) > tbody > tr:not(:has(> td > .tc-table__file)) > td:first-child:has(> .tc-tickrow__tick,> .tc-tick) + td:not(.tc-table__main),
  .tc-table:has(td.tc-table__main) > tbody > tr:not(:has(> td > .tc-table__file)) > td:first-child:not(:empty):not(.tc-table__main):not(:has(> .tc-tickrow__tick,> .tc-tick)){display:block;grid-column:2;grid-row:1;min-width:0}
  .tc-table:has(td.tc-table__main) > tbody > tr > td.tc-acts{display:block;grid-column:3;grid-row:1;margin-left:10px}
  .tc-table:has(td.tc-table__main) > tbody > tr > td.tc-acts:not(:has(> .tc-drop > .tc-acts__more)) > :not(:last-child):not(:nth-last-child(2)),
  .tc-table:has(td.tc-table__main) > tbody > tr > td.tc-acts > .is-2nd{display:none}
  .tc-table:has(td.tc-table__main) > tbody > tr > td.tc-acts .tc-acts__more,
  .tc-table:has(td.tc-table__main) > tbody > tr > td.tc-acts > .tc-drop:has(> .tc-acts__more){display:inline-flex}
  .tc-table:has(td.tc-table__main) > tbody > tr > td.tc-table__main{display:block;grid-column:2 / 4;grid-row:2;font-size:12px;white-space:normal}
  .tc-table:has(td.tc-table__main) > tbody > tr > td.tc-table__main::before{content:attr(data-tc-label) " · ";color:var(--tc-dusty);font-family:var(--tc-font-sans)}
  .tc-table:has(td.tc-table__main) > tbody > tr > td.tc-table__main:has(> .tc-table__wrap)::before{content:attr(data-tc-label);display:block;margin-bottom:4px}
  .tc-table:has(td.tc-table__main) > tbody > tr > td.tc-table__main br{display:none}
  .tc-table:has(td.tc-table__main) > tbody > tr > td.tc-table__main br + .tc-dim::before{content:" · "}
}
/* Таблица со сценарием (Р-66, решение владельца 10.11): таблица с главной колонкой, которой тесно в своей
   коробке на любой ширине, — карточки, как на телефоне. tc.js ставит data-tc-cards, когда таблица выходит
   за коробку дальше, чем её выпускают собственные поля; на телефоне карточки и так. Поле строки-карточки — поле страницы. */
.tc-table[data-tc-cards]:has(td.tc-table__main),.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody{display:block;width:100%}
.tc-table[data-tc-cards]:has(td.tc-table__main) > thead{display:none}
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:0;row-gap:4px;
  align-items:center;padding:10px var(--tc-page-gutter);border-bottom:.5px solid var(--tc-hair)}
.tc-dialog .tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr,.tc-card > .tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr,
.tc-sheet__body > .tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr{padding-left:0;padding-right:0}
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td{display:none;padding:0;border:0}
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td:has(> .tc-tickrow__tick,> .tc-tick){display:block;grid-column:1;grid-row:1;margin-right:10px}
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td:has(> .tc-table__file):not(td:has(> .tc-table__file) ~ td),
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td.tc-table__name,
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr:not(:has(> td > .tc-table__file)) > td:first-child:has(> .tc-tickrow__tick,> .tc-tick) + td:not(.tc-table__main),
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr:not(:has(> td > .tc-table__file)) > td:first-child:not(:empty):not(.tc-table__main):not(:has(> .tc-tickrow__tick,> .tc-tick)){display:block;grid-column:2;grid-row:1;min-width:0}
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td.tc-acts{display:block;grid-column:3;grid-row:1;margin-left:10px}
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td.tc-acts:not(:has(> .tc-drop > .tc-acts__more)) > :not(:last-child):not(:nth-last-child(2)),
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td.tc-acts > .is-2nd{display:none}
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td.tc-acts .tc-acts__more,
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td.tc-acts > .tc-drop:has(> .tc-acts__more){display:inline-flex}
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td.tc-table__main{display:block;grid-column:2 / 4;grid-row:2;font-size:12px;white-space:normal}
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td.tc-table__main::before{content:attr(data-tc-label) " · ";color:var(--tc-dusty);font-family:var(--tc-font-sans)}
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td.tc-table__main:has(> .tc-table__wrap)::before{content:attr(data-tc-label);display:block;margin-bottom:4px}
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td.tc-table__main br{display:none}
.tc-table[data-tc-cards]:has(td.tc-table__main) > tbody > tr > td.tc-table__main br + .tc-dim::before{content:" · "}
@container tcbox (min-width:461px){
  .tc-menu:not(.tc-bar--wide .tc-menu):where(:not([data-tc-fold] .tc-menu)) .is-3rd{display:none}
}
/* Полоса агенды начинается листанием (Previous · Today · Next, задача 77): целиком
   ей нужно около 1070 px, поэтому её is-2nd уходит под «⋯» с 1100. */
@container tcbox (max-width:1100px){
  .tc-bar--wide:where(:not([data-tc-fold])):has(> .tc-btn:first-child) .is-2nd{display:none}
  .tc-bar--wide:where(:not([data-tc-fold])):has(> .tc-btn:first-child):has(.is-2nd) .tc-bar__more,.tc-bar--wide:where(:not([data-tc-fold])):has(> .tc-btn:first-child):has(.is-2nd) .tc-drop:has(> .tc-bar__more){display:inline-flex}
  .tc-bar--wide:where(:not([data-tc-fold])):has(> .tc-btn:first-child):has(.is-2nd) .tc-bar__more + .tc-menu{display:block}
}
/* Бар со сценарием (Р-4, решение владельца 10.11): tc.js складывает его по месту, а не по ширине окна.
   data-tc-fold — пройденные ступени: end — подписи правой группы панели выделения; 2nd — второй ранг
   под «⋯» и складной переключатель (у панели выделения — с подписями); labels — подписи кнопок;
   3rd — третий ранг под «⋯» и переключатель телефона. Сценарий берёт их по порядку, пока бар не встанет
   с каждым элементом целиком — выбор по своему тексту, кнопка с подписью — и не больше строк, чем со всеми
   ступенями; где не хватает и всех — wrap: оставшееся переносится целиком. На замере (data-tc-measure) бар не шире места и ничто в нём не сжимается
   (бар, которому тесно, раздвигал бы колонку страницы); поле держит ширину своего текста — значения, иначе подсказки, —
   но не шире, чем ему оставляют пороги, и отдаёт её только после всех ступеней. Пороги по ширине
   выше — для страницы без сценария: у бара с data-tc-fold они молчат (:where — без прибавки к весу). */
:is(.tc-bar,.tc-docbar)[data-tc-measure]{min-width:0;max-width:100%}
:is(.tc-bar,.tc-docbar)[data-tc-measure] > *,
:is(.tc-bar,.tc-docbar)[data-tc-measure] > :is(.tc-barform,.tc-checkform) > *{flex-shrink:0}
.tc-bar--sel[data-tc-fold~="end"] > .tc-bar__right .tc-btn > .tc-btn__label,
.tc-bar--sel[data-tc-fold~="2nd"] .tc-btn > .tc-btn__label,
:is(.tc-bar,.tc-docbar)[data-tc-fold~="labels"] .tc-btn > .tc-btn__label{display:none}
.tc-bar--sel[data-tc-fold~="end"] > .tc-bar__right .tc-btn:has(> .tc-btn__label),
.tc-bar--sel[data-tc-fold~="2nd"] .tc-btn:has(> .tc-btn__label){padding:0 9px}
.tc-docbar[data-tc-fold~="labels"] .tc-btn{padding:0 7px}
:is(.tc-bar,.tc-docbar)[data-tc-fold~="2nd"] .is-2nd,
:is(.tc-bar,.tc-docbar)[data-tc-fold~="3rd"] > .is-3rd,:is(.tc-bar,.tc-docbar)[data-tc-fold~="3rd"] > .tc-bar__right > .is-3rd,
.tc-bar[data-tc-fold~="2nd"] .tc-segfold:not(.tc-segfold--phone) > .tc-seg,
.tc-bar[data-tc-fold~="3rd"] .tc-segfold--phone > .tc-seg{display:none}
.tc-bar[data-tc-fold~="2nd"] .tc-segfold:not(.tc-segfold--phone) > .tc-segfold__pick,
.tc-bar[data-tc-fold~="3rd"] .tc-segfold--phone > .tc-segfold__pick{display:block}
:is(.tc-bar,.tc-docbar)[data-tc-fold~="2nd"]:has(.is-2nd) :is(.tc-bar__more,.tc-drop:has(> .tc-bar__more)),
.tc-bar[data-tc-fold~="3rd"]:has(> .is-3rd) :is(.tc-bar__more,.tc-drop:has(> .tc-bar__more)),
.tc-docbar[data-tc-fold~="3rd"]:has(.is-3rd) :is(.tc-bar__more,.tc-drop:has(> .tc-bar__more)){display:inline-flex}
:is(.tc-bar,.tc-docbar)[data-tc-fold~="2nd"]:has(.is-2nd) .tc-bar__more + .tc-menu,
.tc-bar[data-tc-fold~="3rd"]:has(> .is-3rd) .tc-bar__more + .tc-menu,
.tc-docbar[data-tc-fold~="3rd"]:has(.is-3rd) .tc-bar__more + .tc-menu{display:block}
:is(.tc-bar:not(.tc-bar--wide),.tc-docbar)[data-tc-fold]:not([data-tc-fold~="3rd"]) .tc-menu .is-3rd{display:none}
:is(.tc-bar,.tc-docbar)[data-tc-fold~="wrap"]{flex-wrap:wrap}
/* Верхняя полоса со сценарием (владелец 10.11: как бары): labels — кнопки действий значками; search — поиск значком,
   как на телефоне (нажатие открывает поиск), пока в нём нет запроса; 2nd — второй ранг под «⋯» (11.11); wrap —
   оставшееся переносится. Правила телефона
   весомее (:where): на нём кнопка-значок остаётся квадратом 38 px. */
.tc-top[data-tc-measure] > *,.tc-top[data-tc-measure] > .tc-top__actions > *{flex-shrink:0}
:where(.tc-top[data-tc-fold~="labels"] .tc-top__actions) .tc-btn:has(> svg){font-size:0;gap:2px;padding-left:8px;padding-right:8px}
.tc-top[data-tc-fold~="search"] .tc-top__search{flex:none}
.tc-top[data-tc-fold~="search"] .tc-search:not(:has(> svg + svg)){flex:none;width:28px;padding:0;gap:0;justify-content:center;position:relative}
.tc-top[data-tc-fold~="search"] .tc-search:not(:has(> svg + svg)) .tc-q{position:absolute;inset:0;opacity:0;width:auto;height:auto;padding:0;border:0}
.tc-top[data-tc-fold~="wrap"]{flex-wrap:wrap;height:auto;row-gap:8px;padding-top:8px;padding-bottom:8px}
.tc-top[data-tc-fold~="2nd"] .tc-top__actions > .is-2nd{display:none}
.tc-top[data-tc-fold~="2nd"]:has(.tc-top__actions > .is-2nd) .tc-top__more{display:inline-block}
/* Рейл из значков: 641–1007. Источники уходят в выезжающую панель. */
@container tcbox (min-width:641px) and (max-width:1007px){
  .tc-shell__body,.tc-shell__body.tc-shell__body--side{
    --tc-shell-mode:rail;--tc-rail:56px;
    grid-template-columns:56px minmax(0,1fr)}
  .tc-shell__body.tc-shell__body--no-rail,
  .tc-shell__body.tc-shell__body--no-rail.tc-shell__body--side{
    --tc-shell-mode:rail;grid-template-columns:minmax(0,1fr)}
  .tc-shell__body.tc-shell__body--side > .tc-side{display:none}
  .tc-shell__rail{overflow:hidden;padding:12px 4px;align-items:center}
  .tc-shell__rail .tc-railsec,.tc-shell__rail .tc-railfoot,.tc-shell__rail .tc-empty{display:none}
  .tc-nav{padding:0;align-items:center}
  .tc-nav .tc-nav__item{width:40px;padding:0;justify-content:center;overflow:hidden;font-size:0;gap:0}
  .tc-nav .tc-num{display:none}
  /* Крылья brand/actions остаются flex:1 1 0 — поиск по центру, сжимается. */
  .tc-top .tc-search{flex:0 1 560px;width:auto;max-width:560px}
}
/* Ящик: ≤640. Состояние — на детях корня; вид потомков — style(), иначе
   панель 440 px и лист 560 px на широком корне тоже попали бы в max-width:640. */
@container tcbox (max-width:640px){
  .tc-shell__body,.tc-shell__body.tc-shell__body--side,
  .tc-shell__body.tc-shell__body--no-rail,
  .tc-shell__body.tc-shell__body--no-rail.tc-shell__body--side{
    --tc-shell-mode:drawer;--tc-page-gutter:var(--tc-page-gutter-narrow);
    grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;
    min-height:600px;overflow-x:clip}
  .tc-overlay{--tc-shell-mode:drawer;overflow-x:clip;min-width:0}
  .tc-shell__body.tc-shell__body--side > .tc-side{display:none}
  .tc-shell__body > .tc-main{grid-row:1;grid-column:1}
  .tc-shell__rail{
    --tc-shell-mode:drawer;
    grid-row:2;grid-column:1;flex-direction:row;flex-wrap:nowrap;gap:0;padding:0;
    border-right:0;border-top:.5px solid var(--tc-rule);background:var(--tc-surface);
    overflow:visible;align-items:stretch}
  .tc-shell__rail .tc-railsec,.tc-shell__rail .tc-railfoot{display:none}
  /* Разделы и возврат — пункты одной панели равной ширины: возврат идёт за разделами, как в рейле, за чертой. */
  .tc-shell__rail .tc-nav{display:contents}
  .tc-shell__rail .tc-nav--top2 .tc-nav__item{border-left:.5px solid var(--tc-rule)}
  /* Внизу подпись короче: «Back», а не «Back to list» — в панели из восьми пунктов длинной тесно. */
  .tc-shell__rail .tc-nav__full{display:none}
  .tc-shell__rail .tc-nav__short{display:inline}
  .tc-shell__rail .tc-nav .tc-nav__item{
    flex:1;flex-direction:column;justify-content:center;gap:3px;height:auto;width:auto;
    padding:7px 0 9px;font-size:9.5px;color:var(--tc-dusty);border-radius:0;overflow:visible}
  .tc-shell__rail .tc-nav .tc-nav__item.is-on{color:var(--tc-accent);background:transparent;font-weight:400}
  .tc-shell__rail .tc-nav svg{width:17px;height:17px;opacity:1}
  .tc-shell__rail .tc-nav .tc-emblem{width:16px;height:16px}
  .tc-shell__rail .tc-num{display:none}
  .tc-top{--tc-shell-mode:drawer;--tc-top:54px;height:54px;--tc-page-gutter:var(--tc-page-gutter-narrow);
    padding:8px;gap:8px;overflow-x:clip}
  /* Поиск свёрнут в значок: подсказки под ним — во всю полосу, а не шириной значка. */
  .tc-top{position:relative}
  .tc-top .tc-top__search.tc-top__search{position:static}
  .tc-top .tc-top__suggest.tc-top__suggest{left:8px;right:8px;width:auto;min-width:0;max-width:none}
  .tc-top .tc-top__actions.tc-top__actions{flex:1 1 auto;gap:8px}
  .tc-top .tc-btn{height:38px}
  .tc-top .tc-btn:has(> svg:only-child){min-width:38px;width:max(38px,max-content);height:38px}
  .tc-top > .tc-btn.tc-btn,
  .tc-top .tc-top__actions > .tc-btn:first-child:has(> svg:only-child),
  .tc-top .tc-top__actions > .is-primary:has(> svg:only-child){width:38px;padding:0;font-size:0;gap:0}
  /* Кнопка значком: подпись уходит, а не режется краем (CSS не видит текста рядом со значком). */
  .tc-top .tc-btn:has(> svg:only-child) svg{width:20px;height:20px}
  .tc-top .tc-usermenu{flex:none;height:38px}
  /* Поле уходит, остаётся значок — тот же вход, что кнопка поиска на телефоне. */
  .tc-top .tc-search.tc-search{display:flex;flex:none;align-items:center;justify-content:center;
    width:38px;height:38px;padding:0;gap:0;margin-left:auto;overflow:hidden;position:relative;
    background:var(--tc-surface)}
  .tc-top .tc-search svg{width:20px;height:20px;flex:none}
  .tc-top .tc-search .tc-q{position:absolute;inset:0;opacity:0;width:auto;height:auto;padding:0;border:0}
  /* Запрос открыт (крестик очистки) — поле остаётся полем. */
  .tc-top .tc-search.tc-search:has(> svg + svg){width:auto;flex:1 1 160px;min-width:44px;max-width:560px;height:38px;
    padding:0 9px;justify-content:flex-start;gap:7px;margin-left:0;overflow:visible}
  .tc-top .tc-search.tc-search:has(> svg + svg) .tc-q{position:absolute;inset:0;opacity:1;width:auto;height:auto;
    padding:0 28px 0 36px;flex:none}
  .tc-top .tc-search.tc-search:has(> svg + svg) svg{width:13px;height:13px;position:relative;z-index:2}
  .tc-top .tc-search.tc-search:has(> svg + svg) svg + svg{margin-left:auto}
  /* слова в двух длинах: на телефоне — короткие (Р-65) */
  .tc-say__full{display:none}
  .tc-say__short{display:inline}
  /* Запрос открыт, а места нет: поиск встаёт второй строкой шапки во всю ширину, а не
     сжимается до значка с крестиком (Р-65). */
  .tc-top:has(.tc-search > svg + svg){flex-wrap:wrap;height:auto;row-gap:8px}
  .tc-top .tc-search.tc-search:has(> svg + svg){order:9;flex:1 1 100%;max-width:none}
  .tc-top .tc-brand{flex:1 1 auto;min-width:0}
  .tc-top .tc-brand:has(.tc-brand__logo){flex:none;width:auto}
  /* Лист и крошки — по ширине ближайшего tcbox (сам лист 560), не оболочки.
     Столбец формы сюда нельзя: панель 440 на широком корне тоже ≤640. */
  .tc-scrim,.tc-sheet,.tc-sheet__head,.tc-sheet__body,.tc-sheet__foot{min-width:0;max-width:100%}
  .tc-sheet{width:100%;margin:0}
  .tc-sheet__head{flex-wrap:wrap}
  .tc-sheet__head .tc-in{width:auto;max-width:100%;flex:1 1 8em}
  .tc-sheet__head > .tc-drop{flex:1 1 8em}
  .tc-scrim{padding:12px var(--tc-page-gutter-narrow);align-items:stretch}
  .tc-dialog{padding:16px var(--tc-page-gutter-narrow) 20px;min-width:0;max-width:100%}
  label,.tc-msg,.tc-diag,.tc-field__hint,.tc-rubric,.tc-dim--wrap,.tc-sheet__head,.tc-sheet__title{
    overflow-wrap:anywhere;min-width:0}
  .tc-sheet__pick.tc-sheet__pick--196.tc-sheet__pick--196{flex-direction:column;align-items:stretch}
  .tc-sheet__pick .tc-sheet__pick-rail.tc-sheet__pick-rail{width:auto;border-right:0;border-bottom:.5px solid var(--tc-hair)}
  .tc-sheet__foot.tc-sheet__foot > .tc-dim--wrap{order:-1;flex:1 1 100%}
}
/* 390–460: «2 min ago» значком, иначе New note и mix не входят. */
@container tcbox (max-width:460px){
  .tc-top .tc-btn:has(> svg:only-child){width:38px;padding:0;font-size:0;gap:0}
}
/* Поле под пальцем — 16 px: при меньшем кегле телефон увеличивает страницу, когда встают в поле (решение 28.09.2026). */
@media (pointer:coarse){
  .tc-in,.tc-q{font-size:16px}
}
@container style(--tc-shell-mode: drawer){
  .tc-row{min-height:52px;gap:10px}
  /* Меню строки страницы на телефоне — во всю строку под ней: кнопка стоит
     то справа, то в начале перенесённой строки, а меню у её края вылезло бы. */
  .tc-main__strip{position:relative}
  .tc-main__strip .tc-drop{position:static}
  .tc-main__strip .tc-drop > .tc-menu.is-pop{left:20px;right:20px;width:auto}
  .tc-list.is-compact .tc-row{min-height:52px}
  .tc-nav--bottom{display:flex;border-top:.5px solid var(--tc-rule);background:var(--tc-surface);margin-top:auto}
  .tc-nav--bottom .tc-nav__item{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;height:auto;padding:7px 0 9px;font-size:9.5px;color:var(--tc-dusty);border-radius:0}
  .tc-nav--bottom .tc-nav__item.is-on{color:var(--tc-accent);background:transparent;font-weight:400}
  .tc-nav--bottom svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.3;fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:1}
  .tc-btn,.tc-in,.tc-seg,.tc-segfold__current{height:38px}
  /* маленькая кнопка на телефоне — той же мишенью, что остальные (Р-66) */
  .tc-btn.is-sm.is-sm{height:38px;min-width:38px;padding:0 10px;font-size:12.5px;justify-content:center}
  .tc-segfold__item{height:40px}
  .tc-bar .tc-btn,.tc-docbar .tc-btn,.tc-head .tc-acts .tc-btn,.tc-formfoot .tc-btn,
  .tc-queue__head .tc-btn:not(.is-sm),.tc-sheet__head .tc-btn,
  .tc-form .tc-btn:not(.is-sm),.tc-fset .tc-btn:not(.is-sm),.tc-field .tc-btn:not(.is-sm),
  .tc-bar .tc-in,.tc-docbar .tc-in,.tc-head .tc-acts .tc-in,.tc-sheet__head .tc-in,
  .tc-bar .tc-seg,.tc-docbar .tc-seg,.tc-head .tc-acts .tc-seg{height:38px}
  /* Переключатель в строке таблицы (read only / read and write устройства) — в рост кнопок строки, как Change рядом: 22 px — не попасть пальцем. */
  .tc-table .tc-seg.tc-seg--h22{height:38px}
  /* поле полосы — той же высоты, что полоса, поверх своего класса размера (tc-in--h26-…) */
  .tc-bar .tc-in.tc-in,.tc-docbar .tc-in.tc-in,.tc-head .tc-acts .tc-in.tc-in{height:38px}
  .tc-seg,.tc-bar > .tc-in,.tc-barform > .tc-in,.tc-in{overflow:visible}
  button,.tc-in,.tc-seg__opt,.tc-check,.tc-nav__item,.tc-tick,.tc-tickrow__tick,.tc-tag,a[href]{
    position:relative;overflow:visible;z-index:1;appearance:none}
  button:not(.is-pick)::after,a[href]::after,input:not(.is-pick)::after,textarea::after,select::after,
  .tc-check::after,.tc-tick::after,.tc-tickrow__tick::after,.tc-seg__opt::after,.tc-menu__item::after{
    content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;
    transform:translate(-50%,-50%);pointer-events:auto}
  /* Имя-ссылка с многоточием обрезала бы свою зону: зона — её собственные поля (задача 114). */
  .tc-table__file a.tc-table__filename{overflow:hidden;padding:15px 8px;margin:-15px -8px;min-width:44px}
  .tc-table__file a.tc-table__filename::after{content:none}
  /* У имени плитки зона обычная, а длинное имя под пальцем переносится, а не вылезает. */
  .tc-tile a.tc-tile__name{white-space:normal;overflow-wrap:anywhere}
  /* Текст строки со ссылкой и блок ячейки не режут: многоточие и обрезка срезали бы зону пальца ссылки или кнопки. */
  .tc-row :is(.tc-row__title,.tc-row__cell,.tc-row__excerpt,.tc-row__file):has(a[href]){white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
  .tc-table .tc-table__wrap.tc-table__wrap{overflow:visible}
  .tc-in.is-pick::before{pointer-events:auto;width:44px;height:44px;top:50%;bottom:auto;right:auto;left:50%;
    transform:translate(-50%,-50%);background:transparent}
  .tc-menu.is-pop,.tc-drop{z-index:6;overflow:visible}
  .tc-crumbs{position:relative;z-index:1}
  .tc-shell__body .tc-main,.tc-shell__body .tc-bar,.tc-shell__body .tc-head,.tc-shell__body .tc-acts{overflow:visible}
  .tc-form{flex-direction:column;flex-wrap:nowrap;align-items:stretch}
  /* В столбце основа поля (tc-field--fill300, --max640-fill460…) стала бы его высотой — пустота под полем; в столбце поле по содержимому. */
  .tc-form > .tc-field.tc-field{flex-basis:auto}
  .tc-field,.tc-field--xs,.tc-field--sm,.tc-field--md,.tc-field--lg,.tc-field--xl,.tc-field--full{width:100%;min-width:0}
  .tc-docbar > .tc-field{width:100%;max-width:none}
  .tc-fields{grid-template-columns:minmax(0,1fr)}
  .tc-head .tc-acts{flex:1 1 100%;justify-content:flex-start}
  .tc-head .tc-acts--stack{align-items:flex-start}
  .tc-scrim,.tc-sheet,.tc-sheet__head,.tc-sheet__body,.tc-sheet__foot{min-width:0;max-width:100%}
  .tc-sheet{width:100%;max-width:100%;margin:0}
  .tc-sheet__head{flex-wrap:wrap}
  .tc-sheet__head .tc-in{width:auto;max-width:100%;flex:1 1 8em}
  .tc-sheet__head > .tc-drop{flex:1 1 8em}
  .tc-scrim{padding:12px var(--tc-page-gutter-narrow);align-items:stretch}
  .tc-dialog{padding:16px var(--tc-page-gutter-narrow) 20px;min-width:0;max-width:100%}
  .tc-doc__layout{grid-template-columns:minmax(0,1fr)}
  .tc-card{display:flex;flex-direction:column}
  /* Строка полей встаёт столбцом; фраза с полем-фишкой («старше [7] дней») — нет. */
  .tc-form .tc-line.tc-line:where(:not(:has(> .tc-in--chip))){flex-direction:column;align-items:stretch}
  /* …и в столбце поле с flex:1 (tc-in--fill) не сжимается в нулевую основу: высота — своя, 38 px. */
  .tc-form .tc-line.tc-line:where(:not(:has(> .tc-in--chip))) > *{flex-basis:auto}
  label,.tc-msg,.tc-diag,.tc-field__hint,.tc-rubric,.tc-dim--wrap,.tc-sheet__head,.tc-sheet__title{
    overflow-wrap:anywhere;min-width:0}
  /* input/textarea — replaced, без ::after: зону даёт поле. */
  .tc-field{position:relative}
  .tc-field:has(> input,> textarea,> .tc-in)::after{
    content:"";position:absolute;left:0;right:0;bottom:-3px;height:44px;pointer-events:auto}
  .tc-range{position:relative;overflow:visible}
  .tc-range:has(.tc-in)::after{
    content:"";position:absolute;inset:-3px 0;min-height:44px;pointer-events:auto}
  .tc-search{position:relative;overflow:visible}
  .tc-search:has(.tc-q)::after{
    content:"";position:absolute;inset:-3px;min-width:44px;min-height:44px;pointer-events:auto}
  .tc-sheet__pick.tc-sheet__pick--196.tc-sheet__pick--196{flex-direction:column;align-items:stretch}
  .tc-sheet__pick .tc-sheet__pick-rail.tc-sheet__pick-rail{width:auto;border-right:0;border-bottom:.5px solid var(--tc-hair)}
  .tc-sheet__foot.tc-sheet__foot > .tc-dim--wrap{order:-1;flex:1 1 100%}
}

/* layout glue */
.tc-line.tc-line{display:flex;align-items:center;flex-wrap:wrap}
.tc-stack.tc-stack{display:flex;flex-direction:column}
/* Зазор строки — ступенью, а не числом: тесно — метки и теги, обычно — кнопки, поля и подписи, широко — галки, логотип со значком, поля рядом — как в формах; фото и заголовок держат колонку полей (--tc-fields-gap). */
.tc-line--tight.tc-line--tight{gap:var(--tc-gap-tight)}
.tc-line--normal.tc-line--normal{gap:var(--tc-gap)}
.tc-line--wide.tc-line--wide{gap:var(--tc-gap-wide)}
.tc-line--fields.tc-line--fields{gap:var(--tc-gap-loose)}
/* Зазор столбика — той же ступенью, что у строки: тесно — пункты списка и галки, обычно — задачи и побочные блоки, широко — карточки и разделы друг под другом (владелец, 09.11). */
.tc-stack--tight.tc-stack--tight{gap:var(--tc-gap-tight)}
.tc-stack--normal.tc-stack--normal{gap:var(--tc-gap)}
.tc-stack--wide.tc-stack--wide{gap:var(--tc-gap-wide)}
.tc-push.tc-push{margin-left:auto}
.tc-pad.tc-pad{padding:0 var(--tc-page-gutter)}
.tc-grow.tc-grow{flex:1 1 100%;width:100%;min-width:0}
[data-tc-colour][data-tc-colour]{background:var(--tc-colour)}
[data-tc-width][data-tc-width]{width:var(--tc-width)}
.tc-table__col--changed.tc-table__col--changed{width:140px}
.tc-table__col--menu.tc-table__col--menu{width:26px}
.tc-table__col--num.tc-table__col--num{width:70px}
.tc-table__col--size.tc-table__col--size{width:92px}
.tc-table__col--tick.tc-table__col--tick{width:28px}
.tc-table__col--tick-sm.tc-table__col--tick-sm{width:20px}
.tc-table__col--time.tc-table__col--time{width:150px}
.tc-table__col--type.tc-table__col--type{width:132px}
.tc-table__col--w110.tc-table__col--w110{width:110px}
.tc-table__col--w120.tc-table__col--w120{width:120px}
.tc-table__col--w26.tc-table__col--w26{width:26%}
.tc-table__col--w80.tc-table__col--w80{width:80px}
.tc-table__col--w90.tc-table__col--w90{width:90px}
.tc-ico--accent.tc-ico--accent{stroke:var(--tc-accent)}
.tc-ico--danger.tc-ico--danger{stroke:var(--tc-danger)}
.tc-ico--dusty.tc-ico--dusty{stroke:var(--tc-dusty)}
.tc-ico--muted.tc-ico--muted{stroke:var(--tc-muted)}
.tc-auth__tagline--mid.tc-auth__tagline--mid{text-align:center;margin:0 0 13px;font-size:13.5px;line-height:1.45;color:var(--tc-muted)}
.tc-auth__tagline--below-wide.tc-auth__tagline--below-wide{margin:0 0 var(--tc-gap-wide);font-size:13.5px;line-height:1.45;color:var(--tc-muted)}
.tc-avatar--photo--sq76-t20.tc-avatar--photo--sq76-t20{height:76px;font-size:20px;width:76px}
.tc-avatar--photo--sq62-t17.tc-avatar--photo--sq62-t17{height:62px;font-size:17px;width:62px}
.tc-avatar--sq44-t15-r4.tc-avatar--sq44-t15-r4{height:44px;font-size:15px;border-radius:4px;width:44px}
.tc-avatar--sq34-t12.tc-avatar--sq34-t12{height:34px;font-size:12px;width:34px}
.tc-sheet__title.tc-sheet__title{font-size:13.5px}

.tc-empty__lead.tc-empty__lead{font-size:13.5px;color:var(--tc-ink)}
.tc-empty__lead-sm.tc-empty__lead-sm{font-size:12.5px;color:var(--tc-ink)}
.tc-card__key.tc-card__key{color:var(--tc-muted)}
.tc-badge--edge-accent-accent.tc-badge--edge-accent-accent{border-color:var(--tc-accent);color:var(--tc-accent)}
.tc-brand--t16.tc-brand--t16{font-size:16px}
.tc-brand__logo--h60-w150.tc-brand__logo--h60-w150{height:60px;width:150px}
.tc-brand__logo--h48-w118.tc-brand__logo--h48-w118{height:48px;width:118px}
.tc-brand__logo--h17-w44.tc-brand__logo--h17-w44{height:17px;width:44px}
.tc-brand__logo--h42-w104.tc-brand__logo--h42-w104{height:42px;width:104px}
.tc-btn--on-card.tc-btn--on-card{background:var(--tc-card)}
.tc-btn--padx8.tc-btn--padx8{padding:0 8px}
.tc-btn--jc-center-fill.tc-btn--jc-center-fill{justify-content:center;flex:1}
.tc-btn--jc-center.tc-btn--jc-center{justify-content:center}
.tc-btn--fontstyle-italic.tc-btn--fontstyle-italic{font-style:italic}
.tc-btn.is-focus{outline:1.5px solid var(--tc-accent);outline-offset:1px}
.tc-btn--padx3.tc-btn--padx3{padding:0 3px}
.tc-btn--self-start.tc-btn--self-start{align-self:start}
.tc-btn--padx4.tc-btn--padx4{padding:0 4px}
.tc-btn--padx6.tc-btn--padx6{padding:0 6px}
.tc-card--alert.tc-card--alert{border-color:var(--tc-danger)}
.tc-card--flush.tc-card--flush{margin:0}
.tc-card--above-wide.tc-card--above-wide{margin-top:var(--tc-gap-wide)}
.tc-card--edge-accent.tc-card--edge-accent{border-color:var(--tc-accent)}
.tc-card--edge-accent-flush.tc-card--edge-accent-flush{border-color:var(--tc-accent);margin:0}
.tc-card--snug.tc-card--snug{padding:var(--tc-gap-wide) var(--tc-page-gutter-narrow)}
.tc-danger--top0-pad.tc-danger--top0-pad{margin-top:0;padding:var(--tc-gap-wide) var(--tc-page-gutter-narrow)}
.tc-danger--topauto-flush-padt.tc-danger--topauto-flush-padt{margin-top:auto;padding:var(--tc-gap-wide) 0 0}
.tc-diag--danger.tc-diag--danger{color:var(--tc-danger)}
.tc-diag--above-normal-ink.tc-diag--above-normal-ink{margin-top:var(--tc-gap);color:var(--tc-ink)}
.tc-dialog--max420-flush.tc-dialog--max420-flush{max-width:420px;margin:0}
.tc-dialog--max520-padt0-padb0.tc-dialog--max520-padt0-padb0{max-width:520px;padding-top:0;padding-bottom:0}
.tc-dialog--max520.tc-dialog--max520{max-width:520px}
.tc-dialog--max560.tc-dialog--max560{max-width:560px}
.tc-dialog--max540.tc-dialog--max540{max-width:540px}
.tc-dialog--step520 > *{max-width:calc(520px - 2*var(--tc-page-gutter))}
.tc-dialog--step560 > *{max-width:calc(560px - 2*var(--tc-page-gutter))}
.tc-dialog--step760 > *{max-width:calc(760px - 2*var(--tc-page-gutter))}
.tc-dialog--padt0-padb0.tc-dialog--padt0-padb0{padding-top:0;padding-bottom:0}
.tc-dialog--max440-padt0-padb0.tc-dialog--max440-padt0-padb0{max-width:440px;padding-top:0;padding-bottom:0}
.tc-zone.tc-zone{text-align:center}
.tc-root__card-body.tc-root__card-body{font-size:12px;padding:12px 14px}
.tc-print__sources.tc-print__sources{font-size:11px;color:#555}
.tc-print__foot.tc-print__foot{margin-top:20px;font-size:10.5px;color:#555;border-top:.5px solid #bbb;padding-top:6px}
.tc-card__pick.tc-card__pick{align-items:flex-start;display:flex;gap:9px}
.tc-stack__item-title.tc-stack__item-title{font-weight:600;font-size:13.5px}
.tc-stack__item-note.tc-stack__item-note{font-size:12.5px;color:var(--tc-muted);margin-top:3px}
.tc-win__body--pad.tc-win__body--pad{background:var(--tc-bg);padding:var(--tc-gap-loose) var(--tc-page-gutter)}
.tc-stack__item-aside.tc-stack__item-aside{font-size:11.5px;color:var(--tc-dusty);margin-top:6px}
.tc-railsec__tags.tc-railsec__tags{padding:0 16px}
.tc-win__note.tc-win__note{font-size:13px;color:var(--tc-muted)}
.tc-win__sheet--pad.tc-win__sheet--pad{background:var(--tc-surface);padding:var(--tc-gap-wide)}
.tc-sec__acts.tc-sec__acts{margin-top:7px}
.tc-field__photo-row.tc-field__photo-row{align-items:flex-start;display:flex;gap:14px}
.tc-field__photo-side.tc-field__photo-side{align-items:flex-start}
.tc-form__cols.tc-form__cols{align-content:flex-start;align-items:flex-start;flex:1 1 420px;gap:13px 16px}
.tc-dialog__split.tc-dialog__split{align-items:flex-start;display:flex;flex-wrap:wrap;gap:18px}
.tc-dialog__photo.tc-dialog__photo{position:relative;height:190px;border-radius:4px;overflow:hidden;flex:none;width:190px}
.tc-dialog__photo-img.tc-dialog__photo-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tc-dialog__photo-frame.tc-dialog__photo-frame{position:absolute;inset:22px;border:1.5px solid rgba(255,253,247,.9);border-radius:3px}
.tc-dialog__photo-rule.tc-dialog__photo-rule{position:absolute;left:22px;right:22px;top:50%;height:.5px;background:rgba(255,253,247,.45)}
.tc-dialog__photo-rule-v.tc-dialog__photo-rule-v{position:absolute;top:22px;bottom:22px;left:50%;background:rgba(255,253,247,.45);width:.5px}
.tc-dialog__side.tc-dialog__side{flex:1 1 200px}
.tc-doc__sec.tc-doc__sec{margin-top:18px}
.tc-line__text.tc-line__text{font-size:12.5px}
.tc-doc__fields.tc-doc__fields{margin:12px 0;align-items:flex-end;display:flex;flex-wrap:wrap;gap:12px 16px}
.tc-doc__note.tc-doc__note{margin-top:14px;font-size:11.5px;color:var(--tc-dusty)}
.tc-sheet__fields.tc-sheet__fields{gap:11px 14px}
.tc-side__acts.tc-side__acts{padding:12px 20px 0}
.tc-sec__note.tc-sec__note{font-size:12px;color:var(--tc-muted)}
.tc-main__results.tc-main__results{padding:14px var(--tc-page-gutter)}
.tc-card__top11.tc-card__top11{margin-top:11px}
.tc-card__acts.tc-card__acts{margin-top:12px}
/* Почему кнопка недоступна — строкой под рядом, у правого края: рядом с кнопкой причина сдвинула бы её из столбца. */
.tc-card__why{margin-top:6px;text-align:right;font-size:11.5px;color:var(--tc-dusty)}
.tc-card__line.tc-card__line{font-size:13px}
.tc-card__top8.tc-card__top8{margin-top:8px}
.tc-sheet__keys.tc-sheet__keys{font-size:13px;align-items:baseline;display:grid;gap:9px 16px;grid-template-columns:7.2em 1fr}
.tc-card__alert-note.tc-card__alert-note{font-size:12.5px;color:var(--tc-muted);margin-top:9px}
.tc-card__top2.tc-card__top2{margin-top:2px}
.tc-form__col--460.tc-form__col--460{flex:1 1 460px}
.tc-form__col--300.tc-form__col--300{flex:1 1 300px}
.tc-card__top9.tc-card__top9{margin-top:9px}
.tc-card__split.tc-card__split{align-items:flex-start;display:flex;flex-wrap:wrap;gap:12px}
.tc-card__qr.tc-card__qr{border:.5px solid var(--tc-edge);border-radius:4px;flex:none;padding:8px}
.tc-card__qr-img.tc-card__qr-img{display:block;width:104px;height:104px;image-rendering:pixelated}
.tc-card__qr-side.tc-card__qr-side{flex:1 1 140px}
.tc-card__warn.tc-card__warn{font-size:11.5px;color:var(--tc-danger);margin-top:8px}
.tc-main__hero.tc-main__hero{align-items:flex-start;display:flex;flex-wrap:wrap;gap:22px;padding:34px 24px}
.tc-main__hero-side.tc-main__hero-side{min-width:0;flex:1 1 320px}
.tc-main__hero-title.tc-main__hero-title{font-family:var(--tc-font-serif);font-size:26px}
.tc-doc__acts.tc-doc__acts{margin-top:14px}
.tc-fset__grid.tc-fset__grid{max-width:1100px;min-width:0;display:grid;gap:2px 24px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
/* Колонка сетки — источник и выбранное под ним: вместе, как бы сетка ни переносилась. */
.tc-fset__col.tc-fset__col{display:flex;flex-direction:column;gap:2px;min-width:0}
.tc-card__note.tc-card__note{font-size:11.5px;color:var(--tc-muted);margin-top:9px;line-height:1.55}
.tc-card__foot.tc-card__foot{border-top:.5px solid var(--tc-hair);margin-top:11px;padding-top:9px}
.tc-card__above.tc-card__above{font-size:11.5px;color:var(--tc-dusty);margin:-3px 0 8px}
.tc-card__grid.tc-card__grid{margin-top:11px;align-items:center;display:grid;gap:8px 12px;grid-template-columns:92px minmax(0,1fr) auto}
.tc-card__rows.tc-card__rows{font-size:11.5px;display:grid;gap:7px 0;grid-template-columns:minmax(0,1fr)}
.tc-card__note-dusty.tc-card__note-dusty{font-size:11.5px;color:var(--tc-dusty);margin-top:9px}
.tc-root__bar-row.tc-root__bar-row{justify-content:flex-end;border-bottom:.5px solid var(--tc-hair);padding:12px 20px 96px}
.tc-card__fields.tc-card__fields{align-items:flex-end;display:flex;flex-wrap:wrap}
.tc-sheet__checks.tc-sheet__checks{margin-top:4px}
.tc-main__banner.tc-main__banner{border-bottom:.5px solid var(--tc-rule);background:var(--tc-surface);padding:14px 20px}
.tc-main__strip.tc-main__strip{border-bottom:.5px solid var(--tc-hair);padding:9px 20px}
.tc-main__banner--snug.tc-main__banner--snug{border-bottom:.5px solid var(--tc-rule);background:var(--tc-surface);padding:var(--tc-gap-wide) var(--tc-page-gutter)}
.tc-doc__sec--rule.tc-doc__sec--rule{margin-top:20px;padding-top:12px;border-top:.5px solid var(--tc-hair)}
.tc-doc__files.tc-doc__files{font-size:12.5px;color:var(--tc-muted)}
.tc-main__foot.tc-main__foot{border-top:.5px solid var(--tc-hair);font-size:11.5px;color:var(--tc-dusty);padding:14px 20px}
.tc-main__thumbs.tc-main__thumbs{padding:6px 20px 18px}
/* Полоса витрины узкая нарочно — своим контейнером, иначе «...» не появится на широком кадре. */
.tc-root__bar-box.tc-root__bar-box{padding-bottom:88px;max-width:460px;container:tcbox / inline-size}
.tc-doc__heading.tc-doc__heading{font-size:15.5px;font-weight:600}
.tc-doc__sec > .tc-doc__heading,.tc-doc__acts > .tc-doc__heading{margin-bottom:8px}
.tc-doc__body.tc-doc__body{font-size:14px;line-height:1.7}
.tc-main__stage.tc-main__stage{text-align:center;align-items:center;padding:34px 20px}
.tc-main__stage-note.tc-main__stage-note{font-size:12px;color:var(--tc-muted);max-width:44ch}
.tc-root__compose.tc-root__compose{max-width:400px;gap:0;width:100%}
.tc-sheet__from.tc-sheet__from{font-size:12px;line-height:1.5;color:var(--tc-muted);padding-top:2px}
.tc-sheet__pick.tc-sheet__pick{min-height:210px;align-items:stretch}
.tc-sheet__pick-rail.tc-sheet__pick-rail{border-right:.5px solid var(--tc-hair);padding:9px 0;width:212px}
.tc-sheet__pick-list.tc-sheet__pick-list{min-width:0;flex:1;padding:9px 0}
.tc-sheet__pick--196.tc-sheet__pick--196{min-height:196px}
.tc-queue__acts.tc-queue__acts{margin-top:3px}
.tc-card__head.tc-card__head{font-size:12px;padding-bottom:9px;border-bottom:.5px solid var(--tc-hair)}
.tc-card__files.tc-card__files{padding-top:11px;margin-top:11px;border-top:.5px solid var(--tc-hair)}
.tc-card__caption.tc-card__caption{font-size:11.5px;color:var(--tc-dusty);padding-top:9px;line-height:1.55}
.tc-main__cards.tc-main__cards{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));padding:14px 20px}
.tc-card__fields--gap.tc-card__fields--gap{gap:var(--tc-gap-wide)}
.tc-card__top10.tc-card__top10{margin-top:10px}
.tc-card__fields--rule.tc-card__fields--rule{margin-top:12px;padding-top:11px;border-top:.5px solid var(--tc-hair)}
/* Ряд полей с отказами под ними: поля — по верху, чтобы отказ не поднимал соседей. */
.tc-card__fields--top.tc-card__fields--top{align-items:flex-start}
.tc-card__lede.tc-card__lede{font-size:12.5px;color:var(--tc-muted);margin-bottom:10px}
.tc-main__diag.tc-main__diag{padding:0 20px 14px}
.tc-dialog__logo.tc-dialog__logo{justify-content:center;margin:0 0 13px}
.tc-card__num.tc-card__num{font-size:20px;font-family:var(--tc-font-serif)}
.tc-dialog__logo--wide.tc-dialog__logo--wide{justify-content:center;margin:6px 0 20px}
.tc-card__term.tc-card__term{font-weight:600;margin-bottom:4px}
.tc-railsec__note.tc-railsec__note{font-size:11.5px;color:var(--tc-dusty);padding:2px 16px}
.tc-main__foot-acts.tc-main__foot-acts{border-top:.5px solid var(--tc-hair);margin-top:auto;padding:12px 14px}
.tc-main__person.tc-main__person{padding:14px}
.tc-main__person-side.tc-main__person-side{min-width:0}
.tc-main__person-name.tc-main__person-name{font-family:var(--tc-font-serif);font-size:18px}
.tc-main__person-acts.tc-main__person-acts{padding:0 14px 12px}
.tc-doc__sec--rule16.tc-doc__sec--rule16{margin-top:16px;padding-top:12px;border-top:.5px solid var(--tc-hair)}
.tc-doc__link.tc-doc__link{font-size:13px;color:var(--tc-accent)}
.tc-docbar--rule.tc-docbar--rule{margin:0 0 12px;border-bottom:.5px solid var(--tc-hair);padding:7px 0}
.tc-empty--dusty.tc-empty--dusty{color:var(--tc-dusty)}
.tc-empty--dashed.tc-empty--dashed{border:.5px dashed var(--tc-edge);border-radius:4px;margin:0;padding:22px}
.tc-empty--drop.tc-empty--drop{background:var(--tc-surface);border:1px dashed var(--tc-accent);border-radius:4px;gap:8px;padding:24px;width:520px;max-width:100%}
.tc-empty--drop-side.tc-empty--drop-side{margin-top:8px;background:var(--tc-surface);border:1px dashed var(--tc-accent);border-radius:4px;gap:6px;padding:16px}
/* Отказ броска (задача Carrel 265): строки отказа не видны, пока сценарий не откажет файлу, которого поле формы листа не берёт; тогда лист говорит одну — красным, размером первой строки, вместо всех слов; рамка и значок красные. */
.tc-empty__refusal.tc-empty__refusal{font-size:13.5px;color:var(--tc-danger)}
.tc-empty__refusal:not(.is-on){display:none}
.tc-empty.is-refused > :not(svg):not(.is-on){display:none}
.tc-empty--drop.is-refused{border-color:var(--tc-danger)}
.tc-empty.is-refused > .tc-ico--accent{stroke:var(--tc-danger)}
.tc-empty--t12-pad.tc-empty--t12-pad{font-size:12px;padding:var(--tc-gap-wide) var(--tc-page-gutter)}
.tc-field--fill300.tc-field--fill300{flex:1 1 300px}
.tc-field--fill200.tc-field--fill200{flex:1 1 200px}
.tc-field--fix130.tc-field--fix130{flex:0 0 130px}
.tc-field--fix96.tc-field--fix96{flex:0 0 96px}
.tc-field--fill120.tc-field--fill120{flex:1 1 120px}
.tc-field--gap.tc-field--gap{gap:var(--tc-gap)}
.tc-field--max640-fill460.tc-field--max640-fill460{max-width:640px;flex:1 1 460px}
.tc-field--inline{flex-direction:row;align-items:center;gap:8px}
.tc-field--w280.tc-field--w280{width:280px}
.tc-field--w580.tc-field--w580{width:580px;max-width:100%}
/* Пояснение поля на странице настроек и администрирования — не шире колонки чтения (владелец, 27.10). */
.tc-field__hint--max580.tc-field__hint--max580{max-width:580px}
.tc-msg--max580.tc-msg--max580{max-width:580px}
.tc-field--fixauto.tc-field--fixauto{flex:0 1 auto;min-width:0;max-width:100%}
.tc-field--w100.tc-field--w100{width:100%}
.tc-field--flex2-280.tc-field--flex2-280{flex:2 1 280px}
.tc-field--fix150.tc-field--fix150{flex:0 0 150px}
.tc-field--flex3-320.tc-field--flex3-320{flex:3 1 320px}
.tc-field--flex3-340.tc-field--flex3-340{flex:3 1 340px}
.tc-field__hint--max150.tc-field__hint--max150{max-width:150px}
.tc-field__hint--above-normal.tc-field__hint--above-normal{margin-top:var(--tc-gap)}
.tc-field__hint--flush-fill.tc-field__hint--flush-fill{margin:0;flex:1}
.tc-field__hint--t11-dusty.tc-field__hint--t11-dusty{font-size:11px;color:var(--tc-dusty)}
.tc-field__hint--gutter.tc-field__hint--gutter{padding:6px var(--tc-page-gutter) 4px}
.tc-fields--bleed.tc-fields--bleed{padding-left:0;padding-right:0}
.tc-fields--cols130.tc-fields--cols130{grid-template-columns:130px minmax(0,1fr)}
.tc-fields--flush-padt.tc-fields--flush-padt{padding:var(--tc-gap-wide) 0 0}
.tc-fields--cols88.tc-fields--cols88{grid-template-columns:88px minmax(0,1fr)}
.tc-fields--pad-inset.tc-fields--pad-inset{padding:var(--tc-gap-tight) var(--tc-page-gutter-narrow) var(--tc-gap-wide)}
.tc-form--padb.tc-form--padb{padding-bottom:var(--tc-gap-wide)}
.tc-form--gap-fields-pad0.tc-form--gap-fields-pad0{gap:var(--tc-gap-wide) var(--tc-gap-loose);padding:0}
.tc-form--col.tc-form--col{flex-direction:column;flex-wrap:nowrap}
.tc-form--pad0.tc-form--pad0{padding:0}
.tc-form--gap-wide.tc-form--gap-wide{gap:var(--tc-gap-wide)}
.tc-form--mid340.tc-form--mid340{max-width:340px;margin:0 auto;width:100%}
/* Форма без своих полей по бокам (в листе): поля страницы в ней нет — таблица не выходит за форму и стоит
   в её ширину (свободная сборка 10.11). */
.tc-form--padl0-padr0.tc-form--padl0-padr0{padding-left:0;padding-right:0;--tc-page-gutter:0px}
.tc-form--padb0.tc-form--padb0{padding-bottom:0}
.tc-formfoot--padl0-padr0.tc-formfoot--padl0-padr0{padding-left:0;padding-right:0}
.tc-formfoot--bordertop-0.tc-formfoot--bordertop-0{border-top:0}
.tc-formfoot--wrap.tc-formfoot--wrap{flex-wrap:wrap}
.tc-fset--lead.tc-fset--lead{border-top:0;padding-top:0}
.tc-fset--rule.tc-fset--rule{border-top:.5px solid var(--tc-hair);padding-top:12px}
.tc-grid--flush-fill-pad.tc-grid--flush-fill-pad{margin:0;flex:1;padding:var(--tc-gap)}
.tc-head--mid.tc-head--mid{align-items:center}
/* закрыть панель — в углу, на уровне имени, а не посередине фото */
.tc-head--mid > .tc-acts:has(> .tc-close){align-self:flex-start}
/* имя строки с бейджем укорачивается «…», бейдж остаётся целым */
.tc-row__title:has(> .tc-row__words){display:flex;align-items:baseline;column-gap:4px}
.tc-row__words{min-width:0;overflow:hidden;text-overflow:ellipsis}
.tc-row__title > .tc-row__words + .tc-badge{flex:none}
/* метка коллекции и её имя не расходятся по строкам */
.tc-dim:has(> .tc-mark--inline){white-space:nowrap}
.tc-head--padt-wide.tc-head--padt-wide{padding-top:var(--tc-gap-wide)}
.tc-head--rule.tc-head--rule{padding-bottom:9px;border-bottom:.5px solid var(--tc-rule)}
.tc-head--snug.tc-head--snug{padding-bottom:var(--tc-gap)}
.tc-head__group--ai-center.tc-head__group--ai-center{align-items:center}
.tc-head__sub--top0.tc-head__sub--top0{margin-top:0}
.tc-head__sub--above-normal.tc-head__sub--above-normal{margin-top:var(--tc-gap)}
.tc-head__sub--jc-center.tc-head__sub--jc-center{justify-content:center}
.tc-head__sub--below-wide.tc-head__sub--below-wide{margin-bottom:var(--tc-gap-wide)}
.tc-head__title--t19.tc-head__title--t19{font-size:19px}
.tc-head__title--t18.tc-head__title--t18{font-size:18px}
.tc-head__title--t17.tc-head__title--t17{font-size:17px}
.tc-head__title--below-tight.tc-head__title--below-tight{margin-bottom:var(--tc-gap-tight)}
.tc-head__title--below-normal.tc-head__title--below-normal{margin-bottom:var(--tc-gap)}
.tc-head__titles--row.tc-head__titles--row{align-items:flex-start;display:flex;gap:var(--tc-fields-gap)}
.tc-head__titles.tc-line{gap:var(--tc-fields-gap)}
.tc-ico--op-35.tc-ico--op-35{opacity:.35}
.tc-ico--sq17.tc-ico--sq17{height:17px;width:17px}
.tc-ico--sq16.tc-ico--sq16{height:16px;width:16px}
.tc-ico--mr6.tc-ico--mr6{margin-right:6px}
.tc-ico--fix.tc-ico--fix{flex:none}
.tc-ico--sq34.tc-ico--sq34{height:34px;width:34px}
.tc-ico--sq30.tc-ico--sq30{height:30px;width:30px}
.tc-ico--sq19.tc-ico--sq19{height:19px;width:19px}
.tc-in--w190.tc-in--w190{width:190px}
.tc-in--w52{width:52px}
.tc-in--t12-w200.tc-in--t12-w200{font-size:12px;width:200px;max-width:200px}
.tc-in--body-sm.tc-in--body-sm{min-height:132px;font-size:14px;line-height:1.6}
.tc-in--t12-w240.tc-in--t12-w240{font-size:12px;width:240px}
.tc-in--h26-w190.tc-in--h26-w190{height:26px;width:190px;max-width:190px}
.tc-in--fill.tc-in--fill{flex:1}
.tc-in--dusty.tc-in--dusty{color:var(--tc-dusty)}
.tc-in--t11-5.tc-in--t11-5{font-size:11.5px}
.tc-in--t11.tc-in--t11{font-size:11px}
.tc-in--t11-fill.tc-in--t11-fill{font-size:11px;flex:1}
.tc-in--key.tc-in--key{font-size:14px;letter-spacing:.04em}
.tc-in--chip.tc-in--chip{height:22px;display:inline-flex;width:52px}
/* Заголовок колонки над полями-фишками меню весов: той же ширины, что поле. */
.tc-rubric__col{width:52px;flex:none;text-align:center;letter-spacing:0}
.tc-in--paste.tc-in--paste{font-size:11px;white-space:pre-wrap;min-height:88px;align-items:flex-start}
.tc-in--key-sm.tc-in--key-sm{min-width:200px;font-size:13px;letter-spacing:.03em}
.tc-in--line.tc-in--line{min-width:220px;max-width:540px;font-size:11px}
.tc-in--wrap-gap.tc-in--wrap-gap{flex-wrap:wrap;gap:var(--tc-gap-tight)}
.tc-in--note.tc-in--note{min-height:82px;font-size:13.5px;line-height:1.6}
.tc-in--t11-5-fill.tc-in--t11-5-fill{font-size:11.5px;flex:1}
.tc-in--h26-w120.tc-in--h26-w120{height:26px;width:120px}
.tc-in--minh104-t13-5.tc-in--minh104-t13-5{min-height:104px;font-size:13.5px}
.tc-in--t12-fill.tc-in--t12-fill{font-size:12px;flex:1}
.tc-in--h26-w220.tc-in--h26-w220{height:26px;width:220px;max-width:220px}
.tc-in--tags.tc-in--tags{height:auto;min-height:28px;flex-wrap:wrap;gap:5px;padding:4px 8px}
/* Плашки колонками — участники события (задача 77): знакомый — меткой книги и именем, незнакомый — адресом; строка набора — в следующей клетке. */
.tc-in--cols.tc-in--cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,max-content));gap:5px 10px;align-items:center;justify-items:start;padding:5px 8px}
.tc-in__add{border:0;background:transparent;font:inherit;color:var(--tc-ink);outline:0;min-width:120px;flex:1 1 120px;padding:0;height:20px}
.tc-in__enter{display:none}
.tc-in__add::placeholder{color:var(--tc-dusty)}
/* Снятая крестиком плашка без сценария: не уйдёт с формой и так и выглядит. */
.tc-tag--pill:has(> .tc-check__box:not(:checked)){text-decoration:line-through;opacity:.55}
.tc-drop:has(> .tc-in--cols){display:flex;flex-direction:column;align-items:stretch;gap:4px}
.tc-drop > .tc-in--cols{flex:1 1 auto}
.tc-sec__list--cols.tc-sec__list--cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,max-content));gap:5px 18px}
.tc-sec__list--cols > li{display:flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}
/* Метка — по середине прописных, а не всей строки с выносными: на 1 px выше. */
.tc-sec__list--cols > li > .tc-mark{transform:translateY(-1px)}
.tc-in--h26-w200.tc-in--h26-w200{height:26px;width:200px;max-width:200px}
.tc-in--title.tc-in--title{height:auto;font-family:var(--tc-font-serif);font-size:24px;padding:7px 12px}
.tc-in--body.tc-in--body{min-height:260px;font-size:14.5px;line-height:1.7;padding:14px 16px}
.tc-doc__task.tc-doc__task{align-items:baseline;display:flex;gap:9px}
.tc-list--mx-14.tc-list--mx-14{margin:0 -14px;--tc-page-gutter:var(--tc-page-gutter-narrow)}
.tc-main--zone.tc-main--zone{justify-content:center;color:var(--tc-dusty);align-items:center}
.tc-main--padb180.tc-main--padb180{padding-bottom:180px}
.tc-main--minh88.tc-main--minh88{min-height:88px}
.tc-mark--h20.tc-mark--h20{height:20px}
.tc-mark--h34.tc-mark--h34{height:34px}
.tc-mark--h14.tc-mark--h14{height:14px}
.tc-mark--h11.tc-mark--h11{height:11px}
.tc-mark--inline.tc-mark--inline{vertical-align:-1px;display:inline-block}
.tc-mark--h12.tc-mark--h12{height:12px}


.tc-mark--on-hair.tc-mark--on-hair{background:var(--tc-hair)}
.tc-mark--h32.tc-mark--h32{height:32px}
.tc-menu--w212.tc-menu--w212{width:212px}
.tc-menu--full.tc-menu--full{width:100%}
.tc-menu--w290.tc-menu--w290{width:290px}
.tc-menu--w420.tc-menu--w420{width:420px;max-width:100%}
/* меню из строк с полями: длинная подпись на узком переносится, строка растёт */
.tc-menu--fields .tc-menu__item{height:auto;min-height:28px}
.tc-menu__item--danger.tc-menu__item--danger{color:var(--tc-danger)}
.tc-menu__item--pad5-8-7.tc-menu__item--pad5-8-7{padding:5px 8px 7px}
.tc-menu__item--accent.tc-menu__item--accent{color:var(--tc-accent)}
.tc-menu__item--dusty.tc-menu__item--dusty{color:var(--tc-dusty)}
.tc-menu__item--split.tc-menu__item--split{justify-content:space-between;padding:5px 8px 7px}
.tc-menu__item--col.tc-menu__item--col{height:auto;align-items:stretch;flex-direction:column;gap:6px;padding:7px 8px}
.tc-menu__item--muted.tc-menu__item--muted{color:var(--tc-muted)}
.tc-menu__item--note.tc-menu__item--note{height:24px;font-size:11px;color:var(--tc-dusty);gap:5px}
.tc-meter--max260-fill.tc-meter--max260-fill{max-width:260px;flex:1}
.tc-mono--t11-above-tight.tc-mono--t11-above-tight{font-size:11px;margin-top:var(--tc-gap-tight)}
.tc-mono--ls0-dusty.tc-mono--ls0-dusty{letter-spacing:0;color:var(--tc-dusty)}
.tc-mono--ls0-tt-none.tc-mono--ls0-tt-none{letter-spacing:0;text-transform:none}
.tc-mono--t11-5-dusty.tc-mono--t11-5-dusty{font-size:11.5px;color:var(--tc-dusty)}
.tc-mono--below-normal.tc-mono--below-normal{margin-bottom:var(--tc-gap)}
.tc-mono--ls0-danger.tc-mono--ls0-danger{letter-spacing:0;color:var(--tc-danger)}
.tc-mono--t11-ml4.tc-mono--t11-ml4{font-size:11px;margin-left:4px}
.tc-mono--chip.tc-mono--chip{background:var(--tc-card);border-radius:2px;padding:1px 4px}
.tc-mono--t11-muted.tc-mono--t11-muted{font-size:11px;color:var(--tc-muted)}
.tc-mono--danger.tc-mono--danger{color:var(--tc-danger)}
.tc-mono--ls0.tc-mono--ls0{letter-spacing:0}
.tc-mono--accent.tc-mono--accent{color:var(--tc-accent)}
.tc-mono--f-mono.tc-mono--f-mono{font-family:var(--tc-font-mono)}
.tc-mono--muted.tc-mono--muted{color:var(--tc-muted)}
.tc-mono--t11.tc-mono--t11{font-size:11px}
.tc-mono--t10-dusty.tc-mono--t10-dusty{font-size:10px;color:var(--tc-dusty)}
.tc-mono--dusty-t11.tc-mono--dusty-t11{color:var(--tc-dusty);font-size:11px}
.tc-mono--dusty.tc-mono--dusty{color:var(--tc-dusty)}
.tc-mono--t11-dusty.tc-mono--t11-dusty{font-size:11px;color:var(--tc-dusty)}
.tc-mono--t11-dusty-ls0.tc-mono--t11-dusty-ls0{font-size:11px;color:var(--tc-dusty);letter-spacing:0}
.tc-msg--flush.tc-msg--flush{margin:0}
.tc-msg--m0-14-12.tc-msg--m0-14-12{margin:0 14px 12px}
.tc-msg--flush-above-wide.tc-msg--flush-above-wide{margin:var(--tc-gap-wide) 0 0}
.tc-msg--flush-below-wide.tc-msg--flush-below-wide{margin:0 0 var(--tc-gap-wide)}
.tc-msg--flush-r0.tc-msg--flush-r0{margin:0;border-radius:0}
.tc-msg--flush-r0 .tc-push.tc-push{display:grid;grid-template-columns:1fr 1fr;gap:6px;flex:none}
.tc-msg--flush-r0 .tc-push > .tc-btn{width:100%}
.tc-msg--flush-r0 .tc-push > .is-primary{grid-column:1/-1}
.tc-msg--mr0-ml0.tc-msg--mr0-ml0{margin-right:0;margin-left:0}
.tc-msg--flush-top2.tc-msg--flush-top2{margin:2px 0 0}
.tc-msg--mx20.tc-msg--mx20{margin:0 20px}
.tc-msg--flush-above-tight.tc-msg--flush-above-tight{margin:var(--tc-gap-tight) 0 0}
.tc-msg--flush-above-normal.tc-msg--flush-above-normal{margin:var(--tc-gap) 0 0}
.tc-msg--around-normal.tc-msg--around-normal{margin:var(--tc-gap) 0}
.tc-nav--top2.tc-nav--top2{margin-top:2px}
.tc-nav__short{display:none}
.tc-dialog__lede.tc-dialog__lede{font-size:13px;color:var(--tc-muted);margin:0}
.tc-print__row--3col.tc-print__row--3col{grid-template-columns:minmax(0,1fr) 10em 14.5em}
.tc-prose--t13.tc-prose--t13{font-size:13px}
.tc-prose--read.tc-prose--read{font-size:14px;line-height:1.65}
.tc-prose--lead.tc-prose--lead{font-size:14.5px;line-height:1.7}
.tc-prose--above-wide.tc-prose--above-wide{margin-top:var(--tc-gap-wide)}
.tc-prose--above-loose.tc-prose--above-loose{margin-top:var(--tc-gap-loose)}
.tc-prose--t13-flush-padt.tc-prose--t13-flush-padt{font-size:13px;padding:var(--tc-gap-wide) 0 0}
.tc-prose--muted.tc-prose--muted{color:var(--tc-muted)}
.tc-prose--muted-flush-below-normal.tc-prose--muted-flush-below-normal{color:var(--tc-muted);margin:0 0 var(--tc-gap)}
.tc-queue--flush-full.tc-queue--flush-full{margin:0;width:100%}
.tc-queue--flush-wauto.tc-queue--flush-wauto{margin:0;width:auto}
.tc-railsec--above-wide.tc-railsec--above-wide{margin-top:var(--tc-gap-wide)}
.tc-range--wrap.tc-range--wrap{flex-wrap:wrap}

.tc-root--on-surface.tc-root--on-surface{background:var(--tc-surface)}
.tc-root--top.tc-root--top{align-items:flex-start}
.tc-root--on-bg.tc-root--on-bg{background:var(--tc-bg)}
.tc-root--pad14.tc-root--pad14{padding:14px}
.tc-root--row.tc-root--row{display:flex;align-items:center;gap:8px}
.tc-root--flat.tc-root--flat{overflow:hidden;padding:0}

.tc-root--minh88.tc-root--minh88{min-height:88px}
.tc-root--pad16.tc-root--pad16{padding:16px}
.tc-root--mid.tc-root--mid{justify-content:center}
.tc-root--pad18.tc-root--pad18{padding:18px}



.tc-root--pad10-14.tc-root--pad10-14{padding:10px 14px}

.tc-row--avatarcols--inset.tc-row--avatarcols--inset{padding-left:var(--tc-page-gutter-narrow);padding-right:var(--tc-page-gutter-narrow)}
.tc-row--excerpt--inset.tc-row--excerpt--inset{padding-left:var(--tc-page-gutter-narrow);padding-right:var(--tc-page-gutter-narrow)}
.tc-row--excerpt--cols3-62-148.tc-row--excerpt--cols3-62-148{grid-template-columns:3px minmax(0,1fr) 62px 148px}
.tc-row--excerpt--cols3-62-148.tc-row--excerpt--cols3-62-148 > :nth-child(3){display:block}
.tc-row--slim.tc-row--slim{padding-left:14px;padding-right:14px;min-height:32px;grid-template-columns:14px 3px minmax(0,1fr) 110px}
.tc-row--tickmarkcols--inset.tc-row--tickmarkcols--inset{padding-left:var(--tc-page-gutter-narrow);padding-right:var(--tc-page-gutter-narrow)}
.tc-row--timecols--inset.tc-row--timecols--inset{padding-left:var(--tc-page-gutter-narrow);padding-right:var(--tc-page-gutter-narrow)}
.tc-row--timecols--op-7.tc-row--timecols--op-7{opacity:.7}
.tc-row__detail--w40pc.tc-row__detail--w40pc{width:40%}
.tc-row__detail--w30pc.tc-row__detail--w30pc{width:30%}
.tc-row__detail--w25pc.tc-row__detail--w25pc{width:25%}
.tc-row__lead--w36.tc-row__lead--w36{width:36px}
.tc-row__source--w70pc.tc-row__source--w70pc{width:70%}
.tc-row__source--w55pc.tc-row__source--w55pc{width:55%}
.tc-row__source--w62pc.tc-row__source--w62pc{width:62%}
.tc-row__text--row.tc-row__text--row{align-items:center;flex-direction:row;gap:10px}
.tc-rubric--bot2.tc-rubric--bot2{margin-bottom:2px}
.tc-rubric--split.tc-rubric--split{justify-content:space-between;align-items:baseline;display:flex}
.tc-rubric--nudge.tc-rubric--nudge{margin:2px 0 -2px}
.tc-rubric--danger.tc-rubric--danger{color:var(--tc-danger)}
.tc-rubric--below-normal.tc-rubric--below-normal{margin-bottom:var(--tc-gap)}
.tc-rubric--pad-inset.tc-rubric--pad-inset{padding:0 var(--tc-page-gutter-narrow) var(--tc-gap)}
.tc-runbar--danger.tc-runbar--danger{background:transparent;border-bottom:.5px solid var(--tc-danger);color:var(--tc-danger)}
.tc-scrim--padt26.tc-scrim--padt26{padding-top:26px}
.tc-scrim--padt38.tc-scrim--padt38{padding-top:38px}
.tc-search.is-focus{outline:1.5px solid var(--tc-accent);outline-offset:1px;border-color:var(--tc-accent)}
.tc-search--full.tc-search--full{flex:1 1 auto;width:100%}
.tc-search--fill180-wauto.tc-search--fill180-wauto{flex:1 1 180px;width:auto}
.tc-sec--flush-flush-padt.tc-sec--flush-flush-padt{margin:0;padding:var(--tc-gap-wide) 0 0}
.tc-seg--start.tc-seg--start{align-self:flex-start}
.tc-seg--h22.tc-seg--h22{height:22px}
.tc-seg--t11-5.tc-seg--t11-5{font-size:11.5px}

.tc-sheet--w480.tc-sheet--w480{width:480px}
.tc-sheet--w520.tc-sheet--w520{width:520px}
.tc-sheet--w400.tc-sheet--w400{width:400px}
.tc-sheet--w680.tc-sheet--w680{width:680px}
.tc-sheet--w900.tc-sheet--w900{width:900px}
.tc-sheet--max100pc-full.tc-sheet--max100pc-full{max-width:100%;width:100%}
.tc-sheet__body--pad0.tc-sheet__body--pad0{padding:0}
.tc-shell__body--minh230.tc-shell__body--minh230{min-height:230px}
.tc-shell__body--minh390.tc-shell__body--minh390{min-height:390px}
.tc-shell__body--minh340.tc-shell__body--minh340{min-height:340px}
.tc-shell__body--minh560.tc-shell__body--minh560{min-height:560px}
.tc-shell__body--tcrail-56.tc-shell__body--tcrail-56{--tc-rail:56px}
.tc-shell__body--minh280.tc-shell__body--minh280{min-height:280px}
.tc-shell__rail--zone.tc-shell__rail--zone{justify-content:center;color:var(--tc-dusty);align-items:center}
.tc-shell__rail--icons.tc-shell__rail--icons{align-items:center;padding:12px 4px}
/* Рейл из значков на любой ширине: пустой строки и строки о версии в нём нет — в 56 px они не помещаются; эмблема davloom в подвале остаётся, по середине (проверка геометрии, 08.11). */
.tc-shell__rail--icons .tc-railfoot__about,.tc-shell__rail--icons .tc-empty{display:none}
.tc-shell__rail--icons .tc-railfoot{align-self:stretch;justify-content:center;padding-left:0;padding-right:0}
.tc-shell__rail--icons .tc-railfoot > .tc-emblem{margin-left:0}
.tc-side--zone.tc-side--zone{justify-content:center;color:var(--tc-dusty);align-items:center}
.tc-side--drop.tc-side--drop{outline:1.5px dashed var(--tc-accent);outline-offset:-3px}
.tc-skel--w16.tc-skel--w16{width:16px}
.tc-skel--w60pc.tc-skel--w60pc{width:60%}
.tc-skel--w45pc.tc-skel--w45pc{width:45%}
.tc-skel--w52pc.tc-skel--w52pc{width:52%}
.tc-dim--muted.tc-dim--muted{color:var(--tc-muted)}
.tc-dim--t12-5.tc-dim--t12-5{font-size:12.5px}
.tc-field__rail.tc-field__rail{height:3px;background:var(--tc-edge);border-radius:2px;position:relative;flex:1}
.tc-field__fill.tc-field__fill{position:absolute;left:0;top:0;bottom:0;background:var(--tc-accent);border-radius:2px;width:38%}
.tc-field__knob.tc-field__knob{position:absolute;left:38%;top:-5px;height:13px;border-radius:50%;background:var(--tc-surface);border:.5px solid var(--tc-edge);width:13px}
.tc-dim--t11.tc-dim--t11{font-size:11px}

.tc-dim--accent.tc-dim--accent{color:var(--tc-accent)}
.tc-dim--ml6.tc-dim--ml6{margin-left:6px}

.tc-dim--t11-5.tc-dim--t11-5{font-size:11.5px}
.tc-dim--struck.tc-dim--struck{background:linear-gradient(currentColor,currentColor) no-repeat 0 calc(50% + 1px)/100% 1px}
.tc-drop__anchor.tc-drop__anchor{position:relative}
.tc-drop__panel.tc-drop__panel{position:absolute;top:calc(100% + 5px);left:0;z-index:2}

.tc-top__search.tc-top__search{position:relative;min-width:0;flex:0 1 560px}
/* Подсказки поиска не уже своих строк (до 360 px): поиск, сжатый до своей подсказки, сжимал бы и их (свободная сборка 10.11). */
.tc-top__suggest.tc-top__suggest{position:absolute;top:calc(100% + 5px);left:0;z-index:3;width:max-content;min-width:100%;max-width:360px}
.tc-dim--ls0.tc-dim--ls0{letter-spacing:0}
.tc-plain.tc-plain{text-transform:none;letter-spacing:0;font-weight:400;color:var(--tc-dusty)}
.tc-drop__panel--right.tc-drop__panel--right{position:absolute;top:calc(100% + 5px);right:0;z-index:2}
:is(.tc-drop__panel,.tc-drop__panel--right)[data-tc-side="end"]{left:auto;right:0}
:is(.tc-drop__panel,.tc-drop__panel--right)[data-tc-side="start"]{left:0;right:auto}
.tc-menu__item-indent.tc-menu__item-indent{padding-left:23px}
.tc-field__swatches.tc-field__swatches{height:22px}
.tc-field__swatch.tc-field__swatch{height:17px;border-radius:50%;width:17px}
.tc-field__swatch--on.tc-field__swatch--on,.tc-field__swatch:has(> .tc-seg__box:checked){outline:1.5px solid var(--tc-accent);outline-offset:2px}
label.tc-field__swatch{position:relative;cursor:pointer}
.tc-dim--lh1-55.tc-dim--lh1-55{line-height:1.55}

.tc-table__wrap.tc-table__wrap{align-items:center;display:flex;flex-wrap:wrap;gap:8px 10px;min-width:0;max-width:100%;overflow:hidden}
/* Строка внутри обёртки ячейки переносится, а не режется её краем (свободная сборка 10.11: кнопки строки в ячейке). */
.tc-table__wrap.tc-table__wrap .tc-line{flex-wrap:wrap}
.tc-table__wrap.tc-table__wrap .tc-mono{overflow-wrap:normal;white-space:normal;min-width:0}
.tc-dim--start.tc-dim--start{align-self:start;padding-top:6px}
.tc-dim--t12.tc-dim--t12{font-size:12px}


.tc-dim--fix.tc-dim--fix{flex:none}
.tc-dim--slot.tc-dim--slot{display:inline-block;width:62px}

.tc-bar__count.tc-bar__count{font-weight:600}
.tc-bar__count--t12-5.tc-bar__count--t12-5{font-size:12.5px}
.tc-dim--print.tc-dim--print{color:#555}
.tc-dot--accent.tc-dot--accent{height:6px;border-radius:50%;background:var(--tc-accent);margin-right:5px;display:inline-block;width:6px}

.tc-dim--danger.tc-dim--danger{color:var(--tc-danger)}
.tc-dot--danger.tc-dot--danger{height:6px;border-radius:50%;background:var(--tc-danger);margin-right:5px;display:inline-block;width:6px}
.tc-dot--dusty.tc-dot--dusty{height:6px;border-radius:50%;background:var(--tc-dusty);margin-right:5px;display:inline-block;width:6px}

.tc-print__num.tc-print__num{font-family:var(--tc-font-mono);white-space:nowrap}
.tc-dim--t10-5.tc-dim--t10-5{font-size:10.5px}



.tc-auth__tagline-lead.tc-auth__tagline-lead{font-size:16px;font-weight:600;color:var(--tc-ink);margin-bottom:4px;display:block}
.tc-table--mx-20.tc-table--mx-20{margin:0 calc(-1 * var(--tc-page-gutter))}
.tc-table__file--fill.tc-table__file--fill{flex:1}
.tc-table__filename--accent.tc-table__filename--accent{color:var(--tc-accent)}
.tc-table__filename--t12.tc-table__filename--t12{font-size:12px}
.tc-table__n3--dusty.tc-table__n3--dusty{color:var(--tc-dusty)}
.tc-table__n3--t11.tc-table__n3--t11{font-size:11px}
.tc-table__n4--danger.tc-table__n4--danger{color:var(--tc-danger)}
.tc-table__n4--dusty.tc-table__n4--dusty{color:var(--tc-dusty)}
.tc-table__n4--pos-relative.tc-table__n4--pos-relative{position:relative}
.tc-table__n4--t11.tc-table__n4--t11{font-size:11px}
.tc-tag--pill.tc-tag--pill{align-items:center;display:inline-flex;gap:5px;padding:1px 4px 1px 6px}


.tc-table__name.tc-table__name{font-weight:600}

.tc-thumb--preview.tc-thumb--preview{aspect-ratio:16/10;border-radius:4px}
.tc-thumb--on-card.tc-thumb--on-card{background:var(--tc-card)}
.tc-thumb--folder.tc-thumb--folder{background:none}
.tc-thumb--folder > svg{width:60px;height:60px;stroke:var(--tc-accent);stroke-width:.6;stroke-linejoin:round;fill:var(--tc-card)}
.tc-thumb--wide.tc-thumb--wide{aspect-ratio:16/9;border-radius:4px;border:.5px solid var(--tc-hair)}
.tc-thumb--tile.tc-thumb--tile{height:76px;aspect-ratio:auto;border-radius:5px;border:.5px solid var(--tc-hair);width:76px}
.tc-tick--nudge.tc-tick--nudge{position:relative;top:2px}
.tc-tick--edge-danger.tc-tick--edge-danger{border-color:var(--tc-danger)}
.tc-tick--edge-dusty.tc-tick--edge-dusty{border-color:var(--tc-dusty)}
.tc-tickrow--padl0.tc-tickrow--padl0{padding-left:0}
.tc-tickrow--inset.tc-tickrow--inset{padding-left:var(--tc-page-gutter-narrow)}
.tc-tickrow--h44.tc-tickrow--h44{height:44px}
.tc-tickrow__label--fw600.tc-tickrow__label--fw600{font-weight:600}
.tc-tickrow__meta--dusty.tc-tickrow__meta--dusty{color:var(--tc-dusty)}
.tc-tickrow__tick--ml2.tc-tickrow__tick--ml2{margin-left:2px}
.tc-tickrow__tick--top3.tc-tickrow__tick--top3{margin-top:3px}
.tc-top__actions--gap2.tc-top__actions--gap2{gap:2px}
.tc-table__row--off.tc-table__row--off{opacity:.6}
.tc-table__row--dim.tc-table__row--dim{opacity:.62}
.tc-tree--padx.tc-tree--padx{padding:0 var(--tc-gap)}
.tc-tree--max520.tc-tree--max520{max-width:520px}
.tc-tree__row--padl1-25rem.tc-tree__row--padl1-25rem{padding-left:1.25rem}
.tc-tree__row--op-55.tc-tree__row--op-55{opacity:.55}
.tc-tree__row--padl22.tc-tree__row--padl22{padding-left:22px}
.tc-tree__row--padl40.tc-tree__row--padl40{padding-left:40px}
.tc-tree__row--padl58.tc-tree__row--padl58{padding-left:58px}
.tc-tree__row--padl76.tc-tree__row--padl76{padding-left:76px}
.tc-tree__row--padl44.tc-tree__row--padl44{padding-left:44px}
.tc-tree__row--padl36.tc-tree__row--padl36{padding-left:36px}
.tc-sec__list.tc-sec__list{font-size:12.5px}
.tc-doc__list.tc-doc__list{font-size:14px}
.tc-card__list.tc-card__list{font-size:13px}
.tc-sec__list--muted.tc-sec__list--muted{color:var(--tc-muted)}
.tc-doc__bullets.tc-doc__bullets{font-size:14px;line-height:1.6;padding-left:18px;list-style:disc}
.tc-usermenu.is-focus{outline:1.5px solid var(--tc-accent);outline-offset:1px}
.tc-dim.tc-dim{color:var(--tc-dusty)}
/* names-without-rule: tc-shell tc-say tc-say__full tc-row__lead tc-row__due tc-row__date tc-row__size
   tc-head__text tc-docmeta__sec tc-queue__list tc-queue__name tc-queue__meta
   tc-menu__label tc-auth__tagline tc-auth__link tc-print__cell
   tc-msg__aside tc-stack__item tc-sheet__block tc-line__item
   tc-dim__hint tc-field__zoom
   tc-row__subtitle
   — узел назван, вида у имени нет. Пустое правило — не правило: оно проходило
   classes-defined и уезжало в CSS библиотеки. Список читает линт. */

/* Почта ящика — утверждена 30.09.2026, отложена (Carrel docs/spec/carrel-mailbox.md, раздел 7.24). */

/* Строка письма: флажок выбора, «важное», отправитель, тема с началом
   текста, скрепка, размер, дата. Источника нет: список — одна папка
   одного ящика. */
.tc-row--mailcols{grid-template-columns:16px 14px minmax(110px,190px) minmax(180px,1fr) 14px 64px 112px}
.tc-row__flag,.tc-row__clip{display:flex;align-items:center;justify-content:center;width:14px;height:14px}
.tc-row__flag svg,.tc-row__clip svg{width:13px;height:13px;stroke:var(--tc-dusty);stroke-width:1.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tc-row__flag:not(.is-on) svg{stroke:var(--tc-edge)}
.tc-row__flag.is-on svg{stroke:var(--tc-accent);fill:var(--tc-accent)}
.tc-row__letter{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--tc-muted)}
.tc-row__topic{font-size:13px;color:var(--tc-ink)}
.tc-row.is-unread .tc-row__title,.tc-row.is-unread .tc-row__topic{font-weight:600}
.tc-row.is-unread .tc-row__date{color:var(--tc-ink)}

/* Цитата в тексте письма: строки «>» и цитаты HTML (M-5). */
.tc-quote{margin:0;padding:1px 0 1px 12px;border-left:2px solid var(--tc-edge);color:var(--tc-muted);
  font-size:13.5px;line-height:1.65;white-space:pre-wrap}
.tc-quote .tc-quote{margin-top:6px}

/* Список в тексте письма — с маркерами: у заметки tc-doc__list держит флажки задач. */
.tc-doc__list.tc-doc__list--bullets{padding-left:18px}
.tc-doc__list--bullets > li{display:list-item;list-style:disc}

/* Оригинал письма: iframe с sandbox. Белый фон — чужой документ, тема
   Carrel на него не действует. */
/* Оригинал идёт сразу под заголовком письма, без второго верхнего поля. */
.tc-doc--flush-top{padding-top:0}
.tc-original{display:block;width:100%;height:430px;border:.5px solid var(--tc-edge);border-radius:3px;background:#fff}

@container tcbox (max-width:800px){
  .tc-row--mailcols{grid-template-columns:16px 14px minmax(100px,160px) minmax(140px,1fr) 14px 104px}
  .tc-row--mailcols .tc-row__size{display:none}
}
@container tcbox (max-width:460px){
  .tc-row--mailcols{grid-template-columns:16px minmax(0,1fr) 14px auto;grid-template-areas:"tick who flag when" "tick what what what";
    row-gap:1px;padding-top:7px;padding-bottom:7px}
  .tc-row--mailcols > .tc-tickrow__tick{grid-area:tick;align-self:start;margin-top:4px}
  .tc-row--mailcols .tc-row__title{grid-area:who}
  .tc-row--mailcols .tc-row__flag{grid-area:flag}
  .tc-row--mailcols .tc-row__date{grid-area:when}
  .tc-row--mailcols .tc-row__letter{grid-area:what}
  .tc-row--mailcols .tc-row__flag:not(.is-on){visibility:hidden}
  .tc-row--mailcols .tc-row__clip{display:none}
}
