/* Панель «Клубы Габбаны». Цвета взяты из гифок и эмодзи бота: фиолетовый → розовый фирменный, зелёный = хорошо,
   янтарный = внимание, красный = опасно, синий = оплата и справка. Все цвета — через переменные, светлая и тёмная темы. */
@font-face { font-family: Inter; src: url('/fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f4f5fa; --surface: #fff; --surface-2: #f0f2f8; --surface-3: #e7eaf3; --line: #e1e5ee; --line-2: #cfd5e2;
  --ink: #141826; --ink-2: #454c61; --ink-3: #667089;
  --brand: #7c3aed; --brand-2: #db2777; --brand-ink: #6d28d9; --brand-soft: #f1eafe; --on-brand: #fff;
  --ok: #157f3d; --ok-bg: #e4f6ea; --ok-solid: #1a9a4b;
  --warn: #a8500a; --warn-bg: #fdf1dc; --warn-solid: #d98613;
  --bad: #c0201f; --bad-bg: #fde9e8; --bad-solid: #dc3a36;
  --info: #1c55c9; --info-bg: #e6eefd; --info-solid: #2f6fe6;
  --mute-bg: #eceff5;
  --chat-bg: #e3e8f1; --bub-in: #fff; --bub-out: #efe8ff; --bub-panel: #e2edff; --bub-ink: #141826; --bub-meta: #6b7389;
  --tg-blue: #3a8deb; --tg-green: #2fae4e; --tg-red: #e5484d; --tg-def: rgba(60, 78, 98, .54); --quote-bg: rgba(58, 141, 235, .1);
  --shadow-1: 0 1px 2px rgba(20, 24, 38, .06), 0 1px 3px rgba(20, 24, 38, .04); --shadow-2: 0 10px 30px rgba(20, 24, 38, .14); --shadow-3: 0 24px 70px rgba(20, 24, 38, .28);
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --side: 252px; --ring: 0 0 0 3px rgba(124, 58, 237, .32);
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #0f1520; --surface: #18202e; --surface-2: #1f2838; --surface-3: #283346; --line: #2a3447; --line-2: #3a465c;
  --ink: #eef1f7; --ink-2: #bcc4d6; --ink-3: #8f9ab0;
  --brand: #8b5cf6; --brand-2: #ec4899; --brand-ink: #b79cff; --brand-soft: #2a2148; --on-brand: #fff;
  --ok: #5fd68a; --ok-bg: #143323; --ok-solid: #1f9d50;
  --warn: #f5b649; --warn-bg: #3a2b10; --warn-solid: #c97a10;
  --bad: #ff8a84; --bad-bg: #401c1d; --bad-solid: #d9413d;
  --info: #7fb0ff; --info-bg: #172a4d; --info-solid: #2f6fe6;
  --mute-bg: #242d3d;
  --chat-bg: #0b111a; --bub-in: #1c2533; --bub-out: #33295c; --bub-panel: #1c3256; --bub-ink: #eef1f7; --bub-meta: #9aa5ba;
  --tg-def: rgba(124, 143, 166, .36); --quote-bg: rgba(58, 141, 235, .16);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 10px 30px rgba(0, 0, 0, .5); --shadow-3: 0 24px 70px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-feature-settings: 'cv11', 'ss03'; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 15px; font-weight: 650; }
a { color: var(--brand-ink); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
code { background: var(--surface-3); border-radius: 5px; padding: 1px 5px; }
small { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.flip { transform: rotate(180deg); }
.offscreen { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); } .skip:focus { top: 12px; }
.muted { color: var(--ink-3); } .hint { color: var(--ink-3); font-size: 13px; line-height: 1.45; } .fine { color: var(--ink-3); font-size: 12px; }
.hint.warn { color: var(--warn); display: flex; gap: 6px; align-items: flex-start; } .hint .ic { width: 15px; height: 15px; vertical-align: -3px; }
.num, .count, time, .kpi b { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.block { margin-top: 16px; display: grid; gap: 8px; }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
/* сетка в одну колонку без этой строки растягивается под самого широкого ребёнка и вылезает за экран телефона */
#main, .stack, .card, .tx-pane, .modal-body, .person-side, .block, .member, .help-grid > * { grid-template-columns: minmax(0, 1fr); }
.card.admin { grid-template-columns: auto minmax(0, 1fr) auto; }
.link { background: none; border: 0; padding: 0; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 4px; font-weight: 550; } .link:hover { text-decoration: underline; } .link .ic { width: 15px; height: 15px; } .link.sm { font-size: 12.5px; margin-top: 4px; display: flex; }
.noscript { padding: 40px; text-align: center; }

/* ── загрузка и вход ── */
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--ink-3); }
.boot-mark { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .6; } }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 15% -10%, rgba(124, 58, 237, .18), transparent 60%), radial-gradient(800px 500px at 100% 110%, rgba(219, 39, 119, .14), transparent 60%), var(--bg); }
.login-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-2); display: grid; gap: 14px; }
.login-card h1 { font-size: 24px; } .login-card .sub { margin-top: -8px; }
.steps { padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); } .steps li::marker { color: var(--brand-ink); font-weight: 700; }
.login-alt { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; } .login-alt summary { cursor: pointer; color: var(--ink-2); font-weight: 550; } .login-alt[open] summary { margin-bottom: 8px; } .login-alt > * + * { margin-top: 8px; }

