/* Экран «Настройки» (префикс st-). Только токены; тёмная тема работает сама.
   Меню и раскладка .split/.subnav/.split-main — из components.css, здесь только то, чего там нет. */

/* ── Оболочка ───────────────────────────────────────────────────────────────── */
/* снизу 120 px, как у .split-main: последняя строка страницы прокручивается выше плавающего ассистента */
.st-main { display: flex; flex-direction: column; max-width: 1100px; padding-bottom: 120px; }
.st-body { flex: 1 1 auto; min-width: 0; }
.st-pg, .st-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
/* меню из 18 пунктов помещается на 1440×900 без прокрутки: пункт 31 px, группы плотнее */
.st-nav { padding-top: 14px; padding-bottom: 14px; }
.st-nav .subnav-h { padding-bottom: 6px; }
.st-nav .subnav-g { margin: 9px 10px 2px; }
.st-nav .subnav-i { min-height: 31px; padding: 5px 8px 5px 10px; gap: 9px; font-size: 13.5px; }
.st-nav-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-nav > * { flex: 0 0 auto; }

/* нижняя полоса «Сохранить настройки» — только при правках. Справа оставлено место под плавающего ассистента,
   зазор под полосой закрыт фоном страницы, чтобы под ней не просвечивали строки */
.st-bar {
  position: sticky; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 10px; margin: 22px 68px 0 0; padding: 10px 12px 10px 18px;
  border-radius: 16px; background: var(--l1); border: 1px solid var(--line-2); box-shadow: var(--sh-pop);
  transition: border-color .2s, box-shadow .2s; animation: st-bar-in .2s ease both;
}
.st-bar[hidden] { display: none; }
/* при видимой полосе отступ под ассистента даёт она сама: она стоит рядом с ним, а не под ним */
.st-main:has(> .st-bar:not([hidden])) { padding-bottom: 16px; }
.st-bar::after { content: ''; position: absolute; left: -1px; right: calc(-1px - var(--st-bar-gap, 68px)); top: calc(100% + 1px); height: 16px; background: var(--l0); }
.st-bar::before { content: ''; position: absolute; left: calc(100% + 1px); width: var(--st-bar-gap, 68px); top: -4px; bottom: -1px; background: var(--l0); }
@keyframes st-bar-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* пока полоса видна, тост — над ней */
body:has(.st-bar:not([hidden])) .toast { bottom: 96px; }
.st-bar.is-dirty { border-color: var(--acc-soft-brd); box-shadow: 0 0 0 3px var(--acc-soft), var(--sh-pop); }
.st-bar-t { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; line-height: 18px; color: var(--mut); white-space: nowrap; }
.st-bar-t > span { overflow: hidden; text-overflow: ellipsis; }
.st-nw { white-space: nowrap; }
.st-bar .btn { flex: 0 0 auto; }
.st-bar.is-dirty .st-bar-t { color: var(--ink); font-weight: 520; }
.st-bar-short { display: none; white-space: nowrap; }
.st-bar-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--line-3); flex: 0 0 auto; transition: background .2s, box-shadow .2s; }
.st-bar.is-dirty .st-bar-dot { background: var(--ryn); box-shadow: 0 0 0 3px var(--ryn-soft); }

/* ── Общие кирпичики страниц ────────────────────────────────────────────────── */
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; align-items: start; }
.st-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-span2 { grid-column: 1 / -1; min-width: 0; }
.st-lbl { font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--mut2); line-height: 16px; }
.st-dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: var(--t, var(--line-3)); flex: 0 0 auto; }
.st-tagup { text-transform: uppercase; letter-spacing: .06em; font-size: 10px; height: 19px; padding: 0 7px; }
.st-seg-f .seg { align-self: flex-start; flex-wrap: nowrap; white-space: nowrap; max-width: 100%; }
.st-sub { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.st-flash { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--vyg); opacity: 0; transition: opacity .25s; }
.st-flash.is-on { opacity: 1; }

/* строки «переключатель — название — пояснение» */
.st-opt { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-opt:first-child { padding-top: 0; }
.st-opt:last-child { border-bottom: 0; padding-bottom: 0; }
.st-opt .toggle { margin-top: 2px; }
.st-opt-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-opt-t b { font-size: 14px; font-weight: 600; }
.st-opt-t span { font-size: 12.5px; line-height: 18px; color: var(--mut); }

/* карточки-выбор (радио) */
.st-picks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.st-picks-3 { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
.st-pick {
  position: relative; display: flex; align-items: flex-start; gap: 11px; min-width: 0; padding: 12px 38px 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--l1); text-align: left; cursor: pointer; transition: border-color .14s, background .14s, box-shadow .14s;
}
.st-pick:hover { border-color: var(--acc-soft-brd); background: var(--l3); }
.st-pick[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-row); box-shadow: 0 0 0 3px var(--acc-soft); }
.st-pick-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; background: var(--l2); border: 1px solid var(--line); color: var(--icon); }
.st-pick[aria-pressed="true"] .st-pick-ic { background: var(--acc-soft); border-color: var(--acc-soft-brd); color: var(--acc); }
.st-pick-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-pick-t b { font-size: 13.5px; font-weight: 600; line-height: 19px; }
.st-pick-t em { font-style: normal; font-size: 12.5px; line-height: 17px; color: var(--mut2); }
.st-pick-ck { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid var(--line-3); color: transparent; transition: background .14s, border-color .14s, color .14s; }
.st-pick[aria-pressed="true"] .st-pick-ck { background: var(--acc); border-color: var(--acc); color: var(--l1); }

