/* Тарифолог: компоненты. Все значения из tokens.css. */
.tf { font-family: var(--font-sans); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 26px; font-variant-numeric: tabular-nums; }
.tf *, .tf *::before, .tf *::after { box-sizing: border-box; }
.tf :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.tf :where(h1, h2, h3, p) { margin: 0; } /* :where - сброс без веса: отступы классов страницы (.lead, .also, .note) его перекрывают */
.tf-display { font-weight: 800; font-size: 92px; line-height: .94; letter-spacing: -.05em; }
.tf-display b, .tf-h2 b { font-weight: 300; letter-spacing: -.04em; }
.tf-h2 { font-weight: 800; font-size: 44px; line-height: 46px; letter-spacing: -.04em; }
.tf-lead { font-size: 18px; line-height: 27px; color: var(--ink-2); max-width: 30em; }
.tf-small { font-size: 14px; line-height: 20px; color: var(--ink-2); }

/* Panel */
.tf-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--space-4); }

/* Profile */
.tf-profile { display: grid; grid-template-columns: repeat(24, 1fr); gap: var(--space-1); height: 260px; align-items: end; }
.tf-profile i { display: block; width: 100%; border-radius: var(--radius-bar) var(--radius-bar) 3px 3px; background: var(--price-3); transition: background-color .7s cubic-bezier(.2,.7,.2,1); }
.tf-profile i[data-p="1"] { background: var(--price-1); } .tf-profile i[data-p="2"] { background: var(--price-2); }
.tf-profile i[data-p="3"] { background: var(--price-3); } .tf-profile i[data-p="4"] { background: var(--price-4); }
.tf-profile i[data-p="5"] { background: var(--price-5); } .tf-profile i[data-p="6"] { background: var(--price-6); }
.tf-axis { display: grid; grid-template-columns: repeat(24, 1fr); gap: var(--space-1); margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--ink-2); }
@media (max-width: 700px) { .tf-profile { gap: 3px; height: 220px; } .tf-axis { gap: 3px; } }
@media (prefers-reduced-motion: reduce) { .tf-profile i { transition: none; } }

/* PriceScale */
.tf-scale { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.tf-scale span.s { display: flex; gap: 2px; }
.tf-scale span.s i { width: 18px; height: 8px; border-radius: 2px; display: block; }

/* CategorySwitch */
.tf-switch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 680px; }
.tf-switch button { position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px 12px; text-align: left; cursor: pointer; display: grid; gap: 2px; font-family: var(--font-sans); }
.tf-switch button .c { font-weight: 500; font-size: 17px; line-height: 24px; color: var(--ink); }
.tf-switch button .s { font-weight: 300; font-size: 15px; line-height: 20px; color: var(--ink-2); letter-spacing: -.01em; white-space: nowrap; }
.tf-switch button:hover { border-color: var(--line-strong); }
.tf-switch button[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.tf-best { position: absolute; left: 16px; right: 16px; top: -1px; height: 8px; border-radius: 0 0 3px 3px; background: var(--amber); font-size: 0; }
.tf-switch button.is-best .s { color: var(--amber-ink); font-weight: 500; }
@media (max-width: 600px) { .tf-switch { grid-template-columns: repeat(2, 1fr); } }

/* Total */
.tf-total small { display: block; font-size: 14px; line-height: 20px; color: var(--ink-2); margin-bottom: 4px; }
.tf-total .v { font-weight: 300; font-size: 68px; line-height: 1; letter-spacing: -.03em; }
.tf-total .v .cur { font-size: .5em; color: var(--ink-2); margin-left: .15em; }
.tf-total .d { display: block; margin-top: 12px; font-weight: 400; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.tf-total .d b { font-weight: 500; color: var(--amber-ink); } /* янтарём только суммы экономии, остальной текст ink-2 */
.tf-total .d::before { content: ""; display: block; width: 56px; height: 8px; border-radius: 3px; background: var(--amber); margin-bottom: 8px; }
.tf-total .d--current { color: var(--ink-2); font-weight: 400; }
.tf-total .d--current::before { background: var(--track); }

/* Button */
.tf-btn { display: inline-flex; align-items: center; height: 56px; padding: 0 26px; border-radius: var(--radius-control); border: 1px solid transparent; background: var(--ink); color: var(--bg); font: 500 17px/1 var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.tf-btn:hover { opacity: .9; }
.tf-btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.tf-btn--link { height: auto; padding: 0; background: none; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* Field */
.tf-field { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink-2); }
.tf-field input { width: 170px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; font: 500 18px/1.4 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); padding: 2px 0; text-align: right; outline: none; }
.tf-field input:focus { border-bottom-color: var(--blue); box-shadow: inset 0 -1px 0 var(--blue); }

/* CompareTable */
.tf-cmp { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 15px; }
.tf-cmp th { font: 400 12px/16px var(--font-sans); color: var(--ink-2); text-align: left; padding: 0 8px; }
.tf-cmp td { padding: 0 8px; vertical-align: middle; }
.tf-cmp .name { font-weight: 500; white-space: nowrap; width: 1%; }
.tf-cmp .hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 28px; }
.tf-cmp .hours i { display: block; border-radius: 3px; }
.tf-cmp .sum { text-align: right; white-space: nowrap; font-weight: 300; font-size: 22px; letter-spacing: -.02em; width: 1%; }
.tf-cmp .diff { text-align: right; white-space: nowrap; color: var(--ink-2); font-size: 14px; width: 1%; }
.tf-cmp tr.best .diff { color: var(--amber-ink); font-weight: 600; }
.tf-cmp .strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 6px; margin-top: 3px; }
.tf-cmp .strip i { display: block; border-radius: 2px; }
.tf-cmp tr.na td { opacity: .4; }

