/* Кто молодец — единый источник токенов. Импортируется лендингом и кабинетом.
   Значения перенесены дословно из дизайн-системы (Claude Design). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root{
  /* ЦВЕТ — светлая */
  --bg:#ffffff; --text:#1f2328; --muted:rgba(31,35,40,.6); --faint:rgba(31,35,40,.42);
  --border:rgba(0,0,0,.08); --accent:#3a8dff; --accent-ink:#ffffff; --accent-soft:rgba(58,141,255,.1);
  --success:#1f9d55; --success-soft:rgba(31,157,85,.12); --danger:#e5484d; --danger-soft:rgba(229,72,77,.12);
  --warn:#b5820b; --warn-soft:rgba(181,130,11,.13); --card:#ffffff; --surface:#f6f7f9; --scrim:rgba(20,22,26,.28);
  --text-body:var(--text); --text-muted:var(--muted); --text-faint:var(--faint);
  --surface-page:var(--bg); --surface-card:var(--card); --surface-sunken:var(--surface);
  --border-hair:var(--border); --link:var(--accent);
  /* ТИПОГРАФИКА */
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'JetBrains Mono',ui-monospace,Menlo,'SF Mono',monospace;
  --font-ui:var(--sans); --font-num:var(--mono);
  --w-regular:400; --w-medium:500; --w-semibold:600; --w-bold:700; --w-black:800;
  --fz-hero:52px; --fz-h1:34px; --fz-h2:26px; --fz-title:20px; --fz-lead:19px; --fz-body-lg:17px;
  --fz-body:15px; --fz-ui:14px; --fz-sm:13px; --fz-xs:12px; --fz-micro:11px;
  --fz-num-xl:44px; --fz-num-lg:34px; --fz-num-md:24px; --fz-num-sm:20px;
  --lh-tight:1.1; --lh-heading:1.15; --lh-body:1.5; --ls-hero:-.02em; --ls-mono:.06em;
  /* ГЕОМЕТРИЯ */
  --r-pill:18px; --r-pill-sm:16px; --r-chip:12px; --r-card:8px; --r-card-lg:12px; --r-phone:24px;
  --h-btn:40px; --h-btn-sm:36px; --h-btn-lg:44px; --h-btn-hero:52px; --h-chip:24px; --h-badge:32px; --h-input:38px;
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-7:28px; --sp-8:32px; --sp-card:24px;
  --space-1:var(--sp-1); --space-2:var(--sp-2); --space-3:var(--sp-3); --space-4:var(--sp-4);
  --space-5:var(--sp-5); --space-6:var(--sp-6); --space-7:var(--sp-7); --space-8:var(--sp-8);
  --bw-hair:1px; --bw-emph:1.5px;
  --elev:0 1px 2px rgba(0,0,0,.05); --elev-modal:0 20px 60px rgba(0,0,0,.28); --elev-float:0 12px 40px rgba(0,0,0,.14);
  --focus-ring:2px solid var(--accent); --focus-offset:2px; --dur:.15s; --ease:ease; --hover-scale:1.03;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#1a1d22; --text:#f1f3f5; --muted:rgba(241,243,245,.6); --faint:rgba(241,243,245,.42);
    --border:rgba(255,255,255,.12); --accent:#5ba3ff; --accent-ink:#0c1626; --accent-soft:rgba(91,163,255,.16);
    --success:#35c07b; --success-soft:rgba(53,192,123,.16); --danger:#ff6369; --danger-soft:rgba(255,99,105,.16);
    --warn:#e0b13c; --warn-soft:rgba(224,177,60,.16); --card:#21252b; --surface:#23272e; --scrim:rgba(0,0,0,.5);
    --elev:0 1px 2px rgba(0,0,0,.35); --elev-float:0 12px 40px rgba(0,0,0,.3);
  }
}
[data-theme="dark"]{
  --bg:#1a1d22; --text:#f1f3f5; --muted:rgba(241,243,245,.6); --faint:rgba(241,243,245,.42);
  --border:rgba(255,255,255,.12); --accent:#5ba3ff; --accent-ink:#0c1626; --accent-soft:rgba(91,163,255,.16);
  --success:#35c07b; --success-soft:rgba(53,192,123,.16); --danger:#ff6369; --danger-soft:rgba(255,99,105,.16);
  --warn:#e0b13c; --warn-soft:rgba(224,177,60,.16); --card:#21252b; --surface:#23272e; --scrim:rgba(0,0,0,.5);
  --elev:0 1px 2px rgba(0,0,0,.35); --elev-float:0 12px 40px rgba(0,0,0,.3);
}

/* ==== base ==== */
* { box-sizing: border-box; }
body { margin: 0; font: var(--fz-body)/1.5 var(--font-ui); color: var(--text); background: var(--bg); }
.wrap { max-width: 1120px; margin: 0 auto; padding: var(--sp-8) var(--sp-6); }

/* ==== Button ==== */
.btn { display: inline-flex; align-items: center; gap: var(--sp-2); height: var(--h-btn); padding: 0 var(--sp-5);
  border-radius: var(--r-pill); border: var(--bw-hair) solid transparent; font: var(--w-semibold) var(--fz-ui) var(--font-ui);
  cursor: pointer; transition: transform var(--dur) var(--ease); }
