/* AMwb — дизайн-система.
   Все цвета, отступы и скругления — переменные ниже; компоненты пользуются только ими.
   Образец всех компонентов: /styleguide/ (для администраторов). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.8fc0aa17e129.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.101877a7a906.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  color-scheme: light;

  --bg: #fff8f3;
  --surface: #ffffff;
  --surface-2: #fff1e8;
  --peach-100: #ffe4d4;
  --peach-200: #ffcfb5;
  --peach-300: #f6ae8d;
  --peach-400: #f29c78;
  --border: #f3ddd0;
  --border-strong: #e8c4b0;

  --text: #3d2b24;
  --muted: #7a6259;
  --link: #a94d2c;
  --on-accent: #3d2b24;

  --ok: #27704a;
  --ok-bg: #e3f2e8;
  --warn: #8a5e00;
  --warn-bg: #fff1cc;
  --err: #b3261e;
  --err-bg: #fbe3e0;
  --info-bg: var(--peach-100);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(61 43 36 / 0.04), 0 4px 16px rgb(61 43 36 / 0.06);
  --shadow-hover: 0 2px 4px rgb(61 43 36 / 0.06), 0 10px 28px rgb(61 43 36 / 0.1);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --container: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #1e1714;
    --surface: #2a201c;
    --surface-2: #33271f;
    --peach-100: #4a3128;
    --peach-200: #6b4436;
    --peach-300: #f29c78;
    --peach-400: #f6ae8d;
    --border: #3f302a;
    --border-strong: #5a453b;

    --text: #f7eae3;
    --muted: #c2a89d;
    --link: #f2a585;
    --on-accent: #2a1a12;

    --ok: #7bc79a;
    --ok-bg: #1f3a2a;
    --warn: #e3b64f;
    --warn-bg: #3d3014;
    --err: #f2a097;
    --err-bg: #4a221e;

    --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-hover: 0 6px 20px rgb(0 0 0 / 0.4);
  }
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 var(--space-3); font-weight: 750; }
h1 { font-size: clamp(26px, 4vw, 34px); }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--peach-300); outline-offset: 2px; border-radius: 4px; }

svg.icon { width: 24px; height: 24px; flex: none; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Раскладка ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
.page { flex: 1; padding-block: var(--space-6) var(--space-7); }
.stack > * + * { margin-top: var(--space-4); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); }
.page-head { margin-bottom: var(--space-5); }
.page-head p { color: var(--muted); max-width: 640px; }

/* ---------- Шапка и подвал ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; }
.nav { display: flex; align-items: center; gap: var(--space-4); }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--link); }
.nav form { margin: 0; }

.logo { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text); text-decoration: none; }
.logo-mark { display: block; }
.logo-mark img { display: block; height: 30px; width: auto; }

.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-5); font-size: 14px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.site-footer a { color: var(--muted); }

@media (max-width: 480px) {
  .nav { gap: var(--space-3); }
  .nav .nav-extra { display: none; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--peach-300); color: var(--on-accent); }
.btn-primary:hover { background: var(--peach-400); box-shadow: var(--shadow); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--link); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.link {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* ---------- Формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field > span:first-child { font-weight: 600; font-size: 15px; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
  font: inherit;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--peach-400);
  box-shadow: 0 0 0 3px var(--peach-100);
}
.hint { font-size: 14px; color: var(--muted); }
.error { font-size: 14px; color: var(--err); }
.field.has-error input { border-color: var(--err); }

.check { display: flex; align-items: flex-start; gap: var(--space-2); margin-bottom: var(--space-4); font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--peach-400); flex: none; }

.file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.file-drop:hover, .file-drop.is-over { border-color: var(--peach-400); background: var(--peach-100); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .icon { width: 32px; height: 32px; color: var(--link); }

/* ---------- Карточки и плитки ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}
.card-narrow { max-width: 440px; margin-inline: auto; }
.card > h2:first-child { margin-bottom: var(--space-3); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--peach-200); }
.tile-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--peach-100);
  color: var(--link);
}
.tile-icon .icon { width: 28px; height: 28px; }
.tile h3 { margin: 0; font-size: 19px; }
.tile p { margin: 0; color: var(--muted); flex: 1; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--link); }
.tile-foot .icon { width: 20px; height: 20px; transition: transform 0.15s; }
a.tile:hover .tile-foot .icon { transform: translateX(3px); }
.tile.is-soon { opacity: 0.7; }

/* ---------- Главная ---------- */
.hero { text-align: center; padding-block: var(--space-6) var(--space-7); }
.hero .hero-logo { display: inline-block; margin-bottom: var(--space-5); }
.hero .hero-logo img { height: clamp(64px, 12vw, 104px); }
.hero h1 { font-size: clamp(34px, 7vw, 52px); letter-spacing: -0.03em; margin-bottom: var(--space-3); }
.hero h1 span { color: var(--link); }
.hero p { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 560px; margin: 0 auto var(--space-5); }

