/* ===== Layrix: светлая система для страниц на base.html =====
   Спека docs/superpowers/specs/2026-11-22-unified-light-ui-design.md.
   Подключается ПОСЛЕ inline-стилей base.html, ui.css и light.css и
   выигрывает каскадом. Токены переопределяются на body.light-app (а не на
   :root), чтобы не задеть --accent/--surface из light.css, которыми живут
   общие шапка и подвал. Значения — палитра главной (light.css). */
body.light-app {
  color-scheme: light;
  --bg: #F6FBFF;
  --surface: #ffffff;
  --surface-2: #F6FBFF;
  --border: #DAEAF3;
  --fg: #1C2730;
  --muted: #596B78;
  --primary: #0879AC;          /* действие — индиго, как кнопки главной */
  --accent: #45B6E8;           /* вторичный голубой — волны, play */
  --warn: #b45309;
  --danger: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28,39,48,.05), 0 10px 30px rgba(28,39,48,.07);
  background: var(--bg);
  color: var(--fg);
  padding: 0;
  font: 16px/1.6 "Manrope", system-ui, sans-serif;
}

/* ---- Каркас ---- */
body.light-app .wrap { max-width: 1020px; margin: 0 auto; padding: 40px 20px 72px; }
body.light-app a { color: var(--primary); }
body.light-app .topbar a, body.light-app .site-footer a { color: var(--muted); }
body.light-app .topbar a:hover, body.light-app .site-footer a:hover,
body.light-app .topbar-nav a[aria-current] { color: var(--fg); }
body.light-app .topbar-logo { color: var(--fg) !important; }
body.light-app .site-footer { margin-top: 0; }
body.light-app h1 { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 600;
  font-size: clamp(24px, 4vw, 34px); line-height: 1.2; letter-spacing: 0; margin: 0 0 10px; }
body.light-app h2 { color: var(--muted); }
body.light-app .muted { color: var(--muted); }

/* ---- Базовые компоненты ---- */
body.light-app .card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); }
/* Только .btn: голый button несёт свои стили в каждом компоненте трека
   (вкладки, мьют/соло, движки) — общий селектор их перекрашивал. */
body.light-app .btn { background: var(--primary); color: #fff;
  border-radius: 999px; font-weight: 600; font-family: inherit; }
body.light-app .btn:hover { filter: brightness(1.06); }
body.light-app button:focus-visible, body.light-app .btn:focus-visible,
body.light-app a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
body.light-app .btn-ghost { background: transparent; color: var(--fg);
  border: 1px solid var(--border); }
body.light-app .btn-ghost:hover { border-color: var(--primary); color: var(--primary); filter: none; }

/* Подвал прижат к низу на коротких страницах (вход, кабинет) */
body.light-app { min-height: 100vh; display: flex; flex-direction: column; }
body.light-app .wrap { flex: 1 0 auto; width: 100%; }

/* ---- Вход, регистрация, кабинет ---- */
body.light-app .auth-wrap { max-width: 420px; margin: 32px auto; }
body.light-app .auth-card { padding: 32px 28px 26px; animation: none; }
body.light-app .auth-card h2 { font: 600 24px/1.2 "Unbounded", "Manrope", sans-serif;
  color: var(--fg); text-transform: none; letter-spacing: 0; margin: 0 0 20px; }
body.light-app .auth-form { gap: 16px; }
body.light-app .field { color: var(--muted); font-size: 13px; font-weight: 600; gap: 6px; }
body.light-app .field input { background: var(--surface); color: var(--fg);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font: 500 15px "Manrope", sans-serif;
  transition: border-color .15s, box-shadow .15s; }