.btn:hover { transform: scale(var(--hover-scale)); }
.btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger-soft); }
.btn.danger:hover { background: var(--danger-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ==== Card ==== */
.card { background: var(--card); border: var(--bw-hair) solid var(--border); border-radius: var(--r-card);
  padding: var(--sp-card); box-shadow: var(--elev); }

/* ==== StatusChip ==== */
.chip { display: inline-flex; align-items: center; gap: var(--sp-2); height: var(--h-chip); padding: 0 var(--sp-3);
  border-radius: var(--r-chip); font: var(--w-medium) var(--fz-sm) var(--font-ui); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.chip.done { background: var(--success-soft); color: var(--success); }
.chip.done .dot { background: var(--success); }
.chip.error { background: var(--danger-soft); color: var(--danger); }
.chip.error .dot { background: var(--danger); }
.chip.running { background: var(--accent-soft); color: var(--accent); }

/* ==== TariffBadge ==== */
.tariff-badge { display: inline-flex; align-items: center; gap: var(--sp-2); height: var(--h-badge);
  padding: 0 var(--sp-4); border-radius: var(--r-pill); border: var(--bw-hair) solid var(--border); cursor: pointer; }
.tariff-badge .n { font: var(--w-semibold) var(--fz-body) var(--font-num); }
.tariff-badge.zero { background: var(--accent-soft); border-color: var(--accent); }

/* ==== StatTile ==== */
.stat-tile { display: flex; flex-direction: column; gap: var(--sp-1); }
.stat-tile .num { font: var(--w-semibold) var(--fz-num-lg) var(--font-num); color: var(--accent); }
.stat-tile .label { font-size: var(--fz-sm); color: var(--muted); }

/* ==== Notice / EmptyState / InlineNudge ==== */
.notice { border-radius: var(--r-card); padding: var(--sp-3) var(--sp-4); font-size: var(--fz-sm); }
.notice.err { background: var(--danger-soft); color: var(--danger); }
.notice.ok { background: var(--success-soft); color: var(--success); }
.empty-state { text-align: center; color: var(--muted); padding: var(--sp-8); }
.inline-nudge { font-size: var(--fz-sm); color: var(--muted); display: inline-flex; align-items: center; gap: var(--sp-2); }
.inline-nudge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ==== rows (FileRow/CallRow/SummaryRow) ==== */
.file-row, .call-row, .summary-row { display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) 0; border-bottom: var(--bw-hair) solid var(--border); }
.file-row .err { color: var(--danger); font-size: var(--fz-sm); }
.col-num { font-family: var(--font-num); }

/* ==== Auth (login/register — Ф4) ==== */
.auth-shell { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center;
  padding: var(--sp-8) var(--sp-5); }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-card-lg); box-shadow: var(--elev); padding: var(--sp-8) var(--sp-7); }
.auth-back { display: inline-flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-5);
  font-size: var(--fz-sm); color: var(--muted); text-decoration: none; }
.auth-back:hover { color: var(--accent); }

.auth-form h1 { font-size: var(--fz-h2); font-weight: var(--w-black); margin: 0 0 6px; }
.auth-sub { font-size: var(--fz-body); color: var(--muted); margin: 0 0 var(--sp-7); }

.auth-tabs { display: flex; gap: 4px; background: var(--surface); border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-pill); padding: 4px; margin-bottom: var(--sp-7); }
.auth-tab { flex: 1; height: var(--h-btn-sm); padding: 0 var(--sp-4); font: var(--w-semibold) var(--fz-ui) var(--font-ui);
  color: var(--muted); text-align: center; border-radius: var(--r-pill); cursor: pointer; background: transparent;
  border: 0; transition: all var(--dur) var(--ease); }
.auth-tab:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.auth-tab.is-active { background: var(--card); color: var(--text); box-shadow: var(--elev); }

.field { margin-bottom: var(--sp-5); }
.field label { display: block; font: var(--w-semibold) var(--fz-sm) var(--font-ui); margin-bottom: var(--sp-2);
  color: var(--text); }
.field input { width: 100%; height: var(--h-input); padding: 0 var(--sp-4); font-size: var(--fz-body);
  border: var(--bw-emph) solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text);
  font-family: inherit; transition: border-color var(--dur) var(--ease); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.field-hint { font-size: var(--fz-xs); color: var(--muted); margin-top: var(--sp-1); }
.field-optional { font-weight: var(--w-regular); color: var(--muted); font-size: 0.92em; }
.field-error { font-size: var(--fz-xs); color: var(--danger); margin-top: var(--sp-1); display: none; }
.field.has-error input { border-color: var(--danger); }
.field.has-error .field-error { display: block; }

.field-consent label { display: flex; align-items: flex-start; gap: var(--sp-3); cursor: pointer;
  font-size: var(--fz-sm); line-height: var(--lh-body); margin-bottom: 0; }
.field-consent input[type="checkbox"] { width: 16px; height: 16px; padding: 0; margin: 3px 0 0; flex: none;
  border-radius: 4px; }
.field-consent a { color: var(--accent); }

.auth-submit { width: 100%; margin-top: var(--sp-2); }

.auth-error-banner { padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); background: var(--danger-soft);
  border: var(--bw-hair) solid var(--danger); border-radius: var(--r-card); color: var(--danger); font-size: var(--fz-sm); }

.auth-foot { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: var(--bw-hair) solid var(--border);
  text-align: center; font-size: var(--fz-sm); color: var(--muted); }
.auth-foot a { color: var(--accent); text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* ==== Cabinet header (Ф5) — LogoLink/TariffBadge/NavMenu ==== */
.km-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); padding: var(--sp-4) var(--sp-6); background: var(--bg);
  border-bottom: var(--bw-hair) solid var(--border); flex-wrap: wrap; }
.km-logo-link { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none;
  color: var(--text); flex-shrink: 0; }
.km-logo-mark { display: block; border-radius: var(--r-chip); }
.km-logo-text { font: var(--w-bold) var(--fz-title) var(--font-ui); color: var(--text); }
.km-logo-link:hover .km-logo-text { color: var(--accent); }

