/* modules/portal/public/css/portal.css — дизайн-система клиентского ЛК (свежая, чистая, clicks-only).
   Без Tailwind-рантайма и инлайн-стилей во вьюхах (антипаттерны v4). Светлая тема по умолчанию + тёмная (data-theme). */

:root {
  /* Бренд proДвиж: оранжевый #FF6A00 (заливки), --accent-ink — тот же оттенок для ТЕКСТА на светлом (AA ≥ 4.5),
     кнопки — градиент логотипа с тёмно-синим текстом #1A1F2B (контраст ≥ 5:1; белый на оранжевом давал 2.9). */
  --accent: #ff6a00;
  --accent-600: #e85a00;
  --accent-soft: #fff1e6;
  --accent-ink: #c2410c;
  --accent-grad: linear-gradient(135deg, #ff8a00 0%, #ff5a1f 100%);
  --on-accent: #1a1f2b;
  --chart-1: #6366f1;           /* 1-я серия многосерийных графиков: оранжевый бренда близок к --amber, поэтому данные — индиго */
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --border: #e7e8ee;
  --text: #1c2230;
  --text-2: #6b7280;
  --text-3: #9aa1ad;
  --green: #16a34a; --green-soft:#e9f7ef;
  --red: #dc2626;   --red-soft:#fdecec;
  --amber:#d97706;  --amber-soft:#fef3e2;
  --blue: #2563eb;  --blue-soft:#e8efff;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
  --radius: 12px; --radius-sm: 8px;
  --sidebar-w: 244px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="dark"] {
  --accent:#ff7a1a; --accent-600:#ff9a52; --accent-soft:#2b1e14; --accent-ink:#ff8a3d; --chart-1:#818cf8;
  --bg:#0e1118; --surface:#151a24; --surface-2:#1a1f2b; --border:#262d3c;   /* поверхности — от тёмно-синего логотипа #1A1F2B */
  --text:#e7e9ee; --text-2:#9aa3b2; --text-3:#6b7383;
  --green-soft:#10271b; --red-soft:#2a1517; --amber-soft:#2a2010; --blue-soft:#13203b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
small { color: var(--text-2); }
/* Атрибут hidden должен реально прятать даже элементы с инлайновым display (иначе portal.js-тоггл [hidden] на
   спанах хвостов с style="display:inline-flex" не срабатывал — инлайн перебивал UA-правило [hidden]{display:none}). */
[hidden] { display: none !important; }

/* ── Layout ── */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.main { min-width: 0; display: flex; flex-direction: column; }
.content { padding: 26px 32px 60px; flex: 1; width: 100%; }

/* ── Sidebar ── */
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--border); color: var(--text); }
.sidebar__brand:hover { text-decoration: none; }
.sidebar__logo { width: 30px; height: 30px; flex: none; border-radius: 8px; display: block; }
.nav { padding: 12px 12px; overflow-y: auto; flex: 1; }
.nav__label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 14px 12px 6px; }
.nav__item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; margin-bottom: 2px; transition: background .12s, color .12s; }
.nav__item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav__item svg { width: 19px; height: 19px; flex: none; }
.nav__item.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.nav__item.is-active svg { color: var(--accent-ink); }
.sidebar__foot { padding: 12px; border-top: 1px solid var(--border); }

/* ── Topbar ── */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar__spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: 13px; border: 1px solid var(--border); background: var(--surface); }
.pill--balance { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.pill--balance svg { width: 15px; height: 15px; }
.pill--sub { color: var(--amber); border-color: var(--amber-soft); background: var(--amber-soft); }
.pill--admin { color: var(--accent-ink); border-color: var(--accent); background: transparent; text-decoration: none; cursor: pointer; font: inherit; }
.pill--admin:hover { background: var(--accent-soft); }
/* Баннер impersonation (оператор смотрит ЛК клиента) — над топбаром, заметный. Свой кабинет (self) баннер НЕ показывает. */
.imp-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 18px; background: var(--red-soft); color: var(--red); border-bottom: 1px solid var(--red); font-size: 13px; font-weight: 600; }
.imp-banner__txt { flex: 1 1 auto; }
.imp-banner__id { opacity: .65; font-weight: 500; }
.imp-banner__exitform { margin: 0; }
.imp-banner__exit { color: var(--red); text-decoration: underline; white-space: nowrap; font-weight: 700; cursor: pointer; background: none; border: 0; font: inherit; padding: 0; }
.imp-banner__exit:hover { opacity: .8; }
.iconbtn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.iconbtn:hover { color: var(--text); }
.iconbtn svg { width: 18px; height: 18px; }