/* SavingsStrip */
.tf-save { display: grid; grid-template-columns: repeat(24, 1fr); gap: var(--space-1); margin-top: 8px; height: 12px; }
.tf-save i { display: block; border-radius: 4px; background: var(--track); transition: background-color .7s cubic-bezier(.2,.7,.2,1); }
.tf-save i.over, .tf-over { background: repeating-linear-gradient(45deg, var(--ink-2) 0 1px, var(--track) 1px 5px); } /* час переплаты: без цвета, штриховка как окно СО на тепловой карте */
.tf-save i { position: relative; }
.tf-save i[data-t]:hover::after { content: attr(data-t); position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px); background: var(--ink); color: var(--bg); font-size: 12px; line-height: 16px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; z-index: 2; pointer-events: none; }
.tf-save-lbl { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.tf-save-lbl b { color: var(--amber-ink); font-weight: 500; }
@media (max-width: 700px) { .tf-save { gap: 3px; } }

/* DataTable */
.tf-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.tf-table th, .tf-table td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tf-table th:first-child, .tf-table td:first-child { text-align: left; }
.tf-table th { color: var(--ink-2); font-weight: 500; vertical-align: bottom; }
.tf-table .best, .tf-table tr.sum td { font-weight: 600; }
/* полоса прокрутки видна всегда (системная на Mac прячется, и прокрутку не угадать): тонкая, цветом линий; Firefox - стандартными свойствами */
.tf-table-scroll { overflow-x: auto; }
.tf-table-scroll::-webkit-scrollbar { height: 8px; }
.tf-table-scroll::-webkit-scrollbar-track { background: var(--track); border-radius: var(--radius-bar); }
.tf-table-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--radius-bar); }
@supports not selector(::-webkit-scrollbar) { .tf-table-scroll { scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--track); } }
.tf-table--compact { font-size: 12.5px; } .tf-table--compact th, .tf-table--compact td { padding: 7px 4px; } /* широкие таблицы калькулятора: единицы в заголовке второй строкой (<br>) */
.tf-table-scroll .tf-table th:first-child, .tf-table-scroll .tf-table td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
/* на телефоне закреплённая колонка не шире 45 % экрана: длинные подписи («Мощность (Pген × ставка мощности)») переносятся, цифрам остаётся место */
@media (max-width: 700px) { .tf-table-scroll .tf-table th:first-child, .tf-table-scroll .tf-table td:first-child { white-space: normal; min-width: 96px; max-width: 45vw; } }
.tf-table-hint { display: none; position: sticky; left: 0; margin-bottom: 4px; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.tf-table-scroll.more .tf-table-hint { display: block; }

/* Tabs */
.tf-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tf-tabs button { min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font: 400 14px/20px var(--font-sans); cursor: pointer; }
.tf-tabs button:hover { border-color: var(--line-strong); }
.tf-tabs button[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue-ink); font-weight: 500; }
/* множественный выбор (период по месяцам): выбранные залиты blue-soft, невыбранные только рамкой line; так выбор читается как набор, а не как вкладка */
.tf-tabs--multi button { background: transparent; }
.tf-tabs--multi button[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue-soft); box-shadow: none; color: var(--blue-ink); }