/* ── каркас ── */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px 14px; gap: 18px; z-index: 40; }
.logo { display: flex; align-items: center; gap: 11px; padding: 4px 8px; color: var(--ink); } .logo:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; flex: none; box-shadow: 0 6px 16px rgba(124, 58, 237, .35); }
.brand-mark .ic { width: 21px; height: 21px; stroke-width: 2; } .brand-mark.big { width: 56px; height: 56px; border-radius: 18px; } .brand-mark.big .ic { width: 30px; height: 30px; }
.brand-name b { display: block; font-size: 15.5px; letter-spacing: -.01em; } .brand-name small { font-size: 12px; }
.nav { display: grid; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 550; transition: background .15s, color .15s; } .nav-item:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-item.on { background: var(--brand-soft); color: var(--brand-ink); } .nav-item .ic { width: 20px; height: 20px; } .nav-item span:first-of-type { flex: 1; }
.nav-badge { min-width: 22px; padding: 0 7px; height: 22px; border-radius: 11px; background: var(--warn-bg); color: var(--warn); font-size: 12px; font-weight: 700; display: grid; place-items: center; } .nav-badge.bad { background: var(--bad-solid); color: #fff; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.mode-pill { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 600; } .mode-pill.on { background: var(--bad-bg); color: var(--bad); } .mode-pill:hover { text-decoration: none; filter: brightness(.97); }
.me { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 12px; background: var(--surface-2); } .me-name { flex: 1; min-width: 0; } .me-name b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .fine { text-align: center; }
.ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; background: #7c3aed; }
.ava.big { width: 52px; height: 52px; font-size: 18px; }
.ava.h0 { background: #7c3aed; } .ava.h1 { background: #db2777; } .ava.h2 { background: #2f6fe6; } .ava.h3 { background: #1a9a4b; } .ava.h4 { background: #d98613; } .ava.h5 { background: #0e9aa7; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 0; background: none; color: var(--ink-3); display: grid; place-items: center; flex: none; transition: background .15s, color .15s; } .icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.col { min-width: 0; display: flex; flex-direction: column; overflow-x: clip; }   /* clip не создаёт своей прокрутки: липкие шапки продолжают работать */
.top { display: none; }
.scrim { display: none; }
#main { padding: 28px 32px 48px; max-width: 1360px; width: 100%; outline: none; display: grid; gap: 18px; align-content: start; }
#main:focus-visible { box-shadow: none; }

/* ── страница ── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .sub { color: var(--ink-3); margin-top: 4px; font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 550; width: max-content; }
.section-h { display: flex; align-items: center; gap: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-1); display: grid; gap: 14px; align-content: start; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .card-head .link { font-size: 13.5px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .kpis.wide { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { background: var(--surface-2); border-radius: var(--r); padding: 12px 14px; color: var(--ink); display: grid; gap: 2px; transition: background .15s; } a.kpi:hover { background: var(--surface-3); text-decoration: none; }
.kpi b { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; } .kpi span { font-size: 12.5px; color: var(--ink-3); }
.bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface-3); } .bar span { min-width: 4px; }
.seg-ok, .dot.ok { background: var(--ok-solid); } .seg-warn, .dot.warn { background: var(--warn-solid); } .seg-bad, .dot.bad { background: var(--bad-solid); } .seg-brand, .dot.brand { background: var(--brand); } .seg-info, .dot.info { background: var(--info-solid); } .seg-mute, .dot.mute { background: var(--line-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; } .legend a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; } .legend b { color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.tariffs { display: flex; flex-wrap: wrap; gap: 6px; } .tariff { font-size: 12.5px; padding: 4px 9px; border-radius: 7px; background: var(--info-bg); color: var(--info); font-weight: 550; } .tariff.off { background: var(--mute-bg); color: var(--ink-3); text-decoration: line-through; }
.attn { display: grid; gap: 10px; }
.attn-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--info-solid); }
.attn-item.bad { border-left-color: var(--bad-solid); } .attn-item.warn { border-left-color: var(--warn-solid); } .attn-item p { color: var(--ink-3); font-size: 13.5px; white-space: pre-line; }
.attn-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--info-bg); color: var(--info); } .attn-item.bad .attn-ic { background: var(--bad-bg); color: var(--bad); } .attn-item.warn .attn-ic { background: var(--warn-bg); color: var(--warn); }
.attn.calm { grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--ok-bg); color: var(--ok); } .attn.calm p { font-size: 13.5px; opacity: .9; } .attn.calm .ic { width: 24px; height: 24px; }

/* ── кнопки и поля ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 15px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s, transform .08s; position: relative; }
.btn:hover { text-decoration: none; } .btn:active:not(:disabled) { transform: scale(.98); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { min-height: 34px; padding: 5px 11px; font-size: 13px; border-radius: 8px; } .btn.sm .ic { width: 16px; height: 16px; } .btn.block { width: 100%; }
.btn.primary { background: var(--brand); color: var(--on-brand); } .btn.primary:hover:not(:disabled) { background: #6d28d9; }
.btn.ok { background: var(--ok-solid); color: #fff; } .btn.ok:hover:not(:disabled) { filter: brightness(.93); }
.btn.danger { background: var(--bad-solid); color: #fff; } .btn.danger:hover:not(:disabled) { filter: brightness(.93); }
.btn.soft { background: var(--surface-2); border-color: var(--line); color: var(--ink); } .btn.soft:hover:not(:disabled) { background: var(--surface-3); }
.btn.ghost { background: none; color: var(--ink-2); } .btn.ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.btn.busy { color: transparent !important; } .btn.busy::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.soft.busy::after, .btn.ghost.busy::after { border-color: var(--line-2); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.input { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: var(--ink-3); } .input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); } .input::placeholder { color: var(--ink-3); }
select.input { width: auto; max-width: 100%; padding-right: 30px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.input { resize: vertical; line-height: 1.45; } .input.narrow { width: 96px; }
.field { display: grid; gap: 6px; } .field > label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.search-box { position: relative; flex: 1 1 280px; min-width: 220px; } .search-box .ic { position: absolute; left: 12px; top: 11px; color: var(--ink-3); } .search-box .input { padding-left: 38px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: var(--surface-2); border-radius: 11px; border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); min-height: 34px; } .seg button:hover { color: var(--ink); } .seg button.on { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow-1); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; padding: 4px 2px; } .check.line { padding: 6px 0; }
input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; flex: none; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-height: 40px; align-items: center; }
.date { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13.5px; } .date .input { width: 150px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--mute-bg); color: var(--ink-2); border: 0; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); } .chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.brand { background: var(--brand-soft); color: var(--brand-ink); } .chip.info { background: var(--info-bg); color: var(--info); }
.chip.tag { background: none; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); } .chip.click { cursor: pointer; } .chip.click:hover { background: var(--surface-3); text-decoration: none; }
.note-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--info-bg); color: var(--ink); font-size: 13.5px; line-height: 1.5; } .note-box > .ic { color: var(--info); margin-top: 1px; }
.note-box.bad { background: var(--bad-bg); } .note-box.bad > .ic { color: var(--bad); } .note-box.warn { background: var(--warn-bg); } .note-box.warn > .ic { color: var(--warn); }
.confirm-text { font-size: 15px; color: var(--ink-2); }

/* ── таблицы ── */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 650; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; z-index: 2; }
.table th button { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; align-items: center; gap: 3px; } .table th button:hover { color: var(--ink); } .table th .ic { width: 14px; height: 14px; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; } .table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; } .table.people tbody tr { cursor: pointer; } .table tbody tr:hover { background: var(--surface-2); } .table tr.on { background: var(--brand-soft); } .table tr.warn-row { background: color-mix(in srgb, var(--warn-bg) 55%, transparent); }
.table .chk { width: 44px; padding-right: 0; } .table td.num { white-space: nowrap; font-weight: 550; }
.who { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 190px; } .who:hover { text-decoration: none; } .who:hover b { color: var(--brand-ink); } .who-t { min-width: 0; } .who-t b { display: block; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 0 44px; } .tags:empty { display: none; } .note-ic { color: var(--ink-3); display: inline-grid; } .note-ic .ic { width: 15px; height: 15px; }
.club-cell { display: grid; gap: 3px; } .in-chat { color: var(--line-2); display: inline-grid; } .in-chat.yes { color: var(--ok); } .in-chat .ic { width: 16px; height: 16px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bulk { position: sticky; bottom: 16px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); }
.bulk b { margin-right: 6px; } .bulk .btn.ghost { color: inherit; opacity: .8; } .bulk .btn.ghost:hover { background: rgba(127, 127, 127, .25); color: inherit; opacity: 1; } .bulk .btn.soft { background: rgba(127, 127, 127, .22); border-color: transparent; color: inherit; }

