/* Канкара — личный кабинет, 0.17.0: дизайн «Точка» (решение владельца 19.10.2026 — направление А, тёмная тема по
   умолчанию, знак L3 ● KANKARA MUSIC; тема — выбор на устройстве). Всё отдаёт наш сервер: без внешних шрифтов и CDN.
   Встроенные стили запрещены политикой (CSP style-src self) — только классы этого файла. */
/* Шрифты — с нашего сервера (OFL 1.1, тексты лицензий рядом): Onest — текст, Montserrat — метки разделов.
   Наборы: кириллица, латиница, расширенная латиница (в ней знак ₽). Диапазоны — из @fontsource 5. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/onest-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/onest-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/onest-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/onest-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/onest-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/onest-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/onest-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/onest-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/onest-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/montserrat-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/montserrat-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/montserrat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/montserrat-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/montserrat-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/montserrat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ── цвета: тёмная тема — по умолчанию; светлая — выбор на устройстве (cookie kweb_theme: dark | light | system) ── */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #12100f; --surf: #1c1a18; --surf2: #24211e; --line: #2e2a27; --line2: #3a3530;
  --text: #fffffb; --text2: #c9c3bb; --muted: #a39d95;
  --accent: #e31d1b; --accent-h: #f2302e; --on-accent: #fffffb;
  --link: #ff6a60; --link-h: #ff8b83; --focus: #ff8b83;
  --ok-bg: #1f3a2a; --ok-fg: #9be3b4; --bad-bg: #3d1714; --bad-fg: #ffb3ad; --neu-bg: #2e2a27; --neu-fg: #e7e1d8;
  --or-bg: #3a2412; --or-fg: #ffb36b; --ye-bg: #332b10; --ye-fg: #f2d06b;
  --sel-bg: #332e2a; --sel-fg: #fffffb; --sel-line: #8f877c; --field: #6b655e;
  --bar: #3a3530; --scrim: rgba(0, 0, 0, .6); --shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #fffffb; --surf: #f5f2ec; --surf2: #ebe6dd; --line: #e3ddd3; --line2: #cfc8bc;
  --text: #12100f; --text2: #4a4540; --muted: #6b6660;
  --accent: #e31d1b; --accent-h: #c81715; --on-accent: #fffffb;
  --link: #b3120f; --link-h: #8f0e0c; --focus: #b3120f;
  --ok-bg: #e1f0e5; --ok-fg: #1d6b3a; --bad-bg: #fbe3e0; --bad-fg: #a3130f; --neu-bg: #ebe6dd; --neu-fg: #4a4540;
  --or-bg: #fbe9d8; --or-fg: #8a4300; --ye-bg: #f7f0cf; --ye-fg: #6b5400;
  --sel-bg: #e6e0d6; --sel-fg: #12100f; --sel-line: #857d72; --field: #8f877c;
  --bar: #d6cfc3; --scrim: rgba(18, 16, 15, .45); --shadow: 0 12px 32px rgba(18, 16, 15, .14);
}
@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    color-scheme: light;
    --bg: #fffffb; --surf: #f5f2ec; --surf2: #ebe6dd; --line: #e3ddd3; --line2: #cfc8bc;
    --text: #12100f; --text2: #4a4540; --muted: #6b6660;
    --accent: #e31d1b; --accent-h: #c81715; --on-accent: #fffffb;
    --link: #b3120f; --link-h: #8f0e0c; --focus: #b3120f;
    --ok-bg: #e1f0e5; --ok-fg: #1d6b3a; --bad-bg: #fbe3e0; --bad-fg: #a3130f; --neu-bg: #ebe6dd; --neu-fg: #4a4540;
    --or-bg: #fbe9d8; --or-fg: #8a4300; --ye-bg: #f7f0cf; --ye-fg: #6b5400;
    --sel-bg: #e6e0d6; --sel-fg: #12100f; --sel-line: #857d72; --field: #8f877c;
    --bar: #d6cfc3; --scrim: rgba(18, 16, 15, .45); --shadow: 0 12px 32px rgba(18, 16, 15, .14);
  }
}
:root {
  /* сроки договоров (решение владельца 12.10.2026: просрочено — ярко-алый, почти просрочено — красный, дальше
     оранжевый и жёлтый; пороги — kweb.contracts.color_of) — в цветах темы */
  --c-crit: var(--accent); --c-red: var(--bad-fg); --c-orange: var(--or-fg); --c-yellow: var(--ye-fg);
  --r-card: 20px; --r-ctl: 12px; --side-w: 248px; --rail-w: 76px; --pad: 40px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-label: "Montserrat", "Onest", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ── основа ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); min-height: 100vh; min-height: 100dvh;
       display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1 { font-size: 1.875rem; line-height: 1.2; font-weight: 600; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; margin: 0 0 .75rem; }
h3 { font-size: 1rem; line-height: 1.35; font-weight: 600; margin: 1rem 0 .4rem; }
p { margin: .5rem 0; }
strong, b { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { color: var(--link-h); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
img, svg { max-width: 100%; }
svg.ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8;
         stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
           clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* выделение без инверсии чёрное/белое (владелец 19.10.2026: «чтобы таких жестких контрастов у нас все же было меньше»):
   заливка на тон светлее/темнее фона, рамка --sel-line (не меньше 3:1 к фону), полужирный — не только цветом */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px;
        background: var(--surf2); color: var(--text); border: 1px solid var(--sel-line); box-shadow: var(--shadow);
        text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; color: var(--text); }
.eyebrow { font: 500 12px/1.4 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
           margin: 0 0 .35rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: var(--text2); margin: .25rem 0 1rem; }
.ok-text { color: var(--ok-fg); }
.bad-text { color: var(--bad-fg); font-weight: 600; }
.warn-text { color: var(--or-fg); }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: .25rem 0 .5rem; }
.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num.up { color: var(--ok-fg); } .num.down { color: var(--bad-fg); }
.count { font-weight: 400; font-size: .95rem; color: var(--muted); }
.big-sum { font-size: 2.5rem; line-height: 1.05; font-weight: 600; letter-spacing: -.01em; margin: .25rem 0 .5rem;
           font-variant-numeric: proportional-nums; overflow-wrap: anywhere; }

/* ── шапка: знак L3 ● KANKARA MUSIC ── */
.top { display: flex; align-items: center; gap: 24px; padding: 14px var(--pad); border-bottom: 1px solid var(--line);
       background: var(--bg); position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--text); text-decoration: none;
         min-height: 44px; }
.brand:hover { color: var(--text); }
.brand .logo { width: 240px; height: 12.82px; display: block; color: var(--text); }
.brand .logo-dot { display: none; width: 28px; height: 28px; }

.shell-tabs .top, .shell-plain .top, .shell-none .top {
  padding-inline: max(var(--pad), calc((100% - 1280px) / 2 + var(--pad))); }

/* ── меню разделов (общая часть) ── */
.nav { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.nav-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
               border-radius: var(--r-ctl); color: var(--text2); text-decoration: none; font-size: .9375rem;
               white-space: nowrap; position: relative; }
.nav-links a:hover { color: var(--text); background: color-mix(in srgb, var(--surf2) 60%, transparent); }
.nav-links a[aria-current="page"] { background: var(--surf2); color: var(--text); font-weight: 500; }
.nav-links a .tag { margin-inline-start: 2px; }
.nav-links svg.ic { width: 18px; height: 18px; }
.nav-user { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; flex: 0 0 auto; }
.who { color: var(--muted); font-size: .875rem; }

/* ── меню пользователя (кружок с инициалами): профиль, другие кабинеты, тема, выход ── */
details.umenu { position: relative; }
details.umenu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
                          border-radius: 22px; color: var(--text); }
details.umenu > summary::-webkit-details-marker { display: none; }
.avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 22px; border: 1px solid var(--line2);
          display: inline-flex; align-items: center; justify-content: center; font: 600 14px/1 var(--font);
          color: var(--text); background: transparent; letter-spacing: .02em; }
details.umenu > summary:hover .avatar, details.umenu[open] > summary .avatar { background: var(--surf2); }
.umenu-name { display: none; min-width: 0; flex-direction: column; text-align: start; line-height: 1.3; }
.umenu-name b { font-weight: 500; font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umenu-name small { color: var(--muted); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umenu-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; width: 288px; max-width: calc(100vw - 24px);
               background: var(--surf); border: 1px solid var(--line2); border-radius: 16px; padding: 8px;
               box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.umenu-who { padding: 8px 10px 10px; margin: 0 0 4px; border-bottom: 1px solid var(--line); display: flex;
             flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.umenu-who b { font-weight: 600; }
.umenu-who span { color: var(--muted); font-size: .8125rem; }
.umenu-item, .umenu-panel a.umenu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;
             padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit;
             font-size: .9375rem; text-decoration: none; text-align: start; cursor: pointer; }
.umenu-item:hover { background: var(--surf2); color: var(--text); }
.umenu-item[aria-pressed="true"] { font-weight: 500; }
.umenu-item .tick { margin-inline-start: auto; color: var(--accent); visibility: hidden; }
.umenu-item[aria-pressed="true"] .tick { visibility: visible; }
.umenu-label { font: 500 11px/1.4 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
               padding: 10px 10px 4px; margin: 4px 0 0; border-top: 1px solid var(--line); }
.umenu-panel form { margin: 0; display: block; }
.umenu-sep { border-top: 1px solid var(--line); margin-top: 4px !important; padding-top: 4px; }

/* 0.19.0: язык. Переключатель в шапке страниц без меню (вход, ошибки, DISTRO снаружи): глобус + код, список —
   названиями на своём языке; в меню пользователя — пункты формы _lang_menu.html (те же .umenu-item). Полоска
   «This page is in Russian. Switch to English?» — вверху содержимого, на языке браузера. */
details.langsw { position: relative; margin-inline-start: auto; flex: 0 0 auto; }
details.langsw > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  padding: 0 10px; border-radius: 12px; color: var(--text2); font: 500 .8125rem/1 var(--font-label); letter-spacing: .06em; }
details.langsw > summary::-webkit-details-marker { display: none; }
details.langsw > summary:hover, details.langsw[open] > summary { background: var(--surf2); color: var(--text); }
details.langsw .ic { width: 18px; height: 18px; }
.langsw-code { font-variant-numeric: tabular-nums; }
.umenu-lang .umenu-item[lang] { font-weight: 400; }
details.langsw .langsw-chev { width: 14px; height: 14px; opacity: .7; }
.langsw-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; width: 220px; max-width: calc(100vw - 24px); margin: 0;
  padding: 6px; list-style: none; background: var(--surf); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.25)); }
