:root {
  --bg: var(--tg-theme-bg-color, #f4f5f7);
  --text: var(--tg-theme-text-color, #1a1d21);
  --hint: var(--tg-theme-hint-color, #6b7280);
  --link: var(--tg-theme-link-color, #2563eb);
  --btn: var(--tg-theme-button-color, #1e3a5f);
  --btn-text: var(--tg-theme-button-text-color, #ffffff);
  --secondary: var(--tg-theme-secondary-bg-color, #ffffff);
  --accent: #1e3a5f;
  --border: rgba(0, 0, 0, 0.08);
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #ca8a04;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  /* min-height (НЕ height:100%): иначе body обрезается по экрану, и контент выше экрана
     остаётся без фона темы — проступает подложка (тот самый «недокрашенный» шов). */
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(16px + var(--safe-bottom));
}

.hidden { display: none !important; }

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title { flex: 1; min-width: 0; }

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--hint);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:active { background: var(--border); }

/* Main */
.main {
  flex: 1;
  padding: 16px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

/* Loader / Skeleton */
.loader { padding: 8px 0; }

.skeleton-card {
  height: 120px;
  background: linear-gradient(90deg, var(--secondary) 25%, var(--border) 50%, var(--secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.skeleton-line {
  height: 14px;
  background: var(--secondary);
  border-radius: 6px;
  margin-bottom: 10px;
  animation: shimmer 1.2s infinite;
}

.skeleton-line.short { width: 60%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Typography */
.page-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.page-desc {
  font-size: 0.875rem;
  color: var(--hint);
  margin-bottom: 20px;
}

/* Cards */
.card {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border);
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--hint);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-big {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  margin: 8px 0;
}

.indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.indicator.green { background: var(--success); }
.indicator.yellow { background: var(--warning); }
.indicator.red { background: var(--danger); }

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  background: var(--btn);
  color: var(--btn-text);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(0, 0, 0, 0.06));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: opacity 0.15s, filter 0.15s;
}
.btn:active { filter: brightness(0.92); }

.btn:active { opacity: 0.85; }

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.05));
  border: 1px solid var(--border);
}

.btn-danger { background: var(--danger); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--link);
  box-shadow: none;
  background-image: none;
  border: 1px solid var(--border);
}

.btn-sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.85rem;
  width: auto;
}

.btn-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-group .btn { flex: 1; }

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--secondary);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  text-align: left;
  width: 100%;
}

.menu-item:active { background: var(--border); }

.menu-item .icon { font-size: 1.25rem; width: 28px; text-align: center; }

.menu-item.primary {
  background: var(--btn);
  color: var(--btn-text);
  border-color: var(--btn);
  font-weight: 600;
}

/* Forms */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--hint);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--secondary);
  color: var(--text);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input.error { border-color: var(--danger); }

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 4px;
}

.form-textarea { min-height: 100px; resize: vertical; }

/* List / Table */
.list-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.list-item:last-child { border-bottom: none; }

.list-item:active { opacity: 0.7; }

.list-title { font-weight: 500; font-size: 0.95rem; }

.list-meta {
  font-size: 0.8rem;
  color: var(--hint);
  margin-top: 4px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
}

