/* Базовые переменные, шрифты, ресет, шапка, фильтры каталога, карточки каналов. */
/* Порядок подключения важен: файл идёт первым, дальше каскад переопределяет его. */
/* Запасной шрифт с размерами Inter: пока Inter грузится, текст не прыгает при замене. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* TOKENS-START */
/* ===== Дизайн-токены (описание: Docs/DESIGN_SYSTEM.md) =====
   Два слоя:
   1) Примитивы (--c-*, --radius-*, --space-*, --fs-*, --motion-*, --ease-*, --z-*) — НЕ зависят от темы,
      никогда не переопределяются в body.light-theme. Ими заменены повторяющиеся «сырые» значения,
      поэтому замена #FFF -> var(--c-white) ничего не меняет ни в тёмной, ни в светлой теме.
   2) Семантика темы (--bg, --surface, --text, ... — прежние имена, работают как раньше) — переопределяется
      в body.light-theme. Для новых правил, которые должны менять цвет вместе с темой, берите их. */
:root {
  /* --- Примитивы: цвета (тёмная палитра бренда) --- */
  --c-white: #FFFFFF;
  --c-black: #000000;
  --c-ink-1000: #05070D;   /* фон страницы, тёмная тема */
  --c-ink-950: #05050D;    /* «чёрные» подложки (поле поиска, чипы) */
  --c-ink-900: #1B1B23;    /* карточки, шапка */
  --c-ink-800: #27272F;    /* вторичная поверхность */
  --c-ink-700: #2F2F37;    /* линии, рамки */
  --c-ink-500: #54545A;    /* приглушённые иконки/рамки */
  --c-blue-500: #1E55F9;   /* основной акцент, кнопки */
  --c-cyan-500: #00A5E9;   /* фокус, ссылки-подсказки */
  --c-orange-500: #FF7C02; /* «Горячие» */
  --c-yellow-500: #FFC700;
  --c-red-500: #E62929;    /* ошибки, удаление */
  --c-green-500: #2EB822;  /* успех, одобрено */
  /* Примитивы: светлая палитра (используются семантикой светлой темы) */
  --c-paper-50: #F4F6FB;
  --c-paper-100: #EEF1F8;
  --c-paper-200: #DDE3EE;
  --c-paper-ink: #090B13;
  /* Тёмные оттенки бренда для текста/кнопок светлой темы (ближайшие к бренду с контрастом ≥ 4.5 на белом) */
  --c-blue-600: #1748E0;
  --c-orange-700: #AF5500;
  --c-green-700: #1F7E17;
  --c-red-600: #D01818;
  --c-sky-700: #0A71BE;    /* GRAM */
  --c-teal-700: #0C856F;
  --c-grey-600: #6B6B6B;
  /* Прозрачности (фоны бейджей, подсветка выбранного) */
  --c-white-a75: rgba(255,255,255,.75);
  --c-white-a40: rgba(255,255,255,.4);
  --c-white-a20: rgba(255,255,255,.2);
  --c-white-a12: rgba(255,255,255,.12);
  --c-white-a08: rgba(255,255,255,.08);
  --c-blue-a12: rgba(30,85,249,.12);
  --c-blue-a16: rgba(30,85,249,.16);
  --c-red-a12: rgba(230,41,41,.12);
  --c-orange-a12: rgba(255,124,2,.12);
  --c-green-a12: rgba(46,184,34,.12);

  /* --- Скругления --- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;    /* по умолчанию: поля, кнопки, выпадающие списки */
  --radius-lg: 12px;    /* панели (фильтры) */
  --radius-xl: 16px;    /* карточки каналов */
  --radius-2xl: 24px;   /* крупные карточки кабинета, модалки */
  --radius-pill: 999px;
  --radius-round: 50%;  /* аватары, кружки */

  /* --- Отступы (шаг 4px). Для новых правил; старые пока на литералах. --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  /* --- Типографика (размер/межстрочный, как в макете). Для новых правил. --- */
  --fs-12: 12px;  --lh-12: 16px;
  --fs-14: 14px;  --lh-14: 18px;
  --fs-16: 16px;  --lh-16: 20px;
  --fs-20: 20px;  --lh-20: 24px;
  --fs-24: 24px;  --lh-24: 30px;
  --fs-32: 32px;  --lh-32: 39px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* --- Тени --- */
  --shadow-ring: inset 0 0 0 1px var(--c-ink-700);
  --shadow-glow-blue: 0 -2px 24px rgba(30,85,249,.8);
  --shadow-glow-orange: 0 -2px 24px rgba(255,124,2,.8);

  /* --- Движение --- */
  --motion-fast: .18s;    /* hover, чипы */
  --motion-base: .2s;     /* большинство переходов */
  --motion-modal: .22s;   /* появление модалок/выпадашек */
  --motion-panel: .24s;   /* раскрытие панелей */
  --motion-slow: .28s;
  --motion-expand: .82s;  /* раскрытие карточек кабинета */
  --ease-out-expo: cubic-bezier(.22,1,.36,1);
  --ease-out-soft: cubic-bezier(.2,.8,.2,1);

  /* --- Слои (z-index) --- */
  --z-header: 50;
  --z-modal: 100;
  --z-toast: 120;
  --z-dropdown: 1000;

  /* ===== Семантика темы: тёмная (по умолчанию). Прежние имена — оставлены как есть. ===== */
  --bg: var(--c-ink-1000);
  --black: var(--c-ink-950);
  --surface: var(--c-ink-900);
  --surface-2: var(--c-ink-800);
  --line: var(--c-ink-700);
  --blue: var(--c-blue-500);
  --cyan: var(--c-cyan-500);
  --orange: var(--c-orange-500);
  --yellow: var(--c-yellow-500);
  --red: var(--c-red-500);
  --text: var(--c-white);
  --text-75: var(--c-white-a75);
  --text-40: var(--c-white-a40);
  --font: 'Inter', 'Inter Fallback', Arial, sans-serif;
  /* Новые семантические имена (синонимы, тема их не меняет) */
  --accent: var(--blue);
  --success: var(--c-green-500);
  --danger: var(--red);
  --warning: var(--orange);
  /* Цветной текст: в тёмной теме = акцент, в светлой — тёмный оттенок (см. body.light-theme) */
  --text-blue: var(--blue);
  --text-orange: var(--orange);
  --text-green: var(--success);
  --text-red: var(--red);
  /* Картинка фона страницы (светлая тема: тот же фон, что у превью поста в заказе) */
  --page-bg-image: none;
}
body.light-theme {
  --bg: var(--c-paper-50);
  --black: var(--c-white);
  --surface: var(--c-white);
  --surface-2: var(--c-paper-100);
  --line: var(--c-paper-200);
  --text: var(--c-paper-ink);
  --text-75: rgba(9,11,19,.75);
  --text-40: rgba(9,11,19,.6);   /* было .4 (2.7:1) — теперь ≥ 4.5 на всех поверхностях */
  --text-blue: var(--c-blue-600);
  --text-orange: var(--c-orange-700);
  --text-green: var(--c-green-700);
  --text-red: var(--c-red-600);
  --page-bg-image: url('../assets/creative-preview-bg-3.webp');
}
/* TOKENS-END */
* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-gutter: stable; }
body { margin: 0; min-width: 1180px; color: var(--text); background: var(--bg); font-family: var(--font); }
body:has(.modal:not([hidden])), body.modal-open { overflow: hidden; scrollbar-gutter: stable; }
button, input { font: inherit; }
button { padding: 0; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[tabindex]:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
button:disabled,
input:disabled,
select:disabled,
textarea:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
.site { position: relative; min-height: 100vh; display: flex; flex-direction: column; isolation: isolate; background: var(--bg); }
.site::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--pattern) top center / 672px 672px repeat; opacity: .1; }
.header { position: sticky; top: 0; z-index: var(--z-header); width: 100%; height: 72px; padding: 0 max(24px, calc((100% - 1400px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--surface); backdrop-filter: blur(20px); }
.header::after { content: ""; position: absolute; left: 0; right: 0; top: 72px; height: 12px; pointer-events: none; background: linear-gradient(to bottom, rgba(5,7,13,.72), rgba(5,7,13,0)); backdrop-filter: blur(12px); }
body.light-theme .header::after { background: linear-gradient(to bottom, rgba(9,11,19,.16), rgba(9,11,19,0)); }
.brand { width: 54px; height: 54px; margin-left: 0; display: grid; place-items: center; }
.brand img { width: 40px; height: 40px; }
.catalog-menu { position: relative; height: 72px; display: flex; justify-content: center; overflow: visible; }
.catalog-menu::after { content: ""; position: absolute; left: 0; bottom: 0; width: 158px; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; box-shadow: 0 -2px 24px rgba(30,85,249,.8); transition: transform .35s ease, background-color .25s ease, box-shadow .25s ease; }
body.hot .catalog-menu::after,
html.route-hot .catalog-menu::after { transform: translateX(158px); background: var(--orange); box-shadow: 0 -2px 24px rgba(255,124,2,.8); }
.nav-item { width: 158px; color: var(--text-75); font: 400 16px/20px var(--font); }
.nav-item.active { color: var(--c-white); font-weight: 600; }
body.light-theme .nav-item.active { color: var(--text); }
body.hot .nav-item[data-route="/channels"],
html.route-hot .nav-item[data-route="/channels"] { color: var(--text-75); font-weight: 400; }
body.hot .nav-item[data-route="/hot"],
html.route-hot .nav-item[data-route="/hot"] { color: var(--c-white); font-weight: 600; }
body.profile-view .nav-item,
body.channel-view .nav-item,
html.route-profile .nav-item,
html.route-channel .nav-item { color: var(--text-75); font-weight: 400; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 32px; }
.language-wrap { position: relative; z-index: 80; }
.language { width: 74px; height: 28px; display: flex; align-items: center; gap: 9px; color: var(--text-75); font: 400 16px/20px var(--font); }
.language img { content: url('../assets/global.png'); width: 28px; height: 28px; object-fit: contain; image-rendering: auto; }
.language i { position: relative; top: -1px; width: 9px; height: 5px; background: url('../assets/chevron-down.svg') center/contain no-repeat; transition: transform var(--motion-base) ease; }
.language-wrap.open .language i { transform: rotate(180deg); }
.language-menu { position: absolute; right: 0; top: 30px; z-index: 90; width: 56px; padding: 4px; display: grid; gap: 2px; visibility: hidden; opacity: 0; transform: translateY(-6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: none; filter: none; transition: opacity var(--motion-base) ease, transform var(--motion-base) ease, visibility var(--motion-base); }
.language-wrap.open .language-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.language-menu button { height: 30px; padding: 0 8px; color: var(--text-75); border-radius: 7px; text-align: center; font: 400 14px/18px var(--font); }
.language-menu button:hover, .language-menu button.selected { color: var(--blue); background: var(--c-blue-a12); }
.theme { position: relative; width: 53px; height: 28px; overflow: hidden; background: var(--c-white-a08); border-radius: 14px; }
.theme::before, .theme::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background-color: var(--c-white); background-position: center; background-repeat: no-repeat; background-size: 14px 14px; border-radius: var(--radius-round); transition: transform .35s ease, opacity var(--motion-base) ease; }
.theme::before { background-image: url('../assets/theme-moon.svg'); opacity: 1; }
.theme::after { background-image: url('../assets/theme-sun.svg'); opacity: 0; }
.theme[data-theme="light"]::before { opacity: 0; transform: translateX(25px) rotate(90deg); }
.theme[data-theme="light"]::after { opacity: 1; transform: translateX(25px) rotate(180deg); }
.login { width: 138px; height: 52px; padding: 0 20px 0 24px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; color: var(--c-white); background: var(--blue); border-radius: 26px; font: 500 16px/20px var(--font); overflow: hidden; }
.login:hover { background: #2864ff; }
.login .avatar { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; }
.login .avatar img { width: 20px; height: 20px; object-fit: contain; }
.login.is-profile,
.login.is-profile:hover { width: 138px; height: 52px; padding: 4px 20px 4px 4px; gap: 12px; justify-content: flex-start; background: var(--black); }
body.light-theme .login.is-profile,
body.light-theme .login.is-profile:hover { color: var(--text); }
.login.is-profile .avatar { width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; background: linear-gradient(145deg,#7A1FDB,#240B45); border-radius: var(--radius-round); }
.login.is-profile .avatar img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-round); }
.login .login-text { width: 66px; height: 19px; display: block; line-height: 19px; }
.login .profile-name { position: relative; width: 58px; min-width: 0; overflow: hidden; white-space: nowrap; font: 500 16px/20px var(--font); mask-image: linear-gradient(to right,#000 0,#000 calc(100% - 16px),transparent); }
.page-shell { width: 1400px; min-height: 760px; margin: 40px auto 0; display: grid; grid-template-columns: 314px minmax(0,1fr); gap: 40px; align-items: start; }
.sidebar { width: 314px; }
.add-channel { position: relative; width: 314px; height: 52px; margin-bottom: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--blue); background: transparent; border: 1px solid var(--blue); border-radius: 9px; font: 600 16px/20px var(--font); transition: color var(--motion-base) ease, background-color var(--motion-base) ease; overflow: hidden; }
.add-channel:hover { color: var(--c-white); background: var(--blue); }
.add-icon { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; font-size: 26px; line-height: 1; transition: opacity var(--motion-base) ease, transform .5s ease; }
.add-label { transition: opacity var(--motion-base) ease, transform var(--motion-base) ease; }
.add-channel:hover .add-label { opacity: 0; transform: translateY(-6px); }
.add-channel:hover .add-icon { opacity: 1; transform: rotate(360deg); }
.filters { width: 314px; overflow: visible; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.filter-section, .range-filter, .extras { position: relative; z-index: 1; margin: 0; padding: 20px; overflow: visible; border-bottom: 1px solid rgba(255,255,255,.1); }
.filter-section.selector-open, .range-filter.selector-open, .extras.selector-open, .filter-section:has(.category-selector.open), .range-filter:has(.category-selector.open), .extras:has(.category-selector.open) { z-index: 500; }
.section-title { width: 100%; height: 20px; display: flex; align-items: center; justify-content: space-between; color: var(--text); font: 300 16px/20px var(--font); text-align: left; }
.section-chevron { width: 9px; height: 5px; background: url('../assets/chevron-down.svg') center/contain no-repeat; transform: rotate(180deg); transition: transform var(--motion-base) ease; }
.collapsed .section-chevron { transform: rotate(0); }
.filter-content { position: relative; z-index: 2; max-height: 520px; margin-top: 12px; overflow: visible; transition: max-height var(--motion-slow) var(--ease-out-soft), opacity var(--motion-modal) ease, margin var(--motion-modal) ease, transform var(--motion-modal) ease; }
.collapsed .filter-content { max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transform: translateY(-6px); pointer-events: none; }
.collapsed .extra-content { margin-top: 0; }
.filters .collapsed { height: 61px; padding-top: 20px; padding-bottom: 20px; overflow: hidden; }
.category-selector { position: relative; z-index: 20; width: 274px; }
.chips { position: relative; z-index: 32; width: 274px; height: 42px; padding: 6px; display: flex; align-items: center; gap: 6px; background: var(--black); border-radius: var(--radius-md); transition: border-radius var(--motion-modal) ease, box-shadow var(--motion-modal) ease; }
.chips:hover,
.chips:active,
.chips:focus,
.chips:focus-visible {
  color: inherit;
  background: var(--black);
  outline: 0;
}
.selected-categories { position: relative; min-width: 0; flex: 1; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.selected-categories::after { content: ""; position: absolute; top: 0; right: 0; width: 54px; height: 100%; pointer-events: none; background: linear-gradient(90deg, rgba(5,5,13,0), var(--black) 88%); }
.selected-categories:has(.empty-selection)::after { display: none; }
.empty-selection { padding-left: 6px; color: var(--text-40); font: 500 14px/18px var(--font); }
.chip { height: 30px; padding: 0 10px; color: var(--c-blue-500); background: var(--c-blue-a16); border-radius: 5px; font: 400 14px/18px var(--font); transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease, background-color var(--motion-fast) ease; }
.chip:hover,
.chip:active,
.chip:focus,
.chip:focus-visible,
.chip.selected,
.chips:active .chip.selected,
.chips:focus .chip.selected {
  color: var(--c-blue-500);
  background: var(--c-blue-a16);
  outline: 0;
}
.chip.selected {
  transition-property: opacity, transform;
}
.chip.just-added { animation: chipIn var(--motion-fast) ease both; }
.chip.removing { opacity: 0; transform: scale(.86); }
.chip.more { width: 20px; padding: 0; flex: 0 0 20px; background: url('../assets/chevron-down.svg') center/9px 5px no-repeat; color: transparent; transform: rotate(0); }
.category-selector.open .chips { border-radius: 10px 10px 0 0; }
.category-selector.open .chip.more { transform: rotate(180deg); }
.dropdown-panel { position: absolute; z-index: var(--z-dropdown); top: 42px; left: 0; width: 274px; visibility: hidden; opacity: 0; transform: translateY(-8px) scaleY(.96); transform-origin: top center; background: var(--black); border-radius: 0 0 10px 10px; transition: opacity var(--motion-modal) ease, transform var(--motion-panel) var(--ease-out-soft), visibility var(--motion-modal); }
.category-selector.open .dropdown-panel { visibility: visible; opacity: 1; transform: translateY(0) scaleY(1); }
.category-options { height: 385px; padding: 54px 12px 12px; overflow: hidden; }
.dropdown-search { position: absolute; top: 6px; left: 12px; width: 250px; height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: var(--radius-md); }
.dropdown-search img { width: 16px; height: 16px; flex: 0 0 16px; align-self: center; opacity: .4; filter: none; transition: opacity var(--motion-slow) ease, filter var(--motion-slow) ease; }
.dropdown-search.has-value img, .catalog-search.has-value img, .moderation-search.has-value img { opacity: 1; filter: brightness(0) invert(1); }
.dropdown-search input { width: 100%; min-width: 0; color: var(--text); background: transparent; border: 0; outline: 0; font: 400 14px/18px var(--font); }
.search-clear { display: none; }
.option-list { width: 250px; height: 319px; padding-right: 10px; overflow-y: auto; scrollbar-width: none; }
.option-list::-webkit-scrollbar { display: none; }
.option-list button { width: 100%; height: 29px; padding: 0 8px; display: block; color: var(--text-75); text-align: left; font: 400 14px/18px var(--font); }
.option-list button:hover, .option-list button.selected { color: var(--blue); background: var(--c-blue-a12); }
.custom-scrollbar { position: absolute; top: 54px; right: 8px; width: 10px; height: 319px; cursor: pointer; }
.custom-scrollbar::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: #2D2D34; }
.custom-scrollbar i { position: absolute; left: 4px; top: 0; width: 2px; height: 42px; background: var(--c-white); transition: top .08s linear; }
.title-left { display: inline-flex; align-items: center; gap: 8px; }
.currency-icon { width: 18px; height: 18px; }
.currency-switch { position: relative; width: 38px; height: 20px; display: inline-block; background: var(--c-white-a08); border-radius: var(--radius-md); }
.currency-switch::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; background: #3F763B; border-radius: var(--radius-round); transform: translateX(2px); transition: transform var(--motion-base) ease, background-color var(--motion-base) ease; }
.currency-switch[aria-checked="true"]::before { background: #30A0F4; transform: translateX(20px); }
.range-values { width: 274px; display: grid; grid-template-columns: 133px 133px; gap: 8px; }
.range-values label { height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 9px; background: var(--black); border-radius: var(--radius-md); }
.range-values small { color: var(--text-40); font: 400 12px/15px var(--font); }
.range-values input { width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; font: 500 16px/20px var(--font); }
.dual-range { position: relative; width: 274px; height: 18px; margin-top: 12px; }
.dual-range::before, .range-fill { content: ""; position: absolute; top: 7px; height: 4px; border-radius: 2px; }
.dual-range::before { left: 0; right: 0; background: rgba(30,85,249,.24); }
.range-fill { left: var(--range-start); right: calc(100% - var(--range-end)); background: var(--blue); }
.dual-range input { position: absolute; inset: 0; width: 100%; height: 18px; margin: 0; pointer-events: none; appearance: none; background: transparent; }
.dual-range input::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: 0; pointer-events: auto; appearance: none; background: var(--blue); border: 2px solid #F0F2FA; border-radius: var(--radius-round); }
.extra-content { display: grid; gap: 12px; margin-top: 24px; }
.extras label { min-height: 20px; display: flex; align-items: center; gap: 8px; color: var(--text-75); font: 400 16px/20px var(--font); }
.payment-extra-filter b,
.payment-extra-filter .payment-currency-word {
  font-weight: 700;
}
.payment-extra-filter .currency-word-rub,
.currency-word-rub { color: #3F763B; font-weight: 700; }
.payment-extra-filter .currency-word-gram,
.currency-word-gram { color: #30A0F4; font-weight: 700; }
.extras input[type="checkbox"] { width: 20px; height: 20px; margin: 0; appearance: none; border: 1px solid #343640; border-radius: 4px; transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, background-color var(--motion-fast) ease; }
.extras input[type="checkbox"]:checked { background: url('../assets/check-box.svg') center/20px 20px no-repeat; border-color: transparent; }
.filter-option-icon { width: 16px; height: 16px; margin-left: 0; object-fit: contain; }
.catalog-favorite-filter .filter-favorite-icon { width: 16px; height: 16px; flex: 0 0 16px; background: var(--c-orange-500); mask: url('../assets/heart-on.svg') center/contain no-repeat; -webkit-mask: url('../assets/heart-on.svg') center/contain no-repeat; }
.channel-type { margin-top: 12px; }
.channel-type strong { display: block; margin-bottom: 12px; color: var(--text); font: 300 16px/20px var(--font); }
.channel-type > div { position: relative; width: max-content; height: 38px; padding: 4px; display: flex; align-items: center; gap: 2px; background: var(--black); border-radius: var(--radius-md); overflow: hidden; }
.channel-type > div::before { content: ""; position: absolute; left: var(--type-x, 4px); top: 4px; width: var(--type-w, 46px); height: 30px; background: var(--surface); border-radius: var(--radius-xs); transition: left var(--motion-panel) ease, width var(--motion-panel) ease; }
.channel-type button { position: relative; z-index: 1; height: 30px; padding: 0 10px; color: var(--text-75); border-radius: var(--radius-xs); font: 400 14px/18px var(--font); transition: color var(--motion-base) ease; }
.channel-type button.selected { color: var(--text); background: transparent; }
.filter-actions { padding: 18px 20px; display: grid; gap: 15px; border-bottom: 1px solid rgba(255,255,255,.1); }
.filter-actions button, .clear-filters { display: flex; align-items: center; gap: 10px; color: var(--text-75); font: 400 15px/20px var(--font); text-align: left; }
.filter-actions img, .clear-filters img { width: 16px; height: 16px; object-fit: contain; }
.clear-filters { width: 100%; height: 64px; padding: 0 20px; color: #FF4050; }
.catalog-empty { position: relative; min-height: 760px; padding-bottom: 80px; }
.catalog-state-indicator { position: absolute; top: 64px; right: 0; z-index: 2; min-height: 20px; color: var(--text-75); font: 400 13px/20px var(--font); text-align: right; }
.catalog-state-indicator.is-error { color: #FF8B8B; }
.catalog-state-indicator .catalog-state-retry { margin-left: 8px; color: var(--blue); text-decoration: underline; }
.catalog-is-updating .channel-grid { opacity: .66; transition: opacity var(--motion-base) ease; }
.catalog-toolbar { width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.catalog-search { width: 371px; height: 52px; padding: 0 18px; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: var(--radius-md); }
.catalog-search img { width: 16px; height: 16px; flex: 0 0 16px; align-self: center; opacity: .4; filter: none; transition: opacity var(--motion-slow) ease, filter var(--motion-slow) ease; }
.catalog-search input { width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; appearance: none; font: 300 16px/20px var(--font); }
.catalog-search input::placeholder { color: var(--text-40); }
.catalog-controls { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.reach-periods { display: flex; align-items: center; gap: 10px; }
.reach-periods[hidden] { display: none !important; }
.reach-periods button { width: var(--period-width); height: 52px; color: var(--text-75); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-md); font: 500 16px/20px var(--font); }
.reach-periods button.selected { color: var(--black); background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.9); }
body.light-theme .reach-periods button.selected { color: var(--text); }
.catalog-sort { position: relative; width: 220px; height: 52px; padding: 0 17px; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--radius-md); transition: border-radius var(--motion-fast) ease; }
.sort-direction { width: 18px; height: 52px; display: grid; place-items: center; align-self: center; }
.sort-direction img { width: 16px; height: 16px; transition: transform .25s ease; }
.sort-direction[aria-pressed="true"] img { transform: scaleY(-1); }
.sort-dropdown { position: static; flex: 1; }
.dropdown-trigger { width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-40); font: 300 16px/20px var(--font); }
.dropdown-trigger i { width: 9px; height: 5px; background: url('../assets/chevron-down.svg') center/contain no-repeat; }
.sort-dropdown .dropdown-panel { position: absolute; z-index: var(--z-dropdown); left: 0; top: 52px; width: 220px; box-sizing: border-box; padding: 0; overflow: hidden; visibility: hidden; opacity: 0; transform: translateY(-8px) scaleY(.96); transform-origin: top center; background: var(--surface); border-radius: 0 0 10px 10px; transition: opacity var(--motion-modal) ease, transform var(--motion-panel) var(--ease-out-soft), visibility var(--motion-modal); }
.catalog-sort:has(.sort-dropdown.open) { border-radius: 10px 10px 0 0; }
.sort-dropdown.open .dropdown-panel { visibility: visible; opacity: 1; transform: translateY(0) scaleY(1); }
.sort-dropdown .dropdown-panel button { width: 100%; height: 36px; box-sizing: border-box; padding: 0 17px; display: flex; align-items: center; color: var(--text-75); text-align: left; font: 300 16px/20px var(--font); }
.sort-dropdown .dropdown-panel button:hover, .sort-dropdown .dropdown-panel button.selected { color: var(--blue); background: var(--c-blue-a12); }
.channel-grid { width: 1046px; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 338px); gap: 16px; }
.catalog-state-panel { min-height: 486px; grid-column: 1 / -1; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--text-75); background: var(--surface); border-radius: var(--radius-xl); font: 400 16px/22px var(--font); text-align: center; }
.catalog-state-panel p { margin: 0; }
.catalog-state-retry { min-width: 120px; height: 40px; padding: 0 18px; color: var(--c-white); background: var(--blue); border-radius: var(--radius-sm); font: 500 14px/18px var(--font); }
.catalog-state-retry:hover { background: #2864ff; }
@keyframes catalogSkeletonShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.channel-card { position: relative; width: 338px; height: 486px; overflow: hidden; color: var(--text); background: var(--surface); border-radius: var(--radius-xl); cursor: default; transition: box-shadow var(--motion-base) ease; }
.channel-card:hover { box-shadow: 0 0 0 2px rgba(30,85,249,.35); }
body.hot .channel-card:hover { box-shadow: 0 0 0 2px rgba(255,124,2,.35); }
.card-page-link { position: absolute; inset: 0; z-index: 7; display: block; color: inherit; text-decoration: none; border-radius: inherit; pointer-events: none; }
.card-cover { position: relative; width: 294px; height: 88px; margin-left: 44px; overflow: visible; border-radius: 0 16px 0 0; cursor: pointer; }
.card-cover::before { content: ""; position: absolute; inset: 0; width: 294px; background: var(--cover-bg); border-radius: 0 16px 0 0; box-shadow: inset 0 0 0 2px var(--c-white-a08); }
.card-avatar { position: absolute; z-index: 4; left: -44px; top: 0; width: 88px; height: 88px; display: grid; place-items: center; overflow: hidden; background: var(--avatar-bg); border: 12px solid var(--surface); border-radius: var(--radius-round); }
.avatar-letter { width: 64px; height: 64px; display: grid; place-items: center; color: var(--c-white); font: 700 26px/1 var(--font); }
.card-pro { position: absolute; z-index: 6; left: -36px; top: 8px; width: 41px; height: 22px; display: grid; place-items: center; color: var(--c-white); background: linear-gradient(90deg,var(--orange),var(--yellow)); border: 2px solid var(--surface); border-radius: 11px; font: 700 12px/18px var(--font); }
.card-favorite { position: absolute; z-index: 10; top: 14px; right: 15px; width: 20px; height: 20px; }
.card-favorite img { width: 18px; height: 18px; transition: transform var(--motion-base) ease, filter var(--motion-base) ease; }
.card-favorite.is-favorite-animating img { animation: favoritePop var(--motion-slow) ease; }
.card-tags { position: absolute; z-index: 6; right: 12px; bottom: 12px; display: flex; flex-direction: row-reverse; align-items: center; gap: 4px; }
.card-tag { height: 24px; padding: 0 8px; display: grid; place-items: center; color: var(--cyan); background: rgba(0,165,233,.18); border-radius: 5px; font: 400 11px/14px var(--font); }
.card-tags .card-tag,
.channel-view .detail-cover-tags .card-tag { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.card-tag.icon { width: 24px; padding: 5px; }
.card-tag.icon.ad { background: rgba(255,124,2,.18); }
.card-tag.icon img { width: 14px; height: 14px; }
.card-title-line { position: absolute; left: 24px; top: 96px; width: 290px; height: 22px; display: flex; align-items: center; gap: 9px; overflow: hidden; text-align: left; mask-image: linear-gradient(to right,#000 0,#000 calc(100% - 28px),transparent); }
.card-title { margin: 0; color: var(--text); white-space: nowrap; font: 600 18px/22px var(--font); }
.card-verified { width: 16px; height: 16px; flex: 0 0 16px; }
.card-description { position: absolute; left: 24px; top: 126px; width: 290px; height: 36px; margin: 0; padding-left: 11px; overflow: hidden; color: var(--text-75); border-left: 3px solid #058FF9; text-align: left; font: 400 12px/18px var(--font); }
.card-metrics { position: absolute; left: 12px; top: 182px; width: 314px; height: 137px; padding: 4px; display: grid; grid-template-columns: 151px 151px; grid-template-rows: 45px 45px 31px; gap: 4px; background: var(--surface-2); border-radius: var(--radius-lg); }
.metric { width: 151px; height: 45px; padding: 6px 10px 0; background: transparent; border: 1px solid var(--c-white-a08); border-radius: var(--radius-sm); }
.metric small { display: block; color: var(--text-40); font: 400 10px/12px var(--font); }
.metric strong { margin-top: 2px; display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: 500 16px/19px var(--font); }
/* Значок появляется только когда есть с чем сравнить (data-mark). */
.metric[data-mark] strong::after { content: ""; width: 12px; height: 12px; background: url('../assets/metric-emotion-puzzled.svg') center/contain no-repeat; }
.metric[data-mark="good"] strong::after { background-image: url('../assets/metric-emotion-happy.svg'); }
.metric[data-mark="bad"] strong::after { background-image: url('../assets/metric-emotion-sad.svg'); }
.metric[data-mark="up"] strong::after { background-image: url('../assets/metric-line-up.svg'); }
.metric[data-mark="down"] strong::after { background-image: url('../assets/metric-line-down.svg'); }
.metric-orders strong::after, .metric-score strong::after { display: none; }
.metric-orders, .metric-score { height: 31px; padding: 0 10px 0 12px; display: flex; align-items: center; background: var(--surface); border: 0; }
.metric-orders strong, .metric-score strong { margin: 0; color: var(--blue); }
.metric-score strong { color: #F7C02A; }
.metric-orders small, .metric-score small { margin-left: auto; }
.metric-icon { position: relative; top: 1.5px; margin-right: 5.5px; }
.card-price { position: absolute; left: 0; right: 0; top: 335px; display: flex; align-items: center; justify-content: center; color: var(--text); font: 600 24px/29px var(--font); }
.price-ruble { margin-left: 6px; }
.price-gram { width: .9em; height: .9em; margin-left: 0; display: inline-block; flex: 0 0 auto; color: currentColor; background: currentColor; vertical-align: -0.08em; mask: url('../assets/gram-price.svg') center/contain no-repeat; -webkit-mask: url('../assets/gram-price.svg') center/contain no-repeat; }
.card-price .price-gram { width: .78em; height: .78em; margin-left: .25em; vertical-align: -0.04em; }
.card-slots { position: absolute; z-index: 10; left: 50%; top: 372px; width: 169px; height: 38px; padding: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--text-75); background: var(--black); border-radius: 9px; transform: translateX(-50%); font: 400 14px/18px var(--font); }
.card-slots::before { content: ""; position: absolute; left: var(--slot-x, 4px); top: 4px; width: var(--slot-w, 45px); height: 30px; background: var(--surface); border-radius: var(--radius-xs); transition: left var(--motion-panel) ease, width var(--motion-panel) ease; }
.card-slots.no-slot-transition::before { transition: none; }
.card-slots button { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; height: 30px; padding: 6px 0; display: grid; place-items: center; color: var(--text-75); border-radius: var(--radius-xs); transition: color var(--motion-base) ease; }
.card-slots .selected { color: var(--text); background: transparent; }
.card-buy { position: absolute; z-index: 10; left: 12px; bottom: 12px; width: 314px; height: 48px; color: var(--c-white); background: var(--blue); border: 1px solid var(--blue); border-radius: var(--radius-md); font: 600 16px/20px var(--font); transition: left .32s var(--ease-out-expo), width .32s var(--ease-out-expo), background-color var(--motion-base) ease, border-color var(--motion-base) ease; }
.card-buy:hover, .card-buy:active { color: var(--c-white); background: var(--blue); }
.hot-buy-label, .card-countdown { display: none; }
.hot-deal { display: none; }
body.hot .channel-card { height: 540px; }
body.hot .card-slots { display: none; }
body.hot .hot-deal { position: absolute; left: 50%; top: 372px; display: flex; align-items: center; justify-content: center; gap: 4px; transform: translateX(-50%); white-space: nowrap; font: 400 14px/18px var(--font); }
body.hot .hot-deal span, body.hot .hot-deal b { min-height: 30px; padding: 6px 10px; display: grid; place-items: center; color: var(--c-white); border-radius: var(--radius-xs); background: var(--surface-2); }
body.hot .hot-deal b { background: linear-gradient(90deg, #FF9496 0%, #FF0000 100%); font-weight: 400; }
body.hot .card-buy { bottom: 46px; color: var(--c-white); border-color: var(--orange); background: var(--orange); }
body.hot .card-buy:hover, body.hot .card-buy:active { color: var(--c-white); background: var(--orange); }
body.hot .catalog-buy-label { display: none; }
body.hot .hot-buy-label { display: inline; }
body.hot .card-countdown { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--orange); background: var(--c-orange-a12); border-radius: var(--radius-md); font: 500 14px/18px var(--font); }
.clock-icon { width: 18px; height: 18px; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.timer-clock-icon { width: 18px; min-width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; aspect-ratio: 1 / 1; display: grid; place-items: center; font-size: 18px; line-height: 18px; }
.timer-clock-icon > .timer-clock-image { width: 13.5px; min-width: 13.5px; height: 13.5px; min-height: 13.5px; flex: 0 0 13.5px; aspect-ratio: 1 / 1; display: block; object-fit: contain; }

.login.is-profile .avatar .avatar-initial { width: 100%; height: 100%; display: grid; place-items: center; color: var(--c-white); font: 600 18px/1 var(--font); }

/* Страница канала, боковые меню профиля и первые правила личного кабинета. */
/* Порядок подключения важен: поздние правки страницы канала лежат в 09-файле. */
.channel-page { grid-template-columns: 314px 692px 314px; }
.channel-sidebar { width: 314px; }
.channel-tabs { width: 314px; height: 202px; padding: 4px; display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.channel-tabs button { height: 62px; padding: 0 20px; color: var(--text-75); border-radius: var(--radius-sm); text-align: left; font: 600 18px/22px var(--font); transition: color var(--motion-base) ease, background-color .25s ease; }
.channel-tabs button.selected { color: var(--text); background: var(--surface-2); }
.channel-dates { width: 314px; height: 86px; margin-top: 20px; padding: 16px; display: grid; gap: 14px; background: #000003; border-radius: var(--radius-lg); }
.channel-dates div { width: 282px; height: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: var(--text-75); font: 400 14px/18px var(--font); }
.channel-dates i { height: 1px; opacity: .12; border-bottom: 1px dashed var(--c-white); }
.channel-dates b { color: var(--c-white); font-weight: 400; }
.channel-detail-card { width: 692px; min-height: 360px; overflow: hidden; background: var(--surface); border-radius: var(--radius-xl); }
.detail-cover { height: 132px; position: relative; background: var(--cover-bg); box-shadow: inset 0 0 0 2px var(--c-white-a08); }
.detail-avatar { position: absolute; left: 32px; bottom: -44px; width: 88px; height: 88px; display: grid; place-items: center; background: var(--surface); border-radius: var(--radius-round); }
.detail-avatar span { width: 64px; height: 64px; display: grid; place-items: center; color: var(--c-white); background: var(--avatar-bg); border-radius: var(--radius-round); font: 700 24px/1 var(--font); }
.detail-body { padding: 60px 32px 32px; }
.detail-body h1 { margin: 0 0 12px; color: var(--text); font: 600 28px/34px var(--font); }
.detail-body p { max-width: 560px; margin: 0; color: var(--text-75); font: 400 16px/24px var(--font); }
.detail-stats { margin-top: 28px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.detail-stats div { min-height: 70px; padding: 12px; background: var(--surface-2); border-radius: var(--radius-lg); }
.detail-stats small { display: block; color: var(--text-40); font: 400 12px/16px var(--font); }
.detail-stats strong { display: block; margin-top: 4px; color: var(--text); font: 600 18px/22px var(--font); }
.channel-buy-column { width: 314px; display: grid; gap: 40px; align-content: start; }
.channel-link-row { min-height: 52px; display: grid; grid-template-columns: 1fr 174px; align-items: center; gap: 20px; }
.channel-link-row > span { color: var(--text-75); font: 400 14px/18px var(--font); }
.channel-link-row > span b { color: var(--orange); font-weight: 400; }
.channel-copy { width: 174px; height: 52px; padding: 0 16px 0 20px; display: flex; align-items: center; justify-content: space-between; color: var(--blue); background: var(--c-blue-a12); border-radius: var(--radius-md); font: 600 14px/18px var(--font); }
.channel-copy img { width: 18px; height: 18px; }
.channel-copy.copied { color: var(--c-white); background: var(--blue); }
.channel-price-card { position: relative; width: 314px; height: 179px; background: var(--surface); border-radius: var(--radius-lg); }
.static-price { position: static; height: 58px; padding-top: 20px; }
.detail-slots { top: 66px; }
.detail-buy { left: 0; right: 0; bottom: 16px; margin: 0 auto; }
.load-more { width: 314px; height: 52px; margin: 50px auto; color: var(--blue); background: transparent; border: 1px solid var(--blue); border-radius: var(--radius-md); font: 600 16px/20px var(--font); }

.profile-page { position: relative; grid-template-columns: 314px minmax(0,1046px); grid-template-rows: 52px max-content max-content; column-gap: 40px; row-gap: 0; align-content: start; }
.profile-sidebar { grid-row: 1 / -1; }
.profile-page-title { grid-column: 2; grid-row: 1; height: 52px; margin: 0; display: flex; align-items: center; color: var(--text); font: 600 30px/36px var(--font); }
.profile-page-title-balance {
  position: relative;
  justify-content: center;
  text-align: center;
}
.profile-page-title-balance .profile-balance-action {
  position: absolute;
  right: 0;
  top: 0;
}
.profile-menu-stack { display: grid; gap: 20px; }
.profile-menu-card { width: 314px; min-height: 0; padding: 4px; display: grid; grid-template-rows: auto minmax(0, 1fr); align-content: start; background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: grid-template-rows .32s var(--ease-out-expo); }
.profile-menu-title { height: 38px; margin: -4px -4px 4px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; color: var(--blue); background: var(--c-blue-a12); font: 500 14px/18px var(--font); text-align: left; }
.profile-menu-title i { width: 9px; height: 5px; background: url('../assets/chevron-down.svg') center/contain no-repeat; transform: rotate(180deg); transition: transform var(--motion-modal) ease; }
.profile-menu-card.collapsed .profile-menu-title i { transform: rotate(0); }
.profile-menu-items { position: relative; min-height: 0; display: grid; gap: 4px; overflow: hidden; opacity: 1; transition: opacity var(--motion-panel) ease; }
.profile-menu-items::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 306px;
  height: 62px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(calc(var(--profile-active-index, 0) * 66px));
  transition: transform .32s var(--ease-out-expo), opacity var(--motion-fast) ease;
  pointer-events: none;
}
.profile-menu-items:has(> button.selected)::before { opacity: 1; }
.profile-sell-menu .profile-menu-title { color: #2AB822; background: rgba(42,184,34,.12); }
.profile-manage-menu .profile-menu-title { color: var(--orange); background: var(--c-orange-a12); }
.profile-menu-items > button { position: relative; z-index: 1; box-sizing: border-box; width: 306px; height: 62px; min-height: 62px; padding: 0 20px; padding-top: 0; padding-bottom: 0; color: var(--text-75); text-align: left; border-radius: var(--radius-sm); font: 400 18px/22px var(--font); transition: color var(--motion-base) ease, font-weight var(--motion-base) ease; }
.profile-menu-items > button.selected { color: var(--text); background: transparent; font-weight: 600; }
.safe-deal-order-count { width: 24px; min-width: 24px; height: 24px; margin-left: 15px; padding: 0; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; color: var(--c-white); border-radius: var(--radius-round); background: var(--c-blue-500); font: 600 12px/24px var(--font); }
.profile-content { grid-column: 2; grid-row: 2; width: 1046px; min-height: 214px; margin-top: 40px; background: var(--surface); border-radius: var(--radius-lg); }
.profile-content-main { min-height: 0; height: 134px; padding: 26px 32px 32px; }
.profile-content.profile-content-main { min-height: 134px; }
.profile-main-stack {
  grid-column: 2;
  grid-row: 2;
  width: 1046px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.profile-main-stack .profile-content-main {
  width: 1046px;
  margin-top: 0;
}
.profile-id-row { display: grid; grid-template-columns: 479px 479px; gap: 24px; }
.profile-id-field { height: 70px; display: grid; gap: 10px; }
.profile-id-field > span { color: var(--text); font: 600 18px/22px var(--font); }
.profile-id-field button { position: relative; width: 100%; height: 38px; padding: 0 48px 0 16px; display: flex; align-items: center; color: var(--blue); background: var(--c-blue-a12); border-radius: var(--radius-sm); font: 500 14px/18px var(--font); transition: none; }
.profile-id-field button img { position: absolute; right: 18px; width: 18px; height: 18px; }
.profile-id-field button.copied { color: var(--c-white); background: var(--blue); }
.profile-content-main + .profile-actions,
.profile-actions {
  position: static;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.profile-delete { width: 52px; height: 52px; display: grid; place-items: center; background: transparent; border: 0; border-radius: var(--radius-md); transition: background-color var(--motion-base) ease; }
.profile-delete:hover { background: var(--c-red-a12); }
.profile-delete img { width: 20px; height: 22px; display: block; object-fit: contain; }
.profile-logout { width: 99px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--c-red-500); background: transparent; border: 1px solid var(--c-red-500); border-radius: var(--radius-md); font: 700 16px/20px var(--font); }
.profile-placeholder { padding: 32px; color: var(--text); font: 600 24px/30px var(--font); }
.profile-content-statistics {
  min-height: 572px;
  padding: 0;
  background: transparent;
  border: 0;
}

/* Channel detail page: requested final layout */
.channel-page {
  row-gap: 0;
  padding-bottom: 80px;
}
.channel-dates {
  width: 314px;
  height: auto;
  padding: 16px 20px;
  display: grid;
  gap: 14px;
  background: #000003;
  border-radius: var(--radius-lg);
}
.channel-dates div {
  width: 100%;
  height: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  color: var(--text-75);
  font: 400 14px/18px var(--font);
}
.channel-dates i {
  height: 1px;
  align-self: end;
  opacity: 1;
  border: 0;
  background: repeating-linear-gradient(90deg, var(--c-white-a12) 0 8px, transparent 8px 14px);
}
.channel-dates b {
  color: var(--text-75);
  font: 400 14px/18px var(--font);
}
.channel-detail-card {
  overflow: hidden;
  border: 1px solid var(--line);
}
.detail-cover {
  height: 220px;
  background: var(--cover-bg);
  box-shadow: none;
}
.detail-body {
  padding: 16px 32px 32px;
}
.detail-body h1 {
  margin: 0 0 42px 138px;
  color: var(--c-white);
  font: 600 24px/30px var(--font);
}
.detail-separator {
  width: 100%;
  max-width: 628px;
}
.detail-tgstat-head {
  display: none;
}
.detail-tgstat-link {
  width: 624px;
  margin-top: 16px;
  display: block;
  border-radius: var(--radius-xs);
  transition: box-shadow var(--motion-base) ease;
}
.detail-tgstat-link:hover,
.detail-tgstat-link:focus-visible {
  box-shadow: inset 0 0 0 1px var(--c-ink-800);
}
.detail-tgstat-widget {
  width: 624px;
  max-width: 624px;
  height: auto;
  margin: 0;
  display: block;
  border-radius: var(--radius-md);
}
.channel-buy-column {
  gap: 20px;
}
.channel-link-row {
  margin-bottom: 16px;
}
.channel-price-card {
  width: 314px;
  height: 179px;
}
.channel-price-card .static-price {
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  height: auto;
  padding: 0;
  display: flex;
  justify-content: center;
}
.channel-price-card .detail-slots {
  top: 66px;
}
.channel-price-card .detail-buy {
  width: 290px;
  height: 48px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
}
.channel-price-card .detail-buy.in-cart {
  left: 12px;
  width: 234px;
  right: auto;
}
.channel-tgstat-card {
  width: 314px;
  height: 109px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #000003;
  border-radius: var(--radius-lg);
}
.channel-tgstat-card span {
  color: var(--c-white);
  font: 500 16px/20px var(--font);
}
.channel-tgstat-card a {
  height: 43px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--c-white);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--c-white-a20);
  border-radius: var(--radius-sm);
  font: 500 14px/18px var(--font);
}
.channel-tgstat-card img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.channel-reviews { width: 100%; margin-top: 28px; color: var(--text); }
.channel-reviews-divider { width: 100%; height: 1px; margin-bottom: 24px; background: var(--c-ink-700); }
.channel-reviews-header { display: flex; align-items: center; justify-content: flex-start; }
.channel-reviews-header h2 { margin: 0; color: var(--c-white); font: 600 24px/30px var(--font); }
.channel-reviews-header p { margin: 7px 0 0; color: var(--text-50); font: 400 13px/18px var(--font); }
.channel-reviews-header p b { color: var(--text-75); font-weight: 500; }
.channel-reviews-summary { --channel-reviews-summary-ascent-correction: 2px; width: 100%; margin-top: 30px; display: grid; grid-template-columns: 180px minmax(0, 1fr) 180px; column-gap: 32px; align-items: end; }
.channel-reviews-summary:not(.has-histogram) { grid-template-columns: minmax(0, 1fr) 180px; }
.channel-reviews-score { width: 100%; min-height: 80px; padding: var(--channel-reviews-summary-ascent-correction) 0 0; display: flex; align-self: center; justify-self: start; align-items: flex-start; }
.channel-reviews-score-main { display: flex; align-items: flex-end; gap: 0; }
.channel-reviews-score-main > strong { color: var(--c-orange-500); font: 600 80px/80px var(--font); }
.channel-reviews-score-main > .channel-reviews-scale { align-self: flex-end; margin: 0 0 0 5px; color: var(--c-orange-500); font: 600 14px/18px var(--font); white-space: nowrap; }
.channel-reviews-controls { width: 100%; min-height: 80px; display: flex; align-self: center; justify-self: end; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7.5px; }
.channel-reviews-period { color: #7C7C7C; font: 400 14px/18px var(--font); text-align: center; white-space: nowrap; }
.channel-reviews-filter-field { width: 200px; min-width: 200px; height: 25.6px; box-sizing: border-box; display: block; color: var(--text-50); font: 400 12px/16px var(--font); }
.channel-reviews-filter-dropdown { position: relative; z-index: 1; width: 200px; min-width: 200px; height: 25.6px; }
.channel-reviews-filter-dropdown.open { z-index: 10; }
.channel-reviews-filter-trigger { position: relative; z-index: 1; width: 200px; min-width: 200px; height: 25.6px; box-sizing: border-box; padding: 0 32px 0 10px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font: 400 13px/18px var(--font); text-align: left; pointer-events: auto; }
.channel-reviews-filter-trigger span { width: 100%; text-align: left; }
.channel-reviews-filter-trigger i { position: absolute; right: 10px; top: 50%; width: 9px; height: 5px; transform: translateY(-50%); }
.channel-reviews-filter-dropdown.open .channel-reviews-filter-trigger i { transform: translateY(-50%) rotate(180deg); }
.channel-reviews-filter-dropdown .dropdown-panel { top: 29.6px; width: 200px; min-width: 200px; min-height: 25.6px; box-sizing: border-box; padding: 4px; display: grid; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); pointer-events: auto; }
.channel-reviews-filter-dropdown .dropdown-panel button { height: 25.6px; padding: 0 10px; justify-content: flex-start; color: var(--text-75); border-radius: var(--radius-xs); font: 400 13px/18px var(--font); }
.channel-reviews-filter-dropdown .dropdown-panel button:hover,
.channel-reviews-filter-dropdown .dropdown-panel button:focus-visible,
.channel-reviews-filter-dropdown .dropdown-panel button.selected { color: var(--blue); background: var(--c-blue-a12); outline: 0; }
.channel-reviews-histogram { width: 180px; justify-self: center; align-self: center; margin: 0; padding: var(--channel-reviews-summary-ascent-correction) 0 0; background: transparent; border: 0; border-radius: 0; }
.channel-reviews-histogram h3 { display: none; }
.channel-reviews-histogram-rows { width: 180px; margin: 0; display: grid; grid-template-rows: repeat(5, 9px); row-gap: 4px; }
.channel-reviews-histogram-row { height: 9px; min-height: 9px; box-sizing: border-box; display: grid; grid-template-columns: 62px 100px; align-items: center; justify-content: center; column-gap: 8px; }
.channel-reviews-histogram-star-group { width: 62px; height: 9px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; }
.channel-reviews-histogram-star { width: 10px; height: 9px; display: block; flex: 0 0 10px; object-fit: contain; }
.channel-reviews-histogram-track { width: 100px; height: 2px; min-height: 2px; max-height: 2px; overflow: hidden; background: #D9D9D9; border-radius: 1px; }
.channel-reviews-histogram-track i { display: block; height: 2px; min-width: 0; min-height: 2px; max-height: 2px; background: var(--c-orange-500); border-radius: 1px; }
.channel-review-star { width: 19px; height: 17px; display: block; object-fit: contain; }
.channel-review-rating { display: inline-flex; flex: 0 0 auto; gap: 5px; align-items: center; justify-content: flex-end; margin-left: auto; white-space: nowrap; }
.channel-reviews-list { margin-top: 36px; display: grid; row-gap: 20px; }
.channel-review-item { padding: 0 0 20px; border-bottom: 1px solid var(--c-ink-700); }
.channel-review-item:last-child { padding-bottom: 0; border-bottom: 0; }
.channel-review-item-head { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.channel-review-item-head > .channel-review-author-meta { min-width: 0; flex: 1 1 auto; }
.channel-review-author { min-width: 0; display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: start; gap: 20px; }
.channel-review-author-content { min-width: 0; display: grid; gap: 10px; }
.channel-review-author-meta { min-width: 0; display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.channel-review-author-meta > strong,
.channel-review-author-meta > small { min-width: 0; overflow-wrap: anywhere; }
.channel-review-avatar { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; overflow: hidden; color: var(--c-white); background: var(--blue); border-radius: var(--radius-round); font: 600 14px/18px var(--font); }
.channel-review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.channel-review-item-head strong { color: var(--c-white); font: 700 14px/18px var(--font); }
.channel-review-author small { color: #7C7C7C; font: 400 14px/18px var(--font); }
.channel-review-body { box-sizing: border-box; width: 100%; margin: 0; }
.channel-review-body p { margin: 0; color: var(--text-75); font: 400 14px/20px var(--font); overflow-wrap: anywhere; }
.channel-review-item-text.channel-review-empty-text { color: #7C7C7C; }
.channel-reviews-load-more { width: 180px; height: 38px; margin: 0 auto; color: var(--blue); background: transparent; border: 1px solid var(--blue); border-radius: var(--radius-sm); font: 500 14px/18px var(--font); cursor: pointer; }
.channel-reviews-load-more:disabled { opacity: .6; cursor: default; }
.channel-reviews-state { margin-top: 16px; padding: 24px 16px; color: var(--text-50); background: var(--surface-2); border-radius: var(--radius-md); font: 400 14px/20px var(--font); text-align: center; }
.channel-reviews-empty-state { color: var(--text-50); }
.channel-reviews-state.is-error { color: #FF8B8B; }

/* Channel page vertical alignment from header menu */
.channel-page {
  /* Лишнюю высоту высокой правой колонки забирает пустая шестая строка (1fr), а не карточка канала:
     иначе под короткой карточкой (без виджета TGStat) получалась дыра перед блоком «Администратор». */
  grid-template-rows: 4px 52px 36px max-content max-content 1fr !important;
  row-gap: 0 !important;
}
.channel-detail-card {
  grid-row: 4 !important;
  margin-top: 0 !important;
}
.channel-buy-column {
  grid-row: 2 / 7 !important;
  padding-top: 0 !important;
}

/* Hot offer price fields: avoid double disabled opacity */
.hot-condition-row .price-field.disabled {
  opacity: 1 !important;
}
.hot-condition-row.locked,
.hot-condition-row.status-disabled {
  opacity: .45;
}
.hot-condition-row.locked .price-field.disabled,
.hot-condition-row.status-disabled .price-field.disabled {
  opacity: 1 !important;
}

/* Channel detail page final layout */
.channel-page {
  grid-template-columns: 314px 692px 314px;
  grid-template-rows: 44px 52px 36px auto;
  align-items: start;
}
.channel-sidebar {
  padding-top: 0;
}
.channel-tabs {
  box-shadow: inset 0 0 0 1px var(--line);
  border: 0;
}
.channel-dates {
  height: auto;
  padding: 16px 20px;
  gap: 14px;
  background: #000003;
  border-radius: var(--radius-lg);
}
.channel-dates div {
  width: 100%;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
}
.channel-dates i {
  height: 1px;
  align-self: end;
  border: 0;
  opacity: 1;
  background: repeating-linear-gradient(90deg, var(--c-white-a12) 0 8px, transparent 8px 14px);
}
.channel-dates b {
  color: var(--text-75);
  font: 400 14px/18px var(--font);
}
.channel-detail-card {
  grid-column: 2;
  grid-row: 4;
  width: 692px;
  min-height: 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-xl);
}
.channel-detail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
}
.channel-detail-state {
  min-height: 260px;
  display: grid;
  place-items: center;
}
.channel-detail-message {
  width: 100%;
  padding: 32px;
  text-align: center;
}
.channel-detail-message h1 {
  margin: 0;
  color: var(--c-white);
  font: 600 24px/30px var(--font);
}
.channel-detail-message p {
  margin: 12px auto 0;
  max-width: 420px;
  color: var(--text-75);
  font: 400 16px/22px var(--font);
}
.detail-cover {
  height: 160px;
  position: relative;
  background: var(--cover-bg);
  border-radius: 16px 16px 0 0;
  box-shadow: inset 0 0 0 2px var(--c-ink-900);
}
.detail-avatar {
  position: absolute;
  left: 32px;
  bottom: -60px;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--avatar-bg);
  border: 3px solid var(--c-ink-900);
  border-radius: var(--radius-round);
}
.detail-avatar img,
.detail-avatar span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: var(--c-white);
  background: var(--avatar-bg);
  border-radius: var(--radius-round);
  font: 700 34px/1 var(--font);
}
.detail-body {
  padding: 16px 32px 32px;
}
.detail-body h1 {
  margin: 0 0 50px 170px;
  color: var(--c-white);
  font: 600 24px/30px var(--font);
}
.detail-stats {
  width: 628px;
  height: 102px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 4px;
}
.detail-stats div {
  min-height: 0;
  padding: 12px 10px;
  background: var(--c-ink-900);
  border-radius: var(--radius-md);
}
.detail-stats small {
  color: var(--text-40);
  font: 400 10px/14px var(--font);
}
.detail-stats strong {
  margin-top: 8px;
  color: var(--c-white);
  font: 600 18px/22px var(--font);
}
.detail-description {
  width: 628px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 8px;
}
/* Линия слева растягивается по высоте текста: одна строка — короткая линия (не больше трёх строк). */
.detail-description i {
  width: 3px;
  align-self: stretch;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 10px #058FF9;
}
.detail-description p {
  width: 617px;
  max-height: 57px;
  margin: 0;
  overflow: hidden;
  color: var(--text-75);
  font: 500 16px/19px var(--font);
}
.detail-separator {
  width: 692px;
  max-width: none;
  height: 1px;
  margin: 30px 0 0 -32px;
  background: var(--c-ink-700);
}
.channel-view .detail-separator-before-statistics {
  width: calc(100% + 64px);
  max-width: none;
  margin-left: -32px;
}
.detail-body h2 {
  margin: 28px 0 0;
  color: var(--c-white);
  font: 600 24px/30px var(--font);
}
.detail-tgstat-head {
  width: 624px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-tgstat-head h3 {
  margin: 0;
  color: var(--c-white);
  font: 500 20px/24px var(--font);
}
.detail-tgstat-head a {
  width: 105px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: transparent;
  border: 1px solid var(--blue);
  border-radius: var(--radius-xs);
  font: 500 14px/18px var(--font);
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}
.detail-tgstat-head a:focus,
.detail-tgstat-head a:hover {
  color: var(--c-white);
  background: var(--blue);
}
.detail-tgstat-widget {
  width: 624px;
  max-width: 624px;
  height: auto;
  margin-top: 16px;
  display: block;
  border-radius: var(--radius-md);
}
.channel-buy-column {
  grid-column: 3;
  grid-row: 2 / span 3;
  width: 314px;
  padding-top: 0;
  display: grid;
  gap: 36px;
  align-content: start;
}
.channel-link-row {
  width: 100%;
  height: 52px;
  display: grid;
  grid-template-columns: 190px 314px;
  align-items: center;
  justify-items: end;
  gap: 40px;
  transform: translateX(-230px);
}
.channel-link-row > span {
  white-space: nowrap;
  text-align: right;
}
.channel-copy {
  width: 314px;
  height: 52px;
  background: var(--c-blue-a12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.channel-price-card {
  width: 314px;
}
.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.profile-stat-card {
  height: 180px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.profile-stat-card span {
  color: var(--text-75);
  font: 400 16px/20px var(--font);
}
.profile-stat-card strong {
  color: var(--text);
  font: 600 42px/48px var(--font);
  letter-spacing: -0.02em;
}
.footer { width: 1400px; min-height: 220px; margin: auto auto 0; padding: 42px 54px; display: grid; grid-template-columns: repeat(4,1fr); gap: 72px; color: var(--text-75); background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; font: 400 16px/22px var(--font); }
.footer div { display: flex; flex-direction: column; gap: 14px; }
.footer h3 { margin: 0 0 10px; color: var(--blue); font: 600 18px/22px var(--font); }
.footer-copyright { margin-top: 14px; }
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; background: rgba(0,0,0,.55); animation: modalFade var(--motion-base) ease; }
.modal-card { position: relative; width: min(454px, calc(100vw - 32px)); min-height: 257px; padding: 32px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2xl); text-align: center; animation: modalLift var(--motion-modal) ease; }
.auth-card { transform: translateY(-20%); }
.modal-close { position: absolute; right: 20px; top: 18px; color: var(--text-40); font-size: 24px; }
.modal-card h2 { margin: 0; color: var(--text); font: 600 32px/39px var(--font); }
.modal-card p { margin: 12px 0 0; color: var(--text-75); font: 400 16px/20px var(--font); }
.auth-note { display: block; margin-top: 16px; color: var(--text-75); font: 400 12px/16px var(--font); }
.telegram-button { width: 253px; height: 48px; margin: 24px auto 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--c-white); background: #0088CC; border-radius: var(--radius-md); font: 600 16px/20px var(--font); }
.telegram-button img { width: 20px; height: 20px; }
.add-channel-card { width: min(454px, calc(100vw - 32px)); height: 637px; padding: 32px 12px; text-align: left; transform: translateY(-10%); }
.add-channel-card h2 { text-align: center; }
.add-channel-card .modal-subtitle { display: none; }
.channel-steps { margin-top: 24px; display: grid; gap: 12px; }
.channel-step { position: relative; width: 430px; margin: 0 auto; padding: 20px 16px 20px 64px; color: var(--text-75); background: var(--surface-2); border-radius: var(--radius-lg); font: 400 16px/20px var(--font); }
.channel-step:nth-child(1) { height: 120px; }
.channel-step:nth-child(2) { height: 89px; }
.channel-step:nth-child(3) { height: 120px; }
.channel-step:nth-child(4) { height: 70px; }
.step-number { position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--c-white); background: var(--orange); border-radius: var(--radius-round); font: 600 16px/20px var(--font); }
.channel-step b { color: var(--c-white); font-weight: 600; }
.step-info { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: inline-grid; width: 20px; height: 20px; margin-left: 0; place-items: center; color: var(--text-75); }
.step-info svg { display: block; }
.bot-copy { width: 100%; height: 44px; margin-top: 13px; padding: 0 14px 0 16px; display: flex; align-items: center; justify-content: space-between; color: var(--blue); background: var(--c-blue-a12); border-radius: var(--radius-sm); font: 500 14px/18px var(--font); transition: none; }
.bot-copy img { width: 18px; height: 18px; }
.bot-copy > span { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.copy-success { display: none !important; }
.bot-copy.copied .copy-default { display: none !important; }
.bot-copy.copied { color: var(--c-white); background: var(--blue); animation: none; }
.bot-copy.copied .copy-success { display: flex !important; }
.submit-channel { position: relative; width: 176px; height: 48px; margin: 28px auto 0; display: flex; align-items: center; justify-content: center; color: var(--blue); background: transparent; border: 1px solid var(--blue); border-radius: var(--radius-md); transition: color var(--motion-base) ease, background-color var(--motion-base) ease, border-color var(--motion-base) ease; }
.submit-channel:hover, .submit-channel:active { color: var(--c-white); background: var(--blue); }
.submit-channel.is-loading { color: transparent; background: #5087FF; border-color: #5087FF; pointer-events: none; }
.submit-channel.is-loading::after { content: ""; position: absolute; left: calc(50% - 12px); top: calc(50% - 12px); width: 24px; height: 24px; margin: 0; border: 2px solid rgba(255,255,255,.35); border-top-color: var(--c-white); border-radius: var(--radius-round); transform-origin: 50% 50%; animation: loaderSpin .75s linear infinite; }

/* Заглушки подгружаемых блоков страницы канала: место занято сразу, страница не прыгает. */
.detail-tgstat-link.is-loading { aspect-ratio: 1928 / 1210; max-width: 100%; background: var(--surface-2); }
.detail-tgstat-link .detail-tgstat-widget { transition: opacity var(--motion-base) ease; }
.detail-tgstat-link.is-loading .detail-tgstat-widget { opacity: 0; }
.channel-reviews-skeleton-score { width: 120px; height: 80px; border-radius: var(--radius-md); }
.channel-reviews-skeleton-period { width: 130px; height: 18px; }
.channel-reviews-skeleton-row { display: block; width: 100%; height: 96px; border-radius: var(--radius-md); }

/* Модалки, форма добавления канала, анимации, правки 2026-06, администраторы и пользователи. */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalLift { from { opacity: 0; transform: translateY(calc(var(--modal-y, 0px) + 12px)); } to { opacity: 1; } }
@media (max-width: 1500px) { body { min-width: 0; } .header { padding: 0 24px; } .page-shell, .footer { width: calc(100% - 48px); } }
@media (max-width: 900px) { .header { height: 116px; grid-template-columns: 1fr auto; grid-template-rows: 52px 56px; grid-template-areas: "brand actions" "nav nav"; padding: 8px 16px 0; } .header::after { top: 116px; } .brand { grid-area: brand; } .catalog-menu { grid-area: nav; height: 56px; } .catalog-menu::after { left: calc(50% - 158px); } .header-actions { grid-area: actions; gap: 12px; } .page-shell { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); } .sidebar, .add-channel, .filters { width: 100%; min-width: 0; } .channel-grid { width: 100%; grid-template-columns: repeat(auto-fill, minmax(0, 338px)); justify-content: center; } .footer { grid-template-columns: 1fr; } .footer-empty { display: none !important; } }



.step-text { display: block; }
.channel-step:nth-child(2), .channel-step:nth-child(4) { display: flex; align-items: center; }
.step-red { color: #E62229; font-weight: 400; }
.step-blue { color: var(--blue); }
.catalog-search img { transition: opacity var(--motion-slow) ease, filter var(--motion-slow) ease; }
.search-clear { display: none !important; }
.reach-periods button { transition: color var(--motion-base) ease, background-color var(--motion-panel) ease, border-color var(--motion-panel) ease, transform var(--motion-fast) ease; }
.reach-periods button.selected { animation: periodSelect var(--motion-base) ease; }
.filter-actions button img { transition: transform .45s ease, filter var(--motion-base) ease; }
.save-search[aria-pressed="true"] img { animation: favoritePop var(--motion-slow) ease; filter: none; }
.restore-search.is-spinning img { animation: restoreSpin .55s ease; }
@keyframes chipIn { from { opacity: 0; transform: scale(.86) translateY(-2px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes checkboxPop { 0% { transform: scale(.82); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes favoritePop { 0% { transform: scale(.8); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes restoreSpin { to { transform: rotate(360deg); } }
@keyframes periodSelect { 0% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes copyPulse { 0% { transform: scale(.98); } 100% { transform: scale(1); } }


.metric-icon-img { width: 16px; height: 16px; object-fit: contain; flex: 0 0 16px; }
.metric-orders .metric-icon-img { margin-right: 5.5px; }
.metric-score .metric-icon-img { margin-right: 6.25px; }
input[type="search"]::-webkit-search-cancel-button { appearance: none; display: none; }
input[type="search"]::-ms-clear { display: none; width: 0; height: 0; }

/* 2026-06 auth/catalog polish */
.language { width: 68px; }
.language img { content: url('../assets/global.png'); width: 20px; height: 20px; object-fit: contain; }
.selected-categories { flex-wrap: nowrap; }
.chip { max-width: 210px; flex: 0 0 auto; overflow: hidden; white-space: nowrap; transition: opacity .54s ease, transform .54s ease, background-color var(--motion-fast) ease; }
.chip.just-added { animation-duration: .54s; }
.dropdown-search img { width: 20px; height: 20px; flex-basis: 20px; transition: opacity var(--motion-slow) ease, filter var(--motion-slow) ease; }
.dual-range { overflow: visible; cursor: pointer; }
.catalog-empty { padding-bottom: 100px; }
.catalog-page { margin-bottom: 80px; }
.catalog-search { padding-left: 18.5px; padding-right: 18.5px; }
.catalog-search img { width: 21px; height: 21px; flex-basis: 21px; transition: opacity var(--motion-slow) ease, filter var(--motion-slow) ease; }
.sort-direction { align-items: center; justify-items: center; }
.sort-direction[aria-pressed="true"] img { transform: scaleX(-1); }
.catalog-sort.has-selection .dropdown-trigger { color: var(--text-75); }
.catalog-sort.has-selection .sort-direction img { opacity: .75; }
.card-pro { width: 41px; height: 22px; font: 700 12px/18px var(--font); }
.metric strong::after { width: 16px; height: 16px; }
.metric-orders strong, .metric-score strong { gap: 5px; }
.metric-orders .metric-icon-img, .metric-score .metric-icon-img { margin-right: 0 !important; }
.metric-score strong { color: #F7C02A; }
.card-slots { justify-content: flex-start; }
.modal-card { animation: modalZoom var(--motion-modal) ease; }
.bot-copy .copy-default b { color: var(--blue); font: 500 14px/18px var(--font); }
.bot-copy.copied .copy-success b { color: var(--c-white); font: 500 14px/18px var(--font); }
.bot-copy.copied img { content: url('../assets/copy-check.svg'); }
.add-channel-card .bot-copy {
  height: 44px;
  padding: 0 14px 0 16px;
  color: var(--blue);
  background: var(--c-blue-a12);
  border-radius: var(--radius-sm);
}
.add-channel-card .bot-copy:hover,
.add-channel-card .bot-copy:active,
.add-channel-card .bot-copy:focus,
.add-channel-card .bot-copy:focus-visible {
  color: var(--blue);
  background: var(--c-blue-a12);
}
.add-channel-card .bot-copy.copied,
.add-channel-card .bot-copy.copied:hover,
.add-channel-card .bot-copy.copied:active,
.add-channel-card .bot-copy.copied:focus,
.add-channel-card .bot-copy.copied:focus-visible {
  color: var(--c-white);
  background: var(--blue);
}
.add-channel-card .bot-copy .copy-default b,
.add-channel-card .bot-copy.copied .copy-success b {
  font: 600 16px/20px var(--font);
}
.add-channel-card .bot-copy img {
  width: 18px;
  height: 18px;
}
.my-channel-avatar[href],
.my-channel-text[href] {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.submit-channel.is-loading::after { left: 50%; top: 50%; translate: -50% -50%; }
@keyframes modalZoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* Modal positioning fix: keep zoom animation from fighting translateY offsets */
#auth-modal { align-items: start; padding-top: calc(50vh - 154px); }
#channel-modal { align-items: start; padding-top: calc(50vh - 353px); }
.auth-card,
.add-channel-card { transform: none; }
.modal-card { transform-origin: center; animation: modalZoomStable var(--motion-modal) var(--ease-out-soft); }
@keyframes modalZoomStable {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}



body.hot .hot-deal span, body.hot .hot-deal b { font: 400 14px/18px var(--font); }

/* 2026-06-26 UI corrections */
html, body, button, input { font-synthesis: none; }
.site::before { background-size: 806px 806px; }
body.profile-view .catalog-menu::after,
html.route-profile .catalog-menu::after { opacity: 0; transform: translateX(0); box-shadow: none; }
html.route-profile .catalog-page,
html.route-channel .catalog-page { display: none; }
.catalog-menu::after { box-shadow: 0 -2px 32px #4373FF, 0 -2px 24px rgba(67,115,255,.8), 0 -2px 12px rgba(67,115,255,.5); }
body.hot .catalog-menu::after,
html.route-hot .catalog-menu::after { box-shadow: 0 -2px 32px #FFAE34, 0 -2px 24px rgba(255,174,52,.8), 0 -2px 12px rgba(255,174,52,.5); }
body.profile-view .nav-item { color: var(--text-75); font-weight: 400; text-shadow: none; }
.login .profile-name { width: 58px; font: 500 16px/20px var(--font); mask-image: none; -webkit-mask-image: none; }
.empty-selection { font: 500 14px/18px var(--font); }
.section-title { font: 300 16px/20px var(--font); }
.catalog-search { padding-left: 18.5px; padding-right: 18.5px; gap: 8px; }
.catalog-search img { width: 15px; height: 15px; flex: 0 0 15px; }
.dropdown-search { padding-left: 14.5px; padding-right: 12px; gap: 8px; }
.dropdown-search img { width: 15px; height: 15px; flex: 0 0 15px; }
.profile-page-title { justify-content: center; text-align: center; }
.profile-content { border: 1px solid var(--line); }
.sort-dropdown .dropdown-panel { top: 60px; width: 220px; padding: 4px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: none; transform: translateY(-6px); }
.catalog-sort:has(.sort-dropdown.open) { border-radius: var(--radius-md); }
.sort-dropdown.open .dropdown-panel { transform: translateY(0); }
.sort-dropdown .dropdown-panel button { height: 34px; padding: 0 10px; justify-content: center; text-align: center; border-radius: 7px; font: 400 16px/20px var(--font); }
.sort-dropdown .dropdown-panel button:hover, .sort-dropdown .dropdown-panel button.selected { color: var(--blue); background: var(--c-blue-a12); }
.metric-score strong { color: var(--orange) !important; }
.filter-actions img, .clear-filters img { width: 19px; height: 19px; }
.chip.removing { pointer-events: none; opacity: 0; transform: scale(.86) translateY(-2px); transition: opacity .54s ease, transform .54s ease; }

.chip.removing { animation: none !important; }


/* Center selected sorting value while keeping chevron clickable and 20px from right */
.dropdown-trigger { position: relative; justify-content: center; padding: 0 40px 0 17px; text-align: center; }
.dropdown-trigger span { display: block; width: 100%; text-align: center; overflow: hidden; white-space: nowrap; pointer-events: none; }
.dropdown-trigger i { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); pointer-events: none; }


/* Keep active menu glow out of the header blur strip without clipping sides */
.header::before { content: ""; position: absolute; left: 0; right: 0; top: 72px; height: 12px; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(5,7,13,.72), rgba(5,7,13,0)); backdrop-filter: blur(12px); }
.header::after { display: none; }
/* Мобильная шапка (<=900px) выше — 116px: тень переносим под неё, иначе полоса с blur ложится на «Каталог / Горящие». */
@media (max-width: 900px) { .header::before { top: 116px; } }


/* Wider authenticated profile button */
.login.is-profile,
.login.is-profile:hover { width: 190px; }
.login.is-profile .profile-name { width: 110px; }


/* Sorting control final geometry */
.catalog-sort { width: 220px; height: 52px; padding: 0; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 0; }
.sort-direction { width: 40px; height: 52px; display: grid; place-items: center; }
.sort-direction img { width: 16px; height: 16px; transform-origin: center; transition: transform .25s ease, opacity var(--motion-base) ease; }
.sort-direction[aria-pressed="true"] img { transform: scaleX(-1); }
.sort-dropdown { position: static; width: 180px; min-width: 0; }
.dropdown-trigger { position: relative; width: 180px; height: 52px; padding: 0 40px 0 0; display: flex; align-items: center; justify-content: center; color: var(--text-40); text-align: center; font: 300 16px/20px var(--font); }
.dropdown-trigger span { display: block; width: 100%; overflow: hidden; white-space: nowrap; text-align: center; pointer-events: none; }
.dropdown-trigger i { position: absolute; right: 20px; top: 50%; width: 9px; height: 5px; background: url('../assets/chevron-down.svg') center/contain no-repeat; transform: translateY(-50%); transform-origin: center; pointer-events: none; transition: transform var(--motion-base) ease; }
.sort-dropdown.open .dropdown-trigger i { transform: translateY(-50%) rotate(180deg); }
.catalog-sort.has-selection .dropdown-trigger { color: var(--text-75); }


/* Profile button exact fixed size */
.login.is-profile,
.login.is-profile:hover { width: 138px; height: 52px; padding: 4px 20px 4px 4px; gap: 12px; }
.login.is-profile .avatar { width: 44px; height: 44px; flex: 0 0 44px; }
.login.is-profile .profile-name { width: auto; min-width: 0; max-width: none; overflow: visible; text-overflow: clip; white-space: nowrap; mask-image: none; -webkit-mask-image: none; font: 500 16px/20px var(--font); }

/* Keep the unauthenticated icon and label centered as one symmetric group. */
.login:not(.is-profile),
.login:not(.is-profile):hover { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; }
.login:not(.is-profile) .avatar { position: static; width: 16px; height: 13.26px; flex: 0 0 16px; }
.login:not(.is-profile) .login-text { position: static; width: auto; height: auto; display: block; }


/* Active menu glow restored */
.catalog-menu::after { box-shadow: 0 -2px 32px #4373FF, 0 -2px 24px rgba(67,115,255,.8), 0 -2px 12px rgba(67,115,255,.5); }
body.hot .catalog-menu::after,
html.route-hot .catalog-menu::after { box-shadow: 0 -2px 32px #FFAE34, 0 -2px 24px rgba(255,174,52,.8), 0 -2px 12px rgba(255,174,52,.5); }
body.profile-view .catalog-menu::after,
html.route-profile .catalog-menu::after { opacity: 0; transform: translateX(0); box-shadow: none; }


/* Sort direction icon exact geometry */
.sort-direction { width: 52px; justify-items: start; padding-left: 18px; }
.sort-direction img { width: 19px; height: 19px; }
.sort-direction[aria-pressed="true"] img { transform: scaleY(-1); }


/* Sort direction icon keeps original SVG fill/opacity */
.catalog-sort.has-selection .sort-direction img,
.sort-direction img { opacity: 1; filter: none; }


/* Profile menu exact inner spacing and section titles */
.profile-menu-title { font: 500 16px/20px var(--font); }
.profile-menu-items > button { width: 306px; color: var(--text-75); font: 400 18px/22px var(--font); }
.profile-menu-items > button.selected { color: var(--c-white); font-weight: 600; }
/* Светлая тема: белый текст активного пункта на светлой подложке был не виден. */
body.light-theme .profile-menu-items > button.selected { color: var(--text); }
.profile-menu-card .profile-menu-title {
  width: calc(100% + 8px);
  height: 38px;
  border-radius: 0;
  font: 500 16px/20px var(--font);
}
.profile-main-menu .profile-menu-title,
.profile-buy-menu .profile-menu-title { color: var(--blue); }
.profile-sell-menu .profile-menu-title { color: #2AB822; }
.profile-manage-menu .profile-menu-title { color: var(--orange); }

/* Profile copy fields match add-channel username copy style */
.profile-id-field > span { color: var(--text-75); font: 400 14px/18px var(--font); }
.profile-id-field .profile-copy { width: 100%; height: 38px; margin-top: 0; padding: 0 14px 0 16px; }
.profile-id-field .profile-copy img { position: static; right: auto; width: 18px; height: 18px; }
.profile-id-field .profile-copy .copy-default b { color: var(--blue); font: 500 14px/18px var(--font); }
.profile-id-field .profile-copy.copied .copy-success b { color: var(--c-white); font: 500 14px/18px var(--font); }
.profile-content-favorites { min-height: 526px; padding: 0; background: transparent; border: 0; }
.profile-favorites-grid { display: grid; grid-template-columns: repeat(3, 338px); gap: 16px; align-items: start; }
.profile-empty-state { min-height: 214px; padding: 32px; display: flex; align-items: center; color: var(--text-75); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); font: 400 16px/20px var(--font); }

.profile-content-users {
  width: 1046px;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.profile-content-administrators {
  width: 1046px;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.administrator-sidebar { align-content: start; }
.administrator-sidebar h3 { margin: 0; color: var(--c-white); font: 500 16px/20px var(--font); }
.administrator-assign-row { display: grid; gap: 8px; }
.administrator-assign-row .moderation-search { width: 100%; padding-right: 6px; }
.administrator-assign-submit {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: var(--c-white);
  background: var(--c-green-500);
  border-radius: var(--radius-sm);
  font: 600 20px/20px var(--font);
}
.administrator-assign-submit:disabled { opacity: .45; cursor: default; }
.administrator-grants { display: grid; gap: 12px; padding: 16px 24px 24px; color: var(--text-75); }
.administrator-grants label { display: flex; align-items: center; gap: 8px; }
.administrator-grant-actions { display: flex; gap: 8px; }
.administrator-grant-actions button { flex: 1 1 0; }
.channel-share-access-card { width: min(460px, calc(100vw - 32px)); display: grid; gap: 16px; }
.channel-share-access-card h2 { margin: 0; color: var(--c-white); font: 600 22px/28px var(--font); }
.channel-share-access-card p { margin: 0; color: var(--text-75); }
.channel-share-access-card form { display: grid; gap: 14px; }
.channel-share-access-id { display: grid; gap: 6px; color: var(--text-75); }
.channel-share-access-id input { min-height: 44px; padding: 0 12px; border: 1px solid var(--border-20); border-radius: var(--radius-md); background: var(--surface-10); color: var(--text-100); }
.channel-share-access-card fieldset { display: grid; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--border-20); border-radius: var(--radius-md); }
.channel-share-access-card legend { padding: 0 6px; color: var(--text-75); }
.channel-share-access-card fieldset label { display: flex; align-items: center; gap: 8px; color: var(--text-100); }
.channel-share-access-feedback { min-height: 20px; }
.share-access-card { width: min(454px, calc(100vw - 32px)); min-height: 0; max-height: calc(100vh - 32px); overflow: hidden; }
.share-access-card h2 { text-align: center; }
.share-access-subtitle-accent { color: var(--blue); }
.share-access-card .modal-subtitle { max-width: 340px; margin: 12px auto 0; }
.share-access-form { margin-top: 28px; display: grid; gap: 20px; text-align: left; }
.share-access-grants { min-height: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-75); font: 400 14px/18px var(--font); }
.share-access-grant-chip { position: relative; min-height: 32px; max-width: 100%; overflow: visible; color: var(--text-75); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-pill); font: 400 14px/18px var(--font); }
.share-access-grant-chip:hover, .share-access-grant-chip:focus-within, .share-access-grant-chip.is-selected { color: var(--text); border-color: var(--blue); }
.share-access-grant-select { min-height: 30px; max-width: 100%; padding: 0 34px 0 12px; overflow: hidden; color: inherit; background: transparent; border: 0; border-radius: inherit; font: inherit; text-align: left; white-space: nowrap; }
.share-access-grant-remove { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; padding: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; color: var(--text-75); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-round); font: 600 14px/16px var(--font); transition: opacity .15s ease, color .15s ease, border-color .15s ease; }
.share-access-grant-chip:hover .share-access-grant-remove, .share-access-grant-chip:focus-within .share-access-grant-remove, .share-access-grant-remove:focus-visible { opacity: 1; pointer-events: auto; }
.share-access-grant-remove:hover, .share-access-grant-remove:focus-visible { color: var(--text); border-color: var(--blue); outline: none; }
.share-access-grant-chip.is-loading .share-access-grant-remove { color: transparent; pointer-events: none; }
.share-access-grant-chip.is-loading .share-access-grant-remove::after { content: ""; width: 10px; height: 10px; border: 1px solid rgba(255,255,255,.35); border-top-color: var(--blue); border-radius: var(--radius-round); animation: shareAccessRemoveSpin .75s linear infinite; }
.share-access-grants.is-loading, .share-access-grants.is-error, .share-access-grants.is-empty { display: flex; }
.share-access-grants.is-error { color: #EF5350; }
.share-access-grants .share-access-grants-retry { margin-left: 4px; color: var(--blue); text-decoration: underline; }
.share-access-field { display: grid; gap: 8px; color: var(--text); font: 500 14px/18px var(--font); }
.share-access-field input { width: 100%; height: 48px; padding: 0 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); font: 400 16px/20px var(--font); outline: none; }
.share-access-field input:focus { border-color: var(--blue); }
.share-access-field input[aria-invalid="true"] { border-color: #EF5350; }
.share-access-permissions { min-width: 0; margin: 0; padding: 0; display: grid; gap: 8px; border: 0; }
.share-access-permissions legend { margin-bottom: 4px; padding: 0; color: var(--text); font: 500 14px/18px var(--font); }
.share-access-permission { min-height: 20px; display: flex; align-items: center; gap: 8px; color: var(--text-75); font: 400 16px/20px var(--font); }
.share-access-feedback { min-height: 20px; margin: -4px 0 0; color: var(--text-75); text-align: center; font: 400 14px/20px var(--font); }
.share-access-feedback.is-error { color: #EF5350; }
.share-access-submit { position: relative; width: 100%; max-width: 430px; height: 48px; margin: 0 auto; box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: var(--c-white); background: var(--blue); border-radius: var(--radius-md); font: 600 14px/18px var(--font); }
.share-access-submit.is-loading { color: transparent; background: var(--blue); pointer-events: none; }
.share-access-submit.is-error, .share-access-submit.is-error:hover { color: var(--c-white); background: var(--c-red-500); border-color: var(--c-red-500); }
.share-access-submit.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: var(--c-white); border-radius: var(--radius-round); animation: shareAccessLoaderSpin .75s linear infinite; }
@keyframes shareAccessLoaderSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes shareAccessRemoveSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.profile-users-layout {
  width: 1046px;
  display: grid;
  grid-template-columns: 692px 314px;
  gap: 40px;
  align-items: start;
}
.profile-users-list {
  width: 692px;
  display: grid;
  gap: 8px;
}
.profile-users-sidebar {
  width: 314px;
  display: grid;
  gap: 20px;
}
.profile-user-card {
  position: relative;
  width: 692px;
  min-height: 84px;
  max-height: 84px;
  overflow: hidden;
  background: var(--c-ink-900);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: max-height var(--motion-expand) var(--ease-out-expo), border-radius var(--motion-modal) ease;
}
.profile-user-card.expanded-radius {
  border-radius: var(--radius-2xl);
}
.profile-user-card.open {
  max-height: 420px;
}
.profile-user-head {
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  padding: 12px 0 12px 12px;
}
.profile-user-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  display: grid;
  place-items: center;
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-blue-500), var(--c-cyan-500));
  border-radius: var(--radius-round);
  overflow: hidden;
  font: 600 22px/1 var(--font);
}
.profile-user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-user-name {
  margin-left: 16px;
  max-width: 210px;
  min-width: 0;
  color: var(--c-white);
  font: 600 18px/22px var(--font);
  overflow: hidden;

  white-space: nowrap;
}
.profile-users-list .ui-chip {
  margin-left: 5px;
}
.profile-user-name + .ui-chip {
  margin-left: 12px;
}
.profile-user-go {
  width: 35px;
  height: 35px;
  margin-left: 5px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  background: var(--c-blue-a12);
  border-radius: var(--radius-round);
  pointer-events: none;
}
.profile-user-go::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--c-blue-500);
  mask: url('../assets/profile-user-arrow.svg') center/contain no-repeat;
  -webkit-mask: url('../assets/profile-user-arrow.svg') center/contain no-repeat;
}
.profile-user-toggle.my-channel-chevron {
  margin-left: auto;
  flex: 0 0 67px;
  width: 67px;
  height: 84px;
  margin-top: -12px;
  margin-bottom: -12px;
  opacity: .75;
}
.profile-user-card.open .profile-user-toggle.my-channel-chevron::before {
  transform: translate(-50%, -50%) rotate(180deg);
}
.profile-user-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height .42s var(--ease-out-expo), opacity var(--motion-modal) ease;
}
.profile-user-card.open .profile-user-content {
  height: 336px;
  opacity: 1;
}
.profile-user-settings {
  margin: 16px 24px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 24px;
  color: var(--c-white-a75);
  font: 400 14px/18px var(--font);
}
.profile-user-settings b {
  color: var(--c-white);
  font: 400 14px/18px var(--font);
  text-align: right;
}
.profile-user-balance {
  margin: 18px 24px 24px;
  display: grid;
  gap: 12px;
}
.profile-user-balance-current {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-white-a75);
  font: 500 14px/18px var(--font);
}
.profile-user-balance-current span {
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  background: var(--c-ink-950);
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
}
.profile-user-balance-current b {
  color: var(--c-white);
  font: 600 14px/18px var(--font);
}
.profile-user-balance-actions {
  display: grid;
  grid-template-columns: 112px 82px 82px 112px 96px 96px;
  gap: 8px;
  align-items: center;
}
.profile-user-balance-actions label {
  height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-md);
  background: var(--c-ink-950);
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
  color: rgba(255,255,255,.45);
  font: 500 12px/15px var(--font);
}
.profile-user-balance-actions input {
  width: 100%;
  min-width: 0;
  color: var(--c-white);
  background: transparent;
  border: 0;
  outline: 0;
  font: 500 14px/18px var(--font);
}
.profile-user-balance-actions button {
  height: 42px;
  border-radius: var(--radius-md);
  color: var(--c-white);
  background: var(--c-blue-500);
  font: 600 13px/16px var(--font);
  transition: opacity var(--motion-fast) ease, background-color var(--motion-fast) ease;
}
.profile-user-balance-actions button[data-user-balance-action="debit"] {
  background: var(--c-red-500);
}
.profile-user-balance-actions button:disabled {
  opacity: .45;
}
.profile-user-referral {
  display: grid;
  grid-template-columns: 220px 120px;
  gap: 8px;
  align-items: center;
}
.profile-user-referral label {
  height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.45);
  background: var(--c-ink-950);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
  font: 500 12px/15px var(--font);
}
.profile-user-referral input {
  width: 100%;
  min-width: 0;
  color: var(--c-white);
  background: transparent;
  border: 0;
  outline: 0;
  font: 500 14px/18px var(--font);
}
.profile-user-referral button {
  height: 42px;
  color: var(--c-white);
  background: var(--c-blue-500);
  border-radius: var(--radius-md);
  font: 600 13px/16px var(--font);
}
.profile-user-referral button:disabled {
  opacity: .45;
}
.profile-user-card.balance-error .profile-user-balance-actions label {
  box-shadow: inset 0 0 0 1px rgba(246,75,75,.75);
}
.profile-user-card.balance-error .profile-user-referral label {
  box-shadow: inset 0 0 0 1px rgba(246,75,75,.75);
}
.profile-users-sidebar .moderation-stat {
  height: auto;
  min-height: 0;
  padding-bottom: 0;
  overflow: visible;
}
.profile-users-sidebar .moderation-stat-list {
  padding: 0 20px 16px;
}


/* Профиль: баланс, партнёрка, история операций. */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
.profile-content-balance {
  width: 1046px;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.profile-balance-page {
  width: 1046px;
  display: grid;
  gap: 16px;
}
.profile-balance-action {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #686868;
  background: transparent;
  border-radius: var(--radius-md);
  transition: border-color var(--motion-base) ease, background-color var(--motion-base) ease, color var(--motion-base) ease;
}
.profile-balance-action span {
  width: 24px;
  height: 24px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--balance-action-icon) center / contain no-repeat;
  mask: var(--balance-action-icon) center / contain no-repeat;
}
.profile-balance-action-partner {
  color: #686868;
  background: var(--c-black);
}
.profile-balance-action-partner span {
  width: 28px;
  height: 23px;
  --balance-action-icon: url("../assets/balance-partner.svg");
}
.profile-balance-hero {
  width: 1046px;
  height: 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: #000003;
  border-radius: var(--radius-xl);
}
.profile-balance-half {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--c-white);
  overflow: hidden;
}
.profile-balance-half::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .36s ease;
  pointer-events: none;
}
.profile-balance-half:hover::before { opacity: 1; }
.profile-balance-half.rub::before { background: radial-gradient(420px 92px at 18% 100%, rgba(46,184,34,.26), var(--c-green-a12) 46%, rgba(46,184,34,0) 82%); }
.profile-balance-half.gram::before { background: radial-gradient(420px 92px at 82% 100%, rgba(30,85,249,.28), rgba(30,85,249,.13) 46%, rgba(30,85,249,0) 82%); }
.profile-balance-half b {
  position: relative;
  z-index: 1;
  font: 700 48px/58px var(--font);
}
.profile-balance-half img {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.profile-affiliate-card,
.profile-balance-history {
  width: 1046px;
  overflow: hidden;
  background: var(--c-ink-900);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
}
.profile-balance-page > .profile-affiliate-card {
  display: none;
}
.profile-affiliate-card {
  max-height: 85px;
  transition: max-height var(--motion-expand) var(--ease-out-expo), border-radius var(--motion-modal) ease;
}
.profile-affiliate-card.open {
  max-height: 1200px;
  border-radius: var(--radius-2xl);
}
.profile-affiliate-head {
  position: relative;
  width: 100%;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font: 400 20px/25px var(--font);
}
.profile-affiliate-head .my-channel-chevron {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0;
}
.profile-affiliate-head .my-channel-chevron::before {
  transform: translate(-50%, -50%) rotate(180deg);
}
.profile-affiliate-card.open .profile-affiliate-head .my-channel-chevron::before {
  transform: translate(-50%, -50%) rotate(0);
}
.profile-affiliate-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .62s var(--ease-out-expo), opacity var(--motion-panel) ease .12s;
}
.profile-affiliate-card.open .profile-affiliate-content {
  max-height: 1100px;
  opacity: 1;
}
.profile-affiliate-divider {
  width: 100%;
  height: 1px;
  background: var(--c-ink-700);
}
.profile-affiliate-table {
  padding: 20px 24px 24px;
  display: grid;
  row-gap: 8px;
  /* На средней ширине таблица прокручивается внутри карточки, а не вылезает за край. */
  overflow-x: auto;
}
.profile-affiliate-header,
.profile-affiliate-row {
  min-width: 998px;
  display: grid;
  grid-template-columns: 314px 80px 100px 100px 202px 52px;
  column-gap: 30px;
  align-items: center;
}
.profile-affiliate-header {
  color: var(--c-white-a75);
  font: 400 16px/20px var(--font);
}
.profile-affiliate-header span {
  text-align: center;
}
.profile-affiliate-row {
  min-height: 52px;
}
.profile-affiliate-copy {
  width: 314px;
  height: 52px;
  margin: 0;
  color: var(--c-blue-500);
  background: var(--c-blue-a12);
  border-radius: var(--radius-md);
  font: 500 16px/20px var(--font);
}
.profile-affiliate-copy .copy-default b,
.profile-affiliate-copy .copy-success b {
  max-width: 250px;
  overflow: hidden;

  white-space: nowrap;
  font: 600 16px/20px var(--font);
}
.profile-affiliate-copy.copied .copy-success b {
  color: var(--c-white);
  font: 600 16px/20px var(--font);
}
.profile-affiliate-row > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  text-align: center;
  font: 600 20px/24px var(--font);
}
.profile-affiliate-row > b i {
  color: var(--c-ink-700);
  font-style: normal;
}
.profile-affiliate-reward {
  gap: 8px;
}
.profile-affiliate-reward span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.profile-affiliate-reward .price-gram {
  width: .82em;
  height: .82em;
  margin-left: 0;
  vertical-align: -0.03em;
}
.profile-affiliate-delete {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  transition: background-color var(--motion-base) ease;
}
.profile-affiliate-delete:hover {
  background: var(--c-red-a12);
}
.profile-affiliate-delete img { width: 20px; height: 22px; display: block; object-fit: contain; }
.profile-affiliate-add {
  grid-column: 1;
  width: 314px;
  height: 52px;
  margin-top: 0;
  color: var(--c-white);
  background: var(--c-blue-500);
  border-radius: var(--radius-md);
  font: 600 16px/20px var(--font);
}
.profile-affiliate-modal {
  z-index: 130;
  padding: 32px;
}
.profile-affiliate-modal-card {
  width: min(1046px, calc(100vw - 64px));
  max-height: min(760px, calc(100vh - 64px));
  padding: 0;
  overflow: hidden;
  background: var(--c-ink-900);
  border-color: var(--c-ink-700);
  border-radius: var(--radius-2xl);
  text-align: left;
}
.profile-affiliate-modal-card .modal-close {
  right: 24px;
  top: 22px;
}
.profile-affiliate-modal-card h2 {
  height: 85px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  border-bottom: 1px solid var(--c-ink-700);
  font: 400 20px/25px var(--font);
}
.profile-affiliate-modal-content {
  max-height: calc(100vh - 149px);
  overflow: auto;
}
.profile-balance-history {
  padding: 0;
}
.profile-balance-history h2 {
  display: none;
  height: 85px;
  margin: 0;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  border-bottom: 1px solid var(--c-ink-700);
  font: 400 20px/25px var(--font);
}
.profile-history-list {
  padding: 24px;
  display: grid;
  gap: 12px;
}
.profile-history-row {
  min-height: 30px;
  display: grid;
  grid-template-columns: 144px minmax(372px, 1fr) 180px 64px;
  column-gap: 40px;
  align-items: center;
}
.profile-history-row > span {
  min-width: 54px;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--c-blue-500);
  background: var(--c-blue-a12);
  border-radius: var(--radius-sm);
  font: 500 14px/18px var(--font);
  justify-self: start;
  white-space: nowrap;
}
.profile-history-row > span.income { color: var(--c-green-500); background: var(--c-green-a12); }
.profile-history-row > span.outcome { color: var(--c-red-500); background: var(--c-red-a12); }
.profile-history-row > span .price-gram {
  width: .9em;
  height: .9em;
  margin-left: 0;
  color: currentColor;
  background: currentColor;
}
.profile-history-row > span .balance-rub-sign {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  display: inline;
  color: currentColor;
  background: transparent;
  border-radius: 0;
  font: inherit;
}
.profile-history-row b,
.profile-history-row time {
  color: var(--c-white-a75);
  font: 400 16px/20px var(--font);
}
.profile-history-row b {
  justify-self: start;
  white-space: nowrap;
}
.profile-history-row time {
  justify-self: end;
  text-align: right;
}
.profile-history-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--c-white-a75);
  font: 400 16px/20px var(--font);
}
.profile-history-footer b { color: var(--c-white); font-weight: 700; }
.profile-history-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-history-footer button {
  width: 52px;
  height: 52px;
  color: var(--c-white);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--c-blue-500);
  font: 600 16px/20px var(--font);
}
.profile-history-footer button:hover,
.profile-history-footer button.active {
  color: var(--c-blue-500);
  background: var(--c-blue-a12);
  box-shadow: none;
}

/* Menu rows are sized for 4px inner gaps, including the bottom selected item */
.profile-menu-card { gap: 4px; }
.profile-menu-title { margin-bottom: 0; }
.profile-menu-card.no-title { grid-template-rows: minmax(0, 1fr); gap: 0; }
.profile-menu-items > button { box-sizing: border-box; min-height: 62px; padding-top: 0; padding-bottom: 0; }


/* Keep active menu glow out of the blur strip below the header */
.catalog-menu::after { clip-path: inset(-80px -100px 0 -100px); }

/* Search icons: exact geometry from required inner offsets */
.catalog-search { height: 52px; padding-left: 18px; padding-right: 18px; gap: 8px; }
.catalog-search { box-shadow: inset 0 0 0 1px var(--c-ink-700); }
.catalog-search img { position: relative; top: 0; width: 18.88px; height: 18.88px; flex: 0 0 18.88px; object-fit: contain; }
.dropdown-search { height: 40px; padding-left: 14.5px; padding-right: 12px; gap: 8px; }
.dropdown-search img { position: relative; top: 0; left: -2px; width: 18.88px; height: 18.88px; flex: 0 0 18.88px; object-fit: contain; }

/* Auth popup: 20% higher than the centered 257px dialog */
#auth-modal { padding-top: calc(50vh - 205px); }

/* Profile ID value fields */
.profile-id-field { height: 76px; }
.profile-id-field .profile-copy { height: 44px; }
.profile-id-field .profile-copy .copy-default b,
.profile-id-field .profile-copy.copied .copy-success b { font: 600 16px/20px var(--font); }

/* Keep footer separated from the tall profile sidebar even with short main content */
.profile-page { min-height: 940px; margin-bottom: 80px; }

.channel-input-wrap { width: 100%; margin: 0 auto; display: block; }
.channel-input-title { display: block; margin-bottom: 13px; }
.channel-input { width: 100%; height: 48px; padding: 0 16px; color: var(--c-white); background: var(--c-ink-950); border: 1px solid var(--c-ink-900); border-radius: var(--radius-md); font: 400 16px/20px var(--font); outline: 0; transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease; }
.channel-input::placeholder { color: var(--text-40); }
.channel-input:focus { background: var(--c-ink-950); }
.channel-error { margin: 8px 0 0; color: #E62229; text-align: left; font: 400 13px/17px var(--font); }
.submit-channel.is-loading { color: transparent; background: #5087FF; border-color: #5087FF; pointer-events: none; }
.submit-channel.is-loading::after { left: 50%; top: 50%; translate: -50% -50%; }
.submit-channel.is-success, .submit-channel.is-success:hover { width: 240px; color: var(--c-white); background: var(--c-green-500); border-color: var(--c-green-500); }
.submit-channel.is-error, .submit-channel.is-error:hover { width: 240px; color: var(--c-white); background: var(--c-red-500); border-color: var(--c-red-500); }
.my-channel-state { min-height: 92px; padding: 24px; color: var(--text-75); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); font: 400 16px/22px var(--font); }


/* Модерация каналов, шапка/кнопка входа, начало блока «Мои каналы». */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
/* Channel moderation */
.profile-content-moderation {
  width: 1046px;
  min-height: 645px;
  padding: 0;
  background: transparent;
  border: 0;
}
.moderation-layout {
  width: 1046px;
  display: grid;
  grid-template-columns: 692px 314px;
  gap: 40px;
  align-items: start;
}
.moderation-list {
  display: grid;
  gap: 16px;
}
.moderation-card {
  width: 692px;
  height: 645px;
  padding: 24px;
  display: grid;
  grid-template-columns: 338px 286px;
  grid-template-rows: 489px 84px;
  column-gap: 20px;
  row-gap: 20px;
  background: var(--c-ink-900);
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
  border-radius: var(--radius-2xl);
}
.moderation-preview {
  width: 338px;
  height: 489px;
  overflow: hidden;
}
.moderation-preview .channel-card {
  margin: 0;
  box-shadow: inset 0 0 0 1px var(--c-ink-800);
}
.moderation-details {
  width: 286px;
  padding-top: 0;
  display: grid;
  gap: 16px;
}
.moderation-top {
  height: 44px;
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.moderation-top strong {
  padding-top: 10px;
  margin-right: auto;
  color: var(--c-white);
  font: 500 20px/24px var(--font);
}
.moderation-tgstat,
.moderation-telegram {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font: 500 14px/18px var(--font);
}
.moderation-tgstat {
  width: 105px;
  gap: 8px;
  color: var(--c-white);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--c-white-a20);
}
.moderation-telegram {
  width: 44px;
  background: #058FF9;
}
.moderation-tgstat img,
.moderation-telegram img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.moderation-field {
  display: grid;
  gap: 8px;
}
.moderation-field > span {
  color: var(--text-75);
  font: 400 14px/18px var(--font);
}
.moderation-plain-selector { width: 100%; }
.moderation-plain-selector .chips {
  width: 100%;
  height: 52px;
  padding: 6px 42px 6px 16px;
  background: var(--c-ink-950);
  border-radius: var(--radius-md);
}
.moderation-plain-selector .chips::after { right: 20px; }
.moderation-plain-selector .dropdown-panel {
  top: calc(100% + 8px);
  bottom: auto;
  width: 100%;
}
.moderation-plain-selector .category-options {
  width: 100%;
  padding-top: 12px;
}
.moderation-plain-selector .option-list {
  max-height: 156px;
}
.moderation-plain-selector .selected-categories,
.moderation-plain-selector .chip,
.moderation-plain-selector .empty-selection {
  width: 100%;
}
.moderation-plain-selector .empty-selection {
  color: var(--c-white-a40);
  font: 400 16px/20px var(--font);
}
.moderation-reason-selector { width: 357px; }
.moderation-status-selector { width: 100%; }
.moderation-field textarea {
  width: 286px;
  height: 132px;
  padding: 16px;
  resize: none;
  color: var(--c-white-a40);
  background: var(--c-ink-800);
  border: 0;
  border-radius: var(--radius-md);
  outline: 0;
  font: 400 14px/18px var(--font);
}
.moderation-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 357px 135px 128px;
  grid-template-rows: 20px 42px;
  gap: 20px 12px;
  align-items: end;
}
.moderation-actions h3 {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--c-white);
  text-align: center;
  font: 500 16px/20px var(--font);
}
.moderation-actions h3[data-status="approved"] { color: var(--c-green-500); }
.moderation-actions h3[data-status="rejected"] { color: var(--c-red-500); }
.moderation-actions h3::before,
.moderation-actions h3::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  border-top: 1px dashed var(--c-white-a12);
}
.moderation-reject,
.moderation-approve {
  height: 42px;
  color: var(--c-white);
  border-radius: var(--radius-md);
  font: 500 16px/20px var(--font);
}
.moderation-reject { background: var(--c-red-500); }
.moderation-reject:disabled {
  background: var(--c-ink-800);
  cursor: default;
}
.moderation-approve { background: var(--c-green-500); }
.moderation-sidebar {
  width: 314px;
  display: grid;
  gap: 20px;
}
.moderation-side-card {
  width: 314px;
  background: var(--c-ink-900);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
}
.moderation-stat {
  width: 314px;
  height: 147px;
  background: #000003;
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.moderation-side-card {
  padding: 16px;
}
.moderation-stat h3 {
  margin: 0;
  padding-top: 16px;
  color: var(--c-white);
  text-align: center;
  font: 500 16px/20px var(--font);
}
.moderation-stat-list {
  margin-top: 14px;
  padding: 0 16px 16px;
  display: grid;
  gap: 14px;
}
.moderation-stat-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 6px;
  color: var(--c-white-a75);
  font: 400 14px/18px var(--font);
}
.moderation-stat-row i {
  height: 1px;
  margin-bottom: 3px;
  background: var(--c-white-a12);
}
.moderation-stat-row b {
  min-width: 18px;
  color: var(--c-white-a75);
  font: inherit;
  text-align: right;
}
.moderation-side-card h3 {
  margin: 0 0 14px;
  color: var(--c-white);
  text-align: center;
  font: 500 16px/20px var(--font);
}
.moderation-status-row {
  width: max-content;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.moderation-status-count {
  color: var(--c-white-a75);
  font: 400 14px/18px var(--font);
}
.moderation-search {
  width: 314px;
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-ink-900);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
}
.moderation-search img {
  position: relative;
  top: 0;
  width: 18.88px;
  height: 18.88px;
  flex: 0 0 18.88px;
  object-fit: contain;
}
.moderation-search input {
  width: 100%;
  min-width: 0;
  flex: 1;
  color: var(--c-white);
  background: transparent;
  border: 0;
  outline: 0;
  appearance: none;
  font: 400 16px/20px var(--font);
}
.moderation-search input::placeholder { color: var(--text-40); }

/* Public channel catalog cards */
.card-avatar .avatar-image { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-round); }
body.hot .channel-card { height: 512px; }
body.hot .hot-deal { top: 372px; }
body.hot .card-buy { bottom: 46px; height: 48px; }  /* 8px до таймера (таймер: bottom 12 + 26) */
body.hot .card-countdown { bottom: 12px; height: 26px; }

/* Header login/profile button exact geometry */
.login,
.login:hover {
  position: relative;
  width: 141px;
  height: 52px;
  padding: 0;
  display: block;
  flex: 0 0 141px;
  color: var(--c-white);
  background: var(--c-blue-500);
  border-radius: 26px;
  overflow: visible;
}
.login .avatar {
  position: absolute;
  left: 30px;
  top: 17px;
  width: 16px;
  height: 13.26px;
  display: block;
  overflow: visible;
}
.login .avatar img {
  width: 16px;
  height: 13.26px;
  object-fit: contain;
  border-radius: 0;
}
.login .login-text {
  position: absolute;
  left: 46px;
  top: 6px;
  width: 65px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font: 500 16px/20px var(--font);
}
.login.is-profile,
.login.is-profile:hover {
  width: 141px;
  height: 52px;
  padding: 0;
  flex-basis: 141px;
  background: var(--c-ink-950);
  border-radius: 26px;
}
.login.is-profile .avatar {
  left: 9px;
  top: 6px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: linear-gradient(145deg,#7A1FDB,#240B45);
  border-radius: var(--radius-round);
}
.login.is-profile .avatar img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-round);
}
/* Optical alignment for the unauthenticated Telegram glyph only. */
.login:not(.is-profile) .avatar {
  transform: translateY(-2px);
}
.login.is-profile .profile-name {
  position: absolute;
  left: 59px;
  top: 6px;
  min-width: 40px;
  width: max-content;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
  mask-image: none;
  -webkit-mask-image: none;
  font: 500 16px/20px var(--font);
}
/* Кнопка профиля растягивается по длине имени (до разумного предела), а не вылезает за фиксированную ширину. */
.login.is-profile,
.login.is-profile:hover {
  width: auto;
  min-width: 141px;
  max-width: 280px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 0 6px; /* слева столько же, сколько сверху и снизу аватарки */
}
.login.is-profile .avatar {
  position: static;
  flex: 0 0 40px;
}
.login.is-profile .profile-name {
  position: static;
  width: auto;
  min-width: 0;
  max-width: 200px;
  overflow: hidden;
  text-overflow: clip;
  justify-content: flex-start;
}
.login.is-profile .profile-name.is-clipped {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent);
}

/* Keep the profile CTA geometry stable while the session bootstrap is unresolved. */
.login.auth-bootstrap-skeleton,
.login.auth-bootstrap-skeleton:hover {
  width: 141px;
  height: 52px;
  padding: 0 20px 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: transparent;
  background: linear-gradient(90deg, var(--surface-2) 0%, rgba(255,255,255,.16) 50%, var(--surface-2) 100%);
  background-size: 220% 100%;
  border-radius: 26px;
  animation: catalogSkeletonShimmer 1.4s ease-in-out infinite;
  cursor: default;
  pointer-events: none;
}
.login.auth-bootstrap-skeleton > * { visibility: hidden; }


/* Кампании покупателя, рекламные блоки advix-ads, карточки «Мои каналы». */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
/* My channels: collapsed/expanded owner settings */
.profile-content-my-channels { width: 1046px; min-height: 84px; padding: 0; background: transparent; border: 0; }
.my-channels-list { display: grid; gap: 12px; }
.profile-content-advix-ads {
  width: 1046px;
  min-height: 103px;
  padding: 0;
  background: transparent;
  border: 0 !important;
}
.profile-content-buyer-campaigns { width: min(1046px, 100%); padding: 0; background: transparent; border: 0; }
.buyer-campaigns { display: grid; gap: 24px; }
.buyer-campaign-primary { min-height: 44px; width: max-content; padding: 0 20px; border-radius: var(--radius-md); color: var(--c-white); background: var(--blue); font: 600 14px var(--font); }
.buyer-campaign-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.buyer-campaign-header, .buyer-campaign-header > div, .buyer-creative-meta, .buyer-creative-controls { display: flex; align-items: center; }
.buyer-campaign-header { justify-content: space-between; gap: 16px; }
.buyer-campaign-header > div { gap: 8px; min-width: 0; }
.buyer-campaign-title { color: var(--text); font: 600 24px/30px var(--font); }
.buyer-campaign-header input { display: none; width: 440px; min-height: 40px; padding: 6px 10px; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--black); font: 600 24px/30px var(--font); }
.buyer-campaign-card.editing .buyer-campaign-title { display: none; }
.buyer-campaign-card.editing .buyer-campaign-header input { display: block; }
.buyer-campaign-header button:not(.buyer-campaign-primary), .buyer-creative-controls button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-75); border-radius: 7px; }
.buyer-campaign-header .buyer-campaign-title-edit { margin-left: 0; }
.buyer-campaign-header button:not(.buyer-campaign-primary) { border: 0; background: transparent; }
.buyer-campaign-header button:not(.buyer-campaign-primary):hover, .buyer-creative-controls button:hover { color: var(--text); background: var(--surface-2); }
.buyer-campaign-divider, .buyer-creative-editor-divider { height: 1px; margin: 30px 0; background: var(--line); }
.buyer-campaign-workspace { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); grid-template-areas: 'controls summary'; align-items: start; min-width: 0; gap: 28px; }
.buyer-campaign-actions { grid-area: controls; display: grid; gap: 18px; align-content: start; }
.profile-page-title-buyer-campaigns { position: relative; }
.profile-page-title-buyer-campaigns .profile-buyer-campaign-create { position: absolute; top: 0; right: 0; width: 52px; height: 52px; }
.buyer-campaigns-list { display: grid; gap: 12px; }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter { position: absolute; top: 0; right: 68px; width: max-content; min-width: 0; height: 52px; }
.buyer-campaign-status-filter .sort-dropdown { top: 58px; }
.buyer-campaign-creative-body { padding: 24px 24px 0; }
.my-channel-card[data-buyer-campaign-id] .my-channel-settings-body { padding: 0; }
.buyer-campaign-creative-workspace { display: grid; grid-template-columns: 247px minmax(0, 1fr); column-gap: 30px; align-items: start; }
.buyer-creative-action-zone { width: 247px; height: 190px; min-height: 190px; color: var(--text-75); border: 1px solid var(--c-ink-700); border-radius: 23px; background: var(--c-ink-900); }
.buyer-campaign-creative-zones { display: flex; flex-direction: column; gap: 24px; }
.buyer-company-carousel { min-width: 0; display: flex; gap: 30px; overflow-x: auto; overflow-y: hidden; padding: 0 24px 4px 0; scroll-snap-type: x proximity; }
.buyer-company-carousel .buyer-creative-card { flex: 0 0 280px; width: 280px; height: 404px; border: 1px solid var(--c-ink-700); border-radius: 23px; scroll-snap-align: start; }
.buyer-company-carousel .buyer-creative-cover { width: 278px; height: 271px; border-radius: 22px 22px 0 0; }
.buyer-company-carousel .buyer-creative-summary-body { padding: 11px 0 0 11px; gap: 0; }
.buyer-company-carousel .buyer-creative-summary-body strong { color: var(--text); font: 600 16px/20px var(--font); }
.buyer-company-selected { padding-top: 24px; }
.buyer-company-selected label { color: var(--text-75); font: 500 13px/18px var(--font); }
.buyer-creative-create-compact { width: 38px; height: 38px; color: var(--c-white); border: 0; border-radius: 9px; background: var(--blue); font: 500 24px/38px var(--font); }
.buyer-creative-action-zone { min-height: 218px; padding: 24px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--text-75); border: 1px dashed var(--text-40); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface-2) 38%, transparent); font: 500 15px var(--font); }
.buyer-creative-action-zone span { font: 300 42px/42px var(--font); color: var(--blue); }
.buyer-creative-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 18px; }
.buyer-creative-empty { min-height: 220px; display: grid; place-items: center; grid-column: 1 / -1; color: var(--text-40); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.buyer-creative-card-grid { grid-area: summary; display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 30px; min-width: 0; }
.buyer-creative-page-arrow { align-self: center; width: 34px; height: 34px; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-round); background: var(--surface); font-size: 24px; line-height: 28px; }
.buyer-creative-card { position: relative; width: 280px; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--black); }
.buyer-creative-cover { position: relative; width: 278px; height: 271px; overflow: hidden; background: var(--surface-2); }
.buyer-creative-cover img { width: 100%; height: 100%; object-fit: cover; }
.buyer-creative-cover-empty { display: block; width: 100%; height: 100%; background: linear-gradient(145deg, var(--surface-2), var(--surface)); }
.buyer-creative-status { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 5px 8px; color: var(--text); border-radius: 7px; background: rgba(5,7,13,.78); font: 600 11px/14px var(--font); }
.buyer-creative-pin { position: absolute; top: 10px; right: 10px; z-index: 1; display: none; color: var(--c-white); filter: drop-shadow(0 1px 4px var(--c-black)); }
.buyer-creative-pin svg { display: block; width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.buyer-creative-pin.is-filled svg { fill: currentColor; }
.buyer-creative-pin.is-outline svg { fill: none; }
.buyer-creative-card:hover .buyer-creative-pin, .buyer-creative-card.is-primary .buyer-creative-pin { display: block; }
.buyer-creative-card:not(.is-primary):not(:hover) .buyer-creative-pin { display: none; }
.buyer-creative-cover-actions { position: absolute; right: 10px; bottom: 10px; left: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; color: var(--text); border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(5,7,13,.78); backdrop-filter: blur(8px); }
.buyer-creative-summary-body { display: grid; gap: 10px; padding: 18px; }
.buyer-creative-summary-body strong { overflow: hidden; color: var(--text); white-space: nowrap; font: 600 18px/24px var(--font); }
.buyer-creative-summary-body p { min-height: 48px; margin: 0; color: var(--text-75); font: 400 14px/20px var(--font); overflow-wrap: anywhere; }
.buyer-creative-summary-body > span { color: var(--text-40); font: 600 12px/16px var(--font); }
.buyer-creative-controls { flex: none; gap: 2px; }
.buyer-creative-cover-actions .buyer-creative-controls { display: flex; align-items: center; }
.buyer-creative-cover-actions .buyer-creative-controls button { color: rgba(255,255,255,.82); background: transparent; }
.buyer-creative-controls img { width: 16px; height: 16px; object-fit: contain; }
.buyer-creative-controls [data-buyer-creative-delete] img { width: 15px; height: 17px; }
.buyer-creative-controls .buyer-creative-edit { width: 28px; height: 28px; margin: 0; }
.buyer-creative-editor { grid-column: 1 / -1; padding: 0 0 30px; }
.buyer-creative-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 314px); grid-template-areas: 'settings preview'; align-items: start; min-width: 0; gap: 28px; }
.buyer-creative-fields { grid-area: settings; display: grid; min-width: 0; gap: 12px; padding: 0; border: 0; background: transparent; }
.buyer-creative-field { display: grid; gap: 5px; min-width: 0; }
.buyer-creative-field-label { font-weight: 700; }
.buyer-creative-field-subtitle { color: var(--muted); font-size: 12px; }
.buyer-creative-settings-row { margin: 0; grid-template-columns: minmax(0, 1fr); }
.buyer-creative-settings-row .settings-field.wide { display: grid; gap: 5px; width: 100%; }
.buyer-creative-settings-row .settings-field small { color: var(--text-40); font-size: 12px; }
.buyer-telegram-preview { grid-area: preview; min-width: 0; }
.buyer-creative-fields input, .buyer-creative-fields textarea, .buyer-creative-fields select { width: 100%; min-height: 42px; padding: 10px 12px; color: var(--text); border: 1px solid var(--line); border-radius: 9px; background: var(--black); font: inherit; }
.buyer-creative-fields textarea { min-height: 166px; resize: vertical; }
.buyer-creative-button-builder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(10, minmax(35px, auto)); gap: 6px; min-width: 0; }
.buyer-creative-button-slot { min-width: 0; min-height: 35px; display: flex; gap: 4px; align-items: center; }
.buyer-creative-button-add { width: 100%; min-height: 35px; padding: 0 9px; color: var(--text-75); border: 1px dashed var(--text-40); border-radius: 7px; background: var(--surface); font: 500 18px/24px var(--font); }
.buyer-creative-button-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 4px; align-items: center; }
.buyer-creative-button-row input { min-width: 0; min-height: 35px !important; padding: 6px 8px !important; }
.buyer-creative-button-row button { min-height: 32px; padding: 0 5px; color: var(--text-75); border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font: 500 12px var(--font); }
.buyer-creative-inline-buttons { display: grid; gap: 15px; margin-top: 0; }
.buyer-creative-inline-button-list { display: grid; gap: 15px; margin-top: 0; }
.buyer-creative-inline-button-list:empty { display: none; }
.buyer-creative-inline-button-row { display: grid; grid-template-columns: 240px 240px 52px; gap: 15px; align-items: center; }
.buyer-creative-inline-button-row input { width: 240px; height: 52px; box-sizing: border-box; padding: 0 16px; color: var(--c-white); border: 0; border-radius: var(--radius-md); background: rgba(39,39,47,.5); font: 400 14px/18px var(--font); }
.buyer-creative-inline-button-row input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.buyer-creative-inline-button-row input::placeholder { color: var(--c-white-a40); }
.buyer-creative-inline-button-row [data-buyer-button-remove] { width: 52px; height: 52px; display: grid; place-items: center; color: var(--c-red-500); border: 0; border-radius: var(--radius-md); background: transparent; }
.buyer-creative-inline-button-row [data-buyer-button-remove]:hover { background: var(--c-red-a12); }
.buyer-creative-inline-button-row [data-buyer-button-remove]:active { background: rgba(230,41,41,.18); }
.buyer-creative-inline-button-row [data-buyer-button-remove]:disabled { cursor: default; }
.buyer-creative-inline-button-row [data-buyer-button-remove] img { width: 20px; height: 22px; display: block; object-fit: contain; }
.buyer-creative-inline-button-add { width: 240px; height: 52px; margin-top: 0; color: var(--text-75); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font: 500 18px/24px var(--font); }
.buyer-creative-inline-button-error { margin-top: 12px; color: #ff6b6b; }
.buyer-campaign-card .buyer-creative-image-field { gap: 15px; }
.buyer-campaign-card .buyer-creative-field-label { color: var(--text-75); font: 400 14px/18px var(--font); font-weight: 400; }
.buyer-creative-upload { min-height: 92px; padding: 16px; display: grid; place-items: center; color: var(--text-75); border: 1px dashed var(--text-40); border-radius: 9px; }
.buyer-creative-upload input { width: auto; min-height: 0; padding: 0; border: 0; background: transparent; }
.buyer-creative-upload.is-dragging, .buyer-creative-card.has-selected-image .buyer-creative-upload { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.buyer-creative-upload-name, .buyer-creative-formatting-hint { color: var(--text-40); font-size: 12px; }
.buyer-creative-error { margin: 0; color: var(--red); font-size: 13px; }
.buyer-kktu-unavailable { color: var(--text-40); font-size: 13px; }
.buyer-telegram-preview { min-height: 490px; overflow: hidden; color: #111; border-radius: 14px; background: #e8f1f8; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.buyer-telegram-preview-top { padding: 14px 16px; color: var(--c-white); background: #5188b8; font: 600 14px var(--font); }
.buyer-telegram-preview-title { padding: 14px 16px 0; font: 600 16px/22px var(--font); }
.buyer-telegram-preview > img { width: 100%; max-height: 240px; object-fit: cover; }
.buyer-telegram-preview-text { padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/20px var(--font); }
.buyer-telegram-preview .buyer-creative-buttons { padding: 0 12px 12px; display: grid; gap: 6px; }
.buyer-telegram-preview .buyer-creative-buttons a { padding: 8px; color: #367ab7; border-radius: 7px; background: rgba(255,255,255,.7); text-align: center; }
.buyer-campaign-empty { padding: 40px 0; color: var(--text-40); }
.buyer-campaign-card.is-archived { opacity: .7; }
.buyer-campaign-card { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: var(--surface); transition: box-shadow var(--motion-base) ease, border-color var(--motion-base) ease; }
.buyer-campaign-header { min-height: 76px; padding: 0 24px; cursor: pointer; border-bottom: 1px solid var(--line); }
.buyer-campaign-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buyer-company-toggle { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; color: inherit; border: 0; background: transparent; text-align: left; cursor: pointer; }
.buyer-campaign-header-actions { display: flex; align-items: center; gap: 8px; }
.buyer-campaign-header-actions input { display: none; width: 260px; min-height: 40px; padding: 6px 10px; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--black); font: 600 16px/22px var(--font); }
.buyer-campaign-card.editing .buyer-campaign-header-actions input { display: block; }
.buyer-company-avatar { width: 40px; height: 40px; display: grid; place-items: center; flex: none; color: var(--c-white); border-radius: var(--radius-round); background: hsl(var(--buyer-company-avatar-hue) 54% 45%); font: 600 16px/1 var(--font); }
.buyer-company-chevron { color: var(--text-75); font-size: 22px; transition: transform var(--motion-base) ease; }
.buyer-campaign-card.is-collapsed .buyer-company-chevron { transform: rotate(-90deg); }
.buyer-company-content { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--motion-modal) ease; }
.buyer-campaign-card.is-collapsed .buyer-company-content { grid-template-rows: 0fr; }
.buyer-company-expanded { min-height: 0; overflow: hidden; padding: 24px; }
.buyer-campaign-card.is-collapsed .buyer-company-expanded { padding-top: 0; padding-bottom: 0; }
.buyer-campaign-workspace { grid-template-columns: 247px minmax(0, 1fr); gap: 24px; }
.buyer-campaign-actions { gap: 24px; }
.buyer-creative-action-zone { width: 247px; height: 190px; min-height: 190px; color: var(--text-75); border: 1px solid var(--c-ink-700); border-radius: 23px; background: var(--c-ink-900); }
.buyer-creative-card-grid { grid-template-columns: repeat(2, 280px); gap: 30px; overflow: hidden; padding-right: 24px; }
.buyer-creative-card { width: 280px; height: 404px; border-radius: 14px; }
.buyer-creative-cover { width: 278px; height: 271px; }
.buyer-creative-summary-body { padding: 11px 0 0; gap: 0; }
.buyer-creative-summary-body strong { color: var(--text); font: 600 16px/20px var(--font); }
.buyer-creative-summary-body p { display: none; }
.buyer-company-selected { min-height: 34px; display: grid; gap: 4px; padding-top: 0; }
.buyer-company-selected label { color: var(--text-75); font: 500 13px/18px var(--font); }
.buyer-company-selected strong { color: var(--text); font: 600 16px/20px var(--font); }
@media (max-width: 900px) { .buyer-campaign-workspace { grid-template-columns: 1fr; } .buyer-creative-action-zone { width: 100%; max-width: 247px; } .buyer-creative-card-grid { grid-template-columns: repeat(2, minmax(0, 280px)); } }
.buyer-company-card { width: 100%; border-radius: var(--radius-pill); }
.buyer-company-card.is-expanded { border-radius: 23px; }
.buyer-company-summary { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.buyer-company-summary .buyer-campaign-title { color: var(--text); font: 600 16px/20px var(--font); }
.buyer-company-summary .buyer-company-status { color: var(--text-75); font: 500 12px/16px var(--font); }
.buyer-company-summary [data-buyer-campaign-name] { display: none; }
.buyer-company-card.editing .buyer-company-summary [data-buyer-campaign-name] { display: block; }
.buyer-company-summary .buyer-company-chevron-button { width: 36px; height: 36px; margin-left: auto; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-round); background: transparent; font-size: 22px; }
.buyer-company-card .buyer-campaign-header { min-height: 76px; }
.buyer-company-card .buyer-company-toggle { flex: 1; }
.buyer-company-status { color: var(--text-40); font: 500 12px/16px var(--font); }
.buyer-company-card .buyer-company-expanded { padding: 24px; }
.buyer-company-card .buyer-company-expanded { display: grid; grid-template-columns: 247px minmax(0, 1fr); column-gap: 30px; row-gap: 24px; }
.buyer-company-zones { grid-column: 1; display: flex; flex-direction: column; gap: 24px; margin-left: 0; }
.buyer-company-zones .buyer-creative-action-zone { width: 247px; height: 190px; min-height: 190px; border: 1px solid var(--c-ink-700); border-radius: 23px; background: var(--c-ink-900); }
.buyer-company-carousel { grid-column: 2; display: flex; grid-template-columns: none; flex-wrap: nowrap; gap: 30px; overflow-x: auto; overflow-y: hidden; padding: 0 24px 4px 0; scroll-snap-type: x proximity; }
.buyer-company-card .buyer-campaign-divider, .buyer-company-card .buyer-company-selected { grid-column: 1 / -1; }
.buyer-company-carousel .buyer-creative-card { flex: 0 0 280px; width: 280px; height: 404px; border-radius: 23px; scroll-snap-align: start; }
.buyer-company-carousel .buyer-creative-cover { width: 278px; height: 271px; }
.buyer-carousel-next { position: sticky; right: 0; align-self: center; width: 36px; height: 36px; flex: 0 0 36px; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-round); background: var(--surface); font-size: 24px; }
.buyer-campaign-creative-zones .buyer-creative-action-zone { width: 247px; height: 190px; min-height: 190px; border: 1px solid var(--c-ink-700); border-radius: 23px; background: var(--c-ink-900); }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter { width: max-content; min-width: 0; height: 52px; padding: 0 17px; box-sizing: border-box; }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter .sort-dropdown { width: max-content; min-width: 0; flex: none; }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter .dropdown-trigger { width: max-content; min-width: 0; height: 52px; gap: 10px; white-space: nowrap; }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter .dropdown-panel { width: 100%; min-width: 0; }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter { display: flex; grid-template-columns: none; grid-auto-columns: auto; width: 154px; min-width: 154px; height: 52px; padding: 0 17px; gap: 0; box-sizing: border-box; }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter .sort-dropdown { position: static; display: block; width: 120px; min-width: 0; flex: 0 0 120px; }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter .dropdown-trigger { position: relative; width: 120px; min-width: 0; height: 52px; padding: 0; box-sizing: border-box; display: flex; justify-content: space-between; gap: 10px; text-align: left; white-space: nowrap; }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter .dropdown-trigger span { width: auto; max-width: none; overflow: visible; text-align: left; }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter .dropdown-trigger i { position: static; width: 9px; height: 5px; flex: 0 0 9px; transform: none; }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter .sort-dropdown.open .dropdown-trigger i { transform: rotate(180deg); }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter .dropdown-panel { width: 100%; min-width: 0; }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter .dropdown-panel { width: 154px; }
.buyer-campaigns-list .my-channel-card.open { border-radius: var(--radius-2xl); }
.buyer-campaign-expanded-actions { display: flex; gap: 12px; margin-top: 24px; }
.buyer-campaign-expanded-actions button { min-height: 40px; padding: 0 16px; color: var(--text-75); border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font: 500 14px/20px var(--font); }
.buyer-campaign-action-error { margin: 12px 0 0; color: var(--red); font-size: 13px; }
.buyer-company-carousel { scrollbar-width: none; -ms-overflow-style: none; }
.buyer-company-carousel::-webkit-scrollbar { display: none; }
.buyer-company-carousel { position: relative; overflow-x: hidden; touch-action: pan-y; overscroll-behavior-x: none; user-select: none; }
.buyer-company-carousel .buyer-carousel-next-overlay { position: absolute; z-index: 6; top: 0; left: 0; width: 0; height: 0; padding: 0; border: 0; border-radius: 23px 0 0 23px; background: transparent; color: transparent; cursor: pointer; opacity: 0; pointer-events: auto; }
.buyer-company-carousel .buyer-carousel-next-overlay[hidden] { display: none; }
.buyer-company-carousel .buyer-carousel-next-overlay:hover,
.buyer-company-carousel .buyer-carousel-next-overlay:focus-visible { background: rgba(0, 0, 0, 0.58); color: var(--c-white); opacity: 1; }
.buyer-company-carousel .buyer-carousel-next-overlay:focus-visible { outline: 2px solid var(--c-white); outline-offset: -2px; }
.buyer-company-carousel .buyer-creative-card { overflow: hidden; }
.buyer-company-carousel .buyer-creative-summary-body { min-height: 133px; background: var(--c-ink-900); }
.buyer-company-carousel .buyer-creative-status-chip { position: absolute; top: 11px; left: 11px; display: inline-flex; height: 25px; align-items: center; justify-content: center; border-radius: 20px; color: var(--c-white); font: 600 12px/15px Inter, var(--font); }
.buyer-company-carousel .buyer-creative-status-chip.used { width: 119px; background: #2B8222; }
.buyer-company-carousel .buyer-creative-status-chip.not-used { width: 136px; color: var(--c-ink-900); background: var(--c-yellow-500); }
.buyer-company-carousel .buyer-creative-status-chip.not-configured { width: 110px; background: var(--c-ink-700); }
.buyer-company-carousel .buyer-creative-enabled-toggle { position: absolute; top: 11px; right: 14px; z-index: 3; width: 34px; height: 20px; padding: 0; border: 0; border-radius: var(--radius-md); background: var(--c-ink-700); transition: none; }
.buyer-company-carousel .buyer-creative-enabled-toggle::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: var(--radius-round); background: var(--c-yellow-500); content: ''; transition: none; transform: translateX(0); }
.buyer-company-carousel .buyer-creative-enabled-toggle.used::after { background: var(--c-green-500); transform: translateX(14px); }
.buyer-company-carousel .buyer-creative-enabled-toggle.not-used::after { background: var(--c-yellow-500); transform: translateX(0); }
.buyer-company-carousel .buyer-creative-enabled-toggle.not-configured::after { background: #565656; transform: translateX(0); }

/* Campaign equivalent of the My Channels expandable primitive, with semantic Campaign selectors. */
.buyer-campaign-card.buyer-campaign-expandable { position: relative; width: 1046px; min-height: 84px; max-height: 84px; padding: 0; display: block; overflow: hidden; background: var(--c-ink-900); border: 0; border-radius: var(--radius-pill); will-change: max-height, border-radius; transition: max-height var(--motion-expand) var(--ease-out-expo), border-radius var(--motion-modal) ease; }
.buyer-campaign-card.buyer-campaign-expandable.open { max-height: 3200px; overflow: hidden; border-radius: var(--radius-2xl); }
.buyer-campaign-card .buyer-campaign-summary { position: relative; z-index: 3; width: 100%; height: 84px; padding: 12px 0 12px 12px; display: grid; grid-template-columns: 60px minmax(0,1fr) max-content 67px; align-items: center; gap: 16px; background: var(--c-ink-900); text-align: left; }
.buyer-campaign-card .buyer-campaign-avatar { width: 60px; height: 60px; display: grid; place-items: center; color: var(--c-white); border-radius: var(--radius-round); overflow: hidden; font: 600 22px/1 var(--font); }
.buyer-campaign-card .buyer-campaign-avatar,
.buyer-campaign-card .buyer-campaign-info,
.buyer-campaign-card .buyer-campaign-text { align-self: start; }
.buyer-campaign-card .buyer-campaign-info { min-width: 0; max-width: 100%; display: flex; align-items: center; transform: translate(0, 0); transform-origin: center; transition: transform .26s var(--ease-out-soft); }
.buyer-campaign-card .buyer-campaign-settings { height: 838px; padding: 0; display: block; opacity: 0; pointer-events: none; transition: opacity .42s ease var(--motion-fast); }
.buyer-campaign-card.buyer-campaign-expandable.open .buyer-campaign-settings { opacity: 1; pointer-events: auto; }
.buyer-campaign-card .buyer-campaign-divider { width: 100%; height: 1px; margin-top: 0; background: var(--c-ink-700); }
.buyer-company-carousel .buyer-creative-enabled-toggle:disabled { cursor: default; opacity: .7; }
.buyer-company-carousel .buyer-creative-cover-badge { position: absolute; bottom: 11px; width: 36px; height: 36px; border-radius: 11px; background: #05070D; }
.buyer-company-carousel .buyer-creative-cover-badge-left { left: 11px; width: 97px; }
.buyer-company-carousel .buyer-creative-cover-badge-right { right: 11px; }
.buyer-company-carousel .buyer-creative-cover-actions { position: absolute; right: 0; bottom: 11px; left: 0; display: block; padding: 0; border: 0; background: transparent; }
.buyer-company-carousel .buyer-creative-controls,
.buyer-company-carousel .buyer-creative-cover-actions > button { position: absolute; bottom: 0; display: flex; width: 97px; height: 36px; align-items: center; justify-content: center; gap: 9px; padding: 0; border: 0; border-radius: 11px; background: var(--c-black); pointer-events: auto; }
.buyer-company-carousel .buyer-creative-controls { left: 11px; }
.buyer-company-carousel .buyer-creative-cover-actions > button { right: 11px; width: 36px; }
.buyer-company-carousel .buyer-creative-controls button,
.buyer-company-carousel .buyer-creative-cover-actions > button { display: grid; width: 20px; height: 20px; place-items: center; padding: 0; border: 0; background: transparent; }
.buyer-company-carousel .buyer-creative-controls img,
.buyer-company-carousel .buyer-creative-cover-actions > button img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); }
.buyer-company-carousel .buyer-creative-controls button:hover { background: var(--c-blue-500); border-radius: 5px; }
.buyer-company-carousel .buyer-creative-status-chip.not-configured { background: var(--c-black); }
.buyer-company-carousel .buyer-creative-cover-actions { z-index: 4; }
.buyer-company-carousel .buyer-creative-cover-actions .buyer-creative-controls { position: absolute; left: 11px; bottom: 0; z-index: 1; display: flex; width: 97px; height: 36px; align-items: center; justify-content: center; gap: 9px; padding: 0; border-radius: 11px; background: var(--c-black); }
.buyer-company-carousel .buyer-creative-cover-actions > button { position: absolute; right: 11px; bottom: 0; z-index: 1; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 11px; background: var(--c-black); }
.buyer-company-carousel .buyer-creative-cover-actions .buyer-creative-controls button { display: grid; width: 20px; height: 20px; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; }
.buyer-company-carousel .buyer-creative-cover-actions img { position: relative; z-index: 1; width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); }
.buyer-company-carousel .buyer-creative-cover-actions .buyer-creative-controls button:hover { background: transparent; }
.buyer-company-carousel .buyer-creative-cover-actions .buyer-creative-controls button:hover img { filter: brightness(0) saturate(100%) invert(31%) sepia(98%) saturate(2510%) hue-rotate(218deg) brightness(99%) contrast(96%); }
.buyer-company-carousel .buyer-creative-cover-actions > button:hover { background: var(--c-black); } /* меняется только цвет значка */
.buyer-company-carousel .buyer-creative-cover-actions > button:hover img { filter: brightness(0) saturate(100%) invert(19%) sepia(99%) saturate(2860%) hue-rotate(346deg) brightness(98%) contrast(101%); }
.buyer-company-carousel .buyer-creative-status-chip { z-index: 3; }
.buyer-company-carousel .buyer-creative-card { background: var(--c-ink-900); overflow: hidden; isolation: isolate; contain: paint; }
.buyer-company-carousel .buyer-creative-cover { width: 100%; height: 271px; display: block; background: var(--c-ink-900); overflow: hidden; border-radius: 22px 22px 0 0; isolation: isolate; contain: paint; }
.buyer-company-carousel .buyer-creative-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 22px 22px 0 0; }
.buyer-company-carousel .buyer-creative-toggle-error { display: block; margin-top: 8px; color: var(--red); font: 500 12px/16px var(--font); }
.buyer-company-carousel .buyer-creative-cover-actions .buyer-creative-controls [data-buyer-creative-preview] { background: transparent; }
.buyer-company-carousel .buyer-creative-cover-actions .buyer-creative-controls [data-buyer-creative-preview] img { filter: none; }
.buyer-company-carousel .buyer-creative-cover-actions .buyer-creative-controls [data-buyer-creative-preview]:hover { background: transparent; }
.buyer-company-carousel .buyer-creative-cover-actions .buyer-creative-controls [data-buyer-creative-preview]:hover img { content: url('../assets/creative-eye-hover.svg'); filter: none; }
.my-channel-card.open[data-buyer-campaign-id] {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.my-channel-card[data-buyer-campaign-id] .my-channel-settings { height: auto; }
.buyer-creative-inline-editor { display: grid; width: 557px; margin-top: 24px; gap: 15px; }
.buyer-creative-inline-editor .channel-settings-input { width: 557px; height: 52px; box-sizing: border-box; padding: 0 16px; color: var(--c-white); border: 0; border-radius: var(--radius-md); background: rgba(39, 39, 47, .5); font: 400 14px/18px var(--font); }
.buyer-creative-inline-editor textarea.channel-settings-input { height: 157px; padding: 16px; resize: none; }
.buyer-creative-inline-editor [data-buyer-creative-richtext] { min-height: 157px; height: auto; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
.buyer-creative-inline-editor .channel-settings-input::placeholder { color: var(--text-40); font: 400 14px/18px var(--font); }
.buyer-creative-image-field { display: grid; width: 267px; margin-top: 15px; gap: 8px; color: var(--text-75); font: 400 14px/18px var(--font); }
.buyer-creative-image-attach { width: 267px; height: 52px; color: var(--text-40); border: 0; border-radius: var(--radius-md); background: var(--c-ink-800); font: 400 14px/18px var(--font); }
.buyer-creative-inline-editor-error { margin: 0; color: var(--red); font: 400 12px/16px var(--font); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .buyer-campaign-workspace { grid-template-columns: 1fr; grid-template-areas: 'controls' 'summary'; } .buyer-creative-editor-layout { grid-template-columns: 1fr; grid-template-areas: 'settings' 'preview'; } .buyer-campaign-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .buyer-creative-action-zone { min-height: 150px; } .buyer-creative-card-grid { grid-template-columns: 1fr; } .buyer-creative-card { width: 280px; } .buyer-telegram-preview { min-height: 350px; max-width: 314px; } }
@media (max-width: 1100px) { .profile-content-buyer-campaigns { width: 100%; } }
.buyer-campaign-creative-workspace { display: grid; grid-template-columns: 247px minmax(0, 1fr); column-gap: 30px; row-gap: 24px; align-items: start; min-width: 0; }
.buyer-campaign-creative-zones { display: flex; flex-direction: column; gap: 24px; }
.buyer-campaign-creative-zones .buyer-creative-action-zone { width: 247px; height: 190px; min-height: 190px; padding: 24px; box-sizing: border-box; }
.advix-ads-layout {
  width: 1046px;
  display: grid;
  grid-template-columns: 692px 314px;
  gap: 40px;
  align-items: start;
}
.advix-ads-list {
  display: grid;
  gap: 16px;
}
.advix-ads-channel-block {
  width: 692px;
  min-height: 534px;
  padding: 24px;
  display: grid;
  grid-template-columns: 338px 260px;
  gap: 40px;
  align-items: start;
  background: var(--c-ink-900);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
}
.advix-ads-card-preview {
  position: relative;
  width: 338px;
  height: 486px;
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 2px var(--c-yellow-500);
}
.advix-ads-card-preview .channel-card {
  position: relative;
}
.advix-ads-card-preview .card-buy,
.advix-ads-card-preview .card-favorite:disabled {
  cursor: default;
  pointer-events: none;
}
.advix-ads-card-preview .card-buy {
  opacity: .5;
}
.advix-ads-card-preview .card-favorite:disabled {
  opacity: .45;
}
.advix-ads-controls {
  width: 260px;
  min-height: 486px;
  color: var(--c-white);
}
.advix-ads-label {
  display: block;
  height: 18px;
  color: var(--c-white-a75);
  font: 400 14px/18px var(--font);
}
.advix-ads-label.confirm {
  margin-top: 20px;
}
.advix-ads-bid {
  margin-top: 8px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-white);
  font: 600 20px/24px var(--font);
}
.advix-ads-bid i {
  color: var(--c-ink-700);
  font-style: normal;
}
.advix-ads-bid + .advix-ads-label {
  margin-top: 20px;
}
.advix-ads-field-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 136px 1fr;
  column-gap: 25px;
  align-items: center;
}
.advix-ads-field-row .channel-settings-input {
  width: 136px;
  height: 52px;
}
.advix-ads-field-row .advix-ads-input.price-field {
  background: var(--c-ink-950);
}
.advix-ads-input.price-field input {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  text-overflow: clip;
}
.advix-ads-views-input img {
  display: none;
}
.advix-ads-field-row small {
  color: rgba(255,255,255,.5);
  font: 300 10px/13px var(--font);
}
.advix-ads-input input::placeholder {
  color: var(--text-40);
}
.advix-ads-input input:disabled {
  color: rgba(255,255,255,.35);
  cursor: default;
}
.advix-ads-running .advix-ads-input {
  opacity: .55;
}
.advix-ads-running .advix-ads-currency {
  opacity: .55;
}
.advix-ads-running [data-advix-ads-currency] {
  cursor: default;
  pointer-events: none;
}
.advix-ads-total-head {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: var(--c-white-a75);
  font: 400 14px/18px var(--font);
}
.advix-ads-currency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.advix-ads-currency b {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3F763B;
}
.advix-ads-currency[data-advix-ads-currency-state="GRAM"] b {
  color: #30A0F4;
}
.advix-ads-currency b img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}
.advix-ads-start-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 25px;
}
.advix-ads-start {
  width: 136px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green-500);
  border-radius: 50px;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--motion-fast) ease;
}
.advix-ads-start:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
.advix-ads-start > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: var(--radius-round);
  position: relative;
}
.advix-ads-start img {
  width: 17px;
  height: 20px;
  display: block;
  object-fit: contain;
}
.advix-ads-start[aria-pressed="true"] > span {
  width: 34px;
  border-radius: var(--radius-round);
  background: transparent;
}
.advix-ads-start[aria-pressed="true"],
.advix-ads-start.is-active {
  background: var(--c-red-500);
}
.advix-ads-start[aria-pressed="true"] img {
  display: none;
}
.advix-ads-start[aria-pressed="true"] > span::before,
.advix-ads-start[aria-pressed="true"] > span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: 13px;
  border-radius: 2px;
  background: var(--c-white);
  transform: translateY(-50%);
}
.advix-ads-start[aria-pressed="true"] > span::before {
  left: calc(50% - 4px);
}
.advix-ads-start[aria-pressed="true"] > span::after {
  left: calc(50% + 4px);
}
.advix-ads-details {
  width: 99px;
  display: block;
  color: rgba(255,255,255,.5);
  text-align: left;
  font: 300 10px/13px var(--font);
  cursor: text;
  user-select: text;
}
.advix-ads-line {
  width: 260px;
  height: 1px;
  margin-top: 25px;
  background: var(--c-ink-700);
}
.advix-ads-stats {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.advix-ads-stats span {
  display: block;
  margin-bottom: 10px;
  color: var(--c-white-a75);
  font: 400 14px/18px var(--font);
}
.advix-ads-stats b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-white);
  font: 600 20px/24px var(--font);
}
.advix-ads-stats b .price-gram {
  width: 1em;
  height: 1em;
  margin-left: 0;
}
.advix-ads-stats b sup {
  align-self: flex-start;
  margin-left: -2px;
  color: #76767B;
  font: 600 18px/18px var(--font);
}
.advix-ads-stats b + b {
  margin-top: 6px;
}
.advix-ads-side-card {
  width: 314px;
  min-height: 102px;
}
.my-channel-card {
  position: relative;
  width: 1046px;
  min-height: 84px;
  max-height: 84px;
  padding: 0;
  display: block;
  overflow: hidden;
  background: var(--c-ink-900);
  border: 0;
  box-shadow: none;
  border-radius: var(--radius-pill);
  will-change: max-height, border-radius;
  transition: max-height var(--motion-expand) var(--ease-out-expo), border-radius var(--motion-modal) ease;
}
.my-channel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
}
.my-channel-card.open {
  max-height: 1800px;
  overflow: hidden;
}
.my-channel-card.expanded-radius { border-radius: var(--radius-2xl); }
.my-channel-summary {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 84px;
  padding: 12px 0 12px 12px;
  display: grid;
  grid-template-columns: 60px minmax(0,1fr) max-content 67px;
  align-items: center;
  gap: 16px;
  background: var(--c-ink-900);
  text-align: left;
}
.my-channel-summary .my-channel-avatar,
.my-channel-avatar {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-blue-500), var(--c-cyan-500));
  border-radius: var(--radius-round);
  font: 600 22px/1 var(--font);
  overflow: hidden;
}
.my-channel-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.my-channel-info {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 16px;
  text-align: left;
}
.my-channel-text {
  min-width: 0;
  max-width: 520px;
  height: 60px;
  display: flex;
  align-items: center;
}
.my-channel-text strong {
  overflow: hidden;

  white-space: nowrap;
  color: var(--c-white);
  font: 600 18px/22px var(--font);
}
.my-channel-status {
  flex: 0 0 120px;
  width: 120px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--status-color);
  background: color-mix(in srgb, var(--status-color) 12%, transparent);
  border-radius: var(--radius-xs);
  font: 500 14px/18px var(--font);
  align-self: center;
  transition: color var(--motion-panel) ease, background-color var(--motion-panel) ease, width var(--motion-panel) ease, flex-basis var(--motion-panel) ease, opacity var(--motion-panel) ease, transform var(--motion-panel) ease;
}
.my-channel-status[data-status="draft"] {
  flex-basis: 120px !important;
  width: 120px !important;
  color: rgba(255,255,255,.6) !important;
  background: var(--c-white-a12) !important;
  font-weight: 400 !important;
}
.my-channel-status[data-status="paused"] {
  flex-basis: 94px;
  width: 94px;
}
.my-channel-status[data-status="rejected"] {
  flex-basis: 100px;
  width: 100px;
}
.my-channel-status[data-status="auto_rejected"] {
  flex-basis: 124px;
  width: 124px;
  gap: 6px;
}
.auto-status-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url('../assets/auto-status.png') center/contain no-repeat;
  mask: url('../assets/auto-status.png') center/contain no-repeat;
}
.my-channel-reason {
  position: relative;
  flex: 0 0 auto;
  height: 36px;
  margin-left: -8px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue-500);
  background: transparent;
  border-radius: var(--radius-xs);
  font: 500 14px/18px var(--font);
  white-space: nowrap;
  transition: background-color var(--motion-base) ease;
}
.my-channel-reason:hover,
.my-channel-reason:focus-visible {
  background: var(--c-blue-a12);
}
.my-channel-reason-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2000;
  width: max-content;
  max-width: 280px;
  padding: 8px 12px;
  color: var(--c-white-a75);
  text-wrap: balance;
  background: var(--c-ink-950);
  border: 1px solid var(--c-ink-700);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  font: 400 14px/18px var(--font);
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease, visibility var(--motion-fast) ease;
}
.my-channel-reason-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.my-channel-hot-status {
  height: 36px;
  margin-left: -8px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--orange);
  background: var(--c-orange-a12);
  border-radius: var(--radius-pill);
  font: 500 14px/18px var(--font);
  white-space: nowrap;
}
.my-channel-status.is-leaving {
  opacity: 0;
  transform: translateY(-4px) scale(.96);
}
.my-channel-actions { position: relative; z-index: 4; display: flex; align-items: center; gap: 8px; margin-right: 0; flex: 0 0 auto; transition: opacity var(--motion-panel) ease, transform var(--motion-panel) ease; }
.my-channel-action {
  height: 36px;
  padding: 0 16px;
  color: var(--c-white);
  border-radius: var(--radius-xs);
  font: 500 14px/18px var(--font);
  transition: opacity var(--motion-panel) ease, transform var(--motion-panel) ease, background-color var(--motion-base) ease;
}
.my-channel-action.publish { width: 131px; background: var(--c-green-500); }
.my-channel-action.pause { width: 93px; background: var(--c-orange-500); }
.my-channel-action:disabled { background: var(--c-ink-800); cursor: default; }
.my-channel-action.publish.is-pending:disabled { background: var(--c-green-500); }
.my-channel-action.pause.is-pending:disabled { background: var(--c-orange-500); }
.my-channel-card.state-updated .my-channel-status,
.my-channel-card.state-updated .my-channel-action {
  animation: myChannelStateIn var(--motion-slow) ease both;
}
@keyframes myChannelStateIn {
  from { opacity: 0; transform: translateY(4px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.my-channel-chevron {
  position: relative;
  z-index: 3;
  width: 83px;
  height: 84px;
  margin: -12px 0 -12px -16px;
  padding: 0;
  display: block;
  background: transparent;
  transition: opacity var(--motion-base) ease;
  opacity: .75;
}
.my-channel-chevron::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13.5px;
  height: 7.5px;
  background: url('../assets/chevron-down.svg') center/contain no-repeat;
  transform: translate(-50%, -50%) rotate(0);
  transform-origin: center;
  transition: transform .26s var(--ease-out-soft);
}
.my-channel-card.open .my-channel-chevron::before { transform: translate(-50%, -50%) rotate(180deg); }
.my-channel-settings {
  height: 838px;
  padding: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease var(--motion-fast);
}
.my-channel-card.open .my-channel-settings {
  opacity: 1;
  pointer-events: auto;
}
.my-channel-divider { width: 100%; height: 1px; margin-top: 0; background: var(--c-ink-700); }
.my-channel-settings-body { padding: 24px; }

/* Настройки канала: строки, условия, горящие предложения, выбор даты и времени. */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
.settings-row { display: grid; gap: 20px; }
.settings-row.top { grid-template-columns: repeat(3, 319.33px); }
.settings-row.description { margin-top: 24px; grid-template-columns: 658px 320px; }
.settings-row.description .settings-field.wide {
  grid-column: auto;
  width: 658px;
}
.settings-row.description .settings-field.cover {
  grid-column: auto;
  width: 320px;
}
.settings-field { display: grid; gap: 8px; color: var(--text-75); font: 400 14px/18px var(--font); }
.settings-single-selector {
  width: 319.33px;
  z-index: 30;
}
.settings-single-selector.open {
  z-index: 1200;
}
.settings-single-selector .chips {
  width: 319.33px;
  height: 42px;
  min-height: 42px;
  padding: 6px;
  background: var(--black);
}
.settings-single-selector .dropdown-panel {
  top: 42px;
  width: 319.33px;
  background: var(--black);
}
.settings-single-selector .category-options {
  height: auto;
  max-height: 385px;
  padding: 54px 12px 12px;
  overflow: hidden;
}
.settings-single-selector .dropdown-search {
  width: 295.33px;
}
.settings-single-selector .option-list {
  width: 295.33px;
  height: auto;
  max-height: 319px;
  margin: 0;
  overflow-y: auto;
  padding-right: 10px;
}
.settings-single-selector .custom-scrollbar { display: none; }
.settings-single-selector .option-list:has(button:nth-child(n+9)) + .custom-scrollbar { display: block; }
.settings-single-selector .option-list:has(button:nth-child(n+9)) { height: 319px; }
.settings-single-selector .selected-categories::after {
  background: linear-gradient(90deg, rgba(5,5,13,0), var(--black) 88%);
}
.settings-single-selector .chip:not(.more) {
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue-500);
  background: var(--c-blue-a16);
  font: 400 14px/18px var(--font);
  line-height: 30px;
}
.settings-single-selector .chips:hover,
.settings-single-selector .chips:active,
.settings-single-selector .chips:focus,
.settings-single-selector .chips:focus-visible,
.moderation-plain-selector .chips:hover,
.moderation-plain-selector .chips:active,
.moderation-plain-selector .chips:focus,
.moderation-plain-selector .chips:focus-visible {
  color: inherit;
  background: var(--black);
  outline: 0;
}
.settings-single-selector .chip.selected,
.settings-single-selector .chips:active .chip.selected,
.settings-single-selector .chips:focus .chip.selected,
.moderation-plain-selector .chip.selected,
.moderation-plain-selector .chips:active .chip.selected,
.moderation-plain-selector .chips:focus .chip.selected {
  color: var(--c-blue-500);
  background: var(--c-blue-a16);
}
.moderation-single-selector,
.moderation-single-selector .chips,
.moderation-single-selector .dropdown-panel {
  width: 286px;
}
.moderation-single-selector .dropdown-search,
.moderation-single-selector .option-list {
  width: 262px;
}
.moderation-plain-selector,
.moderation-plain-selector .chips,
.moderation-plain-selector .dropdown-panel {
  width: 100%;
}
.moderation-plain-selector .chips {
  height: 52px;
  padding: 6px 42px 6px 16px;
  background: var(--c-ink-950);
}
.moderation-plain-selector .chips::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 9px;
  height: 5px;
  background: url('../assets/chevron-down.svg') center/contain no-repeat;
  transform: translateY(-50%) rotate(0);
  transition: transform var(--motion-modal) ease;
}
.moderation-plain-selector.open .chips::after {
  transform: translateY(-50%) rotate(180deg);
}
.moderation-plain-selector .dropdown-panel {
  top: calc(100% + 8px);
  bottom: auto;
}
.moderation-plain-selector .category-options {
  height: auto;
  max-height: 180px;
  padding: 12px;
}
.moderation-plain-selector .option-list {
  width: 100%;
  max-height: 156px;
}
.moderation-plain-selector .chip,
.moderation-plain-selector .empty-selection {
  max-width: 100%;
  font: 400 16px/20px var(--font);
}
.moderation-plain-selector .chip {
  color: var(--c-blue-500);
  background: var(--c-blue-a16);
}
.moderation-plain-selector .empty-selection {
  color: var(--c-white-a40);
}
.settings-single-selector.required-missing .chips,
.price-field.required-missing {
  box-shadow: inset 0 0 0 1px rgba(246, 75, 75, .75);
}
.channel-settings-select,
.channel-settings-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: var(--c-white);
  background: var(--c-ink-800);
  border: 0;
  border-radius: var(--radius-md);
  font: 400 16px/20px var(--font);
  outline: 0;
}
.channel-settings-select { appearance: none; background-image: url('../assets/chevron-down.svg'); background-repeat: no-repeat; background-position: right 16px center; }
.channel-settings-input::placeholder,
.price-field input::placeholder { color: var(--text-40); }
.settings-row.description .channel-settings-input {
  height: 42px;
  font: 400 14px/18px var(--font);
}
.settings-row.description .channel-settings-input::placeholder {
  font: 400 14px/18px var(--font);
}
.settings-line { width: calc(100% + 48px); height: 1px; margin: 24px -24px; background: var(--c-ink-700); }
.settings-commerce { display: grid; grid-template-columns: 376px 1fr; gap: 32px; align-items: start; }
.settings-commerce h3 { margin: 0 0 8px; color: var(--text-75); font: 400 14px/18px var(--font); }
.settings-flags h3 { margin: 0 0 16px; color: var(--text-75); font: 400 14px/18px var(--font); }
.settings-hot h3 {
  color: var(--c-orange-500);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.settings-hot h3::after { content: none; }
.my-channel-conditions,
.hot-conditions { display: grid; gap: 8px; }
.my-condition { display: grid; grid-template-columns: 100px 136px 136px; gap: 4px; align-items: center; }
.condition-type {
  background-color: var(--c-ink-950);
}
.condition-type-wrap {
  position: relative;
  min-width: 0;
}
.condition-type-wrap.condition-swap-from-above { animation: conditionSwapFromAbove .34s var(--ease-out-expo); }
.condition-type-wrap.condition-swap-from-below { animation: conditionSwapFromBelow .34s var(--ease-out-expo); }
@keyframes conditionSwapFromAbove {
  from { z-index: 3; opacity: .45; transform: translateY(-50px); }
  to { z-index: 3; opacity: 1; transform: translateY(0); }
}
@keyframes conditionSwapFromBelow {
  from { z-index: 3; opacity: .45; transform: translateY(50px); }
  to { z-index: 3; opacity: 1; transform: translateY(0); }
}
.condition-type-toggle {
  position: relative;
  width: 100%;
  padding: 0 40px 0 16px;
  display: flex;
  align-items: center;
  color: var(--c-white);
  background-color: var(--c-ink-950);
  text-align: left;
  font: 400 16px/20px var(--font);
}
.condition-type-toggle span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;

}
.condition-type-toggle i {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 9px;
  height: 5px;
  background: url('../assets/chevron-down.svg') center/contain no-repeat;
  transform: translateY(-50%) rotate(0);
  transition: transform var(--motion-modal) ease;
  pointer-events: none;
}
.condition-type-wrap.open .condition-type-toggle i {
  transform: translateY(-50%) rotate(180deg);
}
.condition-type-wrap.open .condition-type-toggle {
  border-radius: 10px 10px 0 0;
}
.condition-type-panel {
  position: absolute;
  z-index: 1100;
  left: 0;
  top: 100%;
  width: 100%;
  min-width: 100%;
  padding: 6px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(0) scaleY(.96);
  transform-origin: top center;
  background: var(--c-ink-950);
  border: 0;
  border-radius: 0 0 10px 10px;
  transition: opacity var(--motion-base) ease, transform var(--motion-modal) ease, visibility var(--motion-base);
}
.condition-type-wrap.open .condition-type-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scaleY(1);
}
.condition-type-panel button {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  color: var(--c-white-a75);
  border-radius: 7px;
  text-align: left;
  font: 400 14px/18px var(--font);
}
.condition-type-panel button:hover:not(:disabled),
.condition-type-panel button.selected {
  color: var(--c-blue-500);
  background: var(--c-blue-a12);
}
.condition-type-panel button:disabled {
  color: var(--c-white-a20);
  cursor: not-allowed;
}
input.condition-type[readonly] { padding: 0; text-align: center; }
.price-field {
  position: relative;
  display: block;
  padding: 0;
  background: var(--c-ink-950);
}
.price-field input {
  width: 100%;
  height: 100%;
  padding: 0 46px 0 16px;
  color: var(--c-white);
  background: transparent;
  border: 0;
  outline: 0;
  font: 400 16px/20px var(--font);
}
.price-field input::-webkit-outer-spin-button,
.price-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.price-field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.price-field img {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  object-fit: contain;
  pointer-events: none;
}
.price-field.disabled { opacity: .45; }
.price-field input:disabled { color: var(--text-40); cursor: not-allowed; }
.price-field.min-price-invalid {
  box-shadow: inset 0 0 0 1px rgba(246, 75, 75, .9);
  z-index: 2;
}
.price-field.min-price-invalid::after {
  content: attr(data-price-error);
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  z-index: 3;
  color: #F64B4B;
  font: 400 12px/16px var(--font);
  white-space: nowrap;
  pointer-events: none;
}
.hot-condition-row { display: grid; grid-template-columns: 148px 110px 136px 136px 52px; gap: 4px; align-items: center; }
.hot-condition-row > .channel-settings-input:not(.price-field) { background-color: var(--c-ink-950); }
.hot-picker {
  position: relative;
  min-width: 0;
}
.hot-picker-toggle {
  position: relative;
  width: 100%;
  padding: 0 42px 0 16px;
  display: flex;
  align-items: center;
  color: var(--c-white);
  background-color: var(--c-ink-950);
  text-align: left;
  font: 400 16px/20px var(--font);
}
.hot-picker-toggle span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;

}
.hot-date-input {
  padding-right: 46px;
  background-image: url('../assets/calendar.svg');
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px 18px;
}
.hot-time-input i {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 5px;
  background: url('../assets/chevron-down.svg') center/contain no-repeat;
  transform: translateY(-50%) rotate(0);
  transition: transform var(--motion-modal) ease;
  pointer-events: none;
}
.hot-time-picker.open .hot-time-input i {
  transform: translateY(-50%) rotate(180deg);
}
.hot-picker.open .hot-picker-toggle {
  border-radius: 10px 10px 0 0;
}
.hot-picker-panel {
  position: absolute;
  z-index: 1100;
  left: 0;
  top: 100%;
  width: 100%;
  min-width: 100%;
  padding: 6px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(0) scaleY(.96);
  transform-origin: top center;
  background: var(--c-ink-950);
  border: 0;
  border-radius: 0 0 10px 10px;
  transition: opacity var(--motion-base) ease, transform var(--motion-modal) ease, visibility var(--motion-base);
}
.hot-picker.open .hot-picker-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scaleY(1);
}
.hot-date-options {
  display: grid;
  gap: 2px;
  width: 136px;
}
.cart-placement-picker .hot-date-picker .hot-picker-panel {
  width: 260px;
  min-width: 260px;
  padding: 10px;
  background: var(--c-ink-900);
  border: 1px solid var(--c-ink-700);
  border-radius: 0 10px 10px 10px;
}
.hot-date-calendar { width: 238px; color: var(--c-white); }
.hot-date-calendar-head {
  height: 22px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  text-align: center;
}
.hot-date-calendar-head b {
  min-width: 0;
  overflow: hidden;
  color: var(--c-white);

  text-transform: capitalize;
  white-space: nowrap;
  font: 500 14px/18px var(--font);
}
.hot-date-calendar-nav {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--c-white-a75);
  border-radius: 7px;
  font: 400 22px/22px var(--font);
}
.hot-date-calendar-nav:hover:not(:disabled) { color: var(--c-white); background: var(--c-blue-a12); }
.hot-date-calendar-nav:disabled { color: var(--c-white-a20); cursor: not-allowed; }
.hot-date-calendar-line { width: 100%; height: 1px; margin-top: 8px; background: var(--c-ink-700); }
.hot-date-calendar-week,
.hot-date-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 30px);
  gap: 2px;
}
.hot-date-calendar-week { margin-top: 10px; }
.hot-date-calendar-week span {
  width: 30px;
  height: 16px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.5);
  font: 400 10px/14px var(--font);
}
.hot-date-calendar-grid { margin-top: 4px; }
.hot-date-calendar-day {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--c-white-a20);
  border-radius: var(--radius-round);
  font: 400 12px/15px var(--font);
}
.hot-date-calendar-day.is-available { color: var(--c-white); cursor: pointer; }
.hot-date-calendar-day.is-available:hover:not(:disabled) { background: var(--c-blue-a12); }
.hot-date-calendar-day.is-disabled,
.hot-date-calendar-day.is-muted { color: rgba(255,255,255,.16); cursor: not-allowed; }
.hot-date-calendar-day.today::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-round);
  background: rgba(30,85,249,.8);
  transform: translate(-50%, -50%);
}
.hot-date-calendar-day.selected::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  border: 2px solid var(--c-blue-500);
  border-radius: var(--radius-round);
  transform: translate(-50%, -50%);
}
.hot-date-calendar-day span { position: relative; z-index: 1; }
.hot-time-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  max-height: 208px;
}
.hot-time-options > div {
  max-height: 208px;
  overflow-y: auto;
  scrollbar-width: none;
}
.hot-time-options > div::-webkit-scrollbar { display: none; }
.hot-date-options button,
.hot-time-options button {
  height: 32px;
  padding: 0 10px;
  color: var(--c-white-a75);
  border-radius: 7px;
  text-align: left;
  font: 400 14px/18px var(--font);
}
.hot-time-options button {
  text-align: center;
}
.hot-date-options button:hover:not(:disabled),
.hot-time-options button:hover:not(:disabled),
.hot-date-options button.selected,
.hot-time-options button.selected {
  color: var(--c-blue-500);
  background: var(--c-blue-a12);
}
.hot-date-options button:disabled,
.hot-time-options button:disabled {
  color: var(--c-white-a20);
  cursor: not-allowed;
}
.hot-date-input:disabled,
.hot-time-input:disabled,
.hot-picker.disabled .hot-picker-toggle {
  color: var(--text-40);
  cursor: not-allowed;
  opacity: .45;
}
.hot-row-button { width: 52px; height: 52px; display: grid; place-items: center; color: var(--c-white); background: var(--c-green-500); border-radius: var(--radius-md); }
.hot-row-button img { width: 17px; height: 20px; display: block; object-fit: contain; }
.hot-row-button:disabled { background: var(--c-ink-800); cursor: default; }
.hot-row-button.stop { background: var(--c-red-500); }
.hot-row-button.stop img { width: 20px; height: 20px; }
.hot-condition-row.locked { opacity: .45; }
.hot-condition-row.locked .channel-settings-input,
.hot-condition-row.locked .hot-row-button {
  cursor: default;
}
.settings-flags { display: grid; gap: 12.5px; }
.settings-flags h3 { margin-bottom: 3.5px; }
.settings-bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 32px;
  align-items: start;
}
.settings-channel-actions {
  display: grid;
  gap: 12px;
}
.settings-channel-actions h3 {
  margin: 0 0 4px;
  color: var(--text-75);
  font: 400 14px/18px var(--font);
}
.settings-channel-actions button {
  width: max-content;
  height: 42px;
  padding: 0 16px;
  color: var(--c-white-a75);
  background: var(--c-ink-950);
  border-radius: var(--radius-md);
  text-align: left;
  font: 400 14px/18px var(--font);
}
.settings-flags label.settings-check {
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.72);
  font: 400 16px/20px var(--font);
}
.settings-flags label.settings-check > span { display: inline-flex; align-items: center; gap: 6px; }
.settings-flags label.settings-check > span img,
.settings-auto-label img { width: 18px; height: 18px; object-fit: contain; }
.settings-flags .payment-rub b,
.settings-auto-label .currency-word-rub { color: #3F763B; font-weight: 700; }
.settings-flags .payment-gram b,
.settings-auto-label .currency-word-gram { color: #30A0F4; font-weight: 700; }
.settings-flags input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .7; }
.settings-flags input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  appearance: none;
  border: 1px solid #343640;
  border-radius: 4px;
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}
.settings-flags input[type="checkbox"]:checked {
  background: url('../assets/check-box.svg') center/20px 20px no-repeat;
  border-color: transparent;
 
}
.settings-auto-calc { width: max-content; }
.settings-auto-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.settings-currency-control {
  display: inline-flex;
  align-items: center;
}
.settings-currency-control .settings-currency-switch {
  flex: 0 0 38px;
  border: 0;
}
.settings-currency-control .settings-currency-switch:disabled {
  opacity: .45;
  cursor: default;
}
.my-channel-settings-footer { padding-bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.my-channel-delete {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--c-red-500);
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  transition: background-color var(--motion-base) ease;
}
.my-channel-delete:not(:disabled):hover {
  background: var(--c-red-a12);
}
.my-channel-delete:disabled {
  cursor: default;
}
.my-channel-delete img { width: 20px; height: 22px; display: block; object-fit: contain; }
.my-channel-save-state { margin-right: auto; color: var(--text-75); font: 400 14px/18px var(--font); }


/* Channel settings stability fixes */
.settings-single-selector .selected-categories {
  min-width: 0;
}
.settings-single-selector .chip:not(.more) {
  max-width: calc(100% - 38px);
  overflow: hidden;
  justify-content: flex-start;

  white-space: nowrap;
}
.my-channel-card.state-updated .my-channel-status,
.my-channel-card.state-updated .my-channel-action {
  animation: myChannelStateSoftIn .34s ease both;
}
@keyframes myChannelStateSoftIn {
  from { transform: translateY(2px); }
  to { transform: translateY(0); }
}
.settings-hot h3 {
  gap: 4px;
}
/* Moderation status block exact alignment */
.moderation-side-card {
  padding: 16px 20px 16px;
  min-height: 0;
}
.moderation-side-card h3 {
  margin: 0 0 14px;
}
.moderation-status-row {
  width: 100%;
  margin: 0;
  justify-content: space-between;
  gap: 12px;
}
.moderation-side-card .moderation-status-selector {
  flex: 0 0 237px;
  margin: 0;
}
.moderation-status-count {
  flex: 0 0 auto;
  text-align: right;
}

.settings-single-selector .chip.selected,
.settings-single-selector .chip.selected:hover,
.settings-single-selector .chip.selected:active,
.settings-single-selector .chip.selected:focus,
.settings-single-selector .chips:hover .chip.selected,
.settings-single-selector .chips:active .chip.selected,
.settings-single-selector .chips:focus .chip.selected,
.settings-single-selector.open .chip.selected,
.moderation-plain-selector .chip.selected,
.moderation-plain-selector .chip.selected:hover,
.moderation-plain-selector .chip.selected:active,
.moderation-plain-selector .chip.selected:focus,
.moderation-plain-selector .chips:hover .chip.selected,
.moderation-plain-selector .chips:active .chip.selected,
.moderation-plain-selector .chips:focus .chip.selected,
.moderation-plain-selector.open .chip.selected {
  color: var(--c-blue-500) !important;
  background: var(--c-blue-a16) !important;
  filter: none !important;
  transition-property: opacity, transform;
}
.moderation-stat-list {
  padding-left: 20px;
  padding-right: 20px;
}
.moderation-stat-row {
  column-gap: 6px;
}
.moderation-stat-row i,
.moderation-actions h3::before,
.moderation-actions h3::after {
  border: 0;
  background: repeating-linear-gradient(90deg, var(--c-white-a12) 0 6px, transparent 6px 10px);
}
.moderation-actions h3 {
  padding-left: 24px;
  padding-right: 24px;
}
.moderation-search img,
.catalog-search img {
  top: -0.5px;
  opacity: .4;
  filter: none;
}
.moderation-search.has-value img,
.catalog-search.has-value img {
  opacity: 1;
  filter: brightness(0) invert(1);
}
.settings-bottom-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 30px;
}
.settings-channel-actions {
  width: max-content;
  justify-self: start;
}
.settings-channel-actions button {
  width: max-content;
  padding-left: 16px;
  padding-right: 16px;
  white-space: nowrap;
}
.settings-channel-actions button:nth-of-type(1) {
  grid-column: 1 / -1;
}
.settings-channel-actions button:nth-of-type(3) {
  margin-left: 4px;
}
.submit-channel.is-error,
.submit-channel.is-error:hover {
  width: max-content;
  min-width: 240px;
  padding-left: 16px;
  padding-right: 16px;
  white-space: nowrap;
}
.add-channel-card .submit-channel,
.add-channel-card .submit-channel.is-loading,
.add-channel-card .submit-channel.is-success,
.add-channel-card .submit-channel.is-success:hover,
.add-channel-card .submit-channel.is-error,
.add-channel-card .submit-channel.is-error:hover {
  width: 100%;
  max-width: 430px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}
.profile-manage-menu .profile-menu-items::before {
  border-radius: var(--radius-sm);
}

.moderation-actions h3 {
  padding-left: 0;
  padding-right: 0;
}
.moderation-actions h3::before,
.moderation-actions h3::after,
.moderation-stat-row i {
  min-width: 0;
  background: repeating-linear-gradient(90deg, var(--c-white-a12) 0 8px, transparent 8px 14px) !important;
}
.moderation-actions h3::before { margin-left: 0; }
.moderation-actions h3::after { margin-right: 0; }
.settings-single-selector .selected-categories,
.moderation-plain-selector .selected-categories {
  color: var(--c-blue-500) !important;
}
.settings-single-selector .chip.selected,
.settings-single-selector .chip.selected:hover,
.settings-single-selector .chip.selected:active,
.settings-single-selector .chip.selected:focus,
.settings-single-selector .chip.selected:focus-visible,
.settings-single-selector .chips:hover .chip.selected,
.settings-single-selector .chips:active .chip.selected,
.settings-single-selector .chips:focus .chip.selected,
.settings-single-selector .chips:focus-visible .chip.selected,
.settings-single-selector.open .chip.selected,
.settings-single-selector .chips[aria-expanded="true"] .chip.selected,
.moderation-plain-selector .chip.selected,
.moderation-plain-selector .chip.selected:hover,
.moderation-plain-selector .chip.selected:active,
.moderation-plain-selector .chip.selected:focus,
.moderation-plain-selector .chip.selected:focus-visible,
.moderation-plain-selector .chips:hover .chip.selected,
.moderation-plain-selector .chips:active .chip.selected,
.moderation-plain-selector .chips:focus .chip.selected,
.moderation-plain-selector .chips:focus-visible .chip.selected,
.moderation-plain-selector.open .chip.selected,
.moderation-plain-selector .chips[aria-expanded="true"] .chip.selected {
  color: var(--c-blue-500) !important;
  -webkit-text-fill-color: #1E55F9 !important;
  background: var(--c-blue-a16) !important;
  opacity: 1 !important;
  filter: none !important;
}
.settings-bottom-row {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.settings-flags {
  flex: 0 0 auto;
}

/* Действия над каналом, фильтры безопасных сделок, статистика профиля, настройки каталога. */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
.settings-channel-actions {
  flex: 0 0 auto;
  width: max-content;
  margin-left: 0;
  justify-self: auto;
  grid-template-columns: max-content max-content;
  column-gap: 12px;
  row-gap: 12px;
}
.my-channel-avatar {
  position: relative;
}
.my-channel-avatar img {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--avatar-bg, var(--c-blue-500));
}

/* Stable my-channel publish/pause action animation */
.my-channel-actions,
.my-channel-action,
.my-channel-action:hover,
.my-channel-action:active,
.my-channel-action:focus,
.my-channel-action:disabled,
.my-channel-action.is-pending {
  transform: none !important;
  translate: none !important;
}
.my-channel-action {
  transition: background-color var(--motion-slow) ease, opacity var(--motion-slow) ease, color var(--motion-slow) ease !important;
}
.my-channel-card.state-updated .my-channel-action {
  animation: myChannelActionFade .26s ease both !important;
}
.my-channel-card.state-updated .my-channel-status {
  animation: myChannelStatusFade .3s ease both !important;
}
@keyframes myChannelActionFade {
  from { opacity: .35; }
  to { opacity: 1; }
}
@keyframes myChannelStatusFade {
  from { opacity: .45; }
  to { opacity: 1; }
}

/* Stable my-channel status without vertical jump */
.my-channel-status,
.my-channel-status:hover,
.my-channel-status:active,
.my-channel-status:focus,
.my-channel-status.is-leaving,
.my-channel-card.state-updated .my-channel-status {
  transform: none !important;
  translate: none !important;
}
.my-channel-status {
  transition: color var(--motion-slow) ease, background-color var(--motion-slow) ease, width var(--motion-slow) ease, flex-basis var(--motion-slow) ease, opacity var(--motion-slow) ease !important;
}
.my-channel-status.is-leaving {
  opacity: 0 !important;
}
.my-channel-card.state-updated .my-channel-status {
  animation: myChannelStatusOpacity .3s ease both !important;
}
@keyframes myChannelStatusOpacity {
  from { opacity: .45; }
  to { opacity: 1; }
}

/* Smooth moderation status appearance in my channels */
.my-channel-status[data-status="moderation"] {
  animation: myChannelStatusAppear .34s ease both;
}
.my-channel-card.state-updated .my-channel-status[data-status="moderation"] {
  animation: myChannelStatusAppear .34s ease both !important;
}
@keyframes myChannelStatusAppear {
  from { opacity: 0; scale: .96; }
  to { opacity: 1; scale: 1; }
}

/* Allow long selected values in channel settings selectors */
.settings-single-selector .selected-categories {
  max-width: calc(100% - 26px);
}
.settings-single-selector .chip.selected,
.settings-single-selector .chip:not(.more) {
  max-width: 267px !important;
  flex: 0 1 auto;
}
.settings-single-selector .chip.selected {
  padding-left: 10px;
  padding-right: 10px;
}

/* No color flicker for selected chips in channel settings */
.settings-single-selector .chip,
.settings-single-selector .chip.selected,
.settings-single-selector .chip:not(.more) {
  color: var(--c-blue-500) !important;
  -webkit-text-fill-color: #1E55F9 !important;
  background-color: var(--c-blue-a16) !important;
  transition-property: opacity, transform !important;
}
.settings-single-selector .chip:hover,
.settings-single-selector .chip:active,
.settings-single-selector .chip:focus,
.settings-single-selector .chip:focus-visible,
.settings-single-selector .chips:hover .chip,
.settings-single-selector .chips:active .chip,
.settings-single-selector .chips:focus .chip,
.settings-single-selector .chips:focus-visible .chip,
.settings-single-selector.open .chip {
  color: var(--c-blue-500) !important;
  -webkit-text-fill-color: #1E55F9 !important;
  background-color: var(--c-blue-a16) !important;
  filter: none !important;
}
.settings-single-selector .chip.more,
.settings-single-selector .chips:hover .chip.more,
.settings-single-selector .chips:active .chip.more,
.settings-single-selector.open .chip.more {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background-color: transparent !important;
}

/* Moderation preview card border above avatar */
.moderation-preview .channel-card {
  box-shadow: none !important;
}
.moderation-preview .channel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px var(--c-ink-800);
}
.moderation-preview .card-favorite,
.moderation-preview .card-tags,
.moderation-preview .card-pro {
  z-index: 21;
}

/* Move channel actions block 30px to the right */
.my-channel-card .settings-bottom-row {
  display: grid !important;
  grid-template-columns: 520px max-content !important;
  column-gap: 50px !important;
  align-items: flex-start !important;
}
.my-channel-card .settings-flags {
  width: 520px !important;
  min-width: 520px !important;
}
.my-channel-card .settings-channel-actions {
  width: max-content !important;
  margin-left: 0 !important;
  justify-self: start !important;
}

/* Expanded channel settings height follows content and keeps 24px bottom padding */
.my-channel-card.open {
  max-height: 1800px !important;
  overflow: hidden !important;
}
.my-channel-card.open .my-channel-settings {
  height: auto !important;
}
.my-channel-card.open .my-channel-settings-body {
  padding: 24px !important;
}

/* Manage menu has 6 rows, including Administrators after Integrations. */
.profile-manage-menu {
  height: auto !important;
}
.profile-manage-menu .profile-menu-items:has(> button:last-child.selected)::before {
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}
.profile-manage-menu .profile-menu-items > button:last-child.selected {
  border-radius: var(--radius-sm) !important;
}

/* Expanded channel delete action: line -> 24px -> delete button */
.my-channel-card.open .my-channel-settings-body {
  position: relative;
  display: block;
  padding: 24px !important;
  box-sizing: border-box;
}
.my-channel-card.open .my-channel-settings-body > .settings-delete-line {
  position: static;
  width: calc(100% + 48px);
  margin: 24px -24px 0;
}
.my-channel-card.open .my-channel-settings-footer {
  position: static;
  height: 52px;
  margin: 24px 0 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.my-channel-card.open .my-channel-delete {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

/* Final expanded channel footer spacing: line -> 24px -> button -> 24px bottom */
.my-channel-card.open .my-channel-settings {
  height: auto !important;
}
.my-channel-card.open .my-channel-settings-body {
  padding: 24px !important;
}
.my-channel-card.open .my-channel-settings-body > .settings-delete-line {
  margin: 24px -24px 0 !important;
}
.my-channel-card.open .my-channel-settings-footer {
  margin: 24px 0 0 !important;
  padding: 0 !important;
}
.my-channel-card.open[data-buyer-campaign-id] .my-channel-settings-body { padding: 0 !important; box-sizing: border-box; }
.my-channel-card.open[data-buyer-campaign-id] .buyer-campaign-creative-body {
  height: auto !important;
  margin: 0;
  padding: 24px !important;
  overflow: visible !important;
}
.my-channel-card.open[data-buyer-campaign-id] .buyer-campaign-divider {
  width: calc(100% + 48px);
  margin: 24px -24px 0;
}
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter .dropdown-trigger { justify-content: center; gap: 10px; }
.profile-page-title-buyer-campaigns .buyer-campaign-status-filter .dropdown-trigger span { flex: 1 1 auto; width: auto; text-align: center; }

/* SafeDeal filters reuse the Catalog dropdown pattern while anchoring to the
   shared profile title row, independent of the localized heading width. */
.profile-page-title-safe-deal-orders { position: relative; }
.profile-page-title-safe-deal-orders .safe-deal-order-filter {
  position: absolute;
  top: 0;
  right: 0;
  width: 185px;
  min-width: 185px;
  height: 52px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-md);
}
.profile-page-title-safe-deal-orders .safe-deal-order-filter .sort-dropdown {
  position: static;
  display: block;
  width: 185px;
  min-width: 0;
  flex: 0 0 185px;
}
.profile-page-title-safe-deal-orders .safe-deal-order-filter .safe-deal-order-filter-trigger {
  position: relative;
  width: 185px;
  min-width: 185px;
  max-width: 185px;
  flex: 0 0 185px;
  height: 52px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  text-align: center;
  white-space: nowrap;
  background: transparent;
  border-radius: inherit;
}
.profile-page-title-safe-deal-orders .safe-deal-order-filter .safe-deal-order-filter-label {
  flex: 0 0 calc(100% - 19px);
  width: calc(100% - 19px);
  max-width: calc(100% - 19px);
  min-width: 0;
  overflow: hidden;

  text-align: center;
  pointer-events: none;
}
.profile-page-title-safe-deal-orders .safe-deal-order-filter .safe-deal-order-filter-chevron {
  position: absolute;
  right: 17px;
  top: 50%;
  width: 9px;
  height: 5px;
  flex: 0 0 9px;
  transform: translateY(-50%);
  transform-origin: center;
  pointer-events: none;
}
.profile-page-title-safe-deal-orders .safe-deal-order-filter .sort-dropdown.open .safe-deal-order-filter-chevron { transform: translateY(-50%) rotate(180deg); }
.profile-page-title-safe-deal-orders .safe-deal-order-filter .dropdown-panel {
  left: 0;
  top: 60px;
  width: 185px;
  min-width: 0;
}

/* Profile statistics page */
.profile-content-statistics {
  min-height: 572px;
  padding: 0;
  background: transparent;
  border: 0;
}

/* Catalog settings page */
.profile-content-catalog-settings {
  width: 1046px;
  padding: 0;
  background: transparent;
  border: 0;
}
.catalog-settings-grid {
  display: grid;
  grid-template-columns: 515px 515px;
  gap: 16px;
  align-items: start;
}
.catalog-settings-column {
  display: grid;
  gap: 16px;
}
.catalog-settings-block {
  width: 515px;
  min-height: 220px;
  padding: 24px;
  background: var(--c-ink-900);
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
  border-radius: var(--radius-lg);
}
.catalog-settings-block h2 {
  margin: 0 0 24px;
  color: var(--c-white);
  font: 600 24px/30px var(--font);
}
.catalog-settings-list {
  display: grid;
  gap: 8.5px;
}
.catalog-settings-row {
  display: flex;
  gap: 0;
  align-items: center;
  width: max-content;
}
.catalog-settings-row.dragging {
  opacity: .45;
}
.catalog-settings-order {
  width: 68px;
  height: 49px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  color: var(--c-white-a12);
  background: rgba(39,39,47,.12);
  border-radius: var(--radius-md);
  font: 400 16px/20px var(--font);
}
.catalog-settings-row.fixed .catalog-settings-order {
  justify-content: center;
  padding-left: 0;
}
.catalog-drag-handle {
  width: 18px;
  height: 9px;
  flex: 0 0 18px;
  cursor: grab;
  background:
    linear-gradient(var(--c-white-a40) 0 0) 0 0 / 18px 1.5px no-repeat,
    linear-gradient(var(--c-white-a40) 0 0) 0 7.5px / 18px 1.5px no-repeat;
}
.catalog-settings-chip,
.catalog-settings-edit-input {
  width: auto;
  min-width: 0;
  height: 48px;
  margin-left: 4px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue-500);
  background: var(--c-blue-a12);
  border: 0;
  border-radius: var(--radius-md);
  font: 400 16px/20px var(--font);
  outline: 0;
}
.catalog-settings-edit-input {
  display: none;
}
.catalog-settings-chip {
  max-width: 240px;
}
.catalog-settings-chip span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;

}
.catalog-settings-row.editing .catalog-settings-chip {
  display: none;
}
.catalog-settings-row.editing .catalog-settings-edit-input {
  display: flex;
}
.catalog-settings-edit,
.catalog-settings-delete {
  width: 20px;
  height: 20px;
  margin-left: 20px;
  display: grid;
  place-items: center;
  background: transparent;
}
.catalog-settings-edit,
.buyer-campaign-card .buyer-campaign-title-edit { overflow: visible; }
.catalog-settings-edit::before {
  content: "";
  width: 17px;
  height: 17px;
  display: block;
  box-sizing: border-box;
  transform-origin: center;
  background: var(--blue);
  -webkit-mask: url("../assets/edit-narrow.svg") center / contain no-repeat;
  mask: url("../assets/edit-narrow.svg") center / contain no-repeat;
}
.catalog-settings-row.editing .catalog-settings-edit::before,
.catalog-settings-row.saved .catalog-settings-edit::before {
  width: 16px;
  height: 10px;
  -webkit-mask: none;
  mask: none;
  background: transparent;
  border-left: 2px solid var(--c-green-500);
  border-bottom: 2px solid var(--c-green-500);
  clip-path: none;
  transform: rotate(-45deg);
}
.catalog-settings-row.saving .catalog-settings-edit {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}
.catalog-settings-delete img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.catalog-settings-delete:disabled {
  opacity: .25;
  cursor: default;
}
.catalog-settings-add {
  width: 68px;
  height: 49px;
  margin-top: 8.5px;
  color: var(--c-blue-500);
  background: var(--c-blue-a12);
  border-radius: var(--radius-md);
  font: 400 24px/24px var(--font);
}
.catalog-settings-rates {
  min-height: 0;
}
.catalog-settings-rate-list {
  display: grid;
  gap: 8.5px;
}
.catalog-settings-rate-row .promotion-rate-edit-input {
  height: 48px;
  text-align: center;
}
.catalog-settings-rate-row .promotion-rate-edit-input:focus:not(:focus-visible) {
  outline: 0;
  box-shadow: none;
}
.catalog-settings-rate-row .promotion-rate-edit-input:focus-visible {
  outline: 0;
  box-shadow: none;
}
.catalog-settings-edit-input:focus,
.catalog-settings-edit-input:focus-visible {
  outline: 0;
  box-shadow: none;
}

/* Селекторы и действия модерации, финальные правки страницы канала, обложка и статистика. */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
/* Final hot offer disabled state: single opacity layer only */
.hot-condition-row .price-field.disabled,
.hot-condition-row.locked .price-field.disabled,
.hot-condition-row.status-disabled .price-field.disabled {
  opacity: 1 !important;
}
.hot-condition-row.locked,
.hot-condition-row.status-disabled {
  opacity: .45 !important;
}
.hot-condition-row.locked .hot-picker.disabled .hot-picker-toggle,
.hot-condition-row.status-disabled .hot-picker.disabled .hot-picker-toggle {
  color: var(--c-white) !important;
  opacity: 1 !important;
}
.hot-condition-row:not(.locked):not(.status-disabled) .price-field.disabled {
  opacity: .45 !important;
}

/* Moderation selectors and action controls */
.moderation-actions {
  grid-template-rows: 20px 42px;
}
.moderation-actions .moderation-reason-selector {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  width: 357px;
}
.moderation-actions .moderation-reason-selector,
.moderation-actions .moderation-reject,
.moderation-actions .moderation-approve,
.moderation-side-card .moderation-status-selector {
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
}
.moderation-actions .moderation-reason-selector .chips {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 6px;
  align-items: center;
  overflow: hidden;
}
.moderation-actions .moderation-reason-selector .selected-categories {
  position: relative;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  width: auto;
  max-width: calc(100% - 26px);
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  overflow: hidden;
}
.moderation-actions .moderation-reason-selector .selected-categories::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5,5,13,0), var(--black) 88%);
}
.moderation-actions .moderation-reason-selector .selected-categories:has(.empty-selection)::after {
  display: none;
}
.moderation-actions .moderation-reason-selector .empty-selection {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}
.moderation-actions .moderation-reason-selector .chip.selected {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  width: auto;
  max-width: 267px;
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  line-height: 30px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}
.moderation-actions .moderation-reject,
.moderation-actions .moderation-approve {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 20px;
}
.moderation-plain-selector .dropdown-panel {
  top: 42px;
  bottom: auto;
}
.moderation-plain-selector .category-options {
  position: relative;
  height: auto;
  max-height: 232px;
  padding: 58px 12px 12px;
}
.moderation-plain-selector .dropdown-search {
  display: flex;
  width: calc(100% - 24px);
}
.moderation-plain-selector .option-list {
  width: 100%;
  max-height: 156px;
}
.moderation-side-card .moderation-status-selector,
.moderation-side-card .moderation-status-selector .chips,
.moderation-side-card .moderation-status-selector .dropdown-panel {
  width: 237px;
}
.moderation-side-card .moderation-status-selector {
  margin: 0;
}
.moderation-side-card .moderation-status-selector .chips {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 6px;
  align-items: center;
  overflow: hidden;
}
.moderation-side-card .moderation-status-selector .dropdown-panel {
  top: 42px;
}
.moderation-side-card .moderation-status-selector .selected-categories,
.moderation-side-card .moderation-status-selector .chip {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  width: auto;
  max-width: 171px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 30px;
  overflow: hidden;
}
.moderation-side-card .moderation-status-selector .selected-categories::after {
  display: none;
}
.moderation-side-card .moderation-status-selector .chip {
  overflow: hidden;

  white-space: nowrap;
}
.my-channel-card.settings-locked .settings-disabled,
.my-channel-card.settings-locked .chips:has(.settings-disabled),
.my-channel-card.settings-locked .price-field:has(.settings-disabled),
.my-channel-card.settings-locked .condition-type-wrap:has(.settings-disabled) {
  opacity: .45;
}
.my-channel-card.settings-locked .my-condition .price-field:has(.settings-disabled) input,
.my-channel-card.settings-locked .my-condition .price-field:has(.settings-disabled) img {
  color: var(--c-white);
  opacity: 1;
}
.my-channel-card.settings-locked .settings-disabled {
  cursor: not-allowed;
}
.condition-type-wrap.open .condition-type-toggle,
.hot-picker.open .hot-picker-toggle {
  border-radius: 10px 10px 0 0;
}
.my-channel-card.settings-locked .settings-hot,
.my-channel-card.settings-locked .settings-hot * {
  opacity: 1;
  cursor: inherit;
}

/* Final channel detail page corrections */
.channel-link-row {
  grid-template-columns: 190px 314px !important;
  gap: 40px !important;
  margin-bottom: 0 !important;
}
.channel-link-row > span {
  color: var(--text-75);
  font: 400 14px/18px var(--font);
  text-align: right;
  white-space: nowrap;
}
.channel-link-row > span b {
  color: var(--c-green-500);
  font-weight: 400;
}
.channel-public-link {
  width: 314px;
  height: 52px;
  display: grid;
  grid-template-columns: 254px 52px;
  gap: 8px;
}
.channel-copy {
  width: 254px !important;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-blue-a12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.channel-copy .copy-default,
.channel-copy .copy-success {
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.channel-copy .copy-default {
  display: flex;
}
.channel-copy .copy-success {
  display: none !important;
}
.channel-copy .copy-default b {
  color: var(--c-blue-500);
  font: 600 16px/20px var(--font);
}
.channel-copy.copied {
  background: var(--c-blue-500);
}
.channel-copy.copied .copy-default {
  display: none !important;
}
.channel-copy.copied .copy-success {
  display: flex !important;
}
.channel-copy.copied .copy-success b {
  color: var(--c-white);
  font: 600 16px/20px var(--font);
}
.channel-copy img {
  width: 18px;
  height: 18px;
}
.channel-telegram-link {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--c-blue-500);
  border-radius: var(--radius-md);
}
.channel-telegram-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.channel-price-card {
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
}
.channel-tgstat-card a {
  width: 290px;
}
.detail-tgstat-link {
  margin-top: 28px !important;
}
.detail-cover {
  background-position: center top !important;
  background-size: 100% auto !important;
  background-repeat: no-repeat !important;
}
.channel-buy-column {
  gap: 0 !important;
}
.channel-buy-column .channel-link-row {
  margin-bottom: 36px !important;
}
.channel-buy-column .channel-price-card {
  margin-bottom: 20px !important;
}
.channel-detail-currency {
  width: 314px;
  height: 52px;
  margin-bottom: 20px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--c-white-a75);
  background: var(--c-ink-900);
  border-radius: var(--radius-lg);
  font: 400 14px/18px var(--font);
}
.channel-detail-currency.is-hidden,
.channel-detail-currency[hidden] {
  display: none;
}
.channel-detail-currency b {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.channel-detail-currency b img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}
.channel-buy-column .channel-tgstat-card {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}
.channel-sidebar .channel-tgstat-card {
  margin-top: 20px;
  margin-bottom: 0;
}
.channel-calendar-card {
  width: 314px;
  height: auto;
  padding: 16px 0;
  background: var(--c-ink-900);
  border-radius: var(--radius-lg);
  color: var(--c-white);
}
.channel-calendar-head {
  height: 22px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 100px minmax(0,1fr);
  align-items: center;
  text-align: center;
}
.channel-calendar-head b {
  color: var(--c-white);
  text-transform: capitalize;
  font: 500 18px/22px var(--font);
}
.channel-calendar-head button {
  color: var(--c-white-a12);
  text-transform: capitalize;
  font: 400 12px/15px var(--font);
  transition: color var(--motion-fast) ease;
}
.channel-calendar-head button:hover { color: rgba(255,255,255,.28); }
.channel-calendar-head button:first-child { text-align: center; }
.channel-calendar-head button:last-child { text-align: center; }
.channel-calendar-line {
  width: 100%;
  height: 1px;
  margin-top: 16px;
  background: var(--c-ink-700);
}
.channel-calendar-week {
  margin: 23px 14px 0;
  display: grid;
  grid-template-columns: repeat(7, 36px);
  gap: 6px;
}
.channel-calendar-week span {
  width: 36px;
  height: 15px;
  display: grid;
  place-items: center;
  color: var(--c-white);
  font: 400 12px/15px var(--font);
}
.channel-calendar-grid {
  margin: 14px 14px 0;
  display: grid;
  grid-template-columns: repeat(7, 36px);
  gap: 6px;
}
.channel-calendar-day {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--c-white-a20);
  border-radius: var(--radius-round);
  font: 400 12px/15px var(--font);
}
.channel-calendar-day.active { color: var(--c-white); cursor: pointer; }
.channel-calendar-day.inactive { color: var(--c-white-a20); cursor: default; }
.channel-calendar-day.muted { color: var(--c-white-a20); cursor: default; }
.channel-calendar-day.today::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-round);
  background: rgba(30,85,249,.8);
  transform: translate(-50%, -50%);
}
.channel-calendar-day.selected::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  border: 2px solid var(--c-blue-500);
  border-radius: var(--radius-round);
  transform: translate(-50%, -50%);
  transition: transform var(--motion-modal) var(--ease-out-expo);
}
.channel-calendar-day span { position: relative; z-index: 1; }
.channel-calendar-line.bottom { margin-top: 24px; }
.channel-calendar-slots-title {
  margin-top: 16px;
  min-height: 15px;
  text-align: center;
  color: rgba(255,255,255,.5);
  font: 500 12px/15px var(--font);
}
.channel-calendar-slots-title.inactive {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-calendar-slots-title b {
  color: #1D49CE;
  font-weight: 500;
}
.channel-calendar-slots {
  margin: 16px 16px 0;
  display: grid;
  gap: 8px;
}
.channel-calendar-slots.is-hidden {
  display: none;
}
.channel-calendar-slot-row {
  display: grid;
  grid-template-columns: 128px 128px;
  justify-content: center;
  gap: 10px;
}
.channel-calendar-slot-row span {
  width: 128px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--c-blue-500);
  background: var(--c-blue-a12);
  border-radius: var(--radius-sm);
  font: 400 14px/18px var(--font);
}
.channel-calendar-slot-row button {
  width: 128px;
  height: 31px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--c-white);
  background: var(--c-blue-500);
  border-radius: var(--radius-sm);
  font: 400 12px/15px var(--font);
}
.channel-calendar-slot-row button.is-selected { color: var(--c-white); }
.channel-calendar-slot-row button .channel-calendar-slot-check { display: inline-flex; width: 15px; height: 15px; align-items: center; justify-content: center; color: var(--c-white); font: 400 15px/15px var(--font); }
.channel-calendar-slot-row.disabled span {
  color: var(--c-white-a20);
  background: rgba(255,255,255,.06);
}
.channel-calendar-slot-row.disabled button {
  color: rgba(255,255,255,.35);
  background: var(--c-ink-800);
  cursor: default;
}

/* Channel detail avatar final override */
.channel-view .detail-avatar {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  max-width: 120px;
  max-height: 120px;
}
.channel-view .detail-avatar > img,
.channel-view .detail-avatar > span {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}
.card-avatar:has(img),
.my-channel-avatar:has(img),
.detail-avatar:has(img) {
  background: transparent;
}
.channel-card .card-avatar:has(> img) { background: var(--surface); }

/* Channel detail cover and statistics */
.channel-view .detail-cover {
  height: 160px;
}
.channel-view .detail-favorite {
  top: 24px;
  right: 24px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
.channel-view .detail-favorite img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.channel-view .detail-avatar {
  left: 32px;
  bottom: -60px;
  overflow: visible;
  border: 3px solid var(--c-ink-900);
}
.channel-view .detail-avatar > img,
.channel-view .detail-avatar > span:not(.detail-pro) {
  overflow: hidden;
}
.channel-view .detail-avatar .detail-pro {
  position: absolute;
  left: 50%;
  bottom: -3px;
  z-index: 2;
  box-sizing: border-box;
  width: 49px !important;
  min-width: 49px;
  max-width: 49px;
  height: 22px !important;
  min-height: 22px;
  max-height: 22px;
  flex: 0 0 49px;
  display: grid;
  place-items: center;
  color: var(--c-white);
  background: radial-gradient(circle at 30% 20%, var(--c-orange-500) 0, var(--c-yellow-500) 100%);
  border: 0;
  box-shadow: 0 0 0 3px var(--c-ink-900);
  border-radius: 11px;
  font: 500 14px/16px var(--font);
  text-transform: uppercase;
  transform: translateX(-50%);
}
.channel-view .detail-avatar > img,
.channel-view .detail-avatar > span:not(.detail-pro) {
  overflow: hidden;
  border-radius: var(--radius-round);
  isolation: isolate;
  contain: paint;
  clip-path: circle(50% at 50% 50%);
}
.channel-view .detail-avatar { overflow: visible; }
.channel-view .detail-cover-tags {
  position: absolute;
  left: 170px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.channel-view .detail-cover-tags .card-tag {
  position: static;
}
.channel-view .detail-body {
  padding: 16px 32px 32px;
}
.channel-view .detail-body h1 {
  margin: 0 0 38px 138px;
}
.channel-view .detail-stats {
  width: 628px;
  scroll-margin-top: 92px;
  height: 102px;
  grid-template-columns: repeat(3, 204px);
  grid-template-rows: repeat(2, 45px);
  gap: 4px;
  padding: 4px;
  background: var(--c-ink-800);
}
.channel-view #channel-about,
.channel-view #channel-statistics,
.channel-view #channel-reviews-anchor { scroll-margin-top: 92px; }
.channel-view .detail-stats > div {
  height: 45px;
  min-height: 45px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--c-white-a08);
  border-radius: var(--radius-sm);
}
.channel-view .detail-stats > div:nth-child(3),
.channel-view .detail-stats > div:nth-child(6) {
  background: var(--c-ink-900);
  border-color: transparent;
}
.channel-view .detail-stats small {
  font: 400 10px/12px var(--font);
}
.channel-view .detail-stats strong {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  font: 600 16px/18px var(--font);
}
.channel-view .detail-stats > div:nth-child(3) strong { color: var(--blue); }
.channel-view .detail-stats > div:nth-child(6) strong { color: var(--orange); }
/* Светлая тема страницы канала: блок дат был чёрным с тёмным текстом (не читался),
   плитки статистики — тёмными с тёмными подписями. Переводим их на токены темы. */
body.light-theme .channel-dates { background: var(--surface); }
body.light-theme .channel-dates i { background: repeating-linear-gradient(90deg, rgba(9,11,19,.12) 0 8px, transparent 8px 14px); }
body.light-theme.channel-view .detail-stats { background: var(--surface-2); }
body.light-theme.channel-view .detail-stats > div:nth-child(3),
body.light-theme.channel-view .detail-stats > div:nth-child(6) { background: var(--surface); }
body.light-theme .detail-stats strong { color: var(--text); }
.channel-view .detail-stat-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.my-channel-avatar > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
}


/* Корзина, настройки доступности рекламы канала, адаптивные правила. */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
/* Cart */
.card-buy .cart-added-label { display: none; align-items: center; justify-content: center; gap: 8px; }
.card-buy .cart-added-label img { width: 18px; height: 18px; }
.card-buy.in-cart { left: 12px; width: 258px; background: var(--c-green-500) !important; border-color: var(--c-green-500) !important; color: var(--c-white); cursor: default; }
.card-buy.is-pending { opacity: 1; color: var(--c-white); background: var(--blue); border-color: var(--blue); cursor: default; }
.card-buy.in-cart { opacity: 1; }
.card-buy.in-cart .catalog-buy-label,
.card-buy.in-cart .hot-buy-label { display: none !important; }
.card-buy.in-cart .cart-added-label { display: flex; }
.card-cart-remove {
  position: absolute;
  z-index: 11;
  left: 278px;
  bottom: 12px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #939393;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity var(--motion-panel) ease, visibility 0s linear 0s, transform .32s var(--ease-out-expo), background-color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}
.card-cart-remove:disabled,
.cart-remove:disabled { cursor: default; }
.card-cart-remove.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity var(--motion-fast) ease, visibility 0s linear var(--motion-fast), transform var(--motion-panel) var(--ease-out-expo), background-color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}
.card-cart-remove::before,
.card-cart-remove::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: #939393;
  border-radius: var(--radius-pill);
  transition: background-color var(--motion-base) ease;
}
.card-cart-remove::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.card-cart-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.card-cart-remove:hover {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--c-red-500);
}
.card-cart-remove:hover::before,
.card-cart-remove:hover::after {
  background: var(--c-red-500);
}
body.hot .card-cart-remove { bottom: 46px; }
.channel-price-card .card-cart-remove { left: 254px; bottom: 12px; }
.channel-hot-offer-card {
  position: relative;
  width: 314px;
  height: 205px;
  margin-top: 0;
  margin-bottom: 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.channel-hot-offer-card .static-price {
  position: static;
  height: 58px;
  padding-top: 20px;
  color: var(--c-white);
}
.channel-hot-meta {
  margin: 8px 16px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  font: 400 14px/18px var(--font);
}
.channel-hot-meta span,
.channel-hot-meta b {
  min-height: 30px;
  padding: 6px 10px;
  display: grid;
  place-items: center;
  color: var(--c-white);
  background: var(--c-ink-800);
  border-radius: var(--radius-xs);
}
.channel-hot-meta b {
  background: linear-gradient(90deg, #FF9496 0%, #FF0000 100%);
  font-weight: 400;
}
.channel-hot-offer-card .detail-buy {
  left: 12px;
  right: auto;
  bottom: 46px;
  width: 290px;
  margin: 0;
  transform: none;
  background: var(--c-orange-500);
  border-color: var(--c-orange-500);
}
.channel-hot-offer-card .hot-buy-label {
  display: inline;
}
.channel-hot-offer-card .detail-buy.in-cart {
  left: 12px;
  width: 234px;
  transform: none;
}
.channel-hot-offer-card .card-cart-remove {
  left: 254px;
  bottom: 46px;
}
.channel-hot-offer-card .card-countdown {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--c-orange-500);
  background: var(--c-orange-a12);
  border-radius: var(--radius-md);
  font: 500 14px/18px var(--font);
}
.profile-content-cart { width: 1046px; min-height: 0; padding: 0; background: transparent; border: 0; }
.cart-layout { width: 1046px; display: grid; grid-template-columns: 692px 314px; gap: 40px; align-items: start; }
.cart-list { border: 1px solid var(--c-ink-700); border-radius: var(--radius-xl); background: var(--c-ink-900); }
.cart-list { width: 692px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cart-list-head { height: 44px; display: flex; align-items: center; justify-content: space-between; color: var(--c-white-a75); font: 400 14px/18px var(--font); }
.cart-list-head label, .cart-check { display: flex; align-items: center; gap: 10px; }
.cart-list input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--c-blue-500); }
.cart-item { min-height: 148px; padding: 16px; display: grid; grid-template-columns: 24px 64px minmax(0, 1fr) minmax(214px, 246px); grid-template-areas: "check avatar info side"; gap: 12px; align-items: start; border: 1px solid var(--c-ink-700); border-radius: var(--radius-lg); background: var(--c-ink-800); }
.cart-item.hot { border-color: rgba(255,124,2,.45); box-shadow: inset 0 0 0 1px var(--c-orange-a12); }
.cart-item.unavailable { opacity: .55; }
.cart-check { grid-area: check; padding-top: 6px; }
.cart-avatar { width: 64px; height: 64px; overflow: hidden; display: grid; place-items: center; border-radius: var(--radius-round); background: var(--c-blue-500); color: var(--c-white); font: 600 22px/1 var(--font); }
.cart-avatar { grid-area: avatar; }
.cart-info { grid-area: info; min-width: 0; }
.cart-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cart-info h3 { margin: 0; color: var(--c-white); font: 600 18px/22px var(--font); }
.cart-info p { margin: 6px 0 0; color: rgba(255,255,255,.6); font: 400 14px/18px var(--font); }
.cart-hot-timer { width: fit-content; margin-top: 8px; padding: 0 12px; height: 28px; display: inline-flex; align-items: center; gap: 8px; border-radius: 100px; color: var(--c-orange-500); background: var(--c-orange-a12); font: 500 13px/16px var(--font); }
.cart-placement-controls { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: start; }
.cart-placement-picker { display: grid; grid-template-columns: 148px 110px; gap: 4px; align-items: start; min-width: 0; }
.cart-placement-picker .hot-date-picker .hot-picker-panel { max-width: min(260px, calc(100vw - 32px)); }
.cart-placement-picker .hot-date-calendar { max-width: 100%; overflow-x: auto; }
.cart-placement-message { grid-column: 1 / -1; margin: 0 !important; color: var(--c-orange-500) !important; font-size: 12px !important; line-height: 15px !important; }
.cart-creative { width: 136px; min-width: 0; display: grid; gap: 4px; color: rgba(255,255,255,.45); font: 400 12px/15px var(--font); }
.cart-item-side { grid-area: side; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; grid-template-areas: "condition price remove" "currency currency remove"; gap: 10px 12px; align-items: center; }
.cart-condition { grid-area: condition; min-width: 0; }
.cart-condition-fixed, .cart-currency-static { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--c-white); background: var(--c-ink-800); font: 400 14px/18px var(--font); }
.cart-price { grid-area: price; display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--c-white); font: 500 16px/20px var(--font); white-space: nowrap; }
.cart-price strong { font: 600 18px/22px var(--font); }
.cart-currency { grid-area: currency; display: flex; justify-content: flex-end; }
.cart-remove { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-sm); }
.cart-item-side .cart-remove { grid-area: remove; align-self: center; }
.cart-remove:hover { background: var(--c-red-a12); }
.cart-remove img { width: 18px; height: 18px; }
.cart-unavailable { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--c-ink-700); }
.cart-unavailable h3 { margin: 0 0 12px; color: rgba(255,255,255,.45); font: 500 16px/20px var(--font); }
.cart-side { width: 314px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; color: var(--c-white); }
.cart-summary-card { width: 314px; padding: 16px 0 16px; border: 0; border-radius: var(--radius-xl); background: var(--c-ink-900); overflow: hidden; }
.cart-summary-card h2 { margin: 0 16px; color: var(--c-white); text-align: center; font: 500 18px/22px var(--font); }
.cart-selected-details { margin: 10px 16px 0; }
.cart-selected-details > button { width: fit-content; margin: 0 auto; display: block; cursor: pointer; color: var(--c-blue-500); border-bottom: 1px dashed var(--c-blue-500); font: 300 10px/13px var(--font); text-align: center; }
.cart-selected-details.disabled > button { cursor: default; pointer-events: none; }
.cart-selected-panel { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .34s var(--ease-out-expo), opacity var(--motion-modal) ease, margin-top .34s var(--ease-out-expo); margin-top: 0; }
.cart-selected-details.open .cart-selected-panel { max-height: 420px; opacity: 1; margin-top: 14px; }
.cart-selected-details ul { margin: 0; padding: 0; display: grid; gap: 6px; list-style: none; color: var(--c-white-a75); font: 400 14px/18px var(--font); }
.cart-selected-details li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-selected-details li span { min-width: 0; overflow: hidden; white-space: nowrap; }
.cart-selected-details li b { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0; color: var(--c-white-a75); font: 400 14px/18px var(--font); text-align: right; }
.cart-selected-details li b .price-gram { width: 12px; height: 12px; margin-left: 6px; vertical-align: -1px; }
.cart-summary-rows { margin: 14px 0 0; display: grid; gap: 6px; }
.cart-summary-rows div { min-height: 18px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--c-white-a75); font: 400 14px/18px var(--font); }
.cart-summary-rows b { color: var(--c-white-a75); font-weight: 400; }
.cart-summary-rows.accent div,
.cart-summary-rows.accent b { color: var(--c-blue-500); }
.cart-summary-rows.accent .price-gram { width: 11px; height: 11px; margin-left: 0; vertical-align: -1px; }
.cart-summary-rows i,
.cart-summary-total i { font-style: normal; }
/* Тёмный цвет — только у разделителя «/»: цифры «барабана» тоже <i> и должны брать цвет строки. */
.cart-summary-rows b > i,
.cart-summary-total b > i { color: var(--c-ink-700); }
.cart-summary-line { width: 100%; height: 1px; margin-top: 14px; background: var(--c-ink-700); }
.cart-summary-total { margin: 25px 16px 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--c-white); font: 600 20px/24px var(--font); }
.cart-summary-total b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cart-balance { position: relative; width: 314px; height: 102px; padding: 16px 16px 0; display: block; border: 0; border-radius: var(--radius-lg); background: #000003; overflow: hidden; font: 400 14px/18px var(--font); }
.cart-balance-title { width: 282px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--c-white); font: 500 18px/22px var(--font); text-align: center; }
.cart-balance-value { position: absolute; top: 52px; width: 157px; height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--c-white); font: 600 20px/24px var(--font); overflow: hidden; }
.cart-balance-value::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .36s ease; }
.cart-balance-value:hover::before { opacity: 1; }
.cart-balance-value > * { position: relative; z-index: 1; }
.cart-balance-rub { left: 0; }
.cart-balance-gram { left: 157px; }
.cart-balance-rub::before { background: radial-gradient(160px 72px at 12% 100%, rgba(46,184,34,.24), var(--c-green-a12) 42%, rgba(46,184,34,0) 78%); }
.cart-balance-gram::before { background: radial-gradient(160px 72px at 88% 100%, rgba(30,85,249,.26), var(--c-blue-a12) 42%, rgba(30,85,249,0) 78%); }
.cart-balance-gram img { width: 15px; height: 14px; object-fit: contain; flex: 0 0 auto; }
.cart-mass-currency { margin: 16px 16px 0; display: flex; align-items: center; gap: 0; color: var(--c-white-a75); font: 400 12px/15px var(--font); }
.cart-mass-currency.disabled { opacity: .45; pointer-events: none; }
.cart-mass-currency input { width: 15px; height: 15px; margin: 0; flex: 0 0 15px; appearance: none; border: 1px solid #343640; border-radius: 4px; transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, background-color var(--motion-fast) ease; }
.cart-mass-currency input:checked { background: url('../assets/check-box.svg') center/15px 15px no-repeat; border-color: transparent; }
.cart-mass-currency em { flex: 0 0 auto; margin-left: 5px; display: inline-flex; align-items: center; gap: 0; font-style: normal; }
.cart-mass-currency em b { margin-left: .25em; }
.cart-mass-currency em img { width: 14px; height: 14px; object-fit: contain; }
.cart-mass-currency em b + img { margin-left: 6px; }
.cart-mass-currency .currency-switch { flex: 0 0 auto; margin-left: 6px; }
.cart-warning { margin-top: 14px; color: var(--c-orange-500); font: 500 14px/18px var(--font); }
.cart-pay { width: 282px; height: 48px; margin: 25px 16px 0; color: var(--c-white); border-radius: var(--radius-md); background: var(--c-blue-500); font: 600 16px/20px var(--font); }
.cart-pay:disabled { color: rgba(255,255,255,.35); background: var(--c-ink-800); }
.cart-empty { width: 100%; min-height: 220px; display: grid; place-items: center; align-content: center; gap: 18px; color: var(--c-white); }
.cart-empty h2 { margin: 0; font: 600 24px/29px var(--font); }
.cart-empty button { width: 180px; height: 48px; color: var(--c-white); background: var(--c-blue-500); border-radius: var(--radius-md); font: 500 16px/20px var(--font); }
@media (max-width: 1180px) {
  .cart-layout { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .cart-list, .cart-side, .cart-summary-card, .cart-balance, .cart-empty { width: 100%; }
  .cart-side { position: static; }
}
@media (max-width: 760px) {
  .cart-item { grid-template-columns: 24px 56px minmax(0, 1fr); grid-template-areas: "check avatar info" "check avatar side"; gap: 12px 10px; }
  .cart-avatar { width: 56px; height: 56px; }
  .cart-item-side { grid-template-columns: minmax(0, 1fr) auto 36px; }
  .cart-placement-controls { gap: 10px; }
  .cart-placement-picker { grid-template-columns: minmax(0, 1.2fr) minmax(92px, .8fr); max-width: 100%; }
  .cart-creative { flex: 1 1 136px; }
}
@media (max-width: 480px) {
  .cart-item { grid-template-columns: 20px 48px minmax(0, 1fr); padding: 12px; gap: 10px 8px; }
  .cart-avatar { width: 48px; height: 48px; }
  .cart-item-side { grid-template-columns: minmax(0, 1fr) auto 32px; gap: 8px; }
  .cart-condition-fixed, .cart-currency-static { padding: 0 10px; font-size: 13px; }
  .cart-price { gap: 4px; font-size: 14px; }
  .cart-price strong { font-size: 16px; }
  .cart-placement-picker { grid-template-columns: minmax(0, 1fr) minmax(88px, .75fr); }
  .cart-creative { flex-basis: 100%; }
}

/* My channel advertising availability settings */
.my-channel-card .settings-bottom-row {
  display: grid !important;
  grid-template-columns: 412px 525px !important;
  column-gap: 59px !important;
  align-items: flex-start !important;
}
.settings-ad-availability { width: 412px; min-width: 412px; }
.settings-ad-availability h3 {
  margin: 0;
  height: 18px;
  color: var(--c-white-a75);
  font: 400 14px/18px var(--font);
}
.settings-flags h3,
.settings-flags .settings-subtitle {
  margin: 0;
  height: 18px;
  color: var(--c-white-a75);
  font: 400 14px/18px var(--font);
}
.ad-week-days { margin-top: 8px; display: flex; gap: 8px; }
.ad-week-day {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  color: var(--c-blue-500);
  background: var(--c-blue-a12);
  font: 500 16px/20px var(--font);
  transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}
.ad-week-day.active {
  color: var(--c-white);
  background: var(--c-blue-500);
  font-weight: 700;
}
.ad-slots-title { margin-top: 24px !important; }
.ad-time-slots { margin-top: 8px; display: grid; gap: 8px; }
.ad-time-slot-row {
  display: grid;
  grid-template-columns: 52px 180px 52px 52px;
  gap: 8px;
  align-items: center;
}
.ad-time-slot-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--c-white-a40);
  background: rgba(5,5,13,.12);
  font: 500 14px/18px var(--font);
}
.ad-time-slot-control { width: 180px; height: 52px; position: relative; }
.ad-time-slot-picker { width: 180px; position: relative; }
.ad-time-slot-toggle {
  width: 180px;
  height: 52px;
  padding: 0 40px 0 16px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-md);
  color: var(--c-white);
  background: var(--c-black);
  font: 400 16px/20px var(--font);
  text-align: left;
  white-space: nowrap;
}
.ad-time-slot-toggle i {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 5px;
  background: url('../assets/chevron-down.svg') center/contain no-repeat;
  transform: translateY(-50%);
  transition: transform var(--motion-fast) ease;
}
.ad-time-slot-picker.open .ad-time-slot-toggle {
  border-radius: 10px 10px 0 0;
}
.ad-time-slot-picker.open .ad-time-slot-toggle i {
  transform: translateY(-50%) rotate(180deg);
}

/* The shared white chevron asset disappears on light dropdown surfaces. */
body.light-theme .language i,
body.light-theme .section-chevron,
body.light-theme .chip.more,
body.light-theme .dropdown-trigger i,
body.light-theme .wallet-select-chevron,
body.light-theme .profile-menu-title i,
body.light-theme .my-channel-chevron::before,
body.light-theme .moderation-plain-selector .chips::after,
body.light-theme .condition-type-toggle i,
body.light-theme .hot-time-input i,
body.light-theme .ad-time-slot-toggle i {
  background-image: url('../assets/chevron-down-dark.svg');
}
body.light-theme .channel-settings-select {
  background-image: url('../assets/chevron-down-dark.svg');
}
.ad-time-slot-panel {
  position: absolute;
  z-index: 1200;
  left: 0;
  top: 52px;
  width: 180px;
  box-sizing: border-box;
  display: none;
  grid-template-columns: 1fr 1fr;
  padding: 8px;
  border-radius: 0 0 10px 10px;
  background: var(--c-black);
  box-shadow: 0 12px 24px rgba(0,0,0,.34);
}
.ad-time-slot-picker.open .ad-time-slot-panel { display: grid; }
.ad-time-slot-column { min-width: 0; padding: 0 6px; }
.ad-time-slot-column:first-child { padding-left: 0; border-right: 1px solid var(--c-ink-700); }
.ad-time-slot-column:last-child { padding-right: 0; }
.ad-time-slot-column strong {
  display: block;
  margin-bottom: 6px;
  color: var(--c-white-a75);
  text-align: center;
  font: 500 12px/15px var(--font);
}
.ad-time-slot-values { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ad-time-slot-values > div {
  max-height: 208px;
  overflow-y: auto;
  scrollbar-width: none;
  display: grid;
  gap: 4px;
}
.ad-time-slot-values > div::-webkit-scrollbar { display: none; }
.ad-time-slot-values button {
  min-height: 32px;
  border-radius: var(--radius-xs);
  color: var(--c-white-a75);
  font: 400 16px/20px var(--font);
}
.ad-time-slot-values button:hover:not(:disabled),
.ad-time-slot-values button.selected {
  color: var(--c-blue-500);
  background: var(--c-blue-a12);
}
.ad-time-slot-values button:disabled,
.ad-time-slot-values button.disabled {
  color: rgba(255,255,255,.18) !important;
  background: transparent !important;
  cursor: not-allowed;
}
.ad-time-slot-add {
  width: 180px;
  height: 52px;
  border-radius: var(--radius-md);
  color: var(--c-white);
  background: rgba(5,5,13,.2);
  font: 500 16px/20px var(--font);
}
.ad-time-slot-action {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  border: 2px solid var(--c-ink-800);
  border-radius: var(--radius-md);
  background: transparent;
  transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.ad-time-slot-action:hover:not(.paused):not(:disabled):not(.settings-disabled) { border-color: var(--c-orange-500); background: var(--c-orange-500); }
.ad-time-slot-action span { width: 2px; height: 13px; margin: 0; border-radius: var(--radius-pill); background: var(--c-white); }
.ad-week-day.settings-disabled,
.ad-time-slot-add.settings-disabled,
.ad-time-slot-toggle.settings-disabled,
.ad-time-slot-action.settings-disabled,
.ad-time-slot-delete.settings-disabled,
.ad-time-slot-picker.settings-disabled .ad-time-slot-toggle {
  cursor: not-allowed;
  opacity: .45;
}
.ad-time-slot-action.paused { border-color: var(--c-orange-500); background: var(--c-orange-500); }
.ad-time-slot-delete {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--c-red-500);
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  transition: background-color var(--motion-base) ease;
}
.ad-time-slot-delete:hover:not(:disabled):not(.settings-disabled) {
  background: var(--c-red-a12);
}
.ad-time-slot-delete img {
  width: 20px;
  height: 22px;
  display: block;
  object-fit: contain;
}
.my-channel-card .settings-flags {
  width: 525px !important;
  min-width: 525px !important;
  display: grid;
  grid-auto-rows: max-content;
  gap: 8px;
}
.my-channel-card .settings-flags > label.settings-check {
  min-height: 20px;
  height: 20px;
}
.settings-flags .settings-subtitle { margin-top: 16px; }
.settings-caution-actions { margin-top: 8px; display: flex; gap: 8px; }
.settings-flags .settings-subtitle + .settings-caution-actions { margin-top: 0; }
.settings-caution-actions button {
  height: 54px;
  border-radius: var(--radius-sm);
  color: var(--c-white);
  background: #14141D;
  font: 500 14px/18px var(--font);
  white-space: nowrap;
}
.settings-caution-share { width: 249px; }
.settings-caution-transfer { width: 186px; }

@media (max-width: 1300px) {
  .channel-page {
    grid-template-columns: minmax(0, 1fr);
    /* !important: иначе перебивается правилом «vertical alignment» из 02-channel-profile-shell.css,
       и на узких экранах колонки страницы канала накладываются друг на друга. */
    grid-template-rows: auto !important;
    row-gap: 24px !important;
  }
  .channel-page .channel-sidebar,
  .channel-page .channel-tabs,
  .channel-page .channel-dates,
  .channel-page .channel-buy-column,
  .channel-page .channel-detail-card {
    width: 100%;
    max-width: 100%;
  }
  .channel-page .channel-detail-card,
  .channel-page .channel-buy-column {
    grid-column: 1;
    grid-row: auto !important;
  }
  .channel-page .channel-buy-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .channel-page .channel-buy-column > * {
    width: 100%;
    max-width: 100%;
  }
}

/* Channel detail keeps its desktop three-column geometry above this breakpoint;
   below it, collapse the root grid and let fixed inner surfaces shrink safely. */
@media (max-width: 1400px) {
  .channel-page {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    /* !important: иначе перебивается правилом «vertical alignment» из 02-channel-profile-shell.css,
       и на узких экранах колонки страницы канала накладываются друг на друга. */
    grid-template-rows: auto !important;
    row-gap: 24px !important;
  }
  .channel-page .channel-sidebar,
  .channel-page .channel-tabs,
  .channel-page .channel-dates,
  .channel-page .channel-buy-column,
  .channel-page .channel-detail-card,
  .channel-page .channel-buy-column > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .channel-page .channel-detail-card,
  .channel-page .channel-buy-column {
    grid-column: 1;
    grid-row: auto !important;
  }
  .channel-page .channel-buy-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  /* Строка «у канала публичная ссылка»: на десктопе сдвинута влево на 230px (подпись слева от колонки);
     в одной колонке подпись уезжала за левый край экрана. Здесь подпись над ссылкой, ссылка на всю ширину. */
  .channel-page .channel-link-row {
    height: auto;
    grid-template-columns: minmax(0, 1fr) !important;  /* !important: в 09 колонки 190px 314px с !important */
    gap: 8px !important;                               /* !important: в 09 gap 40px с !important */
    justify-items: stretch;
    transform: none;
  }
  .channel-page .channel-link-row > span { text-align: left; white-space: normal; }
  .channel-page .channel-public-link { width: 100%; grid-template-columns: minmax(0, 1fr) 52px; }
  .channel-page .channel-copy { width: 100% !important; }  /* !important: в 09 width 254px с !important */
  /* «Купить» (и крестик корзины) рассчитаны на карточку 314px: в широкой карточке центрируем эту зону. */
  .channel-page .channel-price-card .detail-buy,
  .channel-page .channel-price-card .card-cart-remove,
  .channel-page .channel-hot-offer-card .detail-buy,
  .channel-page .channel-hot-offer-card .card-cart-remove { margin-left: calc(50% - 157px); }
  /* Календарь: колонки по 36px стояли у левого края широкой карточки. */
  .channel-page .channel-calendar-week,
  .channel-page .channel-calendar-grid { justify-content: center; }
}

@media (max-width: 720px) {
  .channel-view .detail-body,
  .channel-view .detail-stats,
  .channel-view .detail-description,
  .channel-view .detail-separator,
  .channel-view .detail-tgstat-link,
  .channel-view .detail-tgstat-widget,
  .channel-view .channel-calendar-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .channel-view .detail-stats {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .channel-view .detail-description p,
  .channel-view .detail-tgstat-widget {
    width: auto;
    max-width: 100%;
  }
  .channel-view .channel-reviews-header { flex-direction: column; }
  .channel-view .channel-reviews-filter-field { width: 200px; min-width: 200px; height: 25.6px; }
  .channel-view .channel-reviews-header .channel-reviews-filter-dropdown { width: 200px; min-width: 200px; height: 25.6px; }
  .channel-view .channel-reviews-summary,
  .channel-view .channel-reviews-summary.has-histogram { grid-template-columns: 1fr; }
  .channel-view .detail-separator-before-statistics { width: calc(100% + 64px); max-width: none; }
  .channel-view .channel-reviews-score-main > strong { font-size: 64px; line-height: 64px; }
  .channel-view .channel-reviews-filter-trigger,
  .channel-view .channel-reviews-filter-dropdown .dropdown-panel { width: 200px; min-width: 200px; }
  .channel-view .channel-calendar-week,
  .channel-view .channel-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .channel-view .channel-calendar-week span,
  .channel-view .channel-calendar-day {
    width: auto;
  }
  .channel-view .channel-calendar-slot-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .channel-view .channel-calendar-slot-row span,
  .channel-view .channel-calendar-slot-row button {
    width: auto;
    min-width: 0;
  }
}
.self-channel-purchase-toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: 24px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 18px; color: var(--c-white); background: var(--c-ink-800); border: 1px solid #3D3D48; border-radius: var(--radius-md); box-shadow: 0 8px 28px rgba(0,0,0,.32); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease; font: 500 14px/18px var(--font); text-align: center; }
.self-channel-purchase-toast.visible { opacity: 1; transform: translate(-50%, 0); }
body.light-theme .self-channel-purchase-toast { color: var(--c-ink-900); background: var(--c-white); border-color: #D6D6DE; }
.channel-diagnostic-hint { display: inline-grid; width: 24px; height: 24px; margin-left: 8px; padding: 0; border-radius: var(--radius-round); place-items: center; color: currentColor; vertical-align: middle; opacity: .9; cursor: pointer; }
.channel-diagnostic-hint svg { display: block; }
.channel-diagnostic-hint:hover, .channel-diagnostic-hint:focus-visible { opacity: 1; }


/* Креативы кампаний, превью поста, универсальная раскрывающаяся карточка. */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
/* Mounted Campaigns creative album: previews sit beside the existing upload control. */
.buyer-creative-image-controls { display: flex; align-items: flex-start; gap: 12px; width: 557px; max-width: 100%; }
.buyer-creative-inline-editor .buyer-creative-image-field { width: 557px; max-width: 100%; }
.buyer-creative-image-album { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 8px; min-width: 0; }
.buyer-creative-image-preview { position: relative; width: 52px; height: 52px; flex: 0 0 52px; margin: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--c-ink-800); }
.buyer-creative-image-preview[data-buyer-creative-cover="true"] { box-shadow: inset 0 0 0 2px var(--blue); }
.buyer-creative-image-preview > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.buyer-creative-image-remove { position: absolute; top: 2px; right: 2px; display: grid; width: 20px; height: 20px; padding: 0; place-items: center; color: var(--c-white); border: 0; border-radius: var(--radius-round); background: rgba(0, 0, 0, .72); font: 500 14px/20px var(--font); cursor: pointer; }
.buyer-creative-image-remove:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* Final mounted scope: the expanded card grows with the album/editor and never clips its bottom actions. */
.my-channel-card.open[data-buyer-campaign-id],
.my-channel-card.open[data-buyer-campaign-id] .my-channel-settings,
.my-channel-card.open[data-buyer-campaign-id] .my-channel-settings-body { height: auto !important; max-height: none !important; overflow: visible !important; }
.my-channel-card.open[data-buyer-campaign-id] .buyer-campaign-creative-body { box-sizing: border-box; height: auto !important; max-height: none !important; padding: 24px 24px 24px !important; overflow: visible !important; }
.my-channel-card.open[data-buyer-campaign-id] .buyer-campaign-editor-divider,
.my-channel-card.open[data-buyer-campaign-id] .buyer-campaign-actions-divider { width: calc(100% + 48px); margin-right: -24px; margin-left: -24px; }
.my-channel-card.open[data-buyer-campaign-id] .buyer-campaign-editor-divider { margin-top: 24px; }
.my-channel-card.open[data-buyer-campaign-id] .buyer-campaign-actions-divider { margin-top: 24px; }
/* Keep the My Channels rounded top edge as the final paint clip without fixing the expanded height. */
.my-channel-card.open[data-buyer-campaign-id] { overflow: clip !important; }

/* Edit-only creative preview: the shared expandable primitive owns lifecycle state. */
.buyer-campaign-card .buyer-creative-inline-editor-layout { display: grid; grid-template-columns: minmax(0, 557px) 400px; align-items: stretch; gap: 30px; }
.buyer-campaign-card .buyer-creative-post-preview { position: relative; display: flex; width: 400px; min-height: 400px; height: auto; align-self: start; align-items: flex-end; padding-top: 30px; box-sizing: border-box; border: 1px solid #2E2F37; border-radius: 20px; background: var(--c-ink-900) url('../assets/creative-preview-bg-2.webp') center/cover no-repeat; overflow: hidden; }
.buyer-campaign-card .buyer-creative-post-preview-group { width: min(350px, calc(100% - 20px)); margin: 0 0 10px 10px; }
.buyer-creative-post-preview-card { width: 100%; padding: 10px; box-sizing: border-box; color: var(--c-white); background: #202020; border-radius: 20px; overflow-wrap: anywhere; }
.buyer-creative-post-preview-media { display: grid; gap: 5px; }
.buyer-creative-post-preview-media > img { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 20px 20px 3px 3px; }
.buyer-creative-post-preview-media.is-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.buyer-creative-post-preview-media.is-split > img { margin: 0; }
.buyer-creative-post-preview-media.is-stack { grid-template-columns: 1fr; }
.buyer-creative-post-preview-media.is-mixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.buyer-creative-post-preview-media.is-mixed > img { margin: 0; }
.buyer-creative-post-preview-buttons { display: grid; gap: 5px; margin-top: 5px; }
.buyer-creative-post-preview-buttons a { display: flex; justify-content: center; padding: 5px; color: var(--c-white); background: #2f2f2f; border-radius: 4.8px; text-align: center; text-decoration: none; }
body.light-theme .buyer-campaign-card .buyer-creative-post-preview { background-image: url('../assets/creative-preview-bg-3.webp'); }
.buyer-campaign-card.expandable-card-primitive.open .buyer-campaign-creative-body { height: auto !important; max-height: none !important; overflow: visible !important; }
.buyer-campaign-card.expandable-card-primitive.open .buyer-campaign-editor-divider,
.buyer-campaign-card.expandable-card-primitive.open .buyer-campaign-actions-divider {
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-right: -24px;
}
.buyer-campaign-card .buyer-creative-post-preview-frame,
.buyer-campaign-card .buyer-creative-post-preview-selector { display: none; }
/* Campaign post preview is the shared visual source of truth for Campaign
   and SafeDeal's content-only snapshot. The 30px button baseline is raised
   by exactly 10px to 40px, media-to-copy separation is reduced to 10px,
   media is edge-to-edge inside the post card, and button
   corners are slightly larger than the 4.8px baseline. */
.buyer-creative-post-preview-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0; overflow: hidden; }
.buyer-creative-post-preview-media { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 0; overflow: hidden; }
.buyer-creative-post-preview-media > img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 240px; min-width: 0; margin: 0; object-fit: cover; }
.buyer-creative-post-preview-buttons {
  display: grid;
  grid-template-columns: repeat(var(--buyer-preview-button-tracks, 6), minmax(0, 1fr));
  grid-auto-rows: minmax(40px, auto);
  gap: 5px;
  min-width: 0;
  margin-top: 5px;
}
.buyer-creative-post-preview-buttons a { box-sizing: border-box; height: 40px; min-height: 40px; padding: 0 5px; align-items: center; border-radius: var(--radius-xs); font: 400 16px/20px var(--font); }
.buyer-creative-post-preview-buttons a {
  position: relative;
  min-width: 0;
  overflow: hidden;

  white-space: nowrap;
}
.buyer-creative-post-preview-buttons a.buyer-creative-preview-button-interactive { cursor: grab; user-select: none; touch-action: none; }
.buyer-creative-post-preview-buttons a.buyer-creative-preview-button-interactive:active,
.buyer-creative-post-preview-buttons a.buyer-creative-preview-button-interactive.is-button-dragging { cursor: grabbing; }
.buyer-creative-post-preview-button-drop-placeholder {
  box-sizing: border-box;
  min-width: 0;
  min-height: 40px;
  border: 2px dashed var(--blue);
  border-radius: var(--radius-xs);
  background: rgba(30, 94, 249, .14);
  pointer-events: none;
}
.buyer-campaign-card .buyer-campaign-text strong { display: block; overflow: hidden; color: var(--text); font: 600 16px/20px var(--font); white-space: nowrap; }
.buyer-campaign-card .buyer-creative-inline-editor-fields {
  display: grid;
  width: 557px;
  gap: 15px;
  align-content: start;
  min-width: 0;
}
.buyer-campaign-card .buyer-campaign-title-edit { margin-left: 0; padding: 0; color: var(--text-75); border: 0; background: transparent; font: inherit; cursor: pointer; flex: 0 0 auto; }
.buyer-campaign-card .buyer-campaign-title-edit::before { content: ""; width: 17px; height: 17px; display: block; box-sizing: border-box; transform-origin: center; background: var(--blue); -webkit-mask: url("../assets/edit-narrow.svg") center / contain no-repeat; mask: url("../assets/edit-narrow.svg") center / contain no-repeat; }
.buyer-campaign-card .buyer-campaign-text { display: flex; align-items: center; min-width: 0; gap: 10px; }
.buyer-campaign-card .buyer-campaign-text strong { flex: 0 1 auto; min-width: 0; }
.buyer-campaign-card.editing .buyer-campaign-title-edit::before { width: 16px; height: 12px; background: var(--c-green-500); -webkit-mask: url("../assets/check-line.svg") center / contain no-repeat; mask: url("../assets/check-line.svg") center / contain no-repeat; }
.buyer-campaign-card .buyer-campaign-text strong[contenteditable="true"] { overflow: visible; outline: 0; text-overflow: clip; white-space: normal; }

/* Neutral expandable-card primitive: one canonical layout layer for Channels and Campaigns. */
.my-channel-card.expandable-card-primitive,
.buyer-campaign-card.expandable-card-primitive {
  width: 1046px;
  min-height: 84px;
  max-height: 84px;
  border-radius: var(--radius-pill);
  transition: max-height var(--motion-expand) var(--ease-out-expo), border-radius var(--motion-modal) ease;
}
.my-channel-card.expandable-card-primitive .expandable-card-summary,
.buyer-campaign-card.expandable-card-primitive .expandable-card-summary {
  width: 100%;
  height: 84px;
  min-height: 84px;
  padding: 12px 0 12px 12px;
  grid-template-columns: 60px 766px 93px 67px;
  gap: 16px;
}
.my-channel-card.expandable-card-primitive .expandable-card-avatar,
.buyer-campaign-card.expandable-card-primitive .expandable-card-avatar {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-blue-500), var(--c-cyan-500));
  border-radius: var(--radius-round);
  font: 600 22px/1 var(--font);
  overflow: hidden;
}
.expandable-card-avatar > span { display: grid; width: 100%; height: 100%; place-items: center; }
.expandable-card-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.my-channel-card.expandable-card-primitive .expandable-card-info,
.buyer-campaign-card.expandable-card-primitive .expandable-card-info,
.my-channel-card.expandable-card-primitive .expandable-card-text,
.buyer-campaign-card.expandable-card-primitive .expandable-card-text { min-width: 0; }
.expandable-card-primitive .expandable-card-info {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 16px;
  text-align: left;
  min-height: 60px;
}
.expandable-card-primitive .expandable-card-text {
  max-width: 520px;
  height: 60px;
  display: flex;
  align-items: center;
  line-height: 22px;
}
.expandable-card-primitive .expandable-card-text strong {
  overflow: hidden;

  white-space: nowrap;
  color: var(--c-white);
  font: 600 18px/22px var(--font);
}
.my-channel-card.expandable-card-primitive .expandable-card-actions,
.buyer-campaign-card.expandable-card-primitive .expandable-card-actions {
  width: 93px;
  min-width: 93px;
  height: 84px;
  grid-area: auto;
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 0;
}
.my-channel-card.expandable-card-primitive .expandable-card-chevron,
.buyer-campaign-card.expandable-card-primitive .expandable-card-chevron {
  position: relative;
  z-index: 3;
  align-self: start;
  width: 83px;
  height: 84px;
  grid-area: auto;
  grid-column: 4;
  grid-row: 1;
  margin: -12px 0 -12px -16px;
  padding: 0;
  display: block;
  background: transparent;
  opacity: .75;
}
.expandable-card-primitive .expandable-card-chevron::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13.5px;
  height: 7.5px;
  background: url('../assets/chevron-down.svg') center/contain no-repeat;
  transform: translate(-50%, -50%) rotate(0);
  transform-origin: center;
  transition: transform .26s var(--ease-out-soft);
}
.expandable-card-primitive.open .expandable-card-chevron::before { transform: translate(-50%, -50%) rotate(180deg); }
.my-channel-card.expandable-card-primitive .expandable-card-settings,
.buyer-campaign-card.expandable-card-primitive .expandable-card-settings { height: 838px; padding: 0; display: block; opacity: 0; pointer-events: none; transition: opacity .42s ease var(--motion-fast); }
.my-channel-card.expandable-card-primitive.open .expandable-card-settings,
.buyer-campaign-card.expandable-card-primitive.open .expandable-card-settings { opacity: 1; pointer-events: auto; }
.my-channel-card.expandable-card-primitive .expandable-card-divider,
.buyer-campaign-card.expandable-card-primitive .expandable-card-divider { width: 100%; height: 1px; margin-top: 0; background: var(--c-ink-700); }
.buyer-campaign-card.expandable-card-primitive.open,
.buyer-campaign-card.expandable-card-primitive.open .expandable-card-settings,
.buyer-campaign-card.expandable-card-primitive.open .expandable-card-settings-body { height: auto !important; max-height: none !important; overflow: visible !important; }
.buyer-campaign-card.expandable-card-primitive .buyer-campaign-creative-body {
  box-sizing: border-box;
  margin: 0;
  padding: 24px 24px 24px;
}
.buyer-campaign-card.expandable-card-primitive .buyer-campaign-creative-workspace { margin: 0; }
.buyer-campaign-card.expandable-card-primitive .buyer-campaign-creative-zones { margin: 0; }
.buyer-campaign-card.expandable-card-primitive .buyer-creative-image-field + .buyer-creative-inline-editor-error { margin-top: 9px; }
.buyer-campaign-card.expandable-card-primitive .buyer-campaign-editor-divider,
.buyer-campaign-card.expandable-card-primitive .buyer-campaign-actions-divider {
  width: 100%;
  margin: 24px 0 0;
}
.buyer-campaign-card.expandable-card-primitive .buyer-campaign-actions-divider + .buyer-campaign-expanded-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

/* Final mounted Campaign layout: keep the album/editor out of the action zones
   and make the two workspace columns explicit after legacy Campaign rules. */
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-creative-workspace {
  display: grid;
  grid-template-columns: 247px minmax(0, 1fr);
  column-gap: 30px;
  align-items: start;
  min-width: 0;
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-creative-zones {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-company-carousel {
  grid-column: 2;
  min-width: 0;
  margin: 0;
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-creative-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 27px !important;
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-editor-divider,
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-actions-divider {
  flex: 0 0 auto;
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-right: -24px;
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-editor-divider + .buyer-creative-inline-editor-layout {
  margin-top: 27px;
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-creative-inline-editor {
  margin-top: 0;
}
.buyer-campaign-card.buyer-campaign-expandable .expandable-card-divider {
  margin: 0;
}

/* Final semantic Campaign stack: one full-width editor divider, one preview
   sibling, and an intentional action-button gap. */
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-expanded-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-expanded-actions [data-buyer-campaign-archive],
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-expanded-actions [data-buyer-campaign-delete] {
  width: 52px;
  height: 52px;
  min-height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 0;
  color: var(--c-red-500);
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  font: 400 14px/20px var(--font);
  transition: background-color var(--motion-base) ease;
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-expanded-actions [data-buyer-campaign-delete]:not(:disabled):hover {
  background: var(--c-red-a12);
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-expanded-actions [data-buyer-campaign-delete]:not(:disabled):active {
  background: rgba(230,41,41,.18);
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-expanded-actions [data-buyer-campaign-archive]:disabled,
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-expanded-actions [data-buyer-campaign-delete]:disabled {
  cursor: default;
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-expanded-actions [data-buyer-campaign-archive] img,
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-expanded-actions [data-buyer-campaign-delete] img {
  width: 20px;
  height: 22px;
  display: block;
  object-fit: contain;
}

/* Final Campaign lifecycle: the enclosing card owns the single geometry and
   clipping timeline; settings/body never animate as a detached second block. */
.buyer-campaign-card.buyer-campaign-expandable {
  overflow: hidden !important;
  transition: max-height var(--motion-expand) var(--ease-out-expo), border-radius var(--motion-modal) ease;
}
.buyer-campaign-card.buyer-campaign-expandable.open {
  overflow: clip !important;
  max-height: none !important;
  height: auto !important;
  border-radius: var(--radius-2xl);
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-settings {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  transition: opacity var(--motion-expand) var(--ease-out-expo);
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-settings-body {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Final Campaign parity override: keep the enclosing semantic card as the
   single paint/animation boundary, matching the Channel primitive. */
.buyer-campaign-card.buyer-campaign-expandable {
  max-height: 84px;
  overflow: hidden !important;
  transition: max-height var(--motion-expand) var(--ease-out-expo), border-radius var(--motion-modal) ease;
}
.buyer-campaign-card.buyer-campaign-expandable.open {
  max-height: 1800px !important;
  overflow: hidden !important;
  border-radius: var(--radius-2xl);
}
.buyer-campaign-card.expandable-card-primitive.expanded-radius {
  border-radius: var(--radius-2xl);
}
.buyer-campaign-card.buyer-campaign-expandable::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--c-ink-700);
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-settings {
  transition: opacity .42s ease var(--motion-fast);
}

.cart-checkout-error {
  margin: 8px 16px 0;
  color: #FF6B6B;
  font: 400 14px/18px var(--font);
}
.cart-checkout-success {
  margin: 0 0 16px;
  color: #5ED47A;
  font: 400 14px/18px var(--font);
}

.profile-content-safe-deal-orders { display: grid; gap: 16px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }

/* Безопасные сделки: заказы, статусы, отзывы; логотип-wordmark. */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
.safe-deal-orders { display: grid; gap: 16px; }
.safe-deal-order-card { position: relative; width: 100%; max-width: 1046px; overflow: hidden !important; }
.safe-deal-order-card.open { overflow: hidden !important; }
.safe-deal-order-card.open { max-height: 3200px !important; }
.safe-deal-order-card .buyer-campaign-settings,
.safe-deal-order-card .buyer-campaign-settings-body { height: auto; max-height: none; }
/* The neutral primitive owns the actions/chevron 84px tracks. Keep the
   reordered amount in its own 60px information lane, rather than changing
   those tracks' cross-axis alignment. */
.safe-deal-order-card { --safe-deal-order-header-reference-gap: 11.2px; }
.safe-deal-order-card .buyer-campaign-info { grid-column: 2; grid-row: 1; height: 60px; min-height: 60px; align-self: stretch; }
.safe-deal-order-card .buyer-campaign-info { width: 100%; }
.safe-deal-order-card .buyer-campaign-text { width: 100%; max-width: none; height: 60px; display: flex; flex-wrap: nowrap; align-items: center; align-self: stretch; gap: 16px; min-width: 0; }
.safe-deal-order-card .safe-deal-order-header-progress { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6.4px; }
.safe-deal-order-card .safe-deal-order-header-amount { align-self: center; }
.safe-deal-order-card .safe-deal-order-stage-chip,
.safe-deal-order-card .safe-deal-order-final-status-chip { height: 36px; padding: 0 19.2px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: var(--radius-xs); font: 500 14px/18px var(--font); white-space: nowrap; }
.safe-deal-order-card .safe-deal-order-stage-chip { border-radius: var(--radius-pill); }
.safe-deal-order-card .safe-deal-order-final-status-chip { margin-left: auto; }
.safe-deal-order-card .safe-deal-order-final-status-chip[data-safe-deal-order-final-status="active"] { color: var(--c-green-500); background: var(--c-green-a12); }
.safe-deal-order-card .safe-deal-order-final-status-chip[data-safe-deal-order-final-status="completed"] { color: var(--c-blue-500); background: var(--c-blue-a12); }
.safe-deal-order-card .safe-deal-order-final-status-chip[data-safe-deal-order-final-status="cancelled"] { color: var(--c-red-500); background: var(--c-red-a12); }
.safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="awaiting-confirmation"],
.safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="awaiting-acceptance"] { color: var(--c-orange-500); background: var(--c-orange-a12); }
.safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="awaiting-publication"] { color: var(--c-orange-500); background: var(--c-orange-a12); }
.safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="awaiting-conditions"] { color: var(--c-green-500); background: var(--c-green-a12); }
.safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="cancellation-request"] { color: var(--c-red-500); background: var(--c-red-a12); }
.safe-deal-order-card .buyer-campaign-actions { display: flex; align-items: center; justify-content: flex-end; min-width: 0; color: var(--text); font: 500 14px/18px var(--font); white-space: nowrap; }
.safe-deal-order-body { padding: 24px; }
.safe-deal-order-preview-anchor { width: 450px; min-width: 0; min-height: 400px; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; }
.safe-deal-order-counterparty-meta { width: 100%; margin: 0; color: var(--text); font: 400 16px/20px var(--font); }
.safe-deal-order-counterparty-row { min-width: 0; min-height: 30px; display: flex; align-items: center; }
.safe-deal-order-counterparty-row-primary { flex-wrap: nowrap; gap: 8px; }
.safe-deal-order-counterparty-name { min-width: 0; max-width: 100%; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; overflow: hidden; color: var(--c-white); background: rgba(0,115,255,.92); border-radius: var(--radius-sm); font: 400 16px/20px var(--font); text-decoration: none; white-space: nowrap; }
.safe-deal-order-counterparty-name.is-seller { background: var(--c-green-500); }
.safe-deal-order-counterparty-name.is-buyer,
.safe-deal-order-counterparty-name.is-admin { background: #1E5EF9; }
.safe-deal-order-counterparty-chip { height: 30px; padding: 0 10px; display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--text); background: var(--c-ink-800); border-radius: 30px; font: 400 16px/20px var(--font); white-space: nowrap; }
.safe-deal-order-counterparty-row-stats { flex-wrap: nowrap; gap: 8px; margin-top: 15px; }
.safe-deal-order-counterparty-duration { box-sizing: border-box; min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--text); background: var(--c-ink-800); border-radius: var(--radius-sm); font: 400 16px/20px var(--font); white-space: nowrap; }
.safe-deal-order-counterparty-placements,
.safe-deal-order-counterparty-repeat { gap: 5px; color: var(--c-blue-500); }
.safe-deal-order-counterparty-placements .metric-icon-img,
.safe-deal-order-counterparty-repeat .metric-icon-img { width: 16px; height: 16px; flex: 0 0 16px; }
.safe-deal-order-counterparty-repeat-icon { display: block; background: var(--c-blue-500); -webkit-mask: url('../assets/safe-deal-repeat-orders.png') center / contain no-repeat; mask: url('../assets/safe-deal-repeat-orders.png') center / contain no-repeat; }
.safe-deal-order-counterparty-approval { gap: 5px; color: var(--c-white); background: #0FA88C; }
.safe-deal-order-counterparty-approval-icon { width: 17.6px; height: 17.6px; flex: 0 0 17.6px; aspect-ratio: 1 / 1; object-fit: contain; display: block; filter: brightness(0) invert(1); }
.safe-deal-order-placement-info { --safe-deal-placement-chip-height: 34px; width: max-content; max-width: none; margin: 0 0 34px; display: flex; align-items: center; flex-wrap: nowrap; gap: 12px; overflow: visible; }
.safe-deal-order-placement-info-item { box-sizing: border-box; width: max-content; height: var(--safe-deal-placement-chip-height); padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--text); background: transparent; border: 2px dashed #0073FF; border-radius: var(--radius-md); white-space: nowrap; overflow: visible; }
.safe-deal-order-placement-safe-deal-icon { width: auto; height: var(--safe-deal-placement-chip-height); min-width: var(--safe-deal-placement-chip-height); min-height: var(--safe-deal-placement-chip-height); flex: 0 0 auto; align-self: center; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.safe-deal-order-preview-counterparty { box-sizing: border-box; width: 420px; max-width: 420px; margin: 0 0 45px; }
.safe-deal-order-placement-info-item span { color: var(--text-50); font: 400 12px/15px var(--font); white-space: nowrap; }
.safe-deal-order-placement-info-item strong { color: #0073FF; font: 500 14px/18px var(--font); white-space: nowrap; }
.safe-deal-order-placement-info-item em { color: var(--text-75); font: 400 12px/15px var(--font); font-style: normal; white-space: nowrap; }
.safe-deal-order-preview-status-row { box-sizing: border-box; width: min(450px, 100%); max-width: 450px; height: 52px; min-height: 52px; margin: 0 0 12px 0; display: flex; align-items: flex-start; gap: 15px; overflow: visible; }
.safe-deal-order-preview-status-row .safe-deal-order-preview-hint { box-sizing: border-box; display: inline-flex; align-self: flex-start; flex: 0 0 auto; width: max-content; max-width: none; height: 40px; min-height: 40px; padding-inline: 25px; overflow: visible; white-space: nowrap; }
.safe-deal-order-preview-status-row .safe-deal-order-preview-hint-text { display: block; width: max-content; white-space: nowrap; }
.safe-deal-order-preview-status-row .safe-deal-participant-approval { flex: 0 0 auto; min-height: 40px; height: 40px; gap: 0; }
.safe-deal-order-preview-status-row .safe-deal-participant-approval-buttons { width: 88px; min-width: 88px; height: 40px; }
.safe-deal-order-preview-status-row .safe-deal-participant-approval-button { width: 40px; min-width: 40px; height: 40px; flex-basis: 40px; }
.safe-deal-order-preview-status-row .safe-deal-order-action-message { position: relative; }
.safe-deal-order-preview-status-row .safe-deal-order-action-message::after { content: ""; position: absolute; z-index: 0; left: 18px; top: auto; bottom: calc(100% - 11px); width: 27px; height: 23px; background: #212129; clip-path: polygon(0 100%, 100% 100%, 20% 0); transform: rotate(4deg); transform-origin: 20% 100%; }
.safe-deal-order-preview-status-row .safe-deal-order-action-message > * { position: relative; z-index: 1; }
.safe-deal-order-preview-anchor > .buyer-creative-post-preview { width: 420px; max-width: 420px; flex: 0 0 auto; margin-top: 0; margin-bottom: 0; }
/* Keep the historical channel header at the top while the post content uses
   the remaining preview height below it. */
.safe-deal-order-card .buyer-creative-post-preview { align-self: auto; min-height: 400px; height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.safe-deal-order-card .buyer-creative-post-preview-group { margin-top: auto; }
.safe-deal-order-preview-channel { --safe-deal-preview-header-backdrop: #2F2F37; box-sizing: border-box; width: 100%; height: 55.2px; min-height: 55.2px; margin-top: -30px; padding: 5px 20px; display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); background: var(--safe-deal-preview-header-backdrop); border-radius: 20px 20px 0 0; }
.safe-deal-order-preview-channel .safe-deal-order-preview-channel-avatar { width: 36px; height: 36px; flex: 0 0 36px; font: 600 14px/1 var(--font); }
.safe-deal-order-preview-channel .safe-deal-order-preview-channel-text { width: auto; max-width: calc(100% - 48px); height: auto; min-width: 0; }
.safe-deal-order-preview-channel .safe-deal-order-preview-channel-text strong { font: 600 14px/18px var(--font); }
body.light-theme .safe-deal-order-preview-channel { --safe-deal-preview-header-backdrop: #DADEE6; }
.safe-deal-order-preview-unavailable { margin: auto 16px 16px; color: var(--text-50); font: 400 14px/18px var(--font); text-align: center; }
.safe-deal-order-header-amount { box-sizing: border-box; height: 36px; padding: 0 16px; color: #1E5EF9; background: rgba(30,94,249,.12); border-radius: var(--radius-sm); font: 500 14px/18px var(--font); white-space: nowrap; }
.safe-deal-order-header-amount { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; pointer-events: none; user-select: none; }
.safe-deal-order-header-amount-number { display: block; line-height: 18px; }
.safe-deal-order-header-amount-currency { display: grid; place-items: center; line-height: 1; }
.safe-deal-order-header-amount-currency > * { display: block; margin: 0; vertical-align: initial; }
.safe-deal-order-header-amount-currency.is-rub { margin-left: 3px; }
.safe-deal-order-header-amount-currency.is-gram { margin-left: 3px; }
.safe-deal-order-header-amount-currency.is-gram .price-gram { width: 11.97px; height: 11.97px; aspect-ratio: 1 / 1; }
.buyer-campaign-card.safe-deal-order-card .buyer-campaign-summary { grid-template-columns: 60px minmax(0,1fr) 93px 67px; column-gap: var(--safe-deal-order-header-reference-gap); }
/* Tighten the status-to-ID gap while compensating the info lane so the
   avatar-to-channel-name effective gap remains the canonical 16px. The
   measured 14px track gap is reduced by exactly 20% to 11.2px. */
.safe-deal-order-card .buyer-campaign-info { margin-left: 4.8px; }
.safe-deal-order-card .safe-deal-order-id-copy { box-sizing: border-box; width: 84px; min-width: 84px; max-width: 84px; }
/* The order ID is the only header item that needs a cross-axis correction:
   the shared 84px action track starts inside the summary's 12px inset. Keep
   the avatar, information lane, amount, and status on their established
   primitive geometry instead of moving the whole summary. */
.safe-deal-order-card .buyer-campaign-actions { align-self: stretch; align-items: center; justify-content: flex-start; }
.safe-deal-order-card .buyer-campaign-actions > .safe-deal-order-id-copy { flex: 0 0 84px; align-self: center; display: inline-flex; align-items: center; justify-content: center; margin: 0; transform: translateY(-12px); }
.safe-deal-order-card .safe-deal-order-header-amount { border-radius: var(--radius-xs); }
.safe-deal-order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: 30px; align-items: stretch; margin: 0 0 24px; }
.safe-deal-order-timeline-column { --safe-deal-timeline-transition-gap: 10px; --safe-deal-marker-text-gap: 13.31px; min-width: 0; display: flex; flex-direction: column; padding-top: 0; }
.safe-deal-order-content-divider { width: 100%; height: 1px; margin: 0 0 24px; background: var(--c-ink-700); }
.safe-deal-order-body > .safe-deal-order-content-divider { width: calc(100% + 48px); margin-left: -24px; margin-right: -24px; }
.safe-deal-order-timeline { --safe-deal-marker-text-gap: 13.31px; --safe-deal-stage-pill-inline-padding: 12px; --safe-deal-stage-spinner-visual-inset: 2px; --safe-deal-stage-pill-left-extension: calc(var(--safe-deal-stage-pill-inline-padding) - var(--safe-deal-stage-spinner-visual-inset)); --safe-deal-placement-row-gap: 8.6px; --safe-deal-placement-confirmed-gap: 5.504px; --safe-deal-placement-horizontal-padding: 14.4px; --safe-deal-placement-clock-gap: 5.12px; margin: 0; padding: 0; list-style: none; display: grid; grid-auto-rows: max-content; align-content: start; gap: var(--safe-deal-timeline-transition-gap); }
.safe-deal-order-timeline > li { min-height: 0; }
.safe-deal-order-stage { --safe-deal-stage-first-line-center: 18px; position: relative; min-height: 36px; padding-left: calc(24px + var(--safe-deal-marker-text-gap)); }
.safe-deal-order-stage:not(:last-child)::before { content: none; }
.safe-deal-order-stage-marker { position: absolute; left: 0; top: calc(var(--safe-deal-stage-first-line-center) - 12px); width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--radius-round); color: var(--c-white); background: transparent; font: 700 16px/1 var(--font); }
.safe-deal-order-stage.is-completed .safe-deal-order-stage-marker { color: var(--c-green-500); }
/* Галочка пройденного этапа — прямая, из SVG: символ «✓» каждый шрифт рисует по-своему. */
.safe-deal-order-stage.is-completed .safe-deal-order-stage-marker::after { content: ""; width: 16px; height: 12px; background: currentColor; -webkit-mask: url('../assets/check-line.svg') center/contain no-repeat; mask: url('../assets/check-line.svg') center/contain no-repeat; }
.safe-deal-order-stage.is-current .safe-deal-order-stage-marker { left: var(--safe-deal-stage-pill-left-extension); background: transparent; }
.safe-deal-order-stage.is-current { --safe-deal-stage-first-line-center: 18px; box-sizing: border-box; display: grid; width: fit-content; max-width: 100%; height: 36px; min-height: 36px; margin: 0 0 0 calc(var(--safe-deal-stage-spinner-visual-inset) - var(--safe-deal-stage-pill-inline-padding)); padding: 0 var(--safe-deal-stage-pill-inline-padding) 0 calc(var(--safe-deal-stage-pill-left-extension) + 24px + var(--safe-deal-marker-text-gap)); overflow: hidden; background: #1E5EF9; border: 0; border-radius: var(--radius-sm); }
.safe-deal-order-stage.is-current .safe-deal-order-stage-content { min-height: 36px; padding: 0; align-content: center; }
.safe-deal-order-stage.is-current .safe-deal-order-stage-content > p { white-space: nowrap; }
.safe-deal-order-stage.is-placement-current { margin-bottom: 0; }
.safe-deal-order-stage.is-seller-confirmation-current { margin-bottom: 0; }
.safe-deal-order-stage.is-placement-completed { --safe-deal-stage-first-line-center: 18px; box-sizing: border-box; display: grid; width: fit-content; max-width: 100%; height: 36px; min-height: 36px; margin: 0 0 0 calc(var(--safe-deal-stage-spinner-visual-inset) - var(--safe-deal-stage-pill-inline-padding)); padding: 0 var(--safe-deal-stage-pill-inline-padding) 0 calc(var(--safe-deal-stage-pill-left-extension) + 24px + var(--safe-deal-marker-text-gap)); color: var(--c-white); background: transparent; border-radius: 0; }
.safe-deal-order-stage.is-placement-completed .safe-deal-order-stage-marker { left: var(--safe-deal-stage-pill-left-extension); color: var(--c-green-500); }
.safe-deal-order-stage.is-placement-completed .safe-deal-order-stage-content { min-height: 36px; padding: 0; align-content: center; }
.safe-deal-order-stage.is-placement-completed .safe-deal-order-stage-content > p { color: var(--c-white); white-space: nowrap; }
.safe-deal-order-stage-row { min-height: 36px; display: flex; flex-wrap: nowrap; align-items: center; gap: var(--safe-deal-placement-row-gap); width: fit-content; max-width: 100%; margin-bottom: 0; }
.safe-deal-order-stage-row.is-placement-completed-row { gap: var(--safe-deal-placement-confirmed-gap); }
.safe-deal-order-placement-subtitle { display: flex; align-items: center; flex: 0 0 auto; margin: 0; padding: 0; }
.safe-deal-order-stage-row > .safe-deal-order-stage,
.safe-deal-order-stage-row > .safe-deal-order-placement-subtitle { align-self: center; }
.safe-deal-order-seller-confirmation-row,
.safe-deal-order-seller-top-confirmation-row { min-height: 36px; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin-bottom: 0; }
.safe-deal-order-seller-confirmation-row > .safe-deal-order-stage,
.safe-deal-order-seller-top-confirmation-row > .safe-deal-order-stage { flex: 0 1 auto; }
.safe-deal-order-seller-confirmation-row > .safe-deal-order-seller-stage-slot,
.safe-deal-order-seller-top-confirmation-row > .safe-deal-order-seller-stage-slot { margin-top: 0; padding-left: 0; flex: 0 0 auto; }
.safe-deal-order-seller-confirmation-row .safe-deal-order-seller-stage-confirm,
.safe-deal-order-seller-top-confirmation-row .safe-deal-order-seller-stage-confirm { width: 36px; min-width: 36px; height: 36px; padding: 0; gap: 0; }
.safe-deal-order-placement-countdown { height: 36px; padding: 0 var(--safe-deal-placement-horizontal-padding); display: inline-flex; align-items: center; gap: var(--safe-deal-placement-clock-gap); color: var(--c-orange-500); background: var(--c-orange-a12); border-radius: 22px; font: 400 16px/20px var(--font); white-space: nowrap; }
.safe-deal-order-placement-confirmed-time { height: 36px; padding: 0 var(--safe-deal-placement-horizontal-padding); display: inline-flex; align-items: center; gap: var(--safe-deal-placement-clock-gap); color: var(--c-green-500); background: var(--c-green-a12); border-radius: 22px; font: 400 16px/20px var(--font); white-space: nowrap; }
.safe-deal-order-placement-confirmed-time .timer-clock-image { filter: brightness(0) saturate(100%) invert(61%) sepia(73%) saturate(1043%) hue-rotate(62deg) brightness(91%) contrast(86%); }
.safe-deal-order-placement-countdown-prefix { color: var(--c-orange-500); }
.safe-deal-order-stage.is-failed .safe-deal-order-stage-marker { color: var(--c-red-500); }
.safe-deal-order-stage.is-failed .safe-deal-order-stage-marker::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url('../assets/cross-line.svg') center/contain no-repeat; mask: url('../assets/cross-line.svg') center/contain no-repeat; }
.safe-deal-order-stage.is-future .safe-deal-order-stage-marker,
.safe-deal-order-stage.is-unavailable .safe-deal-order-stage-marker { left: 9.5px; top: calc(var(--safe-deal-stage-first-line-center) - 2.5px); width: 5px; height: 5px; background: var(--c-ink-500); }
.safe-deal-order-stage.is-future .safe-deal-order-stage-content > p,
.safe-deal-order-stage.is-unavailable .safe-deal-order-stage-content > p { color: var(--c-ink-500); }
.safe-deal-order-stage.is-after-cancellation .safe-deal-order-stage-marker { color: var(--c-ink-500); }
.safe-deal-order-stage.is-after-cancellation .safe-deal-order-stage-content > p { color: var(--c-ink-500); text-decoration: line-through; }
.safe-deal-order-stage-content { box-sizing: border-box; min-height: 36px; padding: 0; display: grid; align-content: center; gap: 8px; }
.safe-deal-order-stage-content > p { margin: 0; color: var(--c-white); font: 400 16px/20px var(--font); }
.safe-deal-order-payment { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 30px; }
.safe-deal-order-seller-stage-slot { width: fit-content; margin: var(--safe-deal-timeline-transition-gap) 0 0; padding-left: calc(24px + var(--safe-deal-marker-text-gap)); display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.safe-deal-order-seller-stage-confirm { box-sizing: border-box; min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--c-white); background: var(--c-green-500); border: 0; border-radius: var(--radius-sm); font: 500 14px/18px var(--font); cursor: pointer; }
.safe-deal-order-seller-stage-confirm > span:first-child { font-size: 18px; line-height: 1; }
.safe-deal-order-seller-stage-confirm:hover,
.safe-deal-order-seller-stage-confirm:focus-visible { filter: brightness(1.08); }
.safe-deal-order-seller-stage-confirm:disabled { opacity: .6; cursor: default; }
.safe-deal-order-seller-stage-confirm-status { color: var(--c-green-500); font: 400 13px/18px var(--font); }
.safe-deal-order-seller-stage-confirm-status.is-error { color: #FF8B8B; }
.safe-deal-order-seller-stage-feedback { margin: 12px 0 0 calc(24px + var(--safe-deal-marker-text-gap)); color: var(--c-green-500); font: 400 13px/18px var(--font); }
.safe-deal-order-evaluation { width: 100%; margin: var(--safe-deal-timeline-transition-gap) 0 0; padding: 0; list-style: none; display: grid; row-gap: var(--safe-deal-timeline-transition-gap); }
.safe-deal-order-evaluation > li { min-width: 0; }
.safe-deal-order-evaluation-stage-label { margin: 0; color: var(--c-white); font: 400 16px/20px var(--font); }
.safe-deal-order-evaluation [data-safe-deal-evaluation-stage="participant"] .safe-deal-order-stage-content { display: flex; flex-wrap: nowrap; align-items: center; gap: 16px; padding-top: 0; }
.safe-deal-order-evaluation [data-safe-deal-evaluation-stage="participant"] .safe-deal-order-stage-content > p { flex: 0 1 auto; min-width: 0; }
.safe-deal-order-evaluation [data-safe-deal-evaluation-stage="participant"] .safe-deal-participant-approval { width: auto; min-width: 0; min-height: 36px; flex: 0 0 auto; justify-content: flex-start; }
.safe-deal-order-evaluation [data-safe-deal-evaluation-stage="participant"] .safe-deal-participant-approval-button { border-radius: var(--radius-sm); }
.safe-deal-order-evaluation [data-safe-deal-evaluation-stage="channel-review"] .safe-deal-order-stage-content { row-gap: 15px; }
.safe-deal-order-evaluation .safe-deal-channel-review { margin: 0; padding-top: 0; }

/* Keep every marker on the first text line, including wrapped stage labels. The
   spinner rotates on an inner layer so the marker's vertical alignment remains stable. */
.safe-deal-order-stage-marker { top: var(--safe-deal-stage-first-line-center); transform: translateY(-50%); }
.safe-deal-order-stage.is-future .safe-deal-order-stage-marker,
.safe-deal-order-stage.is-unavailable .safe-deal-order-stage-marker { top: var(--safe-deal-stage-first-line-center); transform: translateY(-50%); }
.safe-deal-order-stage-content { align-content: start; padding-top: 8px; }
.safe-deal-order-stage.is-current .safe-deal-order-stage-content,
.safe-deal-order-stage.is-placement-completed .safe-deal-order-stage-content { align-content: start; padding-top: 8px; }
.safe-deal-order-stage.is-current .safe-deal-order-stage-marker { background: transparent; animation: none; }
.safe-deal-order-stage.is-current .safe-deal-order-stage-marker::before { content: ""; width: 20px; height: 20px; display: block; background: url('../assets/safe-deal-stage-spinner.svg') center/20px 20px no-repeat; transform-origin: center; animation: safeDealStageSpin 4.58s linear infinite; }
.safe-deal-order-preview-anchor > .safe-deal-order-publication-row { width: 420px; max-width: 420px; margin-top: 11px; margin-bottom: 0; }
.safe-deal-order-publication-row { width: 420px; max-width: 420px; height: 44px; display: flex; gap: 11px; align-items: stretch; }
.safe-deal-order-publication-spoiler { position: relative; box-sizing: border-box; flex: 1 1 auto; width: 100%; min-width: 0; max-width: 100%; height: 44px; min-height: 44px; display: flex; align-items: center; overflow: hidden; color: transparent; background: transparent; border: 2px dashed #0073FF; border-radius: 9999px; }
.safe-deal-order-publication-spoiler-text { visibility: hidden; color: transparent; font: 600 16px/20px var(--font); white-space: nowrap; user-select: none; }
.safe-deal-order-publication-pending { justify-content: center; color: var(--c-blue-500); background: var(--c-blue-a12); border-color: #0073FF; cursor: default; }
.safe-deal-order-publication-copy { box-sizing: border-box; flex: 1 1 auto; width: auto; min-width: 0; max-width: none; height: 44px; min-height: 44px; align-self: center; padding: 0 17.6px; display: inline-flex; align-items: center; justify-content: flex-start; overflow: hidden; color: var(--c-blue-500); background: var(--c-blue-a12); border: 0; border-radius: 9999px; font: 600 16px/20px var(--font); white-space: nowrap; cursor: pointer; }
.safe-deal-order-publication-copy .copy-default,
.safe-deal-order-publication-copy .copy-success { width: 100%; min-width: 0; align-items: center; justify-content: flex-start; }
.safe-deal-order-publication-copy .copy-default { display: flex; text-align: left; }
.safe-deal-order-publication-copy .copy-success { display: none !important; align-items: center; justify-content: flex-start; width: 100%; height: 100%; }
.safe-deal-order-publication-copy .copy-default b { min-width: 0; flex: 1 1 auto; overflow: hidden; color: var(--c-blue-500); font: 600 16px/20px var(--font); text-align: left; white-space: nowrap; }
.safe-deal-order-publication-copy .copy-success b { min-width: 0; flex: 1 1 auto; overflow: hidden; color: var(--c-white); font: 600 16px/20px var(--font); text-align: left; white-space: nowrap; }
.safe-deal-order-publication-copy img { width: 18px; height: 18px; margin-left: auto; flex: 0 0 18px; }
.safe-deal-order-publication-copy.copied { color: var(--c-white); background: var(--c-blue-500); }
.safe-deal-order-publication-copy.copied .copy-default { display: none !important; }
.safe-deal-order-publication-copy.copied .copy-success { display: flex !important; }
.safe-deal-order-publication-copy:disabled { color: var(--text-50); cursor: default; }
.safe-deal-order-publication-telegram { box-sizing: border-box; width: 44px; min-width: 44px; height: 44px; align-self: center; padding: 13.2px 13.2px 12.1px 8.8px; display: flex; align-items: flex-start; justify-content: flex-start; color: var(--c-blue-500); background: var(--c-blue-a12); border: 0; border-radius: var(--radius-round); cursor: pointer; }
.safe-deal-order-publication-telegram img { width: 23.1px; height: 18.7px; display: block; }
.safe-deal-order-publication-telegram:disabled { opacity: .45; cursor: default; }
@media (max-width: 1260px) {
  .safe-deal-order-layout { grid-template-columns: minmax(0, 1fr); }
  .safe-deal-order-preview-anchor { width: 100%; max-width: 450px; }
  .safe-deal-order-placement-info { width: max-content; max-width: none; gap: 12px; }
  .safe-deal-order-preview-status-row { width: min(450px, 100%); max-width: 450px; margin-left: 0; }
  .safe-deal-order-preview-counterparty { width: min(420px, 100%); max-width: min(420px, 100%); }
  .safe-deal-order-preview-anchor > .buyer-creative-post-preview { width: min(420px, 100%); max-width: min(420px, 100%); }
  .safe-deal-order-preview-anchor > .safe-deal-order-publication-row,
  .safe-deal-order-publication-row { width: min(420px, 100%); max-width: min(420px, 100%); }
}
.safe-deal-order-amount-pill { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 30px; padding: 6px 10px; color: var(--text); background: var(--c-ink-800); border-radius: var(--radius-xs); font: 500 14px/18px var(--font); }
.safe-deal-order-amount-pill.is-gram { gap: 3px; }
.safe-deal-order-amount-pill.is-rub { gap: 0; }
.safe-deal-order-amount-number { display: block; line-height: 18px; }
.safe-deal-order-amount-currency { width: 16px; height: 18px; display: grid; place-items: center; line-height: 1; }
.safe-deal-order-amount-currency > * { display: block; margin: 0; vertical-align: initial; }
.safe-deal-order-amount-currency .price-ruble,
.safe-deal-order-fee-note .price-ruble { margin-left: 0; }
.safe-deal-order-amount-currency .price-gram { width: 11.97px; height: 11.97px; aspect-ratio: 1 / 1; }
.safe-deal-order-fee-note { flex: 0 1 auto; color: var(--c-ink-500); font: 400 14px/18px var(--font); }
.safe-deal-order-actions-wrap { align-self: end; justify-self: start; width: 100%; display: grid; gap: 20px; }
.safe-deal-order-action-panel { min-width: 0; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.safe-deal-order-action-panel-left { min-width: 0; flex: 0 1 auto; display: flex; align-items: center; }
.safe-deal-order-action-panel-left:empty { display: none; }
.safe-deal-order-action-panel-left > .safe-deal-order-preview-status-row { margin: 0; }
.safe-deal-order-action-pending { margin-right: 12px; color: var(--text-75); font: 400 13px/18px var(--font); }
.safe-deal-order-action-panel-right { min-width: 0; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.safe-deal-order-action-message { position: relative; z-index: 0; flex: 0 1 auto; width: fit-content; max-width: 100%; margin: 0; padding: 10px 25px; color: var(--c-white); background: #212129; border-radius: 9999px; font: 400 16px/20px var(--font); }
.safe-deal-order-actions-wrap.is-terminal-disabled button { opacity: .55; cursor: default; }
.safe-deal-order-actions { height: 52px; margin-left: auto; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 15px; }
.safe-deal-order-actions:empty { display: none; }
.safe-deal-order-actions.is-text-with-cancel { gap: 10px; }
.safe-deal-order-actions.is-confirmation-with-cancel { gap: 15px; }
.safe-deal-order-actions button { box-sizing: border-box; height: 52px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--c-white); border-radius: var(--radius-sm); font: 600 16px/20px var(--font); }
.safe-deal-order-actions .is-accept,
.safe-deal-order-actions .is-confirm-completion { width: 237.6px; min-width: 237.6px; }
.safe-deal-order-actions .is-cancel-request-confirm,
.safe-deal-order-actions .is-accept-cancel { width: 216px; min-width: 216px; }
.safe-deal-order-actions .is-accept { background: var(--c-green-500); }
.safe-deal-order-actions .is-confirm-completion { background: var(--c-green-500); }
.safe-deal-order-actions .is-cancel-request-confirm,
.safe-deal-order-actions .is-accept-cancel { background: var(--c-orange-500); }
.safe-deal-order-actions .is-reject,
.safe-deal-order-actions .is-continue,
.safe-deal-order-actions .is-seller-cancel,
.safe-deal-order-actions .is-buyer-request,
.safe-deal-order-actions .is-buyer-request-pending,
.safe-deal-order-actions .is-cancel-request-reject { width: 52px; min-width: 52px; font-size: 0; }
.safe-deal-order-actions .is-reject { background: var(--c-red-500); }
.safe-deal-order-actions .is-continue,
.safe-deal-order-actions .is-seller-cancel,
.safe-deal-order-actions .is-buyer-request,
.safe-deal-order-actions .is-buyer-request-pending { background: var(--c-red-500); }
.safe-deal-order-actions .is-cancel-request-reject { background: var(--c-orange-500); }
.safe-deal-order-actions .is-reject span,
.safe-deal-order-actions .is-continue span,
.safe-deal-order-actions .is-seller-cancel span,
.safe-deal-order-actions .is-buyer-request span,
.safe-deal-order-actions .is-buyer-request-pending span,
.safe-deal-order-actions .is-cancel-request-reject span { position: relative; display: block; width: 24px; height: 24px; flex: 0 0 24px; font-size: 0; line-height: 0; }
.safe-deal-order-actions .is-reject span::before,
.safe-deal-order-actions .is-continue span::before,
.safe-deal-order-actions .is-seller-cancel span::before,
.safe-deal-order-actions .is-buyer-request span::before,
.safe-deal-order-actions .is-buyer-request-pending span::before,
.safe-deal-order-actions .is-cancel-request-reject span::before,
.safe-deal-order-actions .is-reject span::after,
.safe-deal-order-actions .is-continue span::after,
.safe-deal-order-actions .is-seller-cancel span::after,
.safe-deal-order-actions .is-buyer-request span::after,
.safe-deal-order-actions .is-buyer-request-pending span::after,
.safe-deal-order-actions .is-cancel-request-reject span::after { content: ""; position: absolute; top: 50%; left: 50%; width: 28.8px; height: 2.4px; background: var(--c-white); border-radius: 1px; transform: translate(-50%, -50%) rotate(45deg); }
.safe-deal-order-actions .is-reject span::after,
.safe-deal-order-actions .is-continue span::after,
.safe-deal-order-actions .is-seller-cancel span::after,
.safe-deal-order-actions .is-buyer-request span::after,
.safe-deal-order-actions .is-buyer-request-pending span::after,
.safe-deal-order-actions .is-cancel-request-reject span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.safe-deal-order-actions button:hover, .safe-deal-order-actions button:focus-visible { filter: brightness(1.08); }
.safe-deal-participant-approval { width: auto; min-width: 0; min-height: 52px; margin: 0; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.safe-deal-participant-approval-buttons { width: 89.6px; min-width: 89.6px; height: 36px; display: flex; gap: 6.4px; overflow: visible; background: transparent; border: 0; outline: 0; box-shadow: none; border-radius: 0; }
.safe-deal-participant-approval-button { box-sizing: border-box; width: 41.6px; min-width: 41.6px; height: 36px; flex: 0 0 41.6px; padding: 0; display: grid; place-items: center; appearance: none; -webkit-appearance: none; border: 0; border-radius: var(--radius-round); color: var(--text-75); background: #212129; font: 21px/1 var(--font); line-height: 1; cursor: pointer; }
.safe-deal-participant-approval-button.is-up { color: #0FA88C; }
.safe-deal-participant-approval-button.is-down { color: var(--c-red-500); }
.safe-deal-participant-approval-button:hover,
.safe-deal-participant-approval-button:focus-visible { filter: brightness(1.08); }
.safe-deal-participant-approval-button:focus-visible { outline: 0; box-shadow: none; }
.safe-deal-participant-approval-icon { width: 18.4px; height: 18.4px; display: block; object-fit: contain; }
.safe-deal-participant-approval-button.is-up .safe-deal-participant-approval-icon { transform: translateX(0.30664px); filter: brightness(0) saturate(100%) invert(47%) sepia(67%) saturate(1084%) hue-rotate(122deg) brightness(89%) contrast(88%); }
.safe-deal-participant-approval-button.is-down .safe-deal-participant-approval-icon { transform: translateX(-0.30664px) rotate(180deg); filter: brightness(0) saturate(100%) invert(29%) sepia(92%) saturate(3146%) hue-rotate(341deg) brightness(93%) contrast(98%); }
.safe-deal-participant-approval-button.is-up.is-selected { color: var(--c-white); background: #0FA88C; }
.safe-deal-participant-approval-button.is-down.is-selected { color: var(--c-white); background: var(--c-red-500); }
.safe-deal-participant-approval-button.is-selected .safe-deal-participant-approval-icon { filter: brightness(0) invert(1); }
.safe-deal-participant-approval-button:disabled { opacity: .6; cursor: default; }
.safe-deal-channel-review { width: 100%; margin: auto 0 0; padding-top: 24px; display: grid; gap: 15px; }
.safe-deal-channel-review-stars { height: 24px; margin-bottom: 0; display: flex; align-items: center; gap: 8px; }
.safe-deal-channel-review-star { width: 26px; height: 24px; padding: 0; position: relative; flex: 0 0 26px; overflow: hidden; background: transparent; border: 0; cursor: pointer; }
.safe-deal-channel-review-star-icon { width: 26px; height: 24px; display: block; position: relative; }
.safe-deal-channel-review-star-icon::before { content: ""; position: absolute; z-index: 1; inset: 0; width: 100%; background: var(--c-orange-500); -webkit-mask: url("../assets/star-filled.svg") center / 26px 24px no-repeat; mask: url("../assets/star-filled.svg") center / 26px 24px no-repeat; -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); pointer-events: none; }
.safe-deal-channel-review-star.is-filled .safe-deal-channel-review-star-icon::before { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
.safe-deal-channel-review-star.is-half-filled .safe-deal-channel-review-star-icon::before { -webkit-clip-path: inset(0 50% 0 0); clip-path: inset(0 50% 0 0); }
.safe-deal-channel-review-star-icon img { position: relative; z-index: 2; width: 26px; height: 24px; display: block; }
.safe-deal-channel-review-star:focus-visible { outline-offset: 1px; }
.safe-deal-channel-review-value { min-width: 48px; margin-left: 8px; color: var(--c-orange-500); font: 500 26px/24px var(--font); }
.safe-deal-channel-review-text { min-width: 0; display: block; }
.safe-deal-channel-review-form { display: grid; gap: 10px; }
.safe-deal-channel-review-form[hidden] { display: none; }
.safe-deal-channel-review-text textarea { box-sizing: border-box; display: block; width: 100%; height: 80px; min-height: 80px; padding: 12px; resize: none; color: var(--text); background: var(--c-ink-800); border: 0; outline: 0; border-radius: var(--radius-sm); font: 400 14px/20px var(--font); }
.safe-deal-channel-review-text textarea:disabled { opacity: .6; cursor: default; }
.safe-deal-channel-review-actions { display: flex; align-items: center; gap: 4px; }
.safe-deal-channel-review-save { width: 180px; min-width: 180px; height: 40px; padding: 0 16px; color: var(--c-white); background: #1E5EF9; border: 0; border-radius: var(--radius-sm); font: 600 14px/18px var(--font); text-align: center; cursor: pointer; }
.safe-deal-channel-review-save.is-success { background: #0FA88C; }
.safe-deal-channel-review-save.is-success:disabled { opacity: 1; }
.safe-deal-channel-review-save:disabled { opacity: .6; cursor: default; }
.safe-deal-channel-review-edit { width: 20px; height: 20px; margin-left: 0; }
.safe-deal-channel-review-edit[hidden] { display: none; }
.safe-deal-rating-error { grid-column: 1 / -1; margin: 0; color: #FF7C7C; font: 400 14px/18px var(--font); }
@media (max-width: 760px) {
  .safe-deal-order-action-panel { flex-wrap: wrap; }
  .safe-deal-order-action-panel-left { width: 100%; }
  .safe-deal-order-action-panel-right { width: 100%; margin-left: 0; justify-content: flex-start; }
  .safe-deal-order-placement-info { box-sizing: border-box; width: 100%; max-width: 100%; flex-wrap: wrap; gap: 12px; }
  .safe-deal-participant-approval { width: 100%; justify-content: space-between; }
  .safe-deal-order-preview-status-row .safe-deal-participant-approval { width: auto; justify-content: flex-end; }
}
@keyframes safeDealStageSpin { to { transform: rotate(360deg); } }
.safe-deal-order-state { padding: 24px 0; color: var(--text-75); background: transparent; border: 0; font: 400 14px/20px var(--font); }

/* Channel Reviews controls keep their reduced geometry after shared dropdown
   cascades, while remaining a real delegated hit target. */
.channel-view .channel-reviews-controls { width: 100%; height: 61px; min-height: 61px; align-self: center; justify-self: end; justify-content: space-between; gap: 0; position: relative; top: 1px; }
.channel-view .channel-reviews-header h2 { margin: 0; }
.channel-view .channel-reviews-score-main > .channel-reviews-scale { transform: translateY(-5px); }
.channel-view .channel-reviews-filter-field { width: 180px; min-width: 180px; height: 33.792px; }
.channel-view .channel-reviews-filter-dropdown { position: relative; z-index: 1; width: 180px; min-width: 180px; height: 33.792px; }
.channel-view .channel-reviews-filter-dropdown.open { z-index: 10; }
.channel-view .channel-reviews-filter-trigger { width: 180px; min-width: 180px; height: 33.792px; padding: 0 30px 0 0; pointer-events: auto; }
.channel-view .channel-reviews-filter-trigger span { width: 100%; text-align: center; }
.channel-view .channel-reviews-filter-trigger i { right: 15px; }
.channel-view .channel-reviews-filter-dropdown .dropdown-panel { top: 37.792px; width: 180px; min-width: 180px; min-height: 33.792px; pointer-events: auto; }
.channel-view .channel-reviews-filter-dropdown .dropdown-panel button { height: 33.792px; pointer-events: auto; }
.channel-view .channel-reviews-summary.has-histogram .channel-reviews-histogram { transform: translateX(calc(-20% + 20px)); }
.safe-deal-order-counterparty-repeat .safe-deal-order-counterparty-repeat-icon { transform: scale(1.1); transform-origin: center; }
.safe-deal-order-placement-safe-deal-icon { transform: scale(0.81); transform-origin: center; }

/* Horizontal wordmark uses the source artwork as a mask so the mark stays one color. */
.brand { width: 133px; height: 46px; margin-left: 5px; display: flex; align-items: center; justify-content: flex-start; }
.brand-wordmark { display: block; width: 133px; height: 41px; flex: 0 0 auto; background-color: var(--c-white); -webkit-mask: url('../assets/advix-wordmark-mask.svg?v=2') left center / contain no-repeat; mask: url('../assets/advix-wordmark-mask.svg?v=2') left center / contain no-repeat; }
body.light-theme .brand-wordmark { background-color: var(--blue); }

@media (max-width: 900px) {
  .brand { width: 99px; height: 37px; margin-left: 5px; }
  .brand-wordmark { width: 99px; height: 31px; }
  .header-actions { gap: 6px; }
  .header .language { width: 58px; flex: 0 0 58px; gap: 5px; font-size: 14px; }
  .header .language img { width: 18px; height: 18px; }
  .header .theme { width: 47px; flex: 0 0 47px; }
  .header .login:not(.is-profile),
  .header .login:not(.is-profile):hover { position: relative; width: 102px; height: 44px; padding: 0; display: flex; flex: 0 0 102px; align-items: center; justify-content: center; gap: 6px; border-radius: 22px; }
  .header .login:not(.is-profile) .avatar { position: static; left: auto; top: auto; width: 16px; height: 16px; flex: 0 0 16px; transform: none; }
  .header .login:not(.is-profile) .avatar img { width: 16px; height: 16px; }
  .header .login:not(.is-profile) .login-text { position: static; left: auto; top: auto; width: auto; height: auto; display: block; line-height: 19px; }
  .header .login.is-profile,
  .header .login.is-profile:hover,
  .header .login.auth-bootstrap-skeleton,
  .header .login.auth-bootstrap-skeleton:hover { width: 102px; height: 44px; flex-basis: 102px; }
  .header .login.is-profile .avatar { left: 5px; top: 5px; width: 34px; height: 34px; }
  .header .login.is-profile .avatar img { width: 34px; height: 34px; }
  .header .login.is-profile .profile-name { left: 43px; top: 0; width: 55px; max-width: 55px; height: 44px; overflow: hidden; font-size: 13px; }
}

@media (max-width: 400px) {
  .brand { width: 79px; height: 37px; }
  .brand-wordmark { width: 79px; height: 25px; }
  .header .language { width: 50px; flex-basis: 50px; gap: 4px; font-size: 12px; }
  .header .language img { width: 16px; height: 16px; }
  .header .language i { width: 6px; }
  .header .theme { width: 40px; flex-basis: 40px; }
  .header .theme[data-theme="light"]::before { transform: translateX(12px) rotate(90deg); }
  .header .theme[data-theme="light"]::after { transform: translateX(12px) rotate(180deg); }
  .header .login:not(.is-profile),
  .header .login:not(.is-profile):hover,
  .header .login.is-profile,
  .header .login.is-profile:hover,
  .header .login.auth-bootstrap-skeleton,
  .header .login.auth-bootstrap-skeleton:hover { width: 88px; flex-basis: 88px; }
  .header .login.is-profile .avatar { left: 4px; top: 8px; width: 28px; height: 28px; }
  .header .login.is-profile .avatar img { width: 28px; height: 28px; }
  .header .login.is-profile .profile-name { left: 36px; width: 46px; max-width: 46px; font-size: 12px; }
}

/* Ссылка на канал в шапке поста заказа: просто белый самолётик (в светлой теме синий), без кнопки. */
.safe-deal-order-preview-channel .safe-deal-order-preview-channel-link { margin-left: auto; width: 20px; height: 20px; flex: 0 0 20px; color: #fff; background: currentColor; -webkit-mask: url('../assets/telegram.svg') center/contain no-repeat; mask: url('../assets/telegram.svg') center/contain no-repeat; transition: opacity var(--motion-base) ease; }
.safe-deal-order-preview-channel .safe-deal-order-preview-channel-link:hover { opacity: .75; }
body.light-theme .safe-deal-order-preview-channel .safe-deal-order-preview-channel-link { color: var(--blue); }

/* Личный кабинет (/my/*): мобильная вёрстка. */
/* Порядок подключения важен: файл подключается ПОСЛЕДНИМ и перекрывает фиксированные */
/* десктопные размеры (314px / 1046px и т.п.) из 01-12. Всё внутри media-запросов, */
/* поэтому на экранах шире 900px ничего не меняется. */
/* !important использован только там, где его уже ставят прежние правила (отмечено ниже). */

@media (max-width: 900px) {

  /* ===== Общая оболочка кабинета ===== */
  /* Сетка 314px + 1046px превращается в одну колонку: меню сверху, затем заголовок, затем контент. */
  .profile-page {
    width: calc(100% - 32px);
    min-height: 0;
    margin-bottom: 40px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 0;
  }
  .profile-page > * { grid-column: 1; min-width: 0; }
  .profile-sidebar { grid-row: 1; width: 100%; }
  .profile-menu-stack,
  .profile-menu-card { width: 100%; }
  /* Пункты меню ниже (было 62px), чтобы меню не занимало несколько экранов; всё равно >= 44px для пальца. */
  .profile-menu-items > button { width: 100%; height: 48px; min-height: 48px; }
  /* Подложка активного пункта: высота и шаг как у пунктов (48px + gap 4px), а не десктопные 62px/66px,
     иначе подложка съезжала на соседний пункт и перекрывала текст активного. */
  .profile-menu-items::before { width: 100%; height: 48px; transform: translateY(calc(var(--profile-active-index, 0) * 52px)); }
  .profile-page-title {
    grid-row: 2;
    height: auto;
    min-height: 52px;
    margin: 16px 0 8px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    line-height: 30px;
  }
  /* Фильтры внутри заголовка (заявки, кампании) были absolute справа и налезали на текст. */
  .profile-page-title .catalog-sort { position: static; width: 100%; min-width: 0; }
  /* Любой основной блок страницы идёт в третью строку и без верхнего отступа 40px. */
  .profile-page > :not(.profile-sidebar):not(.profile-page-title) { grid-row: 3; margin-top: 0; }
  .profile-content,
  .profile-main-stack,
  .profile-main-stack .profile-content-main { width: 100%; max-width: 100%; min-width: 0; }

  /* ===== Профиль (/my/profile, также запасной экран /my/telegram-ads, /my/statistics) ===== */
  .profile-main-stack .profile-content-main,
  .profile-content-main { height: auto; padding: 20px 16px 24px; }
  .profile-id-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }  /* было 479px 479px */
  .profile-id-field { height: auto; }
  .profile-actions { flex-wrap: wrap; }

  /* ===== Баланс (/my/balance) ===== */
  .profile-content-balance,
  .profile-balance-page { width: 100%; max-width: 100%; }
  .profile-balance-page { grid-template-columns: minmax(0, 1fr); }
  .profile-balance-hero,
  .profile-affiliate-card,
  .profile-balance-history { width: 100%; max-width: 100%; }
  /* Две валюты друг под другом вместо двух половин по 523px. */
  .profile-balance-hero { height: auto; grid-template-columns: minmax(0, 1fr); }
  .profile-balance-half { min-height: 96px; }
  .profile-balance-half b { font-size: 36px; line-height: 44px; }
  /* История операций: строка 1 = сумма + дата + время, строка 2 = описание на всю ширину. */
  .profile-history-list { padding: 16px; }
  .profile-history-row { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 6px; }
  .profile-history-row > span { grid-column: 1; grid-row: 1; }
  .profile-history-row > time:nth-of-type(1) { grid-column: 2; grid-row: 1; justify-self: end; }
  .profile-history-row > time:nth-of-type(2) { grid-column: 3; grid-row: 1; }
  .profile-history-row > b { grid-column: 1 / -1; grid-row: 2; white-space: normal; min-width: 0; overflow-wrap: anywhere; }
  .profile-history-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .profile-history-footer nav { flex-wrap: wrap; gap: 8px; }
  .profile-history-footer button { width: 44px; height: 44px; }
  /* Таблица партнёрки (6 колонок, 600px+) прокручивается внутри своей карточки. */
  .profile-affiliate-table { overflow-x: auto; }

  /* ===== Мои каналы (/my/channels) ===== */
  .profile-content-my-channels,
  .my-channels-list { width: 100%; }
  .my-channel-card { width: 100%; max-width: 100%; height: auto; min-height: 0; }
  /* Шапка карточки: аватар | название+статус | стрелка, ниже кнопка действия на всю ширину. */
  .my-channel-summary {
    width: 100%;
    height: auto;
    min-height: 84px;
    padding: 12px;
    grid-template-columns: 52px minmax(0, 1fr) 44px;
    grid-template-areas: "avatar info chevron" "actions actions actions";
    column-gap: 12px;
    row-gap: 10px;
  }
  .my-channel-avatar { grid-area: avatar; width: 52px; height: 52px; }
  .my-channel-info { grid-area: info; width: auto; min-width: 0; height: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
  .my-channel-text { width: auto; max-width: 100%; min-width: 0; height: auto; }
  .my-channel-text strong { white-space: normal; text-align: left; overflow-wrap: anywhere; }
  .my-channel-status { flex: 0 0 auto; width: auto; min-width: 120px; height: 36px; padding: 0 12px; }
  .my-channel-actions { grid-area: actions; width: 100%; height: auto; }
  .my-channel-action,
  .my-channel-action.publish,
  .my-channel-action.pause { width: 100%; height: 44px; }
  .my-channel-chevron { grid-area: chevron; width: 44px; height: 44px; }
  /* Раскрытие: прежний max-height 84px/1800px не подходит (контент выше), поэтому
     закрытая карточка просто скрывает настройки, открытая растёт по содержимому.
     Анимация высоты на мобильном отключена. */
  .my-channel-card:not(.open) { max-height: none; border-radius: var(--radius-2xl); }
  .my-channel-card:not(.open) .my-channel-settings { display: none; }
  .my-channel-card.open { max-height: none !important; border-radius: var(--radius-2xl); }  /* !important: прежнее правило 1800px !important в 08 */
  .my-channel-settings,
  .my-channel-settings-body,
  .my-channel-divider { width: 100%; min-width: 0; }
  .my-channel-card.open .my-channel-settings-body { padding: 16px !important; }  /* !important: в 08 padding 24px !important */
  .my-channel-card.open .settings-line { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; }
  .my-channel-card.open .settings-delete-line { width: calc(100% + 32px) !important; margin: 20px -16px 0 !important; }  /* !important: в 08 то же правило с !important */
  /* Поля настроек: все сетки в одну колонку. */
  .settings-row.top,
  .settings-row.description,
  .settings-commerce,
  .settings-bottom-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .my-channel-card .settings-bottom-row { grid-template-columns: minmax(0, 1fr) !important; column-gap: 16px !important; row-gap: 16px; }  /* !important: в 08 колонки 520px max-content с !important */
  .my-channel-card .settings-flags { width: 100% !important; min-width: 0 !important; }  /* !important: в 08 width/min-width 520px с !important */
  .settings-row.description .settings-field.wide,
  .settings-row.description .settings-field.cover { width: 100%; }
  .settings-ad-availability,
  .settings-flags,
  .settings-normal,
  .settings-hot { width: 100%; min-width: 0; }
  .settings-flags { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .settings-flags label.settings-check { width: 100%; max-width: 100%; min-height: 30px; align-items: center; }
  .my-channel-card .settings-flags label.settings-check.settings-auto-calc { height: auto; min-height: 20px; }  /* длинная подпись переносится на 2-3 строки */
  .settings-auto-label { white-space: normal; min-width: 0; flex: 1 1 0; }
  .settings-caution-actions { width: 100%; flex-wrap: wrap; }
  .settings-caution-actions button { width: 100%; }
  .settings-channel-actions,
  .my-channel-card .settings-channel-actions { width: 100% !important; grid-template-columns: minmax(0, 1fr); }  /* !important: в 08 width: max-content !important */
  .settings-channel-actions button,
  .my-channel-card .settings-channel-actions button { width: 100%; white-space: normal; margin-left: 0; }
  .my-channel-settings-footer { flex-wrap: wrap; }
  /* Условия размещения: типы и цены помещаются в 311px. */
  .my-condition { grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr); }
  .hot-condition-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hot-condition-row > .hot-row-button { grid-column: 1 / -1; width: 100%; }
  /* Дни недели и временные слоты. */
  .ad-week-days { flex-wrap: wrap; }
  .ad-week-day { width: auto; flex: 1 1 0; min-width: 36px; height: 44px; }
  .ad-time-slot-row { grid-template-columns: 44px minmax(0, 1fr) 44px 44px; gap: 6px; }
  .ad-time-slot-row > *,
  .ad-time-slot-picker,
  .ad-time-slot-toggle { width: 100%; min-width: 0; }

  /* ===== Заявки (/my/requests) и Моя реклама (/my/ads): карточки безопасных сделок ===== */
  .safe-deal-order-card { max-width: 100%; }
  .buyer-campaign-card.safe-deal-order-card .buyer-campaign-summary { grid-template-columns: 52px minmax(0, 1fr) 44px; }
  .safe-deal-order-card .buyer-campaign-info { height: auto; min-height: 52px; margin-left: 0; align-self: center; }
  .safe-deal-order-card .buyer-campaign-text { height: auto; flex-wrap: wrap; gap: 8px; }  /* сумма и статус переносятся */
  .safe-deal-order-card .safe-deal-order-final-status-chip { margin-left: 0; }
  .safe-deal-order-card .buyer-campaign-actions > .safe-deal-order-id-copy { transform: none; }
  .safe-deal-order-body { padding: 16px; }
  .safe-deal-order-body > .safe-deal-order-content-divider { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; }
  .safe-deal-order-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }  /* было 1fr 450px */
  .safe-deal-order-timeline { grid-template-columns: minmax(0, 1fr); }
  .safe-deal-order-stage .safe-deal-order-stage-content > p,
  .safe-deal-order-stage.is-current .safe-deal-order-stage-content > p,
  .safe-deal-order-stage.is-placement-completed .safe-deal-order-stage-content > p { white-space: normal; }
  .safe-deal-order-stage-row { flex-wrap: wrap; width: auto; }
  .safe-deal-order-preview-anchor { width: 100%; min-height: 0; align-items: stretch; }
  .safe-deal-order-preview-anchor > .buyer-creative-post-preview,
  .safe-deal-order-preview-counterparty { width: 100%; max-width: 100%; }
  .safe-deal-order-preview-status-row { width: 100%; max-width: 100%; height: auto; flex-wrap: wrap; }
  .safe-deal-order-placement-info { width: 100%; flex-wrap: wrap; }
  .safe-deal-order-counterparty-row-primary,
  .safe-deal-order-counterparty-row-stats { flex-wrap: wrap; }
  .safe-deal-order-card.open { max-height: none !important; }  /* !important: в 12 max-height 1800px !important */

  /* ===== Мои кампании (/my/campaigns) ===== */
  .profile-content-buyer-campaigns,
  .buyer-campaigns-list { width: 100%; }
  .buyer-campaign-card.expandable-card-primitive { width: 100%; max-width: 100%; height: auto; min-height: 0; }
  .buyer-campaign-card.expandable-card-primitive:not(.open) { max-height: none; border-radius: var(--radius-2xl); }
  .buyer-campaign-card.expandable-card-primitive:not(.open) .expandable-card-settings { display: none; }
  .buyer-campaign-card.expandable-card-primitive.open { border-radius: var(--radius-2xl); }
  .buyer-campaign-card.expandable-card-primitive .expandable-card-summary { height: auto; min-height: 84px; padding: 12px; grid-template-columns: 52px minmax(0, 1fr) 44px; gap: 10px; }
  .buyer-campaign-card.expandable-card-primitive .expandable-card-avatar { width: 52px; height: 52px; }
  .buyer-campaign-card.expandable-card-primitive .expandable-card-info { min-height: 0; }
  .buyer-campaign-card.expandable-card-primitive .expandable-card-text { max-width: 100%; height: auto; min-height: 24px; }
  .buyer-campaign-card.expandable-card-primitive .expandable-card-text strong { white-space: normal; overflow-wrap: anywhere; }
  .buyer-campaign-card.expandable-card-primitive .expandable-card-actions { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; height: auto; justify-content: flex-start; }
  .buyer-campaign-card.expandable-card-primitive .expandable-card-actions:empty { display: none; }
  .buyer-campaign-card.expandable-card-primitive .expandable-card-chevron { grid-column: 3; grid-row: 1; width: 44px; height: 44px; margin: 0; align-self: center; }
  .buyer-campaign-card.expandable-card-primitive .buyer-campaign-creative-body { padding: 16px; }
  /* Зоны «добавить/импортировать креатив» и карусель: одна колонка, карусель листается внутри себя. */
  .buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-creative-workspace { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-creative-zones { grid-column: 1; flex-direction: row; flex-wrap: wrap; }
  .buyer-campaign-card.buyer-campaign-expandable .buyer-company-carousel { grid-column: 1; overflow-x: auto; }
  .buyer-campaign-card .buyer-creative-action-zone { width: 100%; max-width: none; min-height: 96px; height: 96px; }
  .buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-editor-divider,
  .buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-actions-divider { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; }
  .buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-expanded-actions { justify-content: flex-start; }

  /* ===== Пользователи (/my/users) и Администраторы (/my/administrators) ===== */
  .profile-users-layout { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .profile-users-list,
  .profile-users-sidebar { width: 100%; min-width: 0; }
  .profile-users-sidebar { order: -1; }  /* поиск и статистика над списком */
  .profile-user-card { width: 100%; max-height: none; border-radius: var(--radius-2xl); }
  .profile-user-card.open { max-height: none; }
  .profile-user-card.open .profile-user-content { height: auto; }
  /* Шапка: аватар + имя + стрелка в первой строке, чипы (username, id) во второй. */
  .profile-user-head { height: auto; min-height: 84px; flex-wrap: wrap; row-gap: 8px; padding: 12px 0 12px 12px; }
  .profile-user-name { flex: 1 1 calc(100% - 150px); max-width: none; }
  .profile-user-toggle.my-channel-chevron { order: 1; flex: 0 0 52px; width: 52px; height: 52px; margin-top: 0; margin-bottom: 0; }
  .profile-users-list .ui-chip,
  .profile-user-go,
  .profile-user-name + .ui-chip { order: 2; margin-left: 0; margin-right: 5px; }
  .profile-user-settings,
  .profile-user-balance { margin-left: 16px; margin-right: 16px; }
  .profile-user-balance-current { flex-direction: column; align-items: stretch; gap: 8px; }
  .profile-user-balance-current span { height: auto; min-height: 34px; white-space: nowrap; }
  .profile-user-balance-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* было 6 колонок */
  .profile-user-referral { grid-template-columns: minmax(0, 1fr) auto; }
  .profile-user-balance-actions button,
  .profile-user-referral button { min-height: 44px; }

  /* ===== Модерация (/my/moderation) ===== */
  .profile-content-moderation { width: 100%; min-height: 0; }
  .moderation-layout { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .moderation-sidebar { order: -1; width: 100%; }
  .moderation-list { min-width: 0; }
  .moderation-side-card,
  .moderation-search,
  .moderation-stat { width: 100%; box-sizing: border-box; }
  /* Карточка заявки: превью и детали друг под другом (было 338px + 286px, высота 645px). */
  .moderation-card { width: 100%; height: auto; padding: 16px; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 16px; }
  .moderation-preview { width: 100%; max-width: 338px; height: auto; max-height: 489px; margin: 0 auto; }
  .moderation-details { width: 100%; min-width: 0; }
  .moderation-field textarea { width: 100%; box-sizing: border-box; }
  .moderation-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .moderation-actions .moderation-reason-selector { grid-column: 1 / -1; grid-row: auto; width: 100%; }
  .moderation-reason-selector { width: 100%; }

  /* ===== Настройки каталога (/my/settings) ===== */
  .profile-content-catalog-settings { width: 100%; }
  .catalog-settings-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }  /* было 515px 515px */
  .catalog-settings-column { min-width: 0; }
  .catalog-settings-block { width: 100%; min-width: 0; box-sizing: border-box; padding: 16px; }
  .catalog-settings-block h2 { font-size: 20px; line-height: 26px; margin-bottom: 16px; }
  .catalog-settings-row { width: 100%; min-width: 0; }
  .catalog-settings-chip,
  .catalog-settings-edit-input { flex: 1 1 auto; max-width: none; }
  .catalog-settings-edit,
  .catalog-settings-delete { margin-left: 8px; width: 36px; height: 36px; }
}

/* ===== Совсем узкие телефоны ===== */
@media (max-width: 480px) {
  .profile-page { width: calc(100% - 24px); }
  .profile-page-title { font-size: 22px; line-height: 28px; }
  .profile-balance-half b { font-size: 30px; line-height: 38px; }
  .profile-history-row > time { font-size: 14px; }
  .my-channel-card.open .my-channel-settings-body { padding: 12px !important; }  /* !important: перекрывает 08 */
  .safe-deal-order-body { padding: 12px; }
}

/* ======================================================================== */
/* ===== Ноутбуки 901–1460px: кабинет и каталог без горизонтального скролла ===== */
/* Десктопная вёрстка рассчитана на 1424px+ (колонка контента 1046px). Здесь колонка контента */
/* сжимается (меню слева 314px остаётся), карточки/сетки/формы внутри подстраиваются. */
/* На экранах шире 1460px и на мобильных (<=900px) эти правила не действуют. */
/* !important: только там, где прежние правила в 08/10 ставят свой !important (отмечено). */
/* ======================================================================== */
@media (min-width: 901px) and (max-width: 1460px) {

  /* ===== Общая оболочка кабинета ===== */
  /* Колонка сетки уже minmax(0,1046px); фиксированная ширина 1046px у блоков — причина скролла. */
  .profile-page > * { min-width: 0; }
  .profile-content,
  .profile-main-stack,
  .profile-main-stack .profile-content-main,
  .profile-content-balance,
  .profile-balance-page,
  .profile-balance-hero,
  .profile-balance-history,
  .profile-affiliate-card,
  .profile-content-my-channels,
  .my-channels-list,
  .my-channel-card,
  .profile-content-advix-ads,
  .profile-content-buyer-campaigns,
  .buyer-campaigns-list,
  .buyer-campaign-card.buyer-campaign-expandable,
  .buyer-campaign-card.expandable-card-primitive,
  .profile-content-users,
  .profile-content-administrators,
  .profile-users-layout,
  .profile-content-moderation,
  .moderation-layout,
  .advix-ads-layout,
  .profile-content-cart,
  .cart-layout,
  .profile-content-catalog-settings { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }

  /* ===== Профиль (/my/profile) ===== */
  .profile-id-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* было 479px 479px */
  .profile-id-field { width: auto; min-width: 0; }
  .profile-actions { flex-wrap: wrap; }

  /* ===== Баланс (/my/balance) ===== */
  .profile-balance-page { grid-template-columns: minmax(0, 1fr); }
  .profile-balance-hero { height: auto; min-height: 120px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-balance-half { min-width: 0; padding: 0 12px; box-sizing: border-box; }
  .profile-balance-half b { font-size: min(48px, 3.75vw); line-height: 1.2; }  /* суммы уменьшаются вместе с шириной */
  .profile-balance-half img { width: min(38px, 3vw); height: auto; }
  .profile-history-row { grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: 24px; }  /* было 144px minmax(372px,1fr) 180px 64px */
  .profile-history-row b { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
  .profile-history-footer { flex-wrap: wrap; gap: 12px; }
  .profile-history-footer nav { flex-wrap: wrap; max-width: 100%; }
  /* Таблица партнёрки прокручивается внутри своей карточки. */
  .profile-affiliate-table { overflow-x: auto; }
  .profile-affiliate-header,
  .profile-affiliate-row { min-width: 760px; grid-template-columns: minmax(200px, 1.6fr) 70px 90px 90px minmax(120px, 1fr) 52px; column-gap: 16px; }
  .profile-affiliate-copy,
  .profile-affiliate-add { width: 100%; max-width: 314px; }

  /* ===== Избранное (/my/favorites), каталог (/), горячие (/hot) ===== */
  /* Карточки канала фиксированной ширины 338px: число колонок подбирается по ширине, ряд по центру. */
  .page-shell:not(.channel-page) > * { min-width: 0; }
  /* Отступ фильтры↔карточки 32px вместо 40px: на 1440px колонке не хватало 8px до трёх карточек (было две). */
  .page-shell:not(.channel-page) { column-gap: 32px; }
  .channel-grid,
  .profile-favorites-grid { width: 100%; grid-template-columns: repeat(auto-fill, 338px); justify-content: center; }
  .catalog-state-panel { width: 100%; box-sizing: border-box; }

  /* ===== Мои каналы (/my/channels): карточка и настройки ===== */
  .my-channel-summary,
  .my-channel-settings,
  .my-channel-settings-body { width: 100%; min-width: 0; box-sizing: border-box; }
  .my-channel-text { min-width: 0; }
  .settings-row.top { grid-template-columns: repeat(3, minmax(0, 1fr)); }  /* было 3 x 319.33px */
  .settings-row.description { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }  /* было 658px 320px */
  .settings-row.description .settings-field.wide,
  .settings-row.description .settings-field.cover { width: 100%; min-width: 0; }
  .settings-field { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .category-selector,
  .settings-field .channel-settings-input { width: 100%; max-width: 100%; box-sizing: border-box; }
  .category-selector .chips,
  .category-selector .selected-categories { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  /* Обычные условия и горячие предложения друг под другом (рядом не помещаются). */
  .settings-commerce { grid-template-columns: minmax(0, 1fr); gap: 24px; }  /* было 376px 1fr */
  .settings-normal { min-width: 0; max-width: 376px; }
  .settings-hot,
  .hot-conditions { width: 100%; min-width: 0; }
  .my-condition { grid-template-columns: 80px repeat(2, minmax(0, 1fr)); }
  .hot-condition-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) repeat(2, minmax(0, 1fr)) 52px; }
  /* Нижний ряд: доступность рекламы | флаги, кнопки канала на всю ширину ниже. */
  .my-channel-card .settings-bottom-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; column-gap: 32px !important; row-gap: 20px; }  /* !important: в 08 и 10 колонки 412px 525px с !important */
  .settings-ad-availability { width: 100%; min-width: 0; }
  .settings-flags { grid-template-columns: minmax(0, 1fr); }
  .my-channel-card .settings-flags { width: 100% !important; min-width: 0 !important; }  /* !important: в 08 и 10 width/min-width 520/525px с !important */
  .settings-flags label.settings-check { max-width: 100%; min-width: 0; }
  .my-channel-card .settings-flags > label.settings-check { height: auto; min-height: 20px; }
  .settings-auto-label { white-space: normal; min-width: 0; flex: 1 1 0; }
  .settings-caution-actions { flex-wrap: wrap; }
  .settings-caution-share,
  .settings-caution-transfer { width: auto; flex: 1 1 140px; }
  .my-channel-card .settings-channel-actions { grid-column: 1 / -1; }
  .ad-week-days { flex-wrap: wrap; }

  /* ===== Мои кампании (/my/campaigns) ===== */
  .buyer-campaign-card.expandable-card-primitive .expandable-card-summary { grid-template-columns: 60px minmax(0, 1fr) auto 67px; }  /* было 60px 766px 93px 67px */
  .buyer-campaign-card.expandable-card-primitive .expandable-card-actions { width: auto; min-width: 93px; }

  /* ===== Пользователи / Администраторы / Модерация / Корзина: основная колонка + боковая 314px ===== */
  .profile-users-layout,
  .moderation-layout,
  .advix-ads-layout,
  .cart-layout { grid-template-columns: minmax(0, 1fr) 314px; gap: 24px; }  /* было 692px 314px, gap 40px */
  .profile-users-list,
  .profile-user-card,
  .moderation-list,
  .advix-ads-channel-block,
  .cart-list { width: 100%; min-width: 0; box-sizing: border-box; }
  .profile-users-sidebar,
  .moderation-sidebar,
  .profile-user-head,
  .profile-user-settings,
  .profile-user-balance { min-width: 0; }
  .profile-user-balance-current { flex-wrap: wrap; }
  .profile-user-balance-actions { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }  /* было 6 колонок 112/82/82/112/96/96 */
  .profile-user-referral { grid-template-columns: minmax(0, 220px) minmax(96px, 120px); }

  /* ===== Настройки каталога (/my/settings) ===== */
  .catalog-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }  /* было 515px 515px */
  .catalog-settings-column { min-width: 0; }
  .catalog-settings-block,
  .catalog-settings-row { width: 100%; min-width: 0; box-sizing: border-box; }
}

/* Карточка модерации (превью 338px + детали 286px = 624px) и блок канала в рекламе: двумя колонками */
/* только когда помещаются (от 1380px), иначе друг под другом, как на мобильном. */
@media (min-width: 901px) and (max-width: 1379px) {
  .moderation-card,
  .advix-ads-channel-block { width: 100%; height: auto; box-sizing: border-box; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 16px; }
  .moderation-preview,
  .advix-ads-card-preview { width: 100%; max-width: 338px; margin: 0 auto; }
  .moderation-details { width: 100%; min-width: 0; }
  .moderation-field textarea { width: 100%; box-sizing: border-box; }
}

/* Узкие ноутбуки и планшеты 901–1180px: боковые колонки уходят наверх, формы в 1-2 колонки. */
@media (min-width: 901px) and (max-width: 1180px) {
  /* Общая оболочка: фильтры в заголовке (кампании, заявки) не налезают на текст. */
  .profile-page-title-buyer-campaigns,
  .profile-page-title-safe-deal-orders { justify-content: flex-start; }
  /* Мои каналы: настройки в одну колонку. */
  .my-channel-card .settings-bottom-row { grid-template-columns: minmax(0, 1fr) !important; }  /* !important: см. выше */
  /* В одну колонку настройки выше 1800px (на 1024px ~1830px) — низ карточки обрезался. Запас по высоте,
     анимация раскрытия сохраняется. !important: в 08 max-height 1800px !important. */
  .my-channel-card.open { max-height: 3200px !important; }
  .settings-row.top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-row.description { grid-template-columns: minmax(0, 1fr); }
  /* Пользователи / Администраторы / Модерация: поиск и статистика над списком; Корзина: итог под списком. */
  .profile-users-layout,
  .moderation-layout,
  .advix-ads-layout,
  .cart-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .profile-users-sidebar,
  .moderation-sidebar { order: -1; width: 100%; }
  .profile-users-sidebar > *,
  .moderation-sidebar > *,
  .moderation-side-card,
  .moderation-search,
  .moderation-stat { width: 100%; box-sizing: border-box; }
  /* Настройки каталога: блоки друг под другом. */
  .catalog-settings-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Светлая тема: доводка по аудиту контраста (ноябрь 2026, Docs/DESIGN_SYSTEM.md §3) =====
   Только body.light-theme — тёмная тема не меняется (проверено сравнением вычисленных стилей).
   1) Карточки, поля и подписи, у которых цвет был записан тёмным примитивом (--c-ink-*, --c-white),
      переведены на семантику темы: --surface / --surface-2 / --line / --text / --text-75 / --text-40.
   2) Цветной текст — на --text-blue/-orange/-green/-red (в светлой теме темнее бренда, контраст ≥ 4.5).
   3) Белый текст на оранжевых кнопках не проходит 4.5 — на светлой теме у них тёмный текст (7.6:1),
      зелёные/красные кнопки — на тёмных оттенках --c-green-700 / --c-red-600.
   Намеренно тёмными остаются «чёрные акценты» #000003: баланс (кабинет и корзина), TGStat,
   «Статистика» модерации/пользователей, превью поста Telegram — белый текст на них проходит AA. */

/* --- Фон страницы: тот же узор, что в тёмной теме (.site::before из 01), на светлой подложке. Картинка --page-bg-image — только для превью поста. --- */
html:has(body.light-theme) { background: var(--c-paper-50); }
body.light-theme .buyer-campaign-card .buyer-creative-post-preview { background-image: var(--page-bg-image); }
/* Элементы, лежащие прямо на фоне-картинке, получают светлую подложку. */
body.light-theme .add-channel:not(:hover):not(:active) { background: var(--surface); }
body.light-theme .add-channel:not(:hover):not(:active) .add-label { color: var(--text-blue); }
body.light-theme .channel-copy:not(.copied) { background: color-mix(in srgb, var(--c-blue-500) 12%, var(--surface)); }
body.light-theme .channel-link-row > span { padding: 4px 10px; background: var(--surface); border-radius: var(--radius-xs); }
body.light-theme .profile-logout { color: var(--text-red); background: var(--surface); border-color: var(--text-red); }

/* --- Шапка и общие элементы --- */
body.light-theme .header::before { background: linear-gradient(to bottom, rgba(9,11,19,.16), rgba(9,11,19,0)); }
body.light-theme .login.is-profile,
body.light-theme .login.is-profile:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
body.light-theme .login.is-profile .profile-name { color: var(--text); }
body.light-theme.hot .nav-item[data-route="/hot"],
html.route-hot body.light-theme .nav-item[data-route="/hot"] { color: var(--text); }
body.light-theme .card-tag { color: var(--text-blue); background: rgba(255,255,255,.92); }
body.light-theme .card-tag.icon.ad { background: rgba(255,255,255,.92); }
/* !important: в 03 у .metric-score strong color !important. */
body.light-theme .metric-score strong { color: var(--text-orange) !important; }
body.light-theme .currency-word-gram,
body.light-theme .payment-extra-filter .currency-word-gram,
body.light-theme .settings-auto-label .currency-word-gram,
body.light-theme .settings-flags .payment-gram b,
body.light-theme .advix-ads-currency[data-advix-ads-currency-state="GRAM"] b { color: var(--c-sky-700); }
body.light-theme .clear-filters { color: var(--text-red); }
body.light-theme .chip.selected { color: var(--text-blue); }

/* --- «Горящие» --- */
body.light-theme.hot .hot-deal span { color: var(--text); }
body.light-theme.hot .hot-deal b { color: var(--c-white); background: var(--c-red-600); }
body.light-theme.hot .card-buy .hot-buy-label { color: var(--c-paper-ink); }
body.light-theme .card-countdown { color: var(--text-orange); }

/* --- Страница канала --- */
body.light-theme .detail-body h1,
body.light-theme .detail-body h2,
body.light-theme .detail-tgstat-head h3,
body.light-theme .channel-reviews-header h2,
body.light-theme .channel-review-item-head strong,
body.light-theme .channel-dates b { color: var(--text); }
body.light-theme .detail-cover { box-shadow: inset 0 0 0 2px var(--surface); }
body.light-theme .detail-avatar,
body.light-theme.channel-view .detail-avatar { border-color: var(--surface); }
body.light-theme.channel-view .detail-avatar .detail-pro { color: var(--c-paper-ink); box-shadow: 0 0 0 3px var(--surface); }
body.light-theme:not(.channel-view) .detail-stats div { background: var(--surface); }
body.light-theme.channel-view .detail-stats > div { border-color: var(--line); }
body.light-theme.channel-view .detail-stats > div:nth-child(6) strong { color: var(--text-orange); }
body.light-theme .detail-separator,
body.light-theme .channel-reviews-divider { background: var(--line); }
body.light-theme .channel-detail-card::after,
body.light-theme .channel-price-card { box-shadow: inset 0 0 0 1px var(--line); }
body.light-theme .channel-review-item { border-bottom-color: var(--line); }
body.light-theme .channel-reviews-score-main > strong,
body.light-theme .channel-reviews-score-main > .channel-reviews-scale { color: var(--text-orange); }
body.light-theme .channel-reviews-period,
body.light-theme .channel-review-author-meta > small,
body.light-theme .channel-review-empty-text { color: var(--c-grey-600); }
body.light-theme .channel-copy .copy-default b { color: var(--text-blue); }
body.light-theme .channel-link-row > span b { color: var(--text-green); }
body.light-theme .channel-hot-offer-card .static-price { color: var(--text); }
body.light-theme .channel-hot-meta span,
body.light-theme .channel-hot-meta b { color: var(--text); background: var(--surface-2); }
/* Календарь и «Цена в» — обычные светлые карточки (раньше оставались чёрными). */
body.light-theme .channel-detail-currency { color: var(--text-75); background: var(--surface); }
body.light-theme .channel-calendar-card { color: var(--text); background: var(--surface); }
body.light-theme .channel-calendar-head b,
body.light-theme .channel-calendar-week span,
body.light-theme .channel-calendar-day.active { color: var(--text); }
body.light-theme .channel-calendar-head button { color: var(--text-40); }
body.light-theme .channel-calendar-head button:hover { color: var(--text-75); }
body.light-theme .channel-calendar-line { background: var(--line); }
body.light-theme .channel-calendar-day,
body.light-theme .channel-calendar-day.inactive,
body.light-theme .channel-calendar-day.muted { color: rgba(9,11,19,.3); }
body.light-theme .channel-calendar-day.today { color: var(--c-white); }
body.light-theme .channel-calendar-day.today::before { background: var(--blue); }
body.light-theme .channel-calendar-slots-title { color: var(--text-75); }
body.light-theme .channel-calendar-slots-title b,
body.light-theme .channel-calendar-slot-row span { color: var(--text-blue); }
body.light-theme .channel-calendar-slot-row.disabled span,
body.light-theme .channel-calendar-slot-row.disabled button { color: rgba(9,11,19,.35); background: var(--surface-2); }

/* --- Кабинет: меню и карточки --- */
body.light-theme .profile-buy-menu .profile-menu-title,
body.light-theme .profile-main-menu .profile-menu-title { color: var(--text-blue); }
body.light-theme .profile-sell-menu .profile-menu-title { color: var(--text-green); }
body.light-theme .profile-manage-menu .profile-menu-title { color: var(--text-orange); }
body.light-theme .my-channel-card,
body.light-theme .my-channel-summary,
body.light-theme .buyer-campaign-card.buyer-campaign-expandable,
body.light-theme .buyer-campaign-card .buyer-campaign-summary,
body.light-theme .profile-user-card,
body.light-theme .moderation-card,
body.light-theme .moderation-side-card,
body.light-theme .moderation-search,
body.light-theme .catalog-settings-block,
body.light-theme .profile-affiliate-card,
body.light-theme .profile-affiliate-modal-card,
body.light-theme .profile-balance-history,
body.light-theme .advix-ads-channel-block,
body.light-theme .cart-list,
body.light-theme .cart-summary-card { background: var(--surface); }
body.light-theme .my-channel-card::before,
body.light-theme .buyer-campaign-card.buyer-campaign-expandable::before,
body.light-theme .moderation-card,
body.light-theme .moderation-side-card,
body.light-theme .moderation-search,
body.light-theme .catalog-settings-block,
body.light-theme .profile-affiliate-card,
body.light-theme .profile-balance-history,
body.light-theme .advix-ads-channel-block { box-shadow: inset 0 0 0 1px var(--line); }
body.light-theme .cart-list { border-color: var(--line); }
body.light-theme .my-channel-divider,
body.light-theme .settings-line,
body.light-theme .buyer-campaign-card .buyer-campaign-divider,
body.light-theme .my-channel-card.expandable-card-primitive .expandable-card-divider,
body.light-theme .buyer-campaign-card.expandable-card-primitive .expandable-card-divider,
body.light-theme .safe-deal-order-content-divider,
body.light-theme .profile-affiliate-divider,
body.light-theme .advix-ads-line,
body.light-theme .cart-summary-line,
body.light-theme .hot-date-calendar-line { background: var(--line); }
body.light-theme .profile-affiliate-row > b i,
body.light-theme .advix-ads-bid i,
body.light-theme .cart-summary-rows b > i,
body.light-theme .cart-summary-total b > i { color: var(--line); }
body.light-theme .my-channel-text strong,
body.light-theme .expandable-card-primitive .expandable-card-text strong,
body.light-theme .profile-user-name,
body.light-theme .profile-user-settings b,
body.light-theme .profile-user-balance-current b,
body.light-theme .profile-balance-history h2,
body.light-theme .profile-affiliate-head,
body.light-theme .profile-affiliate-row > b,
body.light-theme .profile-affiliate-modal-card h2,
body.light-theme .administrator-sidebar h3,
body.light-theme .moderation-top strong,
body.light-theme .moderation-actions h3,
body.light-theme .moderation-side-card h3,
body.light-theme .moderation-search input,
body.light-theme .moderation-tgstat,
body.light-theme .catalog-settings-block h2,
body.light-theme .channel-step b,
body.light-theme .channel-detail-message h1,
body.light-theme .channel-share-access-card h2,
body.light-theme .advix-ads-controls,
body.light-theme .advix-ads-bid,
body.light-theme .advix-ads-stats b,
body.light-theme .buyer-creative-inline-button-row input,
body.light-theme .buyer-creative-inline-editor .channel-settings-input,
body.light-theme .profile-user-balance-actions input,
body.light-theme .profile-user-referral input,
body.light-theme .cart-empty,
body.light-theme .cart-side,
body.light-theme .cart-info h3,
body.light-theme .cart-price,
body.light-theme .cart-summary-card h2,
body.light-theme .cart-summary-total { color: var(--text); }
body.light-theme .profile-user-settings,
body.light-theme .profile-user-balance-current,
body.light-theme .profile-affiliate-header,
body.light-theme .moderation-status-count,
body.light-theme .settings-flags label.settings-check,
body.light-theme .settings-ad-availability h3,
body.light-theme .settings-flags h3,
body.light-theme .settings-flags .settings-subtitle,
body.light-theme .ad-time-slot-column strong,
body.light-theme .ad-time-slot-values button,
body.light-theme .advix-ads-label,
body.light-theme .advix-ads-total-head,
body.light-theme .advix-ads-stats span,
body.light-theme .cart-list-head,
body.light-theme .cart-info p,
body.light-theme .cart-selected-details ul,
body.light-theme .cart-selected-details li b,
body.light-theme .cart-summary-rows div,
body.light-theme .cart-summary-rows b,
body.light-theme .cart-mass-currency { color: var(--text-75); }
body.light-theme .catalog-settings-order,
body.light-theme .moderation-plain-selector .empty-selection,
body.light-theme .advix-ads-field-row small,
body.light-theme .advix-ads-details,
body.light-theme .advix-ads-input input:disabled,
body.light-theme .cart-creative,
body.light-theme .cart-unavailable h3 { color: var(--text-40); }
body.light-theme .buyer-creative-inline-button-row input::placeholder { color: var(--text-40); }
body.light-theme .moderation-tgstat { box-shadow: inset 0 0 0 1px var(--line); }
body.light-theme .moderation-plain-selector .chips { background: var(--black); box-shadow: inset 0 0 0 1px var(--line); }
body.light-theme .moderation-field textarea { color: var(--text); background: var(--surface-2); }
body.light-theme .channel-input,
body.light-theme .channel-input:focus { color: var(--text); background: var(--surface-2); }
body.light-theme .profile-user-balance-current span,
body.light-theme .profile-user-balance-actions label,
body.light-theme .profile-user-referral label { color: var(--text-75); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
body.light-theme .catalog-settings-chip span,
body.light-theme .catalog-settings-add { color: var(--text-blue); }
body.light-theme .catalog-drag-handle {
  background:
    linear-gradient(var(--text-40) 0 0) 0 0 / 18px 1.5px no-repeat,
    linear-gradient(var(--text-40) 0 0) 0 7.5px / 18px 1.5px no-repeat;
}

/* --- Цветные кнопки и статусы --- */
body.light-theme .my-channel-action.pause,
body.light-theme .my-channel-action.pause.is-pending:disabled,
body.light-theme .step-number { color: var(--c-paper-ink); }
body.light-theme .moderation-approve,
body.light-theme .administrator-assign-submit,
body.light-theme .hot-row-button,
body.light-theme .profile-user-balance-actions button:not([data-user-balance-action="debit"]) { background: var(--c-green-700); }
body.light-theme .moderation-reject,
body.light-theme .hot-row-button.stop,
body.light-theme .profile-user-balance-actions button[data-user-balance-action="debit"] { background: var(--c-red-600); }
body.light-theme .moderation-reject:disabled,
body.light-theme .my-channel-action:disabled,
body.light-theme .cart-pay:disabled { color: var(--text-40); background: var(--surface-2); }
body.light-theme .hot-row-button:disabled { background: var(--surface-2); }
body.light-theme .safe-deal-order-counterparty-chip.safe-deal-order-counterparty-approval { background: var(--c-teal-700); }
/* Статус канала: цвет задаёт переменная --status-color из разметки — в светлой теме затемняем её. */
body.light-theme .my-channel-status { color: color-mix(in srgb, var(--status-color) 62%, #000); }
/* !important: в 06 у черновика color/background !important. */
body.light-theme .my-channel-status[data-status="draft"] { color: var(--text-75) !important; background: var(--surface-2) !important; }
body.light-theme .my-channel-hot-status,
body.light-theme .settings-hot h3,
body.light-theme .safe-deal-order-placement-countdown,
body.light-theme .safe-deal-order-placement-countdown-prefix,
body.light-theme .cart-hot-timer,
body.light-theme .cart-warning,
body.light-theme .channel-hot-offer-card .card-countdown,
body.light-theme .safe-deal-channel-review-value { color: var(--text-orange); }
/* !important: в 10 у .cart-placement-message color !important. */
body.light-theme .cart-placement-message { color: var(--text-orange) !important; }
body.light-theme .moderation-actions h3[data-status="approved"],
body.light-theme .safe-deal-order-placement-confirmed-time,
body.light-theme .safe-deal-order-actual-time:not(.is-failed),
body.light-theme .safe-deal-order-seller-stage-confirm-status,
body.light-theme .safe-deal-order-seller-stage-feedback,
body.light-theme .safe-deal-order-stage.is-completed .safe-deal-order-stage-marker,
body.light-theme .safe-deal-order-stage.is-placement-completed .safe-deal-order-stage-marker { color: var(--text-green); }
body.light-theme .moderation-actions h3[data-status="rejected"],
body.light-theme .safe-deal-order-actual-time.is-failed,
body.light-theme .safe-deal-order-seller-stage-confirm-status.is-error,
body.light-theme .safe-deal-order-stage.is-failed .safe-deal-order-stage-marker,
body.light-theme .safe-deal-participant-approval-button.is-down:not(.is-selected),
body.light-theme .my-channel-delete,
body.light-theme .ad-time-slot-delete,
body.light-theme .step-red,
body.light-theme .buyer-creative-inline-button-row [data-buyer-button-remove],
body.light-theme .buyer-creative-error,
body.light-theme .buyer-campaign-action-error,
body.light-theme .buyer-company-carousel .buyer-creative-toggle-error,
body.light-theme .buyer-creative-inline-editor-error { color: var(--text-red); }
body.light-theme .safe-deal-order-card .safe-deal-order-final-status-chip[data-safe-deal-order-final-status="active"],
body.light-theme .safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="awaiting-conditions"] { color: var(--text-green); }
body.light-theme .safe-deal-order-card .safe-deal-order-final-status-chip[data-safe-deal-order-final-status="completed"] { color: var(--text-blue); }
body.light-theme .safe-deal-order-card .safe-deal-order-final-status-chip[data-safe-deal-order-final-status="cancelled"],
body.light-theme .safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="cancellation-request"] { color: var(--text-red); }
body.light-theme .safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="awaiting-confirmation"],
body.light-theme .safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="awaiting-acceptance"],
body.light-theme .safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="awaiting-publication"] { color: var(--text-orange); }

/* --- Мои каналы: поля, слоты, горящее предложение --- */
body.light-theme .channel-settings-select,
body.light-theme .channel-settings-input,
body.light-theme .condition-type,
body.light-theme .condition-type-toggle,
body.light-theme .price-field,
body.light-theme .hot-picker-toggle,
body.light-theme .ad-time-slot-toggle { color: var(--text); background-color: var(--surface-2); }
body.light-theme .hot-condition-row > .channel-settings-input:not(.price-field),
body.light-theme .advix-ads-field-row .advix-ads-input.price-field { background-color: var(--surface-2); }
body.light-theme .condition-type-panel,
body.light-theme .hot-picker-panel { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
body.light-theme .cart-placement-picker .hot-date-picker .hot-picker-panel { background: var(--surface); }
body.light-theme .condition-type-panel button,
body.light-theme .hot-date-options button,
body.light-theme .hot-time-options button,
body.light-theme .hot-date-calendar-nav,
body.light-theme .hot-date-calendar-week span { color: var(--text-75); }
body.light-theme .price-field input,
body.light-theme .my-channel-card.settings-locked .my-condition .price-field:has(.settings-disabled) input,
body.light-theme .ad-time-slot-toggle span,
body.light-theme .hot-date-calendar,
body.light-theme .hot-date-calendar-head b,
body.light-theme .hot-date-calendar-nav:hover:not(:disabled),
body.light-theme .hot-date-calendar-day.is-available { color: var(--text); }
/* !important: в 09 у заблокированного выбора даты color !important. */
body.light-theme .hot-condition-row.locked .hot-picker.disabled .hot-picker-toggle,
body.light-theme .hot-condition-row.status-disabled .hot-picker.disabled .hot-picker-toggle { color: var(--text) !important; }
body.light-theme .condition-type-panel button:disabled,
body.light-theme .hot-date-options button:disabled,
body.light-theme .hot-time-options button:disabled,
body.light-theme .hot-date-calendar-nav:disabled,
body.light-theme .hot-date-calendar-day { color: rgba(9,11,19,.3); }
body.light-theme .hot-date-calendar-day.is-disabled,
body.light-theme .hot-date-calendar-day.is-muted { color: rgba(9,11,19,.2); }
/* !important: в 10 у выключенных значений слота color !important. */
body.light-theme .ad-time-slot-values button:disabled,
body.light-theme .ad-time-slot-values button.disabled { color: rgba(9,11,19,.3) !important; }
body.light-theme .ad-time-slot-number { color: var(--text-75); background: var(--surface-2); }
body.light-theme .ad-time-slot-add { color: var(--text); background: var(--surface-2); }
body.light-theme .ad-time-slot-action { border-color: var(--surface-2); }
body.light-theme .settings-channel-actions button { color: var(--text-75); background: var(--surface-2); }
body.light-theme .settings-caution-actions button { color: var(--text); background: var(--surface-2); }

/* --- Мои кампании / заявки / корзина --- */
body.light-theme .buyer-creative-action-zone,
body.light-theme .buyer-campaign-creative-zones .buyer-creative-action-zone,
body.light-theme .buyer-company-zones .buyer-creative-action-zone { background: var(--surface-2); border-color: var(--line); }
body.light-theme .buyer-company-carousel .buyer-creative-card { background: var(--surface); border-color: var(--line); }
body.light-theme .buyer-company-carousel .buyer-creative-summary-body { background: var(--surface); }
body.light-theme .buyer-company-carousel .buyer-creative-cover,
body.light-theme .buyer-creative-image-attach,
body.light-theme .buyer-creative-image-preview { background: var(--surface-2); }
body.light-theme .buyer-company-carousel .buyer-creative-enabled-toggle { background: var(--line); }
body.light-theme .safe-deal-order-counterparty-chip,
body.light-theme .safe-deal-order-counterparty-duration,
body.light-theme .safe-deal-order-amount-pill,
body.light-theme .safe-deal-channel-review-text textarea,
body.light-theme .cart-item { background: var(--surface-2); }
body.light-theme .safe-deal-order-counterparty-placements,
body.light-theme .safe-deal-order-counterparty-repeat,
body.light-theme .safe-deal-order-placement-info-item strong,
body.light-theme .safe-deal-order-header-amount { color: var(--text-blue); }
body.light-theme .safe-deal-order-stage-content > p,
body.light-theme .safe-deal-order-stage.is-placement-completed,
body.light-theme .safe-deal-order-stage.is-placement-completed .safe-deal-order-stage-content > p,
body.light-theme .safe-deal-order-evaluation-stage-label { color: var(--text); }
body.light-theme .safe-deal-order-stage.is-current .safe-deal-order-stage-content > p { color: var(--c-white); }
body.light-theme .safe-deal-order-action-message { color: var(--text); background: var(--surface-2); }
body.light-theme .cart-condition-fixed,
body.light-theme .cart-currency-static { color: var(--text); background: var(--surface); }

/* --- Баланс: история --- */
body.light-theme .profile-history-row b,
body.light-theme .profile-history-row time,
body.light-theme .profile-history-footer { color: var(--text-75); }
body.light-theme .profile-history-footer b,
body.light-theme .profile-history-footer button { color: var(--text); }
body.light-theme .profile-history-footer button:hover,
body.light-theme .profile-history-footer button.active { color: var(--text-blue); }
body.light-theme .profile-history-row > span.income { color: var(--text-green); }
body.light-theme .profile-history-row > span.outcome { color: var(--text-red); }
/* Кнопки страниц истории лежат прямо на фоне-картинке — даём им подложку. */
body.light-theme .profile-history-footer button:not(:hover):not(.active) { background: var(--surface); }
body.light-theme .profile-history-footer button:hover,
body.light-theme .profile-history-footer button.active { background: color-mix(in srgb, var(--c-blue-500) 12%, var(--surface)); }
/* !important: в 07/08 цвет чипов одиночного выбора задан с !important (синий 4.44:1 на подложке). */
body.light-theme .settings-single-selector .chip,
body.light-theme .moderation-plain-selector .chip { color: var(--text-blue) !important; }
body.light-theme .profile-history-footer > span { padding: 4px 10px; background: var(--surface); border-radius: var(--radius-xs); }

/* Доступность (WCAG 2.1 AA, практический уровень). Подключается последним и не меняет обычный вид страниц:
   всё ниже срабатывает только при фокусе с клавиатуры, для экранных дикторов или по системным настройкам
   пользователя («уменьшить движение», «повысить контраст»). Поведение — src/lib/a11y/enhancer.ts. */

/* ——— Цвет рамки фокуса ———
   Голубой --cyan на тёмной теме контрастен (7.3:1), на светлой — нет (2.6:1 < 3:1, WCAG 1.4.11),
   поэтому в светлой теме рамка синяя (5.2:1). */
:root { --a11y-ring: #00A5E9; }
body.light-theme { --a11y-ring: #1E55F9; }

/* ——— Скрытый для глаз, но доступный диктору текст ——— */
.a11y-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ——— «Перейти к содержимому»: видна только в фокусе ——— */
.a11y-skip-link {
  position: absolute;
  left: 8px;
  top: -200px;
  z-index: 10000;
  padding: 10px 16px;
  color: #FFFFFF;
  background: #1E55F9;
  border-radius: 10px;
  font: 500 16px/20px var(--font, Arial, sans-serif);
  text-decoration: none;
}
.a11y-skip-link:focus,
.a11y-skip-link:focus-visible { position: fixed; top: 8px; outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* Программный фокус на <main> и на окне без кнопок — без рамки (это не элемент управления). */
main[tabindex="-1"]:focus,
[role="dialog"][tabindex="-1"]:focus { outline: none !important; }

/* ——— Видимый фокус ———
   Многие элементы в старых стилях убирают outline (outline: 0) — возвращаем рамку только для фокуса с клавиатуры.
   Кнопкам и ссылкам браузер ставит :focus-visible лишь при работе с клавиатуры, поэтому при щелчке мышью вид прежний. */
:where(a[href], button, summary, [role="button"], [role="switch"], [role="tab"], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--a11y-ring) !important;
  outline-offset: 2px !important;
}
/* Флажки и радиокнопки в старых стилях спрятаны (рисуется соседний элемент) — рамка вокруг подписи. */
label:has(> input[type="checkbox"]:focus-visible, > input[type="radio"]:focus-visible) {
  outline: 2px solid var(--a11y-ring);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Текстовые поля получают :focus-visible и от щелчка мышью, поэтому рамка — только когда пользователь
   работает с клавиатуры (html[data-a11y-modality="keyboard"] ставит enhancer.ts). */
html[data-a11y-modality="keyboard"] :where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea, [contenteditable="true"]):focus {
  outline: 2px solid var(--a11y-ring) !important;
  outline-offset: 2px !important;
}
/* Поля внутри «коробок» (поиск, цена, ввод ссылки) — рамка у коробки, а не у прозрачного поля внутри. */
html[data-a11y-modality="keyboard"] :where(.catalog-search, .dropdown-search, .moderation-search, .price-field, .channel-input-wrap, .range-values label):focus-within {
  outline: 2px solid var(--a11y-ring);
  outline-offset: 2px;
  border-radius: 10px;
}
html[data-a11y-modality="keyboard"] :where(.catalog-search, .dropdown-search, .moderation-search, .price-field, .channel-input-wrap, .range-values label) input:focus {
  outline: none !important;
}

/* ——— Меньше движения ———
   Анимации сайта и так мягкие (прозрачность, цвет, раскрытие блоков, без прыжков и параллакса), поэтому плавные
   переходы остаются и при «уменьшить движение»: иначе владелец и пользователи с этой настройкой видят сайт
   без анимаций вообще. Отключаем только прокрутку с плавным скроллом и бесконечные декоративные анимации. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .skeleton-block { animation: none !important; }
}

/* ——— Повышенный контраст (системная настройка) ———
   Обычный вид не меняется. Тем, кто включил «повысить контраст», приглушённый текст --text-40
   (3.7:1 на тёмной теме и 2.7:1 на светлой — ниже AA 4.5:1) показывается как --text-75. */
@media (prefers-contrast: more) {
  :root { --text-40: rgba(255,255,255,.75); --text-50: rgba(255,255,255,.75); }
  body.light-theme { --text-40: rgba(9,11,19,.75); --text-50: rgba(9,11,19,.75); }
}

/* Скелетоны загрузки (серые блоки с бегущим бликом). Блик и цвета — те же, что у скелетона карточек каталога. */
.skeleton-block { background: var(--surface); }
.channel-detail-card .skeleton-block, .channel-card-skeleton .skeleton-block { background: var(--surface-2); }
.skeleton-round { border-radius: var(--radius-round); }
/* Страница канала: размеры совпадают с реальной страницей (обложка 132, колонки 314/692/314). */
.channel-skeleton .detail-cover { box-shadow: none; }
.channel-skeleton .detail-avatar { background: var(--surface); }
.channel-skeleton .detail-avatar span { width: 64px; height: 64px; animation: none; }
.skeleton-title { width: 60%; height: 34px; margin: 0 0 12px; border-radius: 5px; }
.skeleton-stat { min-height: 45px; border-radius: var(--radius-lg); }
.channel-skeleton .detail-stats > .skeleton-stat { padding: 0; }
.skeleton-line { width: 100%; max-width: 560px; height: 20px; margin-top: 20px; border-radius: 5px; }
.skeleton-line-short { width: 70%; margin-top: 10px; }
.skeleton-buy-card { height: 360px; border-radius: var(--radius-xl); }
.skeleton-widget { height: 180px; border-radius: var(--radius-xl); }
/* Остальные блоки страницы канала — размеры измерены на реальной странице (десктоп 1500 px). */
.channel-skeleton .sk-dates { width: 314px; height: 82px; margin-top: 20px; border-radius: var(--radius-lg); }
.channel-skeleton .skeleton-title { height: 30px; }
.channel-skeleton .sk-desc { width: 628px; max-width: 100%; height: 57px; margin-top: 20px; border-radius: var(--radius-md); }
.channel-skeleton .sk-heading { width: 220px; height: 30px; margin-top: 28px; border-radius: 5px; }
.channel-skeleton .sk-heading-reviews { width: 120px; margin-top: 36px; }
.channel-skeleton .sk-widget { width: 624px; max-width: 100%; height: 392px; margin-top: 16px; border-radius: var(--radius-xl); }
.channel-skeleton .sk-review { width: 628px; max-width: 100%; height: 92px; margin-top: 12px; border-radius: var(--radius-lg); }
.channel-skeleton .sk-seller { grid-column: 2; grid-row: 5; width: 692px; max-width: 100%; height: 165px; margin-top: 20px; border-radius: var(--radius-xl); }
.channel-skeleton .channel-similar { grid-column: 1 / -1; grid-row: 7; margin-top: 32px; }
.channel-skeleton .sk-similar-title { width: 240px; height: 30px; border-radius: 5px; }
.channel-skeleton .channel-similar-head { margin-bottom: 16px; }
.channel-skeleton .channel-similar-grid { display: flex; gap: 16px; overflow: hidden; }
.channel-skeleton .sk-similar-card { flex: 0 0 338px; height: 486px; border-radius: var(--radius-xl); }
.channel-skeleton .channel-buy-column { gap: 0; }
.channel-skeleton .sk-link-row { width: 544px; height: 52px; margin: 0 0 36px -230px; border-radius: var(--radius-lg); }
.channel-skeleton .sk-price { width: 314px; height: 179px; margin-bottom: 20px; border-radius: var(--radius-xl); }
.channel-skeleton .sk-currency { width: 314px; height: 52px; margin-bottom: 20px; border-radius: var(--radius-lg); }
.channel-skeleton .sk-calendar { width: 314px; height: 511px; border-radius: var(--radius-lg); }
.channel-skeleton .sk-tgcard { width: 314px; height: 109px; margin-top: 20px; border-radius: var(--radius-lg); }
@media (max-width: 1400px) {
  .channel-skeleton .sk-seller { grid-column: 1; grid-row: auto; width: 100%; margin-top: 0; }
  .channel-skeleton .channel-similar { order: 1; grid-row: auto; margin-top: 0; }
  .channel-skeleton .sk-link-row, .channel-skeleton .sk-price, .channel-skeleton .sk-currency, .channel-skeleton .sk-calendar, .channel-skeleton .sk-tgcard { width: 100%; margin-left: 0; }
  .channel-skeleton .sk-link-row { margin-bottom: 20px; }
}
@media (max-width: 720px) {
  .channel-skeleton .sk-similar-card { flex-basis: 280px; height: 420px; }
  .channel-skeleton .sk-widget { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .skeleton-block { animation: none; } }

/* Скелетон карточки каталога: настоящая разметка карточки, значения заменены блоками. */
.channel-card-skeleton { pointer-events: none; }
.channel-card-skeleton .card-cover::before { background: var(--surface-2); }
.skeleton-text { display: inline-block; vertical-align: middle; max-width: 100%; border-radius: 5px; background: var(--surface-2); }
.channel-card-skeleton .card-avatar { background: var(--surface); }
.skeleton-avatar { width: 100%; height: 100%; border-radius: var(--radius-round); }
.channel-card-skeleton .card-description { display: grid; align-content: center; gap: 6px; border-left-color: var(--surface-2); }
.channel-card-skeleton .card-description .skeleton-text { display: block; }
.channel-card-skeleton .metric strong::after { display: none; }
.channel-card-skeleton .card-slots::before { display: none; }
/* Форматы: блок настоящий, заменены только значения. */
.card-slots-skeleton > span { flex: 1 1 0; height: 30px; display: grid; place-items: center; }
.channel-card-skeleton .card-buy { cursor: default; }
/* Метрики и форматы лежат на подложке того же цвета, что блоки загрузки, — значения берут оттенок линий. */
.channel-card-skeleton .card-metrics .skeleton-text, .card-slots-skeleton .skeleton-text { background: var(--line); }
/* «Купить», пока неизвестно содержимое корзины: крутилка вместо подписи. */
.card-buy.is-loading, .card-buy.is-loading:disabled { position: absolute; color: transparent; cursor: progress; }
.card-buy.is-loading > * { visibility: hidden; }
.card-buy.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; box-sizing: border-box; border: 2px solid rgba(255,255,255,.35); border-top-color: var(--c-white); border-radius: var(--radius-round); animation: loaderSpin .75s linear infinite; }
/* На «Горящих»: плашка скидки и таймер — тоже значения, поэтому блоки (в обычном каталоге скрыты). */
.catalog-skeleton-hot-deal, .catalog-skeleton-countdown { display: none; }
body.hot .channel-card-skeleton .card-slots-skeleton { display: none; }
body.hot .catalog-skeleton-hot-deal { position: absolute; top: 372px; left: 50%; width: 288px; max-width: calc(100% - 24px); height: 30px; display: block; border-radius: var(--radius-xs); transform: translateX(-50%); }
body.hot .catalog-skeleton-countdown { position: absolute; right: 12px; bottom: 12px; left: 12px; height: 26px; display: block; border-radius: var(--radius-md); }
body.hot .channel-card-skeleton .card-buy { bottom: 46px; }  /* как у настоящей карточки: 8px до таймера */

/* Скелетоны разделов кабинета (components/cabinet/CabinetSkeleton.tsx): размеры измерены на реальных страницах. */
.cab-sk-pills { display: grid; gap: 12px; width: 1046px; max-width: 100%; }
.cab-sk-pill { width: 100%; height: 84px; border-radius: var(--radius-pill); }
.cab-sk-cart { display: grid; grid-template-columns: 692px 314px; gap: 40px; width: 1046px; max-width: 100%; align-items: start; }
.cab-sk-cart-list { width: 692px; max-width: 100%; height: 254px; border-radius: var(--radius-xl); }
.cab-sk-cart-summary { width: 314px; max-width: 100%; height: 102px; border-radius: var(--radius-xl); }
.cab-sk-balance { display: grid; gap: 16px; width: 1046px; max-width: 100%; }
.cab-sk-balance-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cab-sk-balance-half { height: 140px; border-radius: var(--radius-xl); }
.cab-sk-balance-row .cab-sk-balance-half + .cab-sk-balance-half { margin-left: 16px; }
.cab-sk-balance-title { width: 240px; height: 30px; border-radius: 5px; margin-top: 8px; }
.cab-sk-balance-history { width: 100%; height: 456px; border-radius: var(--radius-xl); }
.cab-sk-cards { display: flex; flex-wrap: wrap; gap: 16px; width: 1046px; max-width: 100%; }
.cab-sk-card { flex: 0 0 338px; height: 486px; border-radius: var(--radius-xl); }
@media (max-width: 1100px) {
  .cab-sk-cart { grid-template-columns: 1fr; }
  .cab-sk-cart-list, .cab-sk-cart-summary { width: 100%; }
  .cab-sk-balance-row { grid-template-columns: 1fr; gap: 12px; }
  .cab-sk-balance-row .cab-sk-balance-half + .cab-sk-balance-half { margin-left: 0; }
  .cab-sk-card { flex-basis: 100%; max-width: 338px; }
}

/* Число с барабанными цифрами (components/ui/RollingNumber.tsx): каждая цифра — окно высотой в строку, внутри лента 0–9. */
.rolling-number { --rolling-line: 1.2em; display: inline-flex; align-items: flex-start; font-variant-numeric: tabular-nums; line-height: var(--rolling-line); white-space: pre; }
.rolling-digit { display: inline-block; height: var(--rolling-line); overflow: hidden; }
.rolling-strip { display: flex; flex-direction: column; transition-property: transform; transition-timing-function: cubic-bezier(.16, 1, .3, 1); will-change: transform; }
.rolling-strip i { display: block; height: var(--rolling-line); font-style: normal; line-height: var(--rolling-line); text-align: center; }
.rolling-char { display: inline-block; height: var(--rolling-line); }
/* Строки истории баланса при смене страницы */
.balance-history-skeleton { display: grid; gap: 8px; }
.balance-history-skeleton .skeleton-block { height: 52px; border-radius: var(--radius-lg); }
.my-channel-card[aria-hidden="true"] .my-channel-avatar { background: var(--surface-2); }
.my-channel-card[aria-hidden="true"] .my-channel-avatar > .skeleton-text { display: block; width: 100%; height: 100%; border-radius: var(--radius-round); }
/* Нет описания у канала: вместо текста — блоки цвета блоков, как в загрузчике. */
.card-description-empty { display: grid; align-content: center; gap: 6px; border-left-color: var(--surface-2); }
.card-description-empty .skeleton-text { display: block; background: var(--surface-2); }
.detail-description-empty { display: grid; gap: 8px; margin: 0; }
.detail-description-empty .skeleton-text { display: block; background: var(--surface-2); }
.detail-description-empty { width: 617px; max-width: 100%; height: 57px; align-content: center; }
.detail-description:has(.detail-description-empty) i { box-shadow: inset 0 0 0 10px var(--surface-2); }

/* Обратная связь интерфейса: общие тосты (lib/ui/toast + ToastHost), обводка незаполненных обязательных полей
   корзины и крутилка на кнопке «Купить». Файл подключается после 15-skeletons.css; правила 01–15 не правим. */

/* ——— Тосты ———
   Тот же пузырь, что «Не получится добавить свой канал в корзину» (.self-channel-purchase-toast из 10-…css):
   снизу по центру, выезжает на 10px вверх и проявляется. Вид — значок слева: успех / ошибка / сведения. */
.advix-toasts {
  position: fixed;
  z-index: var(--z-toast, 120);
  left: 50%;
  bottom: 24px;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}
.advix-toast {
  max-width: 100%;
  padding: 12px 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--c-white);
  background: var(--c-ink-800);
  border: 1px solid #3D3D48;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0,0,0,.32);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
  font: 500 14px/18px var(--font);
  text-align: left;
  overflow-wrap: anywhere;
  cursor: default;
  pointer-events: auto;
}
.advix-toast.visible { opacity: 1; transform: translateY(0); }
.advix-toast-text { min-width: 0; }
.advix-toast-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-round, 50%);
  background: var(--c-blue-500);
}
.advix-toast-icon::before {
  content: "i";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--c-white);
  font: 700 11px/1 var(--font);
}
.advix-toast--success .advix-toast-icon { background: var(--c-green-500); }
.advix-toast--success .advix-toast-icon::before { content: ""; width: 11px; height: 8px; margin: auto; background: currentColor; -webkit-mask: url('../assets/check-line.svg') center / contain no-repeat; mask: url('../assets/check-line.svg') center / contain no-repeat; }
.advix-toast--error { border-color: rgba(230,41,41,.55); }
.advix-toast--error .advix-toast-icon { background: var(--c-red-500); }
.advix-toast--error .advix-toast-icon::before { content: "!"; }
/* Тост «свой канал» и прочие сведения — без значка, ровно как прежний пузырь. */
.advix-toast--info { justify-content: center; text-align: center; }
.advix-toast--info .advix-toast-icon { display: none; }
body.light-theme .advix-toast { color: var(--c-ink-900); background: var(--c-white); border-color: #D6D6DE; box-shadow: 0 8px 28px rgba(9,11,19,.14); }
body.light-theme .advix-toast--error { border-color: rgba(230,41,41,.45); }
@media (max-width: 640px) {
  .advix-toasts { bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* ——— Корзина: незаполненные обязательные поля ———
   Та же красная обводка, что у обязательных полей «Моих каналов» (.required-missing в 07-…css). */
.cart-creative.required-missing .condition-type-toggle,
.cart-placement-picker .hot-picker.required-missing .hot-picker-toggle {
  box-shadow: inset 0 0 0 1px rgba(246, 75, 75, .75);
}
/* ——— Корзина: крутилка на «Купить» во время оформления ———
   Как у «Добавить канал» (.submit-channel.is-loading, 02-…css): текст прозрачный, по центру вращается кольцо.
   Размер кнопки фиксирован (282×48), поэтому ничего не прыгает. */
.cart-pay { position: relative; }
.cart-pay.is-loading,
.cart-pay.is-loading:disabled,
body.light-theme .cart-pay.is-loading:disabled {
  color: transparent;
  background: var(--c-blue-500);
  cursor: progress;
}
.cart-pay.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  box-sizing: border-box;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: var(--c-white);
  border-radius: var(--radius-round, 50%);
  animation: loaderSpin .75s linear infinite;
}

/* Блок «Администратор» под карточкой канала (components/channel/ChannelSellerCard.tsx).
   Строки профиля (имя, «N на Advix», чипы заказов/повторных/одобрений) — классы карточки заказа
   .safe-deal-order-counterparty-* из 12 (светлая тема для них — в 13). Здесь только рамка блока и место в сетке. */
.channel-seller-card {
  box-sizing: border-box;
  grid-column: 2;
  grid-row: 5;
  width: 692px;
  max-width: 100%;
  margin-top: 20px;
  padding: 24px 32px 28px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px var(--line);
}
.channel-seller-title {
  margin: 0 0 16px;
  color: var(--text-75);
  font: 500 16px/22px var(--font);
}
.channel-seller-card .safe-deal-order-counterparty-meta { min-width: 0; }
.channel-seller-card .safe-deal-order-counterparty-name { flex: 0 1 auto; }

/* Скелетон: подписи и иконки видны, мерцают только значения (.skeleton-text из 15). */
.channel-seller-name-skeleton { width: 140px; height: 30px; flex: 0 0 auto; border-radius: var(--radius-sm); }
.channel-seller-card-skeleton .safe-deal-order-counterparty-duration { gap: 4px; }
.channel-seller-card-skeleton .safe-deal-order-counterparty-chip .skeleton-text { height: 14px; }

/* «Похожие каналы» (components/channel/SimilarChannelsView.tsx): под блоком «Администратор», на ширину карточки
   канала; внутри — настоящие карточки каталога .channel-card (01) по две в ряд: 338 + 16 + 338 = 692. */
.channel-similar {
  grid-column: 1 / -1;
  grid-row: 7;
  min-width: 0;
  margin-top: 32px;
}
.channel-similar-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.channel-similar-title {
  margin: 0;
  color: var(--text);
  font: 600 24px/30px var(--font);
}
.channel-similar-arrows { display: flex; gap: 8px; }
.channel-similar-arrow {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0 0 3px;
  color: var(--text); background: var(--surface); border-radius: var(--radius-round);
  box-shadow: inset 0 0 0 1px var(--line); font: 400 26px/1 var(--font);
}
.channel-similar-arrow:disabled { opacity: .35; cursor: default; }
/* Карусель: один ряд, листается стрелками и свайпом; 4 карточки по 338 + зазор 16 = 1400. */
.channel-similar-grid {
  display: flex;
  gap: 16px;
  padding: 4px;
  margin: -4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  align-items: flex-start;
}
.channel-similar-grid::-webkit-scrollbar { display: none; }
.channel-similar-grid > .channel-card { flex: 0 0 338px; scroll-snap-align: start; }
.channel-similar-skeleton .channel-card { pointer-events: none; }

/* ≤1400px страница канала в одну колонку (10): блоки идут сразу за карточкой канала, отступ даёт row-gap сетки. */
@media (max-width: 1400px) {
  .channel-page .channel-seller-card,
  .channel-page .channel-similar {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    min-width: 0;
    margin-top: 0;
  }
  /* Похожие каналы — в самом конце, после блока покупки (он в разметке идёт позже). */
  .channel-page .channel-similar { order: 1; }
}
@media (max-width: 720px) {
  .channel-seller-card { padding: 20px 16px; }
  .channel-similar-title { font: 600 20px/26px var(--font); }
}

/* Человек сейчас на сайте: зелёная точка на правом верхнем углу плашки с именем, немного выходя за её рамку. */
.counterparty-name-wrap { position: relative; display: inline-flex; min-width: 0; max-width: 100%; flex: 0 1 auto; }
.counterparty-name-wrap > .safe-deal-order-counterparty-name { max-width: 100%; }
.counterparty-online-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; padding: 0; border-radius: 50%; background: #2ED36B; box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.counterparty-online-dot.is-offline { background: #7d828c; }

/* Пустое состояние: стикер и текст по центру области содержимого (components/ui/EmptyState.tsx, lib/ui/empty-state.ts). */
.empty-state { width: 100%; max-width: 1046px; padding: 32px 16px 48px; display: grid; justify-items: center; gap: 20px; text-align: center; }
.empty-state-sticker { display: block; width: 280px; max-width: 70%; height: auto; user-select: none; -webkit-user-drag: none; }
.empty-state button, .empty-state a.empty-state-action { min-height: 44px; padding: 0 22px; color: var(--c-white); background: var(--blue); border-radius: var(--radius-md); font: 600 15px/20px var(--font); }
/* Внутри карточки каталога (сетка из трёх колонок) пустое состояние занимает всю ширину. */
.channel-grid > .empty-state { grid-column: 1 / -1; justify-self: center; }
/* Пустая корзина и пустой результат поиска: только стикер, без подложки. */
.cart-list.cart-list-empty { padding: 0; border: 0; background: none; }
.catalog-state-panel:has(> .empty-state) { min-height: 0; background: none; }

/* ===== Баланс: кнопки «Пополнить» и «Вывести» и окно к ним ===== */
.profile-page-title-balance .wallet-actions { position: absolute; right: 0; top: 0; height: 52px; display: flex; align-items: center; gap: 8px; }
.wallet-action { height: 52px; padding: 0 20px 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-md); font: 600 16px/20px var(--font); white-space: nowrap; transition: background-color var(--motion-base) ease, color var(--motion-base) ease; }
.wallet-action svg { flex: 0 0 20px; display: block; }
/* «Пополнить»: значок справа от текста; «Вывести» — только квадратный значок. */
.wallet-action-topup { padding: 0 16px 0 20px; }
.wallet-action-withdraw { width: 52px; padding: 0; }
.wallet-action-topup { color: var(--c-white); background: var(--blue); }
.wallet-action-topup:hover { background: #2864ff; }
.wallet-action-withdraw { color: var(--blue); background: var(--c-blue-a12); }
.wallet-action-withdraw:hover { background: var(--c-blue-a20, var(--c-blue-a12)); }
.wallet-modal { z-index: 130; padding: 16px; }
.wallet-modal-card { width: min(454px, calc(100vw - 32px)); min-height: 0; max-height: calc(100vh - 32px); padding: 32px; overflow: auto; display: grid; gap: 16px; text-align: left; box-sizing: border-box; }
.wallet-modal-card h2 { margin: 0 24px 4px; text-align: center; font: 600 26px/32px var(--font); }
.wallet-field { display: grid; gap: 8px; }
.wallet-label { color: var(--text-75); font: 400 14px/18px var(--font); }
.wallet-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-md); }
.wallet-switch button { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-75); border-radius: var(--radius-sm); font: 600 16px/20px var(--font); transition: background-color var(--motion-base) ease, color var(--motion-base) ease; }
.wallet-switch button.selected { color: var(--c-white); background: var(--blue); }
.wallet-input { height: 52px; padding: 0 16px; display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); }
.wallet-input:focus-within { border-color: var(--blue); }
.wallet-input input { min-width: 0; flex: 1; height: 100%; color: var(--text); background: transparent; border: 0; outline: 0; font: 600 20px/24px var(--font); }
.wallet-input input::placeholder { color: var(--text-40); }
.wallet-input b { display: inline-flex; align-items: center; color: var(--text-75); font: 600 18px/22px var(--font); }
.wallet-submit { width: 100%; height: 52px; color: var(--c-white); background: var(--blue); border-radius: var(--radius-md); font: 600 16px/20px var(--font); }
.wallet-submit:disabled { opacity: .4; cursor: not-allowed; }
/* Заголовок и две кнопки не помещаются в одну центрированную строку уже на планшете. */
@media (max-width: 1100px) {
  .profile-page-title-balance { justify-content: space-between; gap: 12px; text-align: left; }
  .profile-page-title-balance .wallet-actions { position: static; }
}
@media (max-width: 900px) {
  .wallet-action-topup { padding: 0 12px 0 14px; }
}
@media (max-width: 520px) {
  .profile-page-title-balance { font-size: 24px; line-height: 30px; }
  .wallet-action span { display: none; }
  .wallet-action { width: 48px; padding: 0; }
  .wallet-action-withdraw { width: 48px; }
}

/* ===== Профиль: партнёрская программа и гибкая вёрстка ===== */
.profile-partner-card { width: 100%; min-width: 0; padding: 24px 32px 32px; display: grid; gap: 16px; box-sizing: border-box; overflow-x: auto; background: var(--surface); border-radius: var(--radius-lg); }
.profile-partner-card h2 { margin: 0; color: var(--text); font: 600 18px/22px var(--font); }
.profile-partner-skeleton { height: 132px; border-radius: var(--radius-lg); }
.profile-partner-card .profile-affiliate-table { padding: 0; }
.profile-partner-card .profile-affiliate-header,
.profile-partner-card .profile-affiliate-row { grid-template-columns: minmax(180px, 1.6fr) 72px 88px 88px minmax(150px, 1fr) 52px; column-gap: 20px; min-width: 640px; }
.profile-partner-card .profile-affiliate-copy { width: 100%; max-width: 314px; }
.profile-partner-card .profile-affiliate-copy .copy-default b,
.profile-partner-card .profile-affiliate-copy .copy-success b { max-width: 100%; }
.profile-partner-card .profile-affiliate-add { width: auto; min-width: 220px; padding: 0 24px; justify-self: start; }
.profile-partner-card .profile-affiliate-header { color: var(--text-75); }
.profile-partner-card .profile-affiliate-row > b { color: var(--text); }
.profile-partner-card .profile-affiliate-row > b i { color: var(--text-40); }
@media (min-width: 901px) {
  .profile-main-stack { width: 100%; max-width: 1046px; min-width: 0; box-sizing: border-box; }
  .profile-main-stack .profile-content-main { width: 100%; max-width: 100%; box-sizing: border-box; }
  .profile-id-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-id-field { height: auto; min-height: 70px; min-width: 0; }
  .profile-actions { width: 100%; flex-wrap: wrap; }
  .profile-logout { width: auto; min-width: 99px; padding: 0 24px; }
  .profile-content-balance,
  .profile-balance-page,
  .profile-balance-hero,
  .profile-balance-history { width: 100%; max-width: 1046px; min-width: 0; box-sizing: border-box; }
}
@media (max-width: 900px) {
  .profile-partner-card { padding: 20px 16px 24px; }
}
.cart-list .cart-sk-row { height: 132px; border-radius: var(--radius-lg); background: var(--surface-2); }
.channel-link-row > span b.channel-link-private { color: var(--yellow); }

/* ===== Профиль: подписки Advix Pro и Advix Premium ===== */
.sub-skeleton { height: 88px; border-radius: var(--radius-xl); }
.sub-card { --sub-a: #b9720a; --sub-b: var(--orange); --sub-c: var(--yellow); width: 100%; min-width: 0; padding: 24px 28px; display: grid; gap: 0; box-sizing: border-box; color: var(--text); border: 1px solid transparent; border-radius: var(--radius-xl); background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--sub-a), var(--sub-b) 55%, var(--sub-c)) border-box; }
.sub-premium { --sub-a: #6d3ae6; --sub-b: #c24fe0; --sub-c: #ff7a9c; }
.sub-toggle { width: 100%; padding: 0; display: flex; align-items: center; gap: 16px; text-align: left; color: inherit; background: transparent; border: 0; cursor: pointer; }
.sub-toggle .sub-title { flex: 1; min-width: 0; }
.sub-chevron { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-75); border-radius: 50%; transition: transform var(--motion-base) ease; }
.sub-card.is-open .sub-chevron { transform: rotate(180deg); }
.sub-body-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .36s var(--ease-out-expo, ease); }
.sub-card.is-open .sub-body-wrap { grid-template-rows: 1fr; }
.sub-body { min-height: 0; overflow: hidden; display: grid; gap: 22px; opacity: 0; padding-top: 0; transition: opacity .28s ease, padding-top .36s var(--ease-out-expo, ease); }
.sub-card.is-open .sub-body { opacity: 1; padding-top: 22px; }
.sub-title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 600 16px/20px var(--font); }
.sub-title b { font: 700 28px/34px var(--font); background: linear-gradient(90deg, var(--sub-a), var(--sub-b) 60%, var(--sub-c)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sub-title span { margin-left: 8px; color: var(--text-40); font: 400 13px/16px var(--font); }
.sub-price { margin: 0; flex: 0 0 auto; display: grid; justify-items: center; gap: 1px; text-align: center; }
.sub-price b { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font: 700 20px/24px var(--font); }
.sub-price small { color: var(--text-40); font: 400 12px/15px var(--font); }
.sub-benefits { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.sub-benefits li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-75); font: 400 15px/20px var(--font); }
.sub-check { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--c-white); background: linear-gradient(135deg, var(--sub-a), var(--sub-b)); border-radius: var(--radius-round); }
.sub-check svg { width: 13px; height: 13px; }
.sub-buy { padding: 18px; display: grid; gap: 14px; background: var(--surface-2); border-radius: var(--radius-lg); }
.sub-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; }
.sub-channels-row { align-items: start; }
.sub-label { color: var(--text-75); font: 400 14px/18px var(--font); }
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-chips button { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--text-75); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font: 600 14px/18px var(--font); }
.sub-chips button i { color: var(--sub-b); font: 700 12px/16px var(--font); font-style: normal; }
.sub-chips button.selected { color: var(--text); border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--sub-a), var(--sub-b) 55%, var(--sub-c)) border-box; border: 1px solid transparent; }
.sub-channels-row { min-width: 0; }
.sub-channels { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-channel { box-sizing: border-box; flex: 0 0 280px; width: 280px; max-width: 100%; height: 68px; padding: 0 14px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.sub-channel.selected { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--sub-a), var(--sub-b) 55%, var(--sub-c)) border-box; }
.sub-channel-avatar { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; color: var(--c-white); background: linear-gradient(135deg, var(--c-blue-500), var(--c-cyan-500)); border-radius: var(--radius-round); font: 600 16px/1 var(--font); }
.sub-channel-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sub-channel-text { min-width: 0; flex: 1; display: grid; gap: 2px; }
.sub-channel-text strong { overflow: hidden; white-space: nowrap; font: 600 15px/20px var(--font); }
.sub-channel-text small { overflow: hidden; white-space: nowrap; color: var(--text-40); font: 400 13px/16px var(--font); }
.sub-channel.is-active .sub-channel-text small { color: var(--orange); }
.sub-pro-badge { flex: 0 0 auto; padding: 2px 8px; color: var(--c-white); background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: 11px; font: 700 11px/16px var(--font); }
.sub-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.sub-total { display: grid; gap: 2px; }
.sub-total span { color: var(--text-75); font: 400 13px/16px var(--font); }
.sub-total b { display: inline-flex; align-items: center; gap: 6px; font: 700 24px/30px var(--font); }
.sub-submit { min-width: 180px; height: 52px; padding: 0 28px; color: var(--c-white); background: linear-gradient(135deg, var(--sub-a), var(--sub-b)); border-radius: var(--radius-md); font: 600 16px/20px var(--font); }
.sub-submit:disabled { opacity: .45; cursor: not-allowed; }
.sub-error, .sub-done, .sub-empty, .sub-status { margin: 0; font: 500 14px/18px var(--font); }
.sub-error { color: var(--c-red-500); }
.sub-done, .sub-status.is-active { color: var(--orange); }
.sub-empty, .sub-status { color: var(--text-75); }
@media (max-width: 900px) {
  .sub-card { padding: 20px 16px 22px; }
  .sub-benefits { grid-template-columns: minmax(0, 1fr); }
  .sub-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sub-title b { font-size: 24px; line-height: 30px; }
}

.filter-online-dot { width: 8px; height: 8px; flex: 0 0 8px; margin: 0; border-radius: 50%; background: #2ED36B; }

/* PRO на аватарке канала в «Моих каналах» */
.my-channel-avatar.is-pro { position: relative; overflow: visible; }
.my-channel-avatar .avatar-pro-badge { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 2; width: 41px; height: 22px; display: grid; place-items: center; color: var(--c-white); background: linear-gradient(90deg, var(--orange), var(--yellow)); border: 2px solid var(--surface); border-radius: 11px; font: 700 12px/18px var(--font); font-style: normal; }
/* Кнопка профиля с подпиской Premium: оттенок Premium и значок-корона */
.login.is-profile.is-premium,
.login.is-profile.is-premium:hover { background: linear-gradient(135deg, #3a1a78 0%, #7a2b93 55%, #b53a74 100%); }
.login.is-profile.is-premium,
.login.is-profile.is-premium:hover { padding-right: 14px; gap: 8px; }
.login.is-profile .profile-premium-badge { flex: 0 0 auto; width: 18px; height: 18px; margin: -4px 0 0 -2px; color: #ffd6e8; display: inline-grid; place-items: center; align-self: center; }
.login.is-profile .profile-premium-badge svg { width: 18px; height: 18px; display: block; }
/* Партнёрская таблица: ссылки слева, числа равномерно по остальной ширине. */
.profile-partner-card .profile-affiliate-header,
.profile-partner-card .profile-affiliate-row { grid-template-columns: minmax(230px, 314px) minmax(104px, 1fr) minmax(88px, 1fr) minmax(96px, 1fr) minmax(170px, 1.4fr) 40px; column-gap: 16px; min-width: 780px; }
.profile-partner-card .profile-affiliate-header { font: 400 14px/18px var(--font); }
.profile-partner-card .profile-affiliate-header span:first-child { text-align: left; }
.profile-partner-card .profile-affiliate-header .affiliate-commission-head { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.profile-partner-card .profile-affiliate-row > b { font: 600 18px/22px var(--font); white-space: nowrap; }
.profile-partner-card .profile-affiliate-delete { justify-self: end; }
/* Корона один раз у заголовка «Комиссия»: процент повышен Advix Premium. */
.affiliate-crown { display: inline-grid; place-items: center; color: #c26bd6; font-style: normal; }
.affiliate-crown svg { width: 14px; height: 14px; display: block; }

/* Заметка о комиссии 0% по подписке выглядит как обычная заметка о комиссии. */
.fee-note-premium, .fee-note-pro { color: inherit; font-weight: inherit; }

/* Иконка копирования синяя в самом файле (file-narrow-copy-blue.svg). Раньше её красили цепочкой CSS-фильтров,
   и пока шла анимация перехода между страницами, браузер считал их иначе — иконка на долю секунды розовела. */
.bot-copy .copy-default img,
.channel-copy .copy-default img,
.safe-deal-order-publication-copy .copy-default img,
.profile-affiliate-copy .copy-default img { transition: none; animation: none; }
/* Длинная ссылка в кнопке копирования не наезжает на иконку */
.channel-copy .copy-default b { min-width: 0; overflow: hidden; white-space: nowrap; }
.channel-copy .copy-default img { flex: 0 0 18px; margin-left: 8px; }

/* Форматирование поста в редакторе креатива и в предпросмотре: ссылки, цитаты, код, скрытый текст. */
.buyer-creative-inline-editor [data-buyer-creative-richtext] p { margin: 0; min-height: 1.3em; }
.buyer-creative-inline-editor [data-buyer-creative-richtext] a,
.buyer-creative-post-preview-text a { color: var(--blue); text-decoration: underline; }
.buyer-creative-inline-editor [data-buyer-creative-richtext] blockquote,
.buyer-creative-post-preview-text blockquote { display: block; margin: 0; padding: 2px 0 2px 10px; border-left: 3px solid var(--blue); }
.buyer-creative-inline-editor [data-buyer-creative-richtext] pre,
.buyer-creative-post-preview-text pre { display: block; margin: 0; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.buyer-creative-inline-editor [data-buyer-creative-richtext] .buyer-creative-spoiler,
.buyer-creative-post-preview-text .buyer-creative-spoiler { background: var(--c-white-a12); border-radius: 4px; }

/* ===== Корзина: карточка позиции — канал, цена и удаление сверху; ниже ровный ряд подписанных полей ===== */
.cart-layout .cart-list:not(.cart-list-empty) { padding: 0; gap: 12px; background: transparent; border: 0; }
.cart-layout .cart-list-head { height: 44px; padding: 0 20px; background: var(--surface); border-radius: var(--radius-md); }
.cart-layout .cart-list-head label { gap: 14px; }
.cart-card { box-sizing: border-box; width: 100%; padding: 20px; display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); transition: border-color var(--motion-fast) ease; }
.cart-card.is-selected { border-color: rgba(30, 85, 249, .55); }
.cart-card.hot { border-color: rgba(255, 124, 2, .45); }
.cart-card-head { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: start; column-gap: 14px; }
.cart-card-head .cart-avatar { grid-area: 1 / 1; width: 52px; height: 52px; }
.cart-card-head .cart-info { grid-area: 1 / 2; display: grid; gap: 6px; align-content: center; min-height: 52px; }
.cart-title-line { min-width: 0; display: flex; align-items: center; gap: 6px; }
.cart-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.cart-hot-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cart-hot-line p { margin: 0; color: var(--text-40); font: 400 13px/17px var(--font); }
.cart-hot-line .cart-hot-timer { margin: 0; }
/* Статистика слева, справа от неё — формат кнопками, как на карточке каталога. */
.cart-stats-row { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 14px; }
.cart-metrics { flex: 0 1 400px; min-width: 0; padding: 4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; box-sizing: border-box; background: var(--surface-2); border-radius: var(--radius-lg); }
.cart-metrics .metric { width: auto; min-width: 0; box-sizing: border-box; }
.cart-metrics .metric-orders, .cart-metrics .metric-score { grid-column: span 2; width: auto; }
.cart-format { flex: 1 1 190px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; }
.card-slots.cart-slots { position: relative; left: 0; top: 0; transform: none; width: 100%; max-width: 230px; height: 44px; }
.card-slots.cart-slots::before { height: 36px; }
.card-slots.cart-slots button { height: 36px; white-space: nowrap; }
.cart-sk-slots { width: 100%; max-width: 230px; height: 44px; border-radius: var(--radius-md); }
.cart-fields .cart-remove { grid-area: 2 / 4; align-self: center; justify-self: end; width: 40px; height: 40px; }
.cart-fields .cart-remove img { opacity: .55; transition: opacity var(--motion-fast) ease; }
.cart-fields .cart-remove:hover img { opacity: 1; }
.cart-fields .cart-sk-remove { grid-area: 2 / 4; align-self: center; justify-self: end; }
.cart-money { grid-area: 1 / 3; display: grid; justify-items: end; gap: 8px; }
.cart-money .cart-price { grid-area: auto; gap: 6px; }
.cart-money .cart-price strong { font: 700 22px/26px var(--font); }
.cart-card .cart-currency, .cart-off-row .cart-currency { grid-area: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--text-40); font: 600 12px/16px var(--font); }
.cart-card .cart-currency span.on, .cart-off-row .cart-currency span.on { color: var(--text); }

.cart-fields { display: grid; grid-template-columns: minmax(0, 196px) 96px minmax(0, 1fr) 40px; grid-template-rows: auto auto; align-items: start; gap: 6px 10px; }
.cart-field-label { color: var(--text-40); font: 400 12px/15px var(--font); }
.cart-fields .label-date { grid-area: 1 / 1; }
.cart-fields .label-time { grid-area: 1 / 2; }
.cart-fields .label-campaign { grid-area: 1 / 3; }
.cart-fields .cart-placement-picker { grid-area: 2 / 1 / 3 / 3; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px 10px; }
/* Календарь раскрывается ровно под полем даты, той же ширины. */
.cart-fields .cart-placement-picker .hot-date-picker .hot-picker-panel { box-sizing: border-box; width: 100%; min-width: 0; max-width: none; padding: 10px 8px 12px; background: var(--c-ink-950); border: 0; border-radius: 0 0 10px 10px; }
.cart-fields .cart-placement-picker .hot-date-calendar { width: 100%; max-width: 238px; margin: 0 auto; overflow: visible; }
/* Календарь ужимается до ширины поля даты: семь равных колонок. */
.cart-fields .hot-date-calendar-week,
.cart-fields .hot-date-calendar-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 1px; }
.cart-fields .hot-date-calendar-week span { width: 100%; }
.cart-fields .hot-date-calendar-day { width: 100%; height: 26px; padding: 0; }
.cart-fields .hot-date-calendar-day.today::before { width: 20px; height: 20px; }
.cart-fields .hot-date-calendar-day.selected::after { box-sizing: border-box; width: 24px; height: 24px; }
.cart-fields .hot-date-calendar-head { grid-template-columns: 22px minmax(0, 1fr) 22px; }
.cart-fields .hot-date-calendar-nav { width: 22px; height: 22px; }
body.light-theme .cart-fields .cart-placement-picker .hot-date-picker .hot-picker-panel { background: var(--surface-2); }
.cart-fields .cart-creative { grid-area: 2 / 3; width: auto; }
.cart-fields .cart-condition-fixed,
.cart-fields .condition-type-toggle,
.cart-fields .hot-picker-toggle { box-sizing: border-box; width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 14px; color: var(--text); background-color: var(--c-ink-950); border: 1px solid transparent; border-radius: var(--radius-md); font: 500 14px/18px var(--font); }
.cart-fields .hot-picker.required-missing .hot-picker-toggle,
.cart-fields .cart-creative.required-missing .condition-type-toggle { border-color: var(--c-red-500); }
body.light-theme .cart-fields .cart-condition-fixed,
body.light-theme .cart-fields .condition-type-toggle,
body.light-theme .cart-fields .hot-picker-toggle { background-color: var(--surface-2); }

/* Временно недоступные: отдельный приглушённый блок внизу, в «Итого» не входит */
.cart-off { margin-top: 12px; display: grid; gap: 8px; }
.cart-off h2 { margin: 0 0 2px; padding: 0 4px; display: flex; align-items: center; gap: 8px; color: var(--text-75); font: 600 16px/20px var(--font); }
.cart-off h2 span { color: var(--text-40); font-weight: 500; }
.cart-off-row { min-height: 68px; padding: 12px 20px; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.cart-off-row .cart-avatar { flex: 0 0 40px; width: 40px; height: 40px; filter: grayscale(1); opacity: .65; }
.cart-off-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cart-off-text h3 { margin: 0; overflow: hidden; white-space: nowrap; color: var(--text-75); font: 600 15px/19px var(--font); }
.cart-off-text p { margin: 0; color: var(--text-40); font: 400 13px/17px var(--font); }
.cart-off-row .cart-condition { grid-area: auto; width: 112px; }
.cart-off-row .cart-remove { flex: 0 0 36px; }

/* «Итого»: комиссия, обнулённая Advix Premium */
.cart-summary-rows .cart-fee-crown { display: inline-grid; place-items: center; margin-right: 3px; vertical-align: -2px; color: #c26bd6; }
.cart-fee-crown svg { width: 14px; height: 14px; display: block; }
/* Комиссия, снятая Premium: те же синие стили; зачёркнуты суммы со знаком валюты. */

/* Лоадеры той же формы, что и настоящие блоки */
.cart-sk-bar { display: inline-block; border-radius: 6px; }
.cart-card-skeleton .cart-info { display: grid; justify-items: start; gap: 8px; }
.cart-sk-check { display: block; width: 18px; height: 18px; border-radius: 5px; }
.cart-sk-avatar { display: block; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; }
.cart-off-row .cart-sk-avatar { width: 40px; height: 40px; }
.cart-sk-remove { display: block; width: 28px; height: 28px; border-radius: 8px; justify-self: center; }
.cart-sk-metrics { height: 141px; }
.cart-sk-field { display: block; height: 48px; border-radius: var(--radius-md); }
.cart-fields .sk-date { grid-area: 2 / 1; }
.cart-fields .sk-time { grid-area: 2 / 2; }
.cart-fields .sk-campaign { grid-area: 2 / 3; }
.cart-card-skeleton .skeleton-block, .cart-card-skeleton .skeleton-text,
.cart-off-row .skeleton-block, .cart-off-row .skeleton-text,
.cart-list-head .skeleton-block, .cart-list-head .skeleton-text { background: var(--surface-2); }
.cart-sk-center { display: flex; justify-content: center; }
.cart-off-text .cart-sk-bar { justify-self: start; }

@media (max-width: 720px) {
  .cart-card { padding: 14px; gap: 14px; }
  .cart-card-head { grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; row-gap: 10px; }
  .cart-card-head .cart-avatar { width: 40px; height: 40px; }
  .cart-money { grid-area: auto; grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .cart-metrics { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-metrics .metric-orders, .cart-metrics .metric-score { grid-column: span 1; }
  .cart-sk-metrics { height: 190px; }
  .cart-format { align-items: stretch; }
  .card-slots.cart-slots, .cart-sk-slots { max-width: none; }
  .cart-fields { grid-template-columns: minmax(0, 1fr) 40px; grid-template-rows: none; gap: 8px; }
  .cart-field-label { display: none; }
  .cart-fields .cart-placement-picker, .cart-fields .sk-date { grid-area: auto; grid-column: 1 / -1; }
  .cart-fields .sk-time { display: none; }
  .cart-fields .cart-creative, .cart-fields .sk-campaign { grid-area: auto; grid-column: 1; }
  .cart-fields .cart-remove, .cart-fields .cart-sk-remove { grid-area: auto; grid-column: 2; }
  .cart-off-row { flex-wrap: wrap; padding: 12px 14px; }
}

/* Списки формата и кампании: высота как у остальных полей позиции. */
.cart-fields .condition-type-toggle { padding: 0 34px 0 14px; }
.cart-fields .condition-type-toggle i { right: 14px; }
.cart-fields .condition-type-panel { max-height: 232px; overflow-y: auto; }
.cart-fields .condition-type-panel button { overflow: hidden; white-space: nowrap; }
.cart-off-row .condition-type-toggle { height: 40px; font-size: 14px; }
/* Галочки корзины в стиле сайта, а не системные. */
.cart-list .cart-check input[type="checkbox"],
.cart-list .cart-list-head input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex: 0 0 20px; appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid #343640; border-radius: 4px; cursor: pointer; transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease; }
.cart-list .cart-check input[type="checkbox"]:checked,
.cart-list .cart-list-head input[type="checkbox"]:checked { background: url('../assets/check-box.svg') center/20px 20px no-repeat; border-color: transparent; }
.cart-list .cart-check input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }
body.light-theme .cart-list .cart-check input[type="checkbox"]:not(:checked),
body.light-theme .cart-list .cart-list-head input[type="checkbox"]:not(:checked) { border-color: var(--line); }
.cart-fields .hot-picker-toggle.hot-date-input { padding: 0 36px 0 12px; background-position: right 12px center; background-size: 16px 16px; }

/* Узкая карточка позиции: четыре поля в ряд не помещаются — кампания уходит вниз. */
@media (min-width: 721px) and (max-width: 980px) {
  .cart-fields { grid-template-columns: minmax(0, 1fr) 96px 40px; grid-template-rows: auto; }
  .cart-fields .label-campaign { grid-area: 3 / 1 / 4 / 3; margin-top: 4px; }
  .cart-fields .cart-creative, .cart-fields .sk-campaign { grid-area: 4 / 1 / 5 / 3; }
  .cart-fields .cart-remove, .cart-fields .cart-sk-remove { grid-area: 4 / 3; }
}
/* Телефон: дата во всю ширину, чтобы календарь раскрывался ровно под ней; время — строкой ниже. */
@media (max-width: 720px) {
  .cart-fields .cart-placement-picker { grid-template-columns: minmax(0, 1fr); }
  .cart-fields .cart-placement-picker .hot-date-picker .hot-picker-panel { min-width: 100%; }
  .cart-fields .sk-date { grid-column: 1 / -1; }
}
/* Название месяца: с большой буквы только первое слово («Ноябрь 2026 г.»). */
.hot-date-calendar-head b { text-transform: none; }
.hot-date-calendar-head b::first-letter { text-transform: uppercase; }
/* Под картинкой аватарки не должно быть синей подложки: на сглаженном крае круга она просвечивала каймой. */
.card-avatar > img[data-avatar-image],
.cart-avatar img[data-avatar-image],
.detail-avatar > img,
.channel-view .detail-avatar > img,
.my-channel-avatar img { background: var(--surface) !important; }
.cart-avatar:has(img) { background: var(--surface); }

/* Обводка рисуется поверх содержимого: обычная рамка у крайней карточки лежала на границе обрезки и пропадала. */
.buyer-campaign-card .buyer-company-carousel .buyer-creative-card { border: 0; }
.buyer-campaign-card .buyer-company-carousel .buyer-creative-card::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--c-ink-700); pointer-events: none; }
body.light-theme .buyer-campaign-card .buyer-company-carousel .buyer-creative-card::after { box-shadow: inset 0 0 0 1px var(--line); }

/* Единая прямая галочка вместо символа «✓» (его каждый шрифт рисует по-своему). */
.check-line-icon { display: inline-block; width: 15px; height: 11px; background: currentColor; -webkit-mask: url('../assets/check-line.svg') center / contain no-repeat; mask: url('../assets/check-line.svg') center / contain no-repeat; vertical-align: middle; }
.channel-calendar-slot-row button span.channel-calendar-slot-check { width: 15px; min-width: 0; height: 11px; padding: 0; border: 0; border-radius: 0; background: var(--c-white); }

/* Текст поста в предпросмотре (блок, а не абзац: внутри бывают цитаты и блоки кода). */
.buyer-creative-post-preview-text { margin: 0; padding: 10px 10px 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.buyer-creative-post-preview-text code, .buyer-creative-post-preview-text pre,
.buyer-creative-inline-editor [data-buyer-creative-richtext] code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .93em; color: #7fb4ff; }
.buyer-creative-inline-editor [data-buyer-creative-richtext] pre,
.buyer-creative-post-preview-text pre { padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); }

/* Панель форматирования над содержимым креатива. */
.buyer-creative-text-field { display: grid; gap: 8px; min-width: 0; }
.buyer-format-toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
.buyer-format-toolbar button { min-width: 34px; height: 32px; padding: 0 8px; color: var(--text-75); border: 0; border-radius: 8px; background: var(--surface-2); font: 500 14px/18px var(--font); cursor: pointer; }
.buyer-format-toolbar button:hover, .buyer-format-toolbar button:focus-visible { color: var(--text); background: var(--c-blue-a12); }
.buyer-creative-text-field { position: relative; }
.buyer-format-toolbar button { display: inline-flex; align-items: center; justify-content: center; }
.buyer-format-link { position: absolute; z-index: 20; width: min(320px, 100%); box-sizing: border-box; display: flex; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
::highlight(buyer-link-target) { background: rgba(30,85,249,.4); }
.buyer-format-link[hidden] { display: none; }
.buyer-format-link input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; color: var(--text); border: 1px solid var(--line); border-radius: 10px; background: transparent; font: 400 14px/18px var(--font); }
.buyer-format-link input[aria-invalid="true"] { border-color: var(--c-red-500); }
.buyer-format-link button { height: 36px; padding: 0 14px; color: var(--c-white); border: 0; border-radius: 10px; background: var(--c-blue-500); font: 600 14px/18px var(--font); cursor: pointer; }
.buyer-creative-inline-editor [data-buyer-creative-richtext].is-empty { position: relative; }
.buyer-creative-inline-editor [data-buyer-creative-richtext].is-empty::before { content: attr(data-placeholder); position: absolute; left: 16px; top: 16px; color: var(--text-40); pointer-events: none; }

/* Перетаскивание кнопки: она едет за указателем, линия показывает новое место. */
.buyer-creative-post-preview-buttons { position: relative; }
.buyer-creative-post-preview-buttons a.buyer-creative-preview-button-interactive.is-button-dragging { position: relative; z-index: 5; opacity: .85; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); transition: none; cursor: grabbing; }
.buyer-creative-button-drop-marker { position: absolute; z-index: 4; border-radius: 2px; background: var(--c-blue-500); pointer-events: none; }
.buyer-creative-preview-column { display: grid; gap: 12px; align-self: start; align-content: start; justify-items: stretch; min-width: 0; max-width: 400px; }
.buyer-creative-preview-send { width: 100%; height: 44px; color: var(--c-white); border: 0; border-radius: var(--radius-md); background: var(--c-blue-500); font: 600 14px/18px var(--font); cursor: pointer; }
.buyer-creative-preview-send:disabled { opacity: .45; cursor: default; }

/* Начало текста креатива на карточке — сколько помещается. */
.buyer-company-carousel .buyer-creative-summary-text { margin: 6px 12px 0 0; max-height: 72px; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; color: var(--text-55, var(--text-75)); font: 400 13px/18px var(--font); }

/* Курсив: отдельного начертания у шрифта сайта нет, а наклон браузеру в целом запрещён (font-synthesis). */
.buyer-creative-inline-editor [data-buyer-creative-richtext] em,
.buyer-creative-inline-editor [data-buyer-creative-richtext] i,
.buyer-creative-post-preview em,
.buyer-creative-post-preview-card em { font-style: italic; font-synthesis: style; }

/* ===== Интеграции: токен TGStat и список каналов ===== */
.integration-card { width: min(515px, 100%); padding: 24px; display: grid; gap: 20px; box-sizing: border-box; background: var(--c-ink-900); box-shadow: inset 0 0 0 1px var(--c-ink-700); border-radius: var(--radius-lg); }
.integration-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.integration-card-head h2 { margin: 0; color: var(--c-white); font: 600 24px/30px var(--font); }
.integration-state { padding: 6px 12px; color: var(--text-40); background: var(--surface-2); border-radius: var(--radius-sm); font: 600 13px/18px var(--font); }
.integration-state.is-on { color: var(--blue); background: var(--c-blue-a12); }
.integration-field { display: grid; gap: 8px; color: var(--text-75); font: 400 14px/18px var(--font); }
.integration-field input, .integration-field textarea { width: 100%; padding: 0 16px; box-sizing: border-box; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); outline: 0; font: 400 16px/22px var(--font); }
.integration-field input { height: 52px; }
.integration-field textarea { padding-block: 12px; resize: vertical; }
.integration-field input:focus, .integration-field textarea:focus { border-color: var(--blue); }
.integration-field input::placeholder, .integration-field textarea::placeholder { color: var(--text-40); }
.integration-field small { color: var(--text-40); font: 400 13px/18px var(--font); }
.integration-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.integration-actions button { height: 48px; padding: 0 22px; border-radius: var(--radius-md); font: 600 15px/20px var(--font); }
.integration-save { color: var(--c-white); background: var(--blue); }
.integration-remove { color: var(--blue); background: var(--c-blue-a12); }
.integration-actions button:disabled { opacity: .5; cursor: default; }

/* Экономия по подписке за текущий месяц. */
.sub-saved { display: block; width: fit-content; color: var(--c-green-500); font: 600 13px/18px var(--font); }
.sub-channel-text .sub-saved { margin-top: 2px; font-size: 12px; line-height: 16px; }

/* Редактор креатива в узкой карточке: поля ужимаются, а не уезжают под предпросмотр. */
.buyer-campaign-card .buyer-creative-inline-editor,
.buyer-campaign-card .buyer-creative-inline-editor-fields { width: 100%; max-width: 557px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.buyer-campaign-card .buyer-creative-inline-editor .buyer-creative-inline-editor-layout { grid-template-columns: minmax(0, 1fr); }
.buyer-campaign-card .buyer-creative-inline-editor .channel-settings-input,
.buyer-campaign-card .buyer-creative-inline-editor .buyer-creative-image-field,
.buyer-campaign-card .buyer-creative-inline-editor .buyer-creative-image-controls { width: 100%; }
.buyer-campaign-card .buyer-creative-inline-button-row { grid-template-columns: minmax(0, 240px) minmax(0, 240px) 40px; gap: 10px; }
.buyer-campaign-card .buyer-creative-inline-button-row input { width: 100%; min-width: 0; }
.buyer-campaign-card .buyer-creative-inline-button-row [data-buyer-button-remove] { width: 40px; }

/* Статистика в корзине: длинные числа (например, CPM) не переносятся. */
.cart-metrics { width: min(100%, 560px); }
.cart-metrics .metric { padding-inline: 8px; }
.cart-metrics .metric strong { max-width: 100%; gap: 5px; white-space: nowrap; font-size: 15px; }

/* Горящий слот: выбор в настройках и подсветка в календаре канала. */
.hot-slot-options { display: grid; gap: 4px; }
.hot-slot-options button { height: 36px; padding: 0 10px; white-space: nowrap; color: var(--text); background: transparent; border: 0; border-radius: var(--radius-sm); font: 500 14px/18px var(--font); cursor: pointer; }
.hot-slot-options button:hover { background: var(--surface-2); }
.hot-slot-options button.selected { color: var(--c-white); background: var(--orange); }
.hot-slot-empty { padding: 8px 10px; color: var(--text-40); font: 400 13px/17px var(--font); }
.channel-calendar-day.hot:not(:disabled) { color: #1b1300; background: #ffc531; border-radius: var(--radius-sm); }
.channel-calendar-day.hot.selected:not(:disabled) { box-shadow: inset 0 0 0 2px var(--blue); }
.channel-calendar-slot-row.hot:not(.disabled) span { color: #ffc531; }
.channel-calendar-slot-row.hot:not(.disabled) button { color: #1b1300; background: #ffc531; }


/* «Стать партнером Advix»: кнопка внизу настроек канала и окно. */
.partner-modal .wallet-modal-card { position: relative; }
.partner-close { position: absolute; right: 14px; top: 10px; width: 32px; height: 32px; color: var(--text-40); background: none; border: 0; font: 400 26px/1 var(--font); cursor: pointer; }
.partner-text, .partner-note, .partner-message { margin: 0; color: var(--text-75); font: 400 14px/20px var(--font); }
.partner-note { color: var(--text-40); font-size: 13px; }
.partner-message { color: var(--orange); }
.bot-copy.partner-link { height: auto; min-height: 48px; margin: 0; gap: 12px; border: 0; border-radius: var(--radius-md); text-align: left; cursor: pointer; }
.partner-link .copy-default b, .partner-link.copied .copy-success b { min-width: 0; font: 600 14px/18px var(--font); overflow-wrap: anywhere; }
.partner-link > span { gap: 12px; }
.partner-link img { flex: 0 0 18px; }
.partner-submit { height: 48px; border: 0; border-radius: var(--radius-md); font: 600 15px/20px var(--font); cursor: pointer; }
.partner-submit:disabled { opacity: .5; cursor: default; }
/* Внутри окон серые блоки того же цвета, что и само окно, — делаем их заметными. */
.modal .skeleton-block { background: var(--surface-2); }
.partner-loading { display: grid; gap: 12px; }
.partner-loading > span { display: block; border-radius: var(--radius-md); }
.partner-sk-text { height: 20px; }
.partner-sk-button { height: 48px; }
.partner-sk-reward { height: 64px; }
.partner-sk-track { height: 44px; }
.sub-partner { margin-left: 8px; color: var(--orange); font-style: normal; font-size: 12px; }

.cart-fee-volume { display: block; color: var(--c-green-500); font: 500 12px/16px var(--font); font-style: normal; }

/* Карточка пользователя в админке: статистика и выключатель пакетной скидки (высота — по содержимому). */
.profile-user-card.open { max-height: 900px; }
.profile-user-card.open .profile-user-content { height: auto; }
.profile-user-money { margin: 0 24px 8px; display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; color: var(--c-white-a75); font: 400 14px/18px var(--font); }
.profile-user-money b { color: var(--c-white); font-weight: 500; text-align: right; }
.profile-user-money h4 { grid-column: 1 / -1; margin: 6px 0 0; color: var(--text-40); font: 600 12px/16px var(--font); text-transform: uppercase; }
.profile-user-money button { grid-column: 1 / -1; justify-self: start; height: 40px; margin-top: 4px; padding: 0 16px; color: var(--blue); background: var(--c-blue-a12); border: 0; border-radius: var(--radius-md); font: 600 14px/18px var(--font); cursor: pointer; }
.profile-user-money button[data-user-volume-discount="off"] { color: var(--orange); background: rgba(255,124,2,.16); }
body.light-theme .profile-user-money b { color: var(--text); }
body.light-theme .profile-user-money { color: var(--text-75); }
/* «Проверка заказов». */
.admin-order-badge { padding: 4px 10px; border-radius: var(--radius-sm); white-space: nowrap; font: 600 12px/16px var(--font); }
.admin-order-badge.is-active { color: var(--blue); background: var(--c-blue-a12); }
.admin-order-badge.is-completed { color: var(--c-green-500); background: var(--c-green-a12); }
.admin-order-badge.is-cancelled { color: var(--c-red-500); background: var(--c-red-a12); }
.admin-order-post { color: var(--blue); }
.admin-order-schedule { display: grid; gap: 8px; justify-items: start; }
.admin-order-schedule input { height: 40px; padding: 0 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); font: 500 14px/18px var(--font); color-scheme: dark; }
body.light-theme .admin-order-schedule input { color-scheme: light; }
.admin-order-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-order-slots button { height: 36px; padding: 0 12px; color: var(--text-75); background: var(--surface-2); border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.admin-order-slots button.selected { color: var(--c-white); background: var(--blue); }
.admin-order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-order-actions button, .admin-order-retry { height: 40px; padding: 0 16px; color: var(--c-white); background: var(--blue); border: 0; border-radius: var(--radius-md); font: 600 14px/18px var(--font); cursor: pointer; }
.admin-order-actions button.is-cancel { color: var(--c-red-500); background: var(--c-red-a12); }
.admin-order-actions button.is-complete { background: var(--c-green-700); }
.admin-order-actions button.is-compensation { color: var(--blue); background: var(--c-blue-a12); }
.admin-order-actions button:disabled { opacity: .4; cursor: default; }

.category-selector .chips.is-clickable { cursor: pointer; }
/* «Сохранить поиск»: сердечко того же тона, что и соседняя стрелка (она нарисована с прозрачностью 75%). */
.filter-actions .save-search[aria-pressed="false"] img { opacity: .75; }

/* Страница 404. */
.page-shell.not-found { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 16px; min-height: 640px; text-align: center; }
.not-found-code { display: flex; align-items: center; justify-content: center; gap: 8px; }
.not-found-code span { color: transparent; background: linear-gradient(160deg, var(--c-blue-500), var(--c-cyan-500)); -webkit-background-clip: text; background-clip: text; font: 800 clamp(112px, 20vw, 240px)/1 var(--font); animation: notFoundFloat 5s ease-in-out infinite; }
.not-found-code span:last-child { background-image: linear-gradient(200deg, var(--orange), var(--yellow)); animation-delay: -2.5s; }
.not-found-code img { width: clamp(120px, 22vw, 260px); height: auto; user-select: none; -webkit-user-drag: none; }
.not-found h1 { margin: 8px 0 0; color: var(--text); font: 700 clamp(24px, 4vw, 36px)/1.2 var(--font); }
.not-found p { margin: 0; color: var(--text-75); font: 400 17px/24px var(--font); }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.not-found-actions a { height: 52px; padding: 0 28px; display: inline-flex; align-items: center; border-radius: var(--radius-md); font: 600 16px/20px var(--font); }
.not-found-primary { color: var(--c-white); background: var(--blue); }
.not-found-hot { color: var(--orange); background: rgba(255,124,2,.16); }
@keyframes notFoundFloat { 0%, 100% { transform: translateY(-8px) rotate(-3deg); } 50% { transform: translateY(8px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .not-found-code span { animation: none; } }

/* Галочка выбора на левом верхнем углу карточки. */
.cart-card { position: relative; }
/* grid-area: auto — иначе старая область «check» уводит абсолютный блок в конец сетки карточки. */
.cart-list .cart-corner-check { position: absolute; grid-area: auto; z-index: 3; left: -8px; top: -8px; gap: 0; padding: 0; }
.cart-corner-check > span:not(.skeleton-block) { display: none; }
.cart-list .cart-corner-check input[type="checkbox"] { width: 26px; height: 26px; flex-basis: 26px; border-radius: 8px; background-color: var(--surface); border-color: var(--c-ink-500); box-shadow: 0 0 0 3px var(--c-ink-950); }
.cart-list .cart-corner-check input[type="checkbox"]:checked { background: var(--blue) url('../assets/check-box.svg') center/26px 26px no-repeat; }
body.light-theme .cart-list .cart-corner-check input[type="checkbox"] { box-shadow: 0 0 0 3px var(--surface-2); }
.cart-sk-check.cart-corner-check { position: absolute; left: -8px; top: -8px; width: 26px; height: 26px; border-radius: 8px; }

/* Обёртка переключателя формата в корзине тянется на всю свою колонку, иначе кнопки сжимаются. */
.cart-format > [data-cart-condition] { width: 100%; max-width: 230px; }

/* Длинный пункт в одиночном списке (причины отклонения) — одна строка с многоточием, строки не слипаются. */
[data-single-selector] .option-list button { flex: 0 0 auto; display: block; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-align: left; }

.wallet-note { margin: 0; color: var(--text-75); font: 400 14px/20px var(--font); }
.wallet-note a { color: var(--blue); }

/* Аватарка с картинкой в «Моих каналах»: без синей подложки, иначе по краю виден пиксельный просвет. */
.my-channel-summary .my-channel-avatar:has(img), .my-channel-avatar:has(img) { background: var(--surface); }
/* Обложка без внутренней обводки: в каталоге это была серая рамка, на странице канала — зазор до края блока. */
.card-cover::before, .channel-view .detail-cover, .detail-cover, body.light-theme .card-cover::before, body.light-theme .detail-cover, body.light-theme .channel-view .detail-cover { box-shadow: none; }

/* Окно подтверждения действия. */
.confirm-modal .wallet-modal-card { display: grid; gap: 16px; }
.confirm-modal h2 { margin: 0; }
.confirm-text, .confirm-error { margin: 0; color: var(--text-75); font: 400 15px/21px var(--font); }
.confirm-error { color: var(--c-red-500); }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.confirm-actions button { height: 48px; border: 0; border-radius: var(--radius-md); font: 600 15px/20px var(--font); cursor: pointer; }
.confirm-cancel { color: var(--text-75); background: var(--surface-2); }
.confirm-ok { color: var(--c-white); background: var(--blue); }
.confirm-ok.is-danger { background: var(--c-red-500); }
.confirm-actions button:disabled { opacity: .5; cursor: default; }

/* Раскрытый список в настройках канала не обрезается краем карточки. */
.my-channel-card.open:has(.ad-time-slot-picker.open, [data-single-selector].open, .category-selector.open) { overflow: visible !important; z-index: 5; }

/* Кнопки креатива: компактные строки, квадрат цвета и квадратная корзина. */
.buyer-campaign-card .buyer-creative-inline-button-list { gap: 10px; }
.buyer-campaign-card .buyer-creative-inline-button-row { grid-template-columns: minmax(0, 220px) minmax(0, 220px) 44px 44px; gap: 8px; }
.buyer-campaign-card .buyer-creative-inline-button-row input { height: 44px; }
.buyer-campaign-card .buyer-creative-inline-button-row [data-buyer-button-remove] { width: 44px; height: 44px; }
.buyer-campaign-card .buyer-creative-inline-button-add { width: 220px; height: 44px; }
.buyer-button-color { position: relative; width: 44px; height: 44px; }
.buyer-button-color > summary { width: 44px; height: 44px; display: grid; place-items: center; list-style: none; cursor: pointer; background: var(--surface-2); border-radius: var(--radius-md); }
.buyer-button-color > summary::-webkit-details-marker { display: none; }
.buyer-button-color i { width: 20px; height: 20px; display: block; border-radius: 6px; }
.buyer-button-color > div { position: absolute; z-index: 20; right: 0; top: 50px; display: flex; gap: 4px; padding: 6px; background: var(--c-black); border-radius: var(--radius-md); box-shadow: 0 12px 24px rgba(0,0,0,.34); }
.buyer-button-color > div button { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.buyer-button-color > div button.selected { box-shadow: inset 0 0 0 2px var(--blue); }
.buyer-button-color i.style-default { background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.buyer-button-color i.style-success { background: #31b545; }
.buyer-button-color i.style-primary { background: #2f8cef; }
.buyer-button-color i.style-danger { background: #e53935; }
.buyer-creative-post-preview-buttons a.style-success { background: #31b545 !important; color: #fff !important; }
.buyer-creative-post-preview-buttons a.style-primary { background: #2f8cef !important; color: #fff !important; }
.buyer-creative-post-preview-buttons a.style-danger { background: #e53935 !important; color: #fff !important; }

/* Фон предпросмотра — плиткой постоянного размера: высота поста его не растягивает. */
.buyer-campaign-card .buyer-creative-post-preview, .safe-deal-order-card .buyer-creative-post-preview { background-size: 400px auto; background-position: center top; background-repeat: repeat; }

/* Текст на карточке креатива в карусели: тусклее и не до самого края. */
.buyer-company-carousel .buyer-creative-summary-text { color: var(--text-40); margin-bottom: 14px; }

/* Все корзины на сайте: серые, при наведении — красные на красной подложке. Значок один файл, цвет задаётся маской. */
img[src*="trash.svg"] { object-position: -9999px 0; background-color: var(--text-40); -webkit-mask: url("../assets/trash.svg") center / contain no-repeat; mask: url("../assets/trash.svg") center / contain no-repeat; transition: background-color var(--motion-fast) ease; }
button:not(:disabled):hover > img[src*="trash.svg"], button:focus-visible > img[src*="trash.svg"] { background-color: var(--c-red-500); }
button:not(:disabled):has(> img[src*="trash.svg"]):hover { background-color: var(--c-red-a12) !important; }
.catalog-settings-delete, .profile-affiliate-delete, .ad-time-slot-delete { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-md); }
.catalog-settings-delete { margin-left: 12px; }

/* История баланса: длинное название обрезается, номер заказа — чип ID; спокойная постраничная навигация. */
@media (min-width: 1101px) { .profile-history-row { grid-template-columns: 144px minmax(0, 1fr) 180px 64px; column-gap: 24px; } }
.profile-history-row > b { width: 100%; min-width: 0; display: flex; align-items: center; gap: 8px; }
.profile-history-row .history-text { min-width: 0; overflow: hidden; white-space: nowrap; }
.profile-history-footer { margin-top: 2px; font-size: 14px; color: var(--text-40); }  /* вместе с зазором страницы 16 px — вдвое меньше прежних 36 */
.profile-history-footer b { color: var(--text-75); font-weight: 500; }
.profile-history-footer nav { gap: 4px; }
.profile-history-footer nav i { min-width: 20px; text-align: center; font-style: normal; }
.profile-history-footer button { width: auto; min-width: 32px; height: 32px; padding: 0 8px; color: var(--text-75); background: transparent; box-shadow: none; border-radius: var(--radius-sm); font: 500 14px/18px var(--font); }
.profile-history-footer button:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
.profile-history-footer button.active { color: var(--text); background: var(--surface-2); }
.profile-history-footer button:disabled { opacity: .35; }

/* «Партнёр сервиса»: высотой с кнопку удаления, фон появляется при наведении; крестик — пока не партнёр, галочка — партнёр. */
.my-channel-awards { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.my-channel-awards img { width: 36px; height: 36px; }
/* Окно партнёрства: награда первого дня, дорожка из квадратов и приз. */
.partner-quest { display: grid; gap: 12px; }
.partner-reward { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface-2); border-radius: var(--radius-md); }
.partner-reward > i { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: var(--text-40); border: 2px dashed var(--line); border-radius: 12px; font: 700 16px/1 var(--font); font-style: normal; }
.partner-reward > span { display: grid; gap: 2px; }
.partner-reward b { color: var(--text); font: 600 14px/18px var(--font); }
.partner-reward small { color: var(--text-40); font: 400 12px/16px var(--font); }
.partner-reward.is-open > i { color: var(--c-white); border: 0; background: linear-gradient(135deg, #31b545, #7be08a); box-shadow: 0 6px 18px rgba(49,181,69,.35); }
.partner-reward.is-prize.is-open > i { background: linear-gradient(135deg, var(--orange), var(--yellow)); box-shadow: 0 6px 18px rgba(255,124,2,.35); }
.partner-track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.partner-track span { aspect-ratio: 1; display: grid; place-items: center; color: var(--text-40); background: var(--surface-2); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font: 700 14px/1 var(--font); }
.partner-track span.is-done { color: var(--c-white); background: linear-gradient(135deg, #31b545, #7be08a); box-shadow: 0 4px 12px rgba(49,181,69,.3); animation: partnerPop .35s var(--ease-out-soft) both; }
.partner-track span.is-current { color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); animation: partnerPulse 1.6s ease-in-out infinite; }
@keyframes partnerPop { from { transform: scale(.6); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@keyframes partnerPulse { 0%, 100% { background: var(--surface-2); } 50% { background: var(--c-blue-a12); } }
@media (prefers-reduced-motion: reduce) { .partner-track span { animation: none !important; } }

/* «Награды канала» и «Настройки рейтинга» в «Настройках»: строки как в справочниках; имя и номер — серые, число — синее. */
body.light-theme .catalog-settings-row .catalog-settings-chip.is-locked { background: var(--surface-2); }

/* Админские разделы в виде «Пользователей»: цена рядом с названием, статус и копируемый номер справа. */
.admin-card.profile-user-card, .admin-card.profile-user-card.open { max-height: none; }
.admin-card .profile-user-content, .admin-card.profile-user-card.open .profile-user-content { height: auto; display: grid; }
.admin-card .profile-user-content { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .42s var(--ease-out-expo), opacity var(--motion-modal) ease; }
.admin-card.profile-user-card.open .profile-user-content { grid-template-rows: 1fr; opacity: 1; }
.admin-card .profile-user-content > div { min-height: 0; overflow: hidden; }
.admin-card-price { margin-left: 16px; color: var(--text); white-space: nowrap; font: 700 15px/20px var(--font); }
.admin-card-side { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.admin-card .admin-card-side + .profile-user-toggle.my-channel-chevron { margin-left: 4px; }
.admin-card .profile-user-name { flex: 0 1 auto; }
.admin-card-body { padding: 16px 24px 24px; display: grid; gap: 12px; color: var(--text-75); font: 400 14px/18px var(--font); }
.admin-card-body h4 { margin: 6px 0 0; color: var(--text); font: 600 15px/20px var(--font); }
.admin-card-body ul { margin: 0; padding: 0; display: grid; gap: 6px; list-style: none; font-size: 13px; overflow-wrap: anywhere; }
.admin-card-body li span { margin-right: 10px; color: var(--text-40); }
.admin-rows { margin: 0; display: grid; gap: 8px; }
.admin-rows > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
.admin-rows dt { color: var(--text-40); }
.admin-rows dd { margin: 0; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.admin-rows a { color: var(--blue); }
.admin-card-body .admin-rating-lines li { display: flex; align-items: center; gap: 10px; }
.admin-card-body .admin-rating-lines li img { width: 28px; height: 28px; }
.admin-card-body .admin-rating-lines li span { flex: 1; margin: 0; color: var(--text-75); }
.admin-card-body .admin-rating-lines li b { color: var(--c-green-500); }
.admin-rating-empty { margin: 0; color: var(--text-40); }
.admin-order-block-review { display: flex; align-items: center; gap: 10px; cursor: pointer; }
@media (max-width: 720px) { .admin-rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .admin-rows dd { text-align: left; } }

/* «Администраторы»: поиск пользователя с выпадающими совпадениями и галочкой назначения. */
.administrator-search { display: grid; gap: 8px; }
.administrator-search .moderation-search { width: 100%; }
.administrator-results:empty { display: none; }
.administrator-results { display: grid; gap: 4px; max-height: 320px; overflow-y: auto; }
.administrator-result { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; background: var(--surface-2); border-radius: var(--radius-md); }
.administrator-result span { min-width: 0; flex: 1; display: grid; }
.administrator-result b { overflow: hidden; color: var(--text); white-space: nowrap; font: 600 14px/18px var(--font); }
.administrator-result small { overflow: hidden; color: var(--text-40); white-space: nowrap; font: 400 12px/16px var(--font); }
.administrator-result button { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; background: var(--c-blue-a12); border: 0; border-radius: var(--radius-md); cursor: pointer; }
.administrator-result button::before { content: ""; width: 16px; height: 12px; background: var(--blue); -webkit-mask: url('../assets/check-line.svg') center/contain no-repeat; mask: url('../assets/check-line.svg') center/contain no-repeat; }
.administrator-result button:disabled { opacity: .4; }
.administrator-result-empty { margin: 0; padding: 8px 4px; color: var(--text-40); font: 400 13px/18px var(--font); }

/* Галочек прав восемь: карточка администратора растёт по содержимому. */
.administrator-card.profile-user-card.open { max-height: 900px; }
.administrator-card.profile-user-card.open .profile-user-content { height: auto; }

/* Бейджи пользователей: маленькие значки справа от стажа на сервисе. */
.user-badge { width: 22px; height: 22px; flex: 0 0 22px; align-self: center; margin-left: 6px; }
/* Видимые зазоры равны зазору «имя — плашка времени» (8 px). У самих картинок по краям около 2 px пустоты,
   поэтому от плашки значок придвинут на эти 2 px, а значок к значку — на 4. */
.safe-deal-order-counterparty-row > .user-badge { margin-left: -2px; }
.safe-deal-order-counterparty-row > .user-badge + .user-badge { margin-left: -4px; }

/* Пост ещё ищут после срока: крестик стоит, а подпись этапа остаётся синей, как у текущего. */
.safe-deal-order-stage.is-failed.is-awaiting-late .safe-deal-order-stage-content p { color: var(--blue); }

/* Фактическое время в топе и в ленте; опоздавшая публикация — красным. */
/* Тот же размер и вид, что у зелёного чипа времени на этапе публикации; справа галочка. */
.safe-deal-order-actual-time { height: 36px; padding: 0 var(--safe-deal-placement-horizontal-padding); display: inline-flex; align-items: center; gap: var(--safe-deal-placement-clock-gap); color: var(--c-green-500); background: var(--c-green-a12); border-radius: 22px; font: 400 16px/20px var(--font); white-space: nowrap; }
.safe-deal-order-actual-time.is-failed { color: var(--c-red-500); background: var(--c-red-a12); }
.safe-deal-order-stage-row:has(.safe-deal-order-stage.is-completed) + .safe-deal-order-stage-row .safe-deal-order-actual-time { white-space: nowrap; }
.safe-deal-order-card:has(.safe-deal-order-stage.is-failed[data-safe-deal-stage="PLACEMENT_DEADLINE"]) .safe-deal-order-placement-confirmed-time { color: var(--c-red-500); }

/* Вопросик в окне добавления канала: ровно по центру строки шага. */
.channel-step .step-info { display: inline-grid; place-items: center; align-self: center; width: 20px; height: 20px; line-height: 0; cursor: pointer; }
.channel-step .step-info svg { display: block; width: 20px; height: 20px; }

/* Низ карточки заказа: слева помощник, справа кнопки с подписями. */
/* Облачко занимает всё, что осталось от кнопок, с широким зазором; высота — как у кнопок. */
.safe-deal-order-card .safe-deal-order-action-panel { min-height: 48px; gap: 56px; flex-wrap: nowrap; align-items: center; }
.safe-deal-order-card .safe-deal-order-action-panel-left { flex: 1 1 0; min-width: 0; }
.safe-deal-order-card .safe-deal-order-action-panel-right { flex: 0 0 auto; }
.safe-deal-order-card .safe-deal-order-action-panel-right:has(.safe-deal-order-actions:empty) { display: none; }
/* Без анимации появления: карточка перерисовывается при обновлении, и облачко прыгало. */
.safe-deal-assistant { max-width: 100%; min-width: 0; height: 48px; display: flex; align-items: center; }
.safe-deal-assistant-bubble { position: relative; box-sizing: border-box; flex: 0 1 auto; min-width: 0; max-width: 100%; height: 48px; padding: 0 16px; display: flex; align-items: center; color: var(--text-75); background: var(--surface-2); border-radius: 4px 16px 16px 16px; font: 400 14px/19px var(--font); }
/* Текст всегда в одну строку. Не помещается — ездит до конца и обратно; помещается — сдвиг равен нулю и он стоит. */
/* Облачко по ширине текста, но не шире свободного места; не помещается — текст едет туда и обратно на --marquee-shift (lib/ui/fade-overflow). */
.safe-deal-assistant-line { display: block; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; }
.safe-deal-assistant-line > .safe-deal-order-preview-hint-text { display: inline-block; width: max-content; white-space: nowrap; animation: safeDealMarquee 16s ease-in-out infinite alternate; }
.safe-deal-assistant-line:hover > .safe-deal-order-preview-hint-text { animation-play-state: paused; }
@keyframes safeDealMarquee { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(var(--marquee-shift, 0px)); } }
.safe-deal-assistant.is-alert .safe-deal-assistant-bubble { color: var(--text); background: rgba(255,124,2,.16); box-shadow: inset 0 0 0 1px rgba(255,124,2,.4); }
.safe-deal-order-card .safe-deal-order-actions { height: auto; min-height: 48px; flex-wrap: nowrap; gap: 10px; }
.safe-deal-order-card .safe-deal-order-actions button { white-space: nowrap; width: auto; min-width: 0; height: 48px; padding: 0 20px; font: 600 15px/20px var(--font); border-radius: var(--radius-md); cursor: pointer; transition: transform var(--motion-fast) ease, filter var(--motion-fast) ease, background-color var(--motion-fast) ease; }
.safe-deal-order-card .safe-deal-order-actions button:hover { filter: brightness(1.12); }
.safe-deal-order-card .safe-deal-order-actions button:active { transform: scale(.97); }
.safe-deal-order-card .safe-deal-order-actions .is-accept, .safe-deal-order-card .safe-deal-order-actions .is-confirm-completion { color: var(--c-white); background: var(--c-green-700); }
.safe-deal-order-card .safe-deal-order-actions .is-cancel-request-confirm { color: var(--c-white); background: var(--c-red-500); }
.safe-deal-order-card .safe-deal-order-actions .is-reject, .safe-deal-order-card .safe-deal-order-actions .is-seller-cancel, .safe-deal-order-card .safe-deal-order-actions .is-buyer-request { color: var(--c-red-500); background: var(--c-red-a12); }
.safe-deal-order-card .safe-deal-order-actions .is-cancel-request-reject, .safe-deal-order-card .safe-deal-order-actions .is-buyer-request-pending { color: var(--text-75); background: var(--surface-2); }
.safe-deal-order-card .safe-deal-order-actions-wrap.is-busy button { pointer-events: none; opacity: .6; }
.safe-deal-order-card .safe-deal-order-actions-wrap.is-busy .safe-deal-order-actions::before { content: ""; width: 18px; height: 18px; align-self: center; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: loaderSpin .75s linear infinite; }

/* Пост под этапами: ближе к блоку администратора, кнопка отправки — как в «Моих кампаниях». */
.safe-deal-order-card .safe-deal-order-preview-counterparty { margin-bottom: 14px; }
.safe-deal-order-preview-anchor > .safe-deal-order-publication-row > .safe-deal-order-send-post { flex: 1 1 auto; }

/* Параметры размещения: ровные плашки с подписью-значком. */
.safe-deal-order-card .safe-deal-order-placement-info { gap: 8px; margin-bottom: 24px; }
.safe-deal-order-card .safe-deal-order-placement-info-item { height: 36px; padding: 0 14px; background: var(--surface-2); border: 0; border-radius: var(--radius-md); }
.safe-deal-order-card .safe-deal-order-placement-info-item strong { color: var(--text); font: 600 14px/18px var(--font); }
body.light-theme .safe-deal-order-card .safe-deal-order-placement-info-item strong { color: var(--text); }
/* Четыре блока одной ширины. */
.safe-deal-order-card .safe-deal-order-placement-info-item { position: relative; width: 116px; padding: 0 6px; justify-content: center; }

/* ——— Корзина: новая компоновка позиции ———
   Шапка (канал и цена) → слева показатели одной ровной сеткой, справа формат → снизу панель «дата, время, кампания».
   Выбор позиции и удаление — маленькие квадраты на левом верхнем и правом нижнем углу карточки, с вырезом. */
.cart-card { gap: 14px; padding: 18px 20px 20px; }
.cart-card-head { align-items: center; }
.cart-card .cart-stats-row { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 14px; align-items: stretch; }
.cart-card .cart-metrics { width: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cart-card .cart-metrics .metric { height: auto; min-height: 46px; padding: 7px 12px; display: flex; flex-direction: column; justify-content: center; background: var(--surface); border: 0; border-radius: 0; }
.cart-card .cart-format { align-items: stretch; justify-content: center; gap: 8px; padding: 10px; background: var(--surface-2); border-radius: var(--radius-lg); }
.cart-card .cart-format > [data-cart-condition], .cart-card .card-slots.cart-slots { max-width: none; }
.cart-card .cart-fields { grid-template-columns: minmax(0, 196px) 96px minmax(0, 1fr); padding: 12px 14px 14px; background: var(--surface-2); border-radius: var(--radius-lg); }
@media (max-width: 900px) {
  .cart-card .cart-stats-row { grid-template-columns: minmax(0, 1fr); }
  .cart-card .cart-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-card .cart-fields { grid-template-columns: minmax(0, 1fr) 96px; }
  .cart-card .cart-fields .label-campaign { grid-area: 3 / 1 / 4 / 3; }
  .cart-card .cart-fields .cart-campaign, .cart-card .cart-fields [data-cart-campaign] { grid-column: 1 / -1; }
}

/* «Добавить канал на Advix»: при наведении подпись рассыпается на частицы. */
.add-channel .scatter-label { display: inline-block; white-space: nowrap; transition: none; }
.add-channel .scatter-label > i { display: inline-block; font-style: normal; transition: transform .45s cubic-bezier(.2, .7, .3, 1), opacity .4s ease, filter .4s ease; transition-delay: var(--wait); }
.add-channel:hover .scatter-label { opacity: 1; transform: none; }
.add-channel:hover .scatter-label > i { opacity: 0; filter: blur(3px); transform: translate(var(--dx), var(--dy)) rotate(var(--turn)) scale(.25); }
@media (prefers-reduced-motion: reduce) { .add-channel .scatter-label > i { transition: opacity .2s ease; transition-delay: 0s; } .add-channel:hover .scatter-label > i { transform: none; filter: none; } }

/* Разделы фильтров сворачиваются плавно: высота идёт за содержимым, без скачка. */
.filters .filter-section, .filters .range-filter, .filters .extras { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 20px 1fr; transition: grid-template-rows .3s var(--ease-out-soft); }
.filters .collapsed { height: auto; grid-template-rows: 20px 0fr; overflow: visible; }
.filters .filter-section > .filter-content, .filters .range-filter > .filter-content, .filters .extras > :not(.section-title) { min-height: 0; max-height: none; transition: opacity .22s ease, margin-top .3s var(--ease-out-soft); }
.filters .collapsed > :not(.section-title) { max-height: none; margin-top: 0; opacity: 0; overflow: hidden; transform: none; pointer-events: none; }

/* ——— Светлая тема: чисто белый фон с серыми значками ———
   Картинка фона — белые значки на чёрном: в светлой теме она переворачивается (белая подложка, серые значки). */
html:has(body.light-theme), body.light-theme, body.light-theme .site { --bg: #fff; background: #fff; }
body.light-theme .site::before { filter: invert(1) grayscale(1); opacity: .13; }
/* На белом фоне карточки отделяются тонкой линией и мягкой тенью. */
body.light-theme .channel-card, body.light-theme .filters, body.light-theme .profile-menu-card, body.light-theme .profile-card,
body.light-theme .my-channel-card, body.light-theme .buyer-campaign-card, body.light-theme .cart-card, body.light-theme .cart-summary-card,
body.light-theme .profile-user-card, body.light-theme .admin-review, body.light-theme .catalog-settings-block, body.light-theme .sub-card,
body.light-theme .profile-balance-history, body.light-theme .profile-partner-card, body.light-theme .integration-card, body.light-theme .moderation-side-card,
body.light-theme .moderation-stat { box-shadow: 0 0 0 1px var(--line), 0 6px 22px rgba(9, 11, 19, .06); }

/* Юридические документы: одна читаемая колонка. */
.page-shell.legal-page { display: block; }
.legal-card { max-width: 860px; margin: 24px auto 48px; padding: 40px 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--text-75); font: 400 15px/24px var(--font); overflow-wrap: anywhere; }
.legal-card h1 { margin: 0 0 4px; color: var(--text); font: 600 28px/34px var(--font); }
.legal-card h2 { margin: 32px 0 12px; color: var(--text); font: 600 18px/24px var(--font); }
.legal-card p { margin: 0 0 10px; }
.legal-card .legal-updated { margin-bottom: 20px; color: var(--text-40); font-size: 13px; }
.legal-number { color: var(--text-40); }
@media (max-width: 600px) { .legal-card { margin: 16px 0 32px; padding: 24px 18px; } }

/* Лендинг. */
.page-shell.landing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding-bottom: 56px; }
.landing h1 { margin: 0 0 18px; color: var(--text); font: 700 44px/52px var(--font); }
.landing h2 { margin: 0 0 20px; color: var(--text); font: 600 24px/30px var(--font); }
.landing ul, .landing ol { margin: 0; padding: 0; list-style: none; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: 48px 0 0; }
.landing-hero p { max-width: 620px; margin: 0 0 28px; color: var(--text-75); font: 400 18px/28px var(--font); }
.landing-hero img { width: 420px; height: auto; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.landing-actions a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: var(--radius-md); font: 600 16px/20px var(--font); text-decoration: none; transition: filter var(--motion-base) ease, background-color var(--motion-base) ease; }
.landing-primary { color: #fff; background: var(--blue); }
.landing-primary:hover { filter: brightness(1.1); }
.landing-secondary { color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.landing-secondary:hover { background: var(--c-blue-a12); }
.page-shell.landing .landing-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.landing-numbers li, .landing-benefits li, .landing-way, .landing-faq details, .landing-final { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.landing-numbers li { display: grid; gap: 6px; padding: 20px; color: var(--text-75); font: 400 14px/20px var(--font); }
.landing-numbers b { color: var(--blue); font: 700 28px/34px var(--font); }
.landing-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.landing-way { display: flex; flex-direction: column; gap: 4px; padding: 28px; }
.landing .landing-way ol { counter-reset: step; display: grid; gap: 18px; margin-bottom: 22px; }
.landing-way li { counter-increment: step; position: relative; display: grid; gap: 4px; padding-left: 44px; color: var(--text-75); font: 400 15px/22px var(--font); }
.landing-way li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--blue); background: var(--c-blue-a12); font: 600 14px/1 var(--font); }
.landing-way li b, .landing-benefits b { color: var(--text); font-weight: 600; }
.landing-way > a { margin-top: auto; align-self: flex-start; color: var(--blue); font: 600 16px/20px var(--font); }
.landing .landing-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landing-benefits li { display: grid; align-content: start; gap: 8px; padding: 22px; color: var(--text-75); font: 400 15px/22px var(--font); }
.landing-faq details { margin-bottom: 10px; padding: 0 20px; }
.landing-faq summary { padding: 18px 0; color: var(--text); font: 600 16px/22px var(--font); cursor: pointer; }
.landing-faq details p { margin: 0 0 18px; color: var(--text-75); font: 400 15px/23px var(--font); }
.landing-final { display: grid; justify-items: center; gap: 4px; padding: 36px 20px; text-align: center; }
@media (max-width: 1100px) { .landing-hero img { width: 300px; } .page-shell.landing .landing-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .landing .landing-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .landing h1 { font-size: 30px; line-height: 38px; } .landing-hero { grid-template-columns: minmax(0, 1fr); padding-top: 24px; } .landing-hero img { display: none; } .landing-ways, .landing .landing-benefits { grid-template-columns: minmax(0, 1fr); } .landing-way { padding: 20px; } }

/* Маркировка рекламы: блок в редакторе креатива, метка в предпросмотре и окно данных стороны. */
.buyer-marking { display: grid; gap: 14px; margin-top: 4px; }
.buyer-marking-toggle { display: inline-flex; align-items: center; gap: 10px; justify-self: start; color: var(--text); font: 600 15px/20px var(--font); cursor: pointer; }
.buyer-marking-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.buyer-marking-party { justify-self: start; padding: 0; color: var(--blue); background: none; border: 0; border-bottom: 1px dotted currentColor; font: 500 14px/18px var(--font); cursor: pointer; }
.buyer-marking-party.is-missing { color: #e0554f; }
.buyer-marking-field { display: grid; gap: 8px; min-width: 0; color: var(--text-75); font: 400 14px/18px var(--font); }
.buyer-marking-field select { width: 100%; min-width: 0; padding: 0 48px 0 16px; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; background: var(--surface-2) url('../assets/select-chevron.svg') no-repeat right 18px center; cursor: pointer; }
.wallet-switch.buyer-marking-switch button { height: auto; min-height: 40px; padding: 6px 8px; font-size: 14px; line-height: 18px; text-align: center; }
.wallet-switch.buyer-marking-switch button:disabled { opacity: .4; cursor: not-allowed; }
.buyer-creative-post-preview-media { position: relative; }
.buyer-preview-mark { position: absolute; z-index: 1; max-width: 80%; padding: 3px 7px; color: #fff; background: rgba(0,0,0,.62); border-radius: 5px; font: 400 11px/15px var(--font); overflow-wrap: anywhere; }
.buyer-preview-mark.is-top-left { top: 8px; left: 8px; }
.buyer-preview-mark.is-top-right { top: 8px; right: 8px; }
.buyer-preview-mark.is-bottom-left { bottom: 8px; left: 8px; }
.buyer-preview-mark.is-bottom-right { right: 8px; bottom: 8px; }
.buyer-preview-disclosure { padding-top: 0; opacity: .75; }
.party-modal .wallet-modal-card { position: relative; }
.party-fields { display: grid; gap: 14px; }
.party-error { margin: 0; color: #e0554f; font: 400 14px/18px var(--font); }
.settings-labeling-mode { padding: 0; color: var(--blue); background: none; border: 0; border-bottom: 1px dotted currentColor; border-radius: 0; font: inherit; cursor: pointer; }
.integration-list { display: grid; grid-template-columns: repeat(2, minmax(0, 515px)); align-items: start; gap: 16px; }
.integration-column { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1100px) { .integration-list { grid-template-columns: minmax(0, 515px); } }
.integration-check { display: flex; align-items: center; gap: 10px; color: var(--text-75); font: 400 14px/18px var(--font); cursor: pointer; }

/* Лендинг и документы — не вкладки каталога: полоска под пунктом меню не нужна. */
.site:has(> .landing) .catalog-menu::after, .site:has(> .legal-page) .catalog-menu::after { display: none; }
/* Светлая тема: у выбранного формата на карточке должна быть видна подложка. */
body.light-theme .card-slots button.selected { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

/* Отчёты о рекламе, подсказки маркировки и отчёт в «Проверке заказов». */
.buyer-campaign-expanded-actions .buyer-campaign-reports { color: var(--blue); background: none; box-shadow: none; }
.reports-modal .wallet-modal-card { position: relative; width: min(640px, calc(100vw - 32px)); }
.reports-list { display: grid; gap: 10px; max-height: 60vh; overflow: auto; }
.reports-row { display: grid; gap: 6px; padding: 14px 16px; background: var(--surface-2); border-radius: var(--radius-md); }
.reports-row p { margin: 0; color: var(--text-75); font: 400 13px/18px var(--font); overflow-wrap: anywhere; }
.reports-row-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.reports-row-head strong { color: var(--text); font: 600 15px/20px var(--font); }
.reports-status { color: var(--text-40); font: 500 12px/18px var(--font); }
.reports-status.is-accepted, .reports-status.is-sent { color: var(--blue); }
.reports-status.is-error { color: #e0554f; }
.reports-download { justify-self: start; padding: 0; color: var(--blue); background: none; border: 0; border-bottom: 1px dotted currentColor; font: 500 13px/18px var(--font); cursor: pointer; }
.settings-labeling-row { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.party-note { margin: 0; color: var(--text-40); font: 400 13px/18px var(--font); }
.party-fields input[readonly] { color: var(--text-40); cursor: default; }
.cart-marking-hint, .integration-hint { display: inline-flex; vertical-align: middle; margin-left: 6px; color: #e0554f; cursor: pointer; }
.cart-marking-hint svg { width: 16px; height: 16px; }
/* Значок «?» не должен менять высоту подписи «Кампания»: иначе при его появлении строка полей съезжает вниз. */
.cart-field-label .cart-marking-hint { height: 15px; align-items: center; vertical-align: top; }
.integration-hint { color: var(--text-40); }
.admin-order-report { display: grid; gap: 8px; }
.admin-order-report p { margin: 0; overflow-wrap: anywhere; }
.admin-order-report > div { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-order-report input { height: 40px; padding: 0 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.admin-order-report button { height: 40px; padding: 0 16px; color: #fff; background: var(--blue); border-radius: var(--radius-sm); font: 600 14px/18px var(--font); }
.admin-order-report button:disabled { opacity: .5; }

/* Админские карточки: сумма рядом с названием, статус высотой с чип номера, цвета по смыслу. */
.admin-card-amount { margin-left: 12px; }
.admin-card-side .admin-order-badge, .admin-card-side .ui-chip { flex: 0 0 auto; height: 36px; margin: 0; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font: 500 14px/18px var(--font); }
.admin-order-badge.is-active { color: var(--c-green-500); background: var(--c-green-a12); }
.admin-order-badge.is-completed { color: var(--c-blue-500); background: var(--c-blue-a12); }
.admin-order-badge.is-cancelled { color: var(--c-red-500); background: var(--c-red-a12); }
.admin-order-badge.is-paused { color: var(--c-yellow-500); background: rgba(255, 199, 0, .12); }
body.light-theme .admin-order-badge.is-paused { color: var(--text-orange); }
.admin-review .profile-user-head { padding-right: 20px; }
.admin-review-body { padding: 16px 24px 24px; display: grid; gap: 14px; justify-items: start; }
.admin-review-rating { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-40); font: 400 13px/18px var(--font); }
.safe-deal-channel-review-stars.is-readonly .safe-deal-channel-review-star { cursor: default; }
.admin-review-body p { margin: 0; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; font: 400 15px/21px var(--font); }
@media (max-width: 720px) { .admin-card-side { margin-right: 8px; } .admin-card-amount { margin-left: 8px; } }

/* История баланса: текст операции не обрезается, длинное название переносится на новую строку. */
/* Строка истории всегда одна: длинный текст тает справа (.is-clipped), номер заказа остаётся рядом. */
.profile-history-row > b { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.profile-history-row .history-text { flex: 0 1 auto; }
.profile-history-list { gap: 6px; }
.profile-history-row { min-height: 30px; }
.profile-history-row .ui-chip { height: 30px; }
@media (min-width: 1101px) { .profile-history-row { grid-template-columns: 128px minmax(0, 1fr) max-content 48px; column-gap: 16px; } }
.profile-history-row > time { white-space: nowrap; }

/* «Партнёр сервиса»: значок справа от подписи, без кружка — наша зелёная галочка или такой же тонкий крестик. */

/* «Пользователи»: бейджи, выданные вручную. */
.profile-user-badges { margin: 0 24px 24px; display: grid; gap: 8px; color: var(--text-40); font: 400 14px/18px var(--font); }
.profile-user-badges > div { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-user-badges button { height: 40px; padding: 0 12px 0 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--text-75); background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-md); font: 500 14px/18px var(--font); cursor: pointer; }
.profile-user-badges button img { width: 26px; height: 26px; opacity: .5; }
.profile-user-badges button.selected { color: var(--text); background: var(--c-blue-a12); border-color: var(--c-blue-500); }
.profile-user-badges button.selected img { opacity: 1; }

/* Во время подбора времени в корзине никакой надписи: она только для экранных дикторов. */
.cart-placement-message[data-cart-placement-loading] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* «Настройки»: название подстраивается под текст, предел — как у причины отклонения; длинное тает к краю (без «…»).
   Значок «выдаётся автоматически» — внутри плашки. */
/* Во всех блоках настроек (категории, языки, форматы, причины, награды, рейтинг, бейджи) строка занимает всю ширину блока,
   а чип — столько, сколько нужно его названию. Название длиннее остатка строки обрезается с затуханием (lib/ui/fade-overflow).
   Запас справа задан ниже. */
/* Справа от последнего значка остаётся вдвое больше места, чем слева от номера (поля блока 24 px слева, 24 + 24 справа):
   всё, что длиннее, тает к краю чипа, а не выходит за границу блока. */
.catalog-settings-list { grid-template-columns: minmax(0, 1fr); }
.catalog-settings-block, .catalog-settings-column { min-width: 0; }
.catalog-settings-row { width: 100%; min-width: 0; box-sizing: border-box; padding-right: 24px; }
@media (max-width: 900px) { .catalog-settings-row { padding-right: 16px; } }  /* поля блока 16 px: справа 16 + 16 */
.catalog-settings-chip { flex: 0 1 auto; max-width: none; }
.catalog-settings-chip span { max-width: none; }
.catalog-settings-order, .catalog-settings-edit, .catalog-settings-delete { flex-shrink: 0; }

/* «Администраторы»: поиск и статистика — отдельные блоки, как в «Пользователях»; пустые контейнеры не занимают места. */
.administrator-feedback:empty { display: none; }

/* PRO: кольцо аватарки в цвет шильдика, в каталоге и на странице канала. */
.channel-card .card-pro + .card-avatar { padding: 1.5px; border-width: 10.5px; background: linear-gradient(90deg,var(--orange),var(--yellow)) padding-box; }
.channel-card .card-pro + .card-avatar > .avatar-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: var(--avatar-bg); border-radius: var(--radius-round); }
.channel-view .detail-avatar:has(> .detail-pro) { padding: 1.5px; background: linear-gradient(90deg,var(--orange),var(--yellow)) padding-box; }

/* Чип: ID, номер заказа, @имя. .copy-chip — копируется по клику. */
.ui-chip { flex: 0 0 auto; height: 36px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; color: var(--c-blue-500); background: var(--c-blue-a12); border: 0; border-radius: var(--radius-sm); font: 500 14px/18px var(--font); white-space: nowrap; cursor: pointer; transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease; }
.ui-chip.id-chip { min-width: 52px; }
.copy-chip .copy-success { display: none; align-items: center; justify-content: center; }
.copy-chip .copy-success img { width: 16px; height: 16px; }
.copy-chip.copied { color: var(--c-white); background: var(--c-blue-500); }
.copy-chip.copied .copy-default { display: none; }
.copy-chip.copied .copy-success { display: flex !important; } /* общее .copy-success скрыто с !important */
body.light-theme .ui-chip:not(.copied) { color: var(--text-blue); }

/* Меню профиля раскрывается так же, как фильтры каталога: высота считается строками сетки.
   Анимация включается только после клика, чтобы свёрнутые группы не дёргались при загрузке. */
/* Шапка выходит на 4 px вверх за поле карточки, поэтому её строка — 34 px; свёрнутая карточка равна шапке. */
.profile-menu-card:not(.no-title) { grid-template-rows: 34px 1fr; gap: 0; }
.profile-menu-card:not(.no-title) .profile-menu-title { margin-bottom: 0; }
.profile-menu-card:not(.no-title) .profile-menu-items > button:first-child { margin-top: 4px; }
.profile-menu-card:not(.no-title) .profile-menu-items::before { top: 4px; }
.profile-menu-card.collapsed:not(.no-title) { grid-template-rows: 34px 0fr; padding-bottom: 0; }
.profile-menu-card.collapsed .profile-menu-items { visibility: hidden; opacity: 0; pointer-events: none; }
.profile-menu-card.is-animated { transition: grid-template-rows .3s var(--ease-out-soft), padding-bottom .3s var(--ease-out-soft); }
.profile-menu-card.is-animated .profile-menu-items { transition: opacity .3s var(--ease-out-soft), visibility .3s; }
.profile-menu-card:not(.is-animated), .profile-menu-card:not(.is-animated) .profile-menu-items { transition: none; }

/* Единое затухание обрезанного текста (классы ставит lib/ui/fade-overflow.ts). */
.is-clipped { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.is-clipped-bottom { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); }
.cab-sk-integration { height: 220px; border-radius: var(--radius-lg); }

/* Пост в предпросмотре — как облачко в канале: ровные поля вокруг текста, левый нижний угол без большого скругления. */
.buyer-creative-post-preview-card { border-bottom-left-radius: 4px; }
.buyer-creative-post-preview-card .buyer-creative-post-preview-text { padding: 10px 14px; font: 400 15px/20px var(--font); }
.buyer-creative-post-preview-card .buyer-creative-post-preview-text + .buyer-preview-disclosure { padding-top: 0; }

/* Наш чекбокс — один на весь сайт. */
input[type="checkbox"].ui-check { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: 0 0 20px; margin: 0; background: transparent; border: 1px solid var(--c-ink-500); border-radius: 4px; cursor: pointer; transition: border-color var(--motion-fast) ease; }
input[type="checkbox"].ui-check:checked { background: url('../assets/check-box.svg') center / 20px 20px no-repeat; border-color: transparent; }
input[type="checkbox"].ui-check:disabled { opacity: .45; cursor: default; }
body.light-theme input[type="checkbox"].ui-check:not(:checked) { border-color: var(--line); }

/* «В архив» рядом с корзиной: такая же кнопка-значок, но без красного. */
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-expanded-actions [data-buyer-campaign-archive]:not(:disabled):hover { background: var(--surface-2); }



/* Окно «Добавить канал»: «?» кончается на одной линии с полями и не подсвечивается при наведении. */
.add-channel-card .channel-step .step-info { right: 24px; opacity: 1; background: none; box-shadow: none; outline-offset: 2px; }
.add-channel-card .channel-step .step-info:hover { color: var(--text-75); background: none; opacity: 1; }
/* Расстояние от текста ошибки до «?» на треть меньше. */
.submit-channel .channel-diagnostic-hint { margin-left: -1px; } /* вместе с gap кнопки и полем значка: 20 → 14 px */
.submit-channel .channel-diagnostic-hint:hover { opacity: .9; background: none; }

/* Корзина на карточке креатива: меняется только цвет значка, чёрная подложка остаётся. */
.buyer-company-carousel .buyer-creative-cover-actions > button:hover:not(:disabled) { background: var(--c-black) !important; }


/* Индикатор вкладки заходит на 1 px ниже шапки: иначе под ним виден просвет. */
.catalog-menu::after { bottom: -1px; height: 4px; z-index: 3; }

/* Награды, рейтинг и бейджи: те же правила, что у остальных блоков; длинное название в одну строку и тает к краю (lib/ui/fade-overflow).
   Значок отделён с обеих сторон тем же зазором, что и карандаш от названия в «Категориях»; карандаш — того же размера. */
.catalog-settings-rating-row { width: 100%; }
.catalog-settings-row .catalog-settings-chip.is-locked, .catalog-settings-row.editing .catalog-settings-chip.is-locked { display: inline-flex; min-width: 0; max-width: none; flex: 0 1 auto; padding: 0 12px; justify-content: flex-start; color: var(--text-75); background: rgba(39,39,47,.5); }
body.light-theme .catalog-settings-row .catalog-settings-chip.is-locked { background: var(--surface-2); }
.catalog-settings-rating-row .catalog-settings-chip.is-locked > span { min-width: 0; max-width: none; overflow: hidden; white-space: nowrap; }
.catalog-settings-rating-row .catalog-settings-order { flex: 0 0 68px; }
.catalog-settings-rating-row .rating-award-icon { width: 36px; height: 36px; flex: 0 0 36px; margin-left: 20px; }
.catalog-settings-rating-row .rating-award-icon.is-badge { width: 28px; height: 28px; flex-basis: 28px; }
.catalog-settings-rating-row .catalog-settings-chip.is-value, .catalog-settings-rating-row .catalog-settings-edit-input { width: 64px !important; flex: 0 0 64px; margin-left: 4px; padding: 0 8px; justify-content: center; text-align: center; }
.catalog-settings-rating-row .rating-award-icon ~ .catalog-settings-chip.is-value, .catalog-settings-rating-row .rating-award-icon ~ .catalog-settings-edit-input { margin-left: 20px; }
.catalog-settings-rating-row .catalog-settings-chip.is-value span { max-width: none; }
.catalog-settings-rating-row .catalog-settings-edit { width: 20px; height: 20px; flex: 0 0 20px; margin-left: 20px; }
.catalog-settings-rating-row.editing .catalog-settings-chip.is-value { display: none; }
.rating-auto-mark { width: 16px; height: 16px; flex: 0 0 16px; background: var(--text-40); -webkit-mask: url('../assets/auto-status.png') center/contain no-repeat; mask: url('../assets/auto-status.png') center/contain no-repeat; }

/* Выдача ручных наград каналу — те же кнопки, что выдача бейджей пользователю. */
.profile-user-badges.is-channel { margin: 16px 0 0; }
.profile-user-badges button:disabled { cursor: default; opacity: .6; }

/* «Партнёр сервиса»: серая с обводкой и крестиком, под курсором синяя; полученная награда — зелёная с галочкой. */
.my-channel-settings-footer .my-channel-partner { height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 10px; color: var(--text-40); background: transparent; border: 1px solid currentColor; border-radius: var(--radius-md); font: 600 14px/18px var(--font); cursor: pointer; transition: background-color var(--motion-base) ease, border-color var(--motion-base) ease, color var(--motion-base) ease; }
.my-channel-settings-footer .my-channel-partner:hover { color: var(--c-white); background: var(--blue); border-color: var(--blue); }
.my-channel-settings-footer .my-channel-partner.is-active { color: var(--c-green-500); border-color: var(--c-green-500); }
.my-channel-settings-footer .my-channel-partner.is-active:hover { background: var(--c-green-a12); }
.my-channel-partner i { order: 2; width: 15px; height: 15px; background: currentColor; -webkit-mask: url('../assets/cross-line.svg') center / 12px 12px no-repeat; mask: url('../assets/cross-line.svg') center / 12px 12px no-repeat; }
.my-channel-partner.is-active i { -webkit-mask: url('../assets/check-line.svg') center / 15px 11px no-repeat; mask: url('../assets/check-line.svg') center / 15px 11px no-repeat; }
body.light-theme .my-channel-settings-footer .my-channel-partner:not(:hover):not(.is-active) { color: var(--text-75); }
body.light-theme .my-channel-settings-footer .my-channel-partner.is-active { color: var(--text-green); border-color: var(--text-green); }

/* Данные для маркировки — значок «i» в круге сразу после подписи. */
.settings-labeling-party { justify-self: start; width: 20px; height: 20px; padding: 0; display: grid; place-items: center; color: var(--text-40); background: transparent; border: 1.5px solid currentColor; border-radius: 50%; font: 700 12px/1 var(--font); cursor: pointer; }
.settings-labeling-party:hover { color: var(--blue); }

/* Три набора бейджей идут друг под другом; заслуженный виден в полную силу, хотя не нажимается. */
.profile-user-badges + .profile-user-badges { margin-top: -8px; }
.profile-user-badges button.is-earned:disabled { opacity: 1; }

/* Награды канала под датами: тот же блок, что и даты. */
.channel-awards { width: 314px; max-width: 100%; box-sizing: border-box; margin: 12px 0 0; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; background: #000003; border-radius: var(--radius-lg); }
.channel-awards img { width: 44px; height: 44px; display: block; }
body.light-theme .channel-awards { background: var(--surface); }

/* Корзина: «заказов» и «оценка» — подпись над значением, как у остальной статистики. */
.cart-card .cart-metrics .metric-orders, .cart-card .cart-metrics .metric-score { grid-column: auto; height: auto; flex-direction: column; justify-content: center; align-items: flex-start; }
.cart-card .cart-metrics .metric-orders small, .cart-card .cart-metrics .metric-score small { margin-left: 0; }

/* Галочка выбора сдвинута от угла внутрь карточки; удаление — на правом нижнем углу, под курсором красное целиком. */
.cart-list .cart-card .cart-corner-check, .cart-list .cart-card .cart-sk-check.cart-corner-check { left: -4px; top: -4px; width: 22px; height: 22px; }
.cart-list .cart-card .cart-corner-check input[type="checkbox"] { width: 22px; height: 22px; flex-basis: 22px; border-radius: 8px; }
.cart-list .cart-card .cart-corner-check input[type="checkbox"]:checked { background-size: 22px 22px; }
.cart-card .cart-fields .cart-remove, .cart-card .cart-fields .cart-sk-remove { position: absolute; grid-area: auto; z-index: 3; right: -10px; bottom: -10px; width: 28px; height: 28px; color: var(--text-40); background: var(--surface); border: 1px solid var(--c-ink-500); border-radius: 9px; box-shadow: 0 0 0 3px var(--c-ink-950); transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease; }
.cart-card .cart-fields .cart-remove:hover { color: var(--c-red-500); background: var(--surface); border-color: var(--c-red-500); }
.cart-remove-icon { width: 13px; height: 14px; display: block; background: currentColor; -webkit-mask: url('../assets/trash.svg') center / contain no-repeat; mask: url('../assets/trash.svg') center / contain no-repeat; }
body.light-theme .cart-card .cart-fields .cart-remove { box-shadow: 0 0 0 3px var(--surface-2); }
.cart-remove { color: var(--text-40); }
.cart-remove:hover { color: var(--c-red-500); }
.cart-remove-icon { width: 18px; height: 18px; }
.cart-card .cart-fields .cart-remove-icon { width: 13px; height: 14px; }

@media (max-width: 760px) {
  .safe-deal-order-card .safe-deal-order-action-panel { flex-wrap: wrap; gap: 14px; }
  .safe-deal-order-card .safe-deal-order-action-panel-left, .safe-deal-order-card .safe-deal-order-action-panel-right { flex: 1 1 100%; }
  .safe-deal-order-card .safe-deal-order-actions { flex-wrap: wrap; }
}

/* Серые строки на месте списка, пока он грузится. */
.sk-rows { width: 100%; display: grid; gap: 8px; align-content: start; }
.sk-rows > .sk-row { height: 84px; border-radius: var(--radius-pill); }
.sk-rows.is-compact > .sk-row { height: 48px; border-radius: var(--radius-md); }
.share-grant-skeleton { display: block; width: 100%; height: 40px; border-radius: var(--radius-md); }
.settings-skeleton { height: 240px; border-radius: var(--radius-lg); }
.safe-deal-order-card ~ .sk-rows, [data-safe-deal-orders-root] > .sk-rows { max-width: 1046px; }
/* В админских разделах колонка списка у́же страницы: серые карточки не должны растягиваться на всю ширину. */
.profile-users-list .cab-sk-pills, .moderation-list .cab-sk-pills { width: 100%; }
.profile-users-list .cab-sk-pills .my-channel-card, .moderation-list .cab-sk-pills .my-channel-card { width: 100%; min-width: 0; }
.cart-slots-skeleton { display: block; width: 100%; height: 40px; border-radius: var(--radius-md); background: var(--surface); }
.history-channel-link { color: var(--blue); text-decoration: none; }
.history-channel-link:hover { text-decoration: underline; }

/* Пополнение: способ оплаты списком (под полем суммы), цена, ожидание оплаты. В поле суммы справа — переключатель валюты и значок. */
.wallet-input .currency-switch { flex: 0 0 38px; cursor: pointer; }
body.light-theme .wallet-input .currency-switch { background: rgba(14,16,28,.14); }
.wallet-select-trigger { width: 100%; height: 52px; padding: 0 16px; display: flex; align-items: center; gap: 10px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); text-align: left; cursor: pointer; }
.wallet-select.open .wallet-select-trigger, .wallet-select-trigger:focus-visible { border-color: var(--blue); }
.wallet-select-trigger b { flex: 1; min-width: 0; font: 600 16px/20px var(--font); }
.wallet-select-trigger i, .wallet-select-list i { color: var(--blue); font: 600 14px/18px var(--font); font-style: normal; white-space: nowrap; }
.wallet-select-chevron { width: 9px; height: 5px; flex: 0 0 9px; background: url('../assets/chevron-down.svg') center/contain no-repeat; transition: transform var(--motion-base) ease; }
.wallet-select.open .wallet-select-chevron { transform: rotate(180deg); }
.wallet-select { position: relative; }
/* Список ложится поверх окна (как выпадающие списки каталога), а не раздвигает его. */
.wallet-select-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5; box-shadow: 0 12px 32px rgba(0,0,0,.35); padding: 4px; display: grid; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); }
.wallet-select-list button { width: 100%; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text); border-radius: 8px; text-align: left; cursor: pointer; }
.wallet-select-list button:hover, .wallet-select-list button.selected { background: var(--c-blue-a12); }
.wallet-select-list span { display: grid; gap: 2px; }
.wallet-select-list b { font: 600 15px/19px var(--font); }
.wallet-select-list small { color: var(--text-75); font: 400 13px/16px var(--font); }
.wallet-method-skeleton { display: block; height: 52px; border-radius: var(--radius-md); }
.wallet-quote { margin: 0; display: flex; align-items: baseline; gap: 8px; color: var(--text-75); font: 400 14px/20px var(--font); }
.wallet-quote b { color: var(--text); font: 600 20px/24px var(--font); }
.wallet-quote small { color: var(--text-40); font: 400 13px/16px var(--font); }
.wallet-center { text-align: center; }
.wallet-success { color: var(--c-green-500); font-weight: 600; }
.wallet-error { color: var(--c-red-500); }
.wallet-link-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.wallet-waiting { width: 22px; height: 22px; margin: 0 auto; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: loaderSpin .75s linear infinite; }

/* Смена страницы истории баланса: строки остаются, пока грузятся новые. */
.profile-history-list { transition: opacity .15s ease; }
.profile-history-list.is-loading { opacity: .5; pointer-events: none; }

/* Админка: партнёрка пользователя (цвета из переменных темы: работают и в светлой) */
.profile-user-partner { display: grid; gap: 8px; margin-top: 12px; }
.profile-user-referral-line { color: var(--text-75); font: 500 13px/18px var(--font); }
.profile-user-referral-id { color: var(--text-50, var(--text-75)); }
.profile-user-referral-list { display: flex; flex-wrap: wrap; gap: 6px; color: var(--text-75); font: 500 12px/16px var(--font); }
.profile-user-referral-list span { padding: 4px 8px; background: var(--surface-2); border-radius: var(--radius-md); }
.profile-user-referral-clear { justify-self: start; height: 32px; padding: 0 12px; color: var(--text-75); background: var(--surface-2); border-radius: var(--radius-md); font: 500 13px/16px var(--font); }
.profile-user-partner .profile-user-referral { grid-template-columns: minmax(200px, 1fr) 120px; }

.wallet-select-list button.unavailable { opacity: .5; cursor: default; }
.wallet-select-list button.unavailable:hover { background: transparent; }
.wallet-input .currency-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.wallet-total { height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); box-sizing: border-box; }
.wallet-total b { min-width: 0; color: var(--text); font: 600 18px/22px var(--font); white-space: nowrap; }
.wallet-total small { min-width: 0; color: var(--text-40); font: 400 12px/15px var(--font); text-align: right; }