/* ── всплывающие сообщения, окна, пустые состояния ── */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100vw - 40px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); font-size: 14px; line-height: 1.4; animation: rise .22s ease-out; }
.toast > .ic { margin-top: 1px; color: #5fd68a; } .toast.bad > .ic { color: #ff8a84; } .toast.info > .ic { color: #7fb0ff; } .toast span { flex: 1; }
.toast-x { background: none; border: 0; color: inherit; opacity: .6; padding: 2px; display: grid; } .toast-x:hover { opacity: 1; } .toast-x .ic { width: 16px; height: 16px; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(10, 14, 22, .55); display: grid; place-items: center; padding: 20px; overflow-y: auto; animation: fade .15s ease-out; }
.modal { width: min(520px, 100%); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-3); display: flex; flex-direction: column; max-height: calc(100dvh - 40px); animation: rise .2s ease-out; } .modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 4px 22px; } .modal.danger .modal-head h2 { color: var(--bad); }
.modal-body { padding: 14px 22px 20px; overflow-y: auto; display: grid; gap: 16px; } .modal-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); }
body.modal-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
.plain-list { padding-left: 18px; display: grid; gap: 4px; font-size: 14px; max-height: 300px; overflow: auto; }
.skel { display: grid; gap: 10px; padding: 6px 0; } .skel-row { height: 44px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 20px; color: var(--ink-3); } .empty > .ic { width: 34px; height: 34px; color: var(--brand-ink); opacity: .7; } .empty h3 { color: var(--ink); font-size: 16px; } .empty p { max-width: 420px; } .empty .btn { margin-top: 8px; } .empty.err > .ic { color: var(--bad); }