/* Alert */
.tf-alert { border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); padding: var(--space-3); font-size: 15px; line-height: 22px; }
.tf-alert:empty { display: none; }
.tf-alert-h { display: block; font-weight: 600; margin-bottom: 4px; }
.tf-alert ul { margin: 6px 0 0; padding-left: 20px; }
.tf-alert small, .tf-alert .tf-small { color: var(--ink-2); }

/* Select */
.tf-select { display: grid; gap: 4px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.tf-select select { width: 100%; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--ink); font: 500 16px/1.4 var(--font-sans); outline: none; }
.tf-select select:focus { border-bottom-color: var(--blue); box-shadow: inset 0 -1px 0 var(--blue); }
.tf-select select:disabled { color: var(--ink-2); }
.tf-select option { background: var(--surface); color: var(--ink); }

/* Field: текстовый вариант (подпись сверху, текст слева) */
.tf-field--text { display: grid; gap: 4px; }
.tf-field--text input, .tf-field--text textarea { width: 100%; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 400 16px/1.4 var(--font-sans); font-variant-numeric: tabular-nums; text-align: left; outline: none; resize: vertical; }
.tf-field--text input:focus, .tf-field--text textarea:focus { border-bottom-color: var(--blue); box-shadow: inset 0 -1px 0 var(--blue); }
.tf-field--text input[readonly] { color: var(--ink-2); }

/* Dropzone */
.tf-drop { display: block; padding: var(--space-3); border: 1px dashed var(--line-strong); border-radius: var(--radius-control); color: var(--ink-2); font-size: 14px; line-height: 20px; text-align: center; cursor: pointer; }
.tf-drop strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; font-size: 16px; }
.tf-drop input { display: none; }
.tf-drop.over { border-style: solid; border-color: var(--blue); }

/* Heatmap: стоимость часа (нагрузка × цена часа выбранной категории) на шкале цены, ступени по рангу ячеек месяца; зоны СО и ФАС штриховкой и подписями */
.tf-heat { width: auto; border-collapse: separate; border-spacing: 1px; font-size: 11px; line-height: 14px; font-variant-numeric: tabular-nums; }
.tf-heat th { padding: 2px 3px; text-align: center; font-weight: 400; color: var(--ink-2); }
.tf-heat td { position: relative; width: 22px; height: 16px; padding: 0; text-align: center; background: var(--track); }
.tf-heat td:first-child { width: auto; padding: 0 6px; background: transparent; color: var(--ink-2); font-size: 11.5px; text-align: right; white-space: nowrap; }
.tf-heat td[data-p="1"], .tf-heat-legend i[data-p="1"] { background: var(--price-1); }
.tf-heat td[data-p="2"], .tf-heat-legend i[data-p="2"] { background: var(--price-2); }
.tf-heat td[data-p="3"], .tf-heat-legend i[data-p="3"] { background: var(--price-3); }
.tf-heat td[data-p="4"], .tf-heat-legend i[data-p="4"] { background: var(--price-4); }
.tf-heat td[data-p="5"], .tf-heat-legend i[data-p="5"] { background: var(--price-5); }
.tf-heat td[data-p="6"], .tf-heat-legend i[data-p="6"] { background: var(--price-6); }
.tf-heat td.so-l { box-shadow: inset 2px 0 0 var(--ink); } .tf-heat td.so-r { box-shadow: inset -2px 0 0 var(--ink); } .tf-heat td.so-l.so-r { box-shadow: inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink); }
.tf-heat td.fp-l { border-left: 1px dashed var(--ink-2); } .tf-heat td.fp-r { border-right: 1px dashed var(--ink-2); }
.tf-heat tr.band td { height: 10px; background: transparent; }
.tf-heat tr.band td.h-so { background: repeating-linear-gradient(45deg, var(--ink-2) 0 1px, transparent 1px 5px); }
.tf-heat tr.band td.h-fp { background: repeating-linear-gradient(0deg, var(--ink-2) 0 1px, transparent 1px 4px); }
.tf-heat tr.band td.h-ni { background: radial-gradient(var(--line-strong) 1px, transparent 1.5px) 0 0 / 5px 5px; }
.tf-heat .wk { margin-left: 4px; font-size: 9px; color: var(--ink-2); }
.tf-heat-legend, .tf-heat-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 10px; font-size: 12.5px; line-height: 18px; color: var(--ink-2); }
.tf-heat-legend--line { flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; gap: 6px 14px; }
.tf-heat-legend i { display: inline-block; width: 14px; height: 10px; margin-right: 4px; border-radius: 2px; vertical-align: middle; }
.tf-heat-key .k { display: inline-block; width: 18px; height: 10px; margin-right: 6px; vertical-align: middle; }
.tf-heat-key .k.h-so { background: repeating-linear-gradient(45deg, var(--ink-2) 0 1px, transparent 1px 5px); }
.tf-heat-key .k.h-fp { background: repeating-linear-gradient(0deg, var(--ink-2) 0 1px, transparent 1px 4px); }
.tf-heat-key .k.h-ni { background: radial-gradient(var(--line-strong) 1px, transparent 1.5px) 0 0 / 5px 5px; }
/* метки дня: час пика ГП точка, максимум в окне СО кольцо, совпадение точка в кольце; цвет ink с кольцом цвета фона (outline снаружи, inset внутри),
   поэтому метка видна поверх любой ступени, а цвет клетки не меняется */