.badge-new { background: #dbeafe; color: #1d4ed8; }
.badge-work { background: #fef3c7; color: #b45309; }
.badge-closed { background: #e5e7eb; color: #4b5563; }

/* Счётчик непрочитанных уведомлений (как в Telegram) */
.badge-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e53935;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Wizard */
.wizard-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.wizard-step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

.wizard-step.done { background: var(--accent); }
.wizard-step.active { background: var(--link); }

.wizard-body { animation: slideIn 0.25s ease; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.chip.selected {
  background: var(--btn);
  color: var(--btn-text);
  border-color: var(--btn);
}

.chip:active { opacity: 0.8; }

.search-results {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}

.search-result {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: var(--secondary);
}

.search-result:last-child { border-bottom: none; }
.search-result:active { background: var(--border); }

.highlight { background: rgba(37, 99, 235, 0.2); font-weight: 600; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

/* Dialog */
.dialog-msg {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.dialog-msg.operator { background: #eff6ff; color: #1a1d21; }
.dialog-msg.manager { background: #f0fdf4; color: #1a1d21; }

/* Banners */
.toast {
  position: fixed;
  bottom: calc(80px + var(--safe-bottom));
  left: 16px;
  right: 16px;
  max-width: 448px;
  margin: 0 auto;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 200;
  text-align: center;
}

.emergency-banner,
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: var(--danger);
  color: #fff;
  text-align: center;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.offline-banner { background: #374151; color: #fff; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--hint);
}

.empty-state .icon { font-size: 2.5rem; margin-bottom: 12px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.filter-chip {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
}

.filter-chip.active {
  background: var(--btn);
  color: var(--btn-text);
  border-color: var(--btn);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
}

.checkbox-row input { width: 20px; height: 20px; }

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}

.camera-preview {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.draft-banner {
  background: #fffbeb;
  color: #1a1d21;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}

.draft-banner p { font-size: 0.9rem; margin-bottom: 10px; }

/* ─── Маркетплейс-отгрузка: плитки, корзина, степперы ─── */
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.cat-tabs .filter-chip { white-space: nowrap; flex-shrink: 0; }

.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile {
  background: var(--secondary);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  min-height: 92px;
  color: var(--text);
  text-align: left;
}
.tile:active { filter: brightness(0.95); }
.tile-name { font-size: 0.85rem; font-weight: 500; line-height: 1.25; }
.tile-dots { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
.tile-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--border); }
.tile-plus { align-self: flex-end; width: 30px; height: 30px; border-radius: 50%; background: var(--btn); color: var(--btn-text); border: none; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }

/* Панель быстрого добавления (над корзиной) */
.add-sheet { background: var(--secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-top: 10px; box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12); }

/* Липкая корзина снизу */
.cart-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(0deg, rgba(43, 159, 212, 0.15), rgba(43, 159, 212, 0.15)), var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-top: 12px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  z-index: 50;
}
.cart-bar .info { flex: 1; font-size: 0.9rem; }
.cart-bar .btn { width: auto; padding: 12px 22px; }

/* Степпер количества */
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 34px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--secondary); color: var(--text); font-size: 1.1rem; }
.stepper input { width: 72px; text-align: center; min-height: 38px; }

/* ─── Карточки остатков склада ─── */
.stock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stock-card {
  background: var(--secondary);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.stock-card.ok { border-left-color: var(--success); }
.stock-card.low { border-left-color: var(--warning); }
.stock-card.out { border-left-color: var(--danger); }
.stock-alarm {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  animation: stockPulse 1.4s ease-in-out infinite;
}
@keyframes stockPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}
@media (prefers-reduced-motion: reduce) { .stock-alarm { animation: none; opacity: 1; } }
.stock-card .name { font-size: 0.85rem; font-weight: 600; line-height: 1.25; }
.stock-card .color { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--hint); }
.stock-num { font-size: 1.5rem; font-weight: 700; margin-top: 2px; line-height: 1.1; }
.stock-num small { font-size: 0.7rem; font-weight: 500; color: var(--hint); }
.stock-card.ok .stock-num { color: var(--success); }
.stock-card.low .stock-num { color: var(--warning); }
.stock-card.out .stock-num { color: var(--danger); }
.stock-flow { font-size: 0.72rem; color: var(--hint); margin-top: 2px; }

/* ─── Карточки отгрузок («Мои заказы») ─── */
.ship-list { display: flex; flex-direction: column; gap: 8px; }
.ship-card {
  background: var(--secondary);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
}
.ship-card:active { filter: brightness(0.96); }
.ship-card.cancelled { border-left-color: var(--danger); opacity: 0.7; }
.ship-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ship-title { font-weight: 600; font-size: 0.95rem; }
.ship-card.cancelled .ship-title { text-decoration: line-through; }
.ship-meta { font-size: 0.78rem; color: var(--hint); margin-top: 4px; }
.ship-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; background: var(--danger); color: #fff; white-space: nowrap; }

/* ─── Кабинет оператора: шапка профиля, hero «смена», нижний таб-бар ─── */
.op-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.op-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--btn); color: var(--btn-text); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.op-id { flex: 1; min-width: 0; }
.op-id .nm { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-id .sub { font-size: 0.78rem; color: var(--hint); }
.op-actions { display: flex; gap: 6px; flex-shrink: 0; }
.op-iconbtn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--secondary); color: var(--text); font-size: 1.15rem; display: flex; align-items: center; justify-content: center; }
.op-iconbtn:active { filter: brightness(0.92); }
.op-iconbtn .badge-count { position: absolute; top: -3px; right: -3px; }

.op-hero { background: linear-gradient(135deg, #1f6fb8, #2b9fd4); color: #fff; border-radius: 18px; padding: 18px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(31, 111, 184, 0.30); }
.op-hero .lbl { font-size: 0.8rem; opacity: 0.9; }
.op-hero .big { font-size: 2.6rem; font-weight: 800; line-height: 1.05; margin: 2px 0 12px; }
.op-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.op-hero-cell { background: rgba(255, 255, 255, 0.16); border-radius: 12px; padding: 10px; text-align: center; }
.op-hero-cell .v { font-size: 1.3rem; font-weight: 700; }
.op-hero-cell .l { font-size: 0.7rem; opacity: 0.92; }
.op-hero-foot { font-size: 0.76rem; margin-top: 12px; opacity: 0.95; }
.op-hero-foot .indicator { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4); }

.tabbar-spacer { height: 76px; }
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + var(--safe-bottom));
  z-index: 200;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.18);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; background: none; border: none; color: var(--hint); font-size: 0.68rem; cursor: pointer; min-height: 54px; }
.tab .ic { font-size: 1.4rem; line-height: 1; }
.tab.active { color: #6C5CE7; font-weight: 600; }
.tab:active { opacity: 0.7; }

/* Отступ контента, когда показан нижний таб-бар (чтобы не прятался под баром) */
body.has-tabbar #main { padding-bottom: 88px; }

/* Ползунок громкости */
.range-input { width: 100%; height: 40px; accent-color: var(--btn); cursor: pointer; }

/* ─── Фиксация портретной ориентации (фолбэк для альбомной) ─── */
#rotate-overlay { display: none; }
@media (orientation: landscape) and (max-height: 600px) {
  #app { display: none; }
  #rotate-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 24px;
    background: var(--bg);
    color: var(--text);
  }
  #rotate-overlay .rotate-icon { font-size: 3rem; animation: rotatehint 1.8s ease-in-out infinite; }
  #rotate-overlay p { font-size: 1rem; line-height: 1.45; color: var(--hint); }
}
@keyframes rotatehint { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-88deg); } }

