/*
  Тема UGUR — значения один в один из mobile/lib/core/theme.dart.

  Раскладка телеграмная: цветная шапка, плоские поверхности без теней,
  белые блоки на сером фоне, скругления 12/14. Кнопки главных действий
  56 px — оператор работает с телефона на стоянке, на солнце.

  ЦВЕТ НА СХЕМЕ САЛОНА ОЗНАЧАЕТ ПОЛ И БОЛЬШЕ НИЧЕГО: синий мужчина,
  розовая женщина, серое «места нет». Всё остальное — рамкой и значком.
*/

:root {
  --brand: #1E5D42;
  --mint: #7BC9A1;
  --cream: #F8F2E4;

  --bg: #F3F4F6;          /* _lightGroupBg — фон экрана */
  --surface: #FFFFFF;     /* _lightBg — блоки и поля */
  --text: #000000;
  --hint: #8E8E93;
  --line: #E6E6E8;
  --primary: #1E5D42;
  --on-primary: #FFFFFF;
  --header: #1E5D42;
  --hover: rgba(30, 93, 66, .08);

  --green: #31B545;       /* tgGreen — «получилось» */
  --red: #E53935;
  --orange: #EF6C00;      /* цена */
  --waiting: #EF8B2C;
  --active: #3390EC;
  --done: #8E8E93;

  --seat-male: #3390EC;
  --seat-female: #E0619A;
  --seat-blocked: #B0B4BA;
  --seat-selected: #31B545;

  --r-btn: 12px;
  --r-card: 14px;
  --r-sheet: 20px;
  --tap: 56px;
  --font: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1621;
    --surface: #17212B;
    --block: #232E3C;
    --text: #FFFFFF;
    --hint: #708499;
    --line: #2B3A4A;
    --primary: #7BC9A1;
    --on-primary: #07281B;
    --header: #16402E;
    --hover: rgba(123, 201, 161, .10);
  }
}
:root[data-theme="dark"] {
  --bg: #0E1621;
  --surface: #17212B;
  --block: #232E3C;
  --text: #FFFFFF;
  --hint: #708499;
  --line: #2B3A4A;
  --primary: #7BC9A1;
  --on-primary: #07281B;
  --header: #16402E;
  --hover: rgba(123, 201, 161, .10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--font);
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
.muted { color: var(--hint); font-size: 14px; }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { height: 12px; }
.price { color: var(--orange); font-weight: 600; }

/* ─── Шапка ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: 52px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px; background: var(--header); color: #fff;
}
.topbar .brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; color: #fff; }
.topbar .brand:hover { text-decoration: none; }
.topbar .title { font-size: 17px; font-weight: 500; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar button.icon { color: #fff; }
.topbar .who { font-size: 14px; opacity: .85; white-space: nowrap; }

/* ─── Каркас: слева меню на широком, снизу на узком ────── */
.layout { display: flex; min-height: calc(100vh - 52px); }
.sidenav {
  width: 232px; flex: none; padding: 12px 8px;
  background: var(--surface); border-right: 1px solid var(--line);
  position: sticky; top: 52px; height: calc(100vh - 52px); overflow-y: auto;
}
.sidenav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-btn);
  color: var(--text); font-size: 15px; font-weight: 500;
}
.sidenav a:hover { background: var(--hover); text-decoration: none; }
.sidenav a.active { background: var(--hover); color: var(--primary); }
.sidenav a .badge { margin-left: auto; }
.sidenav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.content { flex: 1; min-width: 0; padding: 16px; max-width: 1240px; }
.bottomnav { display: none; }

@media (max-width: 860px) {
  .sidenav { display: none; }
  .content { padding: 12px 12px 88px; }
  .bottomnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line);
    height: 64px; padding-bottom: env(safe-area-inset-bottom);
  }
  .bottomnav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 11px; color: var(--hint); position: relative;
  }
  .bottomnav a:hover { text-decoration: none; }
  .bottomnav a.active { color: var(--primary); }
  .bottomnav a .badge { position: absolute; top: 6px; left: 55%; }
  .topbar .who { display: none; }
}

svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 18px; height: 18px; }

/* ─── Блоки ─────────────────────────────────────────────── */
.card {
  background: var(--block, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px;
}
.card + .card, .card + .section, .section + .card, .section + .section { margin-top: 12px; }
.section-title {
  font-size: 13px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase;
  color: var(--hint); margin: 20px 4px 8px;
}
.page-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { flex: 1; min-width: 180px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 15px; }
.kv > :nth-child(odd) { color: var(--hint); }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile { background: var(--block, var(--surface)); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; }
.tile .val { font-size: 28px; font-weight: 700; line-height: 1.2; margin-top: 4px; }
.tile.hero { border-color: var(--primary); }
.tile.hero .val { color: var(--primary); }
.tile a { color: inherit; }

/* ─── Кнопки ────────────────────────────────────────────── */
button, .btn {
  font: inherit; cursor: pointer; border: 0; border-radius: var(--r-btn);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; font-size: 16px; font-weight: 600;
  background: var(--primary); color: var(--on-primary);
  -webkit-tap-highlight-color: transparent;
}
button:hover, .btn:hover { filter: brightness(1.06); text-decoration: none; }
button:disabled { opacity: .45; cursor: default; filter: none; }
button.big, .btn.big { min-height: var(--tap); font-size: 17px; width: 100%; }
button.ghost, .btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--line); }
button.text { background: transparent; color: var(--primary); padding: 0 10px; min-height: 40px; font-weight: 500; }
button.danger { background: var(--red); color: #fff; }
button.ok { background: var(--green); color: #fff; }
button.ghost.danger { background: transparent; color: var(--red); border-color: var(--line); }
button.icon { background: transparent; color: var(--hint); padding: 0; width: 40px; min-height: 40px; border-radius: 50%; }
button.icon:hover { background: var(--hover); }
button.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions.sticky {
  position: sticky; bottom: 0; background: var(--bg); padding: 10px 0;
  margin-top: 12px; z-index: 5;
}
@media (max-width: 860px) { .actions.sticky { bottom: 64px; } }

/* ─── Поля ──────────────────────────────────────────────── */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--hint); }
label.field > span.req::after { content: " *"; color: var(--red); }
input, select, textarea {
  font: inherit; font-size: 17px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 12px 14px; width: 100%; min-height: 50px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--primary); }