/* ── как в Telegram ── */
.tg-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.38; color: var(--bub-ink); }
.tg-text a { color: var(--tg-blue); } .tg-text code, .tg-text pre { font: 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(127, 127, 127, .16); border-radius: 4px; padding: 0 3px; } .tg-text pre { display: block; padding: 6px 8px; margin: 4px 0; white-space: pre-wrap; }
.tg-text blockquote { margin: 5px 0; padding: 5px 9px; border-left: 3px solid var(--tg-blue); background: var(--quote-bg); border-radius: 4px 8px 8px 4px; }
.tg-text tg-spoiler { background: rgba(127, 127, 127, .35); border-radius: 3px; padding: 0 2px; } .tg-text .ent { color: var(--tg-blue); }
.tge { width: 1.25em; height: 1.25em; vertical-align: -.24em; display: inline-block; } .tge-x { background: var(--brand-soft); border-radius: 4px; }
.tok { display: inline-flex; vertical-align: -.24em; user-select: all; -webkit-user-select: all; border-radius: 5px; } .tok.cap { gap: 0; } .tok.bad { background: var(--bad-bg); color: var(--bad); padding: 0 4px; vertical-align: baseline; font-size: .85em; }
.var { display: inline-block; padding: 0 7px; margin: 0 1px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); font-size: .86em; font-weight: 650; line-height: 1.45; white-space: nowrap; user-select: all; -webkit-user-select: all; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent); }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: min(78%, 520px); gap: 4px; } .msg.out { align-self: flex-end; align-items: stretch; }
.bub { position: relative; background: var(--bub-in); color: var(--bub-ink); border-radius: 15px 15px 15px 5px; padding: 7px 11px 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .09); min-width: 86px; max-width: 100%; }
.bub.out { background: var(--bub-out); border-radius: 15px 15px 5px 15px; } .bub.panel { background: var(--bub-panel); } .bub.failed { box-shadow: 0 0 0 1.5px var(--bad-solid); }
.bub-meta { display: flex; justify-content: flex-end; align-items: center; gap: 5px; font-size: 11.5px; color: var(--bub-meta); margin-top: 2px; user-select: none; } .bub-meta .src { margin-right: auto; padding-right: 10px; font-weight: 550; } .bub-meta .st { width: 13px; height: 13px; } .bub-meta .st.bad { color: var(--bad); }
.msg-err { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--bad); } .msg-err .ic { width: 14px; height: 14px; }
.pressed { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 14px; background: var(--bub-in); color: var(--ink-2); font-size: 13px; box-shadow: 0 1px 1px rgba(0, 0, 0, .09); } .pressed .ic { width: 14px; height: 14px; color: var(--tg-blue); } .pressed b { color: var(--ink); } .pressed time { font-size: 11.5px; color: var(--bub-meta); margin-left: 4px; }
.kb { display: flex; flex-direction: column; gap: 4px; width: 100%; } .kb-row { display: flex; gap: 4px; }
.kbt { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 10px; background: var(--tg-def); color: #fff; font-weight: 600; font-size: 14px; line-height: 1.22; text-align: center; }
.kbt.s-primary { background: var(--tg-blue); } .kbt.s-success { background: var(--tg-green); } .kbt.s-danger { background: var(--tg-red); } .kbt.dyn { background: none; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 550; border-radius: 10px; border-style: dashed; }
button.kbt { cursor: pointer; transition: filter .12s; } button.kbt:hover { filter: brightness(1.08); } .kb-url { position: absolute; right: 5px; top: 5px; width: 11px; height: 11px; opacity: .8; } .kbt .tge { width: 18px; height: 18px; vertical-align: 0; }
.tg-medias { margin: -7px -11px 6px; border-radius: 15px 15px 0 0; overflow: hidden; display: grid; gap: 2px; } .tg-medias.album { grid-template-columns: 1fr 1fr; } .bub > .tg-medias:only-child, .bub > .tg-medias:nth-last-child(2) { margin-bottom: 4px; }
.tg-media { display: block; width: 100%; max-height: 360px; object-fit: cover; background: var(--surface-3); border: 0; padding: 0; } video.tg-media { object-fit: contain; background: #000; }
.tg-media.lazy { position: relative; min-height: 150px; aspect-ratio: 16 / 9; cursor: pointer; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2a2148, #1c3256); overflow: hidden; }
.tg-media.lazy img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .play { position: relative; width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: grid; place-items: center; } .play .ic { width: 24px; height: 24px; fill: #fff; stroke: none; margin-left: 3px; }
.tg-media.lazy .cap { position: absolute; left: 8px; bottom: 8px; font-size: 11.5px; font-weight: 700; background: rgba(0, 0, 0, .55); padding: 2px 7px; border-radius: 6px; }
.tg-zoom { display: block; } .tg-file { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--bub-ink); background: rgba(127, 127, 127, .1); font-size: 14px; } .tg-file.bad { color: var(--bad); } .tg-file .big { font-size: 30px; line-height: 1; } .tg-audio { width: 100%; min-width: 240px; display: block; }

/* ── редактор ── */
.ed { display: grid; gap: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden; } .ed:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.ed-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ed-b { min-width: 34px; height: 32px; padding: 0 8px; border: 0; background: none; border-radius: 7px; color: var(--ink-2); display: grid; place-items: center; font-size: 14.5px; } .ed-b:hover { background: var(--surface-3); color: var(--ink); } .ed-b .ic { width: 17px; height: 17px; } .ed-b code { background: none; padding: 0; }
.ed-link { display: flex; gap: 8px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--surface-2); align-items: center; }
.ed-emoji { padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); max-height: 240px; overflow: auto; display: grid; gap: 8px; } .ed-emoji-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 650; }
.ed-emoji-grid { display: flex; flex-wrap: wrap; gap: 4px; } .ed-emoji-grid button { border: 1px solid transparent; background: none; border-radius: 8px; padding: 4px; display: inline-flex; align-items: center; min-height: 36px; min-width: 36px; justify-content: center; color: var(--ink-3); } .ed-emoji-grid button:hover { background: var(--surface-3); }
.ed-emoji-grid .tge { width: 26px; height: 26px; vertical-align: 0; } .ed-emoji-grid.capsule .tge { width: 22px; height: 22px; } .ed-emoji-grid.pick button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.ed-area { min-height: 92px; max-height: 46dvh; overflow-y: auto; padding: 10px 12px; outline: none; color: var(--ink); cursor: text; } .ed-area.is-empty::before { content: attr(data-ph); color: var(--ink-3); pointer-events: none; }
.cmp { display: grid; gap: 8px; border-radius: 12px; } .cmp.drag .ed { border-color: var(--brand); box-shadow: var(--ring); }
.cmp-files { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-file { position: relative; width: 84px; height: 84px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; } .cmp-file.bad { border-color: var(--bad-solid); }
.cmp-file img { width: 100%; height: 100%; object-fit: cover; } .cmp-file-ic { color: var(--ink-3); } .cmp-file-ic .ic { width: 26px; height: 26px; }
.cmp-file-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 5px; font-size: 10.5px; font-weight: 600; background: rgba(0, 0, 0, .6); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.cmp-file-x { position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; } .cmp-file-x .ic { width: 13px; height: 13px; }
.cmp-kb { max-width: 420px; } .cmp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .cmp-foot .btn.primary { margin-left: auto; }
.tx-pane .count { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.cmp-info { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12.5px; color: var(--ink-3); flex: 1; min-width: 120px; } .count.bad { color: var(--bad); font-weight: 700; } .cmp-warn { display: inline-flex; gap: 5px; align-items: center; color: var(--warn); } .cmp-warn .ic { width: 14px; height: 14px; }

/* ── карточка человека ── */
.person-head { justify-content: flex-start; align-items: center; } .person-head > div:nth-child(2) { flex: 1; min-width: 200px; }
.person-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 190px); min-height: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); position: sticky; top: 16px; }
.feed { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 7px; background: var(--chat-bg); scroll-behavior: auto; } .feed:focus-visible { box-shadow: inset var(--ring); }
.feed .empty { margin: auto; } .feed .skel { width: 100%; }
.day { align-self: center; margin: 8px 0 2px; } .day span { font-size: 12.5px; font-weight: 600; padding: 3px 11px; border-radius: 12px; background: rgba(20, 24, 38, .5); color: #fff; }
.strip { align-self: center; display: inline-flex; align-items: center; gap: 7px; max-width: 92%; padding: 5px 12px; border-radius: 13px; font-size: 12.5px; font-weight: 550; line-height: 1.35; background: var(--surface); color: var(--ink-2); box-shadow: 0 1px 1px rgba(0, 0, 0, .07); text-align: left; }
.strip .ic { width: 15px; height: 15px; } .strip time { font-size: 11.5px; color: var(--ink-3); font-weight: 500; } .strip.ok { background: var(--ok-bg); color: var(--ok); } .strip.warn { background: var(--warn-bg); color: var(--warn); } .strip.bad { background: var(--bad-bg); color: var(--bad); } .strip.brand { background: var(--brand-soft); color: var(--brand-ink); } .strip.info { background: var(--info-bg); color: var(--info); }
.feed-more { align-self: center; display: grid; justify-items: center; padding: 6px; }
.cmp-box { padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.person-side { display: grid; gap: 14px; }
.member { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--surface-2); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 14px; font-size: 13.5px; } .kv dt { color: var(--ink-3); } .kv dd { color: var(--ink); overflow-wrap: anywhere; } .kv.states { gap: 10px 14px; align-items: start; } .kv.states dd { color: var(--ink-2); }
.pay-list { list-style: none; padding: 0; display: grid; gap: 10px; } .pay-list li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); } .pay-list li:last-child { border: 0; padding-bottom: 0; }
.note { white-space: pre-wrap; font-size: 14px; color: var(--ink-2); background: var(--warn-bg); padding: 10px 12px; border-radius: 10px; }

