/* ============================================================
   Дизайн-код v2 — раздел «Политики» (дорожка G1): общее для страницы канала и окна правила.

   Здесь то, чего нет в v2.css / v2-forms.css / v2-kit.css и что нужно больше чем одному экрану
   раздела: малый переключатель строки таблицы, строка таблицы правил, фильтры над ней, части
   окна правила. Числа — с досок PoliciesV3, ChMailV3, RuleEditorV3.
   ============================================================ */

/* ---- Карточка раздела: заголовок, (i), действия справа ---- */
.v2-phead { position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; }
.v2-phead h2 { margin: 0; font-size: 17px; line-height: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--v2-ink); text-transform: none; }
.v2-phead__grow { flex-grow: 1; }
.v2-phead__note { font-size: 13px; line-height: 16px; color: var(--v2-ink-3); white-space: nowrap; }
.v2-phead__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.v2-phead > .v2-btn--primary { line-height: 17px; }
.v2-panel .v2-phead h2 { font-size: 15px; line-height: 19px; letter-spacing: 0; color: var(--v2-ink-2); }

/* ---- Фильтры над таблицей правил ---- */
.v2-rfilters { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
/* Поиск уступает место первым: с фильтром мессенджера, сервиса или облака строка не помещалась на пару пикселей, и
   счётчик уезжал на отдельную строку (полировка по доскам, п. 1). Счётчик — всегда справа, и при переносе тоже. */
.v2-rfilters__search { flex: 1 1 140px; min-width: 0; padding: 8px 12px; background: var(--v2-fill); border-radius: 9px; }
.v2-rfilters__field { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 13px; line-height: 16px; color: var(--v2-ink-2); white-space: nowrap; }
.v2-rfilters__field select { width: 180px; }
.v2-rfilters__field--state select { width: 160px; }
.v2-rfilters__field--facet select { width: 190px; }
.v2-rfilters__count { margin-left: auto; font-size: 13px; line-height: 16px; color: var(--v2-ink-3); white-space: nowrap; }

/* ---- Таблица правил: строки на сетке v2-table; сетку колонок задаёт экран ---- */
.v2-rules .v2-table__row { cursor: default; }
/* Узкое окно: строка не уже своих колонок — таблица прокручивается вбок, а не теряет колонку названия */
.v2-rules .v2-table__head, .v2-rules .v2-table__row { min-width: min-content; }
.v2-rules__grip { display: flex; align-items: center; justify-content: center; color: var(--v2-chevron); cursor: grab; }
.v2-rules__grip--off { cursor: default; opacity: .45; }
.v2-rules__name, .v2-table__row > span.v2-rules__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; white-space: normal; cursor: pointer; }
.v2-rules__name--locked, .v2-table__row > span.v2-rules__name--locked { cursor: default; }
/* Плашки переносятся под название, когда колонка узкая: иначе длинная плашка («шаблон: …») не сжимается
   и выдавливает название до нуля. На ширине доски всё помещается в одну строку, как и было. */
