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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
  color: #1a1a1a;
  background: #f5f5f3;
  min-height: 100vh;
}

/* ── LOGIN ─────────────────────────────────────── */
.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 2rem;
}
.login-card {
  background: #fff;
  border: 1px solid #e5e5e2;
  border-radius: 12px;
  padding: 2rem;
  width: 100%; max-width: 360px;
}
.login-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.login-sub   { font-size: 12px; color: #888; margin-bottom: 1.5rem; }

/* ── FORM ELEMENTS ─────────────────────────────── */
.fg { margin-bottom: 12px; }
.fg label { display: block; font-size: 11px; color: #666; margin-bottom: 4px; font-weight: 500; }

input[type=text], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 7px 10px;
  border: 1px solid #d8d8d5; border-radius: 6px;
  font-size: 13px; font-family: inherit; color: #1a1a1a;
  background: #fff; outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: #888; }

/* Ячейки таблицы — без "окошек": инпут выглядит как обычная ячейка,
   рамка/фон появляются только при фокусе для редактирования */
input[type=number].ci {
  width: 100%; padding: 6px 4px; font-size: 12px;
  border: 1px solid transparent; border-radius: 4px;
  background: transparent; text-align: left;
}
input[type=number].ci:hover {
  background: #fafaf8;
}
input[type=number].ci:focus {
  border-color: #c9c9c5; background: #fff;
}
td:has(> input.ci) { padding: 0 2px; }

.btn-main {
  width: 100%; padding: 9px;
  background: #1a1a1a; color: #fff;
  border: none; border-radius: 7px;
  font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit;
}
.btn-main:hover { background: #333; }

.btn-sm {
  padding: 5px 11px;
  border: 1px solid #d8d8d5; border-radius: 6px;
  background: #fff; font-size: 12px; cursor: pointer;
  color: #1a1a1a; font-family: inherit;
  white-space: nowrap;
}
.btn-sm:hover { background: #f5f5f3; }
.btn-sm.danger { color: #c0392b; border-color: #f5c6c2; }
.btn-sm.danger:hover { background: #fff5f5; }
.btn-sm.primary { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.btn-sm.primary:hover { background: #333; }

.err { color: #c0392b; font-size: 12px; margin-top: 8px; min-height: 18px; }

/* ── TOPBAR ─────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: #fff; border-bottom: 1px solid #e5e5e2;
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 600; font-size: 15px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.t-name  { font-size: 13px; color: #555; }
.save-status { font-size: 11px; padding: 3px 9px; border-radius: 20px; }
.save-status.saving { color: #888; }
.save-status.saved  { color: #1d7a4a; background: #f0f8ee; }
.save-status.error  { color: #c0392b; background: #fff5f5; font-weight: 500; }
.role-badge {
  font-size: 10px; padding: 2px 8px;
  border-radius: 20px; font-weight: 500;
  background: #e8f4fd; color: #1a6fa8;
}
.role-badge.lead { background: #f0f8ee; color: #2d7a22; }
.role-badge.pm { background: #eef0fb; color: #3a3f9e; }
.role-badge.client { background: #fdf3e8; color: #a8631a; }

/* ── TABS ───────────────────────────────────────── */
.tabs {
  display: flex; overflow-x: auto;
  background: #fff; border-bottom: 1px solid #e5e5e2;
  padding: 0 16px;
}
.tab {
  padding: 10px 16px; font-size: 12px; cursor: pointer;
  border-bottom: 2px solid transparent;
  color: #888; white-space: nowrap; flex-shrink: 0;
  transition: color .15s;
}
.tab:hover { color: #333; }
.tab.active { color: #1a1a1a; border-bottom-color: #1a1a1a; font-weight: 500; }

/* ── CONTENT ────────────────────────────────────── */
.content { padding: 16px; max-width: 1400px; }

/* ── STAT CARDS ─────────────────────────────────── */
.stats-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.sc {
  background: #fff; border: 1px solid #e5e5e2; border-radius: 8px;
  padding: 10px 14px; min-width: 120px;
}
.sc-label { font-size: 10px; color: #888; margin-bottom: 3px; font-weight: 500; text-transform: uppercase; letter-spacing: .3px; }
.sc-val   { font-size: 22px; font-weight: 600; }
.sc-val.good { color: #1d7a4a; }
.sc-val.warn { color: #b07d10; }

/* ── TABLES ─────────────────────────────────────── */
.tbl-outer {
  overflow-x: auto;
  border: 1px solid #e5e5e2; border-radius: 8px;
  background: #fff; margin-bottom: 20px;
}
table { border-collapse: collapse; font-size: 12px; width: 100%; }
th {
  background: #fafaf8; padding: 8px 10px;
  text-align: left; font-weight: 500; font-size: 11px; color: #666;
  border-bottom: 1px solid #e5e5e2; white-space: nowrap;
}
td {
  padding: 6px 10px; border-bottom: 1px solid #f0f0ee;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafaf8; }

.metric-label { color: #555; min-width: 175px; }
.bold-metric  { font-weight: 600; color: #1a1a1a; }
.computed-cell { color: #777; }
.total-cell   { font-weight: 600; background: #fafaf8 !important; }
.total-row td { font-weight: 600; background: #fafaf8; }

/* ── PROJECT GROUP ──────────────────────────────── */
.project-group { margin-bottom: 24px; }
.project-name-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  background: #f5f5f3; border: 1px solid #e5e5e2;
  border-radius: 8px 8px 0 0; border-bottom: none;
}
.project-name  { font-weight: 600; font-size: 13px; }
.project-kpis  { font-size: 11px; color: #666; display: flex; gap: 12px; }
.project-kpis span { white-space: nowrap; }
.project-actions { display: flex; gap: 6px; }

/* ── DATE PICKER ROW ────────────────────────────── */
.date-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.date-row label { font-size: 12px; color: #666; }
.date-row input[type=date] { width: auto; font-size: 12px; }

/* ── BACK LINK ──────────────────────────────────── */
.link-back {
  font-size: 12px; color: #888; cursor: pointer;
}
.link-back:hover { color: #333; }

/* ── SECTION HEADER ─────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title { font-size: 15px; font-weight: 600; }

/* ── USER LIST ──────────────────────────────────── */
.user-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: #fff;
  border: 1px solid #e5e5e2; border-radius: 7px; margin-bottom: 6px;
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #e8f4fd; color: #1a6fa8;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.user-avatar.lead { background: #f0f8ee; color: #2d7a22; }
.user-info { flex: 1; }
.user-name  { font-weight: 500; font-size: 13px; }
.user-login { font-size: 11px; color: #888; }
.user-actions { display: flex; gap: 6px; }

/* ── EMPLOYEE CARD (Сотрудники) ─────────────────── */
.user-card { flex-direction: column; align-items: stretch; gap: 0; }
.user-card-head { display: flex; align-items: center; gap: 10px; }
.user-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cat-select {
  font-size: 12px; padding: 5px 8px; border: 1px solid #d8d8d4;
  border-radius: 6px; background: #fff; color: #333; cursor: pointer; max-width: 190px;
}
.cat-select:hover { border-color: #bdbdb8; }
.cat-static {
  font-size: 12px; color: #555; background: #f2f6f0;
  border: 1px solid #dfe8db; border-radius: 6px; padding: 4px 9px; font-weight: 500;
}
.user-projects {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed #ececea;
  display: flex; flex-direction: column; gap: 5px;
}
.up-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 4px 8px; background: #faf9f7; border: 1px solid #eee; border-radius: 6px;
}
.up-name { font-size: 12.5px; color: #333; }

/* ── MODAL ──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #fff; border-radius: 12px;
  padding: 1.5rem; width: 100%; max-width: 400px;
  max-height: 90vh; overflow-y: auto;
}
.modal-box.modal-wide { max-width: 620px; }
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 1rem; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 1rem; }

/* ── EMPTY STATE ────────────────────────────────── */
.empty-state {
  padding: 2rem; text-align: center; color: #888; font-size: 13px;
}

/* ── OVERVIEW SPEC ROW ──────────────────────────── */
.spec-group-row td { font-weight: 600; background: #fafaf8; }
.proj-sub-row td:first-child { padding-left: 24px; color: #555; }
.proj-link { cursor: pointer; color: #1a6fa8; }
.proj-link:hover { text-decoration: underline; }
.vat3-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #555; cursor: pointer; margin-left: 10px; white-space: nowrap; }
.vat3-toggle input { cursor: pointer; }

/* ── PROJECT INFO ───────────────────────────────────────── */
.project-info { margin: 8px 0 14px; border: 1px solid #eee; border-radius: 8px; background: #fbfbf9; }
.project-info summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 13px; color: #333; user-select: none; }
.project-info summary:hover { background: #f5f5f2; border-radius: 8px; }
.project-info[open] summary { border-bottom: 1px solid #eee; border-radius: 8px 8px 0 0; }
.project-info-body { padding: 12px 14px; font-size: 13px; color: #444; line-height: 1.5; }
textarea { width: 100%; border: 1px solid #d8d8d4; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; box-sizing: border-box; resize: vertical; }
textarea:focus { outline: none; border-color: #1a6fa8; }

/* ── TASKS ──────────────────────────────────────────────── */
.task-group-label { font-size: 11px; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; margin: 8px 0 6px; }
.task-card { border: 1px solid #eee; border-radius: 8px; background: #fff; margin-bottom: 8px; }
.task-main { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; }
.task-check input { width: 17px; height: 17px; cursor: pointer; margin-top: 1px; }
.task-body { flex: 1; min-width: 0; }
.task-title { font-size: 14px; color: #222; margin-bottom: 4px; white-space: pre-wrap; }
.task-meta { font-size: 12px; color: #888; }
.task-done { opacity: .6; }
.task-done .task-title { text-decoration: line-through; }
.task-overdue { color: #c0392b; font-weight: 600; }
.task-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.task-open-link { cursor: pointer; }
.task-open-link:hover { color: #1a6fa8; text-decoration: underline; }
.task-detail-text { font-size: 15px; color: #222; line-height: 1.5; white-space: pre-wrap; }
.task-response-view { background: #f7faf5; border: 1px solid #e8ece6; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #333; line-height: 1.5; }

/* ── PLAN PANEL ─────────────────────────────────────────── */
.plan-panel { border: 1px solid #e8ece6; background: #f7faf5; border-radius: 8px; padding: 12px 14px; margin: 8px 0 14px; }
.plan-title { font-weight: 600; font-size: 13px; color: #333; margin-bottom: 8px; }
.plan-hint { font-weight: 400; color: #999; font-size: 11px; }
.plan-grid { display: grid; grid-template-columns: auto auto auto auto; gap: 8px 30px; align-items: center; justify-content: start; font-size: 13px; color: #444; }
.plan-label { font-weight: 600; color: #555; }
.plan-cell { white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.plan-k { color: #6b7280; }
.plan-v { display: inline-flex; align-items: center; gap: 5px; }
.plan-pct { font-weight: 600; color: #a8631a; }
.plan-pct.good { color: #2d7a22; }
.plan-cur { margin-left: 5px; }
/* Ширину задаём вместе с типом инпута — иначе общее правило
   input[type=number]{width:100%} перебивает по приоритету и поле растягивается */
input[type=number].plan-input {
  width: 110px; flex: none; box-sizing: border-box;
  border: 1px solid #d8d8d4; border-radius: 6px;
  padding: 4px 8px; font: inherit; font-size: 13px;
}
input[type=number].plan-input:focus { outline: none; border-color: #1a6fa8; }
/* ── АДАПТИВ ────────────────────────────────────────────────
   Планшет: панель «План» в две колонки.
   Телефон: всё в один столбец, значения выровнены по правому краю. */

@media (max-width: 900px) {
  .plan-grid { grid-template-columns: auto auto; gap: 8px 22px; }
}

@media (max-width: 700px) {
  .content { padding: 12px; }

  /* Шапка проекта: название сверху, кнопки — отдельной строкой, не наезжают */
  .section-header { flex-wrap: wrap; gap: 8px; align-items: flex-start; }
  .section-header > span:last-child { width: 100%; flex-wrap: wrap; }
  .section-title { font-size: 14px; line-height: 1.35; }

  /* Панель «План»: строки «подпись — значение» на всю ширину */
  .plan-panel { padding: 10px 12px; }
  .plan-grid { grid-template-columns: 1fr; gap: 0; }
  .plan-label {
    margin-top: 10px; padding-bottom: 4px;
    font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #6b7280;
    border-bottom: 1px solid #e3e8de;
  }
  .plan-grid > .plan-label:first-child { margin-top: 0; }
  .plan-cell {
    justify-content: space-between;
    gap: 10px; padding: 7px 0; border-bottom: 1px dashed #e8ece6;
  }
  .plan-cell:last-child { border-bottom: none; }
  .plan-v { justify-content: flex-end; }
  input[type=number].plan-input { width: 108px; text-align: right; }
  .plan-cur { margin-left: 0; }

  /* Период: не растягиваем поля дат на всю ширину */
  .date-row { gap: 6px; }
  .date-row input[type=date] { flex: 1 1 42%; min-width: 0; font-size: 12px; }

  /* Кнопки чуть компактнее, чтобы помещались в ряд */
  .btn-sm { padding: 6px 10px; font-size: 12px; }
}

@media (max-width: 600px) {
  .project-kpis { display: none; }
  .sc-val { font-size: 18px; }

  /* Верхняя панель: бренд не переносится, справа компактно */
  .topbar { padding: 8px 12px; gap: 8px; }
  .brand { font-size: 14px; white-space: nowrap; }
  .topbar-right { gap: 6px; }
  .t-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs { padding: 0 8px; }
  .tab { padding: 10px 12px; }

  /* Таблица прокручивается вбок, колонка «Метрика» остаётся на месте */
  .tbl-outer { border-radius: 8px; -webkit-overflow-scrolling: touch; }
  table { font-size: 11.5px; }
  th, td { padding: 6px 8px; }

  /* На узком экране 180px под названия метрик — слишком много.
     min-width задан в разметке, поэтому здесь перебиваем принудительно. */
  th[style*="sticky"] { min-width: 124px !important; }
  .metric-label, .bold-metric {
    min-width: 124px;
    position: sticky; left: 0; z-index: 1;
    background: #fff; border-right: 1px solid #eceee8;
  }
  th[style*="sticky"] { border-right: 1px solid #e5e5e2; }

  /* SMM: под названия показателей на узком экране хватает 150px,
     иначе закреплённая колонка съедает пол-экрана и цифры не видно. */
  .smm-table td.smm-name, .smm-table th.smm-name { min-width: 150px; white-space: normal; line-height: 1.25; }
  .smm-table th, .smm-table td { padding: 6px 8px; font-size: 12px; }
  input[type=number].smm-goal, input[type=number].smm-fact { width: 68px; }
  .smm-content-table td.smm-cap { max-width: 150px; }
}

/* Валюта проекта */
.cur-badge {
  display: inline-block; font-size: 10px; padding: 1px 6px; margin-left: 6px;
  border-radius: 20px; background: #eef0fb; color: #3a3f9e; font-weight: 600;
  vertical-align: middle;
}

/* ── ИМПОРТ ─────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed #d8d8d5; border-radius: 10px;
  padding: 26px; text-align: center; cursor: pointer;
  color: #888; font-size: 13px; background: #fafaf8;
}
.drop-zone:hover, .drop-zone.over { border-color: #1a6fa8; color: #1a6fa8; background: #f5faff; }
.map-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.map-row .map-h { flex: 1; font-size: 12px; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-row select { flex: 1; }
.imp-note { font-size: 12px; color: #2d7a22; margin-bottom: 8px; }
.imp-prev { width: 100%; font-size: 12px; border-collapse: collapse; }
.imp-prev td { padding: 3px 8px; border-bottom: 1px solid #f0f0ee; }

/* Вкладка «Настройки» + матрица прав */
.settings-card { background:#fff; border:1px solid #ece9f0; border-radius:12px; padding:16px 18px; margin-bottom:14px; max-width:640px; }
.settings-h { font-weight:600; font-size:15px; margin-bottom:6px; }
.metrics-add { display:flex; gap:8px; }
.metrics-add input { flex:1; }
.perms-table { border-collapse: collapse; width: 100%; }
.perms-table th, .perms-table td { border-bottom: 1px solid #f0eef2; padding: 5px 8px; }
.perms-table th { color: #666; font-weight: 600; }

/* Рекламные площадки */
.pf-chip { display:inline-block; font-size:10px; background:#eef0ff; color:#3a44b8; border-radius:6px; padding:1px 6px; margin-left:4px; vertical-align:middle; }

/* SMM воронка */
.smm-badge { display:inline-block; font-size:11px; background:#e7f0ff; color:#2f6bd8; border-radius:6px; padding:2px 8px; vertical-align:middle; }
.smm-table { border-collapse:collapse; width:100%; }
.smm-table th, .smm-table td { padding:7px 10px; font-size:13px; border-bottom:1px solid #f0eef2; white-space:nowrap; }
.smm-table thead th { background:#fafaf8; color:#666; font-size:12px; }
.smm-table tr.smm-section td { background:#f3f2ef; font-weight:600; font-size:12px; color:#555; text-transform:uppercase; letter-spacing:.03em; }
.smm-table tr.smm-calc td { background:#faf9fc; color:#555; font-style:italic; }
.smm-table td.smm-name, .smm-table th.smm-name { text-align:left; width:100%; min-width:220px; }

/* Названия показателей закреплены при горизонтальной прокрутке.
   Фон обязателен и задаётся под каждый тип строки, иначе содержимое
   таблицы просвечивает сквозь закреплённую колонку при скролле. */
.smm-table th:first-child, .smm-table td:first-child {
  position: sticky; left: 0; z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 #ececea;
}
.smm-table thead th:first-child { background:#fafaf8; z-index:3; }
.smm-table tr.smm-section td:first-child { background:#f3f2ef; }
.smm-table tr.smm-calc td:first-child { background:#faf9fc; }
/* Специфичность важна: глобальный input[type=number]{width:100%} перебивает класс */
input[type=number].smm-goal, input[type=number].smm-fact {
  width: 84px; border: 1px solid #ddd; border-radius: 5px;
  padding: 3px 6px; font-size: 13px; text-align: right;
}
input[type=number].smm-fact { border-color:#c9d6f0; }

/* Переключатель «Сводка / По контенту» в SMM-проекте */
.smm-switch { display:inline-flex; gap:6px; margin-left:12px; }
.smm-switch .btn-sm[disabled] { opacity:1; cursor:default; }
/* Таблица по единицам контента */
.smm-content-table td.smm-cap { max-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
input[type=text].smm-tag { width:110px; border:1px solid #ddd; border-radius:5px; padding:3px 6px; font-size:12px; }
input[type=number].smm-lead { width:56px; border:1px solid #c9d6f0; border-radius:5px; padding:3px 6px; font-size:12px; text-align:right; }
select.smm-author { width:120px; border:1px solid #ddd; border-radius:5px; padding:3px 6px; font-size:12px; }
.smm-thumb { width:34px; height:34px; object-fit:cover; border-radius:4px; flex:none; }
.smm-tags-line { font-size:11px; color:#9a9a9a; margin-top:2px; overflow:hidden; text-overflow:ellipsis; }
.smm-content-table td.smm-geo { max-width:110px; overflow:hidden; text-overflow:ellipsis; font-size:12px; color:#777; }


/* Посевы Telegram */
.seed-cards { display:flex; gap:12px; flex-wrap:wrap; margin-top:8px; }
.seed-card { background:#fff; border:1px solid #ececec; border-radius:12px; padding:12px 16px; min-width:150px; }
.seed-card .seed-k { font-size:12px; color:#888; }
.seed-card .seed-v { font-size:20px; font-weight:700; margin-top:2px; }
.seed-table { border-collapse:collapse; width:100%; }
.seed-table th, .seed-table td { padding:6px 8px; font-size:13px; border-bottom:1px solid #f0eef2; }
.seed-table thead th { background:#fafaf8; color:#666; font-size:12px; text-align:left; }
.seed-inp { border:1px solid #ddd; border-radius:6px; padding:4px 7px; font-size:13px; width:110px; }
.seed-inp.seed-wide { width:180px; }
.seed-inp.seed-num { width:80px; text-align:right; }

/* ── АДАПТИВ: Управление, посевы, SMM ─────────────────────── */
@media (max-width: 700px) {
  /* Карточки проектов в «Управлении»: кнопки не вылезают за экран,
     а переносятся строкой под названием; цифры — своей строкой */
  .user-item { flex-wrap: wrap; row-gap: 6px; }
  .user-item > span[style*="flex:1"] { flex: 1 1 100%; }
  .user-item > span[style*="font-size:11px"] {
    flex: 1 1 100%; margin-right: 0 !important;
    flex-wrap: wrap; row-gap: 2px;
  }
  .user-item .btn-sm { padding: 6px 9px; font-size: 11.5px; }

  /* Карточка сотрудника: управление в столбик, селекты на всю ширину */
  .user-card-head { flex-wrap: wrap; }
  .user-controls { flex-wrap: wrap; row-gap: 6px; }
  .user-controls .cat-select { max-width: 46vw; }

  /* KPI-карточки посевов и SMM: по две в ряд */
  .seed-cards { gap: 8px; }
  .seed-card { flex: 1 1 42%; min-width: 0; padding: 10px 12px; }
  .seed-card .seed-v { font-size: 17px; }

  /* Журнал посевов: таблица скроллится вбок, поля компактнее */
  .seed-table th, .seed-table td { padding: 5px 6px; font-size: 12px; white-space: nowrap; }
  .seed-inp { width: 104px; font-size: 12px; }
  .seed-inp.seed-wide { width: 150px; }
  .seed-inp.seed-num { width: 64px; }

  /* SMM-воронка: колонка названия остаётся видимой при скролле */
  .smm-table td.smm-name {
    position: sticky; left: 0; background: #fff; z-index: 1;
    white-space: normal; min-width: 120px; border-right: 1px solid #eceee8;
  }
  .smm-table th, .smm-table td { padding: 6px 8px; font-size: 12px; }
  .smm-goal, .smm-fact { width: 72px; font-size: 12px; }
}