/* ── история ── */
.hist { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 16px 12px; box-shadow: var(--shadow-1); }
.hist-day { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 16px 0 6px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.hist-row { display: grid; grid-template-columns: 46px 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .hist-row:last-child { border: 0; }
.hist-row time { color: var(--ink-3); font-size: 12.5px; padding-top: 2px; } .hist-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--mute-bg); color: var(--ink-3); } .hist-ic .ic { width: 16px; height: 16px; }
.hist-row.ok .hist-ic { background: var(--ok-bg); color: var(--ok); } .hist-row.warn .hist-ic { background: var(--warn-bg); color: var(--warn); } .hist-row.bad .hist-ic { background: var(--bad-bg); color: var(--bad); } .hist-row.brand .hist-ic { background: var(--brand-soft); color: var(--brand-ink); } .hist-row.info .hist-ic { background: var(--info-bg); color: var(--info); }
.hist-main { min-width: 0; overflow-wrap: anywhere; padding-top: 3px; } .hist-who { font-size: 13px; font-weight: 550; white-space: nowrap; padding-top: 3px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.hist-row details { margin-top: 4px; } .hist-row summary { cursor: pointer; color: var(--brand-ink); font-size: 13px; } .pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; margin: 6px 0 0; color: var(--ink-2); }

/* ── тексты бота ── */
.tx { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.tx-side { position: sticky; top: 16px; display: grid; gap: 10px; max-height: calc(100dvh - 32px); grid-template-rows: auto minmax(0, 1fr); }
.tx-list { overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 8px 12px; box-shadow: var(--shadow-1); }
.tx-list h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 14px 10px 6px; position: sticky; top: -6px; background: var(--surface); z-index: 1; }
.tx-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); font-size: 14px; } .tx-item b { flex: 1; font-weight: 550; min-width: 0; } .tx-item:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); } .tx-item.on { background: var(--brand-soft); color: var(--brand-ink); }
.tx-gif, .tx-ver { color: var(--line-2); display: inline-grid; } .tx-gif.on { color: var(--ok); } .tx-ver { color: var(--info); } .tx-gif .ic, .tx-ver .ic { width: 15px; height: 15px; }
.tx-pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); display: grid; gap: 16px; min-width: 0; }
.tx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .tx-head .sub { max-width: 640px; }
.phone { background: var(--chat-bg); border-radius: 18px; padding: 18px; display: grid; gap: 5px; justify-items: start; } .phone .msg { max-width: min(100%, 460px); width: 100%; } .phone > .kb { max-width: 460px; } .tx-btn-prev { width: min(100%, 320px); }
.bub.edit { padding: 0; overflow: hidden; width: 100%; } .bub.edit .ed { border: 0; border-radius: 0; background: none; box-shadow: none; } .bub.edit .ed-bar { background: rgba(127, 127, 127, .08); } .bub.edit .ed-area { max-height: none; min-height: 60px; color: var(--bub-ink); } .bub.edit:focus-within { box-shadow: var(--ring); }
.tx-gifbox { position: relative; background: #111; } .tx-gifbox > img, .tx-gifbox > video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tx-gifbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tx-foot .row { flex-wrap: wrap; justify-content: flex-end; }
.tx-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; position: sticky; bottom: 0; background: var(--surface); margin: 0 -22px -22px; padding: 14px 22px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.ver { display: grid; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); justify-items: start; } .ver:last-child { border: 0; } .ver > .row { width: 100%; } .ver .bub { background: var(--surface-2); max-width: 100%; } .ver .kb { max-width: 320px; }