.user-bar { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.km-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.km-nav-item { display: inline-flex; align-items: center; gap: var(--sp-2); height: var(--h-btn-sm);
  padding: 0 var(--sp-3); border: 0; border-radius: var(--r-card); background: transparent; color: var(--muted);
  font: var(--w-medium) var(--fz-sm) var(--font-ui); cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.km-nav-item:hover { color: var(--accent); background: var(--surface); }
.km-nav-item:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.km-nav-item .icon { display: inline-flex; flex-shrink: 0; }
.km-nav-logout { color: var(--faint); }

.user-pill { font-size: var(--fz-sm); color: var(--accent); font-weight: var(--w-medium); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* ==== Cabinet screens (Ф5) — UploadZone/ReportsTable containers, section shells, quota overlay ==== */
.main-view { max-width: 720px; margin: 0 auto; padding: var(--sp-8) var(--sp-6); display: flex;
  flex-direction: column; gap: var(--sp-6); align-items: center; text-align: center; }
.upload-zone-title { font: var(--w-black) var(--fz-h1) var(--font-ui); margin: 0; }
.upload-zone-subtitle { color: var(--muted); margin: 0 0 var(--sp-2); }
.upload-zone .card { width: 100%; max-width: 480px; }
.reports-container { width: 100%; max-width: 640px; text-align: left; }
.reports-container h2 { font: var(--w-bold) var(--fz-h2) var(--font-ui); margin: 0 0 var(--sp-4); }

.section-shell { max-width: 720px; margin: 0 auto; padding: var(--sp-8) var(--sp-6); display: flex;
  flex-direction: column; gap: var(--sp-4); align-items: flex-start; }
.section-shell h2 { margin: 0; font: var(--w-bold) var(--fz-h2) var(--font-ui); }

.quota-overlay { position: fixed; inset: 0; background: var(--scrim); display: flex; align-items: center;
  justify-content: center; z-index: 50; padding: var(--sp-6); }
.quota-overlay[hidden] { display: none; }
.quota-overlay .card { max-width: 420px; text-align: center; position: relative; }
.quota-overlay-close { position: absolute; top: var(--sp-2); right: var(--sp-2); background: transparent;
  border: none; color: var(--muted); cursor: pointer; padding: var(--sp-1); border-radius: var(--r-chip); }
.quota-overlay-close:hover { background: var(--accent-soft); color: var(--accent); }
.quota-overlay-close:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.quota-overlay-message { font-size: var(--fz-body); color: var(--text); line-height: var(--lh-body);
  margin: var(--sp-4) 0 var(--sp-5); }

/* ==== UploadZone (Ф6a-2 Task 3) — drop-zone, queue, status timer, result banners ==== */
.upload-dropzone { display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--sp-2); padding: var(--sp-8) var(--sp-4); background: var(--surface);
  border: var(--bw-hair) solid var(--border); border-radius: var(--r-card);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.upload-dropzone.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.upload-dropzone .icon { color: var(--accent); }
/* A11y utility: hide an element visually but keep it focusable/clickable.
   upload_zone.dart puts this on the native <input type=file>; the styled
   <label class="upload-pick-btn"> triggers it. Without this rule the raw
   "Choose Files" control renders on the newcomer screen. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.upload-dropzone-text { font-size: var(--fz-body); font-weight: var(--w-medium); color: var(--text); margin: 0; }
.upload-pick-btn { display: inline-flex; align-items: center; justify-content: center;
  margin: var(--sp-1) 0 0; padding: 0 var(--sp-5); height: var(--h-btn-sm); background: var(--card);
  color: var(--text); border: var(--bw-hair) solid var(--border); border-radius: var(--r-pill-sm);
  font-size: var(--fz-sm); font-weight: var(--w-medium); cursor: pointer; }
.upload-pick-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.upload-formats-hint { font-size: var(--fz-xs); color: var(--faint); margin: var(--sp-1) 0 0; }

.queue-summary { margin-top: var(--sp-2); font-size: var(--fz-sm); color: var(--muted); font-weight: var(--w-medium); }
.queue-list { list-style: none; margin: var(--sp-2) 0 0; padding: 0; max-height: 220px; overflow-y: auto;
  border: var(--bw-hair) solid var(--border); border-radius: var(--r-card); }
.queue-row { display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-3); }
.queue-row .file-row { flex: 1; min-width: 0; }
.queue-remove { flex-shrink: 0; width: 22px; height: 22px; padding: 0; background: transparent;
  color: var(--faint); border: var(--bw-hair) solid var(--border); border-radius: 4px;
  font-size: var(--fz-ui); line-height: 1; cursor: pointer; }
.queue-remove:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }

.upload-card .btn { width: 100%; justify-content: center; margin-top: var(--sp-5); }

.status { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  text-align: center; padding: var(--sp-6) 0 var(--sp-1); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: upload-spin 0.8s linear infinite; }
@keyframes upload-spin { to { transform: rotate(360deg); } }
.status .elapsed { font-size: var(--fz-sm); color: var(--muted); }
.status .hint { font-size: var(--fz-xs); color: var(--faint); }

.upload-result { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.ok a { color: inherit; font-weight: var(--w-semibold); margin-left: var(--sp-2); text-decoration: underline; }

/* ==== ReportsTable (Ф6a-2 Task 4) — "Мои разборы": filters, table, foot, bulk-delete ==== */
.calls-list { width: 100%; margin-bottom: var(--sp-7); padding: var(--sp-4); background: var(--surface);
  border: var(--bw-hair) solid var(--border); border-radius: var(--r-card); }
.calls-list-head { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-3); flex-wrap: wrap; gap: var(--sp-3); }
.calls-list-head h2 { margin: 0; font-size: var(--fz-title); font-weight: var(--w-semibold); color: var(--text); }
.calls-filters { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.calls-filters input { padding: var(--sp-2) var(--sp-3); font-size: var(--fz-sm); border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-chip); max-width: 140px; background: var(--bg); color: var(--text); }
/* Property filter select (Ф6c-3 Task 3) — tokenized port of cabinet.css's
   `.property-filter` (originally scoped to the header/user-bar; relocated
   here into `.calls-filters` per the Jaspr component split, `reports_table.
   dart`'s file doc) — same compact sizing, distinct from `.calls-filters
   input` above only in that a native <select> needs no fixed max-width cap
   as aggressive (property names run longer than the agent-name filter). */
.property-filter { padding: var(--sp-2) var(--sp-3); font-size: var(--fz-sm); border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-chip); max-width: 220px; min-width: 0; background: var(--bg); color: var(--text); }

.calls-table-wrap { overflow-x: auto; }
.calls-table { width: 100%; border-collapse: collapse; font-size: var(--fz-sm); }
.calls-table th { text-align: left; padding: var(--sp-2); font-weight: var(--w-semibold); color: var(--muted);
  border-bottom: var(--bw-hair) solid var(--border); white-space: nowrap; }
.calls-table td { padding: var(--sp-2); border-bottom: var(--bw-hair) solid var(--border); vertical-align: middle; }
.calls-table tbody tr:hover { background: var(--card); }
.calls-table input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; margin: 0; }
.calls-table .col-agent-name { color: var(--text); font-weight: var(--w-medium); }
.calls-table .col-filename { color: var(--muted); font-size: var(--fz-xs); max-width: 120px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.calls-table .col-phone { font-size: var(--fz-sm); white-space: nowrap; color: var(--text); }
.calls-table .col-pdf .btn { padding: 0 var(--sp-3); height: 28px; font-size: var(--fz-xs); }

.calls-error-banner { text-align: center; padding: var(--sp-6); color: var(--danger); font-size: var(--fz-sm); }
.calls-error-banner .btn { margin-top: var(--sp-2); }

.calls-foot { display: flex; justify-content: space-between; align-items: center; margin-top: var(--sp-4);
  padding-top: var(--sp-4); border-top: var(--bw-hair) solid var(--border); gap: var(--sp-3); flex-wrap: wrap; }
.calls-summary-cta { display: flex; align-items: center; gap: var(--sp-3); }
.selection-count { font-size: var(--fz-sm); color: var(--muted); }
.calls-summary-warning { width: 100%; padding: var(--sp-2) var(--sp-3); background: var(--warn-soft); color: var(--warn);
  border: var(--bw-hair) solid var(--warn-soft); border-radius: var(--r-card); font-size: var(--fz-sm); }

.bulk-delete-confirm { margin-top: var(--sp-4); padding: var(--sp-4); background: var(--card);
  border: var(--bw-hair) solid var(--danger-soft); border-radius: var(--r-card); display: flex;
  flex-direction: column; gap: var(--sp-3); }
.bulk-delete-confirm-message { white-space: pre-line; font-size: var(--fz-sm); color: var(--text); line-height: var(--lh-body); }
.bulk-delete-confirm input { padding: var(--sp-2) var(--sp-3); border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-card); background: var(--bg); color: var(--text); font-size: var(--fz-body); }
.bulk-delete-confirm-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; }