/* user dropdown */
.usermenu { position: relative; }
.usermenu__btn { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-grad); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.usermenu__panel { position: absolute; right: 0; top: 46px; width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; }
.usermenu.open .usermenu__panel { display: block; }
.usermenu__head { padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.usermenu__item { display: block; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text); }
.usermenu__item:hover { background: var(--surface-2); text-decoration: none; }
.usermenu__item.danger { color: var(--red); }

/* ── Хлебные крошки (слим-бар под топбаром; локация переехала сюда из topbar__title) ── */
.crumbs { padding: 9px 24px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.crumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.crumbs__item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs__link { color: var(--text-2); white-space: nowrap; }
.crumbs__link:hover { color: var(--accent-ink); text-decoration: none; }
.crumbs__cur { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.crumbs__sep { color: var(--text-3); }

/* ── Мобильный дровер: подложка + крестик закрытия (на десктопе скрыты) ── */
.sidebar-backdrop { display: none; }
.sidebar__close { display: none; }

/* ── Cards / grid ── */
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }
.cols-5 { grid-template-columns: repeat(5,1fr); }
.dash { grid-template-columns: 1fr 340px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.card__head h3 { font-size: 14px; }
.card__body { padding: 18px; }
.card__foot { padding: 14px 18px; border-top: 1px solid var(--border); }

/* stat cards */
.stat { padding: 16px 18px; }
.stat__label { color: var(--text-2); font-size: 12.5px; display:flex; align-items:center; gap:7px; }
.stat__label svg { width: 16px; height: 16px; flex: none; }
/* Без явного размера inline-SVG в тексте раздувается — ограничиваем все иконки в текстовых контекстах. */
.card__head h3 svg, .help svg, p svg { width: 16px; height: 16px; vertical-align: -3px; }
.stat__value { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.stat__sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.stat__value.green { color: var(--green); } .stat__value.amber { color: var(--amber); } .stat__value.blue { color: var(--blue); } .stat__value.red { color: var(--red); }
/* ★ 06.10 план кликов в день (спека 2026-10-06 §2): вторая строка «с кривой» и янтарь «ключи просят больше лимита группы» */
.plan-curve { font-size: 12px; font-weight: 400; }
.plan-over { color: var(--amber); }

/* ── Badges / tags ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; opacity:.9; }
.badge--success { color: var(--green); background: var(--green-soft); }
.badge--danger  { color: var(--red); background: var(--red-soft); }
.badge--warn    { color: var(--amber); background: var(--amber-soft); }
.badge--info    { color: var(--blue); background: var(--blue-soft); }
.badge--muted   { color: var(--text-2); background: var(--surface-2); }
.tag { display:inline-block; padding:2px 8px; border-radius:6px; font-size:12px; background:var(--surface-2); color:var(--text-2); border:1px solid var(--border); margin-right:4px; }

/* ── Tables ── */
.table { width: 100%; border-collapse: collapse; display: block; overflow: auto; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-3); font-weight: 600; padding: 5px 7px; border-bottom: 1px solid var(--border); }
.table td { padding: 6px 7px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.neg { color: var(--red); } .pos { color: var(--green); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: .12s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn--primary { background: var(--accent-grad); border-color: transparent; color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-grad); filter: brightness(1.06); box-shadow: 0 4px 14px rgba(255,106,0,.32); }
.btn--sm { padding: 6px 11px; font-size: 12.5px; }
.btn--block { width: 100%; justify-content: center; }
.btn svg { width: 16px; height: 16px; }

/* ── Tabs ── */
.tabs { display: inline-flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; border: 1px solid var(--border); }
.tabs a { padding: 7px 14px; border-radius: 7px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.tabs a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tabs a:hover { text-decoration: none; color: var(--text); }

/* ── Forms ── */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.input, .select, textarea.input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.help { color: var(--text-3); font-size: 12px; margin-top: 5px; }
.help.neg { color: var(--red); font-weight: 600; }   /* счётчик «Добавить ключи»: слишком много для одной отправки */
.th-sort { color: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; }   /* заголовок сортируемого столбца (список ключей группы) */
.th-sort:hover, .th-sort--active { color: var(--text); }
.th-sort:hover { text-decoration: underline; }
.th-sort .sort-ind { color: var(--blue); font-size: 10px; }

/* ── Page header ── */
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; }
.page-head .sub { color: var(--text-2); }
.page-head .spacer { flex: 1; }

/* ── Chart (inline SVG mock) ── */
.chart { width: 100%; height: 220px; display: block; }
.chart .area { fill: url(#g1); opacity: .9; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.chart .dot { fill: var(--accent); }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .lbl { fill: var(--text-3); font-size: 11px; }

/* ── Flash ── */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; border: 1px solid transparent; }
.flash--success { background: var(--green-soft); color: var(--green); }
.flash--error { background: var(--red-soft); color: var(--red); }
.flash--info { background: var(--blue-soft); color: var(--blue); }

/* ── Footer ── */
.footer { padding: 22px 32px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; display: flex; gap: 26px; flex-wrap: wrap; background: var(--surface); }
.footer a { color: var(--text-2); }

/* ── Promo / banner ── */
.promo { background: var(--accent-grad); color: var(--on-accent); border: none; }
.promo .card__body { color: var(--on-accent); }
.promo .btn { background: rgba(26,31,43,.14); border-color: transparent; color: var(--on-accent); }

/* ── Tree (statistics) ── */
.tree-row td:first-child { white-space: nowrap; }
.tree-toggle { cursor: pointer; user-select: none; display:inline-flex; align-items:center; gap:6px; }
.tree-toggle .chev { transition: transform .15s; color: var(--text-3); }
.tree-row.collapsed .chev { transform: rotate(-90deg); }
.tree-lvl-1 td:first-child { padding-left: 18px; } .tree-lvl-2 td:first-child { padding-left: 30px; }
.tree-lvl-3 td:first-child { padding-left: 42px; }   /* ★ 04.10 ключи узла «Удалённые ключи» (Статистика) */

/* ── Position cells ── */
.pos-cell { font-weight: 700; text-align:center; border-radius:6px; padding:4px 0; }
.pos-top5 { color: var(--green); background: var(--green-soft); }
.pos-top10 { color: var(--blue); background: var(--blue-soft); }
.pos-top30 { color: var(--amber); background: var(--amber-soft); }
.pos-far { color: var(--text-2); background: var(--surface-2); }

/* ── Auth (centered) ── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent), var(--bg); }
.auth__card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 30px; }
.auth__brand { display:flex; flex-direction:column; align-items:flex-start; gap:14px; margin-bottom: 8px; }
.auth__logo { display:inline-block; line-height:0; }
.auth__logo:hover { text-decoration:none; }
.brand-logo { display:block; height:34px; width:auto; }
.brand-logo--dark { display:none; }
[data-theme="dark"] .brand-logo--light { display:none; }
[data-theme="dark"] .brand-logo--dark { display:block; }
.auth__brand-label { font-weight:700; font-size:17px; }
.auth__sub { color: var(--text-2); margin-bottom: 22px; }
/* Правовые документы (/privacy, /consent): длинный текст — карточка шире, разделы с воздухом. */
.auth__card--doc { max-width: 760px; }
.legal__section h2 { font-size: 17px; margin: 22px 0 8px; }
.legal__section p, .legal__section li { line-height: 1.55; }
.legal__section ul { padding-left: 20px; margin: 8px 0; }
.error-card { text-align: center; }
.error-code { font-size: 64px; font-weight: 800; letter-spacing: -.04em; color: var(--accent-ink); line-height: 1; margin: 6px 0 4px; }

/* utility */
.row { display:flex; align-items:center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-16{margin-top:16px}.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}
.nowrap{white-space:nowrap}.tabular{font-variant-numeric:tabular-nums}

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; width: var(--sidebar-w); transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: translateX(0); }
  .dash, .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr; }
  .content { padding: 14px; }
  .crumbs { padding: 9px 14px; }
  .menu-toggle { display: grid !important; }

  /* Подложка под открытым дровером — тап закрывает меню; фон не прокручивается. */
  .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(10,14,24,.45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s; }
  body.nav-open .sidebar-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
  body.nav-open { overflow: hidden; }

  /* Крестик закрытия — в углу открытого сайдбара (бургер шапки перекрыт дровером). */
  .sidebar__close { display: grid; place-items: center; position: absolute; top: 12px; right: 10px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; z-index: 1; }
  .sidebar__close:hover { color: var(--text); }
  .sidebar__close svg { width: 18px; height: 18px; }
  .sidebar__brand { padding-right: 54px; }

  /* Порядок шапки на телефоне: пользователь + клики слева, тема + меню справа (удобно большому пальцу). */
  .topbar { gap: 8px; padding: 10px 14px; }
  .topbar .pill { font-size: 12px; padding: 4px 9px; }
  .topbar .pill--balance svg { width: 13px; height: 13px; }
  .usermenu { order: 1; }
  .pill--admin { order: 2; }
  .pill--balance { order: 3; }
  .pill--sub { order: 4; }
  .topbar__spacer { order: 5; }
  .theme-toggle { order: 6; }
  .menu-toggle { order: 7; }

  /* Аватар без подписи — гарантированно влезает; полное имя видно в открытой панели пользователя. */
  .usermenu__btn { padding: 4px; }
  .usermenu__btn .nowrap { display: none; }
  /* Панель пользователя теперь у левого края — раскрывать вправо, а не за экран. */
  .usermenu__panel { left: 0; right: auto; max-width: calc(100vw - 28px); }

  .page-head { flex-wrap: wrap; gap: 8px; }
  .page-head h1 { font-size: 20px; }
  /* Таблицы: горизонтальный скролл ВНУТРИ карточки (колонки не ломаются) вместо переполнения страницы. */
  .card { overflow-x: auto; }
  .table { min-width: 620px; font-size: 13px; }
}
.menu-toggle { display: none; }

/* Заблокированный авто-хвост: приглушить строку + зачеркнуть ключ (переключается portal.js без перезагрузки). */
.tail-li--blocked { opacity: .55; }
.tail-li--blocked .tail-kw { text-decoration: line-through; }

/* Обращения в поддержку (миграция 033): пузыри треда, статус-пилюли, маркер непрочитанного. */
.sup-msg { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.sup-msg--me { background: var(--surface-2, rgba(127,127,127,.06)); }
.sup-msg--staff { background: var(--accent-soft, rgba(80,120,255,.08)); border-color: var(--accent, #5078ff); }
.sup-msg__meta { font-size: 12px; margin-bottom: 4px; }
.sup-msg__body { white-space: pre-wrap; word-break: break-word; }
.sup-status { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }
.sup-status--open { color: #b26a00; border-color: #e0a340; }
.sup-status--answered { color: #1a7f37; border-color: #57b972; }
.sup-status--closed { color: var(--muted); border-color: var(--border); }
.sup-dot { color: #d64545; font-size: 12px; vertical-align: middle; }

/* ★ 04.10 пометка «есть дубли» (группа) и список копий (группа, отчёт «Проверить дубли») */
.kw-dupes { display: inline-block; margin-left: 6px; }
.kw-dupes > summary { list-style: none; cursor: pointer; display: inline; }
.kw-dupes > summary::-webkit-details-marker { display: none; }
.kw-dupes__list { margin: 4px 0 0; padding-left: 18px; font-size: 12px; }

/* ★ 12.10 Вход через Telegram: разделитель «или» между формой e-mail и кнопкой */
.auth__or { display: flex; align-items: center; gap: 12px; margin: 16px 0; opacity: .7; font-size: 13px; }
.auth__or::before, .auth__or::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .35; }

/* ★ 18.10 Действия карточки группы без перезагрузки (public/js/group-actions.js): всплывающие уведомления, занятая форма, уходящая
   строка. Цвета уведомлений — от .flash--success/error/info (светлая и тёмная тема берутся из тех же переменных).
   Уведомления — справа СВЕРХУ под липкой шапкой: внизу по центру лежит баннер cookie (z-index 1000), новый посетитель не увидел бы
   подтверждения действия, пока не нажмёт «Принять». */
.toast-stack { position: fixed; top: 76px; right: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; margin: 0; max-height: 50vh; overflow: auto; box-shadow: var(--shadow), 0 8px 28px rgba(0,0,0,.18); animation: toast-in .16s ease-out; }
.toast__msg { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast__act { flex: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.toast__x { flex: none; color: inherit; background: none; border: 0; padding: 0 2px; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; }
.toast__x:hover { opacity: 1; }
/* Плашка успеха/информации не перехватывает клики: стопка лежит справа сверху поверх столбца «Действия» таблиц, и клик по кнопке под ней уходил в плашку
   (действие молча не выполнялось — группа оставалась включённой). Закрыть её («×») по-прежнему можно; плашки с ошибкой висят дольше и несут «Войти» /
   «Обновить страницу» — они остаются кликабельными. */
.toast.flash--success, .toast.flash--info { pointer-events: none; }
.toast.flash--success .toast__x, .toast.flash--info .toast__x { pointer-events: auto; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
@media (max-width: 980px) { .toast-stack { top: 68px; right: 16px; } }
form.is-busy { opacity: .55; }
.kw-row--removing { opacity: 0; transition: opacity .16s ease-out; }