/* ── админы, справка ── */
.admin-list { display: grid; gap: 10px; } .card.admin { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; } .card.admin.off { opacity: .62; } .admin-main { display: grid; gap: 3px; }
.warn-t { color: var(--warn); display: flex; gap: 5px; align-items: center; } .warn-t .ic { width: 14px; height: 14px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; } .card.help { gap: 10px; } .card.help p { color: var(--ink-2); }
.pop-host { position: relative; } .pop { position: absolute; z-index: 60; right: 0; top: calc(100% + 4px); min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 5px; display: grid; }
.pop button { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border: 0; background: none; border-radius: 8px; text-align: left; } .pop button:hover { background: var(--surface-2); } .pop button.danger { color: var(--bad); }

/* ── планшет и телефон ── */
@media (max-width: 1180px) { .person-grid { grid-template-columns: minmax(0, 1fr); } .chat { position: static; height: 72dvh; } .tx { grid-template-columns: 270px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .22s ease-out; box-shadow: var(--shadow-3); }
  body.nav-open .side { transform: none; } body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 14, 22, .5); z-index: 35; }
  .top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  #main { padding: 18px 14px 40px; } h1 { font-size: 22px; }
  .tx { grid-template-columns: minmax(0, 1fr); } .tx-side { position: static; max-height: 42dvh; } .tx-pane { padding: 16px; } .tx-foot { margin: 0 -16px -16px; padding: 12px 16px; }
  .table thead { display: none; } .table, .table tbody, .table tr, .table td { display: block; width: 100%; } .table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); position: relative; } .table td { border: 0; padding: 4px 0; }
  .table td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); } .table td:first-of-type[data-l]::before { display: none; }
  .table.people td.chk { position: absolute; right: 8px; top: 12px; width: auto; } .table.people td[data-l='Человек'] { padding-right: 40px; grid-column: 1 / -1; } .table.people td[data-l='Человек']::before { display: none; }
  .table.people tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; padding: 12px; } .who { min-width: 0; } .table.people td { min-width: 0; overflow-wrap: anywhere; } .table.people td.nil { display: none; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .filters > * { min-width: 0; } .filters .search-box, .filters .checks { grid-column: 1 / -1; min-width: 0; } .filters select.input, .filters .date, .filters .date .input { width: 100%; }
  .attn-item { grid-template-columns: auto minmax(0, 1fr); } .attn-item .btn { grid-column: 2; justify-self: start; }
  .msg { max-width: 90%; } .hist-row { grid-template-columns: 44px 28px minmax(0, 1fr); } .hist-who, .hist-row > .chip { grid-column: 3; justify-self: start; }
  .card.admin { grid-template-columns: auto minmax(0, 1fr); } .card.admin > .row { grid-column: 1 / -1; } .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi b { font-size: 20px; }
  .ed-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .ed-b { flex: none; } .cmp .ed-area { min-height: 64px; }
  .tx-foot .hint { display: none; } .tx-foot .row { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .toasts { right: 10px; left: 10px; bottom: 10px; width: auto; } .bulk { bottom: 8px; } .input, select.input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
