/* Дополнения к app.css из MVP для страниц нового сервиса. */
/* ---------- Вход, регистрация, сброс пароля: карточка 400 px, поля 44 px с подписью над полем, кнопки во всю ширину ---------- */
.auth { width: 400px; max-width: 100%; margin: 8px auto 0; padding: 32px 32px 28px; background: #fff; border: 1px solid #e6e8eb;
  border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.auth h1 { display: block; margin: 0 0 24px; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.02em; }
.auth-text { margin: -16px 0 24px; font-size: 15px; line-height: 22px; color: #4b5563; }
.auth-msg { margin: -8px 0 20px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 20px; background: #fff7e6; color: #8a5200; }
.auth-msg.bad { background: #fef2f2; color: #b3261e; }
.auth-msg.ok { background: #e6f4ea; color: #0b8043; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; border: 1px solid #d5d8dd;
  border-radius: 10px; background: #fff; font-size: 15px; font-weight: 600; color: #1a1d21; text-decoration: none; }
.auth-google:hover { background: #f8f9fb; border-color: #b8bec7; color: #1a1d21; }
.auth-google svg { width: 18px; height: 18px; flex: none; display: block; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: #7c8492; }
.auth-or span { flex: 1 1 auto; height: 1px; background: #e6e8eb; }
.auth-form { margin: 0; }
.auth-fields { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: block; }
.auth-label-row { display: flex; align-items: baseline; gap: 12px; }
.auth-label { display: block; font-size: 13.5px; line-height: 20px; font-weight: 600; color: #30353b; }
.auth-label-row .auth-label { flex: 1 1 auto; }
.auth-aside { font-size: 13.5px; line-height: 20px; font-weight: 600; color: #2563eb; text-decoration: none; }
.auth-aside:hover { color: #1d4ed8; }
.auth input.auth-input { display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0 14px; border: 1px solid #d5d8dd; border-radius: 10px;
  background: #fff; font-size: 15px; color: #1a1d21; }
.auth input.auth-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
/* Автозаполнение браузера не красит поле в голубой */
.auth input.auth-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: #1a1d21; }
.auth input.auth-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px rgba(37,99,235,.15); }
.auth-pw { position: relative; }
.auth-pw input.auth-input { padding-right: 48px; }
.auth-eye { position: absolute; top: 10px; right: 4px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  padding: 0; border: 0; border-radius: 8px; background: transparent; color: #7c8492; }
.auth-eye:hover:not(:disabled) { background: #f1f2f4; color: #1a1d21; }
.auth-eye svg { width: 18px; height: 18px; display: block; }
.auth-eye .auth-eye-off { display: none; }
.auth-eye.shown .auth-eye-off { display: inline; }
.auth-hint { margin-top: 6px; font-size: 13px; line-height: 18px; color: #7c8492; }
.auth-submit { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin-top: 24px; padding: 0 16px; border: 0;
  border-radius: 10px; background: #2563eb; font-size: 15px; font-weight: 600; line-height: 20px; color: #fff; text-decoration: none; }
.auth-submit:hover, .auth-submit:hover:not(:disabled) { background: #1d4ed8; color: #fff; }
.auth-submit.outline { margin-top: 0; border: 1px solid #d5d8dd; background: #fff; color: #1a1d21; }
.auth-submit.outline:hover { border-color: #b8bec7; background: #fff; color: #1a1d21; }
.auth-foot { margin: 24px 0 0; text-align: center; font-size: 14px; line-height: 20px; color: #6b7280; }
.auth-foot a { font-weight: 600; color: #2563eb; text-decoration: none; }
.auth-foot a:hover { color: #1d4ed8; }

/* ---------- Шапка (вариант 9a): логотип и основное меню слева; сегмент · язык · «Админка» · аккаунт справа ----------
   Липкая: при прокрутке остаётся наверху, шапка таблицы видео прилипает прямо под ней (top: 63px). */
.hdr { position: sticky; top: 0; z-index: 30; height: 64px; background: #fff; border-bottom: 1px solid #e6e8eb; }
.hdr-in { position: relative; max-width: 1480px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 8px; }
.hdr-nav { position: relative; display: flex; align-items: stretch; gap: 4px; height: 100%; margin-left: 40px; }
.hdr-link { position: relative; display: flex; align-items: center; padding: 0 16px; text-decoration: none; font-size: 16px; font-weight: 600;
  letter-spacing: -.005em; color: #4b5563; white-space: nowrap; transition: color .15s; }
.hdr-link:hover { color: #1a1d21; }
.hdr-link.active, .hdr-link.active:hover { color: #2563eb; }
.hdr-link.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: #2563eb; }
.hdr-gap { flex: 1 1 auto; }
.hdr-div { flex: none; width: 1px; height: 20px; margin: 0 6px; background: #e3e5e9; }
/* «Войти» у гостя (и «Выйти», если меню аккаунта нет) */
.hdr-form { display: flex; flex: none; margin: 0; }
.hdr-btn { display: inline-flex; align-items: center; flex: none; height: 36px; padding: 0 14px; border: 1px solid #d5d8dd; border-radius: 8px;
  background: #fff; font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 20px; color: #1a1d21; text-decoration: none; cursor: pointer; }
.hdr-btn:hover, .hdr-btn:hover:not(:disabled) { border-color: #b8bec7; color: #1a1d21; }

/* ---------- Выпадающие меню шапки: сегмент, язык, «Админка», аккаунт ----------
   Наведение открывает сразу, уход курсора закрывает через 0,2 с (app.js, headerMenus); над панелью — прозрачный
   мостик 18 px, по нему курсор доходит до меню. Нажатие закрепляет меню (.pinned). Панели — на 4 px ниже шапки. */
.hm { position: relative; flex: none; display: flex; }
.hm-drop { position: absolute; right: 0; top: 100%; z-index: 30; width: max-content; padding-top: 18px;
  visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s; }
.hm.open .hm-drop { visibility: visible; opacity: 1; transform: none; transition: opacity .12s ease, transform .12s ease, visibility 0s; }
.hm-panel { width: 288px; max-width: calc(100vw - 28px); padding: 6px; background: #fff; border: 1px solid #e6e8eb; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16,24,40,.14); text-align: left; }
/* Кнопки: сегмент и язык — текстом со стрелкой; «Админка» — шестерёнка; аккаунт — серый круг (точка — почта не подтверждена). */
.hm-pick { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 10px; border: 0; border-radius: 8px;
  background: transparent; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 20px; color: #30353b; cursor: pointer; }
.hm-pick.hm-lang { font-size: 13.5px; color: #6b7280; }
.hm.open .hm-pick { background: #f1f2f4; }
.hm-pick:hover:not(:disabled) { background: #f1f2f4; color: #1a1d21; }
.hm-pick-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-globe { width: 16px; height: 16px; flex: none; display: block; }
.hm-chev { width: 16px; height: 16px; flex: none; display: block; color: #9aa0a6; transition: transform .15s; }
.hm-lang .hm-chev { width: 14px; height: 14px; }
.hm.open .hm-chev { transform: rotate(180deg); }
.hm-ico, .hm-acc { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; transition: background .12s, color .12s; }
.hm-ico { background: transparent; color: #6b7280; }
.hm-ico:hover:not(:disabled), .hm.open .hm-ico { background: #f1f2f4; color: #1a1d21; }
.hm-ico svg { width: 19px; height: 19px; display: block; }
.hm-acc { background: #eef0f3; color: #4b5563; }
.hm-acc:hover:not(:disabled), .hm.open .hm-acc { background: #e3e6ea; color: #1a1d21; }
.hm-acc svg { width: 18px; height: 18px; display: block; }
.hm-dot { position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: #e09a1a; border: 2px solid #fff; }
/* Пункты, подписи групп, разделители на всю ширину панели */
.hm-cap { padding: 8px 10px 4px; font-size: 12px; line-height: 16px; font-weight: 600; color: #7c8492;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-item { display: flex; align-items: center; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 20px; color: #1a1d21; text-decoration: none; text-align: left; cursor: pointer; }
.hm-item:hover, .hm-item:hover:not(:disabled) { background: #f4f5f7; color: #1a1d21; }
.hm-sep { height: 1px; margin: 6px -6px; background: #eef0f3; }
.hm-sep.tight { margin: 0 -6px; }
.hm-sep.tight-top { margin: 0 -6px 6px; }
.hm-form { margin: 0; }
/* Списки сегментов и языков: открытый — жирнее и с синей галочкой */
.hm-list { width: auto; min-width: 240px; display: flex; flex-direction: column; gap: 2px; }
.hm-list--lang { min-width: 180px; }
.hm-opt { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 12px; border-radius: 8px; font-size: 14px; line-height: 20px;
  font-weight: 500; color: #1a1d21; text-decoration: none; white-space: nowrap; }
.hm-opt > span { flex: 1 1 auto; }
.hm-opt:hover { background: #f4f5f7; color: #1a1d21; }
.hm-opt.on { font-weight: 600; }
.hm-check { width: 16px; height: 16px; flex: none; display: block; color: #2563eb; opacity: 0; }
.hm-opt.on .hm-check { opacity: 1; }
/* Меню аккаунта: кто вошёл, плашка «Почта не подтверждена», строки модулей (остаток обновлений и «Тарифы») */
.hm-who { padding: 8px 10px 12px; }
.hm-who-name { font-size: 14.5px; line-height: 20px; font-weight: 600; color: #1a1d21; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-who-sub { margin-top: 1px; font-size: 13px; line-height: 18px; color: #7c8492; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-warn { margin-top: 10px; padding: 9px 12px 10px; border-radius: 8px; background: #fff7e6; }
.hm-warn-title { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: #8a5200; }
.hm-warn-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #e09a1a; }
.hm-warn form { margin: 0; }
.hm-warn-btn { display: block; margin: 3px 0 0 15px; padding: 0; border: 0; border-radius: 0; background: none; font-family: inherit; font-size: 13px;
  line-height: 18px; font-weight: 600; color: #2563eb; text-align: left; cursor: pointer; }
.hm-warn-btn:hover:not(:disabled) { color: #1d4ed8; text-decoration: underline; }
.hm-who-av { display: none; }
/* Строка модуля: подпись сверху, ниже — значение и ссылка справа (на телефоне — одной фразой, ссылка справа) */
.hm-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 10px 10px 11px; }
.hm-line-text { display: contents; }
.hm-line-label { grid-column: 1 / -1; font-size: 12.5px; line-height: 17px; color: #7c8492; }
.hm-line-value { margin-top: 2px; font-size: 14px; line-height: 20px; font-weight: 600; color: #1a1d21; }
.hm-line-link { margin-top: 2px; font-size: 13px; line-height: 20px; font-weight: 600; color: #2563eb; text-decoration: none; }
.hm-line-link:hover { color: #1d4ed8; text-decoration: underline; }
/* Телефон: «Сегмент» и «Язык» в шторке аккаунта и шапка списка с «Назад» — на компьютере их нет */
.hm-pickers, .hm-pickers-sep, .hm-shead { display: none; }
/* Меню «Админка»: квота YouTube на сегодня — остаток и полоса (зелёная, жёлтая, красная); строка ведёт на страницу квоты */
.hm-quota { display: block; padding: 9px 10px 12px; border-radius: 8px; text-decoration: none; }
.hm-quota:hover { background: #f4f5f7; }
.hm-quota-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; line-height: 18px; }
.hm-quota-label { flex: 1 1 auto; font-weight: 600; color: #30353b; }
.hm-quota-val { color: #7c8492; font-variant-numeric: tabular-nums; }
.hm-quota-val b { font-weight: 600; color: #1a1d21; }
.hm-quota.out .hm-quota-val b { color: #d93025; }
.hm-quota-bar { display: block; height: 6px; margin-top: 8px; border-radius: 99px; background: #e9ebef; overflow: hidden; }
.hm-quota-bar i { display: block; height: 100%; border-radius: 99px; background: #0f9d58; }
.hm-quota.low .hm-quota-bar i { background: #e09a1a; }
.hm-quota.out .hm-quota-bar i { background: #d93025; }
/* Узкий экран (планшет; админка и на телефоне): логотип и значки — первой строкой, разделы — второй, листаются вбок.
   Страницы сайта на телефоне — своя шапка и нижнее меню (в конце файла). */
@media (max-width: 900px) {
  .hdr { height: auto; }
  .hdr-in { flex-wrap: wrap; height: auto; padding: 0 14px; }
  .hdr-in > .brand { height: 56px; }
  .hdr-nav { order: 9; flex: 1 0 100%; height: 44px; margin: 0 -14px; padding: 0 4px; border-top: 1px solid #eef0f3;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hdr-nav::-webkit-scrollbar { display: none; }
  .hdr-link { padding: 0 12px; font-size: 15px; }
  .hdr-link.active::after { bottom: 0; left: 8px; right: 8px; }
}
.tile .v.ok { color: var(--accent-dark); }
.tile .v.bad { color: var(--danger); }
td.st-failed { color: var(--danger); font-weight: 600; }
td.st-done { color: var(--accent-dark); }
td.st-running { color: var(--primary-dark); }
td.err { font-size: 12.5px; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.btn-link { display: inline-block; padding: 7px 14px; border-radius: 8px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 600; }

.seg-form { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.seg-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.seg-form textarea { font-family: ui-monospace, monospace; font-size: 13px; }
.seg-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.seg-sections { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.seg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.seg-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); }
.seg-name { font-weight: 700; text-decoration: none; }
.seg-tabs { margin-bottom: 14px; }
.badge-gray { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #f1f3f6; color: #6b7280; font-size: 12px; font-weight: 600; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.bl-card { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px; }
.bl-main { min-width: 0; flex: 1 1 auto; }
.bl-name { display: block; font-weight: 600; font-size: 14.5px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-sub { color: var(--text-soft); font-size: 12px; }
.bl-empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--text-muted); }

.ch-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ch-tools .hint { font-size: 12.5px; color: var(--text-soft); }
.ch-tools .count { font-size: 13px; color: var(--text-soft); }
.ch-tools .count b { color: var(--text); }
table.data.ch { min-width: 640px; }
.ch-cell { display: flex; align-items: center; gap: 10px; }
.ch-av { width: 32px; height: 32px; border-radius: 50%; flex: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; overflow: hidden; }
.ch-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-cell a { font-weight: 600; font-size: 14.5px; text-decoration: none; }
table.ch td.failed.bad { color: var(--danger); font-weight: 600; }
table.ch td.total { font-size: 16px; font-weight: 700; white-space: nowrap; }
.collect-card .tiles { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-block; margin-bottom: 10px; font-size: 13px; text-decoration: none; color: var(--text-muted); }
.hidden { display: none !important; }

/* Вход, регистрация, аккаунт (M3). */
.auth-link { font-size: 13px; }
.callout.ok { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.callout.bad { background: #fdf0ef; color: #a52a20; border-color: #f5c7c2; }
.callout.warn { background: #fff7e6; color: #8a5200; border-color: #fde4b5; }
.callout.flat { margin: 0 0 14px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0 0; font-size: 14px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #eef2ff; color: #3730a3; font-size: 12px; font-weight: 600; vertical-align: middle; }
.badge.ok { background: #ecfdf3; color: #166534; }
.badge.warn { background: #fff7e6; color: #8a5200; }
.badge.bad { background: #fdf0ef; color: #a52a20; }
form.inline { display: inline; }
.small { font-size: 12.5px; }
.table-wrap { overflow: auto; }
table.data.users td { vertical-align: top; }
.pre { white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: 12px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; max-height: 360px; overflow: auto; }

/* Гость: заглушки скрытых строк и призыв войти. */
.vt-ghost { display: block; height: 11px; margin: 7px 0; border-radius: 6px; background: linear-gradient(90deg, #e5e7eb, #f3f4f6); }
/* ---------- Гостю (и на лендинге до регистрации): под открытыми строками — размытый пример, растворяющийся в фоне
   страницы, и карточка входа поверх ---------- */
.gate { position: relative; height: 420px; margin-top: -1px; overflow: clip; }
.tg .gate { margin-top: 0; }
.gate-rows { filter: blur(6px); opacity: .5; pointer-events: none; user-select: none; }
.gate-rows table.vt th { position: static; }
.gate-head { margin: 0 0 12px; }
.gate-head .vt-ghost { width: min(320px, 50%); height: 20px; margin: 4px 0; }
.gate::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(244,245,247,.2) 0%, rgba(244,245,247,.6) 50%, #f4f5f7 100%); }
.gate-card { position: absolute; left: 50%; top: 72px; z-index: 1; transform: translateX(-50%); width: 420px; max-width: calc(100% - 32px);
  padding: 28px 32px; background: #fff; border: 1px solid #e6e8eb; border-radius: 16px; box-shadow: 0 12px 32px rgba(16,24,40,.14); text-align: center; }
.gate-lock { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #eff4ff; color: #2563eb; }
.gate-lock svg { width: 20px; height: 20px; display: block; }
.gate-title { margin-top: 14px; font-size: 18px; line-height: 26px; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.gate-go { display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 20px; border-radius: 10px; background: #2563eb;
  font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; }
.gate-go:hover { background: #1d4ed8; color: #fff; }
.gate-alt { margin-top: 14px; font-size: 14px; line-height: 20px; color: #6b7280; }
.gate-alt a { font-weight: 600; color: #2563eb; text-decoration: none; }
.gate-alt a:hover { color: #1d4ed8; }
.gate-card.static { position: static; transform: none; margin: 0 auto; }
/* ---------- Начало страниц сайта: заголовок, текст, строка над таблицей (одна схема на «Все видео», «Тренды»,
   «Идеи для моего канала») ---------- */
.page--site { padding-top: 48px; }
.ph { margin-bottom: 40px; }
.ph h1 { display: block; margin: 0; max-width: 720px; font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: -.028em;
  text-wrap: balance; font-kerning: normal; text-rendering: optimizeLegibility; }
.ph-lead { margin: 12px 0 0; max-width: 64ch; font-size: 18px; line-height: 28px; color: #30353b; text-wrap: pretty; }
/* Выделение: жирный тёмный текст, жёлтый маркер на нижней половине строки (на переносе — у каждой строки) */
.hl { font-weight: 700; color: #1a1d21; padding: 0 3px; margin: 0 -1px; border-radius: 3px;
  background: linear-gradient(transparent 52%, #ffe08a 52%, #ffe08a 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl.nw { white-space: nowrap; }
/* Строка над таблицей: слева управление, справа серым — когда обновлено и сколько видео */
.ph-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; }
.ph-meta { font-size: 13px; line-height: 20px; color: #7c8492; white-space: nowrap; }
.ph-note { margin: 0 0 16px; font-size: 15px; color: #30353b; }
.site-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.site-head h1 { margin: 0; font-size: 22px; }
.site-lead { color: var(--text-muted); font-size: 14px; margin: 0 0 14px; max-width: 760px; }
/* ---------- Окна сайта (добавить канал, удалить канал, обновить подборку, сменить пароль): 448 px, радиус 16,
   крестик справа вверху, кнопки справа внизу; страница под окном затемнена. Закрываются крестиком, «Отменой», Esc и
   нажатием мимо окна. ---------- */
.dlg-bg { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center;
  padding: max(24px, 16vh) 16px 24px; overflow-y: auto; background: rgba(16,24,40,.42);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.dlg-bg.open { display: flex; }
.dlg { position: relative; width: 448px; max-width: 100%; padding: 24px; background: #fff; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(16,24,40,.24); color: #1a1d21; animation: pop .14s ease; }
.dlg-x { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 36px;
  height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6b7280; }
.dlg-x:hover:not(:disabled) { background: #f1f2f4; color: #1a1d21; }
.dlg-x svg { width: 18px; height: 18px; display: block; }
.dlg h2 { margin: 0; padding-right: 40px; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.015em; }
.dlg-sub { margin: 6px 0 0; font-size: 15px; line-height: 22px; color: #4b5563; }
.dlg-text { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; font-size: 15px; line-height: 22px; color: #4b5563; }
.dlg-text p { margin: 0; }
.dlg-text b { font-weight: 600; color: #1a1d21; }
.dlg input.dlg-input { display: block; width: 100%; height: 44px; margin-top: 16px; padding: 0 14px; border: 1px solid #d5d8dd; border-radius: 10px;
  background: #fff; font-size: 15px; color: #1a1d21; }
.dlg input.dlg-input::placeholder { color: #9aa0a6; }
.dlg input.dlg-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.dlg input.dlg-input[aria-invalid="true"] { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217,48,37,.12); }
.dlg-label { display: block; margin-top: 16px; font-size: 13.5px; font-weight: 600; line-height: 20px; color: #4b5563; }
.dlg-label input.dlg-input { margin-top: 6px; }
.dlg-err { margin-top: 8px; font-size: 13.5px; line-height: 20px; color: #d93025; }
.dlg-err:empty { display: none; }
.dlg-notes { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 13.5px; line-height: 20px; color: #4b5563; }
.dlg-notes > div { display: flex; align-items: flex-start; gap: 10px; }
.dlg-notes svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #7c8492; }
.dlg-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 0 0; font-size: 15px; line-height: 22px; }
.dlg-facts dt { color: #7c8492; }
.dlg-facts dt::after { content: ":"; }                 /* на телефоне строки «подпись — значение» без двоеточия */
.dlg-facts dd { margin: 0; font-weight: 600; color: #1a1d21; font-variant-numeric: tabular-nums; }
.dlg-facts dd.bad, .dlg-note.bad { color: #d93025; }
.dlg-note { margin: 16px 0 0; font-size: 13.5px; line-height: 20px; color: #7c8492; }
.dlg-note a { color: #2563eb; font-weight: 600; text-decoration: none; }
.dlg-warn { margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: #fff7e6; font-size: 13.5px; line-height: 20px; color: #8a5200; }
.dlg-warn button { padding: 0; border: 0; background: none; font-size: 13.5px; font-weight: 600; color: #2563eb; }
.dlg-warn button:hover:not(:disabled) { color: #1d4ed8; text-decoration: underline; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.dlg-btn { height: 40px; padding: 0 16px; border: 1px solid #d5d8dd; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600;
  line-height: 20px; color: #1a1d21; }
.dlg-btn:hover:not(:disabled) { border-color: #b8bec7; color: #1a1d21; }
.dlg-btn:focus-visible { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.dlg-btn.go, .dlg-btn.del { padding: 0 18px; border: 0; color: #fff; }
.dlg-btn.go { background: #2563eb; }
.dlg-btn.go:hover:not(:disabled) { background: #1d4ed8; color: #fff; }
.dlg-btn.go:focus-visible { box-shadow: 0 0 0 3px rgba(37,99,235,.25); }
.dlg-btn.del { background: #d93025; }
.dlg-btn.del:hover:not(:disabled) { background: #b3261e; color: #fff; }
.dlg-btn.del:focus-visible { box-shadow: 0 0 0 3px rgba(217,48,37,.25); }

/* ---------- «Идеи для моего канала»: вкладки каналов, карточка канала, приглашение без каналов ---------- */
/* Вкладки: активная — белая, с синей чертой сверху, переходит в карточку под ней; число — видео в списке канала.
   Вкладок много — ряд листается вбок (полоса прокрутки скрыта). */
.ideas-tabs { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 2px; height: 48px; margin-bottom: -1px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ideas-tabs::-webkit-scrollbar { display: none; }
.ideas-tab { position: relative; flex: none; display: flex; align-items: center; gap: 10px; height: 45px; padding: 0 16px;
  border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; font-size: 15px; font-weight: 600; color: #6b7280;
  text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.ideas-tab:hover { color: #1a1d21; }
.ideas-tab.on { background: #fff; border-color: #e6e8eb; box-shadow: inset 0 3px 0 #2563eb; color: #1a1d21; }
.ideas-av { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: #e9ebee center / cover no-repeat; font-size: 11.5px; font-weight: 700; }
.ideas-tab-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.ideas-tab-n { margin-left: -4px; font-size: 13.5px; font-weight: 500; color: #9aa0a6; font-variant-numeric: tabular-nums; }
.ideas-tab.on .ideas-tab-n { color: #7c8492; }
.ideas-add { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 36px; margin-left: 8px;
  padding: 0 14px 0 10px; border: 1px solid #d5d8dd; border-radius: 8px; background: transparent; font-size: 13.5px; font-weight: 600;
  line-height: 20px; color: #4b5563; white-space: nowrap; transition: color .15s, border-color .15s, background .15s; }
.ideas-add:hover:not(:disabled) { color: #1a1d21; border-color: #b8bec7; background: #fff; }
.ideas-add svg { width: 16px; height: 16px; flex: none; display: block; }
/* Карточка канала: строка с кнопками, под тонкой линией — таблица без своей рамки. Под первой вкладкой угол прямой. */
.ideas-panel { position: relative; z-index: 1; background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; }
.ideas-panel.first { border-top-left-radius: 0; }
.ideas-panel .vt-wrap { border: 0; border-radius: 0 0 11px 11px; }
.ideas-bar { display: flex; align-items: center; gap: 20px; padding: 12px 16px; border-bottom: 1px solid #eef0f3; }
.ideas-refresh { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid #d5d8dd; border-radius: 8px;
  background: #fff; font-size: 13.5px; font-weight: 600; line-height: 20px; color: #1a1d21; transition: border-color .15s; }
.ideas-refresh:hover:not(:disabled) { border-color: #b8bec7; color: #1a1d21; }
.ideas-refresh svg { width: 15px; height: 15px; flex: none; }
.ideas-status { margin-left: -6px; min-width: 0; font-size: 13px; line-height: 20px; color: #7c8492; }
.ideas-status.run { color: var(--primary-dark); }
.ideas-status.bad { color: var(--danger); }
.ideas-more { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0;
  border-radius: 8px; background: transparent; color: #6b7280; transition: background .12s, color .12s; }
.ideas-more:hover:not(:disabled), .hm.open .ideas-more { background: #f1f2f4; color: #1a1d21; }
.ideas-more svg { width: 20px; height: 20px; display: block; }
.hm-drop--near { padding-top: 6px; }
.ideas-menu { width: auto; min-width: 200px; }
.hm-item.danger, .hm-item.danger:hover:not(:disabled) { color: #d93025; }
.hm-item.danger:hover:not(:disabled) { background: #fef2f2; }
.rec-archive { margin-top: 8px; }
/* Каналов ещё нет (и гостю): приглашение, кнопка и размытый пример таблицы, растворяющийся в фоне страницы */
.ph-invite { margin: 32px 0 0; max-width: 64ch; font-size: 18px; line-height: 28px; color: #30353b; }
.ph-cta { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.ph-cta-alt { font-size: 14px; color: #6b7280; }
.ph-cta-alt a { color: #2563eb; font-weight: 600; text-decoration: none; }
.ph-cta-alt a:hover { color: #1d4ed8; text-decoration: underline; }
.btn-main { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px 0 16px; border: 0; border-radius: 8px;
  background: #2563eb; font-size: 15px; font-weight: 600; line-height: 20px; color: #fff; text-decoration: none; white-space: nowrap; }
a.btn-main { padding: 0 20px; }
.btn-main:hover, .btn-main:hover:not(:disabled) { background: #1d4ed8; color: #fff; }
.btn-main svg { width: 18px; height: 18px; flex: none; display: block; }
.ideas-preview { position: relative; height: 430px; overflow: clip; pointer-events: none; user-select: none; }
.ideas-preview table.vt th { position: static; }      /* пример не прокручивается — шапка столбцов не прилипает */
.ideas-preview-rows { filter: blur(6px); opacity: .55; }
.ideas-preview::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(244,245,247,0) 0%, rgba(244,245,247,.35) 45%, #f4f5f7 100%); }

/* ---------- Тренды на сайте (вариант 7a): заголовок группы на фоне страницы, своя таблица-карточка, «Ещё N видео»
   под ней; 40 px между группами ---------- */
.tg-list { display: flex; flex-direction: column; gap: 40px; }
.tg-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; }
.tg-name { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.015em; color: #1a1d21; }
.tg-new { align-self: center; padding: 0 8px; border-radius: 6px; background: #e6f4ea; color: #0b8043; font-size: 12px; font-weight: 600;
  line-height: 20px; white-space: nowrap; }
.tg-total { font-size: 13.5px; color: #7c8492; white-space: nowrap; }
.tg-total b { font-size: 15px; font-weight: 600; color: #30353b; font-variant-numeric: tabular-nums; }
.tg-gap { flex: 1 1 auto; }
.tg-foot { margin-top: 8px; }
.tg-more { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; border-radius: 0; background: none;
  font-size: 13.5px; font-weight: 600; line-height: 20px; color: #2563eb; }
.tg-more:hover:not(:disabled) { color: #1d4ed8; }
.tg-more svg { width: 16px; height: 16px; flex: none; display: block; transition: transform .15s; }
.tg-more[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Тренды в админке: группа — карточка с номером, названием, цифрами и таблицей видео. */
.groups { display: flex; flex-direction: column; gap: 14px; }
.group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 16px; }
.group-head { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.group-num { color: var(--text-soft); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.group-head h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; cursor: default; }
.group-stats { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-muted); }
.group-stats b { color: var(--text); }
.group-stats b.sim { color: var(--primary-dark); }
.group-table { margin-top: 12px; }
.group > button.link { padding-top: 10px; }
.rec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.rec-head .own-av { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; }
.rec-head .own-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-status { font-size: 13px; color: var(--text-muted); }
.rec-status.run { color: var(--primary-dark); }
.rec-status.bad { color: var(--danger); }
.rec-head > .rec-status { flex: 1 1 260px; min-width: 0; font-size: 13.5px; }
button.link.quiet { color: var(--text-soft); font-size: 13px; }
button.link.quiet:hover:not(:disabled) { color: var(--danger); }


/* ---------- Модальные окна админки (форма нового сегмента, переименование) ---------- */
.modal.wide { width: min(560px, 94vw); }
.modal .seg-form { max-width: none; }
.modal .seg-form input[type=text], .modal .seg-form select { width: 100%; margin-bottom: 0; }
.modal input[type=checkbox] { width: auto; margin: 0; }
.modal .seg-sections { margin-bottom: 4px; }
.modal .modal-row { margin-top: 6px; }
.modal .msg { margin: -8px 0 10px; }
.seg-form .seg-sections label.sb-check { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; color: var(--text); }
table.data.left th, table.data.left td { text-align: left; white-space: normal; }
table.data.left td:last-child, table.data.left th:last-child { text-align: left; }
table.data td.num, table.data.left td.num, table.data.left th.num { text-align: right; white-space: nowrap; }
.rec-archive #vt-archive { margin-top: 10px; }

/* ---------- Строка над таблицей «Все видео»: слева «Фильтры», справа серым дата и «Показано» ----------
   Кнопка сортировки и разделитель — только на телефоне (там это панель «Фильтры | Просмотры ↓»). */
.ph-row .ph-meta { order: 1; margin-left: auto; }
.ph-tools { display: flex; align-items: center; gap: 8px; }
.ph-sort, .ph-tools-div, .ph-meta--phone, .tg-name-phone, .ideas-tab-short, .ideas-chans, .ideas-menu-phone, .hm-ic { display: none; }

/* ---------- Подвал сайта и политика конфиденциальности ---------- */
.site-foot { max-width: 1480px; margin: -28px auto 0; padding: 0 24px 32px; font-size: 13px; line-height: 20px; color: #7c8492; }
.site-foot--narrow { max-width: 1100px; }
.site-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-foot a:hover { color: #1a1d21; }
.legal { max-width: 720px; }
.legal .ph { margin-bottom: 32px; }
.legal .legal-meta { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: #7c8492; }
.legal section { margin-top: 28px; }
.legal h2 { margin: 0 0 8px; font-size: 19px; line-height: 26px; font-weight: 700; letter-spacing: -.01em; color: #1a1d21; }
.legal p, .legal li { font-size: 16px; line-height: 26px; color: #30353b; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal b { color: #1a1d21; font-weight: 600; }
.legal a { color: #2563eb; text-decoration: none; overflow-wrap: anywhere; }
.legal a:hover { text-decoration: underline; }

/* ======================= Телефон (до 600 px): макет «Mobile - Redesign» (390 px) =======================
   Шапка 56 px уезжает при прокрутке вниз и возвращается при прокрутке вверх (app.js, класс hdr-away у <html>),
   разделы — в нижнем меню, меню и окна — шторками снизу, таблицы — карточками во всю ширину (.bleed — блок без
   боковых отступов страницы), поля ввода 16 px (без увеличения на iPhone), зоны нажатия от 44 px. */
.bnav, .bnav-space { display: none; }
@media (max-width: 600px) {
  .page.page--site { padding: 28px 16px 24px; }
  .site-foot { margin-top: -8px; padding: 0 16px 24px; }
  .legal .ph { margin-bottom: 24px; }
  .legal h2 { font-size: 18px; line-height: 24px; }
  .bleed { margin-left: -16px; margin-right: -16px; }

  /* Шапка: логотип; справа — шестерёнка «Админки» и аккаунт; гостю — язык (если языков несколько) и синяя «Войти» */
  .site .hdr { height: 56px; transition: top .22s cubic-bezier(.2,0,0,1); }
  .hdr-away .site .hdr { top: -104px; }
  .site .hdr-in { flex-wrap: nowrap; height: 56px; padding: 0 6px 0 16px; gap: 2px; }
  .site .hdr-in > .brand { height: auto; }
  .brand-logo { height: 22px; }
  .site .hdr-nav, .site .hdr-div, .site .hdr--user .hm-pick { display: none; }
  .site .hm-pick.hm-lang { height: 44px; gap: 5px; padding: 0 8px; border-radius: 8px; background: none; }
  .site .hm-lang .hm-chev { display: none; }
  .site .hm-globe { width: 18px; height: 18px; }
  .site .hdr-btn { height: 36px; margin: 0 6px 0 4px; padding: 0 14px; border: 0; background: #2563eb; font-size: 14px; color: #fff; }
  .site .hdr-btn:hover, .site .hdr-btn:hover:not(:disabled) { background: #1d4ed8; color: #fff; }
  .site .hm-ico, .site .hm-ico:hover:not(:disabled), .site .hm.open .hm-ico { width: 44px; height: 44px; border-radius: 22px; background: none;
    color: #6b7280; }
  .site .hm-ico svg { width: 21px; height: 21px; }
  .site .hm-acc { width: 44px; height: 44px; color: #6b7280; background: radial-gradient(circle, #eef0f3 0 18px, transparent 18.5px); }
  .site .hm-acc:hover:not(:disabled), .site .hm.open .hm-acc { background: radial-gradient(circle, #e3e6ea 0 18px, transparent 18.5px); }
  .site .hm-acc svg { width: 19px; height: 19px; }
  .site .hm-dot { top: 4px; right: 4px; }

  /* Нижнее меню (17c): 64 px + системная полоса, три раздела — значок 24 px и подпись 12 px; открытый — синий */
  .bnav-space { display: block; height: calc(64px + env(safe-area-inset-bottom)); }
  .bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: calc(6px + env(safe-area-inset-bottom)); background: #fff;
    box-shadow: inset 0 1px 0 #e6e8eb; }
  .bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; font-size: 12px;
    line-height: 16px; font-weight: 500; color: #6b7280; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
  .bnav a:hover { color: #6b7280; }
  .bnav a[aria-current="page"], .bnav a[aria-current="page"]:hover { font-weight: 600; color: #2563eb; }
  .bnav svg { width: 24px; height: 24px; display: block; }
  .bnav ~ .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* Меню шапки и «⋯» карточки канала — шторки снизу: радиус 16, ручка, пункты по 48 px; затемнение — сама подложка
     меню (.hm-drop), нажатие по нему закрывает (app.js) */
  .hm-drop, .hm-drop--near { position: fixed; inset: 0; z-index: 60; width: auto; padding: 0; display: flex; flex-direction: column;
    justify-content: flex-end; background: rgba(16,24,40,.42); transform: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: opacity .2s ease, visibility 0s linear .2s; }
  .hm.open .hm-drop { transform: none; transition: opacity .2s ease, visibility 0s; }
  .hm-panel, .hm-list, .ideas-menu { width: 100%; max-width: none; min-width: 0; max-height: calc(100% - 48px); overflow-y: auto;
    overscroll-behavior: contain; padding: 0 8px calc(24px + env(safe-area-inset-bottom)); border: 0; border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(16,24,40,.16); cursor: auto; transform: translateY(32px); transition: transform .22s cubic-bezier(.2,0,0,1); }
  .hm.open .hm-panel { transform: none; }
  .hm-panel::before { content: ""; display: block; flex: none; width: 36px; height: 4px; margin: 8px auto 8px; border-radius: 2px; background: #d5d8dd; }
  .hm-list { gap: 0; }
  .hm-item { height: 48px; gap: 14px; padding: 0 12px; border-radius: 10px; font-size: 15px; }
  .hm-item:active { background: #f4f5f7; }
  .hm-item.danger:active { background: #fef2f2; }
  .hm-ic { display: block; width: 20px; height: 20px; flex: none; }
  .hm-cap { padding: 8px 12px 4px; }
  .hm-sep { margin: 6px -8px; }
  .hm-opt { min-height: 48px; padding: 0 12px; border-radius: 10px; font-size: 15px; }
  .hm-opt.on { color: #2563eb; }
  .hm-check { width: 20px; height: 20px; }
  /* Шапка списка «Сегмент» / «Язык»: «Назад» и название */
  .hm-shead { display: flex; align-items: center; gap: 4px; padding: 0 0 6px; }
  .hm-back { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0;
    border-radius: 22px; background: none; color: #6b7280; }
  .hm-back:hover:not(:disabled) { color: #1a1d21; }
  .hm-back svg { width: 20px; height: 20px; display: block; }
  .hm-shead-title { font-size: 18px; line-height: 24px; font-weight: 700; color: #1a1d21; }
  /* Шторка аккаунта (16k): кружок 44 px и имя, строка модуля одной фразой («Тарифы» справа), «Сегмент» и «Язык» */
  .hm-who { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 8px 12px 14px; }
  .hm-who-av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
    background: #eef0f3; color: #6b7280; }
  .hm-who-av svg { width: 22px; height: 22px; display: block; }
  .hm-who-text { flex: 1 1 0; min-width: 0; }
  .hm-who-name { font-size: 16px; line-height: 22px; }
  .hm-who-sub { margin-top: 0; font-size: 13.5px; line-height: 20px; }
  .hm-warn { flex: 1 0 100%; margin-top: 12px; }
  .hm-sep.tight { display: none; }
  .hm-sep.tight-top { margin: 0 -8px 6px; }
  .hm-line { display: flex; align-items: baseline; gap: 12px; padding: 0 12px 14px; }
  .hm-line-text { display: block; flex: 1 1 auto; min-width: 0; font-size: 13.5px; line-height: 20px; color: #7c8492; }
  .hm-line-label { font-size: inherit; line-height: inherit; }
  .hm-line-label::after { content: ":"; }
  .hm-line-value { margin: 0; font-size: inherit; line-height: inherit; color: #1a1d21; white-space: nowrap; }
  .hm-line-link { flex: none; margin: 0; font-size: 14px; }
  .hm-pickers-sep { display: block; margin: 0 -8px; }
  .hm-pickers { display: block; padding: 6px 0; }
  .hm-go { gap: 12px; }
  .hm-go-label { flex: 1 1 auto; }
  .hm-go-val { font-size: 14px; color: #7c8492; }
  .hm-go-chev { width: 16px; height: 16px; flex: none; color: #9aa0a6; }
  /* Шторка «Админки» (16l): квота — подпись 15 px и полоса 4 px */
  .hm-quota { padding: 12px 12px 14px; border-radius: 10px; }
  .hm-quota-label { font-size: 15px; font-weight: 500; color: #1a1d21; }
  .hm-quota-bar { height: 4px; }

  /* Начало страниц: заголовок 26/30 800, текст 17/26 через 10 px, строка с датой — через 16 px */
  .ph { margin-bottom: 24px; }
  .ph h1 { font-size: 26px; line-height: 30px; letter-spacing: -.025em; }
  .ph-lead { margin-top: 10px; font-size: 17px; line-height: 26px; }
  .ph-meta { line-height: 18px; white-space: normal; }
  .ph-meta--phone { display: block; margin-top: 16px; }

  /* «Все видео»: дата и «Показано» под текстом, ниже — панель «Фильтры | Просмотры ↓» во всю ширину; она прилипает
     под шапкой и уезжает вместе с ней (hdr-away), над шторкой фильтров поднимается (fm-open) */
  .ph-row { display: contents; }
  .ph-row .ph-meta { display: block; order: 0; margin: -8px 0 0; }
  .ph-tools { position: sticky; top: 55px; z-index: 20; align-items: stretch; gap: 0; height: 48px; margin: 16px -16px 8px; background: #fff;
    box-shadow: inset 0 1px 0 #e6e8eb, inset 0 -1px 0 #e6e8eb; transition: top .22s cubic-bezier(.2,0,0,1); }
  .hdr-away .ph-tools { top: -49px; }
  .fm-open .ph-tools { z-index: 70; }
  .ph-tools .fm { flex: 1 1 0; min-width: 0; display: flex; }
  .ph-tools .fm-btn, .ph-sort { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px;
    padding: 0 12px; border: 0; border-radius: 0; background: none; font-size: 15px; font-weight: 600; line-height: 20px; color: #1a1d21; white-space: nowrap;
    -webkit-tap-highlight-color: transparent; }
  .ph-tools .fm-btn:hover:not(:disabled), .ph-sort:hover:not(:disabled), .ph-tools .fm.open .fm-btn { border: 0; color: #1a1d21; }
  .ph-tools .fm-btn:active, .ph-sort:active { background: #f4f5f7; }
  .ph-tools .fm-btn svg { width: 17px; height: 17px; color: #6b7280; }
  .ph-sort svg { width: 18px; height: 18px; flex: none; color: #6b7280; }
  .ph-sort-dir { margin-left: -4px; font-weight: 500; color: #7c8492; }
  .ph-tools-div { display: block; flex: none; align-self: center; width: 1px; height: 24px; background: #e6e8eb; }

  /* Гостю: под открытыми карточками — размытый пример и карточка входа (кнопка 48 px) */
  .gate-card { left: 16px; right: 16px; top: 48px; width: auto; max-width: none; transform: none; padding: 24px 20px 20px; }
  .gate-title { margin-top: 12px; font-size: 18px; line-height: 24px; }
  .gate-go { height: 48px; }
  .gate-head { padding: 0 16px; }
  #vt-gate .gate { margin-top: 8px; }

  /* «Тренды» (16b): белая шапка группы прямо над первой карточкой прилипает под шапкой сайта, пока листаются её
     видео (top 56, 0 — когда шапка уехала); название 20/26 800, «Новая» — вместе с последним словом; 24 px между
     группами; «Ещё N видео» — кнопкой во всю ширину */
  .tg-list { gap: 24px; }
  .tg-head { position: sticky; top: 56px; z-index: 10; display: block; margin: 0; padding: 14px 16px 12px; background: #fff;
    box-shadow: 0 1px 0 #e6e8eb; transition: top .22s cubic-bezier(.2,0,0,1); }
  .hdr-away .tg-head { top: 0; }
  .tg-name { font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -.018em; text-wrap: balance; }
  .tg-name-full, .tg-head > .tg-new, .tg-head > .tg-gap, .tg-head > .ph-meta { display: none; }
  .tg-name-phone { display: inline; }
  .tg-nw { white-space: nowrap; }
  .tg-pill { display: inline-flex; align-items: center; height: 22px; margin-left: 8px; padding: 0 8px; border-radius: 11px; background: #e6f4ea;
    color: #0b8043; font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1; vertical-align: 2px; }
  .tg-total { display: block; margin-top: 4px; line-height: 20px; white-space: normal; }
  .tg-foot { margin-top: 1px; }
  .tg-more { justify-content: center; width: 100%; height: 48px; padding: 0; background: #fff; font-size: 15px; -webkit-tap-highlight-color: transparent; }
  .tg-more:active { background: #f8fafe; }

  /* «Идеи для моего канала» (16c, 20a, 20b): открытая вкладка 48 px, «Ещё N канала», «+» справа — на одной оси с «⋯»
     карточки ниже (34 px от края экрана); в карточке канала — дата и «⋯» */
  .ideas-tabs { z-index: auto; gap: 4px; height: auto; margin: 0; overflow: visible; }
  .ideas-tab:not(.on) { display: none; }
  .ideas-tab.on { flex: 0 1 auto; min-width: 0; height: 48px; gap: 8px; padding: 0 14px; border: 0; border-radius: 10px 10px 0 0;
    box-shadow: inset 0 3px 0 #2563eb; }
  .ideas-av { width: 22px; height: 22px; font-size: 11px; }
  .ideas-tab-name { display: none; }
  .ideas-tab-short { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .ideas-tab-n { flex: none; margin-left: 0; font-size: 15px; }
  .ideas-chans { display: inline-flex; align-items: center; flex: none; height: 48px; padding: 0 10px; border: 0; border-radius: 10px 10px 0 0;
    background: none; font-size: 14px; font-weight: 500; line-height: 20px; color: #4b5563; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
  .ideas-chans:hover:not(:disabled) { color: #4b5563; }
  .ideas-chans:active { background: #eceef1; }
  .ideas-add { position: relative; justify-content: center; width: 36px; height: 36px; margin-left: auto; padding: 0; border-radius: 10px; background: #fff;
    color: #2563eb; }
  .ideas-add::after { content: ""; position: absolute; inset: -5px; }
  .ideas-add:hover:not(:disabled) { background: #fff; color: #2563eb; }
  .ideas-add span { display: none; }
  .ideas-add svg { width: 20px; height: 20px; }
  .ideas-panel { position: static; z-index: auto; border: 0; border-radius: 0; }
  .ideas-panel .vt-wrap { border-radius: 0; }
  .ideas-bar { gap: 8px; min-height: 52px; padding: 0 16px; border-bottom: 0; box-shadow: inset 0 -1px 0 #eef0f3; }
  .ideas-refresh, .ideas-bar > .spacer { display: none; }
  .ideas-status { flex: 1 1 auto; margin-left: 0; font-size: 13px; line-height: 18px; }
  .ideas-more { width: 44px; height: 44px; margin-right: -4px; border-radius: 22px; }
  .hm.open .ideas-more { background: none; }
  .ideas-menu-phone { display: flex; }
  .hm-cap.ideas-menu-phone { display: block; }
  .rec-archive { margin-top: 8px; }
  /* Каналов ещё нет (16d): приглашение 17/26, синяя кнопка во всю ширину, размытый пример карточками */
  .ph-invite { margin-top: 24px; font-size: 17px; line-height: 26px; }
  .ph-cta { flex-direction: column; align-items: stretch; gap: 14px; }
  .btn-main, a.btn-main { justify-content: center; width: 100%; height: 48px; padding: 0 16px; border-radius: 10px; }
  .ph-cta-alt { text-align: center; }
  .ideas-preview { margin-top: 8px; }

  /* Окна — шторки снизу: ручка, заголовок 20/26 и × (44 px), поля 48 px / 16 px, кнопки 48 px по две в ряд */
  .dlg-bg { align-items: flex-end; padding: 0; overflow: hidden; -webkit-backdrop-filter: none; backdrop-filter: none; cursor: pointer; }
  .dlg { width: 100%; max-width: none; max-height: calc(100% - 48px); overflow-y: auto; overscroll-behavior: contain;
    padding: 0 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(16,24,40,.16); cursor: auto;
    animation: sheet-up .22s cubic-bezier(.2,0,0,1); }
  .dlg::before { content: ""; display: block; width: 36px; height: 4px; margin: 8px auto 4px; border-radius: 2px; background: #d5d8dd; }
  .dlg-x { top: 16px; right: 8px; width: 44px; height: 44px; border-radius: 22px; }
  .dlg-x svg { width: 20px; height: 20px; }
  .dlg h2 { margin-top: 8px; padding-right: 40px; font-size: 20px; line-height: 26px; letter-spacing: -.01em; }
  .dlg-sub, .dlg-text { margin-top: 4px; }
  .dlg input.dlg-input { height: 48px; margin-top: 14px; font-size: 16px; }
  .dlg-label input.dlg-input { margin-top: 6px; }
  .dlg-notes { margin-top: 14px; color: #7c8492; }
  .dlg-notes > div { gap: 8px; }
  .dlg-notes svg { color: #9aa0a6; }
  .dlg-facts { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin-top: 4px; }
  .dlg-facts dd { text-align: right; }
  .dlg-facts dt::after { content: none; }
  .dlg-note { margin-top: 14px; }
  .dlg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
  .dlg-btn, .dlg-btn.go, .dlg-btn.del { height: 48px; padding: 0 12px; border-radius: 10px; font-size: 15px; }

  /* Вход, регистрация, сброс пароля (16g): белая страница без нижнего меню, поля и кнопки 48 px */
  body.site--auth { background: #fff; }
  .site--auth .page.page--site { padding: 32px 16px 40px; }
  .auth { width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .auth h1 { font-size: 26px; line-height: 30px; font-weight: 800; letter-spacing: -.025em; }
  .auth-google { height: 48px; }
  .auth-or { margin: 20px 0 16px; }
  .auth-label { font-size: 14px; color: #1a1d21; }
  .auth input.auth-input { height: 48px; font-size: 16px; }
  .auth-pw input.auth-input { padding-right: 52px; }
  .auth-eye { top: 8px; right: 2px; width: 44px; height: 44px; border-radius: 10px; }
  .auth-eye svg { width: 20px; height: 20px; }
  .auth-submit { height: 48px; }
  .auth-foot { font-size: 15px; line-height: 22px; color: #4b5563; }
}
