/* Базовые переменные, шрифты, ресет, шапка, фильтры каталога, карточки каналов. */
/* Порядок подключения важен: файл идёт первым, дальше каскад переопределяет его. */
/* Запасной шрифт с размерами 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;
}

:root {
  --bg: #05070D;
  --black: #05050D;
  --surface: #1B1B23;
  --surface-2: #27272F;
  --line: #2F2F37;
  --blue: #1E55F9;
  --cyan: #00A5E9;
  --orange: #FF7C02;
  --yellow: #FFC700;
  --red: #E62929;
  --text: #FFFFFF;
  --text-75: rgba(255,255,255,.75);
  --text-40: rgba(255,255,255,.4);
  --font: 'Inter', 'Inter Fallback', Arial, sans-serif;
}
body.light-theme {
  --bg: #F4F6FB;
  --black: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EEF1F8;
  --line: #DDE3EE;
  --text: #090B13;
  --text-75: rgba(9,11,19,.75);
  --text-40: rgba(9,11,19,.4);
}
* { 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: 50; 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: #fff; 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: #fff; 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 .2s 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: 10px; box-shadow: none; filter: none; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.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: rgba(30,85,249,.12); }
.theme { position: relative; width: 53px; height: 28px; overflow: hidden; background: rgba(255,255,255,.08); border-radius: 14px; }
.theme::before, .theme::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background-color: #fff; background-position: center; background-repeat: no-repeat; background-size: 14px 14px; border-radius: 50%; transition: transform .35s ease, opacity .2s 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: #fff; 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: 50%; }
.login.is-profile .avatar img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.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 .2s ease, background-color .2s ease; overflow: hidden; }
.add-channel:hover { color: #fff; background: var(--blue); }
.add-icon { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; font-size: 26px; line-height: 1; transition: opacity .2s ease, transform .5s ease; }
.add-label { transition: opacity .2s ease, transform .2s 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: 12px; }
.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 .2s 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 .28s cubic-bezier(.2,.8,.2,1), opacity .22s ease, margin .22s ease, transform .22s 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: 10px; transition: border-radius .22s ease, box-shadow .22s 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: #1E55F9; background: rgba(30,85,249,.16); border-radius: 5px; font: 400 14px/18px var(--font); transition: opacity .18s ease, transform .18s ease, background-color .18s ease; }
.chip:hover,
.chip:active,
.chip:focus,
.chip:focus-visible,
.chip.selected,
.chips:active .chip.selected,
.chips:focus .chip.selected {
  color: #1E55F9;
  background: rgba(30,85,249,.16);
  outline: 0;
}
.chip.selected {
  transition-property: opacity, transform;
}
.chip.just-added { animation: chipIn .18s 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: 1000; 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 .22s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility .22s; }
.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: 10px; }
.dropdown-search img { width: 16px; height: 16px; flex: 0 0 16px; align-self: center; opacity: .4; filter: none; transition: opacity .28s ease, filter .28s 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: rgba(30,85,249,.12); }
.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: #fff; 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: rgba(255,255,255,.08); border-radius: 10px; }
.currency-switch::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; background: #3F763B; border-radius: 50%; transform: translateX(2px); transition: transform .2s ease, background-color .2s 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: 10px; }
.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: 50%; }
.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 .18s ease, border-color .18s ease, background-color .18s ease; }
.extras input[type="checkbox"]:checked { background: url('../assets/check-box.svg') center/20px 20px no-repeat; border-color: transparent; animation: checkboxPop .22s ease; }
.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: #FF7C02; 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: 10px; 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: 6px; transition: left .24s ease, width .24s ease; }
.channel-type button { position: relative; z-index: 1; height: 30px; padding: 0 10px; color: var(--text-75); border-radius: 6px; font: 400 14px/18px var(--font); transition: color .2s 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 .2s 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: 10px; }
.catalog-search img { width: 16px; height: 16px; flex: 0 0 16px; align-self: center; opacity: .4; filter: none; transition: opacity .28s ease, filter .28s 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: 10px; 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: 10px; transition: border-radius .18s 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: 1000; 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 .22s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility .22s; }
.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: rgba(30,85,249,.12); }
.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: 16px; 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: #fff; background: var(--blue); border-radius: 8px; font: 500 14px/18px var(--font); }
.catalog-state-retry:hover { background: #2864ff; }
.catalog-skeleton-card { pointer-events: none; }
.catalog-skeleton-card > * { position: absolute; overflow: hidden; background: linear-gradient(90deg, var(--surface-2) 0%, rgba(255,255,255,.16) 50%, var(--surface-2) 100%); background-size: 220% 100%; animation: catalogSkeletonShimmer 1.4s ease-in-out infinite; }
.catalog-skeleton-cover { top: 0; left: 44px; width: 294px; height: 88px; border-radius: 0 16px 0 0; }
.catalog-skeleton-avatar { top: 0; left: 0; width: 88px; height: 88px; box-sizing: border-box; border: 12px solid var(--surface); border-radius: 50%; }
.catalog-skeleton-title { top: 96px; left: 24px; width: 290px; height: 22px; border-radius: 5px; text-align: left; }
.catalog-skeleton-description { top: 126px; left: 24px; width: 290px; height: 36px; border-radius: 5px; text-align: left; }
.catalog-skeleton-metric { width: 151px; height: 45px; display: block; border-radius: 8px; }
.catalog-skeleton-metric.metric-1 { top: 186px; left: 16px; }
.catalog-skeleton-metric.metric-2 { top: 186px; left: 171px; }
.catalog-skeleton-metric.metric-3 { top: 235px; left: 16px; }
.catalog-skeleton-metric.metric-4 { top: 235px; left: 171px; }
.catalog-skeleton-price { top: 335px; left: 100px; width: 138px; height: 29px; border-radius: 6px; }
.catalog-skeleton-slots { top: 372px; left: 50%; width: 169px; height: 38px; border-radius: 9px; transform: translateX(-50%); }
.catalog-skeleton-hot-deal, .catalog-skeleton-countdown { display: none; }
.catalog-skeleton-action { right: 12px; bottom: 12px; left: 12px; height: 48px; border-radius: 10px; }
body.hot .catalog-skeleton-card { height: 512px; }
body.hot .catalog-skeleton-slots { display: none; }
body.hot .catalog-skeleton-hot-deal { top: 372px; left: 50%; width: 169px; height: 38px; display: block; border-radius: 9px; transform: translateX(-50%); }
body.hot .catalog-skeleton-action { bottom: 38px; }
body.hot .catalog-skeleton-countdown { right: 12px; bottom: 12px; left: 12px; height: 26px; display: block; border-radius: 10px; }
@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: 16px; cursor: default; transition: box-shadow .2s 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 rgba(255,255,255,.08); }
.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: 50%; }
.avatar-letter { width: 64px; height: 64px; display: grid; place-items: center; color: #fff; 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: #fff; 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 .2s ease, filter .2s ease; }
.card-favorite.is-favorite-animating img { animation: favoritePop .28s 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: 12px; }
.metric { width: 151px; height: 45px; padding: 6px 10px 0; background: transparent; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
.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); }
.metric strong::after { content: ""; width: 12px; height: 12px; background: url('../assets/metric-line-up.svg') center/contain no-repeat; }
.metric:nth-child(2) strong::after { background: url('../assets/metric-emotion-puzzled.svg') center/contain no-repeat; transform: none; }
.metric:nth-child(3) strong::after { background: url('../assets/metric-emotion-happy.svg') center/contain no-repeat; display: inline-block; }
.metric:nth-child(4) strong::after { background: url('../assets/metric-emotion-sad.svg') center/contain no-repeat; display: inline-block; }
.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: 6px; transition: left .24s ease, width .24s 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: 6px; transition: color .2s 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: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 10px; font: 600 16px/20px var(--font); transition: left .32s cubic-bezier(.22,1,.36,1), width .32s cubic-bezier(.22,1,.36,1), background-color .2s ease, border-color .2s ease; }
.card-buy:hover, .card-buy:active { color: #fff; 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: #fff; border-radius: 6px; 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: 38px; color: #fff; border-color: var(--orange); background: var(--orange); }
body.hot .card-buy:hover, body.hot .card-buy:active { color: #fff; 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: rgba(255,124,2,.12); border-radius: 10px; 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; }

/* Страница канала, боковые меню профиля и первые правила личного кабинета. */
/* Порядок подключения важен: поздние правки страницы канала лежат в 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: 12px; }
.channel-tabs button { height: 62px; padding: 0 20px; color: var(--text-75); border-radius: 8px; text-align: left; font: 600 18px/22px var(--font); transition: color .2s 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: 12px; }
.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 #fff; }
.channel-dates b { color: #fff; font-weight: 400; }
.channel-detail-card { width: 692px; min-height: 360px; overflow: hidden; background: var(--surface); border-radius: 16px; }
.detail-cover { height: 132px; position: relative; background: var(--cover-bg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.detail-avatar { position: absolute; left: 32px; bottom: -44px; width: 88px; height: 88px; display: grid; place-items: center; background: var(--surface); border-radius: 50%; }
.detail-avatar span { width: 64px; height: 64px; display: grid; place-items: center; color: #fff; background: var(--avatar-bg); border-radius: 50%; 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: 12px; }
.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: rgba(30,85,249,.12); border-radius: 10px; font: 600 14px/18px var(--font); }
.channel-copy img { width: 18px; height: 18px; }
.channel-copy .copy-default img,
.profile-id-field .profile-copy .copy-default img { filter: brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(3215%) hue-rotate(220deg) brightness(98%) contrast(103%); }
.channel-copy.copied { color: #fff; background: var(--blue); }
.channel-price-card { position: relative; width: 314px; height: 179px; background: var(--surface); border-radius: 12px; }
.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: 10px; 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: 12px; overflow: hidden; transition: grid-template-rows .32s cubic-bezier(.22,1,.36,1); }
.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: rgba(30,85,249,.12); 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 .22s 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 .24s 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: 8px;
  opacity: 0;
  transform: translateY(calc(var(--profile-active-index, 0) * 66px));
  transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .18s ease;
  pointer-events: none;
}
.profile-menu-items:has(> button.selected)::before { opacity: 1; }
.profile-menu-card.collapsed { grid-template-rows: auto 0fr; }
.profile-menu-card.collapsed .profile-menu-items { opacity: 0; pointer-events: none; }
.profile-sell-menu .profile-menu-title { color: #2AB822; background: rgba(42,184,34,.12); }
.profile-manage-menu .profile-menu-title { color: var(--orange); background: rgba(255,124,2,.12); }
.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: 8px; font: 400 18px/22px var(--font); transition: color .2s ease, font-weight .2s 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: #fff; border-radius: 50%; background: #1E55F9; 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: 12px; }
.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: rgba(30,85,249,.12); border-radius: 8px; 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: #fff; 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: 10px; transition: background-color .2s ease; }
.profile-delete:hover { background: rgba(230,41,41,.12); }
.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: #E62929; background: transparent; border: 1px solid #E62929; border-radius: 10px; 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: 12px;
}
.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, rgba(255,255,255,.12) 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: #fff;
  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: 6px;
  transition: box-shadow .2s ease;
}
.detail-tgstat-link:hover,
.detail-tgstat-link:focus-visible {
  box-shadow: inset 0 0 0 1px #27272F;
}
.detail-tgstat-widget {
  width: 624px;
  max-width: 624px;
  height: auto;
  margin: 0;
  display: block;
  border-radius: 10px;
}
.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: 12px;
}
.channel-tgstat-card span {
  color: #fff;
  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: #fff;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  border-radius: 8px;
  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: #2F2F37; }
.channel-reviews-header { display: flex; align-items: center; justify-content: flex-start; }
.channel-reviews-header h2 { margin: 0; color: #fff; 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: #FF7C02; font: 600 80px/80px var(--font); }
.channel-reviews-score-main > .channel-reviews-scale { align-self: flex-end; margin: 0 0 0 5px; color: #FF7C02; 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: 8px; 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: 8px; 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: 6px; 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: rgba(30,85,249,.12); 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: #FF7C02; 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 #2F2F37; }
.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: #fff; background: var(--blue); border-radius: 50%; font: 600 14px/18px var(--font); }
.channel-review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.channel-review-item-head strong { color: #fff; 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: 8px; 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: 10px; 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 {
  grid-template-rows: 4px 52px 36px auto !important;
  row-gap: 0 !important;
}
.channel-detail-card {
  grid-row: 4 !important;
  margin-top: 0 !important;
}
.channel-buy-column {
  grid-row: 2 / span 3 !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: 12px;
}
.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, rgba(255,255,255,.12) 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: 900px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 0;
  border-radius: 16px;
}
.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 #2F2F37;
}
.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: #fff;
  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 #1B1B23;
}
.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 #1B1B23;
  border-radius: 50%;
}
.detail-avatar img,
.detail-avatar span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: #fff;
  background: var(--avatar-bg);
  border-radius: 50%;
  font: 700 34px/1 var(--font);
}
.detail-body {
  padding: 16px 32px 32px;
}
.detail-body h1 {
  margin: 0 0 50px 170px;
  color: #fff;
  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: 12px;
  padding: 4px;
}
.detail-stats div {
  min-height: 0;
  padding: 12px 10px;
  background: #1B1B23;
  border-radius: 10px;
}
.detail-stats small {
  color: var(--text-40);
  font: 400 10px/14px var(--font);
}
.detail-stats strong {
  margin-top: 8px;
  color: #fff;
  font: 600 18px/22px var(--font);
}
.detail-description {
  width: 628px;
  height: 57px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 8px;
}
.detail-description i {
  width: 3px;
  height: 57px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 10px #058FF9;
}
.detail-description p {
  width: 617px;
  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: #2F2F37;
}
.channel-view .detail-separator-before-statistics {
  width: calc(100% + 64px);
  max-width: none;
  margin-left: -32px;
}
.detail-body h2 {
  margin: 28px 0 0;
  color: #fff;
  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: #fff;
  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: 6px;
  font: 500 14px/18px var(--font);
  transition: color .18s ease, background-color .18s ease;
}
.detail-tgstat-head a:focus,
.detail-tgstat-head a:hover {
  color: #fff;
  background: var(--blue);
}
.detail-tgstat-widget {
  width: 624px;
  max-width: 624px;
  height: auto;
  margin-top: 16px;
  display: block;
  border-radius: 10px;
}
.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: rgba(30,85,249,.12);
  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: 12px;
  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: 100; display: grid; place-items: center; background: rgba(0,0,0,.55); animation: modalFade .2s 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: 24px; text-align: center; animation: modalLift .22s 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: #fff; background: #0088CC; border-radius: 10px; 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: 12px; 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: #fff; background: var(--orange); border-radius: 50%; font: 600 16px/20px var(--font); }
.channel-step b { color: #fff; font-weight: 600; }
.step-info { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: inline-grid; width: 18px; height: 18px; margin-left: 0; place-items: center; color: var(--text-75); border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-style: normal; font-size: 12px; }
.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: rgba(30,85,249,.12); border-radius: 8px; font: 500 14px/18px var(--font); transition: none; }
.bot-copy img { width: 18px; height: 18px; }
.bot-copy .copy-default img { filter: brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(3215%) hue-rotate(220deg) brightness(98%) contrast(103%); }
.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: #fff; 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: 10px; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.submit-channel:hover, .submit-channel:active { color: #fff; 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: #fff; border-radius: 50%; transform-origin: 50% 50%; animation: loaderSpin .75s linear infinite; }

/* Модалки, форма добавления канала, анимации, правки 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 48px; grid-template-areas: "brand actions" "nav nav"; padding: 8px 16px 0; } .header::after { top: 116px; } .brand { grid-area: brand; } .catalog-menu { grid-area: nav; } .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: minmax(0,338px); } .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 .28s ease, filter .28s ease; }
.search-clear { display: none !important; }
.reach-periods button { transition: color .2s ease, background-color .24s ease, border-color .24s ease, transform .18s ease; }
.reach-periods button.selected { animation: periodSelect .2s ease; }
.filter-actions button img { transition: transform .45s ease, filter .2s ease; }
.save-search[aria-pressed="true"] img { animation: favoritePop .28s 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; text-overflow: ellipsis; transition: opacity .54s ease, transform .54s ease, background-color .18s ease; }
.chip.just-added { animation-duration: .54s; }
.dropdown-search img { width: 20px; height: 20px; flex-basis: 20px; transition: opacity .28s ease, filter .28s 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 .28s ease, filter .28s 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 .22s ease; }
.bot-copy .copy-default b { color: var(--blue); font: 500 14px/18px var(--font); }
.bot-copy.copied .copy-success b { color: #fff; 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: rgba(30,85,249,.12);
  border-radius: 8px;
}
.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: rgba(30,85,249,.12);
}
.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: #fff;
  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;
}
.add-channel-card .bot-copy .copy-default img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(3215%) hue-rotate(220deg) brightness(98%) contrast(103%);
}
.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 .22s cubic-bezier(.2,.8,.2,1); }
@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; text-overflow: ellipsis; }
.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: 10px; box-shadow: none; transform: translateY(-6px); }
.catalog-sort:has(.sort-dropdown.open) { border-radius: 10px; }
.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: rgba(30,85,249,.12); }
.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; text-overflow: ellipsis; 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; }


/* 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 .2s 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-overflow: ellipsis; 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 .2s 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: #fff; font-weight: 600; }
.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-menu-card.collapsed {
  height: 39px;
  min-height: 39px;
  gap: 0;
}

/* 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: #fff; 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: 12px; 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: #fff; 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: #fff;
  background: #2EB822;
  border-radius: 8px;
  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: #fff; 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: 10px; 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: 10px; }
.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: 999px; 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; text-overflow: ellipsis; 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: 50%; 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: 50%; 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: 10px; 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: #fff; background: var(--blue); border-radius: 10px; 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: #fff; background: #E62929; border-color: #E62929; }
.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: #fff; border-radius: 50%; 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: #1B1B23;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: max-height .82s cubic-bezier(.22,1,.36,1), border-radius .22s ease;
}
.profile-user-card.expanded-radius {
  border-radius: 24px;
}
.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: #fff;
  background: linear-gradient(135deg, #1E55F9, #00A5E9);
  border-radius: 50%;
  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: #fff;
  font: 600 18px/22px var(--font);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-user-chip {
  height: 35px;
  margin-left: 5px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1E55F9;
  background: rgba(30,85,249,.12);
  border-radius: 8px;
  font: 500 14px/18px var(--font);
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.profile-user-chip.id-chip {
  min-width: 52px;
}
.profile-user-chip .copy-success {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.profile-user-chip .copy-success img {
  width: 16px;
  height: 16px;
}
.profile-user-chip.copied {
  color: #fff;
  background: #1E55F9;
}
.profile-user-chip.copied .copy-default {
  display: none !important;
}
.profile-user-chip.copied .copy-success {
  display: flex !important;
}
.profile-user-name + .profile-user-chip {
  margin-left: 12px;
}
.profile-user-go {
  width: 35px;
  height: 35px;
  margin-left: 5px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  background: rgba(30,85,249,.12);
  border-radius: 50%;
  pointer-events: none;
}
.profile-user-go::before {
  content: "";
  width: 16px;
  height: 16px;
  background: #1E55F9;
  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 cubic-bezier(.22,1,.36,1), opacity .22s 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: rgba(255,255,255,.75);
  font: 400 14px/18px var(--font);
}
.profile-user-settings b {
  color: #fff;
  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: rgba(255,255,255,.75);
  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: 8px;
  background: #05050D;
  box-shadow: inset 0 0 0 1px #2F2F37;
}
.profile-user-balance-current b {
  color: #fff;
  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: 10px;
  background: #05050D;
  box-shadow: inset 0 0 0 1px #2F2F37;
  color: rgba(255,255,255,.45);
  font: 500 12px/15px var(--font);
}
.profile-user-balance-actions input {
  width: 100%;
  min-width: 0;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font: 500 14px/18px var(--font);
}
.profile-user-balance-actions button {
  height: 42px;
  border-radius: 10px;
  color: #fff;
  background: #1E55F9;
  font: 600 13px/16px var(--font);
  transition: opacity .18s ease, background-color .18s ease;
}
.profile-user-balance-actions button[data-user-balance-action="debit"] {
  background: #E62929;
}
.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: #05050D;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #2F2F37;
  font: 500 12px/15px var(--font);
}
.profile-user-referral input {
  width: 100%;
  min-width: 0;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font: 500 14px/18px var(--font);
}
.profile-user-referral button {
  height: 42px;
  color: #fff;
  background: #1E55F9;
  border-radius: 10px;
  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: 10px;
  transition: border-color .2s ease, background-color .2s ease, color .2s 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: #000;
}
.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: 16px;
}
.profile-balance-half {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  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), rgba(46,184,34,.12) 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: #1B1B23;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px #2F2F37;
}
.profile-balance-page > .profile-affiliate-card {
  display: none;
}
.profile-affiliate-card {
  max-height: 85px;
  transition: max-height .82s cubic-bezier(.22,1,.36,1), border-radius .22s ease;
}
.profile-affiliate-card.open {
  max-height: 1200px;
  border-radius: 24px;
}
.profile-affiliate-head {
  position: relative;
  width: 100%;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  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 cubic-bezier(.22,1,.36,1), opacity .24s ease .12s;
}
.profile-affiliate-card.open .profile-affiliate-content {
  max-height: 1100px;
  opacity: 1;
}
.profile-affiliate-divider {
  width: 100%;
  height: 1px;
  background: #2F2F37;
}
.profile-affiliate-table {
  padding: 20px 24px 24px;
  display: grid;
  row-gap: 8px;
}
.profile-affiliate-header,
.profile-affiliate-row {
  display: grid;
  grid-template-columns: 314px 80px 100px 100px 202px 52px;
  column-gap: 30px;
  align-items: center;
}
.profile-affiliate-header {
  color: rgba(255,255,255,.75);
  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: #1E55F9;
  background: rgba(30,85,249,.12);
  border-radius: 10px;
  font: 500 16px/20px var(--font);
}
.profile-affiliate-copy .copy-default b,
.profile-affiliate-copy .copy-success b {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 16px/20px var(--font);
}
.profile-affiliate-copy.copied .copy-success b {
  color: #fff;
  font: 600 16px/20px var(--font);
}
.profile-affiliate-row > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  font: 600 20px/24px var(--font);
}
.profile-affiliate-row > b i {
  color: #2F2F37;
  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: 10px;
  transition: background-color .2s ease;
}
.profile-affiliate-delete:hover {
  background: rgba(230,41,41,.12);
}
.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: #fff;
  background: #1E55F9;
  border-radius: 10px;
  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: #1B1B23;
  border-color: #2F2F37;
  border-radius: 24px;
  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: #fff;
  border-bottom: 1px solid #2F2F37;
  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: #fff;
  border-bottom: 1px solid #2F2F37;
  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: #1E55F9;
  background: rgba(30,85,249,.12);
  border-radius: 8px;
  font: 500 14px/18px var(--font);
  justify-self: start;
  white-space: nowrap;
}
.profile-history-row > span.income { color: #2EB822; background: rgba(46,184,34,.12); }
.profile-history-row > span.outcome { color: #E62929; background: rgba(230,41,41,.12); }
.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: rgba(255,255,255,.75);
  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: rgba(255,255,255,.75);
  font: 400 16px/20px var(--font);
}
.profile-history-footer b { color: #fff; font-weight: 700; }
.profile-history-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-history-footer button {
  width: 52px;
  height: 52px;
  color: #fff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #1E55F9;
  font: 600 16px/20px var(--font);
}
.profile-history-footer button:hover,
.profile-history-footer button.active {
  color: #1E55F9;
  background: rgba(30,85,249,.12);
  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 #2F2F37; }
.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: #fff; background: #05050D; border: 1px solid #1B1B23; border-radius: 10px; font: 400 16px/20px var(--font); outline: 0; transition: background-color .18s ease, border-color .18s ease; }
.channel-input::placeholder { color: var(--text-40); }
.channel-input:focus { background: #05050D; }
.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: #fff; background: #2EB822; border-color: #2EB822; }
.submit-channel.is-error, .submit-channel.is-error:hover { width: 240px; color: #fff; background: #E62929; border-color: #E62929; }
.my-channel-state { min-height: 92px; padding: 24px; color: var(--text-75); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; 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: #1B1B23;
  box-shadow: inset 0 0 0 1px #2F2F37;
  border-radius: 24px;
}
.moderation-preview {
  width: 338px;
  height: 489px;
  overflow: hidden;
}
.moderation-preview .channel-card {
  margin: 0;
  box-shadow: inset 0 0 0 1px #27272F;
}
.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: #fff;
  font: 500 20px/24px var(--font);
}
.moderation-tgstat,
.moderation-telegram {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font: 500 14px/18px var(--font);
}
.moderation-tgstat {
  width: 105px;
  gap: 8px;
  color: #fff;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.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: #05050D;
  border-radius: 10px;
}
.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: rgba(255,255,255,.4);
  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: rgba(255,255,255,.4);
  background: #27272F;
  border: 0;
  border-radius: 10px;
  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: #fff;
  text-align: center;
  font: 500 16px/20px var(--font);
}
.moderation-actions h3[data-status="approved"] { color: #2EB822; }
.moderation-actions h3[data-status="rejected"] { color: #E62929; }
.moderation-actions h3::before,
.moderation-actions h3::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  border-top: 1px dashed rgba(255,255,255,.12);
}
.moderation-reject,
.moderation-approve {
  height: 42px;
  color: #fff;
  border-radius: 10px;
  font: 500 16px/20px var(--font);
}
.moderation-reject { background: #E62929; }
.moderation-reject:disabled {
  background: #27272F;
  cursor: default;
}
.moderation-approve { background: #2EB822; }
.moderation-sidebar {
  width: 314px;
  display: grid;
  gap: 20px;
}
.moderation-side-card {
  width: 314px;
  background: #1B1B23;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px #2F2F37;
}
.moderation-stat {
  width: 314px;
  height: 147px;
  background: #000003;
  border-radius: 12px;
  box-shadow: none;
}
.moderation-side-card {
  padding: 16px;
}
.moderation-stat h3 {
  margin: 0;
  padding-top: 16px;
  color: #fff;
  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: rgba(255,255,255,.75);
  font: 400 14px/18px var(--font);
}
.moderation-stat-row i {
  height: 1px;
  margin-bottom: 3px;
  background: rgba(255,255,255,.12);
}
.moderation-stat-row b {
  min-width: 18px;
  color: rgba(255,255,255,.75);
  font: inherit;
  text-align: right;
}
.moderation-side-card h3 {
  margin: 0 0 14px;
  color: #fff;
  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: rgba(255,255,255,.75);
  font: 400 14px/18px var(--font);
}
.moderation-search {
  width: 314px;
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1B1B23;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #2F2F37;
}
.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: #fff;
  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: 50%; }
body.hot .channel-card { height: 512px; }
body.hot .hot-deal { top: 372px; }
body.hot .card-buy { bottom: 38px; height: 48px; }
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: #fff;
  background: #1E55F9;
  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: #fff;
  font: 500 16px/20px var(--font);
}
.login.is-profile,
.login.is-profile:hover {
  width: 141px;
  height: 52px;
  padding: 0;
  flex-basis: 141px;
  background: #05050D;
  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: 50%;
}
.login.is-profile .avatar img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}
/* 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: #fff;
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
  mask-image: none;
  -webkit-mask-image: none;
  font: 500 16px/20px var(--font);
}

/* 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: 10px; color: #fff; 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: 8px; 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 #2F2F37; border-radius: 23px; background: #1B1B23; }
.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 #2F2F37; 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: #fff; 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: 12px; 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: 12px; }
.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: 50%; 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: #fff; filter: drop-shadow(0 1px 4px #000); }
.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); text-overflow: ellipsis; 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: #fff; border: 0; border-radius: 10px; 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: rgba(255,255,255,.4); }
.buyer-creative-inline-button-row [data-buyer-button-remove] { width: 52px; height: 52px; display: grid; place-items: center; color: #E62929; border: 0; border-radius: 10px; background: transparent; }
.buyer-creative-inline-button-row [data-buyer-button-remove]:hover { background: rgba(230,41,41,.12); }
.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: 10px; 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: #fff; 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 .2s ease, border-color .2s 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: 8px; 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: #fff; border-radius: 50%; 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 .2s 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 .22s 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 #2F2F37; border-radius: 23px; background: #1B1B23; }
.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: 999px; }
.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: 50%; 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 #2F2F37; border-radius: 23px; background: #1B1B23; }
.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: 50%; background: var(--surface); font-size: 24px; }
.buyer-campaign-creative-zones .buyer-creative-action-zone { width: 247px; height: 190px; min-height: 190px; border: 1px solid #2F2F37; border-radius: 23px; background: #1B1B23; }
.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: 24px; }
.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: 2; 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:hover,
.buyer-company-carousel .buyer-carousel-next-overlay:focus-visible { background: rgba(0, 0, 0, 0.58); color: #fff; opacity: 1; }
.buyer-company-carousel .buyer-carousel-next-overlay:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.buyer-company-carousel .buyer-creative-card { overflow: hidden; }
.buyer-company-carousel .buyer-creative-summary-body { min-height: 133px; background: #1B1B23; }
.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: #fff; 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: #1B1B23; background: #FFC700; }
.buyer-company-carousel .buyer-creative-status-chip.not-configured { width: 110px; background: #2F2F37; }
.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: 10px; background: #2F2F37; transition: none; }
.buyer-company-carousel .buyer-creative-enabled-toggle::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #FFC700; content: ''; transition: none; transform: translateX(0); }
.buyer-company-carousel .buyer-creative-enabled-toggle.used::after { background: #2EB822; transform: translateX(14px); }
.buyer-company-carousel .buyer-creative-enabled-toggle.not-used::after { background: #FFC700; 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: #1B1B23; border: 0; border-radius: 999px; will-change: max-height, border-radius; transition: max-height .82s cubic-bezier(.22,1,.36,1), border-radius .22s ease; }
.buyer-campaign-card.buyer-campaign-expandable.open { max-height: 1800px; overflow: hidden; border-radius: 24px; }
.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: #1B1B23; text-align: left; }
.buyer-campaign-card .buyer-campaign-avatar { width: 60px; height: 60px; display: grid; place-items: center; color: #fff; border-radius: 50%; 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 cubic-bezier(.2,.8,.2,1); }
.buyer-campaign-card .buyer-campaign-settings { height: 838px; padding: 0; display: block; opacity: 0; pointer-events: none; transition: opacity .42s ease .18s; }
.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: #2F2F37; }
.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: #000; 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: #1E55F9; border-radius: 5px; }
.buyer-company-carousel .buyer-creative-cover-actions > button:hover { background: #FF2929; border-radius: 5px; }
.buyer-company-carousel .buyer-creative-status-chip.not-configured { background: #000000; }
.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: #000; }
.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: #000; }
.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: transparent; }
.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: #1B1B23; overflow: hidden; isolation: isolate; contain: paint; }
.buyer-company-carousel .buyer-creative-cover { width: 100%; height: 271px; display: block; background: #1B1B23; 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: #fff; border: 0; border-radius: 10px; 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: 10px; background: #27272F; 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: #1B1B23;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px #2F2F37;
}
.advix-ads-card-preview {
  position: relative;
  width: 338px;
  height: 486px;
  border-radius: 16px;
  box-shadow: 0 0 0 2px #FFC700;
}
.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: #fff;
}
.advix-ads-label {
  display: block;
  height: 18px;
  color: rgba(255,255,255,.75);
  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: #fff;
  font: 600 20px/24px var(--font);
}
.advix-ads-bid i {
  color: #2F2F37;
  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: #05050D;
}
.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: rgba(255,255,255,.75);
  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: #2EB822;
  border-radius: 50px;
  cursor: pointer;
  user-select: none;
  transition: background-color .18s 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: 50%;
  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: 50%;
  background: transparent;
}
.advix-ads-start[aria-pressed="true"],
.advix-ads-start.is-active {
  background: #E62929;
}
.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: #fff;
  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: #2F2F37;
}
.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: rgba(255,255,255,.75);
  font: 400 14px/18px var(--font);
}
.advix-ads-stats b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  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: #1B1B23;
  border: 0;
  box-shadow: none;
  border-radius: 999px;
  will-change: max-height, border-radius;
  transition: max-height .82s cubic-bezier(.22,1,.36,1), border-radius .22s 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 #2F2F37;
}
.my-channel-card.open {
  max-height: 1800px;
  overflow: hidden;
}
.my-channel-card.expanded-radius { border-radius: 24px; }
.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: #1B1B23;
  text-align: left;
}
.my-channel-summary .my-channel-avatar,
.my-channel-avatar {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1E55F9, #00A5E9);
  border-radius: 50%;
  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;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  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: 6px;
  font: 500 14px/18px var(--font);
  align-self: center;
  transition: color .24s ease, background-color .24s ease, width .24s ease, flex-basis .24s ease, opacity .24s ease, transform .24s ease;
}
.my-channel-status[data-status="draft"] {
  flex-basis: 120px !important;
  width: 120px !important;
  color: rgba(255,255,255,.6) !important;
  background: rgba(255,255,255,.12) !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: #1E55F9;
  background: transparent;
  border-radius: 6px;
  font: 500 14px/18px var(--font);
  white-space: nowrap;
  transition: background-color .2s ease;
}
.my-channel-reason:hover,
.my-channel-reason:focus-visible {
  background: rgba(30,85,249,.12);
}
.my-channel-reason-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2000;
  width: max-content;
  max-width: 280px;
  padding: 10px 12px;
  color: rgba(255,255,255,.75);
  background: #05050D;
  border: 1px solid #2F2F37;
  border-radius: 10px;
  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 .18s ease, transform .18s ease, visibility .18s 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: rgba(255,124,2,.12);
  border-radius: 999px;
  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 .24s ease, transform .24s ease; }
.my-channel-action {
  height: 36px;
  padding: 0 16px;
  color: #fff;
  border-radius: 6px;
  font: 500 14px/18px var(--font);
  transition: opacity .24s ease, transform .24s ease, background-color .2s ease;
}
.my-channel-action.publish { width: 131px; background: #2EB822; }
.my-channel-action.pause { width: 93px; background: #FF7C02; }
.my-channel-action:disabled { background: #27272F; cursor: default; }
.my-channel-action.publish.is-pending:disabled { background: #2EB822; }
.my-channel-action.pause.is-pending:disabled { background: #FF7C02; }
.my-channel-card.state-updated .my-channel-status,
.my-channel-card.state-updated .my-channel-action {
  animation: myChannelStateIn .28s 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 .2s 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 cubic-bezier(.2,.8,.2,1);
}
.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 .18s;
}
.my-channel-card.open .my-channel-settings {
  opacity: 1;
  pointer-events: auto;
}
.my-channel-divider { width: 100%; height: 1px; margin-top: 0; background: #2F2F37; }
.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: #1E55F9;
  background: rgba(30,85,249,.16);
  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: #1E55F9;
  background: rgba(30,85,249,.16);
}
.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: #05050D;
}
.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 .22s 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: #1E55F9;
  background: rgba(30,85,249,.16);
}
.moderation-plain-selector .empty-selection {
  color: rgba(255,255,255,.4);
}
.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: #fff;
  background: #27272F;
  border: 0;
  border-radius: 10px;
  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: #2F2F37; }
.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: #FF7C02;
  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: #05050D;
}
.condition-type-wrap {
  position: relative;
  min-width: 0;
}
.condition-type-wrap.condition-swap-from-above { animation: conditionSwapFromAbove .34s cubic-bezier(.22,1,.36,1); }
.condition-type-wrap.condition-swap-from-below { animation: conditionSwapFromBelow .34s cubic-bezier(.22,1,.36,1); }
@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: #fff;
  background-color: #05050D;
  text-align: left;
  font: 400 16px/20px var(--font);
}
.condition-type-toggle span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.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 .22s 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: #05050D;
  border: 0;
  border-radius: 0 0 10px 10px;
  transition: opacity .2s ease, transform .22s ease, visibility .2s;
}
.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: rgba(255,255,255,.75);
  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: #1E55F9;
  background: rgba(30,85,249,.12);
}
.condition-type-panel button:disabled {
  color: rgba(255,255,255,.2);
  cursor: not-allowed;
}
input.condition-type[readonly] { padding: 0; text-align: center; }
.price-field {
  position: relative;
  display: block;
  padding: 0;
  background: #05050D;
}
.price-field input {
  width: 100%;
  height: 100%;
  padding: 0 46px 0 16px;
  color: #fff;
  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: #05050D; }
.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: #fff;
  background-color: #05050D;
  text-align: left;
  font: 400 16px/20px var(--font);
}
.hot-picker-toggle span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.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 .22s 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: #05050D;
  border: 0;
  border-radius: 0 0 10px 10px;
  transition: opacity .2s ease, transform .22s ease, visibility .2s;
}
.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: #1B1B23;
  border: 1px solid #2F2F37;
  border-radius: 0 10px 10px 10px;
}
.hot-date-calendar { width: 238px; color: #fff; }
.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: #fff;
  text-overflow: ellipsis;
  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: rgba(255,255,255,.75);
  border-radius: 7px;
  font: 400 22px/22px var(--font);
}
.hot-date-calendar-nav:hover:not(:disabled) { color: #fff; background: rgba(30,85,249,.12); }
.hot-date-calendar-nav:disabled { color: rgba(255,255,255,.2); cursor: not-allowed; }
.hot-date-calendar-line { width: 100%; height: 1px; margin-top: 8px; background: #2F2F37; }
.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: rgba(255,255,255,.2);
  border-radius: 50%;
  font: 400 12px/15px var(--font);
}
.hot-date-calendar-day.is-available { color: #fff; cursor: pointer; }
.hot-date-calendar-day.is-available:hover:not(:disabled) { background: rgba(30,85,249,.12); }
.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: 50%;
  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 #1E55F9;
  border-radius: 50%;
  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: rgba(255,255,255,.75);
  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: #1E55F9;
  background: rgba(30,85,249,.12);
}
.hot-date-options button:disabled,
.hot-time-options button:disabled {
  color: rgba(255,255,255,.2);
  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: #fff; background: #2EB822; border-radius: 10px; }
.hot-row-button img { width: 17px; height: 20px; display: block; object-fit: contain; }
.hot-row-button:disabled { background: #27272F; cursor: default; }
.hot-row-button.stop { background: #E62929; }
.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: rgba(255,255,255,.75);
  background: #05050D;
  border-radius: 10px;
  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 .18s ease, border-color .18s ease, background-color .18s ease;
}
.settings-flags input[type="checkbox"]:checked {
  background: url('../assets/check-box.svg') center/20px 20px no-repeat;
  border-color: transparent;
  animation: checkboxPop .22s ease;
}
.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: #E62929;
  background: transparent;
  border: 0;
  border-radius: 10px;
  transition: background-color .2s ease;
}
.my-channel-delete:not(:disabled):hover {
  background: rgba(230,41,41,.12);
}
.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;
  text-overflow: ellipsis;
  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: #1E55F9 !important;
  background: rgba(30,85,249,.16) !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, rgba(255,255,255,.12) 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: 8px;
}

.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, rgba(255,255,255,.12) 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: #1E55F9 !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: #1E55F9 !important;
  -webkit-text-fill-color: #1E55F9 !important;
  background: rgba(30,85,249,.16) !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, #1E55F9);
}

/* 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 .28s ease, opacity .28s ease, color .28s 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 .28s ease, background-color .28s ease, width .28s ease, flex-basis .28s ease, opacity .28s 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: #1E55F9 !important;
  -webkit-text-fill-color: #1E55F9 !important;
  background-color: rgba(30,85,249,.16) !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: #1E55F9 !important;
  -webkit-text-fill-color: #1E55F9 !important;
  background-color: rgba(30,85,249,.16) !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: 16px;
  box-shadow: inset 0 0 0 1px #27272F;
}
.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-menu-card.collapsed,
.profile-manage-menu.collapsed {
  height: 39px !important;
  min-height: 39px !important;
  gap: 0 !important;
}
.profile-manage-menu .profile-menu-items:has(> button:last-child.selected)::before {
  border-radius: 8px !important;
  overflow: hidden;
}
.profile-manage-menu .profile-menu-items > button:last-child.selected {
  border-radius: 8px !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: 10px;
}
.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-overflow: ellipsis;
  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-right {
  display: grid;
  gap: 16px;
}
.catalog-settings-block {
  width: 515px;
  min-height: 220px;
  padding: 24px;
  background: #1B1B23;
  box-shadow: inset 0 0 0 1px #2F2F37;
  border-radius: 12px;
}
.catalog-settings-block h2 {
  margin: 0 0 24px;
  color: #fff;
  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: rgba(255,255,255,.12);
  background: rgba(39,39,47,.12);
  border-radius: 10px;
  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(rgba(255,255,255,.4) 0 0) 0 0 / 18px 1.5px no-repeat,
    linear-gradient(rgba(255,255,255,.4) 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: #1E55F9;
  background: rgba(30,85,249,.12);
  border: 0;
  border-radius: 10px;
  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;
  text-overflow: ellipsis;
}
.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;
  background: transparent;
  border-left: 2px solid #2EB822;
  border-bottom: 2px solid #2EB822;
  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: #1E55F9;
  background: rgba(30,85,249,.12);
  border-radius: 10px;
  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: #fff !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;
  text-overflow: ellipsis;
  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: #fff;
  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: #2EB822;
  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: rgba(30,85,249,.12);
  border-radius: 10px;
  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: #1E55F9;
  font: 600 16px/20px var(--font);
}
.channel-copy.copied {
  background: #1E55F9;
}
.channel-copy.copied .copy-default {
  display: none !important;
}
.channel-copy.copied .copy-success {
  display: flex !important;
}
.channel-copy.copied .copy-success b {
  color: #fff;
  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: #1E55F9;
  border-radius: 10px;
}
.channel-telegram-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.channel-price-card {
  box-shadow: inset 0 0 0 1px #2F2F37;
}
.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: rgba(255,255,255,.75);
  background: #1B1B23;
  border-radius: 12px;
  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: #1B1B23;
  border-radius: 12px;
  color: #fff;
}
.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: #fff;
  text-transform: capitalize;
  font: 500 18px/22px var(--font);
}
.channel-calendar-head button {
  color: rgba(255,255,255,.12);
  text-transform: capitalize;
  font: 400 12px/15px var(--font);
  transition: color .18s 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: #2F2F37;
}
.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: #fff;
  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: rgba(255,255,255,.2);
  border-radius: 50%;
  font: 400 12px/15px var(--font);
}
.channel-calendar-day.active { color: #fff; cursor: pointer; }
.channel-calendar-day.inactive { color: rgba(255,255,255,.2); cursor: default; }
.channel-calendar-day.muted { color: rgba(255,255,255,.2); cursor: default; }
.channel-calendar-day.today::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  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 #1E55F9;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.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: #1E55F9;
  background: rgba(30,85,249,.12);
  border-radius: 8px;
  font: 400 14px/18px var(--font);
}
.channel-calendar-slot-row button {
  width: 128px;
  height: 31px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1E55F9;
  border-radius: 8px;
  font: 400 12px/15px var(--font);
}
.channel-calendar-slot-row button.is-selected { color: #fff; }
.channel-calendar-slot-row button .channel-calendar-slot-check { display: inline-flex; width: 15px; height: 15px; align-items: center; justify-content: center; color: #fff; font: 400 15px/15px var(--font); }
.channel-calendar-slot-row.disabled span {
  color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
}
.channel-calendar-slot-row.disabled button {
  color: rgba(255,255,255,.35);
  background: #27272F;
  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 #1B1B23;
}
.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: #fff;
  background: radial-gradient(circle at 30% 20%, #FF7C02 0, #FFC700 100%);
  border: 0;
  box-shadow: 0 0 0 3px #1B1B23;
  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: 50%;
  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: #27272F;
}
.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 rgba(255,255,255,.08);
  border-radius: 8px;
}
.channel-view .detail-stats > div:nth-child(3),
.channel-view .detail-stats > div:nth-child(6) {
  background: #1B1B23;
  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); }
.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: #2EB822 !important; border-color: #2EB822 !important; color: #fff; cursor: default; }
.card-buy.is-pending { opacity: 1; color: #fff; 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: 10px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #939393;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity .24s ease, visibility 0s linear 0s, transform .32s cubic-bezier(.22,1,.36,1), background-color .2s ease, box-shadow .2s 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 .18s ease, visibility 0s linear .18s, transform .24s cubic-bezier(.22,1,.36,1), background-color .2s ease, box-shadow .2s 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: 999px;
  transition: background-color .2s 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 #E62929;
}
.card-cart-remove:hover::before,
.card-cart-remove:hover::after {
  background: #E62929;
}
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: 12px;
  box-shadow: none;
}
.channel-hot-offer-card .static-price {
  position: static;
  height: 58px;
  padding-top: 20px;
  color: #fff;
}
.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: #fff;
  background: #27272F;
  border-radius: 6px;
}
.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: #FF7C02;
  border-color: #FF7C02;
}
.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: #FF7C02;
  background: rgba(255,124,2,.12);
  border-radius: 10px;
  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 #2F2F37; border-radius: 16px; background: #1B1B23; }
.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: rgba(255,255,255,.75); 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: #1E55F9; }
.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 #2F2F37; border-radius: 12px; background: #27272F; }
.cart-item.hot { border-color: rgba(255,124,2,.45); box-shadow: inset 0 0 0 1px rgba(255,124,2,.12); }
.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: 50%; background: #1E55F9; color: #fff; 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: #fff; 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: #FF7C02; background: rgba(255,124,2,.12); 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: #FF7C02 !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-creative select { width: 100%; min-width: 0; }
.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-condition-menu > button, .cart-currency-static { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #fff; background: #27272F; font: 400 14px/18px var(--font); }
.cart-condition-menu { position: relative; }
.cart-condition-menu > button { width: 100%; min-width: 0; justify-content: space-between; }
.cart-condition-menu > button span { width: 8px; height: 8px; border-right: 1.5px solid rgba(255,255,255,.55); border-bottom: 1.5px solid rgba(255,255,255,.55); transform: rotate(45deg); }
.cart-condition-menu.open > button { border-radius: 8px 8px 0 0; }
.cart-condition-menu.open > button span { transform: rotate(225deg); }
.cart-condition-menu > div { position: absolute; z-index: 30; left: 0; top: 40px; width: 112px; display: none; padding: 4px; border-radius: 0 0 8px 8px; background: #05050D; border: 1px solid #2F2F37; }
.cart-condition-menu.open > div { display: grid; gap: 4px; }
.cart-condition-menu > div button { height: 32px; color: rgba(255,255,255,.75); border-radius: 6px; font: 400 14px/18px var(--font); }
.cart-condition-menu > div button.selected { color: #1E55F9; background: rgba(30,85,249,.12); }
.cart-price { grid-area: price; display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: #fff; 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: 8px; }
.cart-item-side .cart-remove { grid-area: remove; align-self: center; }
.cart-remove:hover { background: rgba(230,41,41,.12); }
.cart-remove img { width: 18px; height: 18px; }
.cart-unavailable { margin-top: 8px; padding-top: 16px; border-top: 1px solid #2F2F37; }
.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: #fff; }
.cart-summary-card { width: 314px; padding: 16px 0 16px; border: 0; border-radius: 16px; background: #1B1B23; overflow: hidden; }
.cart-summary-card h2 { margin: 0 16px; color: #fff; 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: #1E55F9; border-bottom: 1px dashed #1E55F9; 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 cubic-bezier(.22,1,.36,1), opacity .22s ease, margin-top .34s cubic-bezier(.22,1,.36,1); 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: rgba(255,255,255,.75); 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; text-overflow: ellipsis; white-space: nowrap; }
.cart-selected-details li b { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0; color: rgba(255,255,255,.75); 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: rgba(255,255,255,.75); font: 400 14px/18px var(--font); }
.cart-summary-rows b { color: rgba(255,255,255,.75); font-weight: 400; }
.cart-summary-rows.accent div,
.cart-summary-rows.accent b { color: #1E55F9; }
.cart-summary-rows.accent .price-gram { width: 11px; height: 11px; margin-left: 0; vertical-align: -1px; }
.cart-summary-rows i,
.cart-summary-total i { color: #2F2F37; font-style: normal; }
.cart-summary-line { width: 100%; height: 1px; margin-top: 14px; background: #2F2F37; }
.cart-summary-total { margin: 25px 16px 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; 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: 12px; 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: #fff; 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: #fff; 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), rgba(46,184,34,.12) 42%, rgba(46,184,34,0) 78%); }
.cart-balance-gram::before { background: radial-gradient(160px 72px at 88% 100%, rgba(30,85,249,.26), rgba(30,85,249,.12) 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: rgba(255,255,255,.75); 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 .18s ease, border-color .18s ease, background-color .18s ease; }
.cart-mass-currency input:checked { background: url('../assets/check-box.svg') center/15px 15px no-repeat; border-color: transparent; animation: checkboxPop .22s ease; }
.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: #FF7C02; font: 500 14px/18px var(--font); }
.cart-pay { width: 282px; height: 48px; margin: 25px 16px 0; color: #fff; border-radius: 10px; background: #1E55F9; font: 600 16px/20px var(--font); }
.cart-pay:disabled { color: rgba(255,255,255,.35); background: #27272F; }
.cart-empty { width: 100%; min-height: 220px; display: grid; place-items: center; align-content: center; gap: 18px; color: #fff; }
.cart-empty h2 { margin: 0; font: 600 24px/29px var(--font); }
.cart-empty button { width: 180px; height: 48px; color: #fff; background: #1E55F9; border-radius: 10px; 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-condition-menu > button, .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: rgba(255,255,255,.75);
  font: 400 14px/18px var(--font);
}
.settings-flags h3,
.settings-flags .settings-subtitle {
  margin: 0;
  height: 18px;
  color: rgba(255,255,255,.75);
  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: #1E55F9;
  background: rgba(30,85,249,.12);
  font: 500 16px/20px var(--font);
  transition: background-color .18s ease, color .18s ease;
}
.ad-week-day.active {
  color: #fff;
  background: #1E55F9;
  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: 10px;
  color: rgba(255,255,255,.4);
  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: 10px;
  color: #fff;
  background: #000;
  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 .18s 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 .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: #000;
  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 #2F2F37; }
.ad-time-slot-column:last-child { padding-right: 0; }
.ad-time-slot-column strong {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.75);
  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: 6px;
  color: rgba(255,255,255,.75);
  font: 400 16px/20px var(--font);
}
.ad-time-slot-values button:hover:not(:disabled),
.ad-time-slot-values button.selected {
  color: #1E55F9;
  background: rgba(30,85,249,.12);
}
.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: 10px;
  color: #fff;
  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 #27272F;
  border-radius: 10px;
  background: transparent;
  transition: background-color .18s ease, border-color .18s ease;
}
.ad-time-slot-action:hover:not(.paused):not(:disabled):not(.settings-disabled) { border-color: #FF7C02; background: #FF7C02; }
.ad-time-slot-action span { width: 2px; height: 13px; margin: 0; border-radius: 999px; background: #fff; }
.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: #FF7C02; background: #FF7C02; }
.ad-time-slot-delete {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #E62929;
  background: transparent;
  border: 0;
  border-radius: 10px;
  transition: background-color .2s ease;
}
.ad-time-slot-delete:hover:not(:disabled):not(.settings-disabled) {
  background: rgba(230,41,41,.12);
}
.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: 8px;
  color: #fff;
  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);
  }
}

@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: 120; left: 50%; bottom: 24px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 18px; color: #fff; background: #27272F; border: 1px solid #3D3D48; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.32); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .18s ease, transform .18s 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: #1B1B23; background: #fff; border-color: #D6D6DE; }
.channel-diagnostic-hint { display: inline-grid; width: 18px; height: 18px; margin-left: 8px; place-items: center; color: currentColor; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; line-height: 16px; vertical-align: middle; }


/* Креативы кампаний, превью поста, универсальная раскрывающаяся карточка. */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
/* 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: 10px; background: #27272F; }
.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: #fff; border: 0; border-radius: 50%; 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: #1B1B23 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: #fff; 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-card p { margin: 0 0 5px; padding: 0; white-space: pre-wrap; }
.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: #fff; 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-card p { margin: 0; padding: 10px 10px 20px; }
.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: 6px; font: 400 16px/20px var(--font); }
.buyer-creative-post-preview-buttons a {
  position: relative;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  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-buttons.is-button-dragging a { transition: width .16s ease, opacity .16s ease; }
.buyer-creative-post-preview-buttons a.is-button-drag-source { visibility: hidden; }
.buyer-creative-post-preview.is-button-dragging .buyer-creative-post-preview-buttons { grid-template-rows: repeat(var(--buyer-preview-button-rows, 1), 40px); align-content: start; }
.buyer-creative-post-preview-button-drop-zone { box-sizing: border-box; min-width: 0; min-height: 40px; border: 1px dashed rgba(30, 94, 249, .48); border-radius: 6px; background: rgba(30, 94, 249, .06); pointer-events: none; }
.buyer-creative-post-preview-button-drop-placeholder {
  box-sizing: border-box;
  min-width: 0;
  min-height: 40px;
  border: 2px dashed var(--blue);
  border-radius: 6px;
  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); text-overflow: ellipsis; 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: 10px; background: transparent; border-left: 2px solid #2EB822; border-bottom: 2px solid #2EB822; transform: rotate(-45deg); }
.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: 999px;
  transition: max-height .82s cubic-bezier(.22,1,.36,1), border-radius .22s 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: #fff;
  background: linear-gradient(135deg, #1E55F9, #00A5E9);
  border-radius: 50%;
  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;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  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 cubic-bezier(.2,.8,.2,1);
}
.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 .18s; }
.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: #2F2F37; }
.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-delete] {
  width: 52px;
  height: 52px;
  min-height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 0;
  color: #E62929;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: 400 14px/20px var(--font);
  transition: background-color .2s ease;
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-expanded-actions [data-buyer-campaign-delete]:not(:disabled):hover {
  background: rgba(230,41,41,.12);
}
.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-delete]:disabled {
  cursor: default;
}
.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 .82s cubic-bezier(.22,1,.36,1), border-radius .22s ease;
}
.buyer-campaign-card.buyer-campaign-expandable.open {
  overflow: clip !important;
  max-height: none !important;
  height: auto !important;
  border-radius: 24px;
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-settings {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  transition: opacity .82s cubic-bezier(.22,1,.36,1);
}
.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 .82s cubic-bezier(.22,1,.36,1), border-radius .22s ease;
}
.buyer-campaign-card.buyer-campaign-expandable.open {
  max-height: 1800px !important;
  overflow: hidden !important;
  border-radius: 24px;
}
.buyer-campaign-card.expandable-card-primitive.expanded-radius {
  border-radius: 24px;
}
.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 #2F2F37;
}
.buyer-campaign-card.buyer-campaign-expandable .buyer-campaign-settings {
  transition: opacity .42s ease .18s;
}

.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: 1800px !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: 6px; font: 500 14px/18px var(--font); white-space: nowrap; }
.safe-deal-order-card .safe-deal-order-stage-chip { border-radius: 999px; }
.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: #2EB822; background: rgba(46,184,34,.12); }
.safe-deal-order-card .safe-deal-order-final-status-chip[data-safe-deal-order-final-status="completed"] { color: #1E55F9; background: rgba(30,85,249,.12); }
.safe-deal-order-card .safe-deal-order-final-status-chip[data-safe-deal-order-final-status="cancelled"] { color: #E62929; background: rgba(230,41,41,.12); }
.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: #FF7C02; background: rgba(255,124,2,.12); }
.safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="awaiting-publication"] { color: #FF7C02; background: rgba(255,124,2,.12); }
.safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="awaiting-conditions"] { color: #2EB822; background: rgba(46,184,34,.12); }
.safe-deal-order-card .safe-deal-order-stage-chip[data-safe-deal-order-stage-chip="cancellation-request"] { color: #E62929; background: rgba(230,41,41,.12); }
.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: #fff; background: rgba(0,115,255,.92); border-radius: 8px; font: 400 16px/20px var(--font); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.safe-deal-order-counterparty-name.is-seller { background: #2EB822; }
.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: #27272F; 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: #27272F; border-radius: 8px; font: 400 16px/20px var(--font); white-space: nowrap; }
.safe-deal-order-counterparty-placements,
.safe-deal-order-counterparty-repeat { gap: 5px; color: #1E55F9; }
.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: #1E55F9; -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: #fff; 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: 10px; 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-id-copy,
.safe-deal-order-header-amount { box-sizing: border-box; height: 36px; padding: 0 16px; color: #1E5EF9; background: rgba(30,94,249,.12); border-radius: 8px; font: 500 14px/18px var(--font); white-space: nowrap; }
.safe-deal-order-id-copy { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; transition: background-color .18s ease, color .18s ease; }
.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; }
.safe-deal-order-id-copy .copy-success { display: none !important; align-items: center; justify-content: center; width: 100%; height: 100%; }
.safe-deal-order-id-copy .copy-success img { width: 16px; height: 16px; }
.safe-deal-order-id-copy.copied { color: #fff; background: #1E5EF9; }
.safe-deal-order-id-copy.copied .copy-default { display: none !important; }
.safe-deal-order-id-copy.copied .copy-success { display: flex !important; }
.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; justify-content: center; border-radius: 6px; }
/* 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: 6px; }
.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: #2F2F37; }
.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: 50%; color: #fff; background: transparent; font: 700 16px/1 var(--font); }
.safe-deal-order-stage.is-completed .safe-deal-order-stage-marker { color: #2EB822; }
.safe-deal-order-stage.is-completed .safe-deal-order-stage-marker::after { content: "✓"; font-size: 22.4px; font-weight: 350; line-height: 1; }
.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: 8px; }
.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: #fff; 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: #2EB822; }
.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: #fff; 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: #FF7C02; background: rgba(255,124,2,.12); 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: #2EB822; background: rgba(46,184,34,.12); 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: #FF7C02; }
.safe-deal-order-stage.is-failed .safe-deal-order-stage-marker { color: #E62929; }
.safe-deal-order-stage.is-failed .safe-deal-order-stage-marker::after { content: "×"; font-size: 26.88px; font-weight: 350; line-height: 1; }
.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: #54545A; }
.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: #54545A; }
.safe-deal-order-stage.is-after-cancellation .safe-deal-order-stage-marker { color: #54545A; }
.safe-deal-order-stage.is-after-cancellation .safe-deal-order-stage-content > p { color: #54545A; 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: #fff; 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: #fff; background: #2EB822; border: 0; border-radius: 8px; 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: #2EB822; 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: #2EB822; 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: #fff; 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: 8px; }
.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: #1E55F9; background: rgba(30,85,249,.12); 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: #1E55F9; background: rgba(30,85,249,.12); border: 0; border-radius: 9999px; font: 600 16px/20px var(--font); text-overflow: ellipsis; 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: #1E55F9; font: 600 16px/20px var(--font); text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.safe-deal-order-publication-copy .copy-success b { min-width: 0; flex: 1 1 auto; overflow: hidden; color: #fff; font: 600 16px/20px var(--font); text-align: left; text-overflow: ellipsis; 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 .copy-default img { filter: brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(3215%) hue-rotate(220deg) brightness(98%) contrast(103%); }
.safe-deal-order-publication-copy.copied { color: #fff; background: #1E55F9; }
.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: #1E55F9; background: rgba(30,85,249,.12); border: 0; border-radius: 50%; 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: #27272F; border-radius: 6px; 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: #54545A; 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: #fff; 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: #fff; border-radius: 8px; 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: #2EB822; }
.safe-deal-order-actions .is-confirm-completion { background: #2EB822; }
.safe-deal-order-actions .is-cancel-request-confirm,
.safe-deal-order-actions .is-accept-cancel { background: #FF7C02; }
.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: #E62929; }
.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: #E62929; }
.safe-deal-order-actions .is-cancel-request-reject { background: #FF7C02; }
.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: #fff; 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: 50%; 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: #E62929; }
.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: #fff; background: #0FA88C; }
.safe-deal-participant-approval-button.is-down.is-selected { color: #fff; background: #E62929; }
.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: #FF7C02; -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: #FF7C02; 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: #27272F; border: 0; outline: 0; border-radius: 8px; 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: #fff; background: #1E5EF9; border: 0; border-radius: 8px; 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: #fff; -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; text-overflow: ellipsis; 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; }
}

/* Личный кабинет (/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 { height: 48px; min-height: 48px; }
  .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: 24px; }
  .my-channel-card:not(.open) .my-channel-settings { display: none; }
  .my-channel-card.open { max-height: none !important; border-radius: 24px; }  /* !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: 24px; }
  .buyer-campaign-card.expandable-card-primitive:not(.open) .expandable-card-settings { display: none; }
  .buyer-campaign-card.expandable-card-primitive.open { border-radius: 24px; }
  .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: 24px; }
  .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-user-chip,
  .profile-user-go,
  .profile-user-name + .profile-user-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-right { 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; }
  .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-right { 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: см. выше */
  .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); }
}