body.light-app .field input:hover { border-color: #d6d3d1; }
body.light-app .field input:focus-visible { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
body.light-app .auth-form .btn { width: 100%; padding: 14px 20px; font-size: 16px;
  margin-top: 6px; box-shadow: var(--shadow); }
body.light-app .auth-error { color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }
body.light-app .auth-ok { color: var(--accent); font-weight: 600; }
body.light-app .auth-switch { text-align: center; color: var(--muted); font-size: 14px;
  margin: 18px 0 0; }
body.light-app .auth-switch a { text-decoration: none; font-weight: 600; }
body.light-app .auth-switch a:hover { text-decoration: underline; }
/* Кабинет: строки «Email / Статус / Треков» — таблица с разделителями */
body.light-app .auth-card > p:not([class]) { display: flex; justify-content: space-between;
  gap: 16px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--border);
  font-weight: 600; }
body.light-app .auth-card > p:not([class]) .muted { font-size: 14px; font-weight: 500; }
body.light-app .auth-card + .auth-card h2 { font-size: 19px; }
body.light-app .auth-card > p:not([class]) .auth-ok { font-size: 13px; padding: 3px 12px;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
body.light-app .auth-card form .btn-ghost { width: auto; padding: 10px 22px; box-shadow: none; }

/* ---- Общие элементы страниц на base.html (задача, health, трек) ---- */
/* light.css задаёт .bar главной (420px по центру) — здесь возвращаем
   эквалайзерную полосу ui.css в светлом варианте */
body.light-app .bar { max-width: none; margin: 10px 0 0; background: none;
  height: 14px; border-radius: 0; overflow: visible; }
body.light-app .bar-fill { filter: drop-shadow(0 0 4px rgba(8, 121, 172, .25)); }
body.light-app .running { color: var(--primary); }
body.light-app table th { color: var(--muted); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .5px; }
body.light-app table td, body.light-app table th { border-bottom-color: var(--border); }
body.light-app .hbar { background: var(--surface-2); }
body.light-app .pill { background: var(--surface-2); color: var(--fg); }
body.light-app .wrap > h2:first-child { font: 700 clamp(24px, 4vw, 32px)/1.2 "Unbounded", "Manrope", sans-serif;
  color: var(--fg); text-transform: none; letter-spacing: 0; }

/* ---- Страница трека (группа track) ---- */
/* Цвета рисунков (canvas/SVG) — track.html читает их через cssVar() */
body.light-app {
  --cv-bg: #F6FBFF; --cv-ink: #1C2730; --cv-sep: #ffffff; --cv-idle: #DAEAF3;
  --cv-idle-ink: #596B78; --cv-faint: rgba(28,39,48,.16); --cv-grid: #d6d3d1;
  --link: var(--primary);
}
body.light-app .pre-seek::before, body.light-app .midi-seek::before { background: var(--border); }
body.light-app pre, body.light-app .grid-chords div { background: var(--surface-2); color: var(--fg); }
body.light-app midi-visualizer .piano-roll-visualizer { background: var(--surface-2);
  scrollbar-color: var(--primary) var(--surface-2); }
body.light-app midi-visualizer .piano-roll-visualizer::-webkit-scrollbar-track { background: var(--surface-2); }
/* Липкая полоса вкладок: светлое матовое стекло вместо тёмной подложки */
body.light-app .track-tabs { background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--border); }
body.light-app .play-main { color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }

body.light-app [hidden] { display: none !important; }
body.public-page .hub-intro { color: #44403c; font-size: 16px; line-height: 1.65; max-width: 70ch; margin: 4px 0 24px; }
/* Хлебные крошки (микроразметка schema.org) — одна строка с разделителем › */
body.light-app nav.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  align-items: center; gap: 4px 0; font-size: 13px; color: var(--muted); }
body.light-app nav.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--muted); }
body.light-app nav.crumbs a { color: var(--muted); text-decoration: none; }
body.light-app nav.crumbs a:hover { color: var(--fg); }
body.light-app .track-hero ~ nav.crumbs, body.light-app nav.crumbs + .track-hero { margin-top: 4px; }
/* ---- Публичная песня: навигация «Разбор · Аккорды · Текст песни» (SEO, 22.11) ---- */
body.light-app .song-facets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
body.light-app .song-facets a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px;
  transition: border-color .15s, color .15s, background .15s; }