/* CallCard stack on narrow screens — rows become bordered cards instead of a
   horizontally scrolled table (cabinet.css's `#callsList` mobile block,
   scoped here to `.calls-table` since this surface has no other table). */
@media (max-width: 640px) {
  .calls-table-wrap { overflow-x: visible; }
  .calls-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .calls-table, .calls-table tbody, .calls-table tr, .calls-table td { display: block; width: 100%; }
  .calls-table tr { border: var(--bw-hair) solid var(--border); border-radius: var(--r-card);
    margin-bottom: var(--sp-3); padding: var(--sp-3); background: var(--card); }
  .calls-table tbody tr:hover { background: var(--card); }
  .calls-table tr:last-child { margin-bottom: 0; }
  .calls-table td { border-bottom: none; padding: 2px 0; text-align: left; }
  .calls-table td:first-child { display: inline-block; width: auto; margin-bottom: var(--sp-1); }
  .calls-table td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 84px;
    font-size: var(--fz-xs); font-weight: var(--w-semibold); color: var(--muted); }
  .calls-table .col-filename, .calls-table .col-phone { max-width: none; white-space: normal; }
}

/* ==== SummaryBlock (Ф6a-2 Task 5) — "Сводный отчёт" generate + reports
   history. Reuses UploadZone's `.status`/`.spinner`/`.elapsed`/`.notice`
   (shared timer/banner look) and ReportsTable's `.calls-table`/
   `.calls-table-wrap`/`.calls-error-banner` (shared table look, incl. the
   mobile card stack — same `data-label` attributes on each cell). ==== */
.summary-block { width: 100%; margin-bottom: var(--sp-7); }
.summary-generate-row { display: flex; align-items: center; gap: var(--sp-3);
  flex-wrap: wrap; margin-bottom: var(--sp-4); }

.reports-list { padding: var(--sp-4); background: var(--surface);
  border: var(--bw-hair) solid var(--border); border-radius: var(--r-card); }
.reports-list-head { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-3); gap: var(--sp-3); flex-wrap: wrap; }
.reports-list-head h2 { margin: 0; font-size: var(--fz-title); font-weight: var(--w-semibold); color: var(--text); }

/* ==== Tariff view container (Ф6b Task 5) — the `/calls/tariff` case's
   shell wrapper: `PaymentReturnBanner`/`BillingPanel`/`AmbassadorBlock`/the
   back-link mount as plain siblings (not nested components), so ONE
   `.tariff-view` owns the 720px column + gutter that `.billing-panel`
   used to own itself — `.billing-panel` now nests inside it and yields
   its own centering/padding, so it lines up with its siblings instead of
   doubling the gutter. ==== */
.tariff-view { max-width: 720px; margin: 0 auto; padding: var(--sp-8) var(--sp-6); }
.tariff-view .status { padding: var(--sp-8) 0; }
.tariff-back { margin-top: var(--sp-6); }

/* ==== BillingPanel (Ф6b Task 3) — "/calls/tariff": StatTile "Доступно
   сейчас", TariffTable "Подписка"/"Пакеты", buy-pack price-card picker,
   billing banner. Ported verbatim from `frontend/public/calls/cabinet.css`
   (lines 363-421) — same class names, just re-homed under `.billing-panel`
   instead of `#billingPanel` (an ID selector there, a class here — this
   panel is conditionally mounted by the shell, not toggled via CSS
   [hidden]/is-visible, so no visibility-gating rule is needed). Nested
   inside `.tariff-view` (Task 5) — no max-width/margin/padding of its own
   so it doesn't double the wrapper's gutter. ==== */
.billing-panel { max-width: none; margin: 0; padding: 0; }
.tariff-page-title { font-size: var(--fz-h2); font-weight: var(--w-bold); color: var(--text);
  margin: 0 0 var(--sp-6); }