/* получатели, участники: чипы с аватаром */
.st-recs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-rec { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 6px 0 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--l1); font-size: 12.5px; }
.st-rec b { font-weight: 560; }
.st-rec:not(:has(.st-rec-x)) { padding-right: 12px; }
.st-rec-x { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 0; border-radius: 999px; background: none; color: var(--mut2); cursor: pointer; }
.st-rec-x:hover { background: var(--zav-soft); color: var(--zav); }

/* опасная зона */
.st-danger { background: var(--zav-row); border-color: var(--zav-brd); }
.st-danger-b { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 16px 20px; }
.st-danger-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 320px; }
.st-danger-t b { font-size: 14.5px; font-weight: 640; }
.st-danger-t span { font-size: 12.5px; line-height: 18px; color: var(--mut); max-width: 66ch; }

/* ── Узкое окно ─────────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .st-main { padding: 22px 24px 120px; }
  .st-bar-long { display: none; }
  .st-bar-short { display: inline; }
}
@media (max-width: 900px) {
  .st-main { padding: 18px 16px 96px; }
  .st-bar { margin-right: 76px; --st-bar-gap: 76px; }
}
@media (max-width: 720px) {
  .st-grid, .st-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .st-bar { padding: 10px; flex-wrap: wrap; }
  .st-bar-t { flex: 1 1 100%; }
  .st-bar .grow { display: none; }
  .st-bar .btn { flex: 1 1 auto; }
}

/* меню настроек чуть шире стандартного — как у Закупщика (264 px) */
.st-split { grid-template-columns: var(--split-w, 264px) minmax(0, 1fr); }   /* --split-w — ручка ширины (rails.js, r4) */
@media (max-width: 900px) { .st-split { grid-template-columns: 1fr; } }

/* ── Предприятия и реквизиты ────────────────────────────────────────────────── */
.st-grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; align-items: start; }
.st-c2 { grid-column: span 2; min-width: 0; } .st-c3 { grid-column: span 3; min-width: 0; } .st-c4 { grid-column: span 4; min-width: 0; } .st-c6 { grid-column: 1 / -1; min-width: 0; }
.st-warn { font-style: normal; color: var(--ryn); font-weight: 560; }

.st-ents { display: flex; flex-direction: column; gap: 10px; }
.st-ent {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; border-radius: 12px;
  background: var(--l3); border: 1px solid var(--line); transition: border-color .14s, background .14s;
}
.st-ent:hover { border-color: var(--line-2); }
.st-ent.is-def { background: var(--acc-row); border-color: var(--acc-soft-brd); }
.st-ent-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--line-3); flex: 0 0 auto; align-self: flex-start; margin-top: 6px; }
.st-ent.is-def .st-ent-dot { background: var(--acc); }
.st-ent-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.st-ent-n { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 9px; min-width: 0; }
.st-ent-n b { min-width: 0; font-size: 14.5px; font-weight: 620; letter-spacing: -.008em; overflow-wrap: break-word; }
.st-ent-t > span { font-size: 12.5px; line-height: 18px; color: var(--mut); overflow-wrap: break-word; }
.st-ent-a { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.st-ent-a .ib[disabled] { opacity: .4; cursor: default; pointer-events: none; }

/* документы предприятия */

/* выбор файла в окне */
.st-file { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1.5px dashed var(--line-3); background: var(--l2); }
.st-file-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--acc-soft); border: 1px solid var(--acc-soft-brd); color: var(--acc); flex: 0 0 auto; }
.st-file-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.st-file-t b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-file-t span { font-size: 12px; color: var(--mut2); }

@media (max-width: 900px) {
  .st-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-c2, .st-c3 { grid-column: span 1; } .st-c4, .st-c6 { grid-column: 1 / -1; }
  .st-ent { flex-wrap: wrap; }
  .st-ent-a { width: 100%; justify-content: flex-end; }
}