.langsw-panel li { margin: 0; }
.langsw-panel .umenu-item[aria-current="true"] { font-weight: 500; }
.langsw-panel .umenu-item[aria-current="true"] .tick { visibility: visible; }
/* 0.25.2 (решение владельца 25.11.2026): переключатель вверху — флажки сразу видны (🇷🇺 Русский · 🇺🇸 English · 🇪🇸 Español);
   на узком экране — флажок + код языка. Текущий язык — подчёркнут рамкой. */
nav.langsw { margin-inline-start: auto; flex: 0 0 auto; }
.langsw-flags { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.langsw-flags li { margin: 0; }
.langsw-item { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 12px;
  border: 1px solid transparent; color: var(--text2); text-decoration: none; font: 500 .8125rem/1 var(--font-label); }
.langsw-item:hover { background: var(--surf2); color: var(--text); }
.langsw-item[aria-current="true"] { border-color: var(--line); background: var(--surf); color: var(--text); }
.langsw-flag { font-size: 1.125rem; line-height: 1; }
.langsw-item .langsw-code { display: none; letter-spacing: .06em; }
/* телефон: только флажки (название языка остаётся для экранного диктора), чтобы три языка помещались рядом с логотипом */
@media (max-width: 560px) { nav.langsw { min-width: 0; } .langsw-flags { gap: 2px; }
  .langsw-item { padding: 0 6px; min-width: 36px; justify-content: center; }
  .langsw-item .langsw-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; } }
.lang-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding-block: 10px; padding-inline: 16px 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surf); color: var(--text); }
.lang-banner-text { flex: 1 1 240px; }
.lang-banner .btn.lang-banner-switch { min-height: 36px; padding: 0 14px; }
.lang-banner-form { display: contents; }
.wrap-any { overflow-wrap: anywhere; }            /* 0.20.8 (У3): крайний случай — длинный кусок без мест переноса */          /* 0.20.8 (Д5): кнопка полоски — POST /lang; форма не ломает строку */
.lang-banner-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px;
  color: var(--muted); }
.lang-banner-close:hover { background: var(--surf2); color: var(--text); }
.lang-banner-close .ic { width: 18px; height: 18px; }

/* ── артист: меню-вкладки (компьютер — строка в шапке; планшет — вторая строка; телефон — снизу) ── */
.shell-tabs .top, .shell-plain .top { flex-wrap: wrap; }
@media (max-width: 1099px) {
  :root { --pad: 32px; }
  .shell-tabs .top, .shell-plain .top { padding-top: 18px; padding-bottom: 12px; row-gap: 12px; }
  .shell-tabs .nav, .shell-plain .nav { flex-basis: 100%; }
  .shell-tabs .nav-user, .shell-plain .nav-user { position: absolute; top: 18px; inset-inline-end: var(--pad); }
  .shell-tabs .nav-links { flex-wrap: nowrap; gap: 6px; }
  .shell-tabs .nav-links a { flex: 1 1 0; justify-content: center; padding: 0 10px; }
}
@media (max-width: 719px) {
  :root { --pad: 16px; }
  .top { padding: 12px var(--pad); gap: 12px; }
  .brand .logo { width: 196px; height: 10.47px; }
  .shell-tabs .top, .shell-plain .top { padding-top: 12px; padding-bottom: 12px; }
  .shell-tabs .nav-user, .shell-plain .nav-user { top: 12px; }
  /* вкладки артиста — снизу экрана, значок над подписью */
  .shell-tabs .nav { flex-basis: auto; flex: 0 0 auto; }
  .shell-tabs .nav-links { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid;
                           grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--bg);
                           border-top: 1px solid var(--line); padding: 4px 4px calc(6px + env(safe-area-inset-bottom)); }
  .shell-tabs .nav-links a { flex-direction: column; gap: 3px; min-height: 54px; padding: 4px 2px; border-radius: 10px;
                             font-size: .6875rem; line-height: 1.2; color: var(--muted); background: none; }
  .shell-tabs .nav-links a[aria-current="page"] { color: var(--text); background: none; font-weight: 500; }
  .shell-tabs .nav-links a[aria-current="page"] svg.ic { color: var(--accent); }
  .shell-tabs .nav-links svg.ic { width: 24px; height: 24px; }
  .shell-tabs .nav-links a .tag { position: absolute; top: 2px; inset-inline-start: calc(50% + 6px); margin: 0; padding: 0 5px;
                                  font-size: .6875rem; line-height: 1.45; }
  .shell-tabs .foot { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  /* прочие кабинеты (агент, представитель, профиль): разделы — одной строкой с прокруткой */
  .shell-plain .nav { flex-basis: 100%; }
  .shell-plain .nav-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad));
                            padding: 0 var(--pad); scroll-padding-inline: var(--pad); overscroll-behavior-x: contain; }
  .shell-plain .nav-links::-webkit-scrollbar { display: none; }
  .shell-plain .nav-links a { flex: 0 0 auto; }
  .shell-plain .nav-links.scrolls:not(.at-end) { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
                                                 mask-image: linear-gradient(to right, #000 82%, transparent); }
}
@media (max-width: 359px) {
  .brand .logo { width: 170px; height: 9.08px; }
  .shell-tabs .nav-links a { font-size: .625rem; }
}

/* ── лейбл: боковое меню (компьютер), полоса значков (планшет), выдвижное меню (телефон) ── */
.side-toggle, .side-close { display: none; }
@media (min-width: 720px) {
  .shell-side .top { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: var(--side-w); flex-direction: column;
                     align-items: stretch; gap: 20px; padding: 24px 14px 16px; border-bottom: 0;
                     border-inline-end: 1px solid var(--line); }
  .shell-side .brand { padding-inline-start: 10px; }
  .shell-side .brand .logo { width: 200px; height: 10.68px; }
  .shell-side .nav { flex-direction: column; align-items: stretch; gap: 12px; min-height: 0; }
  .shell-side .side-menu { display: flex; position: static; inset: auto; width: auto; height: auto; max-height: none;
                           margin: 0 -6px; padding: 0 6px; border: 0; background: none; color: inherit; overflow-y: auto;
                           flex: 1 1 auto; min-height: 0; scrollbar-width: thin; }
  .shell-side .nav-links { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; }
  .shell-side .nav-links a { min-height: 40px; padding: 0 12px; border-radius: 10px; gap: 10px; }
  .shell-side .nav-links a .tag { margin-inline-start: auto; }
  .shell-side .nav-user { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
  .shell-side details.umenu { width: 100%; }
  .shell-side details.umenu > summary { padding: 4px; border-radius: 14px; }
  .shell-side details.umenu > summary:hover { background: var(--surf2); }
  .shell-side .umenu-name { display: flex; flex: 1 1 auto; }
  .shell-side .umenu-panel { inset-inline-end: auto; inset-inline-start: 0; top: auto; bottom: calc(100% + 8px); width: 100%; min-width: 220px; }
  .shell-side main.page, .shell-side .foot { padding-inline-start: calc(var(--side-w) + 36px); }
  .shell-side main.page { max-width: none; margin: 0; }
}
@media (min-width: 720px) and (max-width: 1199px) {
  .shell-side { --side-w: var(--rail-w); }
  .shell-side .top { padding: 18px 0 14px; align-items: center; gap: 16px; }
  .shell-side .brand { padding: 0; }
  .shell-side .brand .logo { display: none; }
  .shell-side .brand .logo-dot { display: block; }
  .shell-side .nav { align-items: center; width: 100%; }
  .shell-side .side-menu { margin: 0; padding: 0 14px; width: 100%; align-items: center; }
  .shell-side .nav-links a { width: 48px; height: 48px; min-height: 48px; padding: 0; justify-content: center;
                             border-radius: 12px; }
  .shell-side .nav-links a .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
                                  white-space: nowrap; }
  .shell-side .nav-links svg.ic { width: 22px; height: 22px; }
  .shell-side .nav-links a .tag { position: absolute; top: 3px; inset-inline-end: 1px; margin: 0; padding: 0 4px; font-size: .625rem;
                                  line-height: 1.45; }
  .shell-side .nav-user { border-top: 0; padding: 0; justify-content: center; }
  .shell-side details.umenu { width: auto; }
  .shell-side .umenu-name { display: none; }
  .shell-side .umenu-panel { inset-inline-start: calc(100% + 10px); bottom: 0; width: 288px; }
  .shell-side main.page, .shell-side .foot { padding-inline-start: calc(var(--rail-w) + 28px); padding-inline-end: 28px; }
}
@media (max-width: 719px) {
  .shell-side .top { padding: 10px var(--pad); gap: 10px; }
  .shell-side .brand { order: 2; flex: 1 1 auto; justify-content: center; margin-inline-end: 44px; }
  .shell-side .nav { order: 1; flex: 0 0 auto; }
  .shell-side .nav-user { position: absolute; inset-inline-end: var(--pad); top: 10px; }
  .side-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
                 border-radius: 12px; border: 1px solid var(--line2); background: none; color: var(--text); cursor: pointer; }
  .side-toggle svg.ic { width: 22px; height: 22px; }
  .side-menu:popover-open { position: fixed; inset-block: 0; inset-inline: 0 auto; width: min(320px, 86vw); height: 100%; max-height: 100%;
                            margin: 0; padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); border: 0;
                            border-inline-end: 1px solid var(--line2); background: var(--bg); color: var(--text);
                            overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
  .side-menu::backdrop { background: var(--scrim); }
  .side-menu .side-close { display: inline-flex; align-self: flex-end; align-items: center; justify-content: center;
                           width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line2); background: none;
                           color: var(--text); cursor: pointer; }
  .side-menu .nav-links { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; }
  .side-menu .nav-links a { min-height: 46px; padding: 0 12px; gap: 12px; }
  .side-menu .nav-links a .tag { margin-inline-start: auto; }
}
/* браузер без всплывающих меню (Safari до 17, Chrome до 114): разделы — строкой с прокруткой, без кнопки */
@supports not selector(:popover-open) {
  @media (max-width: 719px) {
    .side-toggle, .side-close { display: none !important; }
    .shell-side .top { flex-wrap: wrap; }
    .shell-side .nav { order: 3; flex-basis: 100%; }
    .shell-side .side-menu { display: block; }
    .shell-side .nav-links { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad));
                             padding: 0 var(--pad); }
    .shell-side .nav-links a { flex: 0 0 auto; }
  }
}