input[type="file"] { padding: 10px; min-height: 0; }
.form { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.hint { font-size: 13px; color: var(--hint); }
.err-text { color: var(--red); font-size: 14px; }

/* Переключатель в стиле телеграма */
.switch { display: flex; align-items: center; gap: 12px; min-height: 50px; cursor: pointer; color: var(--text); font-size: 16px; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: rgba(142,142,147,.35); position: relative; transition: background .15s; flex: none; border: 0; padding: 0; min-height: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { left: 21px; }
.switch input:disabled { opacity: .4; }

/* Сегменты: «сегодня / завтра», режим времени */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { background: var(--surface); color: var(--text); border: 1px solid var(--line); font-weight: 500; min-height: 44px; }
.seg button.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; cursor: pointer; color: var(--text);
}
.chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* ─── Пометки ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 18px;
  background: rgba(142,142,147,.16); color: var(--hint);
}
.badge.ok { background: rgba(49,181,69,.15); color: var(--green); }
.badge.bad { background: rgba(229,57,53,.13); color: var(--red); }
.badge.wait { background: rgba(239,139,44,.16); color: var(--waiting); }
.badge.act { background: rgba(51,144,236,.14); color: var(--active); }
.badge.brand { background: var(--hover); color: var(--primary); }
.badge.count { background: var(--red); color: #fff; min-width: 20px; justify-content: center; padding: 0 6px; }

/* ─── Таблица, которая на узком экране становится карточками ─ */
table.rt { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--block, var(--surface)); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
table.rt th { text-align: left; font-size: 13px; font-weight: 500; color: var(--hint); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.rt td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
table.rt tr:last-child td { border-bottom: 0; }
table.rt tr.link { cursor: pointer; }
table.rt tr.link:hover td { background: var(--hover); }
@media (max-width: 760px) {
  table.rt, table.rt tbody, table.rt tr, table.rt td { display: block; width: 100%; }
  table.rt { background: transparent; border: 0; }
  table.rt thead { display: none; }
  table.rt tr {
    background: var(--block, var(--surface)); border: 1px solid var(--line); border-radius: var(--r-card);
    margin-bottom: 8px; padding: 8px 12px;
  }
  table.rt td { border: 0; padding: 4px 0; display: flex; gap: 10px; justify-content: space-between; text-align: right; }
  table.rt td::before { content: attr(data-label); color: var(--hint); font-size: 13px; text-align: left; flex: none; }
  table.rt td[data-label=""]::before { display: none; }
  table.rt td.main { font-size: 16px; font-weight: 600; text-align: left; justify-content: flex-start; }
  table.rt td.main::before { display: none; }
}

.empty { text-align: center; padding: 48px 16px; color: var(--hint); }
.loading { text-align: center; padding: 48px 16px; color: var(--hint); }
.error-box { border: 1px solid var(--red); color: var(--red); background: rgba(229,57,53,.06); border-radius: var(--r-card); padding: 14px; }

/* ─── Люди ──────────────────────────────────────────────── */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--hint); font-weight: 600; }
.avatar.lg { width: 84px; height: 84px; font-size: 28px; }
.person { display: flex; gap: 12px; align-items: center; min-width: 0; }
.person .name { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; }