.v2-rules__title { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; min-width: 0; }
.v2-rules__title > b { min-width: 0; font-size: 14px; line-height: 17px; font-weight: 500; color: var(--v2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-rules__sub { font-size: 12px; line-height: 15px; color: var(--v2-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-rules__sub a, .v2-page .v2-rules__sub a { color: var(--v2-accent-ink); }
.v2-rules__row--drop { box-shadow: inset 0 2px 0 var(--v2-accent); }
.v2-rules__row--drag { opacity: .5; }
.v2-rules__more, .v2-table__row > span.v2-rules__more { display: flex; justify-content: flex-end; overflow: visible; }
.v2-rules__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; text-align: center; }
.v2-rules__empty b { font-size: 15px; line-height: 19px; font-weight: 500; color: var(--v2-ink); }
.v2-rules__empty span { max-width: 460px; font-size: 13px; line-height: 16px; color: var(--v2-ink-2); }
.v2-rules__empty div { display: flex; gap: 8px; padding-top: 4px; }
.v2-rules__foot { position: relative; display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 15px; color: var(--v2-ink-2); }
.v2-rules__bulk { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--v2-accent-soft); border-radius: 11px; font-size: 13px; color: var(--v2-ink); flex-wrap: wrap; }

/* ---- Малый переключатель: строка таблицы, строки «что приложить» в окне правила ---- */
.v2-switch--sm { width: 38px; height: 22px; border-radius: 11px; background: var(--v2-switch-off-sm); }
.v2-switch--sm::after { top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 9px; box-shadow: var(--v2-shadow-knob-sm); }
.v2-switch--sm[aria-checked="true"]::after { left: 18px; }
/* Состояние показано, менять здесь нельзя (общее правило на странице канала, правило шаблона). */
.v2-switch--ro { cursor: default; opacity: .6; }

/* ---- Кнопки раздела ---- */
/* Высота строки — по кеглю, как на досках (14 → 17, 15 → 19): кнопка 33 px, большая — 39.
   ⚠️ v2-btn--plain, v2-btn--lg и v2-phead — общие для дорожек: значения не менять без координатора. */
.v2-btn--plain { background: var(--v2-surface); color: var(--v2-ink); box-shadow: inset 0 0 0 1px var(--v2-separator); font-weight: 400; line-height: 17px; }
.v2-btn--plain:hover:not([disabled]) { box-shadow: inset 0 0 0 1px var(--v2-accent-mid); }
.v2-page a.v2-btn--plain { color: var(--v2-ink); }
.v2-btn--icon { display: inline-flex; align-items: center; gap: 7px; padding-left: 14px; padding-right: 14px; }
.v2-btn--lg { padding: 10px 20px; font-size: 15px; line-height: 19px; }

/* ---- Окно правила (доска RuleEditorV3) ---- */
.v2-rule__names { display: flex; flex-direction: column; gap: 8px; }
.v2-rule__name { padding: 11px 14px; border-radius: 10px; font-size: 17px; line-height: 21px; font-weight: 500; }
.v2-rule__desc { padding: 10px 14px; border-radius: 10px; }
.v2-rule__reason { padding: 10px 12px; border-radius: 9px; }
.v2-rule__raw { height: 120px; font-family: var(--v2-mono); font-size: 13px; resize: vertical; }
.v2-rule__tab { display: flex; flex-direction: column; gap: 12px; }
.v2-rule__tab[hidden] { display: none; }
.v2-panel .v2-seg button { padding: 8px 16px; line-height: 17px; display: flex; align-items: center; gap: 7px; }
.v2-panel .v2-seg button[aria-checked="true"] { font-weight: 500; }
.v2-panel > .v2-seg button { padding: 8px 20px; }
.v2-rule__line { gap: 12px; flex-wrap: wrap; }
.v2-rule__label { width: 190px; flex-shrink: 0; font-size: 14px; line-height: 17px; color: var(--v2-ink); }
.v2-rule__chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.v2-rule__chips--scroll { max-height: 120px; overflow: auto; }
.v2-rule__evidence { gap: 12px; padding: 10px 12px; }
.v2-rule__evidence > span { flex-grow: 1; min-width: 0; font-size: 13px; line-height: 17px; color: var(--v2-ink-2); }
.v2-rule__evidence > span > b { font-size: 14px; font-weight: 500; color: var(--v2-ink); }
.v2-rule__audience { position: relative; }
/* Шаг 143 (#2972): блок «Кроме» в карточке «Кому адресовано» и выбор машин свёрнутым списком с поиском. */
.v2-rule__except { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--v2-separator); }
.v2-rule__sub { font-size: 13px; line-height: 16px; color: var(--v2-ink-2); }
.v2-mpick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.v2-mpick__toggle { align-self: flex-start; }
.v2-mpick__panel { display: flex; flex-direction: column; gap: 8px; }
.v2-tag--warning { background: var(--v2-warning-soft); color: var(--v2-warning-ink); }
.v2-rule__foot { position: relative; gap: 12px; }
.v2-rule__sum { padding: 11px 14px; background: var(--v2-fill); border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--v2-ink); }
.v2-rule__sum b { font-weight: 500; }
.v2-rule__tree { min-width: 0; }

/* ---- Выбор флажками-кнопками: каналы общего правила, приложения канала ---- */
.v2-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v2-pick {
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 12px; border: 0; border-radius: 11px;
  background: var(--v2-fill); color: var(--v2-ink); font-family: inherit; font-size: 14px; line-height: 17px; text-align: left; cursor: pointer;
}
.v2-pick[aria-pressed="true"] { background: var(--v2-accent-soft); }
.v2-pick__box {
  width: 18px; height: 18px; flex-shrink: 0; border-radius: 5px; display: flex; align-items: center; justify-content: center;
  background: var(--v2-surface); box-shadow: inset 0 0 0 1.5px var(--v2-control-border); color: var(--v2-on-accent);
}
.v2-pick[aria-pressed="true"] .v2-pick__box { background: var(--v2-accent); box-shadow: inset 0 0 0 1.5px var(--v2-accent); }
.v2-pick__name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Шапка раздела: последняя крошка без ссылки — тише предыдущих (доска PoliciesV3) ---- */
.v2-crumbs__here--leaf { color: var(--v2-ink-3); }