/* ── страница и подвал ── */
main.page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px var(--pad) 48px; flex: 1 0 auto; }
main.page > * { min-width: 0; }
main.auth { flex: 1 0 auto; display: grid; place-items: center; padding: 32px 16px; }
.foot { color: var(--muted); font-size: .8125rem; text-align: center; padding: 20px var(--pad) 28px; }
.foot a { color: inherit; display: inline-block; padding: .3rem 0; }
.foot a:hover { color: var(--text); }
.foot-note { display: block; margin-top: .25rem; }
.crumbs { margin: 0 0 .5rem; font-size: .9375rem; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--text2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
             margin: 0 0 1.25rem; }
.page-head h1 { margin: 0; }
@media (max-width: 719px) {
  h1 { font-size: 1.625rem; }
  main.page { padding: 18px var(--pad) 32px; }
}

/* ── карточки, плитки ── */
.card { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; margin: 16px 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card.narrow { width: 100%; max-width: 420px; margin: 0; }
.card.off, .card .off { opacity: .6; }
.card-head { margin-bottom: .5rem; }
.card p, .card li { overflow-wrap: anywhere; }
.notice-card { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; margin: 16px 0; }
.grid2 > .card { margin: 0; }
.grid2.tight { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); align-items: end; }
/* поля в строку: подписи разной длины — поля всё равно на одной линии (подпись прижата к своему полю) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 10px; margin: 16px 0; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column;
        gap: 2px; min-width: 0; color: var(--text); background: transparent; }
.tile .n { font-size: 1.5rem; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: normal; } /* 0.22.0: число не переносится (app.js ужимает шрифт) */
/* 0.18.1 c (ревью М2): суммы в плитках не рвутся внутри числа — меньше шрифт на узком экране, перенос только целиком;
   0.18.3 (ревью 0.18.1 c, М1): тот же класс у плиток строк и прослушиваний «Данных квартала» — число без переноса */
.tile .n.money { overflow-wrap: normal; white-space: nowrap; font-size: clamp(1rem, 4.2vw, 1.5rem); }
.tile .l { color: var(--muted); font-size: .875rem; }
/* 0.20.8 (аудит 0.20.6, У1): плитки сумм «Данных квартала» — рядами с переносом: плитка не уже своей суммы (сумма не
   рвётся и не заходит на соседнюю — 12 345 678,90 ₽, «RUB 12,345,678.90»); вид плиток прежний */
.tiles.tiles-fit { display: flex; flex-wrap: wrap; }
.tiles.tiles-fit > .tile { flex: 1 1 170px; min-width: min-content; max-width: 100%; }
a.tile { text-decoration: none; }
a.tile:hover { border-color: var(--line2); background: var(--surf); color: var(--text); }
a.tile.bad, .tile.bad { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.tile.bad .n { color: var(--bad-fg); }
a.tile[aria-current="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }

/* ── кнопки ── */
.btn { font: 500 .9375rem/1.2 var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       min-height: 44px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid transparent;
       background: var(--surf2); color: var(--text); cursor: pointer; text-decoration: none; text-align: center;
       -webkit-tap-highlight-color: transparent; }
.btn:hover { background: color-mix(in srgb, var(--surf2) 75%, var(--text) 8%); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { background: var(--accent-h); border-color: var(--accent-h); color: var(--on-accent); }
.btn.ghost { background: transparent; border-color: var(--field); }      /* граница 3:1 к фону (ревью 2, М-14) */
.btn.ghost:hover { background: var(--surf2); }
.btn.danger { background: var(--bad-bg); color: var(--bad-fg); border-color: color-mix(in srgb, var(--bad-fg) 30%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad-bg) 80%, var(--bad-fg) 15%); color: var(--bad-fg); }
.btn.link { background: none; border: 0; padding: 0; min-height: 0; color: var(--text2); font-weight: 400;
            text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
            text-underline-offset: .2em; }
.btn.link:hover { background: none; color: var(--text); }
.btn.link { min-height: 24px; min-width: 24px; }
:where(p, li, td, th, dd, h2, h3, label) a, :where(.file-row, .row) > a:not(.btn) { padding-block: 3px; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: .875rem; border-radius: 10px; }
.btn.big { min-height: 56px; padding: 0 22px; border-radius: 16px; font-size: 1rem; }
.btn.wide { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn svg.ic { width: 18px; height: 18px; }
form.inline { display: inline; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 1rem; }
.stack .btn { align-self: flex-start; }
.stack > div:not(.form-actions) > .btn + .btn { margin-inline-start: 8px; }
.stack-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: .6rem 0; }
.row { display: flex; gap: 8px; align-items: center; margin: .4rem 0; flex-wrap: wrap; }
.row input, .row select { width: auto; flex: 1 1 160px; min-width: 0; }
/* 0.19.0 этап 7: кнопка с длинной подписью в строке формы — не шире строки (текст переносится): на 360 px «Приостановить
   (доступ людей лейбла закроется)» и «Сформировать и отметить «Отправлен в Коалу»» вылезали за экран; кнопки, которые
   помещаются, не меняются (сжатие — только когда кнопка одна в строке и шире её) */
.row .btn { flex: 0 1 auto; max-width: 100%; }
.row.wrap { flex-wrap: wrap; }
/* подписи полей в строке формы — общей ширины (было style=… — встроенные стили запрещены политикой, не работали) */
label.w8 { min-width: 8rem; } label.w12 { min-width: 12rem; } label.w16 { min-width: 16rem; } label.w22 { min-width: 22rem; }
@media (max-width: 719px) { label.w8, label.w12, label.w16, label.w22 { min-width: 0; flex-basis: 100%; } }
input.sub-in { margin-inline-start: 1.5rem; }
.oauth-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: .6rem 0; }
.oauth-row .btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
@media (max-width: 420px) { .oauth-row .btn { font-size: .875rem; padding: 0 4px; } }
@media (max-width: 360px) { main.auth { padding: 24px 8px; } main.auth .card.narrow { padding: 16px; } }

/* ── метки статуса (плашки) и фильтры (чипы) ── */
.tag { display: inline-flex; align-items: center; font-size: .8125rem; line-height: 1.4; border-radius: 12px;
       padding: 2px 10px; background: var(--neu-bg); color: var(--neu-fg); vertical-align: middle; font-weight: 400;
       white-space: nowrap; max-width: 100%; }
.tag.ok { background: var(--ok-bg); color: var(--ok-fg); }
.tag.warn { background: var(--bad-bg); color: var(--bad-fg); }
.tag.off { background: var(--neu-bg); color: var(--muted); }
.tag.crit { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.tag.red { background: var(--bad-bg); color: var(--bad-fg); font-weight: 600; }
.tag.orange { background: var(--or-bg); color: var(--or-fg); }
.tag.yellow { background: var(--ye-bg); color: var(--ye-fg); }
td .tag, li .tag, p .tag { white-space: normal; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: .5rem 0 1rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 18px;
        border: 1px solid var(--line2); font-size: .875rem; color: var(--text); text-decoration: none; background: none;
        white-space: nowrap; }
/* 0.19.0 этап 7: фильтр длиннее строки (на 360 px — при переводе длиннее русского) — переносится внутри себя, а не
   вылезает за экран; фильтры, которые помещаются, не меняются (сжимается только тот, что один в строке и шире её) */
.chips .chip { max-width: 100%; white-space: normal; }
.chip:hover { background: var(--surf2); color: var(--text); }
.chip[aria-current="true"] { background: var(--sel-bg); border-color: var(--sel-line); color: var(--sel-fg); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--accent); flex: 0 0 8px; display: inline-block; }

/* ── сообщения ── */
.notice { background: var(--ok-bg); color: var(--ok-fg); border-radius: 14px; padding: 12px 16px; margin: 0 0 12px; }
.alert { background: var(--bad-bg); color: var(--bad-fg); border-radius: 14px; padding: 12px 16px; margin: 0 0 12px; }
.notice a, .alert a { color: inherit; }

/* ── 0.17.3: ход команды воркера (staff/_progress.html; владелец 30.10.2026 — «нужно добавить анимацию загрузки») ──
   Полоса бежит, пока команда идёт; готово — полная зелёная, ошибка — полная красная. «Уменьшить движение» — без
   анимации, полоса штриховая. Текст — обычным цветом текста на --surf2 (контраст как у карточек). */
.progress { margin: .75rem 0; padding: 12px 16px; border-radius: 14px; background: var(--surf2); border: 1px solid var(--line); }
.progress-track { position: relative; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; margin: 0 0 .6rem; }
.progress-fill { position: absolute; top: 0; left: -40%; width: 40%; height: 100%; border-radius: 3px; background: var(--accent);
                 animation: kw-progress 1.6s ease-in-out infinite; }
.progress-track.is-done .progress-fill { left: 0; width: 100%; background: var(--ok-fg); animation: none; }
.progress-track.is-fail .progress-fill { left: 0; width: 100%; background: var(--bad-fg); animation: none; }
.progress-text { margin: 0; overflow-wrap: anywhere; }
.progress-clock { font-variant-numeric: tabular-nums; color: var(--text2); }
.progress-reload { display: none; }
/* 0.17.3: удержание у отчёта в таблице «Отчёты в базе по кварталам» — не уже 18rem: на телефоне колонка сжималась до
   буквы в строке (0.17.2); таблица шире экрана прокручивается в .table-wrap, как остальные */
.hold-note { display: block; min-width: 18rem; margin-top: .25rem; }
/* 0.17.3: колонка «Расчёт» на «Кварталах» (плашки «пересчитайте», резерв) — не уже 16rem, по той же причине */
table.list td.calc-cell { min-width: 16rem; }
@keyframes kw-progress { 0% { left: -40%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .progress-fill { animation: none; left: 0; width: 100%;
                   background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 24px); }
}

/* ── поля ── */
label { font-weight: 500; font-size: .875rem; color: var(--text2); }
input[type=email], input[type=text], input:not([type]), input[type=search], input[type=number], input[type=tel],
input[type=url], input[type=password], input[type=date], input[type=datetime-local], input[type=month],
input[type=time], input[type=week], select, textarea {
  font: 400 16px/1.4 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--field);
  border-radius: var(--r-ctl); padding: 10px 14px; width: 100%; max-width: 100%; min-height: 44px; }
