/* ==========================================================================
   СнабКонтроль — слой оформления по макету Google Stitch «Smart Supply AI».
   Подключается ПОСЛЕ app.css и переводит существующую вёрстку в макет:
   плоские карточки со скруглением 2px, тонкие линии, синий primary #003EC7,
   светлое боковое меню, верхняя панель 64px с поиском, моно-шрифт для цифр.
   Значения перенесены из tailwind.config макета (px/hex), без внешних CDN.
   ========================================================================== */

/* ---------- база ---------- */
body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  background: var(--bg);
}

.app-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--bg);
}

/* ---------- боковое меню (280px, светлое в светлой теме) ---------- */
/* !important — перебиваем правило прошлой версии оформления в app.css */
.sidebar,
[data-theme="dark"] .sidebar {
  padding: 24px 0;
  color: var(--sidebar-text);
  background: var(--sidebar-bg) !important;
  border-right: 1px solid var(--sidebar-line);
}

.sidebar .brand {
  padding: 0 32px;
  margin-bottom: 24px;
}

.sidebar .wordmark-name { color: var(--sidebar-text-strong); }
.sidebar .wordmark-suffix { color: var(--sidebar-muted); }

/* Кнопка-действие меню: «+ Новая поставка» */
.side-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 32px);
  min-height: 40px;
  margin: 0 16px 16px;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.side-cta:hover { background: var(--accent-hover); }

/* Заголовок группы пунктов (в макете — метка-капс) */
.nav-group {
  padding: 16px 32px 6px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
}

.nav { gap: 4px; padding: 0 16px; }

.nav button,
.nav-main,
.nav-bottom,
.theme-toggle,
.logout {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--sidebar-text);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}

.nav button:hover,
.nav-main:hover,
.nav-bottom:hover,
.theme-toggle:hover,
.logout:hover {
  color: var(--sidebar-text-strong);
  background: var(--sidebar-hover);
}

/* Активный пункт: синий текст, жирный, полоса СПРАВА 2px (как в макете) */
.nav button.active,
.nav .nav-main.active {
  color: var(--accent);
  font-weight: 700;
  background: transparent;
  border-left: 0;
  border-right: 2px solid var(--accent);
  padding-left: 16px;
  border-radius: var(--radius) 0 0 var(--radius);
}

.nav button.active .msym { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

.nav .msym,
.nav-bottom .msym { font-size: 20px; color: inherit; }

.sidebar-bottom {
  padding: 0 16px;
  margin-top: auto;
  border-top: 1px solid var(--sidebar-line);
  padding-top: 16px;
}

/* Раскрывающийся блок «Ещё» — в стиле пунктов меню */
.nav-more summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--sidebar-text);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-more summary:hover { background: var(--sidebar-hover); color: var(--sidebar-text-strong); }
.nav-more button { padding-left: 40px; }

/* ---------- верхняя панель 64px ---------- */
.topbar {
  height: 64px;
  min-height: 64px;
  padding: 0 32px;
  gap: 16px;
  color: var(--text);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar .wordmark-name { color: var(--text); }
.topbar .wordmark-suffix { color: var(--muted); }
.topbar .page-title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  white-space: nowrap;
}

/* Поле поиска верхней панели */
.top-search {
  position: relative;
  flex: 0 1 384px;
  min-width: 0;
}

.top-search .msym {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted);
  pointer-events: none;
}

.topbar .top-search input {
  width: 100%;
  height: 36px;
  padding: 8px 12px 8px 34px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topbar .top-search input::placeholder { color: var(--muted); }
.topbar .top-search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }

.topbar .spacer { flex: 1 1 auto; }

.topbar .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}

/* !important — перебиваем «жёлтые круглые кнопки» прошлой версии оформления */
.topbar .icon-btn,
[data-theme="light"] .topbar .icon-btn,
[data-theme="dark"] .topbar .icon-btn {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  color: var(--text-2) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
}