/* ─── Фото и документы ──────────────────────────────────── */
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs a, .thumbs .ph { width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--hint); position: relative; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .x { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; }
.viewer { background: #000; border-radius: var(--r-card); overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 50vh; }
.viewer img { max-width: 100%; max-height: 70vh; display: block; }

/* ─── Схема салона ──────────────────────────────────────── */
.seatmap { display: inline-flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.seatmap .srow { display: grid; gap: 8px; }
.seat {
  width: 58px; height: 58px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--text); position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; cursor: pointer; padding: 0; min-height: 0;
}
.seat small { font-size: 10px; font-weight: 500; max-width: 54px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.seat.male { background: var(--seat-male); border-color: var(--seat-male); color: #fff; }
.seat.female { background: var(--seat-female); border-color: var(--seat-female); color: #fff; }
.seat.nogender { background: var(--seat-blocked); border-color: var(--seat-blocked); color: #fff; }
.seat.selected { background: var(--seat-selected); border-color: var(--seat-selected); color: #fff; }
/* Свой пассажир водителя — белая рамка поверх заливки пола */
.seat.manual { box-shadow: inset 0 0 0 3px #fff; }
.seat.held { opacity: .7; }
.seat .home { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; }
.seat .home svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.2; }
.seat.empty-slot { visibility: hidden; }
.seat.driver { background: transparent; border-style: dashed; color: var(--hint); cursor: default; font-size: 11px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--hint); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; border: 1.5px solid var(--line); }

/* ─── Диалоги и всплывашки ──────────────────────────────── */
/*
  Высота — по ВИДИМОЙ части экрана (dvh), а не 100vh. На телефоне 100vh
  выше того, что видно при открытой адресной строке, и низ листа — там,
  где стояли фото машины и «Сохранить», — уходил за край экрана.
*/
dialog {
  border: 0; padding: 0; border-radius: var(--r-sheet); background: var(--surface); color: var(--text);
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
}
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog .dlg {
  padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
}
dialog .dlg h2 { font-size: 19px; }
/* Кнопки сохранения всегда видны, сколько бы полей ни было выше */
dialog .dlg > .actions:last-child {
  position: sticky; bottom: -20px; background: var(--surface);
  margin: 0 -20px -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0;
    max-height: 92vh; max-height: 92dvh; }
  dialog .dlg { max-height: 92vh; max-height: 92dvh; padding: 18px 16px 20px; }
  dialog .dlg > .actions:last-child { margin: 0 -16px -20px; padding-left: 16px; padding-right: 16px; }
}
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(480px, calc(100vw - 24px)); }
@media (max-width: 860px) { .toasts { bottom: 80px; } }
.toast { background: rgba(0,0,0,.88); color: #fff; padding: 12px 16px; border-radius: var(--r-btn); font-size: 15px; }
.toast.err { background: var(--red); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--hint); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.on { color: var(--primary); border-bottom-color: var(--primary); }

.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }

.diff { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; }
.diff .was { color: var(--red); }
.diff .now { color: var(--green); }

/* ─── Выбор водителя: список прямо под полем ────────────── */
.pick-list { display: flex; flex-direction: column; max-height: 55vh; max-height: 55dvh; overflow-y: auto; margin: 6px 0; }
.pick-item {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 10px 4px; min-height: 60px; font-weight: 400; font-size: 15px;
}
.pick-item:hover, .pick-item:focus { background: var(--hover); filter: none; }
.pick-item .grow { display: flex; flex-direction: column; min-width: 0; }
.pick-item .name { font-weight: 600; font-size: 16px; }
.pick-item .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Карточка человека ─────────────────────────────────── */
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--hint); font-size: 15px; margin: 0 0 10px 2px; }
.back-link:hover { color: var(--primary); text-decoration: none; }
.profile { display: flex; gap: 16px; align-items: center; }
.profile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.profile-body h1 { font-size: 22px; overflow-wrap: anywhere; }
.profile-phone { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badges:empty { display: none; }

.act-grid { margin-top: 12px; }

/* Машина: фото, номер, кнопки */
.vehicle { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vehicle:last-of-type { border-bottom: 0; }
.vehicle.archived { opacity: .6; }
.vehicle-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vehicle-info .plate { font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.vehicle-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }

/* Плитка «добавить фото» — того же размера, что снимок рядом */
.photo-add {
  width: 96px; height: 72px; min-height: 0; padding: 4px; border-radius: 10px;
  border: 1.5px dashed var(--primary); background: var(--hover); color: var(--primary);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center;
}
.photo-add svg.i { width: 22px; height: 22px; }
.photo-field { display: flex; flex-direction: column; gap: 8px; }
.photo-field-title { font-size: 14px; color: var(--hint); }

@media (max-width: 640px) {
  .profile { gap: 12px; }
  .profile .avatar.lg { width: 64px; height: 64px; font-size: 24px; }
  .profile-body h1 { font-size: 20px; }

  /* Кнопки сеткой в два столбца, главная — во всю ширину */
  .act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .act-grid > * { width: 100%; min-height: 48px; padding: 0 10px; font-size: 15px; }
  .act-grid > .wide { grid-column: 1 / -1; min-height: var(--tap); font-size: 17px; }

  .vehicle { flex-wrap: wrap; }
  .vehicle .thumbs { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .vehicle .thumbs > * { flex: none; }
  .vehicle-actions { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .vehicle-actions > button { flex: 1; min-width: 120px; }

  /* Название над значением: длинные подписи больше не сжимают значения */
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv > :nth-child(odd) { font-size: 13px; margin-top: 10px; }
  .kv > :nth-child(1) { margin-top: 0; }

  /* Строки со своими кнопками — кнопки уходят вниз, во всю ширину */
  .list-item { flex-wrap: wrap; }
  .list-item > .actions { width: 100%; }
  .list-item > .actions > button { flex: 1; }

  /* Таблица внутри блока: без второй рамки вокруг каждой строки */
  .card table.rt tr { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 8px 0; background: transparent; }
  .card table.rt tr:last-child { border-bottom: 0; }
}

/* Вход */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--bg); }
.login { width: min(400px, 100%); }
.login .logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; }