.card input[type=email], .card input[type=text], .card input:not([type]), .card input[type=search],
.card input[type=number], .card input[type=tel], .card input[type=url], .card input[type=password],
.card input[type=date], .card input[type=datetime-local], .card input[type=month], .card input[type=time],
.card select, .card textarea { background: var(--bg); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--field) 70%, var(--text) 30%); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--field); }
input[type=date], input[type=datetime-local], input[type=month], input[type=time] { min-width: 0; -webkit-appearance: none;
  appearance: none; display: block; }
input::-webkit-date-and-time-value { text-align: start; }
textarea { resize: vertical; line-height: 1.45; }
select { cursor: pointer; }
input[type=file] { font: inherit; font-size: .9375rem; color: var(--text2); max-width: 100%; }
input[type=file]::file-selector-button { font: 500 .875rem var(--font); margin-inline-end: 12px; min-height: 40px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--field); background: var(--surf2); color: var(--text); cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--accent);
                                          flex: 0 0 auto; }
input.code { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
input.short { flex: 0 1 150px; }
label.check { font-weight: 400; display: flex; gap: .55rem; align-items: center; min-height: 1.75rem; color: var(--text); }
label.inline-check { min-height: 1.75rem; display: inline-flex; gap: .45rem; align-items: center; font-weight: 400;
                     color: var(--text); }
label.inline-check + label.inline-check { margin-inline-start: 1.25rem; }
.filters { display: flex; gap: 8px; margin: .75rem 0; flex-wrap: wrap; align-items: center; }
.filters input { flex: 1 1 14rem; min-width: 0; }
.filters input[type=checkbox] { flex: 0 0 auto; }
.filters select { flex: 1 1 10rem; width: auto; }
fieldset { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 .75rem; padding: .5rem 1rem 1rem; min-width: 0; }
legend { padding: 0 .35rem; font-weight: 500; color: var(--text2); }
.perm-group { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 .6rem; padding: .4rem .9rem; }
.perm-group legend { font-weight: 600; color: var(--text); }

/* ── таблицы ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; margin: .75rem 0; background: var(--bg); }
.card .table-wrap { border: 0; border-radius: 0; margin: .5rem -20px; background: none; }
.card .table-wrap table.list th:first-child, .card .table-wrap table.list td:first-child { padding-inline-start: 20px; }
.card .table-wrap table.list th:last-child, .card .table-wrap table.list td:last-child { padding-inline-end: 20px; }
table.list { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.list th, table.list td { text-align: start; padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.list thead th { border-top: 0; background: var(--surf); color: var(--muted); font-size: .8125rem; font-weight: 500; }
.card table.list thead th { background: none; }
table.list > tbody:first-child > tr:first-child > td, table.list > tbody:first-child > tr:first-child > th { border-top: 0; }
table.list th.num, table.list td.num { text-align: end; }
table.list tbody tr:hover td { background: color-mix(in srgb, var(--surf2) 45%, transparent); }
table.list.compact th, table.list.compact td { padding: 8px 12px; }
table.list tfoot td { font-weight: 600; }
table.list tr.off td { opacity: .55; }
table.list tr.subtotal td { font-weight: 600; }               /* 0.18.6: подытог по человеку в отчёте агента */
table.list tr.suggest td { background: color-mix(in srgb, var(--ok-bg) 55%, transparent); }
table.list tr.c-crit td:first-child { box-shadow: inset 4px 0 0 var(--c-crit); }
table.list tr.c-red td:first-child { box-shadow: inset 4px 0 0 var(--c-red); }
table.list tr.c-orange td:first-child { box-shadow: inset 4px 0 0 var(--c-orange); }
table.list tr.c-yellow td:first-child { box-shadow: inset 4px 0 0 var(--c-yellow); }
table.list td a:not(.btn):not(.chip) { display: inline-block; padding: .15rem 0; text-decoration: none; }
table.list td a:not(.btn):not(.chip):hover { text-decoration: underline; }
td.acts details { margin: .15rem 0; }
.matrix th.c, .matrix td.c { text-align: center; white-space: nowrap; }
.matrix tr.group th { text-align: start; background: var(--surf); padding-top: .8rem; }
table.share-table td { border-top: 1px solid var(--line); }
.show-sm { display: none; }
@media (max-width: 719px) {
  table.list .hide-m { display: none; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  table.list th, table.list td { padding: 10px 12px; }
  /* 0.20.8 (аудит, У3): переносы — по словам и по частям почты (<wbr>, фильтр wbr), не посреди слова; где угодно —
     только кусок без мест переноса длиннее 24 знаков (.wrap-any); шире экрана — прокрутка в .table-wrap */
  table.list td { overflow-wrap: break-word; }
  .card .table-wrap { margin: .5rem -16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.tiles-fit > .tile { flex-basis: calc(50% - 5px); }
  .grid2.tight { grid-template-columns: minmax(0, 1fr); }   /* формы на телефоне — в один столбец */
  .card .table-wrap table.list th:first-child, .card .table-wrap table.list td:first-child { padding-inline-start: 16px; }
  .card .table-wrap table.list th:last-child, .card .table-wrap table.list td:last-child { padding-inline-end: 16px; }
}

/* ── раскрывашки и списки ── */
details summary { cursor: pointer; }
details.add { margin-top: .75rem; }
details.add > summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); }
details.add > summary:hover { color: var(--link-h); }
details.proj { border-top: 1px solid var(--line); padding: .55rem 0; }
summary.small { padding: .2rem 0; }
ul.plain { margin: 0; padding-inline-start: 1.1rem; }
ul.plain li { margin: .25rem 0; }
.plain.cols { columns: 2 260px; }
ul.docs { margin: 0; padding-inline-start: 1.1rem; }
ul.docs li { margin: .2rem 0; }
ul.exp { list-style: none; padding: 0; margin: 0; }
ul.exp > li { border-top: 1px solid var(--line); padding: .75rem 0; }
ul.exp > li:first-child { border-top: 0; }
ul.exp > li.suggest { background: color-mix(in srgb, var(--ok-bg) 45%, transparent); border-radius: 10px; padding-inline: .5rem; }
ul.exp.closed > li { padding: .4rem 0; font-size: .9375rem; }
ul.dl { list-style: none; padding: 0; margin: 0; }
ul.dl > li { display: flex; gap: .75rem; align-items: center; border-top: 1px solid var(--line); padding: .6rem 0; }
ul.dl > li:first-child { border-top: 0; }
ul.dl .btn { flex: 0 0 auto; }
ul.dl .dl-title { min-width: 0; overflow-wrap: anywhere; }
.checklist { list-style: none; padding: 0; margin: .5rem 0; }
.checklist li { padding: .15rem 0; }
.checklist li::before { content: "• "; color: var(--muted); }
.narrow-left { max-width: 600px; }
@media (max-width: 719px) { ul.dl > li { align-items: flex-start; } }

/* ── прежние блоки страниц (квартал, реквизиты, доли, загрузки, политика) ── */
.consent { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .9rem; }
.consent form.inline + form.inline { margin-inline-start: .5rem; }
.qa { border-inline-start: 3px solid var(--line2); padding-block: .25rem; padding-inline: .9rem 0; margin: .9rem 0; }
.sum-grid { display: grid; grid-template-columns: minmax(12rem, 1fr) auto; gap: .35rem 1rem; max-width: 40rem; }
.sum-grid .num { text-align: end; }
.sum-grid .sub { padding-inline-start: 1rem; color: var(--muted); }
.report-dl { margin-top: 1rem; gap: .6rem; }
.report-dl form.inline + form.inline { margin-inline-start: 0; }
a.report-link { font-weight: 400; margin-inline-start: .5rem; font-size: .9375rem; }
progress.bar { appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border: 0; border-radius: 3px;
               background: var(--surf2); display: block; margin-top: 6px; }
progress.bar::-webkit-progress-bar { background: var(--surf2); border-radius: 3px; }
progress.bar::-webkit-progress-value { background: var(--text2); border-radius: 3px; }
progress.bar::-moz-progress-bar { background: var(--text2); border-radius: 3px; }
progress.bar.hi::-webkit-progress-value { background: var(--accent); }
progress.bar.hi::-moz-progress-bar { background: var(--accent); }
.bank-history { margin-top: .75rem; }
.req { border-inline-start: 3px solid var(--line2); padding-block: .25rem; padding-inline: .9rem 0; margin: .5rem 0 .75rem; }
.req .row { margin-top: .5rem; }
.req details.add { margin-top: 0; }
#requisites h3 { margin-top: 1.25rem; }
.share-rows { display: flex; flex-direction: column; gap: .45rem; }
.share-row { display: grid; grid-template-columns: 1fr 7.5rem; gap: .5rem; }
.share-row.head { font: 500 11px/1.4 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.share-in, .share-pct { font-variant-numeric: tabular-nums; }
.share-sum { font-weight: 600; font-variant-numeric: tabular-nums; }
.share-sum.bad { color: var(--bad-fg); } .share-sum.ok { color: var(--ok-fg); }
.shares-form .share-row input { min-width: 0; }
.upload { gap: .5rem; }
.up-progress { margin-top: .35rem; }
.file-row { border-top: 1px solid var(--line); padding: .6rem 0; }
.file-row:first-child { border-top: 0; }
.tracks { min-height: 2rem; }
.tracks-t td:first-child { min-width: 12rem; }
.mail-text { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; margin: .5rem 0;
             overflow-wrap: anywhere; }
.rep-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1rem; padding: 10px 14px;
           border: 1px solid var(--line); border-radius: 14px; background: var(--surf); font-size: .9375rem; }
details.switch { position: relative; font-size: .9375rem; }
details.switch > summary { list-style: none; color: var(--link); display: inline-flex; align-items: center; min-height: 44px; }
details.switch > summary::-webkit-details-marker { display: none; }
details.switch .switch-menu { position: absolute; inset-inline-start: 0; z-index: 40; min-width: 15rem; margin-top: .35rem;
  background: var(--surf); border: 1px solid var(--line2); border-radius: 14px; padding: .4rem .6rem; box-shadow: var(--shadow); }
details.switch .switch-menu form { display: block; margin: .15rem 0; }
@media (max-width: 719px) { details.switch .switch-menu { position: static; box-shadow: none; } }
.policy { line-height: 1.6; }
.policy table { border-collapse: collapse; width: 100%; }
.policy td, .policy th { border: 1px solid var(--line); padding: .35rem .55rem; vertical-align: top; }
/* 0.25.2: реквизиты на /services, ссылка «Услуги и документы» на странице входа */
.kv { display: grid; grid-template-columns: minmax(9rem, 16rem) 1fr; gap: .35rem 1rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: .4rem; } }
.login-services { margin-top: 1rem; text-align: center; }
@media (max-width: 719px) {
  .share-row { grid-template-columns: 1fr 5.5rem; }
  .sum-grid { grid-template-columns: 1fr auto; }
  .card { padding: 16px; border-radius: 16px; }
  .big-sum { font-size: 2.25rem; }
}
@media (pointer: coarse) { .chip { min-height: 40px; } }

