/* KazEco — стили дашборда. Без внешних библиотек. Mobile-first. */
:root {
  --g-950: #04221a; --g-900: #062e24; --g-800: #0b3b2e; --g-700: #0d5a43;
  --brand: #16a06a; --brand-600: #10885a; --brand-50: #e9f8f0; --brand-100: #d2f1e1;
  --ink: #0f1d18; --text: #33433d; --muted: #6b7a74; --line: #e3eae6; --soft: #f4f7f5; --bg: #f6f8f7;
  --ok: #12825a; --ok-bg: #e5f6ee; --warn: #9a6400; --warn-bg: #fff4d8; --bad: #b42318; --bad-bg: #fde8e6; --info: #1d5fbf; --info-bg: #e7effc;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --sh-sm: 0 1px 2px rgba(6,46,36,.06), 0 1px 3px rgba(6,46,36,.05);
  --sh: 0 8px 24px -10px rgba(6,46,36,.2);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --side-w: 256px; --top-h: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--g-700); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.ico { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.hide-sm { display: none; }
:focus-visible { outline: 3px solid rgba(22,160,106,.4); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- Каркас ---------- */
.app { min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 60;
  background: linear-gradient(180deg, var(--g-800), var(--g-950)); color: rgba(255,255,255,.75);
  display: flex; flex-direction: column; padding: 16px 12px;
  transform: translateX(-100%); transition: transform .25s ease;
}
.side.is-open { transform: none; box-shadow: 20px 0 40px rgba(0,0,0,.25); }
.side-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(4,34,26,.45); opacity: 0; visibility: hidden; transition: opacity .2s; }
.side.is-open + .side-backdrop { opacity: 1; visibility: visible; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #34c27a, #0d6b4b); font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text b { font-size: 17px; }
.brand__text small { font-size: 11.5px; color: rgba(255,255,255,.55); }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav__title { margin: 16px 10px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); }
.nav__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.78); font-weight: 500; }
.nav__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav__link.is-active { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(22,160,106,.8); }
.nav__link svg { opacity: .9; }
.side__foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 10px 10px; }
.me__ava { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; font-weight: 700; }
.me__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.me__text b { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me__text small { font-size: 12px; color: rgba(255,255,255,.55); }

.main { min-width: 0; }
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__burger, .top__back { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--soft); display: grid; place-items: center; color: var(--ink); flex: none; }
.top__title { font-size: 18px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__actions { display: flex; gap: 8px; align-items: center; }
.content { padding: 16px 14px 40px; max-width: 100%; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; text-align: center; }
.btn svg.ico { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-600); }
.btn--ghost { background: var(--brand-50); color: var(--brand-600); }
.btn--ghost:hover { background: var(--brand-100); }
.btn--danger { background: var(--bad); color: #fff; }
.btn--danger:hover { background: #8f1c13; color: #fff; }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.act { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--muted); background: transparent; border: 0; }
.act:hover { background: var(--brand-50); color: var(--brand-600); }
.act--danger:hover { background: var(--bad-bg); color: var(--bad); }
.act svg.ico { width: 18px; height: 18px; }
.acts { display: flex; gap: 2px; justify-content: flex-end; }

/* ---------- Уведомления ---------- */
.alert { padding: 12px 14px; border-radius: var(--r); margin-bottom: 14px; font-weight: 500; border: 1px solid transparent; }
.alert--ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe8d4; }
.alert--err { background: var(--bad-bg); color: var(--bad); border-color: #f6c7c2; }
.alert--warn { background: var(--warn-bg); color: var(--warn); border-color: #f3dc9f; }
.alert--info { background: var(--info-bg); color: var(--info); border-color: #c7d9f6; }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Карточки и панели ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.card__body { padding: 16px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card__head h2 { font-size: 16px; margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.tile small { display: block; color: var(--muted); font-size: 12.5px; }
.tile b { display: block; font-size: 20px; color: var(--ink); letter-spacing: -.01em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Фильтры ---------- */
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.search { position: relative; flex: 1; min-width: 0; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search input { width: 100%; height: 44px; padding: 0 12px 0 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,160,106,.12); }
.filters__row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filters__row::-webkit-scrollbar { display: none; }
.fsel { display: flex; flex-direction: column; flex: none; min-width: 140px; }
.fsel span { font-size: 11.5px; color: var(--muted); font-weight: 600; margin: 0 0 3px 2px; }
.fsel select { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 30px 0 10px; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7a74' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.fsel select:focus { outline: none; border-color: var(--brand); }
.fsel.is-set select { border-color: var(--brand); background-color: var(--brand-50); color: var(--g-700); font-weight: 600; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; font-size: 13.5px; }
.chip:hover { border-color: var(--brand); color: var(--brand-600); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip i { font-style: normal; opacity: .6; font-size: 12px; }
.colorbar { display: flex; flex-direction: column; gap: 6px; margin: -4px 0 14px; }
.colorbar__label { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.chip--color { gap: 7px; }
.chip--color .dot { width: 14px; height: 14px; }
.chip.is-active .dot { border-color: rgba(255,255,255,.7); }
.reset { font-size: 13.5px; font-weight: 600; align-self: flex-start; }

/* ---------- Таблица данных ---------- */
.dt-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; max-height: calc(100vh - 230px); box-shadow: var(--sh-sm); display: none; }
.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.dt th { position: sticky; top: 0; z-index: 2; background: #f0f4f2; color: var(--ink); text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dt td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; background: var(--row, #fff); }
.dt tr:hover td { filter: brightness(.97); }
.dt td.sticky, .dt th.sticky { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.dt th.sticky { z-index: 3; }
.dt td.acts-cell, .dt th.acts-cell { position: sticky; right: 0; z-index: 1; box-shadow: -1px 0 0 var(--line); }
.dt th.acts-cell { z-index: 3; }
.dt .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dt .wide { min-width: 240px; }
.dt .mid { min-width: 150px; }
.dt tfoot td { position: sticky; bottom: 0; background: #e4f3ec; font-weight: 700; color: var(--ink); border-top: 1px solid var(--brand-100); }
.dt .name { font-weight: 600; color: var(--ink); }
.clip { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Карточки записей (телефон) */
.recs { display: flex; flex-direction: column; gap: 10px; }
.rec { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--sh-sm); border-left: 5px solid var(--row-edge, var(--line)); }
.rec__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 12.5px; color: var(--muted); }
.rec__title { font-weight: 700; color: var(--ink); font-size: 15px; margin: 0 0 8px; line-height: 1.35; }
.rec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; font-size: 13.5px; }
.rec__grid div { min-width: 0; }
.rec__grid dt { font-size: 11.5px; color: var(--muted); }
.rec__grid dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.rec__grid .full { grid-column: 1 / -1; }
.rec__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--text); white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--bad { background: var(--bad-bg); color: var(--bad); }
.badge--info { background: var(--info-bg); color: var(--info); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.12); flex: none; }

.votes { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.vote { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.vote b { font-weight: 600; color: var(--ink); }
.vote .badge { padding: 1px 7px; font-size: 11.5px; }
.notes { display: flex; flex-direction: column; gap: 6px; min-width: 220px; max-width: 320px; font-size: 13px; }
.notes b { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.files { display: flex; flex-direction: column; gap: 4px; }
.file-link { display: inline-flex; align-items: flex-start; gap: 5px; max-width: 220px; font-size: 13px; line-height: 1.3; }
.file-link svg { width: 15px; height: 15px; margin-top: 1px; }
.file-link span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.people { display: flex; flex-direction: column; gap: 1px; }
.people small { color: var(--muted); }

.empty { text-align: center; padding: 48px 16px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* Пагинация */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pager__info { color: var(--muted); font-size: 13.5px; }
.pager__btns { display: flex; gap: 4px; flex-wrap: wrap; }
.pager__btn { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; color: var(--ink); font-weight: 600; font-size: 14px; }
.pager__btn:hover { border-color: var(--brand); color: var(--brand-600); }
.pager__btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager__btn svg { width: 16px; height: 16px; }
.pager--top { margin: 0 0 12px; }
.to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--sh); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top.is-show { opacity: .9; visibility: visible; transform: none; }
.to-top svg { transform: rotate(180deg); }
.pager__gap { padding: 0 4px; align-self: center; color: var(--muted); }

/* ---------- Формы ---------- */
.form { max-width: 980px; }
.form-card { margin-bottom: 14px; }
.form-card h2 { font-size: 15px; margin: 0; }
.fgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.field > span i { color: var(--bad); font-style: normal; }
.field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field select[multiple] { min-height: 160px; padding: 6px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,160,106,.12); }
.field input[readonly], .field textarea[readonly] { background: var(--soft); color: var(--muted); }
.field .hint { font-size: 12px; color: var(--muted); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--bad); }
.field__err { font-size: 12.5px; color: var(--bad); }
.ro { padding: 10px 12px; background: var(--soft); border-radius: 10px; min-height: 44px; color: var(--ink); overflow-wrap: anywhere; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.colors label, .picks label, .vote-pick label { position: relative; }
.colors label { cursor: pointer; }
.colors input { position: absolute; opacity: 0; pointer-events: none; }
.colors span { width: 36px; height: 36px; border-radius: 10px; display: block; border: 2px solid rgba(0,0,0,.08); box-shadow: inset 0 0 0 2px #fff; }
.colors input:checked + span { border-color: var(--ink); }
.colors input:focus-visible + span { outline: 3px solid rgba(22,160,106,.4); }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.picks label { cursor: pointer; }
.picks input { position: absolute; opacity: 0; pointer-events: none; }
.picks span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 500; }
.picks input:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--g-700); font-weight: 600; }
.picks input:checked + span::before { content: "✓ "; white-space: pre; }
.vote-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vote-pick label { cursor: pointer; }
.vote-pick input { position: absolute; opacity: 0; pointer-events: none; }
.vote-pick span { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.vote-pick input:checked + span { color: #fff; border-color: transparent; background: var(--muted); }
.vote-pick input[value="Принят"]:checked + span { background: var(--ok); }
.vote-pick input[value="Отказ"]:checked + span { background: var(--bad); }
.form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.form-actions .btn { flex: 1; }

/* Загрузка файлов */
.upl { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 12px; background: var(--soft); transition: border-color .15s, background .15s; }
.upl.is-drag { border-color: var(--brand); background: var(--brand-50); }
.upl__cur { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; min-height: 22px; }
.upl__btn { position: relative; overflow: hidden; }
.upl__btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upl__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 8px; display: none; }
.upl__bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .15s; }
.upl.is-loading .upl__bar { display: block; }
.upl__msg { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.upl__msg.is-err { color: var(--bad); }
.upl__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Скрытые пароли */
.secret { display: inline-flex; align-items: center; gap: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.secret .act { width: 30px; height: 30px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px !important; }
.pw .act { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }

/* Подтверждение удаления */
.confirm { max-width: 560px; }
.confirm .card__body p { color: var(--text); }

/* ---------- Переписка ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.msg { max-width: 88%; align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; box-shadow: var(--sh-sm); }
.msg.is-mine { align-self: flex-end; background: var(--brand-50); border-color: var(--brand-100); border-radius: 14px 14px 4px 14px; }
.msg__head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 4px; flex-wrap: wrap; }
.msg__head b { color: var(--ink); }
.msg__text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.msg__del { margin-left: auto; }
.chat-form { position: sticky; bottom: 0; display: grid; gap: 8px; background: var(--bg); padding: 10px 0 4px; max-width: 820px; }
.chat-form__row { display: flex; gap: 8px; }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 160px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; resize: vertical; background: #fff; }
.chat-form select { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; }

/* Деталь записи */
.dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.dl div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dl div:last-child { border-bottom: 0; }
.dl dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- Вход ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 80% -10%, rgba(52,194,122,.25), transparent 60%), linear-gradient(160deg, var(--g-800), var(--g-950)); }
.login__box { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 28px 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.login__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login__brand .brand__mark { color: #fff; width: 46px; height: 46px; font-size: 16px; }
.login__brand b { display: block; font-size: 20px; color: var(--ink); }
.login__brand small { color: var(--muted); }
.login form { display: grid; gap: 14px; }
.login__links { text-align: center; font-size: 14px; }

/* ---------- Адаптив ---------- */
@media (min-width: 560px) {
  .hide-sm { display: inline; }
  .fgrid--2 { grid-template-columns: 1fr 1fr; }
  .fgrid .full { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .recs { display: grid; grid-template-columns: 1fr 1fr; }
  .dl { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media (min-width: 760px) {
  .dt-wrap { display: block; }
  .recs { display: none; }
}
@media (min-width: 900px) {
  .content { padding: 20px 24px 48px; }
  .top { padding: 0 24px; }
  .filters { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  .filters .search { flex: 1 1 280px; }
  .filters__row { overflow: visible; flex-wrap: wrap; }
  .fgrid--3 { grid-template-columns: repeat(3, 1fr); }
  .form-actions .btn { flex: 0 0 auto; min-width: 160px; }
}
@media (min-width: 1100px) {
  .side { transform: none; box-shadow: none; }
  .side-backdrop { display: none; }
  .main { margin-left: var(--side-w); }
  .top__burger { display: none; }
}
@media print {
  .side, .top, .filters, .pager, .acts-cell, .acts { display: none !important; }
  .main { margin: 0 !important; }
  .dt-wrap { max-height: none; overflow: visible; display: block; border: 0; }
  .recs { display: none; }
}