/* ── Рабочее время ──────────────────────────────────────────────────────────── */
.st-presets { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 14px; }
.st-week { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.st-day { display: grid; grid-template-columns: 40px 140px minmax(0, 1fr) 132px; align-items: center; gap: 12px; padding: 10px 16px; min-height: 54px; border-bottom: 1px solid var(--line); background: var(--l1); transition: background .14s; }
.st-day:last-child { border-bottom: 0; }
.st-day.is-off { background: var(--l3); }
.st-day.is-bad { background: var(--zav-row); }
.st-day-n { font-size: 14px; font-weight: 600; }
.st-day.is-off .st-day-n { color: var(--mut2); font-weight: 500; }
.st-day-t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-day-dash { color: var(--mut2); }
.st-time { width: 118px; flex: 0 0 auto; }
.st-day-off { font-size: 13px; color: var(--mut2); }
.st-day-d { font-size: 12.5px; color: var(--mut); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.st-hols { display: flex; flex-direction: column; gap: 8px; }
.st-hol { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--l3); border: 1px solid var(--line); }
.st-hol.is-past { opacity: .62; }
.st-hol-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: var(--l2); border: 1px solid var(--line); color: var(--mut); }   /* r4: значок праздников — не тревога, без янтаря */
.st-hol-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.st-hol-t b { font-size: 14px; font-weight: 600; }
.st-hol-t span { font-size: 12.5px; color: var(--mut2); }

@media (max-width: 1280px) {
  .st-day { grid-template-columns: 40px 112px minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px; }
  .st-time { width: 106px; }
  .st-day-d { font-size: 12px; }
}
@media (max-width: 720px) {
  .st-day { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 8px; }
  .st-day-n { grid-column: 2; grid-row: 1; }
  .st-day-d { grid-column: 3; grid-row: 1; }
  .st-day-t { grid-column: 1 / -1; grid-row: 2; }
}

/* ── Сотрудники и роли ──────────────────────────────────────────────────────── */
.st-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.st-tools .search { min-width: 220px; }
.st-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.st-who-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.st-who-t b { display: block; font-size: 13.5px; font-weight: 600; }
.st-who-t em { display: block; font-style: normal; font-size: 12px; color: var(--mut2); }
.st-who-t b.st-nm { display: flex; align-items: center; gap: 7px; min-width: 0; }
.st-you { flex: 0 0 auto; padding: 1px 6px; border-radius: 6px; background: var(--l2); border: 1px solid var(--line); color: var(--mut2); font-style: normal; font-size: 10px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }
.st-rolebtn .st-dot { background: var(--t); }
.st-tms { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; }
.st-tms .pill { max-width: 100%; min-width: 0; flex: 0 1 auto; }
.st-tms .pill .ell { overflow: hidden; text-overflow: ellipsis; }
.st-more { font-size: 12px; font-weight: 600; color: var(--mut2); }
.st-lim { white-space: nowrap; font-size: 13px; color: var(--mut); }
.st-tbl .tbl tbody tr[data-act] { cursor: pointer; }
.st-tbl .tbl tbody tr.is-off td { opacity: .55; }
.st-tbl .tbl td { padding: 10px 12px; }
.st-tbl .tbl th { padding: 0 12px; }
.st-tbl .tbl td:first-child, .st-tbl .tbl th:first-child { padding-left: 16px; }
.st-tbl-t { table-layout: fixed; width: 100%; }
/* ширины под самое длинное значение («Администратор», «без ограничений»); команды и уступки переносятся, а не режутся */
.st-cw-role { width: 134px; } .st-cw-tm { width: 164px; } .st-cw-lim { width: 140px; } .st-cw-act { width: 48px; }
.st-tbl-t .st-who-t em.ell { white-space: normal; overflow-wrap: break-word; }
.st-tbl-t .st-tms > .ell { white-space: normal; overflow-wrap: break-word; }
.st-tbl-t td.st-lim { white-space: normal; }
.st-tbl-t th { white-space: normal; line-height: 14px; }
.st-tm-n { display: none; }
/* узкое окно: команды — второй строкой под должностью, колонка уступок шире */
@media (max-width: 1280px) {
  .st-cw-lim { width: 150px; }
  .st-tbl-t col.st-cw-role, .st-tbl-t col.st-cw-tm, .st-tbl-t th:nth-child(2), .st-tbl-t td:nth-child(2), .st-tbl-t th:nth-child(3), .st-tbl-t td:nth-child(3) { display: none; }
  .st-tbl-t th { white-space: normal; line-height: 14px; }
  .st-tm-n { display: block; font-size: 12px; line-height: 16px; color: var(--mut2); }
}