/* ── 0.17.0: главная артиста ── */
.home-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr;
             grid-template-areas: "pay side" "proj side"; gap: 20px 24px; align-items: start; margin-top: 8px; }
.home-grid > div { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.h-pay { grid-area: pay; } .h-side { grid-area: side; } .h-proj { grid-area: proj; }
.home-grid .card, .home-grid .tiles { margin: 0; }
.pay-card { display: flex; flex-direction: column; gap: 12px; }
.pay-card .pay-head { display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--text2); margin: 0; }
.pay-card .pay-head .dot { width: 10px; height: 10px; flex-basis: 10px; border-radius: 5px; }
.pay-card .pay-sub { font-size: .875rem; color: var(--muted); margin: 0 0 -6px; }
.pay-card .big-sum { margin: 0; }
.pay-card .pay-note { font-size: .9375rem; color: var(--text2); margin: 0; }
.pay-card .btn.big { align-self: flex-start; }
.todo { display: flex; flex-direction: column; gap: 10px; }
.todo .eyebrow { margin-bottom: 0; }
.todo-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 16px;
             border-radius: 14px; background: var(--surf); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
a.todo-item:hover { border-color: var(--line2); color: var(--text); }
.todo-item > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.todo-item .t { font-size: .9375rem; overflow-wrap: anywhere; }
.todo-item .s { font-size: .8125rem; color: var(--muted); }
.todo-item .s.warn { color: var(--bad-fg); }
.todo-item svg.ic { color: var(--muted); }
.card .eyebrow:first-child { margin-bottom: .6rem; }
.home-grid .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1099px) { .home-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
                                           grid-template-areas: "pay" "side" "proj"; } }
@media (max-width: 719px) {
  .pay-card .btn.big { align-self: stretch; }
  .home-grid { gap: 18px; }
  .home-grid > div { gap: 18px; }
}

/* ── 0.17.0: отчёт за квартал — «Проверить и подтвердить» ── */
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "main side"; gap: 24px;
               align-items: start; margin-top: 8px; }
.report-main { grid-area: main; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.report-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; min-width: 0; }
.report-side.tall { position: static; }       /* выше окна — не прилипает (низ иначе виден только в конце страницы) */
.report-main .card, .report-side .card, .report-main .grid2 { margin: 0; }
.sum-card { display: flex; flex-direction: column; gap: 10px; }
.sum-card .sum-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sum-card .sum-top span:first-child { font-size: .875rem; color: var(--text2); }
/* 0.17.6: длинный статус («копится до порога…», «выплата приостановлена…») — переносом, не за край карточки */
.sum-card .sum-top .tag { white-space: normal; }
.sum-card .pay-note { margin: 0; padding: 9px 0 0; border-top: 1px solid var(--line); }
.sum-card .big-sum { margin: 0; }
.sum-lines { margin: 4px 0 0; }
.sum-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0;
            border-top: 1px solid var(--line); font-size: .875rem; }