.billing-panel .tariff-block { margin-top: var(--sp-7); }
.billing-panel .tariff-block:first-of-type { margin-top: 0; }
.tariff-block-label { font-size: var(--fz-xs); font-weight: var(--w-semibold); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.4px; margin: 0 0 var(--sp-3); }

/* StatTile — boxed variant of the generic `.stat-tile` (primitives.dart's
   plain flex column, used as-is by the showcase page) scoped to this panel
   only, so the showcase keeps its plain look. */
.billing-panel .stat-tile { background: var(--surface); border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-card-lg); padding: var(--sp-5) var(--sp-6); }
.stat-tile-value { display: flex; align-items: baseline; gap: var(--sp-2); font-family: var(--font-num);
  font-size: var(--fz-num-lg); font-weight: var(--w-semibold); color: var(--accent); }
.stat-tile-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.stat-tile-caption { font-size: var(--fz-sm); color: var(--muted); margin-top: var(--sp-1); }

/* TariffTable — card wrapping "Подписка"/"Пакеты" rows. */
.tariff-table { background: var(--surface); border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-card-lg); padding: var(--sp-1) var(--sp-4); }
.billing-row { display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--sp-2) 0; font-size: var(--fz-ui); }
.billing-row .billing-label { color: var(--muted); }
.billing-row .billing-value { color: var(--text); font-weight: var(--w-semibold); }
.billing-empty-row { font-size: var(--fz-sm); color: var(--faint); padding: var(--sp-2) 0; }

.pack-item { font-size: var(--fz-sm); padding: var(--sp-2) 0; display: flex; justify-content: space-between; }
.pack-item.is-active { color: var(--text); }
.pack-item.is-depleted { color: var(--faint); }
.pack-item.is-depleted .pack-status { font-style: italic; }
.pack-item.is-expired { color: var(--warn); }
.pack-item.is-expired .pack-status { font-style: italic; }

.billing-panel .cta-row { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }

/* PriceCard grid — the four buy-pack presets (INV-2: sums always read
   from `domain/pricing.dart` at render, never hardcoded here). */
.pack-picker { display: none; margin-top: var(--sp-3); }
.pack-picker.is-open { display: block; }
.price-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-3); }
.price-card { background: var(--card); border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-card-lg); padding: var(--sp-4); text-align: left; display: flex;
  flex-direction: column; gap: var(--sp-1); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.price-card:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.price-card:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.price-card:disabled { opacity: .5; cursor: not-allowed; }
.price-card .price-card-vol { font-size: var(--fz-ui); font-weight: var(--w-semibold); color: var(--text); }
.price-card .price-card-price { font-family: var(--font-num); font-size: var(--fz-num-sm); color: var(--accent); }
.price-card .price-card-per { font-family: var(--font-ui); font-size: var(--fz-xs);
  font-weight: var(--w-regular); color: var(--muted); }

.billing-banner { margin-top: var(--sp-3); padding: var(--sp-2) var(--sp-3); font-size: var(--fz-sm);
  border-radius: var(--r-card); background: var(--surface); color: var(--text); }
.billing-banner.is-success { background: var(--success-soft); color: var(--success); }
.billing-banner.is-error { background: var(--danger-soft); color: var(--danger); }

/* pricing-foot — trust line under the buy-pack picker (landing's
   `index.html:765-766`, reused here for the same three assurances). */
.pricing-foot { margin-top: var(--sp-4); font-size: var(--fz-xs); color: var(--muted);
  display: flex; gap: var(--sp-5); flex-wrap: wrap; }

/* ==== AmbassadorBlock (Ф6b Task 4) — the "+10 разборов" widget-bonus
   collapsible section («Как увеличить бесплатный лимит вдвое ▸/▾»), mounted
   alongside `.billing-panel` under `/calls/tariff` (Task 5 wires it in).
   Ported verbatim from `frontend/public/calls/cabinet.css` (423-434) +
   `index.html`'s markup (184-186) — same class names, given its own
   top-level `margin-top`/`border-top` (not scoped under `.billing-panel
   .tariff-block`) so it reads correctly whether Task 5 nests it inside the
   panel or mounts it as a sibling. Reuses `.billing-banner` (defined above)
   for its own banner slot — the component-boundary divergence noted in
   `components/billing_panel.dart`'s file doc comment. ==== */
.ambassador-section { border-top: var(--bw-hair) solid var(--border); margin-top: var(--sp-5);
  padding-top: var(--sp-4); }
.ambassador-toggle { font-size: var(--fz-xs); color: var(--muted); text-decoration: none; padding: 0;
  border: none; background: none; cursor: pointer; }
.ambassador-toggle:hover { color: var(--accent); }
.ambassador-toggle:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.ambassador-body { font-size: var(--fz-sm); color: var(--text); margin-top: var(--sp-3); }
.ambassador-body p { margin: var(--sp-2) 0; }
.ambassador-body .ambassador-title { font-size: var(--fz-ui); font-weight: var(--w-semibold);
  margin-bottom: var(--sp-2); color: var(--accent); }
.ambassador-body input[type="url"] { width: 100%; padding: var(--sp-2); border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-card); font-size: var(--fz-sm); margin-top: var(--sp-2); box-sizing: border-box; }
.ambassador-body .ambassador-snippet { background: var(--surface); border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-card); padding: var(--sp-2) var(--sp-3); font-family: var(--font-num);
  font-size: var(--fz-micro); word-break: break-all; margin: var(--sp-3) 0; }
.ambassador-body .ambassador-cta { display: flex; gap: var(--sp-2); align-items: center; margin-top: var(--sp-2); }
.ambassador-body .ambassador-status { display: inline-block; padding: var(--sp-1) var(--sp-3);
  background: var(--success-soft); color: var(--success); border: var(--bw-hair) solid var(--success-soft);
  border-radius: var(--r-chip); font-size: var(--fz-micro); font-weight: var(--w-semibold); margin-bottom: var(--sp-1); }