body.light-app .song-facets a:hover { border-color: var(--primary); color: var(--primary); }
body.light-app .song-facets a[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ---- Вкладка «Скачать»: центр загрузок (22.11) ---- */
body.light-app .dl-center { margin-top: 18px; }
body.light-app .dl-center-head { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 14px; }
body.light-app .dl-center-head h2 { font: 800 26px/1.1 "Onest", system-ui, sans-serif; letter-spacing: -0.03em;
  color: var(--fg); text-transform: none; margin: 0; }
body.light-app .dl-groups { display: grid; gap: 14px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
body.light-app .dl-group { background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 16px; box-shadow: var(--shadow); }
body.light-app .dl-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
body.light-app .dl-group-head b { display: block; font-size: 16px; letter-spacing: -0.01em; }
body.light-app .dl-group-head small { display: block; color: var(--muted); font-size: 13px; }
body.light-app .dl-group-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  flex: 0 0 auto; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); }
body.light-app .dl-instrumental .dl-group-ico { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
body.light-app .dl-tiles { display: grid; gap: 8px; }
body.light-app .dl-tile { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 14px;
  background: var(--bg); border: 1px solid transparent; transition: border-color .15s, background .15s; }
body.light-app .dl-tile:hover { border-color: var(--border); background: var(--surface); }
body.light-app .dl-tile .pre-btn { width: 36px; height: 36px; border-radius: 50%; padding: 0; display: grid; place-items: center;
  background: var(--accent); color: #fff; border: 0; cursor: pointer; transition: transform .15s; }
body.light-app .dl-tile .pre-btn:hover { transform: scale(1.06); }
body.light-app .dl-fmt { width: 40px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  font: 800 10px "Onest", system-ui, sans-serif; letter-spacing: .04em; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
body.light-app .dl-tile .dl-name { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14.5px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.light-app .dl-tile .dl-name small { display: block; color: var(--muted); font-weight: 500; font-size: 12px;
  font-variant-numeric: tabular-nums; }
body.light-app .dl-tile .dl-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  color: var(--primary); background: var(--surface); border: 1px solid var(--border); transition: background .15s, color .15s; }
body.light-app .dl-tile .dl-ico:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
body.light-app .dl-tile .pre-seek { left: 62px; right: 58px; }
/* DAW-пакет над центром загрузок — как предложение, а не строка таблицы */
body.light-app [data-panel="downloads"] > .card:first-of-type { border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), var(--surface)); }

/* ---- Публичные страницы: песня, артист, хабы, индексы (группа public) ---- */
body.public-page .wrap { max-width: 820px; }
body.public-page nav.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
body.public-page nav.crumbs a { color: var(--muted); text-decoration: none; }
body.public-page nav.crumbs a:hover { color: var(--fg); }
body.public-page h1 { font-size: clamp(26px, 4.6vw, 40px); font-weight: 700; margin: 0 0 6px; }
body.public-page .subtitle { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
body.public-page h1 + .track-list, body.public-page h1 + .empty { margin-top: 28px; }
body.public-page h2 { font: 700 12px "Manrope", sans-serif; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); margin: 36px 0 12px; }
body.public-page .cover { width: 220px; max-width: 60%; border-radius: var(--radius);
  box-shadow: var(--shadow); margin: 0 0 22px; }

/* Факты — крупные карточки-цифры, как счётчики главной */
body.public-page .facts { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
body.public-page .facts li { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
body.public-page .facts .label { display: block; color: var(--muted); font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
body.public-page .facts .value { display: block; font: 700 22px/1.2 "Unbounded", "Manrope", sans-serif;
  color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
body.public-page .facts a.value { color: var(--primary); }
body.public-page .facts a.value:hover { text-decoration: underline; }

/* Структура — полоса секций в оттенках индиго */
body.public-page .structure-bar { height: 44px; border-radius: 12px; border: 0;
  box-shadow: inset 0 0 0 1px var(--border); gap: 3px; background: transparent; }
body.public-page .structure-bar span { font-size: 12px; font-weight: 600; border-right: 0;
  border-radius: 8px; color: var(--fg); padding: 0 4px; text-overflow: ellipsis; }
body.public-page .structure-bar span:nth-child(odd) { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
body.public-page .structure-bar span:nth-child(even) { background: color-mix(in srgb, var(--primary) 28%, var(--surface)); }

/* Аккорды — чипсы */
body.public-page .chords-row { font: 700 22px "Unbounded", "Manrope", sans-serif;
  letter-spacing: 1px; color: var(--fg); margin: 0; }

/* Списки треков */
body.public-page .track-list { gap: 10px; }
body.public-page .track-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s; }
body.public-page .track-card:hover { border-color: var(--primary); transform: translateY(-1px); }
body.public-page .track-card > a:first-child { color: var(--fg); font-weight: 700; }
/* Шапка артиста с фото (22.11) */
body.public-page .artist-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
body.public-page .artist-hero .subtitle { margin-bottom: 0; }
body.public-page .artist-photo { width: 120px; height: 120px; border-radius: 26px; object-fit: cover;
  box-shadow: var(--shadow); flex: 0 0 auto; }
@media (max-width: 600px) { body.public-page .artist-photo { width: 84px; height: 84px; border-radius: 20px; } }
/* Обложка в карточке трека (22.11): ссылка-название идёт сразу за ней */
body.public-page .track-card { padding: 10px 16px 10px 10px; gap: 14px; }
body.public-page .track-cover { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
body.public-page .track-cover.cover-ph { display: grid; place-items: center; color: var(--primary);
  background: linear-gradient(140deg, var(--surface-2), color-mix(in srgb, var(--primary) 16%, var(--surface))); }
/* фирменная заглушка обложки «L.» — как лого, точка розовая (25.11) */
.lph { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: .02em; line-height: 1; user-select: none; }
.lph i { color: #E96A9B; font-style: normal; font-size: 1.35em; line-height: 0; }
.cover-ph { color: var(--primary);
  background: linear-gradient(140deg, var(--surface-2), color-mix(in srgb, var(--primary) 14%, var(--surface))); }
body.public-page .track-card > .track-cover + a { color: var(--fg); font-weight: 700; flex: 1 1 auto; min-width: 0; }
@media (max-width: 600px) {
  /* Телефон: обложка на две строки, название сверху, бейджи под ним */
  body.public-page .track-card:has(> .track-cover) { display: grid; grid-template-columns: 44px auto auto 1fr;
    column-gap: 8px; row-gap: 6px; align-items: center; }
  body.public-page .track-card > .track-cover { grid-row: 1 / 3; margin-right: 6px; }
  body.public-page .track-card > .track-cover + a { grid-column: 2 / -1; }
  body.public-page .track-card:has(> .track-cover) .tag { grid-row: 2; justify-self: start; }
}
body.public-page .track-card .tag { background: var(--surface-2); color: var(--fg);
  font-size: 12px; font-weight: 600; padding: 5px 11px; border: 1px solid var(--border); }
body.public-page .track-card .tag:hover { border-color: var(--primary); color: var(--primary); }

/* Соседние тональности/темпы и индексы — пилюли */
body.public-page .neighbors a, body.public-page .index-list a { background: var(--surface);
  border: 1px solid var(--border); color: var(--fg); text-decoration: none; font-weight: 600;
  border-radius: 999px; padding: 8px 16px; font-size: 14px; transition: border-color .15s, color .15s; }
body.public-page .neighbors a:hover, body.public-page .index-list a:hover {
  border-color: var(--primary); color: var(--primary); }
body.public-page .empty { color: var(--muted); }

/* Стриминги — логотип в фирменном цвете на белой пилюле */
body.light-app .streaming-links { gap: 10px; }
body.light-app .streaming-btn { display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 18px 9px 14px; font-size: 14px; font-weight: 600; color: var(--fg);
  text-decoration: none; box-shadow: 0 1px 2px rgba(28,39,48,.05);
  transition: border-color .15s, transform .15s, box-shadow .15s; }
body.light-app .streaming-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
body.light-app .streaming-btn .s-ico { flex: 0 0 auto; }
body.light-app .s-deezer .s-ico { color: #a238ff; }
body.light-app .s-apple_music .s-ico { color: #fa243c; }
body.light-app .s-spotify .s-ico { color: #1db954; }
body.light-app .s-youtube_music .s-ico { color: #ff0000; }
body.light-app .s-yandex_music .s-ico { color: #ffbc0d; }
body.light-app .s-deezer:hover { border-color: #a238ff; }
body.light-app .s-apple_music:hover { border-color: #fa243c; }
body.light-app .s-spotify:hover { border-color: #1db954; }
body.light-app .s-youtube_music:hover { border-color: #ff0000; }
body.light-app .s-yandex_music:hover { border-color: #ffbc0d; }

/* Призыв «Разберите свой трек» — индиго-пилюля, как кнопка главной */
body.public-page .cta { display: inline-block; margin-top: 40px; background: var(--primary);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 17px;
  padding: 15px 32px; border-radius: 999px; box-shadow: var(--shadow); }
body.public-page .cta:hover { filter: brightness(1.06); }

@media (max-width: 600px) {
  body.public-page .facts { grid-template-columns: 1fr 1fr; }
  body.public-page .facts .value { font-size: 18px; }
  body.public-page .structure-bar span { font-size: 10px; }
  body.public-page .cta { display: block; text-align: center; }
}

@media (max-width: 600px) {
  body.light-app .wrap { padding: 24px 14px 56px; }
  body.light-app .auth-wrap { margin: 8px auto; }
  body.light-app .auth-card { padding: 26px 20px 22px; }
}

/* Плашка ошибки на странице трека (redirect ?err=…, 23.11) */
body.light-app .flash-error { border-color: #fecaca; background: #fef2f2; color: var(--danger); }
body.light-app .mix-examples { margin-top: 12px; }

/* ===== Кабинет (правки 23.11, вечер) =====
   Ширина здесь, а не в light.css: light-app.css грузится ПОСЛЕДНИМ и его
   .auth-wrap{max-width:420px} перебивал 900px из light.css — каскад. */
body.light-app .acct-wrap { max-width: 900px; }
body.light-app .acct-wrap .auth-card { max-width: none; }

/* Нижняя навигация кабинета на телефоне: «док» по референсу владельца
   23.11 (Instagram-дока с бусиной) в наших цветах — активная вкладка
   всплывает индиго-кружком с «вырезом» под цвет фона страницы. */
.acct-bottom-nav { display: none; }
@media (max-width: 719px) {
  body.light-app .acct-wrap { margin-bottom: 0;
    padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .acct-bottom-nav { position: fixed; left: 10px; right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 40;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: 22px;
    box-shadow: 0 10px 30px rgba(28,39,48,.14);
    padding: 8px 6px 7px; }
  .acct-bottom-nav a, .acct-bottom-nav button {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 0 2px 2px; background: none; border: 0; cursor: pointer;
    color: var(--muted); text-decoration: none;
    font: 600 10.5px "Manrope", sans-serif;
    -webkit-tap-highlight-color: transparent; }
  .acct-bottom-nav form { display: contents; }
  .acct-bottom-nav .nav-ico { display: flex; align-items: center;
    justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    color: var(--muted); border: 4px solid transparent;
    transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background .2s,
      color .2s, border-color .2s, box-shadow .2s; }
  .acct-bottom-nav .nav-ico svg { display: block; }
  .acct-bottom-nav span { transition: color .2s, opacity .2s; }
  /* активная вкладка: бусина всплывает над панелью, «вырез» рисует
     бордюр цвета фона страницы */
  .acct-bottom-nav .on .nav-ico { transform: translateY(-16px);
    background: var(--primary); color: #fff; border-color: var(--bg);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 45%, transparent); }
  .acct-bottom-nav .on span { color: var(--primary); }
  .acct-bottom-nav .on { margin-bottom: -6px; }
  .acct-bottom-nav a:active .nav-ico, .acct-bottom-nav button:active .nav-ico {
    transform: scale(.92); }
  .acct-bottom-nav .on:active .nav-ico { transform: translateY(-16px) scale(.95); }
  /* якорные карточки не ныряют под край при скролле */
  #my-tracks, #acct-tools-card { scroll-margin-top: 12px; }
  html:has(.acct-bottom-nav) { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    .acct-bottom-nav .nav-ico { transition-duration: .01s; }
  }
}

/* Мобильный кабинет: инструменты живут в шторке глобального дока (23.11) */
@media (max-width: 719px) {
  body.light-app #acct-tools-card { display: none; }
}

/* ===== Премиум-модель (23.11) ===== */
/* Карточка ожидания очереди на странице трека */
body.light-app .queue-wait { display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; margin: 0 0 12px;
  font-size: 14px; color: var(--fg); }
body.light-app .queue-wait[hidden] { display: none; }
.qw-spin { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--border); border-top-color: var(--primary);
  animation: qw-rot 0.9s linear infinite; }
@keyframes qw-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .qw-spin { animation-duration: 2.5s; }
}
/* Заметные CTA на вкладках (аккорды/текст/караоке): крупные кнопки-действия */
body.light-app .tab-cta { text-align: center; padding: 10px 0 16px; }
body.light-app .tab-cta .btn-run { background: var(--primary); color: #fff;
  border: 0; border-radius: 999px; padding: 13px 30px;
  font: 700 15px "Manrope", sans-serif; cursor: pointer;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent);
  transition: transform .15s, filter .15s; }
body.light-app .tab-cta .btn-run:hover { filter: brightness(1.08);
  transform: translateY(-1px); }
/* Селект режима у премиум-кнопки HQ */
body.light-app .hq-inline { display: inline-flex; gap: 8px; align-items: center; }
body.light-app .hq-mode { max-width: 210px; }
body.light-app .daw-premium-note { margin: 0 0 10px; font-size: 13.5px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Заглушка обложки «L.» рисуется стилем, а не текстом: иначе поисковик
   видел «L .» в содержании страницы (аудит 26.11) */
.lph:empty::before,.ph:empty::before{content:"L"}
.lph:empty::after,.ph:empty::after{content:".";color:#E96A9B;font-style:normal;font-size:1.35em;line-height:0}