.sum-line > span:first-child { color: var(--text2); min-width: 0; }
.sum-line > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; }
.sum-line.sub > span:first-child { padding-inline-start: 12px; color: var(--muted); }
/* 0.18.2: «что за что» — позиции под строкой удержания */
.sum-line.sub.item > span:first-child { padding-inline-start: 24px; overflow-wrap: anywhere; }
.sum-line.sub.item > span:last-child { color: var(--muted); }
.confirm { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.confirm .btn.big { width: 100%; }
.confirm .payto { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .8125rem;
                  color: var(--muted); margin: 2px 0; text-align: center; flex-wrap: wrap; }
.confirm .payto svg.ic { width: 16px; height: 16px; }
.confirm .ask { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 6px; min-height: 44px;
                color: var(--text2); font-size: .875rem; text-decoration: none; text-align: center; }
.confirm .ask u { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.confirm .ask:hover { color: var(--text); }
.confirm .ask:hover u { text-decoration-color: currentColor; }
.confirm .fine { font-size: .75rem; line-height: 1.45; color: var(--muted); text-align: center; margin: 0; }
.confirm form { margin: 0; }
.confirm form.center { text-align: center; }
.confirm .state { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.done-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 20px;
             background: var(--ok-bg); color: var(--ok-fg); flex: 0 0 40px; }
.done-mark svg.ic { width: 22px; height: 22px; stroke-width: 2.4; }
.done-row { display: flex; align-items: center; gap: 12px; }
.done-row b { font-size: 1.0625rem; }
.files-card { display: flex; flex-direction: column; gap: 10px; }
.files-card .row { margin: 0; }
.share-list { display: flex; flex-direction: column; }
.share-item { padding: 10px 0; border-top: 1px solid var(--line); }
.share-item:first-child { border-top: 0; padding-top: 2px; }
.share-item .share-top { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.share-item .share-top > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.share-item .share-top > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.qa-list .qa:first-child { margin-top: .25rem; }
@media (max-width: 1099px) {
  .report-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
  .report-side { position: static; }
}

/* ── 0.17.0: вопрос по отчёту ── */
.ask-page { max-width: 640px; }
.plainset { border: 0; padding: 0; margin: 0; }
.plainset legend { padding: 0 0 8px; }
.topics { display: flex; gap: 8px; flex-wrap: wrap; }
.topic { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 22px;
         border: 1px solid var(--field); font-size: .9375rem; font-weight: 400; color: var(--text); cursor: pointer; }
.topic:has(input:checked) { background: var(--surf2); border-color: var(--text); }
.topic input { width: 18px; height: 18px; }
.file-pick { display: flex; flex-direction: column; gap: 6px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
@media (max-width: 719px) {
  .form-actions .btn { flex: 1 1 100%; }
}

/* ── 0.17.0: тема в профиле ── */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line);
       flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px;
              border: 0; background: transparent; color: var(--text2); font: 400 .9375rem var(--font); cursor: pointer; }
.seg button:hover { color: var(--text); background: var(--surf2); }
.seg button[aria-pressed="true"] { background: var(--sel-bg); color: var(--sel-fg); font-weight: 600;
                                   box-shadow: inset 0 0 0 1px var(--sel-line); }
.seg button svg.ic { width: 18px; height: 18px; }

/* ── печать: без меню и подвала ── */
@media print {
  .top, .foot, .nav, .confirm .btn, .umenu { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border-color: #ccc; }
  .shell-side main.page { padding-inline-start: 0; }
}

/* ── 0.18.0: DISTRO, оплата выпуска, календарь даты выхода (владелец 19.10.2026, макет календаря) ── */
:root { --hatch: rgba(255, 255, 251, .22); }
[data-theme="light"] { --hatch: rgba(18, 16, 15, .2); }
@media (prefers-color-scheme: light) { [data-theme="system"] { --hatch: rgba(18, 16, 15, .2); } }
.card.landing { max-width: 640px; min-width: 0; }   /* таблица цен: прокрутка внутри, не раздувает колонку сетки */
.price-table th, .price-table td { white-space: nowrap; }
.doc-page { max-width: 860px; margin-inline: auto; }
.doc-page .pre { line-height: 1.6; }
fieldset.ai-set { margin: .5rem 0 .25rem; }
.ai-parts { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 6px; }
.ai-parts label.inline-check + label.inline-check { margin-inline-start: 0; }
.date-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; min-height: 44px; }
.date-pick .date-val { font-weight: 500; }
.pay-block { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.pay-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.pay-ways { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-ways form.inline { display: inline-flex; }
@media (max-width: 719px) { .pay-ways .btn { flex: 1 1 100%; } .pay-ways form.inline { display: flex; flex: 1 1 100%; } }
.cal-card { display: flex; flex-direction: column; gap: 16px; }
.cal-kind .eyebrow { margin-bottom: .25rem; }
.cal-kind-val { margin: 0; }
.cal-rule { margin: 0; color: var(--text2); }
.cal-best { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px;
            background: var(--ok-bg); color: var(--ok-fg); }
.cal-best > span { flex: 1 1 220px; }
.cal-best .btn.ghost { color: inherit; border-color: currentColor; }
.cal-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cal-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-arrow { width: 44px; min-height: 44px; padding: 0; display: inline-flex; }
.cal-range { font-weight: 500; color: var(--text2); text-align: center; }
.cal-months { display: flex; flex-wrap: wrap; gap: 24px; }
.cal-month { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cal-month h2 { font-size: 1.125rem; margin: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { font: 500 11px/1.4 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
          text-align: center; }
.cal-wd.cal-fri { color: var(--text2); }
.cal-cell { font: inherit; color: var(--text); display: flex; flex-direction: column; justify-content: space-between;
            align-items: stretch; gap: 2px; min-height: 60px; min-width: 0; padding: 6px 5px 5px; border-radius: 12px;
            border: 1px solid var(--line2); background-color: transparent; text-align: start; position: relative;
            container-type: inline-size; text-decoration: none; }
a.cal-cell:hover { border-color: var(--text2); color: inherit; z-index: 3; }
.cal-num { font-size: .9375rem; line-height: 1.2; }
.cal-price { display: flex; align-items: baseline; white-space: nowrap; line-height: 1.15; font-weight: 500;
             font-variant-numeric: tabular-nums; letter-spacing: -.01em; font-size: 11px; }
.cal-l-1 { font-size: min(12px, 70cqi); } .cal-l-2 { font-size: min(12px, 50cqi); } .cal-l-3 { font-size: min(12px, 38cqi); }
.cal-l-4 { font-size: min(12px, 30cqi); } .cal-l-5 { font-size: min(12px, 25cqi); } .cal-l-6 { font-size: min(12px, 21.5cqi); }
.cal-l-7 { font-size: min(12px, 19cqi); }
/* 0.20.8 (аудит 0.20.6, У2): валюта кодом («RUB» — EN), не поместившаяся рядом с ценой (360 px), — строкой ниже, а не
   обрезана («599 RU»); размер цены — прежний (по цифрам); «₽» (RU) и широкие клетки — как были, в одну строку */
.cal-price.cal-price-code { flex-wrap: wrap; }
.cal-price .cal-cur { white-space: nowrap; }
.cal-cur { font-size: .86em; font-weight: 500; margin-inline-start: .16em; opacity: .8; letter-spacing: 0; }
.cal-rec { background-color: var(--ok-bg); color: var(--ok-fg); border-color: color-mix(in srgb, var(--ok-fg) 50%, transparent); }
.cal-norm { background-color: transparent; }
.cal-r1, .cal-late { background-color: var(--ye-bg); color: var(--ye-fg); border-color: transparent; }
.cal-r2 { background-color: var(--or-bg); color: var(--or-fg); border-color: transparent; }
.cal-r3 { background-color: var(--bad-bg); color: var(--bad-fg); border-color: transparent; }
.cal-off { background-color: transparent; border-color: transparent; color: var(--muted); opacity: .5; }
.cal-hatch { background-image: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 7px); }
.cal-sel { box-shadow: 0 0 0 2px var(--surf), 0 0 0 4px var(--sel-line); font-weight: 600; }
.cal-today .cal-num { text-decoration: underline; text-underline-offset: 3px; }
svg.ic.cal-star { position: absolute; top: 6px; inset-inline-end: 5px; width: 12px; height: 12px; stroke-width: 2.2; }
.cal-tip { display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
           white-space: nowrap; background: var(--surf2); color: var(--text); border: 1px solid var(--line2);
           font-size: 13px; font-weight: 500; line-height: 1.3; padding: 6px 10px; border-radius: 10px;
           box-shadow: var(--shadow); pointer-events: none; z-index: 5; }
@media (hover: hover) { a.cal-cell:hover .cal-tip { display: block; } }
.cal-sw { display: inline-block; width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line2); flex: 0 0 auto; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 4px; }
.cal-legend > div { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--text2); }
.cal-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px;
             border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.cal-aside .eyebrow { margin: 0; }
.cal-sel-title { font-size: 1.25rem; margin: 0; }
.cal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.cal-lines { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.cal-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cal-line > div:first-child { min-width: 0; }
.cal-val { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.cal-formula { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line);
             padding-top: 12px; }
.cal-total > span:first-child { font-weight: 500; color: var(--text2); }
.cal-sum { font-size: 2rem; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
           white-space: nowrap; }
.cal-sum .cal-cur { font-size: .72em; margin-inline-start: .14em; opacity: .75; }
.cal-form { margin-top: 0; }
.cal-form .btn { align-self: stretch; }
.cal-warn { background: var(--or-bg); color: var(--or-fg); border-radius: 14px; padding: 12px 14px; display: flex;
            flex-direction: column; gap: 10px; }
.cal-warn label.check { color: inherit; }
.tag.cal-hatch { background-image: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 7px); }
@media (max-width: 719px) {
  .cal-month + .cal-month { display: none; }      /* на телефоне — один месяц на экране (владелец 19.10) */
  .cal-cell { min-height: 50px; padding: 5px 3px 4px; border-radius: 10px; }
  svg.ic.cal-star { top: 4px; inset-inline-end: 3px; width: 10px; height: 10px; }
  .cal-grid { gap: 3px; }
  .cal-months { gap: 20px; }
  .cal-sum { font-size: 1.75rem; }
}

/* ── 0.18.1: тиры приоритета артистов (S/A/B/C/D) ── */
.tier { display: inline-flex; align-items: center; justify-content: center; min-width: 1.75rem; height: 1.5rem;
        padding: 0 .4rem; border-radius: 8px; font: 600 .8125rem/1 var(--font-label); letter-spacing: .02em;
        background: var(--neu-bg); color: var(--neu-fg); vertical-align: middle; }
.tier.big { min-width: 3rem; height: 3rem; border-radius: 14px; font-size: 1.375rem; }
.tier-S { background: var(--accent); color: var(--on-accent); }
.tier-A { background: var(--ok-bg); color: var(--ok-fg); }
.tier-B { background: var(--ye-bg); color: var(--ye-fg); }
.tier-C { background: var(--or-bg); color: var(--or-fg); }
.tier-D { background: var(--neu-bg); color: var(--muted); }
.tier-chips .chip { gap: 8px; }
.prio-head { display: flex; gap: 14px; align-items: center; }
.prio-head h2 { margin: 0; }
.prio-head p { margin: .2rem 0 0; }
.prio-card .tiles { margin: 12px 0 4px; }
.prio-parts li { margin: .35rem 0; }
.prio-tiles .tile .n { display: flex; align-items: center; gap: 8px; }
.prio-table .who { min-width: 9rem; }               /* 0.18.1 c (ревью М3): ФИО на 360 px не по буквам */
table.prio-table td { vertical-align: middle; }

/* ── 0.18.1: данные отчётов — подробный фильтр ── */
.dfilter { display: flex; flex-direction: column; gap: 12px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 10px 14px; }
.dfield { display: flex; flex-direction: column; gap: 4px; font-size: .875rem; color: var(--text2); min-width: 0; }
.dfield input, .dfield select { width: 100%; min-width: 0; }
.dpair { flex-direction: row; gap: 8px; }
.dpair > label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 0; min-width: 0; }
.dd-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
details.dd { border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--surf); min-width: 0;
             flex: 0 1 auto; max-width: 100%; }
details.dd > summary { padding: 8px 14px; cursor: pointer; font-size: .875rem; list-style: none; display: flex; gap: 8px;
                       align-items: center; }
details.dd > summary::-webkit-details-marker { display: none; }
details.dd > summary::after { content: "▾"; color: var(--muted); }
details.dd[open] > summary::after { content: "▴"; }
details.dd[open] { flex: 1 1 18rem; }
.dd-list { max-height: 16rem; overflow: auto; padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 2px;
           border-top: 1px solid var(--line); }
.dd-item { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; font-size: .875rem;
           color: var(--text); cursor: pointer; }
.dd-item:hover { background: var(--surf2); }
.dd-item > span:first-of-type { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.dd-item input { flex: 0 0 auto; }
details.dd > p { padding: 0 14px 8px; margin: 0; }
.dgroup .row select { flex: 1 1 12rem; width: auto; min-width: 0; }
.dactions { align-items: center; }
.dfilter-desc { overflow-wrap: anywhere; }
table.dtable td { vertical-align: top; }
table.dtable td .tag { margin-top: 4px; }
table.dtable progress.bar { width: 4rem; vertical-align: middle; }
.pager { justify-content: center; align-items: center; margin-top: 12px; }
#rows .card-head { justify-content: space-between; align-items: center; gap: 8px; }
#rows .card-head h2 { margin: 0; }
#rows .card-head form select { width: auto; }
@media (max-width: 719px) {
  .dpair { flex-direction: column; }
  details.dd, details.dd[open] { flex: 1 1 100%; }
}

/* 0.19.0 этап 7: справа налево (языков с письмом справа налево сейчас нет — подготовка; в LTR правила не действуют):
   полоса цвета строки — у начала строки, бегущая полоса хода команды — в обратную сторону, затухание прокручиваемого
   меню — у его конца */
[dir="rtl"] table.list tr.c-crit td:first-child { box-shadow: inset -4px 0 0 var(--c-crit); }
[dir="rtl"] table.list tr.c-red td:first-child { box-shadow: inset -4px 0 0 var(--c-red); }
[dir="rtl"] table.list tr.c-orange td:first-child { box-shadow: inset -4px 0 0 var(--c-orange); }
[dir="rtl"] table.list tr.c-yellow td:first-child { box-shadow: inset -4px 0 0 var(--c-yellow); }
[dir="rtl"] .progress-fill { animation-direction: reverse; }
@media (max-width: 719px) {
  [dir="rtl"] .shell-plain .nav-links.scrolls:not(.at-end) { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent);
                                                             mask-image: linear-gradient(to left, #000 82%, transparent); }
}
/* 0.18.6 b: отчёт агента — на телефоне главная таблица карточками: артист (проект) и процент — строкой целиком, суммы —
   три столбца с подписями (без обрезки «Итого» и без разрыва ФИО по буквам) */
.agent-stats-head { margin-top: 28px; }
table.agent-table td.agent-who { overflow-wrap: normal; word-break: normal; }
@media (max-width: 719px) {
  table.agent-table thead { display: none; }
  table.agent-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px;
    padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.agent-table td { border: 0; padding: 2px 0; }
  table.agent-table td.agent-who, table.agent-table tr.agent-contract td { grid-column: 1 / -1; }
  table.agent-table td[data-l]::before { content: attr(data-l); display: block; font-size: .75rem; color: var(--muted);
    font-weight: 400; }
}

/* 0.21.0: несколько кабинетов на одной почте — длинные имена кабинетов переносятся (360 px) */
.stack .btn.choose-btn { white-space: normal; text-align: start; max-width: 100%; overflow-wrap: anywhere; }
.umenu-item { overflow-wrap: anywhere; }
/* 0.21.0: «Кто ещё имеет доступ» — карточки, без таблицы (360 px) */
.rep-access { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rep-access-item { border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 12px; padding: 10px 12px;
                   display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.rep-access-item form.inline { margin: 0; }
.rep-levels .check, .rep-fine .check { align-items: flex-start; }
.rep-secs { overflow-wrap: anywhere; }
.rep-access-who { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }


/* ── 0.22.0 (В14, решение владельца 22.11): карточки артиста и релиза — гибрид. Компьютер и планшет — вкладки (полоса
   липкая); телефон (< 720 px) — все разделы подряд и раскрывающееся оглавление «Разделы». Без JavaScript — разделы
   подряд и на компьютере (вкладки — якоря). ── */
.kc { margin-top: 4px; }
.kc-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 20;
           margin: 0 0 20px; padding-top: 6px; background: var(--bg); border-bottom: 1px solid var(--line); }
.kc-tabs::-webkit-scrollbar { display: none; }
.kc-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px;
          margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text2); text-decoration: none;
          font-weight: 500; white-space: nowrap; }
.kc-tab:hover { color: var(--text); }
.kc-tab[aria-current="true"] { color: var(--text); border-bottom-color: var(--accent); }
.kc-n { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 11px; background: var(--neu-bg); color: var(--neu-fg);
        font-size: .8125rem; line-height: 1.6; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.kc-dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.kc-toc { display: none; }
.kc-panel, .kc-panel section[id], .kc-panel .grid2 > section[id] { scroll-margin-top: 72px; }
@media (min-width: 720px) {
  .kc.kc-js .kc-panel:not(.on) { display: none; }
}
@media (max-width: 719px) {
  .kc-tabs { display: none; }
  .kc-toc { display: block; position: sticky; top: 0; z-index: 20; margin: 0 0 16px; border: 1px solid var(--line);
            border-radius: 16px; background: var(--surf); }
  .kc-toc > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none; }
  .kc-toc > summary::-webkit-details-marker { display: none; }
  .kc-toc > summary::after { content: ""; flex: 0 0 auto; margin-inline-start: auto; width: 8px; height: 8px;
                             border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
  .kc-toc[open] > summary::after { transform: rotate(-135deg); }
  .kc-toc-l { color: var(--muted); flex: 0 0 auto; }
  .kc-cur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kc-toc-list { list-style: none; margin: 0; padding: 4px 8px 10px; border-top: 1px solid var(--line); max-height: 70vh; overflow-y: auto; }
  .kc-toc-list li { margin: 0; }
  .kc-toc-list a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px;
                   color: var(--text); text-decoration: none; }
  .kc-toc-list .kc-g a { min-height: 34px; margin-top: 6px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .kc-toc-list .kc-one a { font-weight: 600; }
  .kc-toc-list .kc-s a { padding-inline-start: 18px; }
  .kc-toc-list a.on { background: var(--surf2); box-shadow: inset 3px 0 0 var(--accent); }
  .kc-panel section[id], .kc-panel .grid2 > section[id] { scroll-margin-top: 68px; }
}

/* ── 0.22.0 (В20, решения владельца 22.11): панель статистики — плитки итогов, «Доход по месяцам», площадки плитками.
   Числа — без переноса и обрезки: шрифт по длине числа и ширине плитки (cqi), точнее — app.js (не мельче 16 px);
   не влезает — плитка во всю ширину ряда (.wide). Цвета графиков — токены темы. ── */
:root, [data-theme="dark"] {
  --ch1: #5b8def; --ch2: #e0713e; --ch3: #3fae7f; --ch-cmp: #9a938a; --up: #7fd6a2; --down: #ff9a90;
  --p0: #5b8def; --p1: #e0713e; --p2: #3fae7f; --p3: #d4a43a; --p4: #e0628f; --p5: #6fbf4a; --p6: #9a83e8; --p7: #3ab7c2; --p8: #8f877c;
}
[data-theme="light"] {
  --ch1: #2f64d6; --ch2: #c4531c; --ch3: #1f8a5b; --ch-cmp: #857d72; --up: #1d6b3a; --down: #a3130f;
  --p0: #2f64d6; --p1: #c4531c; --p2: #1f8a5b; --p3: #9a6f05; --p4: #c23a6d; --p5: #4a8f22; --p6: #6d55c9; --p7: #12808a; --p8: #776f65;
}
@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    --ch1: #2f64d6; --ch2: #c4531c; --ch3: #1f8a5b; --ch-cmp: #857d72; --up: #1d6b3a; --down: #a3130f;
    --p0: #2f64d6; --p1: #c4531c; --p2: #1f8a5b; --p3: #9a6f05; --p4: #c23a6d; --p5: #4a8f22; --p6: #6d55c9; --p7: #12808a; --p8: #776f65;
  }
}
.dash { margin: 8px 0 24px; }
.dash-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.dash-chips { margin: 0; }
.dash-cmp { margin: 0; }
.dash-pick { gap: 8px; align-items: center; margin: 12px 0 0; }
.dash-more { margin-top: 28px; }
.kt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.pt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kt-grid.kt-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* без денег — три плитки в ряд */
@media (max-width: 1099px) { .kt-grid, .kt-grid.kt-n3, .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.kt, .pt { container-type: inline-size; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px;
           border: 1px solid var(--line); border-radius: 18px; background: var(--surf); }
.pt { background: var(--bg); border-radius: 16px; padding: 14px; }
.kt.wide, .pt.wide { grid-column: 1 / -1; }
.kt-l, .pt-h { color: var(--text2); font-size: .875rem; line-height: 1.35; overflow-wrap: break-word; hyphens: auto; }
.fit-box { white-space: nowrap; overflow: visible; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums;
           letter-spacing: -.01em; color: var(--text); }
.fit { white-space: nowrap; }
.kt-n { font-size: 1.75rem; }
.pt-n { font-size: 1.5rem; }
.kt[data-len="8"] .kt-n { font-size: clamp(1rem, 20.8cqi, 1.75rem); }
.kt[data-len="9"] .kt-n { font-size: clamp(1rem, 18.5cqi, 1.75rem); }
.kt[data-len="10"] .kt-n { font-size: clamp(1rem, 16.7cqi, 1.75rem); }
.kt[data-len="11"] .kt-n { font-size: clamp(1rem, 15.2cqi, 1.75rem); }
.kt[data-len="12"] .kt-n { font-size: clamp(1rem, 13.9cqi, 1.75rem); }
.kt[data-len="13"] .kt-n { font-size: clamp(1rem, 12.8cqi, 1.75rem); }
.kt[data-len="14"] .kt-n { font-size: clamp(1rem, 11.9cqi, 1.75rem); }
.kt[data-len="15"] .kt-n { font-size: clamp(1rem, 11.1cqi, 1.75rem); }
.kt[data-len="16"] .kt-n { font-size: clamp(1rem, 10.4cqi, 1.75rem); }
.kt[data-len="17"] .kt-n { font-size: clamp(1rem, 9.8cqi, 1.75rem); }
.kt[data-len="18"] .kt-n { font-size: clamp(1rem, 9.3cqi, 1.75rem); }
.kt[data-len="19"] .kt-n { font-size: clamp(1rem, 8.8cqi, 1.75rem); }
.kt[data-len="20"] .kt-n { font-size: clamp(1rem, 8.3cqi, 1.75rem); }
.kt[data-len="21"] .kt-n { font-size: clamp(1rem, 7.9cqi, 1.75rem); }
.kt[data-len="22"] .kt-n { font-size: clamp(1rem, 7.6cqi, 1.75rem); }
.kt[data-len="23"] .kt-n { font-size: clamp(1rem, 7.2cqi, 1.75rem); }
.kt[data-len="24"] .kt-n { font-size: clamp(1rem, 6.9cqi, 1.75rem); }
.kt[data-len="25"] .kt-n { font-size: clamp(1rem, 6.7cqi, 1.75rem); }
.kt[data-len="26"] .kt-n { font-size: clamp(1rem, 6.4cqi, 1.75rem); }
.kt[data-len="27"] .kt-n { font-size: clamp(1rem, 6.2cqi, 1.75rem); }
.kt[data-len="28"] .kt-n { font-size: clamp(1rem, 6.0cqi, 1.75rem); }
.kt[data-len="29"] .kt-n { font-size: clamp(1rem, 5.7cqi, 1.75rem); }
.kt[data-len="30"] .kt-n { font-size: clamp(1rem, 5.6cqi, 1.75rem); }
.pt[data-len="8"] .pt-n { font-size: clamp(1rem, 20.8cqi, 1.5rem); }
.pt[data-len="9"] .pt-n { font-size: clamp(1rem, 18.5cqi, 1.5rem); }
.pt[data-len="10"] .pt-n { font-size: clamp(1rem, 16.7cqi, 1.5rem); }
.pt[data-len="11"] .pt-n { font-size: clamp(1rem, 15.2cqi, 1.5rem); }
.pt[data-len="12"] .pt-n { font-size: clamp(1rem, 13.9cqi, 1.5rem); }
.pt[data-len="13"] .pt-n { font-size: clamp(1rem, 12.8cqi, 1.5rem); }
.pt[data-len="14"] .pt-n { font-size: clamp(1rem, 11.9cqi, 1.5rem); }
.pt[data-len="15"] .pt-n { font-size: clamp(1rem, 11.1cqi, 1.5rem); }
.pt[data-len="16"] .pt-n { font-size: clamp(1rem, 10.4cqi, 1.5rem); }
.pt[data-len="17"] .pt-n { font-size: clamp(1rem, 9.8cqi, 1.5rem); }
.pt[data-len="18"] .pt-n { font-size: clamp(1rem, 9.3cqi, 1.5rem); }
.pt[data-len="19"] .pt-n { font-size: clamp(1rem, 8.8cqi, 1.5rem); }
.pt[data-len="20"] .pt-n { font-size: clamp(1rem, 8.3cqi, 1.5rem); }
.pt[data-len="21"] .pt-n { font-size: clamp(1rem, 7.9cqi, 1.5rem); }
.pt[data-len="22"] .pt-n { font-size: clamp(1rem, 7.6cqi, 1.5rem); }
.pt[data-len="23"] .pt-n { font-size: clamp(1rem, 7.2cqi, 1.5rem); }
.pt[data-len="24"] .pt-n { font-size: clamp(1rem, 6.9cqi, 1.5rem); }
.pt[data-len="25"] .pt-n { font-size: clamp(1rem, 6.7cqi, 1.5rem); }
.pt[data-len="26"] .pt-n { font-size: clamp(1rem, 6.4cqi, 1.5rem); }
.pt[data-len="27"] .pt-n { font-size: clamp(1rem, 6.2cqi, 1.5rem); }
.pt[data-len="28"] .pt-n { font-size: clamp(1rem, 6.0cqi, 1.5rem); }
.pt[data-len="29"] .pt-n { font-size: clamp(1rem, 5.7cqi, 1.5rem); }
.pt[data-len="30"] .pt-n { font-size: clamp(1rem, 5.6cqi, 1.5rem); }
.kt-d, .pt-d, .kt-s { font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.kt-d.up, .pt-d .up { color: var(--up); }
.kt-d.down, .pt-d .down { color: var(--down); }
.spark { display: block; width: 100%; height: 40px; margin-top: auto; padding-top: 6px; overflow: visible; }
.spark .sl { fill: none; stroke: var(--sc); stroke-width: 1.75; stroke-linejoin: round; }
.spark .sa { fill: var(--sc); fill-opacity: .16; stroke: none; }
.c-inc { --sc: var(--ch1); } .c-str { --sc: var(--ch2); } .c-per { --sc: var(--ch3); } .c-plat { --sc: var(--pc); }
.pc { --pc: var(--p8); }   /* цвет площадки по умолчанию; свой — классом pc0…pc8 */
.pc0 { --pc: var(--p0); } .pc1 { --pc: var(--p1); } .pc2 { --pc: var(--p2); } .pc3 { --pc: var(--p3); } .pc4 { --pc: var(--p4); }
.pc5 { --pc: var(--p5); } .pc6 { --pc: var(--p6); } .pc7 { --pc: var(--p7); } .pc8 { --pc: var(--p8); }
.pt-dot { display: inline-block; width: 10px; height: 10px; margin-inline-end: 8px; border-radius: 3px; background: var(--pc); }
.ch-card h2 { margin-bottom: 2px; }
.ch-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--text2); margin: 10px 0 6px; }
.ch-legend .lg { display: inline-block; width: 12px; height: 12px; margin-inline-end: 8px; border-radius: 3px; background: var(--ch1); }
.ch-legend .lg-cur { background: var(--ch1); }
.ch-legend .lg-cmp { width: 18px; height: 0; margin-inline: 18px 8px; border-radius: 0; border-top: 2px dashed var(--ch-cmp); background: none; }
.ch { display: none; width: 100%; height: auto; overflow: visible; }
@media (min-width: 1200px) { .ch-w { display: block; } }
@media (min-width: 720px) and (max-width: 1199px) { .ch-m { display: block; } }
@media (max-width: 719px) { .ch-n { display: block; } }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-ax { fill: var(--muted); }
.ch-area { stroke: none; }
.ch-line { fill: none; stroke: var(--ch1); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ch-comp { fill: none; stroke: var(--ch-cmp); stroke-width: 1.75; }
.ch-s0 { stop-color: var(--ch1); stop-opacity: .38; }
.ch-s1 { stop-color: var(--ch1); stop-opacity: .02; }
.ch-pt { fill: var(--surf); stroke: var(--ch1); stroke-width: 2; }
.ch-pk { fill: var(--ch1); stroke: var(--surf); stroke-width: 2; }
.ch-pkt, .ch-lt { fill: var(--text); font-weight: 600; }
.ch-table { margin-top: 8px; }
.tile.wide { grid-column: 1 / -1; flex-basis: 100%; }
.ch-legend .lgi { display: inline-flex; align-items: center; white-space: nowrap; margin-inline-end: 18px; }
.ch-legend .lg-cmp { margin-inline-start: 0; }
/* 0.22.0: самый узкий телефон (< 360 px) — плитки «Статистики» и главной в один столбец: подпись не уже слова */
@media (max-width: 359px) { .tiles:not(.tiles-fit) { grid-template-columns: minmax(0, 1fr); } }
/* 0.22.0: телефон уже 360 px — плитки итогов по одной (по две подписи рвались бы внутри слов) */
@media (max-width: 359px) { .kt-grid, .kt-grid.kt-n3 { grid-template-columns: minmax(0, 1fr); } }

/* 0.24.0: продвижение — столбики просмотров по дням (высота классом: стили только из файла, CSP), подсказки поиска */
.bars { display: flex; align-items: flex-end; gap: 2px; height: 8rem; overflow-x: auto; }
.bars .bar { flex: 1 0 6px; height: 100%; display: flex; align-items: flex-end; }
.bars .bar span { display: block; width: 100%; background: var(--accent, #6a5acd); border-radius: 2px 2px 0 0; min-height: 1px; }
.bars .h0 { height: 1%; } .bars .h1 { height: 10%; } .bars .h2 { height: 20%; } .bars .h3 { height: 30%; }
.bars .h4 { height: 40%; } .bars .h5 { height: 50%; } .bars .h6 { height: 60%; } .bars .h7 { height: 70%; }
.bars .h8 { height: 80%; } .bars .h9 { height: 90%; } .bars .h10 { height: 100%; }
.suggest { list-style: none; padding: 0; margin: .25rem 0; }
.suggest li button { width: 100%; text-align: left; padding: .4rem .5rem; background: none; border: 0; border-bottom: 1px solid var(--line, #8883); color: inherit; cursor: pointer; }
.suggest li button:hover, .suggest li button:focus { background: var(--soft, #8881); }
pre.lyrics { white-space: pre-wrap; font: inherit; max-height: 20rem; overflow: auto; }
code.key { word-break: break-all; user-select: all; }
/* 0.24.0 (К11 «Б»): порядок треков подписчика */
ol.prio { padding-inline-start: 1.6rem; margin: .5rem 0; }
ol.prio li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; padding: .4rem .25rem; border-bottom: 1px solid var(--line, #8883); cursor: grab; }
ol.prio li.dragging { opacity: .5; }
ol.prio .prio-title { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
ol.prio .prio-move { display: inline-flex; gap: .25rem; }
ol.prio .prio-move .btn { min-width: 44px; min-height: 44px; padding: 0 .5rem; }
/* 0.25.0: сдвиг LRC (изменённые строки), общий поиск, восстановленный черновик формы */
table.list tr.hl td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
ul.search-results { list-style: none; padding: 0; margin: 1rem 0; }
ul.search-results li { padding: .5rem 0; border-bottom: 1px solid var(--line, #8883); overflow-wrap: anywhere; }
.keep-note { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* ── 0.25.0: правила текста песни под формой трека (releases/_lyrics_check.html) ── */
.lyrics-check { margin: .5rem 0 1rem; }
.lyrics-check ul.plain li { margin: .15rem 0; }

/* 0.25.8: «кому» галочками в строке правила почты */
fieldset.plain { border: 0; border-radius: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.plain label { white-space: nowrap; }

/* 0.25.11: демо-кабинет - полоса «ДЕМО» и переключатель ролей */
.demo-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px;
  border: 1px dashed currentColor; border-radius: 12px; }
.demo-tag { letter-spacing: .08em; }
.demo-text { flex: 1 1 220px; }
.demo-roles, .demo-reset { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