.ambassador-body .ambassador-hint { font-size: var(--fz-micro); color: var(--muted); margin-top: var(--sp-2); }
.ambassador-body .ambassador-reason { padding: var(--sp-2) var(--sp-3); background: var(--warn-soft);
  color: var(--warn); border: var(--bw-hair) solid var(--warn-soft); border-radius: var(--r-card);
  font-size: var(--fz-sm); margin-top: var(--sp-2); }

/* ==== TemplatesSection (Ф6c-2 Task 3) — the `/calls/templates` list +
   resolved-checklist viewer. `.settings-row`/`.settings-list`/
   `.settings-viewer` are ported verbatim (same class names, same shapes)
   from `frontend/public/calls/cabinet.css` (458-482) — re-homed under
   `.templates-section` (this route's own padded column, same shape as
   `.tariff-view`) instead of the legacy `#settingsDialog` card; the section
   itself has no card background here, same "routed full-page view, not a
   modal" treatment `.tariff-view`/`.section-shell` already use.
   `.settings-editor` (Task 4) reuses this same `.templates-section`
   wrapper + `.section-heading`. ==== */
.templates-section { max-width: 720px; margin: 0 auto; padding: var(--sp-8) var(--sp-6); }
.section-heading { margin: 0; font-size: var(--fz-h2); font-weight: var(--w-bold); color: var(--text); }
/* Generic `.hint` — cabinet.css's own bare `.hint` rule (line 111),
   reusable by any future section (objects/integrations, Ф6c-3/Ф6d), not
   just this one — unlike the other hint variants already in this file
   (`.field-hint`/`.upload-formats-hint`/…), which are each scoped to their
   own component. */
.hint { font-size: var(--fz-xs); color: var(--faint); margin-top: var(--sp-1); }
.templates-section > .hint { margin: 0 0 var(--sp-5); }

.settings-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.settings-row { display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-3) var(--sp-4); background: var(--card); border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-card); gap: var(--sp-3); flex-wrap: wrap; }
.settings-row-info { display: flex; flex-direction: column; gap: 2px; }
.settings-row-name { font-size: var(--fz-ui); font-weight: var(--w-semibold); color: var(--accent); }
.settings-row-meta { font-size: var(--fz-micro); color: var(--muted); }
.settings-row-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.settings-row-actions .btn { height: var(--h-btn-sm); padding: 0 var(--sp-3); font-size: var(--fz-xs); }
.settings-row-builtin { background: var(--surface); }
.settings-row-builtin .settings-row-name::before { content: '★ '; color: var(--accent); }

.settings-viewer, .settings-editor { margin-top: var(--sp-5); padding: var(--sp-5); background: var(--card);
  border: var(--bw-hair) solid var(--border); border-radius: var(--r-card-lg); }
.settings-viewer h3 { font-size: var(--fz-title); font-weight: var(--w-semibold); color: var(--accent);
  margin: 0 0 var(--sp-3); }
.settings-viewer p { font-size: var(--fz-sm); margin: var(--sp-2) 0; }
.settings-viewer .viewer-mode, .settings-viewer .viewer-loading { color: var(--muted); font-size: var(--fz-xs); }
.settings-viewer .viewer-broken { padding: var(--sp-2) var(--sp-3); background: var(--danger-soft);
  border: var(--bw-hair) solid var(--danger); border-radius: var(--r-card); color: var(--danger); }
.settings-viewer .viewer-fetch-error { color: var(--warn); font-size: var(--fz-xs); }
.settings-viewer .viewer-note, .settings-viewer .viewer-disabled-count { color: var(--muted); }
.settings-viewer .viewer-heading { font-weight: var(--w-semibold); margin-top: var(--sp-3); }
.settings-viewer ul { margin: var(--sp-1) 0 0 18px; padding: 0; font-size: var(--fz-sm); }
.settings-viewer li { margin-bottom: var(--sp-1); }
.settings-viewer .criterion-meta { color: var(--muted); margin-left: var(--sp-2); font-size: var(--fz-micro); }
.settings-viewer .viewer-summary-notes { margin-top: var(--sp-2); padding: var(--sp-2) var(--sp-3);
  background: var(--warn-soft); border-radius: var(--r-card); font-size: var(--fz-sm); }
.settings-viewer pre { white-space: pre-wrap; font-size: var(--fz-xs); background: var(--surface);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-card); }
.settings-viewer-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }

/* ==== TemplateEditor (Ф6c-2 Task 4) — extend-builtin/full-custom criteria
   editor, ported (same class names) from `frontend/public/calls/cabinet.css`
   (483-507). `.settings-editor`'s own card chrome is folded into the
   `.settings-viewer` rule above (legacy CSS combined both selectors too).
   `.field select`/`.field textarea` extend the auth-page-authored generic
   `.field input` rule (line ~131) to the two extra control types this editor
   introduces — reusable by any future `.field`, not scoped to this section. */
.field select, .field textarea { width: 100%; padding: var(--sp-3) var(--sp-4); font-size: var(--fz-body);
  font-family: inherit; border: var(--bw-emph) solid var(--border); border-radius: var(--r-card);
  background: var(--bg); color: var(--text); transition: border-color var(--dur) var(--ease); }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.field select { height: var(--h-input); }
.field textarea { resize: vertical; }

.editor-section-label { display: block; margin-top: var(--sp-4); font-size: var(--fz-xs);
  font-weight: var(--w-medium); color: var(--muted); }

.editor-mode-toggle { display: flex; border: var(--bw-hair) solid var(--border); border-radius: var(--r-card);
  overflow: hidden; width: fit-content; margin-top: var(--sp-1); }