/* ---------- Статусы и сообщения ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--muted);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-info { background: var(--info-bg); color: var(--link); }

.messages { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-2); }
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--info-bg);
  color: var(--text);
}
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-warning { background: var(--warn-bg); color: var(--warn); }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-info { background: var(--info-bg); color: var(--text); }

/* ---------- Прогресс ---------- */
.progress { height: 10px; border-radius: 999px; background: var(--peach-100); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--peach-300); transition: width 0.3s; }
.progress-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: var(--space-2); }

/* ---------- Цифры ---------- */
.stat-value { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 14px; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Пустое состояние ---------- */
.empty { text-align: center; padding: var(--space-6) var(--space-4); color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--peach-300); margin-bottom: var(--space-2); }

/* ---------- Образец компонентов ---------- */
.sg-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.sg-swatch { width: 120px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); font-size: 12px; }
.sg-swatch div:first-child { height: 56px; }
.sg-swatch div:last-child { padding: 6px 8px; background: var(--surface); }

/* ---------- Миниатюры товаров WB ---------- */
.thumb {
  display: block;
  width: 36px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.table td.thumb-cell { width: 44px; padding-right: 4px; }
.src-head { display: flex; align-items: center; gap: var(--space-3); }
.src-head .thumb { width: 45px; height: 60px; }
.src-head h2 { margin: 0; }

/* ---------- Ползунки важности (поиск конкурентов) ---------- */
.weights { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); margin: 0 0 var(--space-4); }
.weights legend { font-weight: 700; padding: 0 var(--space-2); }
.weight { display: block; margin: var(--space-3) 0; }
.weight-head { display: flex; justify-content: space-between; font-weight: 600; }
.weight-head output { font-variant-numeric: tabular-nums; color: var(--link); }
.weight input[type="range"] { width: 100%; accent-color: var(--peach-400); margin-top: var(--space-1); }
.btn-link { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; text-decoration: underline; font-family: inherit; }

/* Разделитель «или» между способами ввода */
.or-divider { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0; color: var(--muted); font-size: 14px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.price-cheap { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
td.price-cheap { border-radius: var(--radius-sm); }
span.price-cheap { padding: 0 4px; border-radius: 4px; }
.check .hint { display: block; margin-top: 2px; }

/* ---------- Реквизиты в подвале ---------- */
.footer-legal { margin: var(--space-1) 0 0; font-size: 13px; max-width: 640px; }

/* ---------- Обращения ---------- */
.badge-muted { background: var(--surface-2); color: var(--muted); }
.support-fab {
  position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 50;
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--peach-400); color: var(--on-accent); font: inherit; font-weight: 700;
  box-shadow: var(--shadow-hover);
}
.support-fab:hover { background: var(--peach-300); }
.support-fab .icon { width: 20px; height: 20px; }
.support-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
@media (max-width: 480px) {
  .support-fab { padding: 12px; }
  .support-fab > span:not(.support-dot) { display: none; }   /* на телефоне — только значок */
}
.support-dialog {
  width: min(520px, calc(100vw - 32px)); padding: var(--space-5); border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-hover);
}
.support-dialog::backdrop { background: rgb(61 43 36 / 0.35); }
.support-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-4); }
.support-head h2 { margin: 0; }
.support-close { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.ticket-text { margin: var(--space-3) 0 0; white-space: normal; overflow-wrap: anywhere; }
.ticket-reply { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: var(--surface-2); border-left: 3px solid var(--peach-400); overflow-wrap: anywhere; }
.ticket-reply p { margin: 0; }
.ticket-reply p + p { margin-top: var(--space-2); }
/* Кнопка «Написать нам» не должна закрывать низ страницы */
.site-footer { padding-bottom: 80px; }

/* ---------- Документы (оферта, политика) ---------- */
.doc { max-width: 820px; line-height: 1.6; }
.doc h1 { font-size: 26px; }
.doc h2 { font-size: 19px; margin-top: var(--space-5); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: var(--space-1); }
.center { text-align: center; }
.tariff-head { display: flex; align-items: center; gap: var(--space-3); }
.tariff-head h2 { margin: 0; }
.plain-list { padding-left: 1.2em; line-height: 1.6; }
.plain-list li + li { margin-top: var(--space-2); }

/* Кнопка «Войти с Яндекс ID» — по правилам Яндекса: чёрная, с буквой «Я» */
.btn-yandex { background: #000; color: #fff; border-color: #000; gap: var(--space-2); }
.btn-yandex:hover { background: #262626; }
.ya-logo { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #fc3f1d; color: #fff; font-weight: 800; font-size: 14px; line-height: 1; }
.hero .hero-bonus { margin: var(--space-3) auto 0; font-size: 15px; color: var(--ok); font-weight: 600; }

/* ---------- Юнит-экономика ---------- */
.tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); border-bottom: 1px solid var(--border); }
.tab { padding: 10px 16px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-weight: 700;
  color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: var(--space-2); }
.tab.is-active { color: var(--text); border-bottom-color: var(--peach-300); }
.tab.is-soon { cursor: default; }
.unit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.unit-result { position: sticky; top: var(--space-4); }
.unit-form fieldset { border: 0; padding: 0; margin: 0 0 var(--space-4); min-width: 0; }
.unit-form legend { font-weight: 750; font-size: 17px; margin-bottom: var(--space-3); }
.unit-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-3); }
.unit-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.unit-row-3 .field { margin-bottom: var(--space-2); }
.unit-dims-hint { margin-top: 0; }
.unit-profit { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4); border-radius: var(--radius);
  margin-bottom: var(--space-4); }