.tf-mark { display: inline-block; vertical-align: middle; border-radius: 50%; outline: 1.5px solid var(--bg); }
.tf-mark.g { width: 7px; height: 7px; background: var(--ink); }
.tf-mark.n { width: 11px; height: 11px; border: 1.5px solid var(--ink); box-shadow: inset 0 0 0 1.5px var(--bg); }
.tf-mark.gn { position: relative; width: 11px; height: 11px; border: 1.5px solid var(--ink); box-shadow: inset 0 0 0 1.5px var(--bg); }
.tf-mark.gn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--ink); }
.tf-heat td .tf-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* CategorySwitch по эталону: имя и подпись «сейчас»/«выгоднее», сумма, разница; недоступная пунктиром с причиной */
.tf-switch button { border-color: var(--line-strong); gap: 4px; }
.tf-switch button:hover { border-color: var(--line-strong); }
.tf-switch button .c { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 8px; font-weight: 600; }
.tf-switch button .c em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-2); }
.tf-switch button.is-best .c em, .tf-switch button.is-best .s, .tf-switch button.is-best .t { color: var(--amber-ink); }
.tf-switch button .s { font-weight: 300; font-size: 16px; color: var(--ink); }
.tf-switch button .t { font-size: 12px; line-height: 16px; color: var(--ink-2); min-height: 1.3em; }
.tf-switch button[disabled] { opacity: 1; cursor: not-allowed; border-style: dashed; border-color: var(--line); background: transparent; }
.tf-switch button[disabled] .c, .tf-switch button[disabled] .s { color: var(--ink-2); }

/* Segment: вход-переключатель рядом с заголовком (мощность, категория сейчас) */
.tf-seg { display: inline-flex; gap: 4px; background: var(--track); padding: 4px; border-radius: var(--radius-control); }
.tf-seg button { border: 0; background: transparent; border-radius: 9px; height: 36px; padding: 0 14px; cursor: pointer; color: var(--ink-2); font: 500 15px/1 var(--font-sans); }
.tf-seg button[aria-pressed="true"] { background: var(--surface); color: var(--blue-ink); box-shadow: inset 0 0 0 1.5px var(--blue); }
.tf-seg button[disabled] { color: var(--line-strong); cursor: not-allowed; }
/* одиночный выбор из многих (месяц профиля, месяц разбора пиков): сегмент переносится на несколько строк */
.tf-seg--wrap { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; }
@media (max-width: 900px) { .tf-seg { display: flex; } .tf-seg button { flex: 1; } .tf-seg--wrap button { flex: 0 0 auto; padding: 0 10px; } }
.tf-hint { font-size: 14px; line-height: 20px; color: var(--ink-2); margin-bottom: 10px; }

/* Profile: цены на опорных часах, легенда с диапазоном, подсказка столбца */
.tf-pl { display: grid; grid-template-columns: repeat(24, 1fr); gap: var(--space-1); margin-top: 2px; font-size: 12px; line-height: 16px; }
.tf-pl span { white-space: nowrap; color: var(--ink); font-weight: 500; }
.tf-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.tf-legend .sc { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tf-legend .sc .s { display: flex; gap: 2px; } .tf-legend .sc .s i { width: 16px; height: 8px; border-radius: 2px; display: block; }
.tf-legend [hidden] { display: none !important; }
/* телефон: одним абзацем с переносом «Цена часа по ЦКn …: до X [шкала] от Y», затем «выше шкалы» (только если есть), затем экономия; не выше 3 строк на 390 px */
@media (max-width: 700px) {
  .tf-legend { display: block; font-size: 12px; line-height: 18px; }
  .tf-legend .sc, .tf-legend > span { display: inline; }
  .tf-legend .sc .s { display: inline-flex; vertical-align: middle; margin: 0 2px; gap: 1px; } .tf-legend .sc .s i { width: 6px; }
  .tf-legend .sc .lb::after { content: ":"; } .tf-legend .m { display: none; } /* на телефоне короче: без «с учётом мощности» (есть в подсказке столбца) и «стоимости суток» */
  .tf-legend > span::before, .tf-legend > span > .amb { margin-left: 6px; margin-right: 4px; }
}
.tf-legend .amb { display: inline-block; width: 14px; height: 8px; border-radius: 3px; background: var(--amber); vertical-align: middle; margin-right: 6px; }
.tf-profile i { position: relative; }
.tf-profile i[data-over]::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 3px; border-radius: 1px; background: var(--ink); } /* цена выше шкалы (95-й процентиль): 3px, отступ 3px от столбца, ширина столбца */
.tf-legend .ovr::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 1px; background: var(--ink); vertical-align: middle; margin-right: 6px; }
.tf-profile i:hover::after { content: attr(data-t); position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px); background: var(--ink); color: var(--bg); font-size: 12px; line-height: 16px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; z-index: 2; pointer-events: none; }
@media (max-width: 700px) { .tf-pl { gap: 3px; } .tf-pl span.m { display: none; } }