.editor-mode-toggle .mode-btn { padding: var(--sp-2) var(--sp-4); font-size: var(--fz-xs);
  font-weight: var(--w-medium); background: var(--card); color: var(--muted); border: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.editor-mode-toggle .mode-btn + .mode-btn { border-left: var(--bw-hair) solid var(--border); }
.editor-mode-toggle .mode-btn.is-active { background: var(--accent); color: var(--accent-ink); }
.editor-mode-toggle .mode-btn:hover:not(.is-active) { background: var(--accent-soft); }

.editor-criteria-list { display: flex; flex-direction: column; gap: var(--sp-2); max-height: 280px;
  overflow-y: auto; overflow-x: hidden; padding: var(--sp-2) var(--sp-3); background: var(--surface);
  border: var(--bw-hair) solid var(--border); border-radius: var(--r-card); font-size: var(--fz-sm); }
.editor-criteria-list label { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto;
  column-gap: var(--sp-2); align-items: start; cursor: pointer; padding: var(--sp-1) 0; }
/* Overrides the generic `.field input` sizing (width:100%/fixed height) —
   without this a checkbox nested in this section's `.field` would stretch
   to a full-width, input-height box. */
.editor-criteria-list input[type=checkbox] { width: auto; height: auto; margin: 3px 0 0 0; }
.editor-criteria-text { word-wrap: break-word; overflow-wrap: anywhere; line-height: var(--lh-body); }
.editor-criteria-text.is-corrupted { font-style: italic; color: var(--warn); }
.editor-criteria-cat { font-size: var(--fz-micro); color: var(--muted); max-width: 140px; padding: 2px var(--sp-2);
  background: var(--accent-soft); border-radius: var(--r-chip); align-self: start; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }

.editor-added-criteria { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); }
.editor-added-criterion { display: grid; grid-template-columns: 1fr 2fr 60px 32px; gap: var(--sp-2);
  align-items: start; }
.editor-added-criterion textarea { resize: vertical; min-height: 36px; }
.btn-remove { padding: var(--sp-1) var(--sp-2); background: transparent; color: var(--danger);
  border: var(--bw-hair) solid var(--danger-soft); border-radius: var(--r-card); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.btn-remove:hover { background: var(--danger-soft); }

.settings-editor-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }

/* app_cabinet.dart's `/calls/templates` back-link (Task 6) — sits below
   `TemplatesSection`'s own `.templates-section` column (which already owns
   the 720px max-width + full sp-8/sp-6 padding); this re-declares the same
   horizontal inset so the button lines up with the list above it, without
   re-adding top padding (the section's own bottom padding already provides
   that gap — same non-doubling shape as `.tariff-back` sitting directly
   inside the already-padded `.tariff-view`). */
.templates-back { max-width: 720px; margin: 0 auto; padding: 0 var(--sp-6) var(--sp-8); }

/* ==== ObjectsSection (Ф6c-3 Task 2) — the `/calls/objects` list + inline
   editor. `.objects-section` rides `.templates-section`'s column/heading/
   hint/list/row/editor rules as-is (both components render `classes:
   'templates-section objects-section'`/`'templates-section'` — same "routed
   full-page column" shape, no visual delta between the two sections) — this
   selector exists only as a future override hook, same reasoning as
   `.settings-row-builtin` existing even before any builtin-property concept
   does. The one genuinely missing piece this section surfaces: cabinet.css's
   `option.select-create-action` rule (506) was never ported when `UploadZone`
   introduced the class (Ф6c-2 Task 5) — added here, token-ized, so both
   selects' trailing «+ Создать шаблон →» option render consistently. ==== */
option.select-create-action { color: var(--accent); font-weight: var(--w-medium);
  border-top: var(--bw-hair) solid var(--border); }

/* ==== IntegrationsSection (Ф6d-2 Task 3) — the `/calls/integrations`
   account list: validity dot, per-account settings collapse, add-account
   form, delete. `.integrations-section` rides `.templates-section`'s
   column/heading/hint the same way `.objects-section` does — this selector,
   like that one, exists only as a future override hook. Ported (re-
   tokenized — cabinet.js's `buildAccountCard` used inline `style.cssText`
   throughout, no class names at all beyond `.acc-toggle-icon`/`.acc-body`/
   `.acc-objects-list`/`.acc-calls-box`, none of which are CSS-styled here
   since Task 3 doesn't render that content — see the component's own file
   doc) from `frontend/public/calls/cabinet.js`/`index.html`'s `allokaSection`
   markup (429-483). The add-account form reuses `.settings-editor`/`.field`/
   `.settings-editor-actions` as-is (see `IntegrationsSection._addForm`'s
   doc) — only the account list/card/inline-settings-form chrome below is
   new. ==== */
.acc-list { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.acc-card { background: var(--card); border: var(--bw-hair) solid var(--border); border-radius: var(--r-card);
  overflow: hidden; }
.acc-header { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4);
  background: var(--surface); flex-wrap: wrap; }
.acc-header .btn { height: var(--h-btn-sm); padding: 0 var(--sp-3); font-size: var(--fz-xs); }
.acc-status-dot { font-size: var(--fz-sm); }
.acc-status-dot.is-valid { color: var(--success); }
.acc-status-dot.is-invalid { color: var(--danger); }
.acc-label { flex: 1; min-width: 0; font: var(--w-semibold) var(--fz-ui) var(--font-ui); color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acc-settings-form { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4);
  border-top: var(--bw-hair) solid var(--border); background: var(--surface); }
.acc-settings-form input { width: 100%; height: var(--h-input); padding: 0 var(--sp-4); font-size: var(--fz-body);
  font-family: inherit; border: var(--bw-emph) solid var(--border); border-radius: var(--r-card);
  background: var(--bg); color: var(--text); transition: border-color var(--dur) var(--ease); }
.acc-settings-form input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.acc-settings-actions { display: flex; gap: var(--sp-2); }

.acc-empty-state .btn { margin-top: var(--sp-3); }

/* ==== AllokaImport (Ф6d-2 Task 4) — the per-account accordion body
   (`.acc-body`, mounted while `AccountCard._bodyOpen`): the `▶`/`▼` header
   toggle, the object tree, the filters row, the calls-preview list and the
   import progress bar. Re-tokenized the same way Task 3's account-card
   chrome was — cabinet.js's own `buildAccountCard`/`loadObjects` used inline
   `style.cssText` throughout, no stylesheet rules at all. `.settings-row`/
   `.settings-row-info`/`.settings-row-name`/`.settings-row-meta` (used by
   the calls-preview rows) already exist (Ф6c-2) and are reused as-is, not
   redefined here. ==== */