/* ---- Обзор раздела (доска PoliciesV3) ---- */
/* Чек-лист «Чтобы правила заработали»: заголовок-кнопка во всю ширину, шеврон справа */
.v2-pcheck__head { width: 100%; gap: 10px; }
.v2-pcheck__badge { padding: 3px 10px; border-radius: 11px; font-size: 13px; line-height: 16px; font-weight: 500; white-space: nowrap; color: var(--v2-warning-ink); background: var(--v2-warning-soft); }
.v2-pcheck__badge--done { color: var(--v2-success-ink); background: var(--v2-success-soft); }
/* Строка-шаг и строка готового правила: кружок состояния, две строки текста, действие справа */
.v2-prow { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; background: var(--v2-fill); border-radius: 11px; }
.v2-prow__text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2-prow__text > b { font-size: 14px; line-height: 17px; font-weight: 500; color: var(--v2-ink); }
.v2-prow__text > span { font-size: 13px; line-height: 16px; color: var(--v2-ink-2); }
.v2-prow__text--clip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-prow__done { padding: 0 6px; font-size: 13px; line-height: 16px; color: var(--v2-success-ink); white-space: nowrap; }
.v2-prow .v2-btn--sm { flex-shrink: 0; padding: 7px 14px; }
.v2-pstep { width: 26px; height: 26px; flex-shrink: 0; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.v2-pstep--todo { background: var(--v2-warning-soft); color: var(--v2-warning-ink); }
.v2-pstep--done { background: var(--v2-success-soft); color: var(--v2-success-ink); }
.v2-pstep--unknown { background: var(--v2-separator); color: var(--v2-ink-2); }
/* «Сейчас в политиках»: четыре числа */
.v2-ptiles { display: flex; gap: 12px; }
.v2-ptile { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--v2-fill); border-radius: 14px; }
.v2-ptile > span { font-size: 13px; line-height: 16px; color: var(--v2-ink-2); white-space: nowrap; }
.v2-ptile > b { font-size: 28px; line-height: 1.15; font-weight: 400; color: var(--v2-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v2-ptile > small { font-size: 12px; line-height: 15px; color: var(--v2-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-ptile--warning > b { color: var(--v2-warning-ink); }
/* «Каналы»: три колонки строк канала */
.v2-pchannels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v2-pchannels .v2-channel__tile { border-radius: 9px; }
/* № 41: название и счётчик — один блок с переносом. Места хватает — строка как на доске (название слева,
   счётчик справа); не хватает — счётчик уходит под название, а не съедает его многоточием. */
.v2-pchannels__text { flex-grow: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 10px; row-gap: 2px; }
.v2-pchannels a.v2-channel__name { color: var(--v2-ink); flex: 0 1 auto; white-space: normal; overflow: visible; text-overflow: clip; }
.v2-pchannels a.v2-channel__name:hover { color: var(--v2-accent-ink); }
.v2-pchannels .v2-channel__metrics b + b, .v2-pchannels .v2-channel__metrics b.is-muted { margin-left: 6px; }
.v2-pchannels__none { font-size: 13px; line-height: 16px; color: var(--v2-ink-3); white-space: nowrap; }
.v2-pchannels__gap { width: 38px; flex-shrink: 0; }
@media (max-width: 1240px) { .v2-pchannels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v2-ptiles { flex-wrap: wrap; } .v2-ptile { flex-basis: 40%; } }

/* Ссылка-кнопка в шапке карточки («Все шаблоны»): общий сброс «.v2-page a» красит ссылку в цвет текста */
.v2-page a.v2-textbtn { color: var(--v2-accent-ink); }

/* ---- Вкладка «Симуляция» окна правила (доска RuleSimV3) ---- */
.v2-sim__what { align-items: baseline; }
.v2-sim__cond { flex-grow: 1; min-width: 0; font-size: 14px; line-height: 17px; color: var(--v2-ink); }
.v2-sim__scope { flex-shrink: 0; font-family: var(--v2-mono); font-size: 12px; color: var(--v2-ink-3); white-space: nowrap; }
.v2-sim__label { font-size: 14px; color: var(--v2-ink-2); }
.v2-sim__run { padding: 9px 18px; }
.v2-ptile--sim { padding: 13px 15px; }
.v2-ptile--sim > b { font-size: 26px; }
.v2-sim__bars { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; background: var(--v2-fill); border-radius: 12px; }
.v2-sim__bar { display: grid; grid-template-columns: 210px minmax(0, 1fr) 54px; gap: 12px; align-items: center; font-size: 14px; line-height: 17px; color: var(--v2-ink); }
.v2-sim__bar > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-sim__bar > b { font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.v2-sim__track { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--v2-separator); }
.v2-sim__track > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--v2-accent), var(--v2-accent-mid)); }
.v2-sim__rows { background: var(--v2-surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--v2-separator); overflow: hidden; }
.v2-sim__row { display: grid; grid-template-columns: 110px 190px minmax(0, 1fr) 150px; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--v2-separator); font-size: 14px; line-height: 17px; color: var(--v2-ink); }
.v2-sim__row:last-child { border-bottom: 0; }
.v2-sim__row > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-sim__time { font-family: var(--v2-mono); font-size: 13px; color: var(--v2-ink-2); }
.v2-sim__chan { font-size: 13px; color: var(--v2-ink-2); }
.v2-sim__more { gap: 10px; }
.v2-sim__more .v2-btn--sm { padding: 7px 14px; }
/* Шаг 145: строка на канал правила — число, «событий нет» или «нельзя проверить» с причиной. Цвета — переменные
   темы, поэтому светлая и тёмная темы без отдельных правил. */