.topbar .icon-btn:hover,
[data-theme="light"] .topbar .icon-btn:hover,
[data-theme="dark"] .topbar .icon-btn:hover {
  color: var(--text) !important;
  background: var(--surface-3) !important;
}

.topbar .icon-btn .msym { font-size: 22px; color: inherit; }
.topbar .icon-btn .theme-icon { display: none; }

/* Верхняя строка плитки: метка слева, иконка справа (как в макете) */
.stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.stat-top .msym { font-size: 22px; color: var(--line); }
.stat-card.danger .stat-top .msym { color: var(--danger); }

.notif-badge {
  min-width: 8px;
  height: 8px;
  padding: 0;
  font-size: 0;
  background: var(--danger);
  border: 0;
  border-radius: var(--radius-pill);
}

/* ---------- рабочая область ---------- */
.main {
  max-width: none;
  padding: 32px;
  background: var(--bg);
}

.topline { margin-bottom: 24px; }

.topline h1 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topline p {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

/* ---------- карточки ---------- */
.panel,
.card,
.form-panel,
.notice-card,
.instruction-card,
.object-card,
.supplier-card,
.user-card,
.digest-panel,
.readiness-panel,
.correction-panel,
.receive-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.panel { padding: 16px; }

.panel h2,
.card-head h2 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}

.grid { gap: 16px; }

/* ---------- плитки показателей (KPI макета) ---------- */
.stats-grid { gap: 16px; }

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.stat-card b {
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-2);
}

.stat-card strong {
  display: block;
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-card span {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
}

.stat-card:hover { background: var(--surface-3); }

/* «Тревожная» плитка — как ACTIVE ISSUES в макете */
.stat-card.danger {
  background: var(--danger-container);
  border-color: var(--danger);
}

.stat-card.danger b,
.stat-card.danger span { color: var(--on-danger-container); }
.stat-card.danger strong { color: var(--danger); }

.stat-card.warning {
  background: var(--warning-bg);
  border-color: var(--line);
}

.stat-card.warning b,
.stat-card.warning span { color: var(--on-secondary-container); }
.stat-card.warning strong { color: var(--text); }

/* ---------- таблицы ---------- */
.table-wrap,
.attention-scroll {
  background: transparent;
  border: 0;
  box-shadow: none;
}

table { font-size: 12px; line-height: 16px; }

thead {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

th {
  padding: 8px 16px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}

td {
  padding: 8px 16px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  vertical-align: middle;
}

tbody tr:hover td { background: var(--surface-lowest); }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 30%, transparent); }
tbody tr:nth-child(even):hover td { background: var(--surface-lowest); }

/* Номера, коды и количества — моно-шрифтом, как в макете */
.ref-open,
.attention-num,
.copy-ref,
.qr-label,
.shipment-title,
td .mono,
.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
}

/* ---------- статусные чипы (варианты макета) ---------- */
.status,
.delivery-chip,
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: currentColor;
  flex: none;
}

/* «Ожидает» — нейтральный (Pending) */
.status.created,
.status.neutral {
  color: var(--text-2);
  background: var(--surface-variant);
  border-color: var(--line);
}

/* «В пути» — третичный (In Transit) */
.status.sent,
.status.in_transit {
  color: var(--info);
  background: var(--info-bg);
  border-color: var(--tertiary-soft-line);
}

/* «Принято» — основной синий (Delivered) */
.status.received {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-soft-line);
}

/* «Частично» — вторичный контейнер */
.status.partially_received {
  color: var(--on-secondary-container);
  background: var(--warning-bg);
  border-color: var(--line);
}

/* «Проблема» — ошибка */
.status.problem,
.status.damaged,
.status.missing {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: color-mix(in srgb, var(--danger) 20%, transparent);
}