.acc-toggle-icon { appearance: none; background: none; border: none; padding: 0; margin: 0; font: inherit;
  font-size: var(--fz-xs); color: var(--muted); cursor: pointer; user-select: none;
  width: 1.2em; text-align: center; flex-shrink: 0; }

.acc-body { padding: var(--sp-4); border-top: var(--bw-hair) solid var(--border); }
.acc-section-label { font-size: var(--fz-micro); font-weight: var(--w-semibold); color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--sp-2); }
.acc-section-label:not(:first-child) { margin-top: var(--sp-4); }

.acc-objects-list { margin-bottom: var(--sp-2); font-size: var(--fz-sm); }
.acc-objects-list.muted { color: var(--muted); }
.acc-objects-list.error { color: var(--danger); }
.acc-object-row { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) 0;
  border-bottom: var(--bw-hair) solid var(--accent-soft); }
.acc-object-row:last-child { border-bottom: none; }
.acc-object-label { flex: 1; min-width: 0; font-size: var(--fz-sm); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.acc-object-template { font-size: var(--fz-xs); padding: 3px var(--sp-2); border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-chip); max-width: 160px; background: var(--bg); color: var(--text); }

.acc-filters { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--sp-3); }
.acc-filter-field { flex: 1; min-width: 120px; }
.acc-filter-field label { display: block; font-size: var(--fz-xs); font-weight: var(--w-medium); color: var(--muted);
  margin-bottom: 4px; }
.acc-filter-field input, .acc-filter-field select { width: 100%; height: var(--h-input); padding: 0 var(--sp-3);
  font-size: var(--fz-sm); font-family: inherit; border: var(--bw-emph) solid var(--border); border-radius: var(--r-card);
  background: var(--bg); color: var(--text); box-sizing: border-box; }
.acc-filter-field input:focus, .acc-filter-field select:focus { outline: none; border-color: var(--accent);
  box-shadow: var(--focus-ring); }

.acc-calls-box { margin-top: var(--sp-2); }
.acc-calls-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); }
.acc-calls-count { font-size: var(--fz-sm); font-weight: var(--w-semibold); }
.acc-calls-actions { display: flex; gap: var(--sp-2); }
.acc-calls-actions .btn { height: var(--h-btn-sm); padding: 0 var(--sp-3); font-size: var(--fz-xs); }
.acc-calls-checkboxes { max-height: 320px; overflow-y: auto; border: var(--bw-hair) solid var(--border);
  border-radius: var(--r-card); }
.acc-calls-footer { display: flex; justify-content: space-between; align-items: center; margin-top: var(--sp-3); }
.acc-selected-count { font-size: var(--fz-sm); color: var(--muted); }

.acc-progress { margin-top: var(--sp-4); }
.acc-progress-head { display: flex; justify-content: space-between; font-size: var(--fz-xs); color: var(--muted);
  margin-bottom: 4px; }
.acc-progress-track { height: 6px; border-radius: var(--r-chip); background: var(--accent-soft); overflow: hidden; }
.acc-progress-bar { height: 100%; background: var(--accent); transition: width var(--dur) var(--ease); }

/* The terminal import toast (`showImportToast`, cabinet.js:4899-4905) — a
   viewport-fixed banner outliving `AllokaImport`'s own unmount (see that
   file's doc). Not yet mounted by any component (Ф6d-2 Task 6 wires the
   shell-level call) — the class is defined now so Task 6 only has to render
   `div(classes: 'import-toast ${isError ? "is-error" : "is-ok"}', [...])`. */
.import-toast { position: fixed; bottom: var(--sp-6); left: 50%; transform: translateX(-50%);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-card); font-size: var(--fz-ui); font-weight: var(--w-medium);
  z-index: 9999; box-shadow: var(--elev-float); transition: opacity var(--dur) var(--ease); }
.import-toast.is-ok { background: var(--success-soft); color: var(--success); }
.import-toast.is-error { background: var(--danger-soft); color: var(--danger); }

/* ==== AdminSection (Ф6d-2 Task 5) — read-only «Клиенты» table. Reuses
   ReportsTable's `.calls-table`/`.calls-table-wrap`/`.calls-error-banner`/
   `.hint` chrome verbatim (index.html's own admin markup already shares
   those exact classes) — only the plan/sku badges below are new. The
   `.templates-section.admin-section` compound selector (below) deliberately
   overrides the shared 720px max-width regardless of stylesheet order,
   matching index.html's own wider `max-width:960px` admin panel wrapper. */
.templates-section.admin-section { max-width: 960px; }

.admin-plan-badge { display: inline-flex; align-items: center; height: var(--h-chip); padding: 0 var(--sp-3);
  border-radius: var(--r-chip); background: var(--accent-soft); color: var(--accent); font-size: var(--fz-xs);
  font-weight: var(--w-medium); }

.admin-pack-row { display: flex; align-items: center; gap: var(--sp-1); font-size: var(--fz-sm); padding: 2px 0; }
.admin-sku-badge { display: inline-flex; align-items: center; padding: 0 var(--sp-2); border-radius: var(--r-chip);
  font-size: var(--fz-micro); font-weight: var(--w-semibold); }
.admin-sku-badge.is-active { background: var(--success-soft); color: var(--success); }
.admin-sku-badge.is-depleted { background: var(--surface); color: var(--faint); }
.admin-sku-badge.is-expired { background: var(--warn-soft); color: var(--warn); }

/* ==== showcase (visual-check surface, Ф2 T6) ==== */
.showcase-theme { background: var(--bg); color: var(--text); padding: var(--sp-6);
  border-radius: var(--r-card-lg); margin-bottom: var(--sp-8); }
.showcase-group { margin-bottom: var(--sp-6); }
.showcase-group h3 { margin: 0 0 var(--sp-3); font: var(--w-semibold) var(--fz-title) var(--font-ui); }
.showcase-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