/* Page: бургер-меню и закреплённая снизу кнопка на телефоне */
.tf-menu { display: none; position: relative; }
.tf-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; display: grid; place-items: center; }
.tf-menu summary::-webkit-details-marker { display: none; }
.tf-menu summary i, .tf-menu summary i::before, .tf-menu summary i::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px; content: ""; }
.tf-menu summary i { position: relative; } .tf-menu summary i::before { position: absolute; top: -6px; } .tf-menu summary i::after { position: absolute; top: 6px; }
.tf-menu ul { position: absolute; right: 0; top: 48px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 200px; z-index: 20; }
.tf-menu li a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.tf-sticky { display: none; }
@media (max-width: 960px) { .tf-menu { display: block; } }
@media (max-width: 700px) { .tf-sticky { display: flex; gap: 12px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); } .tf-sticky .tf-btn { flex: 1; height: 44px; } .tf-sticky .tf-small { flex: 1; } }

/* Status: статус словами, без цвета (готово / частично / нет / справочник обновился); строка проверки tf-check; действие-ссылка tf-btn tf-btn--link tf-act */
.tf-status { display: inline-flex; align-items: center; min-height: 24px; padding: 1px 8px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink-2); font: 400 13px/18px var(--font-sans); white-space: nowrap; }
.tf-status--done { color: var(--ink); }
.tf-status--none { border-style: dashed; }
.tf-status--stale { color: var(--ink-2); } /* ЦК посчитана до нового фактического месяца справочника: подпись «справочник обновился», без цвета */
.tf-act { font: 400 14px/20px var(--font-sans); text-underline-offset: 3px; } /* компактный размер ссылки-кнопки: класс вместе с tf-btn tf-btn--link (цвет, подчёркивание, без рамки из Button) */
.tf-check { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2.6fr) auto; gap: 4px var(--space-3); align-items: baseline; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.tf-check .p { font-weight: 500; overflow-wrap: anywhere; }
.tf-check .m { font-weight: 300; font-size: 16px; white-space: nowrap; }
.tf-check .m.save { color: var(--amber-ink); }
.tf-check .d { display: flex; gap: 8px; align-items: center; color: var(--ink-2); white-space: nowrap; }
.tf-check .a { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media (max-width: 700px) { .tf-check { grid-template-columns: minmax(0, 1fr); } .tf-check .a { grid-column: auto; } .tf-check .d { flex-wrap: wrap; } }

/* Hidden: скрытые данные до договора (плашка «███ ₽»); содержимое фиксировано в разметке, данных за ней нет */
.tf-hidden { display: inline-block; min-width: 72px; padding: 1px 8px; border-radius: var(--radius-control); background: var(--track); color: var(--ink-2); font: 400 14px/20px var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: .04em; text-align: center; white-space: nowrap; user-select: none; }

/* Checkbox: квадрат 20×20 на одной линии с первой строкой подписи (подпись line-height 20px, align-items:flex-start); отмечено заливкой action, галочка из рамок, без иконок. На тёмном блоке страница переопределяет --action, --on-action, --line-strong */
.tf-box { appearance: none; -webkit-appearance: none; flex: none; display: inline-grid; place-content: center; width: 20px; height: 20px; margin: 0; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: transparent; cursor: pointer; }
.tf-box:checked { background: var(--action); border-color: var(--action); }
.tf-box:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--on-action); border-bottom: 2px solid var(--on-action); transform: translateY(-1px) rotate(-45deg); }
.tf-box:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.tf-box:disabled { opacity: .55; cursor: default; }