.unit-profit.is-gain { background: var(--ok-bg); }
.unit-profit.is-gain .stat-value { color: var(--ok); }
.unit-profit.is-loss { background: var(--err-bg); }
.unit-profit.is-loss .stat-value { color: var(--err); }
.unit-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3);
  margin: 0 0 var(--space-4); }
.unit-kpi dt { font-size: 14px; color: var(--muted); }
.unit-kpi dd { margin: 0; font-weight: 750; font-size: 18px; font-variant-numeric: tabular-nums; }
.unit-line-hint { display: block; font-size: 13px; }
.unit-total td { background: var(--surface-2); }
.unit-neg { color: var(--err); }
@media (max-width: 860px) {
  .unit-layout { grid-template-columns: 1fr; }
  .unit-result { position: static; }
}
@media (max-width: 420px) {
  .unit-row { grid-template-columns: 1fr; }
  .unit-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.unit-form [hidden] { display: none !important; }
.unit-switch { display: inline-flex; padding: 4px; gap: 4px; margin-bottom: var(--space-4); border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); }
.unit-switch-option { position: relative; cursor: pointer; }
.unit-switch-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.unit-switch-option span { display: block; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 15px;
  color: var(--muted); }
.unit-switch-option input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.unit-switch-option input:focus-visible + span { outline: 2px solid var(--peach-400); outline-offset: 2px; }
.unit-info { padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--surface-2);
  margin-bottom: var(--space-4); font-size: 15px; }
.unit-info p { margin-bottom: var(--space-2); }
.unit-next { color: var(--warn); font-weight: 600; }
.unit-missing { text-align: left; display: inline-block; margin: 0; padding-left: 1.2em; }

/* Подсказка «?» у поля: всплывает при наведении и по нажатию. Текст занимает ширину поля — не вылезает за экран. */
.field { position: relative; }
.field-head { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.field-head label { cursor: pointer; }
.tip { flex: none; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--muted); font: 700 12px/1 var(--font); cursor: help; }
.tip:hover, .tip:focus-visible { border-color: var(--peach-400); color: var(--link); outline: none; }
.tip-text { display: none; position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% - 4px);
  padding: 10px 12px; border-radius: var(--radius-sm); background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 500; line-height: 1.45; box-shadow: var(--shadow-hover); }
.field .tip-text { top: 26px; }
.tip:hover + .tip-text, .tip:focus + .tip-text { display: block; }
.unit-switch-row { position: relative; margin-bottom: var(--space-4); }
.unit-switch-row .unit-switch { margin-bottom: 0; }
.unit-switch-row .tip-text { top: calc(100% + 6px); }
.check-row { display: flex; align-items: center; gap: 6px; position: relative; margin-bottom: var(--space-4); }
.check-row .check { margin-bottom: 0; }
.check-row .tip-text { top: calc(100% + 4px); }
.unit-batch-link { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin: 0 0 var(--space-4); }
.unit-batch-link .icon { width: 20px; height: 20px; color: var(--link); }
.unit-templates { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Мониторинг цен ---------- */
.price-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); }
.price-advice { padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--surface-2); }
.price-down { color: var(--err); }
.price-up { color: var(--ok); }
.table tr.row-own td { background: var(--surface-2); }
.spark { display: block; overflow: visible; }
.spark polyline { fill: none; stroke: var(--link); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