/* «Пропустить»/«Брака нет» в мастере — лёгкая центрированная ссылка с отступом,
   чтобы не сливалась с полем ввода и кнопками */
.btn-skip {
  display: block;
  width: auto;
  margin: 18px auto 6px;
  padding: 6px 14px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--link);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.btn-skip:active { opacity: 0.6; }

/* Воздух между элементами шага мастера (без фанатизма) */
.wizard-body > * { margin-bottom: 14px; }
.wizard-body > *:last-child { margin-bottom: 0; }

/* Нативный выбор файла — под тему (вместо белой кнопки «Выберите файл») */
.form-input[type="file"] { padding: 8px 10px; line-height: 1.7; }
.form-input[type="file"]::file-selector-button {
  background: var(--btn);
  color: var(--btn-text);
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  margin-right: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.form-input[type="file"]::-webkit-file-upload-button {
  background: var(--btn);
  color: var(--btn-text);
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  margin-right: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

/* ─── Статистика оператора: герой с цветом по качеству ─── */
.stat-hero { border-radius: 18px; padding: 18px; color: #fff; margin-bottom: 12px; }
.stat-hero.good { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35); }
.stat-hero.warn { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35); }
.stat-hero.bad  { background: linear-gradient(135deg, #dc2626, #ef4444); box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35); }
.stat-hero .lbl { font-size: 0.82rem; opacity: 0.92; }
.stat-hero .big { font-size: 2.8rem; font-weight: 800; line-height: 1; margin: 4px 0 10px; }
.yield-row { font-size: 0.92rem; margin-bottom: 8px; opacity: 0.97; }
.yield-bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.yield-bar > i { display: block; height: 100%; background: #fff; border-radius: 6px; transition: width 0.4s ease; }
.stat-value.trend-up { color: var(--danger); }
.stat-value.trend-down { color: var(--success); }
.stat-motiv { text-align: center; font-size: 0.98rem; font-weight: 500; margin-top: 14px; color: var(--text); }

/* Чекбоксы получателей (сообщения ОТК) — крупные строки, тап по всей строке */
.check-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; max-height: 44vh; overflow-y: auto; }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; background: var(--secondary); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: 0.95rem; color: var(--text); }
.check-row input { width: 20px; height: 20px; accent-color: var(--btn); flex-shrink: 0; }
.check-row.master { font-weight: 600; }
.check-row:active { background: var(--border); }

/* ─── Сетка иконок-карточек (меню суперадмина) ─── */
.icon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.icon-card {
  background: var(--secondary);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
}
.icon-card:active { filter: brightness(0.95); }
.icon-card .ic { font-size: 1.8rem; line-height: 1; }
.icon-card .lbl { font-size: 0.82rem; font-weight: 500; line-height: 1.2; }
.icon-card.danger { border-color: var(--danger); }
.icon-card.danger .lbl { color: var(--danger); }