/* «Просрочено» — сильная ошибка (Delayed) */
.status.overdue {
  color: var(--on-danger-container);
  background: var(--danger-container);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.btn:hover { background: var(--surface-3); }

.btn.signal,
.btn-hero {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.btn.signal:hover,
.btn-hero:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn.secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn.danger {
  color: var(--accent-ink);
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: none;
}

.btn.danger:hover { background: var(--on-danger-container); border-color: var(--on-danger-container); }

.btn-sm { min-height: 32px; padding: 6px 12px; font-size: 12px; line-height: 16px; }

.btn .msym { font-size: 16px; }

/* Ссылка-действие «Смотреть все» (VIEW ALL в макете) */
.link-caps {
  padding: 0;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
}

.link-caps:hover { text-decoration: underline; }

/* ---------- поля ввода ---------- */
.field span,
.field label,
.field > span {
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Часть полей в разметке без атрибута type — селектор по типам их не ловил,
   из-за чего в одной форме соседние поля отличались шрифтом и скруглением. */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
select,
textarea {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  background: var(--surface-lowest);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
select {
  min-height: 40px;
  padding: 10px 12px;
}

textarea { padding: 10px 12px; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.filters {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- лента событий (Activity Stream макета) ---------- */
.timeline { display: grid; gap: 0; }

.event {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  background: transparent;
}

.event:last-child { border-bottom: 0; }

.event-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-line);
  border-radius: var(--radius-pill);
}

.event-ic .msym { font-size: 18px; }
.event-ic.is-danger { color: var(--danger); background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 20%, transparent); }
.event-ic.is-neutral { color: var(--text-2); background: var(--surface-variant); border-color: var(--line); }
.event-ic.is-info { color: var(--info); background: var(--info-bg); border-color: var(--tertiary-soft-line); }

.event-body { min-width: 0; }
.event-body b { font-weight: 600; color: var(--text); }
.event-body p { margin: 0; font-size: 12px; line-height: 16px; color: var(--text-2); }
.event-time { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--muted); }

/* ---------- шкала статусов поставки (Tracking Timeline макета) ---------- */
.track-line { position: relative; display: grid; gap: 0; padding-left: 28px; }

.track-line::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.track-step { position: relative; padding: 12px 0; }

.track-step::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 16px;
  width: 11px;
  height: 11px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
}

.track-step.is-done::before { background: var(--accent); border-color: var(--accent); }
.track-step.is-current::before { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.track-step.is-current b { color: var(--accent); }
.track-step.is-future { opacity: .55; }
.track-step b { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.track-step p { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: var(--text-2); }
.track-step time { font-family: var(--font-mono); font-size: 13px; line-height: 16px; font-weight: 500; color: var(--text-2); }

/* ---------- прочее ---------- */
.empty {
  padding: 24px 16px;
  font-size: 14px;
  color: var(--text-2);
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.muted { color: var(--text-2); }

.toast-item,
.notice-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}

.mini-bar { background: var(--surface-variant); border-radius: var(--radius); }
.mini-bar-fill { background: var(--accent); border-radius: var(--radius); }

.qr-grid img,
.receive-card img { border-radius: var(--radius); }

/* Переключатель сервисов из старой версии не используется */
.topbar .tabs,
.proj-dd,
.proj-switch { display: none !important; }

/* ---------- экран входа по макету (двухпанельная карточка) ---------- */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: 960px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.login-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
}

.login-art .wordmark { position: relative; z-index: 1; }

/* Фоновая сетка-«карта» — как в макете, средствами CSS */
.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
  pointer-events: none;
}

.login-status {
  position: relative;
  z-index: 1;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.login-status h2 {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-2);
}

.login-status strong {
  font-family: var(--font-mono);
  font-size: 36px;
  line-height: 44px;
  font-weight: 500;
  color: var(--accent);
}

.login-status span { font-size: 12px; line-height: 16px; color: var(--text-2); }

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  background: var(--surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.login-panel h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.login-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

.login-foot {
  margin-top: 8px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.login-art .yard-map,
.login-art .route-rails,
.login-art .status-track { display: none; }

/* ==========================================================================
   ТЕЛЕФОН — по мобильным экранам макета (03/06/09):
   нижняя панель разделов, кнопка «+», плитки листаются вбок,
   реестры — карточками, всё под палец.
   ========================================================================== */

/* Нижняя панель разделов (на десктопе не нужна) */
.tabbar { display: none; }
.topbar .topbar-brand { display: none; }
.fab { display: none; }

@media (max-width: 820px) {
  /* Меню выезжает поверх содержимого — колонка под него в сетке не нужна.
     Из-за неё рабочая область получала 280px вместо всей ширины экрана. */
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  /* --- верхняя панель: бургер, словомарк, колокольчик, тема --- */
  .topbar {
    padding: env(safe-area-inset-top, 0px) 12px 0;
    height: calc(64px + env(safe-area-inset-top, 0px));
    min-height: calc(64px + env(safe-area-inset-top, 0px));
    gap: 4px;
  }

  .topbar .page-title { display: none; }

  .topbar .topbar-brand {
    display: inline-grid;
    min-width: 0;
    margin-left: 2px;
  }

  .topbar-brand .wordmark-name { font-size: 17px; line-height: 24px; }

  /* Полоски бургера были кремовыми (под старую тёмную панель) — на светлой не видны.
     В макете кнопка меню синяя (primary). */
  .topbar .menu-toggle span { background: var(--accent) !important; }
  .topbar .menu-toggle { border-radius: var(--radius); }

  /* Кнопка «скопировать номер» была 14x16px внутри кликабельной строки */
  .copy-ref {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: -12px 0 -12px 2px;
    padding: 0;
    font-size: 16px;
  }

  .top-search { display: none; }

  .topbar .icon-btn[data-nav="journal"],
  .topbar .icon-btn[data-nav="instructions"] { display: none; }

  /* Под палец: 44px */
  .topbar .icon-btn,
  [data-theme="light"] .topbar .icon-btn,
  [data-theme="dark"] .topbar .icon-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }

  .topbar .icon-btn .theme-toggle-label { display: none !important; }

  /* --- рабочая область: место под закреплённые панели сверху и снизу --- */
  .main {
    padding: calc(64px + env(safe-area-inset-top, 0px) + 16px) 16px
             calc(64px + env(safe-area-inset-bottom, 0px) + 16px);
  }

  .topline { margin-bottom: 16px; }
  .topline h1 { font-size: 22px; line-height: 28px; }

  /* --- выдвижное меню --- */
  /* Меню не прокручивалось: 16 пунктов не влезают в экран телефона,
     нижние («Настройки», «Инструкция») были физически недоступны. */
  .sidebar,
  [data-theme="dark"] .sidebar {
    width: 288px;
    max-width: 86vw;
    height: 100dvh;
    min-height: 0;
    padding-top: calc(64px + env(safe-area-inset-top, 0px) + 12px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar .nav,
  .sidebar .sidebar-bottom { flex: 0 0 auto; }

  /* Фон под открытым меню не должен прокручиваться (html с overflow-x: clip
     забирает прокрутку на себя, и body.menu-lock один не срабатывает) */
  html:has(body.menu-lock) { overflow: hidden; }
  .app-shell.menu-open .menu-backdrop { touch-action: none; overscroll-behavior: contain; }

  .sidebar .brand { display: none; }

  .nav button,
  .nav-main,
  .nav-bottom { min-height: 44px; }

  .side-cta { min-height: 44px; }

  /* --- нижняя панель разделов (как в макете) --- */
  .tabbar {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--surface-3);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, .05);
  }

  .tabbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 6px 2px;
    color: var(--text-2);
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .tabbar-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 26px;
    border-radius: var(--radius-pill);
  }

  .tabbar-tx {
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Активный раздел: синяя плашка с белой иконкой и синяя подпись */
  .tabbar-btn.active { color: var(--accent); }
  .tabbar-btn.active .tabbar-ic { color: var(--accent-ink); background: var(--accent); }
  .tabbar-btn.active .msym { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

  /* --- кнопка «+» над нижней панелью --- */
  .fab {
    position: fixed;
    z-index: 46;
    right: 16px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 16px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: var(--accent-ink);
    background: var(--accent);
    border: 0;
    border-radius: var(--radius-xl);
    box-shadow: 0 6px 16px rgba(0, 62, 199, .32);
    cursor: pointer;
  }

  .fab .msym { font-size: 28px; }
  .app-shell.menu-open .fab { display: none; }

  /* --- плитки показателей: лента с прокруткой вбок, как в макете --- */
  .stats-grid {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .stats-grid::-webkit-scrollbar { display: none; }

  .stats-grid .stat-card {
    flex: 0 0 200px;
    min-height: 116px;
    gap: 12px;
    scroll-snap-align: start;
  }

  .stat-card strong { font-size: 30px; line-height: 38px; }

  /* --- реестры: карточки вместо таблиц, без внутренней прокрутки ---
     Вложенные области прокрутки на телефоне перехватывали жест пальца. */
  .attention-scroll,
  .table-wrap {
    overflow: visible !important;
    border: 0;
    background: transparent;
  }

  .attention-scroll .attention-table,
  .attention-scroll .report-table,
  .table-wrap .data-table,
  .data-table {
    table-layout: auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .data-table tr {
    margin-bottom: 8px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
  }

  .data-table td {
    grid-template-columns: minmax(104px, 40%) minmax(0, 1fr);
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
    background: transparent !important;
  }

  /* Чип статуса в карточке не должен растягиваться на всю ячейку */
  .data-table td > .status,
  .data-table td > .delivery-chip { justify-self: start; }

  .data-table td::before {
    font-size: 11px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text-2);
    hyphens: auto;
  }

  .data-table .ref-open,
  .data-table .attention-num { white-space: normal; }

  /* --- формы и фильтры --- */
  .panel { padding: 14px; }
  .filters { padding: 14px; }
  .grid.two,
  .dash-grid.grid.two { grid-template-columns: minmax(0, 1fr); }

  /* Safari на iPhone зумит страницу, если шрифт поля меньше 16px.
     Отрицания вместо перечисления типов: у части полей атрибута type нет. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
  select,
  textarea,
  .filters .field input,
  .filters .field select {
    font-size: 16px;
    min-height: 44px;
  }

  textarea { min-height: 88px; }

  .btn,
  .ai-chip { min-height: 44px; }

  .btn-sm { min-height: 40px; }

  /* Кнопки в карточке поставки — в столбик во всю ширину, чтобы не выезжали */
  .detail-head,
  .card-actions { display: grid; gap: 8px; }
  .detail-head .btn,
  .card-actions .btn { width: 100%; }

  /* --- экран входа --- */
  .login-screen { min-height: 100dvh; padding: 16px; }
  .login-shell { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .login-art { display: none; }
  .login-panel { padding: 24px 20px; }

  /* --- экран ИИ --- */
  .ai-hero { padding: 24px 8px 16px; }
  .ai-chips { flex-direction: column; align-items: stretch; }
  .ai-chip { justify-content: flex-start; }
  .ai-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .tabbar-tx { font-size: 10px; }
  .stats-grid .stat-card { flex-basis: 170px; }
  .main { padding-left: 12px; padding-right: 12px; }
  /* Лента плиток «до краёв»: вылет должен совпадать с отступом страницы,
     иначе появляется горизонтальная прокрутка всей страницы. */
  .stats-grid { margin: 0 -12px; padding: 0 12px 4px; }
}


/* Текст только для скринридеров */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- экран «ИИ-снабженец» (по макету AI Assistant) ---------- */
.ai-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 24px 32px;
  text-align: center;
}

.ai-hero-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-xl);
}

.ai-hero-ic .msym { font-size: 26px; }

.ai-hero h2 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.ai-hero p {
  margin: 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.ai-chip:hover { background: var(--surface-3); }
.ai-chip .msym { font-size: 16px; color: var(--accent); }

.ai-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.ai-card {
  padding: 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ai-card b {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text);
}

.ai-card b .msym { font-size: 18px; color: var(--accent); }
.ai-card p { margin: 0; font-size: 12px; line-height: 16px; color: var(--text-2); }
.ai-note { margin-top: 24px; }

/* ---------- сворачиваемый блок фильтров ---------- */
.fold { border: 0; }
.fold > .fold-sum { display: none; }

/* Быстрые фильтры: ряд кнопок */
.chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-label { flex: none; }

@media (max-width: 820px) {
  /* Фильтры спрятаны за кнопкой — как в мобильном макете */
  .fold > .fold-sum {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    list-style: none;
  }

  .fold > .fold-sum::-webkit-details-marker { display: none; }
  .fold > .fold-sum .msym { color: var(--accent); }
  .fold[open] > .fold-sum { margin-bottom: 12px; }

  .fold > .filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  /* Быстрые фильтры листаются вбок, а не занимают пол-экрана */
  .chips-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 8px -12px 0 !important;
    padding: 0 12px 4px;
    background: transparent;
    border: 0;
  }

  .chips-row::-webkit-scrollbar { display: none; }
  .chips-row .btn { flex: none; }
}

@media (max-width: 820px) {
  /* В свёрнутом виде подпись даёт сама кнопка — свой заголовок и пояснение прячем */
  .fold-create > h2,
  .fold-create > p { display: none; }
  .form-panel { padding: 14px; }
}

/* Основной чип раздела ИИ — ведёт в чат */
.ai-chip--primary {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
  text-decoration: none;
}

.ai-chip--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.ai-chip--primary .msym { color: var(--accent-ink); }

/* ==========================================================================
   ЧАТ ИИ-СНАБЖЕНЦА — по экранам макета Stitch 07 (светлый), 08 (тёмный),
   09 (мобильный). Значения перенесены из макета: пузырь пользователя #003EC7
   со срезанным правым нижним углом, ответ ассистента с плашкой smart_toy и
   срезанным левым нижним углом, поле ввода 768px по центру.
   ========================================================================== */

.chat-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  height: calc(100vh - 64px - 64px);
  min-height: 480px;
  margin: -32px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* ---------- панель диалогов (левая колонка макета) ---------- */
.chat-threads {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
}

.chat-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin-bottom: 16px;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.chat-new:hover { background: var(--accent-hover); }

.chat-threads-title {
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.chat-threads-list {
  display: grid;
  gap: 4px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-thread {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  color: var(--text-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.chat-thread:hover { background: var(--surface-variant); color: var(--text); }

.chat-thread.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-soft-line);
}

.chat-thread-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread-meta {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- полотно переписки ---------- */
.chat-main {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  background: var(--bg);
}

.chat-canvas {
  min-height: 0;
  padding: 24px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-canvas > * { max-width: 768px; margin-inline: auto; }

/* ---------- пустое состояние (макет 07:232-263) ---------- */
.chat-empty {
  width: 100%;
  max-width: 768px;
  margin: 24px auto;
  text-align: center;
}

.chat-hero-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  color: var(--accent-fixed);
  background: var(--accent-hover);
  border-radius: var(--radius-pill);
}

.chat-hero-ic .msym { font-size: 24px; }

.chat-empty h2 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.chat-empty > p {
  max-width: 560px;
  margin: 4px auto 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.chat-chip:hover { background: var(--surface-3); }
.chat-chip .msym { color: var(--accent); }

.chat-suggest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 24px;
  text-align: left;
}

.chat-suggest-card {
  padding: 12px 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.chat-suggest-card:hover { border-color: var(--accent); }

.chat-suggest-card b {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text);
}

.chat-suggest-card span {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
}

/* ---------- пузыри (макет 07:267-323) ---------- */
.chat-row { display: flex; gap: 8px; margin-bottom: 16px; }
.chat-row--user { justify-content: flex-end; }
.chat-row--bot { justify-content: flex-start; }

.chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  margin-top: 4px;
  color: var(--accent-fixed);
  background: var(--accent-hover);
  border-radius: var(--radius);
}

.chat-bubble--user {
  max-width: 80%;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-bubble--bot {
  max-width: 85%;
  padding: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
  overflow-wrap: anywhere;
}

[data-theme="dark"] .chat-bubble--user {
  color: var(--text);
  background: var(--surface-4);
  border-color: var(--line);
}

.chat-bubble--bot > *:first-child { margin-top: 0; }
.chat-bubble--bot > *:last-child { margin-bottom: 0; }
.chat-bubble--bot p { margin: 0 0 16px; }
.chat-bubble--bot h3 { margin: 16px 0 8px; font-size: 16px; line-height: 24px; font-weight: 600; }
.chat-bubble--bot ul,
.chat-bubble--bot ol { margin: 0 0 16px; padding-left: 20px; }
.chat-bubble--bot li { margin-bottom: 4px; }
.chat-bubble--bot a { color: var(--accent); }
.chat-bubble--bot code {
  padding: 1px 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chat-bubble--bot pre {
  margin: 0 0 16px;
  padding: 12px;
  overflow-x: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chat-bubble--bot pre code { padding: 0; border: 0; background: none; }

/* Таблица в ответе — как в макете 07:280-317 */
.chat-table-wrap { margin: 0 0 16px; overflow-x: auto; overscroll-behavior-inline: contain; }

.chat-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 16px;
}

.chat-table thead { background: var(--surface-2); border-bottom: 1px solid var(--line); }

.chat-table th {
  padding: 8px 12px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: left;
  white-space: nowrap;
}

.chat-table td {
  padding: 8px 12px;
  color: var(--text-2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  vertical-align: top;
}

.chat-table tbody tr:last-child td { border-bottom: 0; }
.chat-table td:first-child { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }

/* «Печатает…» */
.chat-typing { display: inline-flex; gap: 4px; align-items: center; padding: 16px; }
.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: var(--radius-pill);
  animation: chat-dot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes chat-dot {
  0%, 60%, 100% { opacity: .28; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .chat-typing span { animation: none; opacity: .5; }
}

/* ---------- поле ввода (макет 07:327-339) ---------- */
.chat-dock {
  padding: 8px 16px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 768px;
  margin: 0 auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.chat-composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.chat-composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  max-height: 160px;
  padding: 10px 4px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
  resize: none;
}

.chat-composer textarea:focus { outline: none; box-shadow: none; border: 0; }

.chat-attach,
.chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.chat-attach { color: var(--muted); background: transparent; }
.chat-attach:hover { color: var(--text); background: var(--surface-3); }

.chat-send { color: var(--accent-ink); background: var(--accent); }
.chat-send:hover { background: var(--accent-hover); }
.chat-send:disabled { opacity: .55; cursor: default; }

.chat-hint {
  max-width: 768px;
  margin: 8px auto 0;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  color: var(--muted);
}

/* ---------- телефон (макет 09) ---------- */
@media (max-width: 820px) {
  .chat-shell {
    grid-template-columns: minmax(0, 1fr);
    height: calc(100dvh - 64px - 64px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin: calc(-1 * (64px + env(safe-area-inset-top, 0px) + 16px)) -16px calc(-1 * (64px + env(safe-area-inset-bottom, 0px) + 16px));
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
  }

  /* Панели диалогов в мобильном макете нет — список открывается кнопкой */
  .chat-threads { display: none; }

  .chat-canvas { padding: 16px 12px; }
  .chat-bubble--user,
  .chat-bubble--bot { max-width: 90%; }
  .chat-bubble--bot { padding: 12px; }
  .chat-dock { padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  /* Подсказка в поле занимает две строки — даём под неё высоту, иначе текст обрезался */
  .chat-composer textarea { font-size: 16px; min-height: 48px; }

  /* Кнопка «+» (новая поставка) в чате не нужна и перекрывала поле ввода */
  .app-shell:has(.chat-shell) .fab { display: none; }
  .chat-quick { flex-direction: column; align-items: stretch; }
  .chat-chip { justify-content: flex-start; min-height: 44px; }
  .chat-suggest { grid-template-columns: minmax(0, 1fr); }
  .chat-attach,
  .chat-send { width: 44px; height: 44px; }
}