.v2-sim__chans { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--v2-fill); border-radius: 12px; }
.v2-sim__chanrow { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; font-size: 14px; line-height: 17px; color: var(--v2-ink); }
.v2-sim__chanrow > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-sim__chanstat { font-variant-numeric: tabular-nums; }
.v2-sim__chanrow--off .v2-sim__chanstat { color: var(--v2-ink-2); font-weight: 600; }
.v2-sim__channote { grid-column: 2; font-size: 13px; color: var(--v2-ink-3); }
.v2-sim__total { padding: 10px 14px 0; font-size: 14px; color: var(--v2-ink-2); }
@media (max-width: 720px) {
    .v2-sim__chanrow { grid-template-columns: minmax(0, 1fr); }
    .v2-sim__channote { grid-column: 1; }
}

/* ---- Оранжевая строка-последствие в окне правила: значок залит, текст в одну линию ---- */
.v2-pnote { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: var(--v2-warning-soft); color: var(--v2-warning-ink); font-size: 13px; line-height: 1.45; }
.v2-pnote__icon { width: 20px; height: 20px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--v2-warning-ink); color: var(--v2-surface); }

/* ---- Дерево условий в окне правила (доска RuleEditorV3): строка группы и строка условия на v2-cond ---- */
.v2-rule__tree { display: flex; flex-direction: column; gap: 10px; min-width: 0; font-size: 14px; }
.v2-tree { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--v2-fill); border-radius: 12px; }
.v2-tree__nest { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-left: 3px solid var(--v2-accent-mid); border-radius: 0 12px 12px 0; }
.v2-tree__row { min-width: 0; }
.v2-tree__group { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2-tree__cap { font-size: 12px; line-height: 15px; font-weight: 500; letter-spacing: .02em; color: var(--v2-accent-ink); }
.v2-panel .v2-seg.v2-seg--sm button { padding: 6px 14px; font-size: 13px; line-height: 16px; }
.v2-tree__group .v2-btn--add { padding: 7px 14px; font-weight: 500; }

/* Строка условия (PolicyTreeClauseRow): v2-cond__row из кита + части значения по виду поля */
.v2-cond__value { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; }
.v2-cond__value--wrap { flex-wrap: wrap; gap: 4px; }
.v2-cond__hour { width: 96px; }
.v2-cond__unit { width: 84px; }
.v2-cond__day { padding: 6px 11px; font-size: 13px; line-height: 16px; background: var(--v2-surface); box-shadow: inset 0 0 0 1px var(--v2-separator); }
.v2-cond__day[aria-pressed="true"] { box-shadow: none; }
.v2-cond__thr { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.v2-cond__thr .v2-input { width: 64px; text-align: center; }
.v2-tree .v2-cond__hint { display: block; padding: 4px 10px 0; line-height: 1.45; }
.v2-cond__hint--danger { color: var(--v2-danger-ink); }
.v2-cond__hint--warning { color: var(--v2-warning-ink); }

/* Выпадающий выбор значения: словарь, детектор, отдел, группа, учётная запись */
.v2-cdrop { position: relative; flex: 1 1 0; min-width: 0; display: flex; }
.v2-cdrop__backdrop { position: fixed; inset: 0; z-index: 40; }
.v2-cdrop__menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 41; display: flex; flex-direction: column; gap: 8px; padding: 8px;
  background: var(--v2-surface); border-radius: 14px; box-shadow: var(--v2-shadow-picker);
}
.v2-cdrop__find { flex-shrink: 0; }
.v2-cdrop__own { display: flex; align-items: center; gap: 8px; }
.v2-cdrop__list { display: flex; flex-direction: column; gap: 1px; max-height: 300px; overflow-y: auto; }
.v2-cdrop__group { padding: 6px 10px 2px; font-size: 12px; line-height: 15px; font-weight: 500; letter-spacing: .02em; color: var(--v2-ink-3); }
.v2-cdrop__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent;
  font-family: inherit; font-size: 14px; line-height: 17px; color: var(--v2-ink); text-align: left; cursor: pointer;
}
.v2-cdrop__item:hover { background: var(--v2-fill); }
.v2-cdrop__item[aria-selected="true"] { background: var(--v2-accent-soft); color: var(--v2-accent-ink); font-weight: 500; }
.v2-cdrop__item--none { color: var(--v2-ink-3); }
.v2-cdrop__name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-cdrop__note { flex-shrink: 0; max-width: 50%; font-size: 12px; line-height: 15px; font-weight: 400; color: var(--v2-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-cdrop__empty { padding: 8px 10px; font-size: 13px; line-height: 1.45; color: var(--v2-ink-3); }

/* Словоформы разового слова */
.v2-wforms__head { display: flex !important; align-items: center; gap: 8px; }
.v2-wforms { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; padding: 10px; background: var(--v2-surface); border-radius: 10px; }
.v2-wforms__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v2-wforms__grid { display: flex; flex-wrap: wrap; gap: 4px 6px; max-height: 180px; overflow-y: auto; }
.v2-wforms__item { display: inline-flex; align-items: center; gap: 2px; padding: 0 2px 0 0; background: var(--v2-fill); border-radius: 8px; }
.v2-wforms__item > button { padding: 4px 8px; border: 0; background: transparent; font-family: inherit; font-size: 13px; line-height: 16px; color: var(--v2-ink); cursor: pointer; }
.v2-wforms__item > button[disabled] { cursor: default; }
.v2-wforms__item--off > button:first-child { color: var(--v2-ink-3); text-decoration: line-through; }
.v2-wforms__item--base > button { font-weight: 500; color: var(--v2-accent-ink); }
.v2-wforms__item > .v2-wforms__rm { padding: 4px 6px; color: var(--v2-ink-3); display: flex; align-items: center; }
.v2-wforms__item > .v2-wforms__rm:hover { color: var(--v2-danger-ink); }

/* ---- Сверка с досками числами (ChMailV3, PoliciesV3, RuleEditorV3) ----
   Там, где доска раздела показывает не то число, что общий кит, прав макет доски: переопределено
   здесь, под классом страницы раздела и окна правила, — кит не тронут. */
.v2-policies .v2-header--v3 .v2-header__actions { gap: 8px; }
.v2-rules__title .v2-pill { padding: 0 8px; line-height: 17px; border-radius: 9px; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-rules__foot .v2-textbtn { padding: 0 6px; font-size: 12px; line-height: 15px; }
.v2-switch--ro { display: inline-block; }

.v2-rule--wide { width: 1172px; }
.v2-rule .v2-panel__head { gap: 10px; }
.v2-rule h1 { line-height: 24px; letter-spacing: -0.01em; }
.v2-rule .v2-rule__name { line-height: 20px; }
.v2-rule .v2-phead__actions .v2-btn--sm { padding: 6px 12px; }
.v2-rule .v2-formula { border-radius: 11px; }
.v2-panel .v2-rule__foot { gap: 12px; }
.v2-rule__save { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.v2-seg--wrap { flex-wrap: wrap; }

/* ---- #2517: «Какие документы метить» — формат, который агент ещё не метит, виден серым ---- */
.v2-pick[disabled] { cursor: not-allowed; color: var(--v2-ink-3); }
.v2-pick[disabled] .v2-pick__box { background: var(--v2-separator); box-shadow: none; }
.v2-pick__soon { margin-left: auto; flex-shrink: 0; font-size: 12px; line-height: 15px; color: var(--v2-ink-3); }