.st-role-t { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tms { font-size: 13px; color: var(--mut); }
.st-tms > .ell { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-nm .pill { flex: 0 0 auto; }
.st-lim { overflow: hidden; text-overflow: ellipsis; }
.st-rolebtn { padding: 0 7px 0 10px; gap: 6px; }
.st-tbl-t td { overflow: hidden; }
.st-tbl-t .st-who { min-width: 0; }
.st-tbl-t .dot-t { max-width: 100%; }
.st-hint-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.st-roles-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-rl { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 14px 16px; border-radius: 14px; background: var(--l1); border: 1px solid var(--line); }
.st-rl p { font-size: 12.5px; line-height: 18px; color: var(--mut); }

/* окна сотрудника и команды */
.st-umod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; align-items: start; }
.st-picks-1 { grid-template-columns: minmax(0, 1fr); }
.st-cans { display: flex; flex-direction: column; gap: 8px; }
.st-cans .check { padding: 10px 12px; align-items: center; }
.st-mems { display: flex; flex-direction: column; max-height: 292px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.st-mem { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.st-mem:last-child { border-bottom: 0; }
.st-mem:hover { background: var(--l3); }
.st-mem-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.st-mem-t b { font-size: 13px; font-weight: 560; }
.st-mem-t em { font-style: normal; font-size: 12px; color: var(--mut2); }

/* таблица прав */
.st-matrix-w { border: 1px solid var(--line); border-radius: 12px; overflow: auto; }
@media (min-width: 721px) { .st-matrix-w { overflow: clip; } }   /* прокручивается само окно — шапка таблицы липнет к его верху */
.st-matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.st-matrix th { position: sticky; top: 0; z-index: 2; padding: 12px 14px; text-align: left; background: var(--l1); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--mut2); }
.st-matrix th.c, .st-matrix td.c { width: 150px; text-align: center; }
.st-mh { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.st-mh-l { align-items: flex-start; }
.st-mh em { font-style: normal; font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--mut2); }
.st-matrix td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.st-matrix tr:last-child td { border-bottom: 0; }
.st-mg td { padding: 8px 14px; background: var(--l2); font-size: 10.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--mut2); }
.st-pl { display: flex; flex-direction: column; gap: 2px; }
.st-pl b { font-weight: 560; }
.st-pl em { font-style: normal; font-size: 12px; line-height: 16px; color: var(--mut2); }
.st-yes { display: inline-flex; color: var(--vyg); }
.st-no { display: inline-flex; color: var(--mut2); }
.st-matrix .cb { justify-content: center; }

/* ── Команды ────────────────────────────────────────────────────────────────── */
.st-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.st-team { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px 18px; border-radius: 14px; background: var(--l1); border: 1px solid var(--line); transition: border-color .14s; }
.st-team:hover { border-color: var(--line-2); }
.st-team::before { content: ''; position: absolute; left: 0; top: 18px; width: 4px; height: 26px; border-radius: 0 4px 4px 0; background: var(--t, var(--line-3)); }
.st-team-h { display: flex; align-items: flex-start; gap: 12px; }
.st-team-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; background: var(--ts); border: 1px solid var(--tb); color: var(--t); }
.st-team-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.st-team-t b { font-size: 15px; font-weight: 640; letter-spacing: -.008em; }
.st-team-t em { font-style: normal; font-size: 12.5px; line-height: 17px; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-team-m { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.st-team-r { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.st-team-d { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.st-team-d p { font-size: 13px; line-height: 18px; color: var(--mut); }
.st-team-f { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.st-team-fl { display: flex; flex-direction: column; font-size: 13px; line-height: 17px; min-width: 0; }
.st-team-fl em { font-style: normal; font-size: 12px; color: var(--mut2); }
.st-av-more { background: var(--l2); border-color: var(--line-2); color: var(--mut); }
.st-tones { display: flex; gap: 10px; }
.st-tone { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 999px; border: 2px solid transparent; background: var(--l1); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: box-shadow .14s, border-color .14s; }
.st-tone i { width: 18px; height: 18px; border-radius: 999px; background: var(--t); }
.st-tone[aria-pressed="true"] { border-color: var(--t); box-shadow: 0 0 0 3px var(--ts); }

@media (max-width: 900px) {
  .st-umod { grid-template-columns: minmax(0, 1fr); }
  .st-roles-legend { grid-template-columns: minmax(0, 1fr); }
}

/* ── Каналы (сводка) ────────────────────────────────────────────────────────── */
.st-link-card { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px 18px; padding: 18px 20px; }
.st-link-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; background: var(--acc-soft); border: 1px solid var(--acc-soft-brd); color: var(--acc); }
.st-link-t { display: flex; flex-direction: column; gap: 3px; flex: 1 1 320px; min-width: 0; }
.st-link-t b { font-size: 15.5px; font-weight: 640; letter-spacing: -.008em; }
.st-link-t span { font-size: 13px; line-height: 19px; color: var(--mut); max-width: 62ch; }
.st-chs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.st-ch { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 14px; border-radius: 12px; background: var(--l3); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .14s, background .14s; }
.st-ch:hover { border-color: var(--acc-soft-brd); background: var(--l1); color: var(--ink); text-decoration: none; }
.st-ch-t { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.st-ch-t b { font-size: 13.5px; font-weight: 600; }
.st-ch-t em { font-style: normal; font-size: 12px; color: var(--mut2); }
.st-ch-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 1 auto; min-width: 0; max-width: 46%; }
.st-ch-r em { max-width: 100%; font-style: normal; font-size: 11.5px; color: var(--mut2); }

/* ── Интеграции ─────────────────────────────────────────────────────────────── */
.st-ihead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-ihead .search { min-width: 220px; }
.st-ints { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.st-int { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 16px 14px 18px; border-radius: 14px; background: var(--l1); border: 1px solid var(--line); transition: border-color .14s, box-shadow .14s; }
.st-int:hover { border-color: var(--line-2); box-shadow: 0 8px 20px -12px rgba(58,79,124,.28); }
/* «работает» — норма: без цвета и полоски; цвет оставлен только отклонениям */
.st-int-on { font-size: 12px; color: var(--mut); }
.st-int.is-soon { background: var(--l3); }
.st-int-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.st-int-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-int-t b { font-size: 14.5px; font-weight: 640; line-height: 20px; overflow-wrap: anywhere; }
.st-int-t em { font-style: normal; font-size: 10.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--mut2); }
.st-itile { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; background: var(--ts); border: 1px solid var(--tb); color: var(--t); }
.st-itile-s { width: 28px; height: 28px; border-radius: 8px; }
.st-int-d { flex: 1 1 auto; font-size: 12.5px; line-height: 18px; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-int-sy { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut2); }
.st-int-f { display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.st-int-s { flex: 1 1 auto; min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-int-off { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut2); }
.st-help { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.st-help-h { display: flex; align-items: center; gap: 10px; }
.st-help-h b { font-size: 14px; font-weight: 640; }
.st-help p { font-size: 13px; line-height: 19px; color: var(--mut); }

/* окно подключения — разговор App.briefChat (r31): адрес и ключ для вас (.st-gen — и в окне подключённой интеграции),
   список «что обмениваем» с отметками, код в строке карточки */
.st-gen { display: flex; flex-direction: column; gap: 7px; }
.st-code { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 12px; border-radius: 10px; background: var(--l2); border: 1px solid var(--line); }
.st-code code { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12.5px/1.5 var(--mono); color: var(--ink); }
pre.st-code { display: block; margin: 0; padding: 12px 14px; overflow: hidden; font: 500 12.5px/1.6 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.st-int-win .st-gen { width: 100%; max-width: 560px; }
.st-int-syncs .st-int-sy { align-items: flex-start; }
.st-int-ck { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  border: 1.5px solid var(--brc-brd, var(--line-3)); color: var(--l1); transition: background-color .14s, border-color .14s; }
.st-int-sy.is-on .st-int-ck { background: var(--k-lilac, var(--acc)); border-color: var(--k-lilac, var(--acc)); }
.st-int-sy.is-on .st-int-ck { color: #1b1433; }
[data-theme="light"] .st-int-sy.is-on .st-int-ck { color: #fff; }
.st-int-sy .brc-opt-t small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 18px; font-weight: 400; color: var(--k-mut, var(--mut)); }
.st-int-code { font: 500 12.5px/1.5 var(--mono); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .st-int-ck { transition: none; } }

/* ── Виджеты ────────────────────────────────────────────────────────────────── */
.st-wg { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 18px; align-items: start; }
.st-wg-l { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.st-wg-r { position: sticky; top: calc(var(--topbar-h) + 16px); min-width: 0; }
.st-wg-rh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.st-away { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--l2); border: 1px solid var(--line); }
.st-away-t { flex: 1 1 200px; font-size: 13.5px; line-height: 19px; }
.st-code-link { padding: 11px 14px; }
.st-code-link code { white-space: normal; overflow-wrap: anywhere; }

/* макет сайта и виджет на нём */
.st-site { position: relative; display: flex; flex-direction: column; height: 430px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--l1); overflow: hidden; }
.st-site-bar { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 9px 12px; background: var(--l2); border-bottom: 1px solid var(--line); }
.st-site-bar i { width: 8px; height: 8px; border-radius: 999px; background: var(--line-3); }
.st-site-bar span { flex: 1 1 auto; min-width: 0; margin-left: 10px; padding: 3px 11px; border-radius: 999px; background: var(--l1); border: 1px solid var(--line); font-size: 11px; color: var(--mut2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-site-body { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; padding: 14px; overflow: hidden; }
.st-site-nav { display: flex; align-items: center; gap: 10px; }
.st-site-nav b { margin-right: auto; font-size: 12px; letter-spacing: -.01em; }
.st-site-nav i { width: 38px; height: 6px; border-radius: 4px; background: var(--line); }
.st-site-hero { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 10px; background: var(--l2); }
.st-sk { display: block; height: 9px; border-radius: 5px; background: var(--line-2); }
.st-sk-b { width: 92px; height: 24px; margin-top: 4px; border-radius: 8px; background: var(--acc-soft); border: 1px solid var(--acc-soft-brd); }
.st-site-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-site-cards div { height: 76px; border-radius: 10px; background: var(--l2); border: 1px solid var(--line); }

.st-wd { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: calc(100% - 28px); }
.st-wd[data-pos="left"] { right: auto; left: 14px; align-items: flex-start; }
.st-wd-win { width: 262px; max-width: 100%; display: flex; flex-direction: column; border-radius: 14px; background: var(--l1); border: 1px solid var(--tb); box-shadow: var(--sh-pop); overflow: hidden; }
.st-wd-h { display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: var(--ts); border-bottom: 1px solid var(--tb); color: var(--ink); }
.st-wd-av { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 999px; background: var(--l1); border: 1px solid var(--tb); color: var(--t); }
.st-wd-ht { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.st-wd-ht b { font-size: 12.5px; font-weight: 640; }
.st-wd-ht em { font-style: normal; font-size: 11px; color: var(--mut); }
.st-wd-ht em::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 999px; background: var(--vyg); vertical-align: 1px; }
.st-wd-x { display: inline-flex; color: var(--mut2); }
.st-wd-b { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.st-wd-msg { align-self: flex-start; max-width: 90%; padding: 8px 11px; border-radius: 12px 12px 12px 4px; background: var(--l2); border: 1px solid var(--line); font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
.st-wd-q { display: flex; flex-wrap: wrap; gap: 6px; }
.st-wd-q span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--tb); background: var(--ts); color: var(--t); font-size: 11.5px; font-weight: 560; }
.st-wd-in { display: flex; align-items: center; gap: 8px; margin: 0 10px 10px; padding: 6px 6px 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-off); }
.st-wd-in span { flex: 1 1 auto; }
.st-wd-in i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--ts); border: 1px solid var(--tb); color: var(--t); }
.st-wd-fab { display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 999px; background: var(--t); color: var(--l1); cursor: pointer; box-shadow: 0 8px 18px -8px var(--t); transition: transform .14s; }
.st-wd-fab:hover { transform: scale(1.05); }
.st-wd-tip { padding: 6px 11px; border-radius: 10px; background: var(--l1); border: 1px solid var(--line-2); box-shadow: var(--sh-pop); font-size: 12px; color: var(--ink); }
.st-wd-stack { gap: 10px; align-items: flex-end; }
.st-wd-stack[data-pos="left"] { align-items: flex-start; }
.st-wd-ch { display: grid; place-items: center; width: var(--fab, 54px); height: var(--fab, 54px); border-radius: 999px; background: var(--l1); border: 1px solid var(--line-2); box-shadow: var(--sh-pop); }
.st-wd-none { padding: 8px 12px; border-radius: 10px; background: var(--ryn-soft); border: 1px solid var(--ryn-brd); color: var(--ryn); font-size: 12px; }

/* кнопки мессенджеров */
.st-chans { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.st-chan { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: var(--l1); border-bottom: 1px solid var(--line); }
.st-chan:last-child { border-bottom: 0; }
.st-chan:not(.is-on) { background: var(--l3); }
.st-chan:not(.is-on) .ch, .st-chan:not(.is-on) .st-chan-t { opacity: .62; }
.st-chan-t { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.st-chan-t b { font-size: 13.5px; font-weight: 600; }
.st-chan-t em { font-style: normal; font-size: 12px; color: var(--mut2); }
.st-chan-a { display: flex; gap: 2px; min-width: 56px; justify-content: flex-end; }
.st-chan-a .ib[disabled] { opacity: .35; pointer-events: none; }

/* QR-код */
.st-qr .card-b { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.st-qr .kicker { align-self: flex-start; }
.st-qr-box { padding: 14px; border-radius: 16px; background: var(--l1); border: 1px solid var(--line-2); }
.st-qr-box svg { display: block; width: 232px; height: 232px; }
.st-qr-bad { display: flex; align-items: flex-start; gap: 10px; width: 232px; padding: 16px; border-radius: 12px; background: var(--ryn-soft); border: 1px solid var(--ryn-brd); color: var(--ryn); font-size: 12.5px; line-height: 18px; text-align: left; }
.st-qr-cap { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.st-qr-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.st-qr .hint { max-width: 36ch; }

@media (max-width: 1280px) {
  .st-wg { grid-template-columns: minmax(0, 1fr); }
  .st-wg-r { position: static; }
}

/* ── Профиль ────────────────────────────────────────────────────────────────── */
.st-me { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.st-me-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-me-t b { font-size: 18px; font-weight: 650; letter-spacing: -.012em; }
.st-me-t > span { font-size: 13px; color: var(--mut); }
.st-me-t .row { margin-top: 4px; gap: 10px; font-size: 12.5px; }
.st-sec { display: flex; flex-direction: column; }
.st-sec-r { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-sec-r:first-child { padding-top: 0; }
.st-sec-r:last-child { padding-bottom: 0; border-bottom: 0; }

.st-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-theme { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--l1); text-align: left; cursor: pointer; transition: border-color .14s, box-shadow .14s, background .14s; }
.st-theme:hover { border-color: var(--acc-soft-brd); background: var(--l3); }
.st-theme[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-row); box-shadow: 0 0 0 3px var(--acc-soft); }
.st-theme-t { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.st-theme-t b { font-size: 14px; font-weight: 620; }
.st-theme-t em { font-style: normal; font-size: 12.5px; line-height: 17px; color: var(--mut2); }
.st-theme .st-pick-ck { top: 20px; right: 20px; background: var(--l1); }
.st-theme[aria-pressed="true"] .st-pick-ck { background: var(--acc); border-color: var(--acc); color: var(--l1); }
/* мини-макет: свои токены через data-theme на самом макете, поэтому светлый всегда светлый, тёмный — тёмный */
.st-th-mock { display: block; height: 96px; border-radius: 10px; border: 1px solid var(--line-2); overflow: hidden; background: var(--l0); }
.st-th-in { display: flex; width: 100%; height: 100%; background: var(--l0); color: var(--ink); }
.st-th-side { flex: 0 0 24%; background: var(--l1); border-right: 1px solid var(--line); }
.st-th-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; padding: 9px; }
.st-th-bar { display: block; height: 14px; width: 58%; border-radius: 5px; background: var(--acc-soft); border: 1px solid var(--acc-soft-brd); }
.st-th-card { display: block; height: 22px; border-radius: 6px; background: var(--l1); border: 1px solid var(--line); }
.st-th-short { width: 70%; }
.st-th-auto { display: flex; }
.st-th-half { position: relative; flex: 0 0 50%; overflow: hidden; background: var(--l0); }
.st-th-half > .st-th-in { position: absolute; top: 0; left: 0; width: 200%; height: 100%; }
.st-th-half.st-th-r > .st-th-in { left: -100%; }

.st-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px 16px; }
.st-key { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.st-key kbd { flex: none; min-width: 24px; padding: 4px 7px; text-align: center; font-size: 11.5px; }
.st-key > span { color: var(--mut2); }
.st-key em { margin-left: 8px; font-style: normal; color: var(--mut); }

.st-tf { display: flex; gap: 22px; align-items: flex-start; }
.st-tf .st-qr-box { flex: 0 0 auto; }
.st-tf .st-qr-box svg { width: 188px; height: 188px; }
.st-tf-t { flex: 1 1 auto; min-width: 0; }
.st-otp { font-size: 18px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }

/* ── Уведомления ────────────────────────────────────────────────────────────── */
.st-ntm-w { border: 1px solid var(--line); border-radius: 12px; overflow: auto; }
.st-ntm { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.st-ntm th { padding: 8px 10px; text-align: left; background: var(--l1); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--mut2); white-space: nowrap; }
.st-ntm th:first-child { padding-left: 16px; }
.st-ntm th.c, .st-ntm td.c { width: 104px; text-align: center; }
.st-ntm td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.st-ntm td:first-child { padding-left: 16px; }
.st-ntm tr:last-child td { border-bottom: 0; }
.st-ntm tbody tr:hover td { background: var(--l3); }
.st-ntm .cb { justify-content: center; }
.st-ntm-h { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; background: none; font: inherit; font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--mut2); cursor: pointer; }
.st-ntm-h:hover { background: var(--acc-soft); border-color: var(--acc-soft-brd); color: var(--acc); }
.st-quiet { padding-top: 14px; }
.st-quiet.is-off { opacity: .5; pointer-events: none; }
.st-quiet .st-grid { grid-template-columns: repeat(2, minmax(0, 200px)); }

@media (max-width: 900px) {
  .st-themes { grid-template-columns: minmax(0, 1fr); }
  .st-tf { flex-direction: column; align-items: center; }
}

/* ── Условия продажи ────────────────────────────────────────────────────────── */
.st-num { display: flex; align-items: center; gap: 10px; }
.st-num .in { width: 84px; flex: 0 0 auto; }
.st-num em { font-style: normal; font-size: 13.5px; color: var(--mut); white-space: nowrap; }
.st-num em.st-warn { color: var(--ryn); }
.st-num .in.st-in-bad { border-color: var(--zav-brd); box-shadow: 0 0 0 3px var(--zav-soft); }
.st-facts { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 20px; color: var(--ink); }
.st-facts b { font-weight: 620; }
.st-sub > .link { align-self: flex-start; }
/* строка-вывод со ссылкой туда, где это правится */
.st-concede, .st-link-row { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; font-size: 13px; line-height: 19px; color: var(--mut); }
.st-concede > svg, .st-link-row > svg { flex: 0 0 auto; color: var(--mut2); }
.st-concede > span, .st-link-row > span { flex: 1 1 220px; min-width: 0; }
.st-concede b { color: var(--ink); font-weight: 600; }
.st-link-row { padding: 12px 14px; border-radius: 12px; background: var(--l1); border: 1px solid var(--line); }
.st-sub.st-away { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 14px 0 0; margin: 14px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; font-size: 13px; color: var(--mut); }
.st-sub.st-away > span:first-child { display: inline-flex; align-self: flex-start; margin-top: 2px; color: var(--ai); }
.st-sub.st-away > span:nth-child(2) { flex: 1 1 260px; min-width: 0; }
.st-quiet .sel { max-width: 200px; }

@media (max-width: 1280px) { .st-ntm th.c, .st-ntm td.c { width: 84px; } .st-ntm th { padding-left: 6px; padding-right: 6px; white-space: normal; } .st-ntm-h { height: auto; min-height: 30px; padding: 4px 6px; flex-direction: column; gap: 2px; line-height: 13px; } }

/* права сотрудника — компактный список с одной рамкой вокруг, без рамки у каждой строки */
.st-cans[data-cans] { gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.st-cans[data-cans] .check { padding: 9px 12px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
.st-cans[data-cans] .check:last-child { border-bottom: 0; }
.st-cans[data-cans] .check:has(input:checked) { background: none; }
.st-cans[data-cans] .check:hover { background: var(--l3); }
.st-cans[data-cans] .check-t i { color: var(--ryn); }
.st-cans[data-cans] > .hint { padding: 10px 12px; }

/* серая подпись пункта-ссылки меню Настроек: «в «Компаниях» ›» */
.st-nav-note { display: block; font-style: normal; font-size: 11.5px; line-height: 15px; color: var(--mut2); }

/* ── r16 (24.10): Уведомления — «Куда присылать», адрес под столбцом, сводка с правкой почты щелчком, звук ── */
.st-dst { display: flex; flex-direction: column; }
.st-dst-r { display: grid; grid-template-columns: 36px minmax(160px, 220px) minmax(0, 1fr); align-items: center; gap: 12px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-dst-r:first-child { padding-top: 0; }
.st-dst-r:last-child { padding-bottom: 0; border-bottom: 0; }
.st-dst-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--l1); color: var(--mut); }
.st-dst-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-dst-t b { font-size: 14px; font-weight: 600; }
.st-dst-t span { font-size: 12.5px; line-height: 17px; color: var(--mut); }
.st-dst-c { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.st-dst-v { font-size: 13.5px; font-weight: 560; color: var(--ink); overflow-wrap: anywhere; }
.st-dst-v.is-none { font-weight: 450; color: var(--mut2); }
.st-mails { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.st-mail { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; height: 32px; padding: 0 6px 0 0; border-radius: 999px; border: 1px solid var(--line-2); background: var(--l1); }
.st-mail.is-on { border-color: var(--acc-soft-brd); background: var(--acc-soft); }
.st-mail:not(:has(.st-rec-x)) { padding-right: 4px; }
.st-mail-b { display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 8px 0 10px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.st-mail-b > i { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 999px; border: 1.5px solid var(--line-3, var(--mut2)); background: var(--l0, #fff); }
.st-mail.is-on .st-mail-b > i { border: 4px solid var(--acc); }
.st-mail-b > .ell { min-width: 0; max-width: 260px; }
.st-mail-b > em { flex: 0 0 auto; font-style: normal; font-size: 11px; color: var(--mut2); }
.st-mail-b:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.st-ntm th.c { vertical-align: top; }
.st-ntm th.is-dis .st-ntm-h { opacity: .55; cursor: default; }
.st-ntm-h:disabled:hover { background: none; border-color: transparent; color: var(--mut2); }
.st-ntm-d { display: block; max-width: 128px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 450; letter-spacing: 0; text-transform: none; color: var(--mut2); }
.st-ntm th.c, .st-ntm td.c { width: 132px; }
.st-ntm .cb.is-dis { opacity: .4; cursor: not-allowed; }
/* сводка недели: фишка получателя — кнопка (щелчок — сменить почту), под именем — куда уходит */
.st-wk.is-off .st-recs { opacity: .55; }
.st-rec.st-rec-m { height: auto; min-height: 40px; padding: 0 6px 0 0; }
.st-rec-b { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 8px 4px 5px; border: 0; border-radius: 999px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.st-rec-b:not(:disabled):hover { background: var(--acc-soft); }
.st-rec-b:disabled { cursor: default; }
.st-rec-b:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.st-rec-t { display: flex; flex-direction: column; min-width: 0; line-height: 15px; }
.st-rec-t b { font-size: 12.5px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.st-rec-t em { font-style: normal; font-size: 11.5px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.st-rec-ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--l3); color: var(--mut); flex: 0 0 auto; }
.st-rec.st-rec-m:not(:has(.st-rec-x)) { padding-right: 6px; }
/* звук: строка «что — когда» и выбор сегментами */
.st-snd { display: flex; flex-direction: column; }
.st-snd-r { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-snd-r:first-child { padding-top: 0; }
.st-snd-try { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 14px; padding: 0; font-size: 13px; }
@media (max-width: 1280px) {
  .st-dst-r { grid-template-columns: 36px minmax(0, 1fr); }
  .st-dst-c { grid-column: 2; }
  .st-ntm th.c, .st-ntm td.c { width: 108px; }
  .st-ntm-d { max-width: 100px; }
}

/* r23: «Правила ИИ-агентов» — выбор агента над правилами и строка-ссылка на «Токены» */
.st-rl-ag { margin: 0 0 16px; }
.st-rl-note { margin: 14px 0 0; }
/* r30: у агента сервера неопубликованный черновик — строка с «Опубликовать» (янтарная кромка, без заливки) */
.st-rl-pub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 8px 10px; border: 1px solid var(--line-2); border-left: 3px solid var(--ryn); border-radius: 10px; font-size: 12.5px; color: var(--mut); }
.st-rl-pub > svg { flex: 0 0 auto; }
.st-rl-pub > span { flex: 1 1 220px; min-width: 0; }
.st-rules .card-b > .field + .st-grid { margin-top: 16px; }
