/* Личный кабинет Video Unique Booster: общие стили.
   Основа - одобренный макет кабинета (токены, кнопки, поля, .auth, .modal, .msg, .copy),
   брендбук приложения VideoUniqueBooster docs/ui_brandbook.md и решение владельца:
   плитки #1B1B1C на фоне #121212, как окно "Пополнить баланс" на сайте.
   Выбранное - нейтральная заливка #2E2E30 и полоса акцента сбоку или белый полужирный текст.
   Инлайн-стилей нет: CSP страниц разрешает стили только из файлов. */

:root{
  --page:#121212; --tile:#1B1B1C; --tile-border:#343438; --hairline:#2A2A2C;
  --raised:#242426; --selected:#2E2E30; --nav-current:#2E2E31; --nav-hover:#2B2B2E; --pressed:#343437;
  --well:#222222; --well-hover:#2A2A2A; --border:#3D3D3D; --border-strong:#4C4C4E; --track:#292929;
  --t-white:#FFFFFF; --t-high:#F3F3F3; --t-body:#DFDFDF; --t-label:#A0A0A5; --t-soft:#C9C9CC; --t-2:#787878; --t-muted:#7D7D82; --t-off:#5F5F63; --t-ph:#8A8A8F;
  --accent:#367AF6; --accent-line:#4B91F7; --accent-pressed:#2E6AD8;
  --btn-off:#2A3B57; --btn-off-text:#7E8A9C;
  --error:#E5484D; --error-text:#F0797C; --success:#30A46C; --warning:#F0B429; --device:#3FB0A0;
  --danger-line:#762F32; --danger-hover:#372123;
  --ui:"Roboto","Segoe UI",system-ui,sans-serif; --mono:Consolas,"Cascadia Mono",Menlo,"Roboto Mono","DejaVu Sans Mono",monospace;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100vh;background:var(--page);color:var(--t-body);font-family:var(--ui);font-size:15px;line-height:1.5}
/* Пока app.js не перевёл страницу, она скрыта, чтобы не мигал второй язык.
   Если скрипт не загрузился, страница всё равно появится через 3 с. */
html:not(.ready) body{visibility:hidden;animation:vub-reveal 0s 3s forwards}
@keyframes vub-reveal{to{visibility:visible}}
h1,h2,h3,h4{margin:0;text-wrap:balance}
p{margin:0}
[hidden]{display:none!important}
:focus-visible{outline:1px solid var(--accent-line);outline-offset:0}
button{font-family:inherit}
/* code без своего правила не берёт Courier браузера */
code{font-family:var(--mono)}
.noscript{max-width:420px;margin:48px auto;padding:0 16px;text-align:center;color:var(--t-label);font-size:13px}

/* ---------- верхняя строка страниц входа ---------- */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;height:52px;padding:0 24px}
.brand-link{display:inline-flex;align-items:center;gap:9px;color:var(--t-high);font-weight:600;font-size:15px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-link:hover{color:var(--t-white)}

/* переключатель языка: роль SEGMENT, выбранное - нейтральная заливка и белый текст */
.seg{display:inline-flex;flex-wrap:wrap;gap:2px;background:var(--raised);border:1px solid var(--border);border-radius:9px;padding:2px;flex:none}
.seg button{border:0;background:transparent;padding:3px 10px;border-radius:6px;font-size:11px;font-weight:600;color:var(--t-label);cursor:pointer;line-height:1.5}
.seg button:hover{color:var(--t-high)}
.seg button[aria-pressed="true"]{background:var(--selected);color:var(--t-white)}

/* ---------- вход, регистрация, восстановление: плитка 420 px, как окно "Пополнить баланс" ----------
   Плитка стоит по центру области под шапкой со смещением вверх: свободная высота делится 2 к 3.
   .auth.split - прозрачная обёртка: плитка внутри (.auth-tile), строка-ссылка под плиткой. */
.topbar~main{display:flex;flex-direction:column;min-height:calc(100vh - 52px);padding:24px 16px 36px}
.topbar~main::before{content:"";flex:2 0 0}
.topbar~main::after{content:"";flex:3 0 0}
.auth,.auth-tile{background:var(--tile);border:1px solid var(--tile-border);border-radius:10px;padding:24px;display:flex;flex-direction:column;gap:12px}
.auth{width:100%;max-width:420px;margin:0 auto}
.auth.split,.auth.bare{background:transparent;border:0;padding:0}
.auth h1{font-size:18px;font-weight:600;color:var(--t-high);text-align:center}
.auth .lead{font-size:13px;line-height:1.5;color:var(--t-label);text-align:center;margin:0 0 6px;overflow-wrap:anywhere}
/* обещание кредитов за приглашение над заголовком /login/ и /register/ (VUB.inviteOffer): нейтральная заливка #2E2E30 без
   полосы сбоку - полоса акцента по брендбуку значит «выбрано», а полоса не выбирается (критик интерфейса 22.10.2026,
   пункт 8); заголовок белым полужирным, обещание, строка условия мельче */
.invite{background:var(--selected);border-radius:6px;padding:10px 12px;font-size:13px;line-height:1.5;color:var(--t-body);overflow-wrap:anywhere}
.invite b{display:block;color:var(--t-high);font-weight:600}
.invite small{display:block;margin-top:2px;color:var(--t-label);font-size:12px}
.invite[hidden]{display:none}
/* встроенный браузер приложения (VUB.inAppNotice, /login/ и /register/): тот же вид, что у полосы приглашения, - нейтральная
   заливка без полосы и цвета; заголовок белым полужирным, причина, одна кнопка во всю ширину высотой с кнопку Telegram,
   строка «как открыть» мельче */
.inapp{display:flex;flex-direction:column;gap:9px;background:var(--selected);border-radius:6px;padding:10px 12px;font-size:13px;line-height:1.5;color:var(--t-body);overflow-wrap:anywhere}
.inapp b{color:var(--t-high);font-weight:600}
.inapp small{color:var(--t-label);font-size:12px}
.inapp small[hidden],.inapp[hidden]{display:none}
.inapp .btn{height:40px;font-size:14px;width:100%}
.fatal{display:block;min-height:100vh;padding:48px 16px}
.loading{min-height:50vh;display:flex;align-items:center;justify-content:center;color:var(--t-muted);font-size:13px;opacity:0;animation:vub-fade .2s .3s forwards}
@keyframes vub-fade{to{opacity:1}}

/* ---------- кнопки: роли window_tokens.py; высота одна в ряду ---------- */
.btn{font-family:var(--ui);font-size:13px;font-weight:500;height:32px;padding:0 15px;border-radius:6px;border:1px solid transparent;background:var(--accent);color:var(--t-white);cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;line-height:1}
.btn:hover{background:var(--accent-line)}
.btn:active{background:var(--accent-pressed)}
.btn:disabled{background:var(--btn-off);color:var(--btn-off-text);cursor:default}
.btn.sec{background:var(--well);border-color:var(--border-strong);color:var(--t-body)}
.btn.sec:hover{background:var(--well-hover);color:var(--t-high)}
.btn.sec:active{background:var(--tile)}
.btn.sec:disabled{color:var(--t-off);border-color:var(--border);background:var(--well)}
.btn.danger{background:transparent;border-color:var(--danger-line);color:var(--error-text);font-weight:600}
.btn.danger:hover{background:var(--danger-hover)}
.btn.danger:disabled{color:var(--t-off);border-color:var(--border);background:transparent}
.btn.danger:focus-visible{outline-color:var(--error)}
.btn.big{height:48px;padding:0 18px;font-size:15px;width:100%}
.btn.text{background:transparent;border:0;color:var(--accent-line);font-size:13px;font-weight:600;padding:0 6px;height:24px}
.btn.text:hover{text-decoration:underline;background:transparent}
.btn[aria-busy="true"]{cursor:progress}
.link{color:var(--accent-line);font-weight:500;text-decoration:none;background:none;border:0;padding:0;font-size:inherit;cursor:pointer}
.link:hover{text-decoration:underline}
.link:active{color:var(--accent-pressed)}

/* ---------- поля: колодец #222222, радиус 6 как на сайте ---------- */
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field label{font-size:12px;color:var(--t-label)}
.input{width:100%;background:var(--well);border:1px solid var(--tile-border);border-radius:6px;padding:12px;color:var(--t-body);font-size:15px;font-family:var(--ui);line-height:1.4;margin:0}
/* Подсказка-образец в поле (name@example.com, точки пароля): бледнее подписи #A0A0A5 и введённого текста #DFDFDF,
   чтобы не спорить с подписью (ui-bank, DesignCourse 86), но контраст 4,6:1 на колодце #222222 (WCAG AA 4,5:1;
   DesignCourse 6REa8fo2scU @ 03:22). Прежний #7D7D82 давал 3,9:1. Токена подсказки в брендбуке нет. */
.input::placeholder{color:var(--t-ph);opacity:1}
.input:hover{border-color:var(--border-strong)}
.input:focus{outline:0;border-color:var(--accent-line)}
.input[aria-invalid="true"]{border-color:var(--error)}
.input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--well) inset;-webkit-text-fill-color:var(--t-body);caret-color:var(--t-body)}
.input.code{font-family:var(--mono);letter-spacing:6px;text-align:center}
.input.code::placeholder{letter-spacing:6px}
.input.mono{font-family:var(--mono)}
/* код восстановления xxxx-xxxx: шрифт кабинета, цифры равной ширины */
.input.rc{font-variant-numeric:tabular-nums;letter-spacing:2px;text-align:center}
.input.rc::placeholder{letter-spacing:2px}
/* адрес из 34 знаков виден целиком в окне на ширине 390: моноширинный шрифт 13px */
.input.addr{font-size:13px;letter-spacing:0;padding-left:9px;padding-right:9px}
.addr-echo{display:flex;flex-direction:column;gap:3px;min-width:0}
.addr-echo code{font-family:var(--mono);font-size:13px;color:var(--t-high);overflow-wrap:anywhere}
.pw{position:relative;display:flex}
.pw .input{padding-right:48px}
.eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;padding:0;border:0;border-radius:4px;cursor:pointer;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23A0A0A5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 10S4.5 4 10 4s8.5 6 8.5 6-3 6-8.5 6-8.5-6-8.5-6z'/%3E%3Ccircle cx='10' cy='10' r='2.5'/%3E%3C/svg%3E") center/18px 18px no-repeat}
.eye[aria-pressed="true"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23A0A0A5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 10S4.5 4 10 4s8.5 6 8.5 6-3 6-8.5 6-8.5-6-8.5-6z'/%3E%3Ccircle cx='10' cy='10' r='2.5'/%3E%3Cpath d='M3 17L17 3'/%3E%3C/svg%3E")}
.eye:hover{background-color:var(--well-hover)}
.hint{font-size:12px;color:var(--t-label);margin:0}

/* ---------- вход через Google и Telegram ----------
   Обе кнопки свои, второстепенные (btn sec), высота 40, значок 18 px слева: у Google - цветная буква G, встроенная
   сюда (data:, без отдельной загрузки: значок появляется вместе с текстом; знак Google не перекрашивается), у Telegram - самолётик. Скрипта Google на странице нет
   (11.11.2026, assets/app.js, VUB.googleButton). Разделитель "или" - строка с двумя линиями. */
.or{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--t-label);margin:0}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--hairline)}
.prov{display:flex;flex-direction:column;gap:9px;align-items:stretch;min-width:0;min-height:89px}
/* Место двух кнопок (40 + 9 + 40 px) занято с первого кадра и после ответа GET /config не меняет высоту ни в одном
   исходе: иначе кнопки появлялись позже и сдвигали вниз строку «Задать пароль» под ними (/register/, решение
   21.10.2026 - кнопки вместо поля почты), а на /login/ блок «или» сжимался до одной кнопки (встроенный браузер) или
   пропадал (сбой /config, способов нет) - находка ревью 11.11.2026. Кнопок меньше - пустое место; кнопок нет - блок
   прячется без снятия места (.prov-off, assets/app.js, VUB.providerSignIn). Класс wait снимается по ответу /config. */
.prov-off{visibility:hidden}
.btn.gg,.btn.tg{height:40px;font-size:14px;gap:9px;width:100%}
.btn.gg::before{content:"";flex:none;width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center/contain no-repeat}
.btn.tg::before{content:"";flex:none;width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23DFDFDF' d='M17.6 3.2 2.9 8.9c-.8.3-.8 1.1 0 1.4l3.6 1.2 1.4 4.4c.2.6.9.7 1.3.3l2-1.9 3.6 2.7c.6.4 1.3.1 1.5-.6l2.6-12.1c.2-.9-.5-1.4-1.3-1.1zM8.3 11.3l6.4-4-4.9 5.1-.3 2.5-1.2-3.6z'/%3E%3C/svg%3E") center/contain no-repeat}
.auth .line.echo{display:flex;justify-content:center;align-items:baseline;flex-wrap:wrap;gap:3px 9px}
.echo span{color:var(--t-high);overflow-wrap:anywhere;min-width:0}
/* окно "Способы входа": строка способа - название и состояние слева, действие справа */
.method{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px 12px;padding:9px 0;border-bottom:1px solid var(--hairline);min-width:0}
.method:last-of-type{border-bottom:0}
.method .btn.gg,.method .btn.tg{width:auto;height:32px;font-size:13px}

/* список выбора: вид поля, стрелка справа */
select.input{appearance:none;-webkit-appearance:none;padding-right:36px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23A0A0A5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:10px 6px}
select.input option{background:var(--well);color:var(--t-body)}
.hint.bad{color:var(--error-text)}
span.mono{font-family:var(--mono);font-size:13px}

/* капча Turnstile: ширина по полю */
.captcha{display:flex;justify-content:center;min-width:0}
.captcha>div{width:100%}
.captcha:empty:not(.wait){display:none}
/* место виджета занято, пока скрипт Turnstile грузится: иначе виджет (65 px) появляется позже и сдвигает кнопку
   «Войти» или «Зарегистрироваться» вниз - нажатие в этот момент попадает в виджет, а не в кнопку */
.captcha.wait{min-height:65px}

/* ---------- копирование: CopyButton приложения - значок 16px без подписи ---------- */
.copy{flex:none;width:25px;height:25px;padding:0;border:1px solid #363636;border-radius:4px;cursor:pointer;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23f2f2f2' fill-rule='evenodd' d='M4 2a2 2 0 00-2 2v9a2 2 0 002 2h2v2a2 2 0 002 2h9a2 2 0 002-2V8a2 2 0 00-2-2h-2V4a2 2 0 00-2-2H4zm9 4V4H4v9h2V8a2 2 0 012-2h5zM8 8h9v9H8V8z'/%3E%3C/svg%3E") center/16px 16px no-repeat}
.copy:hover{background-color:#3A3A3E}
.copy:active{background-color:#48484C}
.copy:focus-visible{outline:0;border-color:var(--accent-line)}
/* копирование с подписью: тот же значок перед текстом кнопки ("Скопировать коды", "Скопировать ключ") */
.btn.cp::before{content:"";flex:none;width:16px;height:16px;margin-right:8px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23f2f2f2' fill-rule='evenodd' d='M4 2a2 2 0 00-2 2v9a2 2 0 002 2h2v2a2 2 0 002 2h9a2 2 0 002-2V8a2 2 0 00-2-2h-2V4a2 2 0 00-2-2H4zm9 4V4H4v9h2V8a2 2 0 012-2h5zM8 8h9v9H8V8z'/%3E%3C/svg%3E") center/16px 16px no-repeat}
.toast{position:fixed;z-index:20;font-size:13px;color:var(--t-high);background:var(--raised);border:1px solid var(--border);border-radius:6px;padding:6px 12px;pointer-events:none;max-width:min(360px,calc(100vw - 16px))}
.keybox{display:flex;align-items:center;gap:12px;background:var(--well);border:1px solid var(--border);border-radius:6px;padding:6px 6px 6px 12px;min-width:0}
/* ключ и ссылка видны целиком: длинное значение переносится на следующую строку, многоточия нет */
.keybox code{font-family:var(--ui);font-variant-numeric:tabular-nums;letter-spacing:.5px;font-size:13px;line-height:1.5;color:var(--t-body);flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-all}
/* ключ без значка внутри рамки: кнопка копирования с подписью стоит под ним */
.keybox.solo{padding:9px 12px}
.keybox.solo+.btn{margin-top:6px}
/* ссылка-переключатель вида кода в окне: длинная подпись переносится от левого края */
.modal-form .line .link{text-align:left}

/* ---------- сообщения: нейтральная плитка с рамкой, смысл несёт цвет заголовка; цветных подложек нет ---------- */
.msg{border-radius:8px;padding:12px 15px;display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--t-label);overflow-wrap:anywhere;background:var(--raised);border:1px solid var(--tile-border)}
.msg b{font-weight:600}
.msg.err b{color:var(--error-text)}
.msg.warn b{color:var(--warning)}
.msg.ok b{color:var(--success)}
/* состояние аккаунта (тариф закончился, дневной лимит исчерпан): не ошибка, поэтому без красного */
.msg.state b{color:var(--t-white)}
.msg .row{margin-top:6px}

/* ---------- окно поверх страницы ---------- */
dialog.modal{width:calc(100vw - 32px);max-width:440px;max-height:calc(100vh - 32px);overflow:auto;background:var(--tile);color:var(--t-body);border:1px solid var(--tile-border);border-radius:12px;padding:24px;margin:auto}
dialog.modal[open]{display:flex;flex-direction:column;gap:12px}
dialog.modal::backdrop{background:rgba(0,0,0,.6)}
dialog.modal[tabindex="-1"]:focus-visible{outline:none}
.modal h2{font-size:18px;font-weight:600;color:var(--t-high);text-align:center}
.modal p.lead{margin:0;font-size:13px;color:var(--t-muted);text-align:center}
.modal .actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}
/* окно покупки аккаунта Telegram без почты (C.tgBuy): "Добавить почту и оплатить сейчас" - мелкая ссылка под кнопками,
   не вторая кнопка */
.tg-mail{text-align:center}
/* сумма к оплате - главное число окна */
.modal .total{font-size:15px;font-weight:600;color:var(--t-high);margin:0}
.modal .total:empty{display:none}
.qr{align-self:center;background:#FFFFFF;border-radius:6px;line-height:0}
.qr svg{display:block}
.codes{background:var(--well);border:1px solid var(--border);border-radius:6px;padding:12px 15px;display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;font-family:var(--ui);font-variant-numeric:tabular-nums;letter-spacing:.5px;font-size:13px;color:var(--t-body);margin:0;list-style:none}

/* окно с шапкой: заголовок слева, значок "Закрыть" справа */
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.modal-head h2{text-align:left}
/* крестик окна - как крестик подокон программы (брендбук, приём 04; CLOSE_BUTTON_QSS в window_tokens.py): прямые углы,
   наведение - красная заливка rgb(255, 14, 14) с белым крестиком, нажатие #343437, фокус с клавиатуры - рамка 1px #4B91F7
   внутри кнопки. Окно, открытое касанием или мышью, фокус на крестик не ставит (C.modal, cabinet.js) */
.xclose{flex:none;width:36px;height:36px;padding:0;border:0;border-radius:0;cursor:pointer;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0A0A5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/18px 18px no-repeat}
.xclose:hover{background-color:rgb(255,14,14);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")}
.xclose:active{background-color:var(--pressed)}
.xclose:focus-visible{outline:1px solid var(--accent-line);outline-offset:-1px}

/* ---------- окно "Соберите свой тариф" (license.js, openBuy) ----------
   Фраза со словами-выборами: над словом открывается окошко выбора, на телефоне - шторка снизу во всю ширину.
   Выбранное - нейтральная заливка #2E2E30 и белый полужирный текст. Окошко стоит position:fixed (место считает
   license.js), поэтому прокрутка окна его не обрезает. Суммы - не крупными цифрами, цифры равной ширины. */
dialog.modal.tb{max-width:600px;padding:0;gap:0}
.tb .modal-form{gap:0;padding-bottom:24px}
.tb .modal-head{padding:20px 18px 8px 24px}
.tb-phrase{padding:8px 24px 24px;font-size:18px;line-height:40px;color:var(--t-body);overflow-wrap:break-word}
.tb-tok{display:inline-block;max-width:100%;margin:0;padding:0 6px;border:0;border-bottom:1px solid var(--t-muted);border-radius:6px 6px 0 0;background:transparent;color:var(--t-high);font-family:var(--ui);font-size:18px;line-height:32px;font-weight:600;text-align:left;cursor:pointer;font-variant-numeric:tabular-nums}
.tb-tok:hover{background:var(--nav-hover)}
.tb-tok.on{background:var(--selected);border-bottom-color:var(--t-high)}
.tb-word{color:var(--t-high);font-weight:600;font-variant-numeric:tabular-nums}
/* строка доплаты поверх тарифа с лимитом (license.js, paintUpgrade): под фразой, сумма зачёта - с подсказкой */
.tb-up{position:relative;margin:-8px 24px 20px;font-size:14px;line-height:20px;color:var(--t-body);font-variant-numeric:tabular-nums}
/* подсказка расчёта встаёт под строкой от её левого края и не шире её: у суммы в конце строки она не уходит за край окна */
.tb-up [data-tip]{position:static}
.tb-up [data-tip]:hover::after,.tb-up [data-tip]:focus-visible::after,.tb-up [data-tip].tip-on::after{max-width:min(380px,100%)}
.tb-pop{position:fixed;z-index:30;left:0;top:0;width:360px;max-width:calc(100vw - 16px);padding:14px;background:var(--raised);border:1px solid var(--border);border-radius:10px;box-shadow:0 4px 12px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px;font-size:14px;line-height:20px;font-weight:400;color:var(--t-body);text-align:left}
.tb-pop.wide{width:400px}
.tb-pop-h{font-size:13px;line-height:18px;font-weight:500;color:var(--t-label)}
.tb-arrow{position:absolute;left:28px;width:12px;height:12px;background:var(--raised);border-right:1px solid var(--border);border-bottom:1px solid var(--border)}
.tb-pop.up .tb-arrow{bottom:-7px;transform:rotate(45deg)}
.tb-pop.down .tb-arrow{top:-7px;transform:rotate(225deg)}
.tb-pop.sheet{left:0;right:0;top:auto;bottom:0;width:auto;max-width:none;max-height:75vh;overflow:auto;border-width:1px 0 0;border-radius:12px 12px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom))}
.tb-pop.sheet .tb-arrow{display:none}
.tb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.tb-it,.tb-chip{border:1px solid var(--border-strong);border-radius:6px;background:var(--well);color:var(--t-soft);font-family:var(--ui);font-size:14px;cursor:pointer}
.tb-it{height:52px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:0 12px;line-height:18px;text-align:left}
.tb-it .pr{font-size:13px;line-height:16px;color:var(--t-label);font-variant-numeric:tabular-nums}
.tb-chip{height:36px;padding:0 12px;font-variant-numeric:tabular-nums}
.tb-it:hover,.tb-chip:hover{background:var(--well-hover);color:var(--t-high)}
.tb-it[aria-pressed="true"],.tb-chip[aria-pressed="true"]{background:var(--selected);color:var(--t-high);font-weight:600}
.tb-it[aria-pressed="true"] .pr{color:var(--t-high);font-weight:400}
.tb-chips{display:flex;flex-wrap:wrap;gap:6px}
.tb-limit{display:flex;flex-direction:column;gap:10px}
.tb-own{display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-size:13px;color:var(--t-label)}
.tb-in{width:120px;height:36px;margin:0;padding:0 10px;background:var(--tile);border:1px solid var(--border);border-radius:6px;color:var(--t-high);font-family:var(--ui);font-size:14px;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
.tb-in::-webkit-inner-spin-button,.tb-in::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.tb-in:hover{border-color:var(--border-strong)}
.tb-in:focus{outline:0;border-color:var(--accent-line)}
.tb-in[aria-invalid="true"]{border-color:var(--error)}
.tb-note{margin:0;font-size:13px;line-height:18px;color:var(--t-label);font-variant-numeric:tabular-nums}
.tb-note.bad{color:var(--error-text)}
.tb-get{border-top:1px solid var(--hairline);padding:18px 24px 0;display:flex;flex-direction:column;gap:10px;font-size:14px;line-height:20px;font-variant-numeric:tabular-nums}
.tb-get-h{font-size:13px;line-height:18px;font-weight:500;color:var(--t-label)}
.tb-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.tb-list li{position:relative;padding-left:16px}
.tb-list li::before{content:"";position:absolute;left:2px;top:8px;width:5px;height:5px;border-radius:50%;background:var(--t-label)}
.tb-list .hi{color:var(--t-high)}
.tb-list .lo{font-size:13px;line-height:18px;color:var(--t-label)}
.tb .modal-form>.msg{margin:18px 24px 0}
.tb .actions{display:block;margin:18px 24px 0}
.tb .actions .btn{width:100%;height:48px;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.tb-foot{margin:10px 24px 0;display:flex;flex-direction:column;align-items:center;gap:10px}
.tb-pm{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 8px;font-size:13px;line-height:18px;color:var(--t-label)}
.pm{display:inline-flex;align-items:center;gap:6px;padding:4px 8px 4px 4px;border-radius:6px;position:relative}
label.pm{cursor:pointer}
.pm input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
label.pm:hover{background:var(--nav-hover);color:var(--t-high)}
.pm:has(input:focus-visible){outline:1px solid var(--accent-line)}
.pm.on{background:var(--selected);color:var(--t-white);font-weight:600}
.pm.off,label.pm.off:hover{background:transparent;color:var(--t-off);cursor:default}
.pm.off .pm-logo{opacity:.35}
.pm-logo{flex:none;display:inline-flex;align-items:center;justify-content:center;width:52px;height:22px;padding:3px 6px;border-radius:5px;background:#FFFFFF;overflow:hidden}
.pm-logo img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.tb-promo{display:flex;justify-content:center;width:100%;font-size:13px}
.tb-promo .field{width:100%;max-width:320px}
.tb-promo .input{font-size:13px;padding:9px 12px}
@media (max-width:480px){
  .tb .modal-head{padding:14px 10px 4px 16px}
  .tb-phrase{padding:6px 16px 18px}
  .tb-up{margin:-6px 16px 16px}
  .tb-get{padding:16px 16px 0}
  .tb .modal-form{padding-bottom:18px}
  .tb .modal-form>.msg,.tb .actions,.tb-foot{margin-left:16px;margin-right:16px}
}

/* ---------- окно "Отключить автопродление?" с тарифом дешевле (license.js, openAutorenewOff) ----------
   Макет D владельца 14.10.2026 (Cancel.dc.html). Выбранная строка - нейтральная заливка #2E2E30, полоса акцента
   слева и белый полужирный текст; остальные строки - без заливки. */
dialog.modal.dg{max-width:520px;padding:0;gap:0}
.dg .modal-form{gap:0;padding-bottom:22px}
.dg .modal-head{padding:22px 18px 6px 24px}
.dg p.lead{padding:0 24px 18px;font-size:14px;line-height:20px;color:var(--t-label);text-align:left;overflow-wrap:break-word}
.dg-offers{padding:0 24px 20px;display:flex;flex-direction:column;gap:10px}
.dg-h{font-size:13px;line-height:18px;font-weight:500;color:var(--t-label)}
.dg-list{display:flex;flex-direction:column;gap:4px;padding:4px;background:var(--well);border:1px solid var(--border);border-radius:10px}
.dg-it{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin:0;padding:6px 14px 6px 12px;border:0;border-left:2px solid transparent;border-radius:6px;background:transparent;color:var(--t-soft);font-family:var(--ui);font-size:14px;line-height:20px;text-align:left;cursor:pointer}
.dg-it .nm{min-width:0;overflow-wrap:break-word}
.dg-it .pr{flex:none;white-space:nowrap;color:var(--t-2);font-variant-numeric:tabular-nums}
.dg-it:hover{background:var(--nav-hover);color:var(--t-high)}
.dg-it[aria-checked="true"]{background:var(--selected);border-left-color:var(--accent);color:var(--t-high);font-weight:600}
.dg-it[aria-checked="true"] .pr{color:var(--t-high);font-weight:400}
.dg-note,.dg-why{margin:0;font-size:13px;line-height:18px;color:var(--t-label);font-variant-numeric:tabular-nums}
.dg-sum{border-top:1px solid var(--hairline);padding:18px 24px 0;display:flex;flex-direction:column;gap:10px}
.dg-now{margin:0;font-size:14px;line-height:20px;color:var(--t-body);font-variant-numeric:tabular-nums}
.dg-base{margin:0;padding:0 24px;font-size:14px;line-height:20px;color:var(--t-body)}
.dg .modal-form>.msg{margin:14px 24px 0}
.dg .actions{display:block;margin:14px 24px 0}
.dg .actions .btn,.dg-foot .btn{width:100%;height:auto;min-height:44px;padding:11px 15px;line-height:20px;white-space:normal;text-align:center}
.dg .actions .btn{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.dg-foot{margin:10px 24px 0}
.dg-foot .btn{font-size:14px;font-weight:400}
@media (max-width:480px){
  .dg .modal-head{padding:14px 10px 4px 16px}
  .dg p.lead{padding:0 16px 16px}
  .dg-offers{padding:0 16px 18px}
  .dg-sum{padding:16px 16px 0}
  .dg-base{padding:0 16px}
  .dg .modal-form{padding-bottom:18px}
  .dg .modal-form>.msg,.dg .actions,.dg-foot{margin-left:16px;margin-right:16px}
  .dg-it{padding:6px 10px}
}
/* закреплённый низ окна (license.js, pinFoot; закрепление - общие правила dialog.modal.pin и .pin-foot): у этого окна
   нет внутренних полей, отступы задают сами строки, поэтому у .pin-foot нет выноса за поля и своего промежутка */
dialog.modal.dg.pin .modal-form{padding-bottom:0}
dialog.modal.dg.pin .pin-foot{margin:0;padding:0 0 22px;gap:0}
.dg .pin-foot .dg-sum{border-top:0}
.dg .pin-foot>.msg{margin:14px 24px 0}
@media (max-width:480px){
  dialog.modal.dg.pin .pin-foot{padding-bottom:18px}
  .dg .pin-foot>.msg{margin-left:16px;margin-right:16px}
}

/* ---------- раздел "Тариф" (license.js): подтверждение отвязки устройств и кнопки плиток ----------
   Отвязка всех устройств - деструктивное действие: кнопка подтверждения цветом error брендбука (#E5484D).
   На телефоне главная кнопка плитки ("Продлить тариф", "Купить лицензионный ключ") - во всю ширину, а кнопка в
   строке ("Отключить автопродление") - по ширине подписи: второстепенное не крупнее главного. */
dialog.modal.dv-reset .actions .btn.danger{background:var(--error);border-color:var(--error);color:var(--t-white)}
dialog.modal.dv-reset .actions .btn.danger:hover{filter:brightness(.9)}
dialog.modal.dv-reset .actions .btn.danger:disabled{filter:none;background:var(--btn-off);border-color:var(--btn-off);color:var(--btn-off-text)}
/* Safari и iOS до 16.0 не знают @container (кабинет открыт с Safari и iOS 15.4, решение 11-спорное 12.11.2026):
   после каждого правила @container tile стоит его повтор @supports not (container-type:inline-size) по ширине окна
   и месту плитки в сетке раздела. Ширина содержимого плитки (без полей), окно W:
     - телефон (до 640): плитка с полями - W-66 до 480 и W-70 выше (поля .main 16, .tile 16 или 18, рамка 1),
       плитка .flush - W-34;
     - 641-860 (меню значками, одна колонка): W-138 и W-102;
     - шире 860: боковая колонка .col.aside - 282 и 318; основная колонка .col - min(W-642, 818) и min(W-606, 854);
       плитка вне .cols - min(W-298, 1162) и min(W-262, 1198).
   Отсюда диапазоны окна (плитка с полями / .flush): до 479 - окно до 549 / до 513, в основной колонке 861-1121 /
   861-1085, в боковой - всегда; до 559 - до 629 и 641-697 / до 593 и 641-661, в основной колонке 861-1201 / 861-1165;
   до 819 - до 1117 / до 1081, в основной колонке всегда / до 1425. Правила min-width - те же диапазоны наоборот.
   Каждое правило повторено для обоих видов плитки: вид и место задаёт приписка :where(...) к селектору (.tile:not(.flush)
   или .tile.flush). Вес селектора не меняется, правило действует только внутри плитки, как @container. Правка правила
   @container - правка и его повтора (те же диапазоны и места); каркас (меню 212, поля .main, колонка 320) сверяет с
   повторами тест tests/e2e/container-fallback.spec.js. Полоса прокрутки окна (Mac с постоянными полосами, Chrome до
   105 и Firefox до 110 на Windows) сдвигает границы на её ширину. */
@container tile (max-width:479px){
  .r.act .btn[data-k="ar"],.r.act .btn[data-k="extra-ar"]{align-self:flex-start}
  .tile>.btn.lc-main{align-self:stretch}
}
@supports not (container-type:inline-size){
@media (max-width:549px){
  .r.act .btn[data-k="ar"]:where(.tile:not(.flush) *),.r.act .btn[data-k="extra-ar"]:where(.tile:not(.flush) *){align-self:flex-start}
  .tile>.btn.lc-main:where(.tile:not(.flush) *){align-self:stretch}
}
@media (min-width:861px) and (max-width:1121px){
  .r.act .btn[data-k="ar"]:where(.col .tile:not(.flush) *),.r.act .btn[data-k="extra-ar"]:where(.col .tile:not(.flush) *){align-self:flex-start}
  .tile>.btn.lc-main:where(.col .tile:not(.flush) *){align-self:stretch}
}
@media (min-width:1122px){
  .r.act .btn[data-k="ar"]:where(.col.aside .tile:not(.flush) *),.r.act .btn[data-k="extra-ar"]:where(.col.aside .tile:not(.flush) *){align-self:flex-start}
  .tile>.btn.lc-main:where(.col.aside .tile:not(.flush) *){align-self:stretch}
}
@media (max-width:513px){
  .r.act .btn[data-k="ar"]:where(.tile.flush *),.r.act .btn[data-k="extra-ar"]:where(.tile.flush *){align-self:flex-start}
  .tile>.btn.lc-main:where(.tile.flush *){align-self:stretch}
}
@media (min-width:861px) and (max-width:1085px){
  .r.act .btn[data-k="ar"]:where(.col .tile.flush *),.r.act .btn[data-k="extra-ar"]:where(.col .tile.flush *){align-self:flex-start}
  .tile>.btn.lc-main:where(.col .tile.flush *){align-self:stretch}
}
@media (min-width:1086px){
  .r.act .btn[data-k="ar"]:where(.col.aside .tile.flush *),.r.act .btn[data-k="extra-ar"]:where(.col.aside .tile.flush *){align-self:flex-start}
  .tile>.btn.lc-main:where(.col.aside .tile.flush *){align-self:stretch}
}
}

/* ---------- кабинет: каркас ----------
   Меню 212 px, содержимое до 1200 px по центру. Шкала отступов 6/12/18/24/36. Кегли страниц разделов:
   23 (главное число), 19 (заголовок страницы), 15 (заголовок плитки), 13 (текст), 11 (подписи). */
.app{display:grid;grid-template-columns:212px minmax(0,1fr);min-height:100vh;background:var(--page);font-size:13px}
.side{background:var(--tile);border-right:1px solid var(--hairline);padding:12px 6px;display:flex;flex-direction:column;gap:2px;position:sticky;top:0;height:100vh;align-self:start;z-index:5}
.brand{display:flex;padding:6px 11px 12px}
.brand img{display:block;width:28px;height:28px}
.nav{display:flex;align-items:center;gap:9px;padding:6px 9px 6px 11px;min-height:32px;border-radius:6px;color:var(--t-soft);font-size:13px;position:relative;text-decoration:none}
button.nav{width:100%;background:transparent;border:0;cursor:pointer;font-family:var(--ui);text-align:left}
.nav svg{flex:none;width:16px;height:16px;stroke:var(--t-soft);fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.nav:hover{background:var(--nav-hover)}
/* активный пункт: нейтральная заливка, полоса акцента, белый текст и белый значок; вес не меняется */
.nav[aria-current="page"]{background:var(--nav-current);color:var(--t-white)}
.nav[aria-current="page"] svg{stroke:var(--t-high)}
.nav[aria-current="page"]::before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:3px;background:var(--accent-line);border-radius:0 2px 2px 0}
.nav-label{min-width:0}
/* число открытых заявок у пункта "Пульт": белое число справа, без цветной подложки */
.nav-n{margin-left:auto;padding-left:6px;font-size:12px;font-weight:600;color:var(--t-white);font-variant-numeric:tabular-nums}
/* низ меню: почта аккаунта и выход */
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:2px;padding-top:12px;border-top:1px solid var(--hairline)}
.side-who{margin-top:6px;font-size:11px;font-weight:500;color:var(--t-label);padding:0 11px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.main{padding:18px 24px 36px;display:flex;flex-direction:column;gap:18px;min-width:0;width:100%;max-width:1248px;justify-self:center}
.topline{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-height:30px}
.h-page{font-size:19px;font-weight:700;color:var(--t-high)}
.main>.msg{width:100%}
.content{display:flex;flex-direction:column;gap:24px;min-width:0}
/* строка "Данные на <время>" с кнопкой "Обновить данные": тихая, сразу под заголовком раздела */
.snap{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 12px;font-size:12px;color:var(--t-label);margin-top:-12px}

/* сетка раздела: основная колонка тянется, боковая 320 px, промежуток 24; колонки выровнены по верху */
.cols{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.col{display:flex;flex-direction:column;gap:24px;min-width:0}

/* ---------- плитка ---------- */
.tile{background:var(--tile);border:1px solid var(--tile-border);border-radius:10px;padding:18px;display:flex;flex-direction:column;gap:12px;min-width:0;container:tile/inline-size;scroll-margin-top:18px}
.tile.flush{padding:0;gap:0}
.tile-h{font-size:15px;font-weight:600;color:var(--t-high);overflow-wrap:anywhere}
.tile-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 18px;min-height:54px}
.tile-head .push{margin-left:auto}
.tile-note{padding:0 18px 12px;font-size:13px;color:var(--t-body);font-variant-numeric:tabular-nums}
.tile-foot{display:flex;justify-content:center;padding:9px 18px;border-top:1px solid var(--hairline)}
.sep{height:1px;background:var(--hairline);flex:none}
.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.between{justify-content:space-between}
.lbl{font-size:11px;font-weight:500;text-transform:uppercase;color:var(--t-label)}
.num{font-size:23px;font-weight:700;color:var(--t-high);font-variant-numeric:tabular-nums;line-height:1.2}
.sub{font-size:11px;font-weight:500;color:var(--t-label);overflow-wrap:anywhere}
.line{font-size:13px;color:var(--t-body);margin:0;overflow-wrap:anywhere}
.line.quiet,.auth .line{color:var(--t-label)}
.auth .line,.auth-foot{text-align:center}
.auth-foot{font-size:13px;color:var(--t-label);margin:6px 0 0}
.line b{color:var(--t-high);font-weight:600}
.grp{display:flex;flex-direction:column;gap:3px;min-width:0}
.start{align-self:flex-start}
.center{justify-content:center}
.stack{display:flex;flex-direction:column;gap:12px}

/* строка "подпись - значение": высота 36. В плитке шире 480 px подпись занимает колонку 200 px,
   значение и кнопка стоят сразу за ней; в узкой плитке подпись слева, значение справа. */
.rows{display:flex;flex-direction:column}
.r{display:flex;align-items:center;justify-content:space-between;gap:6px 12px;min-height:36px;padding:5px 0;border-bottom:1px solid var(--hairline);font-size:13px;flex-wrap:wrap}
.r:last-child{border-bottom:0}
.val{color:var(--t-body);font-variant-numeric:tabular-nums}
.r>.k{color:var(--t-label)}
.r .row{justify-content:flex-end;margin-left:auto}
.r .val{color:var(--t-body);font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
.r .val.quiet{color:var(--t-label)}
.r .val.strong{color:var(--t-high);font-weight:600}
@container tile (min-width:480px){
  .r{justify-content:flex-start;flex-wrap:nowrap}
  .r>.k{flex:0 0 200px}
  .r .row{justify-content:flex-start;margin-left:0}
  .r .val{text-align:left}
}
@supports not (container-type:inline-size){
@media (min-width:550px) and (max-width:860px){
  .r:where(.tile:not(.flush) *){justify-content:flex-start;flex-wrap:nowrap}
  .r>.k:where(.tile:not(.flush) *){flex:0 0 200px}
  .r .row:where(.tile:not(.flush) *){justify-content:flex-start;margin-left:0}
  .r .val:where(.tile:not(.flush) *){text-align:left}
}
@media (min-width:861px) and (max-width:1121px){
  .r:where(.tile:not(.flush):not(.col *) *){justify-content:flex-start;flex-wrap:nowrap}
  .r>.k:where(.tile:not(.flush):not(.col *) *){flex:0 0 200px}
  .r .row:where(.tile:not(.flush):not(.col *) *){justify-content:flex-start;margin-left:0}
  .r .val:where(.tile:not(.flush):not(.col *) *){text-align:left}
}
@media (min-width:1122px){
  .r:where(.tile:not(.flush):not(.col.aside *) *){justify-content:flex-start;flex-wrap:nowrap}
  .r>.k:where(.tile:not(.flush):not(.col.aside *) *){flex:0 0 200px}
  .r .row:where(.tile:not(.flush):not(.col.aside *) *){justify-content:flex-start;margin-left:0}
  .r .val:where(.tile:not(.flush):not(.col.aside *) *){text-align:left}
}
@media (min-width:514px) and (max-width:860px){
  .r:where(.tile.flush *){justify-content:flex-start;flex-wrap:nowrap}
  .r>.k:where(.tile.flush *){flex:0 0 200px}
  .r .row:where(.tile.flush *){justify-content:flex-start;margin-left:0}
  .r .val:where(.tile.flush *){text-align:left}
}
@media (min-width:861px) and (max-width:1085px){
  .r:where(.tile.flush:not(.col *) *){justify-content:flex-start;flex-wrap:nowrap}
  .r>.k:where(.tile.flush:not(.col *) *){flex:0 0 200px}
  .r .row:where(.tile.flush:not(.col *) *){justify-content:flex-start;margin-left:0}
  .r .val:where(.tile.flush:not(.col *) *){text-align:left}
}
@media (min-width:1086px){
  .r:where(.tile.flush:not(.col.aside *) *){justify-content:flex-start;flex-wrap:nowrap}
  .r>.k:where(.tile.flush:not(.col.aside *) *){flex:0 0 200px}
  .r .row:where(.tile.flush:not(.col.aside *) *){justify-content:flex-start;margin-left:0}
  .r .val:where(.tile.flush:not(.col.aside *) *){text-align:left}
}
}
@container tile (min-width:480px){
  .grp>.keybox{max-width:420px}
}
@supports not (container-type:inline-size){
@media (min-width:550px) and (max-width:860px){
  .grp>.keybox:where(.tile:not(.flush) *){max-width:420px}
}
@media (min-width:861px) and (max-width:1121px){
  .grp>.keybox:where(.tile:not(.flush):not(.col *) *){max-width:420px}
}
@media (min-width:1122px){
  .grp>.keybox:where(.tile:not(.flush):not(.col.aside *) *){max-width:420px}
}
@media (min-width:514px) and (max-width:860px){
  .grp>.keybox:where(.tile.flush *){max-width:420px}
}
@media (min-width:861px) and (max-width:1085px){
  .grp>.keybox:where(.tile.flush:not(.col *) *){max-width:420px}
}
@media (min-width:1086px){
  .grp>.keybox:where(.tile.flush:not(.col.aside *) *){max-width:420px}
}
}
/* строка с кнопкой в узкой плитке: подпись, под ней значение, кнопка во всю ширину */
@container tile (max-width:479px){
  .r.act{flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:6px;padding:9px 0}
  .r.act .row{flex-direction:column;align-items:stretch;margin-left:0;gap:9px}
  .r.act .val{text-align:left}
}
@supports not (container-type:inline-size){
@media (max-width:549px){
  .r.act:where(.tile:not(.flush) *){flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:6px;padding:9px 0}
  .r.act .row:where(.tile:not(.flush) *){flex-direction:column;align-items:stretch;margin-left:0;gap:9px}
  .r.act .val:where(.tile:not(.flush) *){text-align:left}
}
@media (min-width:861px) and (max-width:1121px){
  .r.act:where(.col .tile:not(.flush) *){flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:6px;padding:9px 0}
  .r.act .row:where(.col .tile:not(.flush) *){flex-direction:column;align-items:stretch;margin-left:0;gap:9px}
  .r.act .val:where(.col .tile:not(.flush) *){text-align:left}
}
@media (min-width:1122px){
  .r.act:where(.col.aside .tile:not(.flush) *){flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:6px;padding:9px 0}
  .r.act .row:where(.col.aside .tile:not(.flush) *){flex-direction:column;align-items:stretch;margin-left:0;gap:9px}
  .r.act .val:where(.col.aside .tile:not(.flush) *){text-align:left}
}
@media (max-width:513px){
  .r.act:where(.tile.flush *){flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:6px;padding:9px 0}
  .r.act .row:where(.tile.flush *){flex-direction:column;align-items:stretch;margin-left:0;gap:9px}
  .r.act .val:where(.tile.flush *){text-align:left}
}
@media (min-width:861px) and (max-width:1085px){
  .r.act:where(.col .tile.flush *){flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:6px;padding:9px 0}
  .r.act .row:where(.col .tile.flush *){flex-direction:column;align-items:stretch;margin-left:0;gap:9px}
  .r.act .val:where(.col .tile.flush *){text-align:left}
}
@media (min-width:1086px){
  .r.act:where(.col.aside .tile.flush *){flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:6px;padding:9px 0}
  .r.act .row:where(.col.aside .tile.flush *){flex-direction:column;align-items:stretch;margin-left:0;gap:9px}
  .r.act .val:where(.col.aside .tile.flush *){text-align:left}
}
}

/* подсказка: объяснение живёт в подсказке самой функции (брендбук, приём 01) */
[data-tip]{position:relative}
[data-tip]:hover::after,[data-tip]:focus-visible::after,[data-tip].tip-on::after{content:attr(data-tip);position:absolute;z-index:15;left:0;top:calc(100% + 6px);width:max-content;max-width:240px;white-space:normal;font-size:13px;font-weight:400;line-height:1.4;text-transform:none;text-align:left;color:var(--t-high);background:var(--raised);border:1px solid var(--border);border-radius:6px;padding:6px 9px;pointer-events:none}
[data-tip].tip-r:hover::after,[data-tip].tip-r:focus-visible::after{left:auto;right:0}
/* подсказка над словом (внизу окна под словом ей не хватает места) и по центру слова; .tip-on - открыта нажатием */
[data-tip].tip-up:hover::after,[data-tip].tip-up:focus-visible::after,[data-tip].tip-up.tip-on::after{top:auto;bottom:calc(100% + 6px)}
[data-tip].tip-c:hover::after,[data-tip].tip-c:focus-visible::after,[data-tip].tip-c.tip-on::after{left:50%;transform:translateX(-50%)}
span[data-tip]{text-decoration:underline dotted var(--t-muted);text-underline-offset:3px;cursor:help}
.side .nav[data-tip]::after{content:none}

/* ---------- тумблер: индикатор брендбука, как тумблер окна программы (38x20) ----------
   Жёлоб surface-2 с рамкой border-strong, ручка #BDBDC0; включён - брендовый градиент (единственное место
   градиента - индикаторы) и белая ручка. Кнопка выше жёлоба: на телефоне цель нажатия 44 px. */
.switch{position:relative;flex:none;width:42px;height:32px;padding:0;margin:0;border:0;background:transparent;cursor:pointer;font:inherit}
.switch::before{content:"";position:absolute;left:0;top:6px;width:38px;height:20px;border-radius:10px;background:var(--raised);box-shadow:inset 0 0 0 1px var(--border-strong);transition:background .15s,box-shadow .15s}
.switch::after{content:"";position:absolute;left:3px;top:9px;width:14px;height:14px;border-radius:50%;background:#BDBDC0;transition:transform .15s,background .15s}
.switch:hover::after{background:#D6D6D9}
.switch[aria-checked="true"]::before{background:linear-gradient(180deg,#4B91F7 0%,#367AF6 100%);box-shadow:none}
.switch[aria-checked="true"]::after{transform:translateX(18px);background:var(--t-white)}
.switch[aria-busy="true"]{cursor:progress}
.switch:focus-visible{outline:0}
.switch:focus-visible::before{outline:1px solid var(--accent-line);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.switch::before,.switch::after{transition:none}}

/* ---------- плитка "Уведомления" в "Профиле": события строками, каналы колонками ----------
   Колонки каналов стоят сразу за подписью: колонка подписи 200 px и промежуток 12, как у строк "подпись -
   значение", поэтому тумблеры стоят на одной линии со значениями плитки "Вход в аккаунт". Последняя колонка
   тянется до края плитки, и линии строк идут во всю ширину. Под колонкой - адрес канала. В узкой плитке
   подпись тянется, колонки по 72 px. */
.nt-grid{display:grid;align-items:center;font-size:13px}
.nt-grid.nt-c2{grid-template-columns:minmax(0,1fr) 72px 60px}
.nt-grid.nt-c1{grid-template-columns:minmax(0,1fr) 60px}
@container tile (min-width:480px){
  .nt-grid.nt-c2{grid-template-columns:212px 200px minmax(0,1fr)}
  .nt-grid.nt-c1{grid-template-columns:212px minmax(0,1fr)}
}
@supports not (container-type:inline-size){
@media (min-width:550px) and (max-width:860px){
  .nt-grid.nt-c2:where(.tile:not(.flush) *){grid-template-columns:212px 200px minmax(0,1fr)}
  .nt-grid.nt-c1:where(.tile:not(.flush) *){grid-template-columns:212px minmax(0,1fr)}
}
@media (min-width:861px) and (max-width:1121px){
  .nt-grid.nt-c2:where(.tile:not(.flush):not(.col *) *){grid-template-columns:212px 200px minmax(0,1fr)}
  .nt-grid.nt-c1:where(.tile:not(.flush):not(.col *) *){grid-template-columns:212px minmax(0,1fr)}
}
@media (min-width:1122px){
  .nt-grid.nt-c2:where(.tile:not(.flush):not(.col.aside *) *){grid-template-columns:212px 200px minmax(0,1fr)}
  .nt-grid.nt-c1:where(.tile:not(.flush):not(.col.aside *) *){grid-template-columns:212px minmax(0,1fr)}
}
@media (min-width:514px) and (max-width:860px){
  .nt-grid.nt-c2:where(.tile.flush *){grid-template-columns:212px 200px minmax(0,1fr)}
  .nt-grid.nt-c1:where(.tile.flush *){grid-template-columns:212px minmax(0,1fr)}
}
@media (min-width:861px) and (max-width:1085px){
  .nt-grid.nt-c2:where(.tile.flush:not(.col *) *){grid-template-columns:212px 200px minmax(0,1fr)}
  .nt-grid.nt-c1:where(.tile.flush:not(.col *) *){grid-template-columns:212px minmax(0,1fr)}
}
@media (min-width:1086px){
  .nt-grid.nt-c2:where(.tile.flush:not(.col.aside *) *){grid-template-columns:212px 200px minmax(0,1fr)}
  .nt-grid.nt-c1:where(.tile.flush:not(.col.aside *) *){grid-template-columns:212px minmax(0,1fr)}
}
}
.nt-grid>span{min-width:0;padding-right:12px}
.nt-ch{font-size:11px;font-weight:600;text-transform:uppercase;color:var(--t-label);padding-bottom:3px}
.nt-k,.nt-v{display:flex;align-items:center;min-height:36px;border-bottom:1px solid var(--hairline)}
.nt-k.nt-foot{min-height:0;border-bottom:0}
.nt-lbl{color:var(--t-body);overflow-wrap:anywhere;padding:5px 0}
.nt-to{font-size:11px;font-weight:500;color:var(--t-label);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:6px}
.rows.nt-addr{display:none}
@container tile (max-width:479px){
  .nt-grid>.nt-foot{display:none}
  .rows.nt-addr{display:flex}
}
@supports not (container-type:inline-size){
@media (max-width:549px){
  .nt-grid>.nt-foot:where(.tile:not(.flush) *){display:none}
  .rows.nt-addr:where(.tile:not(.flush) *){display:flex}
}
@media (min-width:861px) and (max-width:1121px){
  .nt-grid>.nt-foot:where(.col .tile:not(.flush) *){display:none}
  .rows.nt-addr:where(.col .tile:not(.flush) *){display:flex}
}
@media (min-width:1122px){
  .nt-grid>.nt-foot:where(.col.aside .tile:not(.flush) *){display:none}
  .rows.nt-addr:where(.col.aside .tile:not(.flush) *){display:flex}
}
@media (max-width:513px){
  .nt-grid>.nt-foot:where(.tile.flush *){display:none}
  .rows.nt-addr:where(.tile.flush *){display:flex}
}
@media (min-width:861px) and (max-width:1085px){
  .nt-grid>.nt-foot:where(.col .tile.flush *){display:none}
  .rows.nt-addr:where(.col .tile.flush *){display:flex}
}
@media (min-width:1086px){
  .nt-grid>.nt-foot:where(.col.aside .tile.flush *){display:none}
  .rows.nt-addr:where(.col.aside .tile.flush *){display:flex}
}
}

/* ---------- таблицы: шапка 11 px прописными, строка 36 ---------- */
table{width:100%;border-collapse:collapse}
th{text-align:left;font-size:11px;font-weight:600;text-transform:uppercase;color:var(--t-label);background:var(--raised);padding:0 18px;height:30px;border-top:1px solid var(--hairline);border-bottom:1px solid var(--hairline);white-space:nowrap}
td{padding:5px 18px;font-size:13px;line-height:1.4;color:var(--t-high);border-bottom:1px solid var(--hairline);font-variant-numeric:tabular-nums;height:36px}
tr:last-child td{border-bottom:0}
td.n,th.n{text-align:right}
td.n{white-space:nowrap}
td.quiet{color:var(--t-label)}
td.zero{color:var(--t-2)}
td.plus{color:var(--success)}
td.off{color:var(--t-2)}
td.off .amt{text-decoration:line-through}
td.wrap{overflow-wrap:anywhere}
td.nw,span.nw{white-space:nowrap}
/* короткое название в ячейке с переносом: "Кредиты, 500" не рвётся посередине */
.keep{white-space:nowrap}
.tw{overflow-x:auto}
/* день - строка-разделитель списка */
tr.day td{height:30px;padding-top:9px;padding-bottom:3px;font-size:11px;font-weight:600;color:var(--t-label);border-bottom:0;vertical-align:bottom}
/* пустой список: шапка на месте, одна строка на месте первой строки таблицы */
tr.none td{height:auto;padding-top:12px;padding-bottom:12px;color:var(--t-body);white-space:normal}
tr.none .row{margin-top:9px}
.m-sub{display:none}
.op{display:flex;align-items:baseline;min-width:0}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:9px;flex:none}
.d-cloud{background:var(--accent-line)}
.d-device{background:var(--device)}
.d-plus{background:var(--success)}
/* узкая плитка (телефон и основная колонка окна 1024): запись списка в две строки, шапки нет */
@container tile (max-width:559px){
  table.rt,table.rt tbody{display:block}
  table.rt thead{display:none}
  table.rt tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt tr:last-child{border-bottom:0}
  table.rt td{display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt td.c-hide{display:none}
  table.rt td.c-amt{text-align:right}
  table.rt .m-sub{display:block}
  table.rt tr.day{display:block;padding:12px 18px 3px;border-bottom:0}
  table.rt tr.none{display:block;padding:12px 18px}
  .tile-head{padding-bottom:9px}
}
@supports not (container-type:inline-size){
@media (max-width:629px){
  table.rt:where(.tile:not(.flush) *),table.rt tbody:where(.tile:not(.flush) *){display:block}
  table.rt thead:where(.tile:not(.flush) *){display:none}
  table.rt tr:where(.tile:not(.flush) *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt tr:last-child:where(.tile:not(.flush) *){border-bottom:0}
  table.rt td:where(.tile:not(.flush) *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt td.c-hide:where(.tile:not(.flush) *){display:none}
  table.rt td.c-amt:where(.tile:not(.flush) *){text-align:right}
  table.rt .m-sub:where(.tile:not(.flush) *){display:block}
  table.rt tr.day:where(.tile:not(.flush) *){display:block;padding:12px 18px 3px;border-bottom:0}
  table.rt tr.none:where(.tile:not(.flush) *){display:block;padding:12px 18px}
  .tile-head:where(.tile:not(.flush) *){padding-bottom:9px}
}
@media (min-width:641px) and (max-width:697px){
  table.rt:where(.tile:not(.flush) *),table.rt tbody:where(.tile:not(.flush) *){display:block}
  table.rt thead:where(.tile:not(.flush) *){display:none}
  table.rt tr:where(.tile:not(.flush) *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt tr:last-child:where(.tile:not(.flush) *){border-bottom:0}
  table.rt td:where(.tile:not(.flush) *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt td.c-hide:where(.tile:not(.flush) *){display:none}
  table.rt td.c-amt:where(.tile:not(.flush) *){text-align:right}
  table.rt .m-sub:where(.tile:not(.flush) *){display:block}
  table.rt tr.day:where(.tile:not(.flush) *){display:block;padding:12px 18px 3px;border-bottom:0}
  table.rt tr.none:where(.tile:not(.flush) *){display:block;padding:12px 18px}
  .tile-head:where(.tile:not(.flush) *){padding-bottom:9px}
}
@media (min-width:861px) and (max-width:1201px){
  table.rt:where(.col .tile:not(.flush) *),table.rt tbody:where(.col .tile:not(.flush) *){display:block}
  table.rt thead:where(.col .tile:not(.flush) *){display:none}
  table.rt tr:where(.col .tile:not(.flush) *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt tr:last-child:where(.col .tile:not(.flush) *){border-bottom:0}
  table.rt td:where(.col .tile:not(.flush) *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt td.c-hide:where(.col .tile:not(.flush) *){display:none}
  table.rt td.c-amt:where(.col .tile:not(.flush) *){text-align:right}
  table.rt .m-sub:where(.col .tile:not(.flush) *){display:block}
  table.rt tr.day:where(.col .tile:not(.flush) *){display:block;padding:12px 18px 3px;border-bottom:0}
  table.rt tr.none:where(.col .tile:not(.flush) *){display:block;padding:12px 18px}
  .tile-head:where(.col .tile:not(.flush) *){padding-bottom:9px}
}
@media (min-width:1202px){
  table.rt:where(.col.aside .tile:not(.flush) *),table.rt tbody:where(.col.aside .tile:not(.flush) *){display:block}
  table.rt thead:where(.col.aside .tile:not(.flush) *){display:none}
  table.rt tr:where(.col.aside .tile:not(.flush) *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt tr:last-child:where(.col.aside .tile:not(.flush) *){border-bottom:0}
  table.rt td:where(.col.aside .tile:not(.flush) *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt td.c-hide:where(.col.aside .tile:not(.flush) *){display:none}
  table.rt td.c-amt:where(.col.aside .tile:not(.flush) *){text-align:right}
  table.rt .m-sub:where(.col.aside .tile:not(.flush) *){display:block}
  table.rt tr.day:where(.col.aside .tile:not(.flush) *){display:block;padding:12px 18px 3px;border-bottom:0}
  table.rt tr.none:where(.col.aside .tile:not(.flush) *){display:block;padding:12px 18px}
  .tile-head:where(.col.aside .tile:not(.flush) *){padding-bottom:9px}
}
@media (max-width:593px){
  table.rt:where(.tile.flush *),table.rt tbody:where(.tile.flush *){display:block}
  table.rt thead:where(.tile.flush *){display:none}
  table.rt tr:where(.tile.flush *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt tr:last-child:where(.tile.flush *){border-bottom:0}
  table.rt td:where(.tile.flush *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt td.c-hide:where(.tile.flush *){display:none}
  table.rt td.c-amt:where(.tile.flush *){text-align:right}
  table.rt .m-sub:where(.tile.flush *){display:block}
  table.rt tr.day:where(.tile.flush *){display:block;padding:12px 18px 3px;border-bottom:0}
  table.rt tr.none:where(.tile.flush *){display:block;padding:12px 18px}
  .tile-head:where(.tile.flush *){padding-bottom:9px}
}
@media (min-width:641px) and (max-width:661px){
  table.rt:where(.tile.flush *),table.rt tbody:where(.tile.flush *){display:block}
  table.rt thead:where(.tile.flush *){display:none}
  table.rt tr:where(.tile.flush *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt tr:last-child:where(.tile.flush *){border-bottom:0}
  table.rt td:where(.tile.flush *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt td.c-hide:where(.tile.flush *){display:none}
  table.rt td.c-amt:where(.tile.flush *){text-align:right}
  table.rt .m-sub:where(.tile.flush *){display:block}
  table.rt tr.day:where(.tile.flush *){display:block;padding:12px 18px 3px;border-bottom:0}
  table.rt tr.none:where(.tile.flush *){display:block;padding:12px 18px}
  .tile-head:where(.tile.flush *){padding-bottom:9px}
}
@media (min-width:861px) and (max-width:1165px){
  table.rt:where(.col .tile.flush *),table.rt tbody:where(.col .tile.flush *){display:block}
  table.rt thead:where(.col .tile.flush *){display:none}
  table.rt tr:where(.col .tile.flush *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt tr:last-child:where(.col .tile.flush *){border-bottom:0}
  table.rt td:where(.col .tile.flush *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt td.c-hide:where(.col .tile.flush *){display:none}
  table.rt td.c-amt:where(.col .tile.flush *){text-align:right}
  table.rt .m-sub:where(.col .tile.flush *){display:block}
  table.rt tr.day:where(.col .tile.flush *){display:block;padding:12px 18px 3px;border-bottom:0}
  table.rt tr.none:where(.col .tile.flush *){display:block;padding:12px 18px}
  .tile-head:where(.col .tile.flush *){padding-bottom:9px}
}
@media (min-width:1166px){
  table.rt:where(.col.aside .tile.flush *),table.rt tbody:where(.col.aside .tile.flush *){display:block}
  table.rt thead:where(.col.aside .tile.flush *){display:none}
  table.rt tr:where(.col.aside .tile.flush *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt tr:last-child:where(.col.aside .tile.flush *){border-bottom:0}
  table.rt td:where(.col.aside .tile.flush *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt td.c-hide:where(.col.aside .tile.flush *){display:none}
  table.rt td.c-amt:where(.col.aside .tile.flush *){text-align:right}
  table.rt .m-sub:where(.col.aside .tile.flush *){display:block}
  table.rt tr.day:where(.col.aside .tile.flush *){display:block;padding:12px 18px 3px;border-bottom:0}
  table.rt tr.none:where(.col.aside .tile.flush *){display:block;padding:12px 18px}
  .tile-head:where(.col.aside .tile.flush *){padding-bottom:9px}
}
}
/* Широкая таблица ("Начисления" реферальной программы: дата, приглашённый, метка, покупка, сумма, награда, состояние).
   Прочие таблицы помещаются в плитку от 560 px, эта - нет: в окне 1440 сумма столбцов (почта и метка по 170 px, поля
   ячеек по 18 px) шире плитки, последний столбец сжимался до 30-40 px, слова рвались посередине ("STATU",
   "Pendi / g unti / Nov 2"), а прокрутка вбок внутри плитки ничем не обозначена (приёмка 24.10.2026, U-Н8).
   ui-bank: Бирман R56 - узкое место не решается горизонтальной прокруткой таблицы; Sajid D57 (NNgroup) - самое нужное
   видно без прокрутки вбок. Поэтому: в плитке уже 820 px записи идут в две строки, как на телефоне (столбцы c-hide
   уходят во вторую строку ячейки); шире - таблица с полями ячеек 12 px вместо 18 (край плитки - те же 18), почта и
   метка до 130 px, состояние переносится по словам, а не посреди слова (td.wrap даёт overflow-wrap:anywhere, и столбец
   сжимался до одной буквы) */
@container tile (min-width:820px){
  table.rt.wide th,table.rt.wide td{padding-left:12px;padding-right:12px}
  table.rt.wide th:first-child,table.rt.wide td:first-child{padding-left:18px}
  table.rt.wide th:last-child,table.rt.wide td:last-child{padding-right:18px}
  table.rt.wide td.clip .cv{max-width:130px}
  table.rt.wide td.st{overflow-wrap:break-word}
}
@supports not (container-type:inline-size){
@media (min-width:1118px){
  table.rt.wide th:where(.tile:not(.flush):not(.col *) *),table.rt.wide td:where(.tile:not(.flush):not(.col *) *){padding-left:12px;padding-right:12px}
  table.rt.wide th:first-child:where(.tile:not(.flush):not(.col *) *),table.rt.wide td:first-child:where(.tile:not(.flush):not(.col *) *){padding-left:18px}
  table.rt.wide th:last-child:where(.tile:not(.flush):not(.col *) *),table.rt.wide td:last-child:where(.tile:not(.flush):not(.col *) *){padding-right:18px}
  table.rt.wide td.clip .cv:where(.tile:not(.flush):not(.col *) *){max-width:130px}
  table.rt.wide td.st:where(.tile:not(.flush):not(.col *) *){overflow-wrap:break-word}
}
@media (min-width:1082px) and (max-width:1425px){
  table.rt.wide th:where(.tile.flush:not(.col *) *),table.rt.wide td:where(.tile.flush:not(.col *) *){padding-left:12px;padding-right:12px}
  table.rt.wide th:first-child:where(.tile.flush:not(.col *) *),table.rt.wide td:first-child:where(.tile.flush:not(.col *) *){padding-left:18px}
  table.rt.wide th:last-child:where(.tile.flush:not(.col *) *),table.rt.wide td:last-child:where(.tile.flush:not(.col *) *){padding-right:18px}
  table.rt.wide td.clip .cv:where(.tile.flush:not(.col *) *){max-width:130px}
  table.rt.wide td.st:where(.tile.flush:not(.col *) *){overflow-wrap:break-word}
}
@media (min-width:1426px){
  table.rt.wide th:where(.tile.flush:not(.col.aside *) *),table.rt.wide td:where(.tile.flush:not(.col.aside *) *){padding-left:12px;padding-right:12px}
  table.rt.wide th:first-child:where(.tile.flush:not(.col.aside *) *),table.rt.wide td:first-child:where(.tile.flush:not(.col.aside *) *){padding-left:18px}
  table.rt.wide th:last-child:where(.tile.flush:not(.col.aside *) *),table.rt.wide td:last-child:where(.tile.flush:not(.col.aside *) *){padding-right:18px}
  table.rt.wide td.clip .cv:where(.tile.flush:not(.col.aside *) *){max-width:130px}
  table.rt.wide td.st:where(.tile.flush:not(.col.aside *) *){overflow-wrap:break-word}
}
}
@container tile (max-width:819px){
  table.rt.wide,table.rt.wide tbody{display:block}
  table.rt.wide thead{display:none}
  table.rt.wide tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt.wide tr:last-child{border-bottom:0}
  table.rt.wide td{display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt.wide td.c-hide{display:none}
  table.rt.wide td.c-amt{text-align:right}
  table.rt.wide .m-sub{display:block}
  table.rt.wide tr.none{display:block;padding:12px 18px}
}
@supports not (container-type:inline-size){
@media (max-width:1117px){
  table.rt.wide:where(.tile:not(.flush) *),table.rt.wide tbody:where(.tile:not(.flush) *){display:block}
  table.rt.wide thead:where(.tile:not(.flush) *){display:none}
  table.rt.wide tr:where(.tile:not(.flush) *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt.wide tr:last-child:where(.tile:not(.flush) *){border-bottom:0}
  table.rt.wide td:where(.tile:not(.flush) *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt.wide td.c-hide:where(.tile:not(.flush) *){display:none}
  table.rt.wide td.c-amt:where(.tile:not(.flush) *){text-align:right}
  table.rt.wide .m-sub:where(.tile:not(.flush) *){display:block}
  table.rt.wide tr.none:where(.tile:not(.flush) *){display:block;padding:12px 18px}
}
@media (min-width:1118px){
  table.rt.wide:where(.col .tile:not(.flush) *),table.rt.wide tbody:where(.col .tile:not(.flush) *){display:block}
  table.rt.wide thead:where(.col .tile:not(.flush) *){display:none}
  table.rt.wide tr:where(.col .tile:not(.flush) *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt.wide tr:last-child:where(.col .tile:not(.flush) *){border-bottom:0}
  table.rt.wide td:where(.col .tile:not(.flush) *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt.wide td.c-hide:where(.col .tile:not(.flush) *){display:none}
  table.rt.wide td.c-amt:where(.col .tile:not(.flush) *){text-align:right}
  table.rt.wide .m-sub:where(.col .tile:not(.flush) *){display:block}
  table.rt.wide tr.none:where(.col .tile:not(.flush) *){display:block;padding:12px 18px}
}
@media (max-width:1081px){
  table.rt.wide:where(.tile.flush *),table.rt.wide tbody:where(.tile.flush *){display:block}
  table.rt.wide thead:where(.tile.flush *){display:none}
  table.rt.wide tr:where(.tile.flush *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt.wide tr:last-child:where(.tile.flush *){border-bottom:0}
  table.rt.wide td:where(.tile.flush *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt.wide td.c-hide:where(.tile.flush *){display:none}
  table.rt.wide td.c-amt:where(.tile.flush *){text-align:right}
  table.rt.wide .m-sub:where(.tile.flush *){display:block}
  table.rt.wide tr.none:where(.tile.flush *){display:block;padding:12px 18px}
}
@media (min-width:1082px) and (max-width:1425px){
  table.rt.wide:where(.col .tile.flush *),table.rt.wide tbody:where(.col .tile.flush *){display:block}
  table.rt.wide thead:where(.col .tile.flush *){display:none}
  table.rt.wide tr:where(.col .tile.flush *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt.wide tr:last-child:where(.col .tile.flush *){border-bottom:0}
  table.rt.wide td:where(.col .tile.flush *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt.wide td.c-hide:where(.col .tile.flush *){display:none}
  table.rt.wide td.c-amt:where(.col .tile.flush *){text-align:right}
  table.rt.wide .m-sub:where(.col .tile.flush *){display:block}
  table.rt.wide tr.none:where(.col .tile.flush *){display:block;padding:12px 18px}
}
@media (min-width:1426px){
  table.rt.wide:where(.col.aside .tile.flush *),table.rt.wide tbody:where(.col.aside .tile.flush *){display:block}
  table.rt.wide thead:where(.col.aside .tile.flush *){display:none}
  table.rt.wide tr:where(.col.aside .tile.flush *){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start;padding:8px 18px;border-bottom:1px solid var(--hairline)}
  table.rt.wide tr:last-child:where(.col.aside .tile.flush *){border-bottom:0}
  table.rt.wide td:where(.col.aside .tile.flush *){display:block;border:0;height:auto;padding:0;min-width:0}
  table.rt.wide td.c-hide:where(.col.aside .tile.flush *){display:none}
  table.rt.wide td.c-amt:where(.col.aside .tile.flush *){text-align:right}
  table.rt.wide .m-sub:where(.col.aside .tile.flush *){display:block}
  table.rt.wide tr.none:where(.col.aside .tile.flush *){display:block;padding:12px 18px}
}
}

/* ---------- части разделов ---------- */
.seg.start{align-self:flex-start}
/* шкала: плоская заливка, высота 6 */
.bar{height:6px;border-radius:3px;background:var(--track);overflow:hidden}
.bar i{display:block;height:100%;background:var(--accent)}
/* столбцы по дням: плоский цвет акцента, без подложки */
.chart{display:flex;align-items:flex-end;gap:2px;height:60px}
.chart i{flex:1 1 0;min-height:1px;background:var(--accent);border-radius:1px}
.chart i.z{background:var(--track)}
/* столбцы с подписями: строка значения под курсором (в покое - наибольшее), слева шкала от 0 до наибольшего,
   снизу первые и последние сутки со значениями */
.chart-box{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 9px}
.chart-read{grid-column:1 / -1;margin:0;min-height:20px;font-size:13px;color:var(--t-high);font-variant-numeric:tabular-nums}
.chart-y{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;font-size:11px;line-height:1;color:var(--t-body);font-variant-numeric:tabular-nums}
.chart-box .chart{height:72px;border-top:1px solid var(--hairline);border-bottom:1px solid var(--hairline);touch-action:pan-y}
.chart-box .chart:focus-visible{outline:1px solid var(--accent-line);outline-offset:3px}
.chart-box .chart i.on{background:var(--t-white)}
.chart-x{grid-column:2;display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--t-body);font-variant-numeric:tabular-nums}
/* счётчики: число и подпись под ним */
.stats{display:flex;gap:36px;flex-wrap:wrap}
.stat{display:flex;flex-direction:column;gap:0;min-width:0}
.stat b{font-size:19px;font-weight:700;color:var(--t-high);font-variant-numeric:tabular-nums;line-height:1.3}
/* "Начало работы": три нумерованные строки */
.steps{display:flex;flex-direction:column}
.step{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:6px 12px;align-items:center;min-height:48px;padding:9px 0;border-bottom:1px solid var(--hairline)}
.step:last-child{border-bottom:0;padding-bottom:0}
.step-n{width:24px;height:24px;border-radius:50%;background:var(--selected);color:var(--t-high);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}
.step .keybox{max-width:420px;margin-top:6px}
@container tile (max-width:479px){
  .step{grid-template-columns:24px minmax(0,1fr);align-items:start}
  .step>.btn{grid-column:2;justify-self:start}
}
@supports not (container-type:inline-size){
@media (max-width:549px){
  .step:where(.tile:not(.flush) *){grid-template-columns:24px minmax(0,1fr);align-items:start}
  .step>.btn:where(.tile:not(.flush) *){grid-column:2;justify-self:start}
}
@media (min-width:861px) and (max-width:1121px){
  .step:where(.col .tile:not(.flush) *){grid-template-columns:24px minmax(0,1fr);align-items:start}
  .step>.btn:where(.col .tile:not(.flush) *){grid-column:2;justify-self:start}
}
@media (min-width:1122px){
  .step:where(.col.aside .tile:not(.flush) *){grid-template-columns:24px minmax(0,1fr);align-items:start}
  .step>.btn:where(.col.aside .tile:not(.flush) *){grid-column:2;justify-self:start}
}
@media (max-width:513px){
  .step:where(.tile.flush *){grid-template-columns:24px minmax(0,1fr);align-items:start}
  .step>.btn:where(.tile.flush *){grid-column:2;justify-self:start}
}
@media (min-width:861px) and (max-width:1085px){
  .step:where(.col .tile.flush *){grid-template-columns:24px minmax(0,1fr);align-items:start}
  .step>.btn:where(.col .tile.flush *){grid-column:2;justify-self:start}
}
@media (min-width:1086px){
  .step:where(.col.aside .tile.flush *){grid-template-columns:24px minmax(0,1fr);align-items:start}
  .step>.btn:where(.col.aside .tile.flush *){grid-column:2;justify-self:start}
}
}
/* сравнение "Сейчас" и "С лицензией" */
.cmp{display:grid;grid-template-columns:minmax(0,200px) auto auto;justify-content:start;gap:0 18px;align-items:center;font-size:13px}
.cmp>*{min-height:36px;display:flex;align-items:center;border-bottom:1px solid var(--hairline)}
.cmp>.k{color:var(--t-label)}
.cmp>.v{justify-content:flex-end;color:var(--t-body);font-variant-numeric:tabular-nums}
.cmp>.h{min-height:24px;font-size:11px;font-weight:600;text-transform:uppercase;color:var(--t-label);justify-content:flex-end}
.cmp>.last{border-bottom:0}
/* списки: устройства, сеансы, журнал */
.list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.list>li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:5px 0;border-bottom:1px solid var(--hairline);font-size:13px;color:var(--t-body);overflow-wrap:anywhere}
.list>li:last-child{border-bottom:0}
.list .when{flex:0 0 200px;color:var(--t-label);font-variant-numeric:tabular-nums}
.list.log>li{justify-content:flex-start}
@container tile (max-width:479px){
  .list .when{flex-basis:120px}
}
@supports not (container-type:inline-size){
@media (max-width:549px){
  .list .when:where(.tile:not(.flush) *){flex-basis:120px}
}
@media (min-width:861px) and (max-width:1121px){
  .list .when:where(.col .tile:not(.flush) *){flex-basis:120px}
}
@media (min-width:1122px){
  .list .when:where(.col.aside .tile:not(.flush) *){flex-basis:120px}
}
@media (max-width:513px){
  .list .when:where(.tile.flush *){flex-basis:120px}
}
@media (min-width:861px) and (max-width:1085px){
  .list .when:where(.col .tile.flush *){flex-basis:120px}
}
@media (min-width:1086px){
  .list .when:where(.col.aside .tile.flush *){flex-basis:120px}
}
}
/* завершение сеанса: значок без подписи, название действия - в подсказке */
.x{flex:none;width:25px;height:25px;padding:0;border:1px solid #363636;border-radius:4px;cursor:pointer;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f2f2f2' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") center/14px 14px no-repeat}
.x:hover{background-color:#3A3A3E}
.x:active{background-color:#48484C}
.x:disabled{opacity:.4;cursor:default}
/* сворачиваемые строки условий */
.faq{display:flex;flex-direction:column}
.faq details{border-bottom:1px solid var(--hairline)}
.faq details:last-child{border-bottom:0}
.faq summary{list-style:none;cursor:pointer;min-height:36px;padding:5px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--t-body)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";flex:none;width:6px;height:6px;margin:0 4px 3px 0;border-right:1.5px solid var(--t-label);border-bottom:1.5px solid var(--t-label);transform:rotate(45deg)}
.faq details[open] summary::after{transform:rotate(-135deg);margin-bottom:-3px}
.faq summary:hover{color:var(--t-white)}
.faq p{padding:0 0 12px;font-size:13px;color:var(--t-label)}
.faq p.q{padding-bottom:3px;color:var(--t-body);font-weight:500}
/* одна сворачиваемая строка: настройка ссылки, условия программы */
.faq.solo summary{color:var(--accent-line);font-weight:500;justify-content:flex-start}
.faq.solo summary:hover{color:var(--accent-line);text-decoration:underline}
.faq.solo summary::after{border-color:var(--accent-line)}
.lb{padding:3px 0 12px}
.lb .input{font-size:13px;padding:9px 12px}
.lb select.input{padding-right:36px}

/* выбор из списка: нейтральная заливка, полоса сбоку и белый полужирный текст */
.opts{display:flex;flex-direction:column;gap:6px;border:0;padding:0;margin:0;min-width:0}
.opts legend{font-size:12px;color:var(--t-label);padding:0;margin-bottom:6px}
.opt{display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--raised);border:1px solid var(--tile-border);border-radius:10px;padding:12px 15px;font-size:13px;color:var(--t-body);position:relative;cursor:pointer}
.opt:hover{background:var(--hairline);border-color:var(--border-strong)}
.opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.opt:has(input:focus-visible){outline:1px solid var(--accent-line)}
.opt.on{background:var(--selected);color:var(--t-white);font-weight:600}
.opt.on::before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:3px;background:var(--accent-line);border-radius:0 2px 2px 0}
.opt .price{font-weight:600;color:var(--t-body);white-space:nowrap}
.opt.on .price{color:var(--t-white)}
.opt .hint{display:block;font-size:12px;font-weight:400;color:var(--t-2);margin:0}
.opt.off{color:var(--t-off);cursor:default}
.opt.off .price{color:var(--t-off)}
.opt.off:hover{background:var(--raised);border-color:var(--tile-border)}

.filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
/* выпадающий список фильтра: вид списков кабинета (select.input) - своя стрелка справа, высота кнопки */
.drop{font-family:var(--ui);font-size:13px;color:var(--t-body);background-color:var(--raised);border:1px solid var(--border);border-radius:6px;height:32px;padding:0 30px 0 9px;max-width:100%;
  appearance:none;-webkit-appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23A0A0A5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:10px 6px}
.drop option{background:var(--raised);color:var(--t-body)}
.drop:hover{border-color:var(--border-strong)}
/* поле поиска рядом с фильтрами: та же высота и рамка, что у .drop, лупа слева; ширина - остаток строки,
   чтобы «Сохранить в CSV» на ПК оставалась в той же строке */
.qbox{font-family:var(--ui);font-size:13px;color:var(--t-body);background-color:var(--raised);border:1px solid var(--border);border-radius:6px;height:32px;padding:0 9px 0 28px;flex:1 1 120px;min-width:0;max-width:240px;margin:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23A0A0A5' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='5' cy='5' r='3.75'/%3E%3Cpath d='M8 8l3 3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 10px center;background-size:12px 12px}
.qbox::placeholder{color:var(--t-muted);opacity:1}
.qbox:hover{border-color:var(--border-strong)}
.qbox:focus{outline:0;border-color:var(--accent-line)}

/* нижняя панель телефона: пять разделов, листа "Ещё" нет */
.tabbar{display:none}
.tabbar a{padding:12px 0;min-height:44px;text-align:center;font-family:var(--ui);font-size:11px;font-weight:500;line-height:1.5;color:var(--t-soft);position:relative;background:transparent;border:0;border-radius:0;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tabbar .on{color:var(--t-white);font-weight:600}
.tabbar .on::before{content:"";position:absolute;top:0;left:30%;right:30%;height:3px;background:var(--accent-line);border-radius:0 0 2px 2px}
.m-only{display:none}
.ext{flex-direction:column;gap:2px}
.ext .nav{min-height:44px}

/* ---------- до 860: одна колонка, меню значками с подсказками ----------
   Боковые плитки встают первыми; .m-first и .m-last задают место плитки в одной колонке. */
@media (max-width:860px){
  .app{grid-template-columns:52px minmax(0,1fr)}
  .side .brand{justify-content:center;padding:6px 0 12px}
  .side-who{display:none}
  .side .nav{justify-content:center;padding:9px 0}
  .side .nav-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .side .nav-n{position:absolute;top:3px;right:5px;margin:0;padding:0;font-size:10px;line-height:1}
  .side .nav[data-tip]:hover::after,.side .nav[data-tip]:focus-visible::after{content:attr(data-tip);left:calc(100% + 9px);top:50%;transform:translateY(-50%)}
  .cols{display:flex;flex-direction:column;align-items:stretch}
  .col{display:contents}
  .col.aside>*{order:-1}
  .cols .m-top{order:-3}
  .cols .m-first{order:-2}
  .cols .m-last{order:1}
}
/* ---------- до 640: телефон, нижняя панель ---------- */
@media (max-width:640px){
  .app{grid-template-columns:minmax(0,1fr)}
  .side{display:none}
  .tabbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:10;border-top:1px solid var(--hairline);background:var(--tile);padding-bottom:env(safe-area-inset-bottom)}
  .main{padding:16px 16px 84px}
  .cols,.col,.content{gap:18px}
  .m-only{display:flex}
  .switch{height:44px}
  .switch::before{top:12px}
  .switch::after{top:15px}
  .nt-k,.nt-v{min-height:44px}
  .tile-head .push{margin-left:0}
  /* поиск на телефоне - отдельной строкой; 16px, чтобы iPhone не увеличивал страницу при вводе */
  .tile-head .qbox{flex-basis:100%;max-width:none;font-size:16px}
  .stats{gap:24px}
  /* четыре счётчика на телефоне: два ряда по два */
  .stats.four{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}
}
@media (max-width:480px){
  .topbar{padding:0 16px}
  .topbar~main{padding:24px 16px 36px}
  .topbar~main::before,.topbar~main::after{content:none}
  .auth,.auth-tile{background:transparent;border:0;padding:0}
  .tile{padding:16px}
  .tile.flush{padding:0}
  .tile-head,.tile-note{padding-left:16px;padding-right:16px}
  th,td{padding-left:16px;padding-right:16px}
  table.rt tr,table.rt tr.day,table.rt tr.none{padding-left:16px;padding-right:16px}
  dialog.modal{padding:18px 16px}
  .codes{gap:6px 12px;padding:12px}
}
.offscreen{position:fixed;left:-9999px;top:0;opacity:0}
.modal-form{display:flex;flex-direction:column;gap:12px;margin:0}

/* ---------- пульт владельца (/admin/) ----------
   Те же плитки, строки и таблицы, что в разделах кабинета. Свои части: вкладки разделов пульта, раскрываемые
   записи списка заявок, шкалы суточных пределов, столбец кнопок действий. */
/* вкладки: лёгкая строка ссылок; выбранная - белый полужирный текст и полоса акцента снизу */
.tabs{display:flex;flex-wrap:wrap;gap:0 24px;border-bottom:1px solid var(--hairline);margin-top:-6px}
.tabs a{position:relative;padding:9px 0;font-size:13px;font-weight:500;color:var(--t-soft);text-decoration:none;white-space:nowrap}
.tabs a:hover{color:var(--t-white)}
.tabs a[aria-current="page"]{color:var(--t-white);font-weight:600}
.tabs a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--accent-line);border-radius:2px 2px 0 0}
.tabs .t-short{display:none}
/* раскрываемая запись списка: в строке - кто, сумма и стрелка; подробности и действия - под строкой */
.fold{border-top:1px solid var(--hairline)}
.fold>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto 12px;gap:0 18px;align-items:center;min-height:54px;padding:9px 18px}
.fold>summary::-webkit-details-marker{display:none}
.fold>summary::after{content:"";width:6px;height:6px;margin-bottom:3px;border-right:1.5px solid var(--t-label);border-bottom:1.5px solid var(--t-label);transform:rotate(45deg)}
.fold[open]>summary::after{transform:rotate(-135deg);margin-bottom:-3px}
.fold>summary:hover{background:var(--nav-hover)}
.fold-who{font-size:13px;font-weight:600;color:var(--t-high);overflow-wrap:anywhere}
.fold-sum{font-size:15px;font-weight:600;color:var(--t-high);font-variant-numeric:tabular-nums;white-space:nowrap}
.fold-body{display:flex;flex-direction:column;gap:12px;padding:6px 18px 18px}
.fold-body .keybox{max-width:520px}
.fold-body .msg{background:var(--well)}
.sub.strong{color:var(--t-high);font-weight:600}
/* два действия строки списка (подтвердить и отменить начисление): одно под другим, от левого края ячейки */
.grp.two{gap:6px;align-items:flex-start}
.rt button.link{text-align:left}
/* список внутри раскрытой записи (платежи заявки): в узкой плитке его записи стоят по краю текста карточки */
@container tile (max-width:559px){
  .fold-body table.rt tr{padding-left:0;padding-right:0}
}
@supports not (container-type:inline-size){
@media (max-width:629px){
  .fold-body table.rt tr:where(.tile:not(.flush) *){padding-left:0;padding-right:0}
}
@media (min-width:641px) and (max-width:697px){
  .fold-body table.rt tr:where(.tile:not(.flush) *){padding-left:0;padding-right:0}
}
@media (min-width:861px) and (max-width:1201px){
  .fold-body table.rt tr:where(.col .tile:not(.flush) *){padding-left:0;padding-right:0}
}
@media (min-width:1202px){
  .fold-body table.rt tr:where(.col.aside .tile:not(.flush) *){padding-left:0;padding-right:0}
}
@media (max-width:593px){
  .fold-body table.rt tr:where(.tile.flush *){padding-left:0;padding-right:0}
}
@media (min-width:641px) and (max-width:661px){
  .fold-body table.rt tr:where(.tile.flush *){padding-left:0;padding-right:0}
}
@media (min-width:861px) and (max-width:1165px){
  .fold-body table.rt tr:where(.col .tile.flush *){padding-left:0;padding-right:0}
}
@media (min-width:1166px){
  .fold-body table.rt tr:where(.col.aside .tile.flush *){padding-left:0;padding-right:0}
}
}
/* столбец действий: кнопки одной ширины по самой длинной подписи */
.acts{display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:3px 0 12px;width:max-content;max-width:100%}
.acts .btn{white-space:normal;height:auto;min-height:32px;padding-top:6px;padding-bottom:6px;line-height:1.3}
/* шкала с подписью и значением: суточные пределы */
.meter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;font-size:13px;color:var(--t-body)}
.meter .bar{grid-column:1 / -1}
.meter .val{font-variant-numeric:tabular-nums;color:var(--t-high)}
.meters{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px 24px}
/* строка поиска аккаунта: вид поиска, значение, кнопка */
.find{display:grid;grid-template-columns:200px minmax(0,1fr) auto;gap:12px;align-items:end}
.find .input{font-size:13px;padding:9px 12px}
.find select.input{padding-right:36px}
.find .btn{height:40px}
.tile.narrow{width:100%;max-width:520px}
/* длинное значение, перешедшее на свою строку, читается от левого края */
.adm .r .val,.modal .rows .val{text-align:left}
textarea.input{resize:vertical;min-height:72px;font-size:13px}
.modal .rows{border-top:1px solid var(--hairline);border-bottom:1px solid var(--hairline)}
.modal .hint code,.line code{font-family:var(--mono);font-size:13px;color:var(--t-high);overflow-wrap:anywhere}
/* два коротких поля окна в одну строку */
.pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
/* курс в карточке заявки: короткое поле, под ним сумма USDT к переводу */
.po-rate{max-width:420px}
.po-rate .input{max-width:200px;font-size:13px;padding:9px 12px}
.po-rate .hint b{color:var(--t-high);font-weight:600}
/* история заявок: хеш транзакции раскрывается касанием строки - только в узкой плитке, где столбца "Состояние" нет */
table.rt tr.more,.rt .tx-btn{display:none}
.tx-more{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding-bottom:6px}
.tx-more code{font-family:var(--mono);font-size:13px;color:var(--t-high);overflow-wrap:anywhere;word-break:break-all}
@container tile (max-width:559px){
  table.rt tr.more:not([hidden]){display:block;padding-top:0}
  table.rt tr.tap{cursor:pointer}
  table.rt tr.tap:has(+ tr.more:not([hidden])){border-bottom:0}
  .rt .tx-btn{display:inline-flex;height:32px;padding:0;margin-top:3px}
}
@supports not (container-type:inline-size){
@media (max-width:629px){
  table.rt tr.more:not([hidden]):where(.tile:not(.flush) *){display:block;padding-top:0}
  table.rt tr.tap:where(.tile:not(.flush) *){cursor:pointer}
  table.rt tr.tap:has(+ tr.more:not([hidden])):where(.tile:not(.flush) *){border-bottom:0}
  .rt .tx-btn:where(.tile:not(.flush) *){display:inline-flex;height:32px;padding:0;margin-top:3px}
}
@media (min-width:641px) and (max-width:697px){
  table.rt tr.more:not([hidden]):where(.tile:not(.flush) *){display:block;padding-top:0}
  table.rt tr.tap:where(.tile:not(.flush) *){cursor:pointer}
  table.rt tr.tap:has(+ tr.more:not([hidden])):where(.tile:not(.flush) *){border-bottom:0}
  .rt .tx-btn:where(.tile:not(.flush) *){display:inline-flex;height:32px;padding:0;margin-top:3px}
}
@media (min-width:861px) and (max-width:1201px){
  table.rt tr.more:not([hidden]):where(.col .tile:not(.flush) *){display:block;padding-top:0}
  table.rt tr.tap:where(.col .tile:not(.flush) *){cursor:pointer}
  table.rt tr.tap:has(+ tr.more:not([hidden])):where(.col .tile:not(.flush) *){border-bottom:0}
  .rt .tx-btn:where(.col .tile:not(.flush) *){display:inline-flex;height:32px;padding:0;margin-top:3px}
}
@media (min-width:1202px){
  table.rt tr.more:not([hidden]):where(.col.aside .tile:not(.flush) *){display:block;padding-top:0}
  table.rt tr.tap:where(.col.aside .tile:not(.flush) *){cursor:pointer}
  table.rt tr.tap:has(+ tr.more:not([hidden])):where(.col.aside .tile:not(.flush) *){border-bottom:0}
  .rt .tx-btn:where(.col.aside .tile:not(.flush) *){display:inline-flex;height:32px;padding:0;margin-top:3px}
}
@media (max-width:593px){
  table.rt tr.more:not([hidden]):where(.tile.flush *){display:block;padding-top:0}
  table.rt tr.tap:where(.tile.flush *){cursor:pointer}
  table.rt tr.tap:has(+ tr.more:not([hidden])):where(.tile.flush *){border-bottom:0}
  .rt .tx-btn:where(.tile.flush *){display:inline-flex;height:32px;padding:0;margin-top:3px}
}
@media (min-width:641px) and (max-width:661px){
  table.rt tr.more:not([hidden]):where(.tile.flush *){display:block;padding-top:0}
  table.rt tr.tap:where(.tile.flush *){cursor:pointer}
  table.rt tr.tap:has(+ tr.more:not([hidden])):where(.tile.flush *){border-bottom:0}
  .rt .tx-btn:where(.tile.flush *){display:inline-flex;height:32px;padding:0;margin-top:3px}
}
@media (min-width:861px) and (max-width:1165px){
  table.rt tr.more:not([hidden]):where(.col .tile.flush *){display:block;padding-top:0}
  table.rt tr.tap:where(.col .tile.flush *){cursor:pointer}
  table.rt tr.tap:has(+ tr.more:not([hidden])):where(.col .tile.flush *){border-bottom:0}
  .rt .tx-btn:where(.col .tile.flush *){display:inline-flex;height:32px;padding:0;margin-top:3px}
}
@media (min-width:1166px){
  table.rt tr.more:not([hidden]):where(.col.aside .tile.flush *){display:block;padding-top:0}
  table.rt tr.tap:where(.col.aside .tile.flush *){cursor:pointer}
  table.rt tr.tap:has(+ tr.more:not([hidden])):where(.col.aside .tile.flush *){border-bottom:0}
  .rt .tx-btn:where(.col.aside .tile.flush *){display:inline-flex;height:32px;padding:0;margin-top:3px}
}
}
@container tile (max-width:559px){
  .fold>summary,.fold-body{padding-left:16px;padding-right:16px}
}
@supports not (container-type:inline-size){
@media (max-width:629px){
  .fold>summary:where(.tile:not(.flush) *),.fold-body:where(.tile:not(.flush) *){padding-left:16px;padding-right:16px}
}
@media (min-width:641px) and (max-width:697px){
  .fold>summary:where(.tile:not(.flush) *),.fold-body:where(.tile:not(.flush) *){padding-left:16px;padding-right:16px}
}
@media (min-width:861px) and (max-width:1201px){
  .fold>summary:where(.col .tile:not(.flush) *),.fold-body:where(.col .tile:not(.flush) *){padding-left:16px;padding-right:16px}
}
@media (min-width:1202px){
  .fold>summary:where(.col.aside .tile:not(.flush) *),.fold-body:where(.col.aside .tile:not(.flush) *){padding-left:16px;padding-right:16px}
}
@media (max-width:593px){
  .fold>summary:where(.tile.flush *),.fold-body:where(.tile.flush *){padding-left:16px;padding-right:16px}
}
@media (min-width:641px) and (max-width:661px){
  .fold>summary:where(.tile.flush *),.fold-body:where(.tile.flush *){padding-left:16px;padding-right:16px}
}
@media (min-width:861px) and (max-width:1165px){
  .fold>summary:where(.col .tile.flush *),.fold-body:where(.col .tile.flush *){padding-left:16px;padding-right:16px}
}
@media (min-width:1166px){
  .fold>summary:where(.col.aside .tile.flush *),.fold-body:where(.col.aside .tile.flush *){padding-left:16px;padding-right:16px}
}
}
@media (max-width:640px){
  .tabbar.six{grid-template-columns:repeat(6,minmax(0,1fr))}
  /* пять коротких названий на 390 px: 308 px текста и четыре промежутка по 12 px; уже - перенос на вторую строку */
  .tabs{gap:0 12px}
  .tabs .t-full{display:none}
  .tabs .t-short{display:inline}
  .find{grid-template-columns:minmax(0,1fr)}
  .acts{width:100%}
  /* окно выше экрана (запись платежа): кнопки остаются у нижнего края окна, поля прокручиваются под ними */
  dialog.modal[data-k^="dlg-"] .actions{position:sticky;bottom:-18px;margin-bottom:-18px;padding:12px 0 18px;background:var(--tile);border-top:1px solid var(--hairline)}
}

/* ---------- кабинет: правки по критике банка опыта по интерфейсу, круг 4 (15.10.2026) ----------
   Окно с закреплённым низом (C.modal opts.pin, cabinet.js): сумма к оплате, плашка отказа и кнопки стоят у нижнего
   края окна, выбор над ними прокручивается. Первое такое окно - "Пополнить баланс": на 1280x800, iPhone 15 и 360x640
   кнопка "Перейти к оплате" уходила под край окна без признака прокрутки. */
dialog.modal.pin{padding-bottom:0}
dialog.modal.pin .pin-foot{position:sticky;bottom:0;z-index:1;display:flex;flex-direction:column;gap:12px;margin:0 -24px;padding:12px 24px 24px;background:var(--tile);border-top:1px solid var(--hairline)}
@media (max-width:480px){dialog.modal.pin .pin-foot{margin:0 -16px;padding:12px 16px 18px}}
/* "Обновить данные" - круговая стрелка 22x22, значок 13 px #A0A0A5, как "Обновить баланс" программы
   (брендбук, приём 02); название действия - в подсказке. На телефоне цель нажатия 32 px. */
.snap .ref{position:relative;flex:none;align-self:center;display:inline-grid;place-items:center;width:22px;height:22px;padding:0;border:1px solid transparent;border-radius:3px;background:transparent;cursor:pointer}
.snap .ref svg{display:block;width:13px;height:13px}
.snap .ref:hover:enabled{background:var(--raised);border-color:var(--border)}
.snap .ref:focus-visible{outline:0;border-color:var(--accent-line)}
.snap .ref:disabled{opacity:.4;cursor:default}
/* история операций: строка 1 - заголовок, период и вид операций; строка 2 - поиск во всю ширину и "Сохранить в CSV".
   На телефоне период, вид, поиск и CSV открываются кнопкой "Отбор операций" */
.hist-head .hq{display:flex;align-items:center;gap:12px;flex:1 1 100%;min-width:0}
.hist-head .hq .qbox{flex:1 1 200px;max-width:none}
.hf-toggle{display:none}
/* кружок вида операции в истории - как в окне "История операций" программы: 9 px, цвет вида (balance.js, KIND) */
.op-dot{display:inline-block;flex:none;align-self:flex-start;width:9px;height:9px;margin:5px 9px 0 0;border-radius:50%;background:var(--t-2)}
.op-dot.op-cloud{background:#4B91F7}
.op-dot.op-device{background:#3FB0A0}
.op-dot.op-refund,.op-dot.op-topup{background:#30A46C}
.op-dot.op-other{background:#7B7B82}
/* тег "возврат" у названия операции - _tag окна истории программы: приглушённый текст в тонкой рамке (круг 6, Н-2) */
.op-name{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 6px}
.op-tag{padding:0 6px;border:1px solid var(--border);border-radius:5px;font-size:11px;line-height:16px;color:var(--t-label)}
/* ячейка в одну строку: почта приглашённого и метка не рвутся посреди слова, длинное - многоточием */
td.clip{white-space:nowrap}
td.clip .cv{display:block;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* подписи и вторые строки - 12 px, как текст body брендбука: 11 px серым был самым мелким и самым бледным сразу */
.sub{font-size:12px}
/* "Профиль": подпись строки стоит на уровне первой строки значения (строка двухфакторной защиты в две строки);
   в узкой плитке кнопки строк - по ширине подписи, а не во всю ширину */
@container tile (min-width:480px){
  #v-profile .r.act{align-items:baseline}
}
@supports not (container-type:inline-size){
@media (min-width:550px) and (max-width:860px){
  #v-profile .r.act:where(.tile:not(.flush) *){align-items:baseline}
}
@media (min-width:861px) and (max-width:1121px){
  #v-profile .r.act:where(.tile:not(.flush):not(.col *) *){align-items:baseline}
}
@media (min-width:1122px){
  #v-profile .r.act:where(.tile:not(.flush):not(.col.aside *) *){align-items:baseline}
}
@media (min-width:514px) and (max-width:860px){
  #v-profile .r.act:where(.tile.flush *){align-items:baseline}
}
@media (min-width:861px) and (max-width:1085px){
  #v-profile .r.act:where(.tile.flush:not(.col *) *){align-items:baseline}
}
@media (min-width:1086px){
  #v-profile .r.act:where(.tile.flush:not(.col.aside *) *){align-items:baseline}
}
}
@container tile (max-width:479px){
  #v-profile .r.act .row{align-items:flex-start}
}
@supports not (container-type:inline-size){
@media (max-width:549px){
  #v-profile .r.act .row:where(.tile:not(.flush) *){align-items:flex-start}
}
@media (min-width:861px) and (max-width:1121px){
  #v-profile .r.act .row:where(.col .tile:not(.flush) *){align-items:flex-start}
}
@media (min-width:1122px){
  #v-profile .r.act .row:where(.col.aside .tile:not(.flush) *){align-items:flex-start}
}
@media (max-width:513px){
  #v-profile .r.act .row:where(.tile.flush *){align-items:flex-start}
}
@media (min-width:861px) and (max-width:1085px){
  #v-profile .r.act .row:where(.col .tile.flush *){align-items:flex-start}
}
@media (min-width:1086px){
  #v-profile .r.act .row:where(.col.aside .tile.flush *){align-items:flex-start}
}
}
@media (max-width:640px){
  .snap .ref{width:32px;height:32px}
  /* язык на телефоне - в "Профиле" (плитка .lang-tile): шапка пяти разделов кабинета без переключателя; пульт
     владельца (/admin/, data-title="nav.admin") критикой не разбирался, переключатель у него остаётся в шапке */
  html[data-title^="nav."]:not([data-title="nav.admin"]) .app .topline .lang-switch{display:none}
  .hist-head .hf-toggle{display:inline-flex;margin-left:auto}
  .hist-head:not(.open) .hf{display:none}
  .hist-head .hq{flex-wrap:wrap}
  .hist-head .hq .qbox{flex-basis:100%}
}
/* строка "Данные на <время>" со стрелкой: стрелка по центру строки и рядом со временем */
.snap{align-items:center}
.snap .ref{margin-left:-6px}

/* ---------- кабинет: правки по критике банка опыта по интерфейсу, круг 5 (16.10.2026) ---------- */
/* поле числа без родных стрелок: в тёмном окне Firefox и WebKit рисовали светлый квадрат, Chrome - при фокусе;
   число меняют пакеты, ползунок и клавиатура (К-Н4) */
input[type="number"]{-moz-appearance:textfield;appearance:textfield}
input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}
/* "Пополнить баланс": выбранный способ оплаты - строкой под суммой в закреплённом низу (К-С1) */
.pin-foot .total+.pay-via{margin-top:-9px}
/* на телефоне пакеты и способы оплаты - строкой в одну высоту, пояснение рядом с названием: над закреплённым низом
   на 360x640 виден выбранный способ оплаты (К-С1) */
@media (max-width:480px){
  dialog.modal.pin .opt{padding:9px 12px}
  dialog.modal.pin .opt>span:not(.price){display:flex;flex-wrap:wrap;align-items:baseline;gap:0 9px;min-width:0}
  dialog.modal.pin .opt .hint{display:inline}
}
/* "Отбор операций": уголок говорит, открыт отбор или нет; открытая кнопка - нейтральная заливка #2E2E30 и белый
   полужирный текст, как выбранное по брендбуку. Период и вид - одной строкой во всю ширину (период по своей подписи,
   вид - остаток строки, чтобы "Все виды операций" не обрезалось), поиск и "Сохранить в CSV" - во всю ширину (К-Н1) */
@media (max-width:640px){
  .hist-head .hf-toggle{gap:9px}
  .hist-head .hf-toggle::after{content:"";width:6px;height:6px;margin-bottom:3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
  .hist-head.open .hf-toggle{background:var(--selected);border-color:var(--border-strong);color:var(--t-white);font-weight:600}
  .hist-head.open .hf-toggle::after{transform:rotate(-135deg);margin-bottom:-3px}
  .hist-head .drop.hf[data-k="period"]{flex:0 0 auto}
  .hist-head .drop.hf[data-k="cat"]{flex:1 1 0;min-width:0}
  .hist-head .hq .btn{flex:1 1 100%}
}
/* строка "подпись - значение" в узкой плитке: подпись слева, значение справа в любой строке; длинное значение
   переносится внутри своей колонки, а не уходит под подпись - иначе в одной плитке строки стояли в двух раскладках (К-Н3) */
@container tile (max-width:479px){
  .r:not(.act):has(>.val){flex-wrap:nowrap;align-items:baseline;padding:8px 0}
  .r:not(.act):has(>.val)>.k{flex:0 1 auto;min-width:0}
  /* значение не сжимается, пока помещается: переносится подпись ("Дневной лимит / видео"), а значение остаётся строкой */
  .r:not(.act)>.val{flex:0 0 auto;max-width:calc(100% - 92px)}
}
@supports not (container-type:inline-size){
@media (max-width:549px){
  .r:not(.act):has(>.val):where(.tile:not(.flush) *){flex-wrap:nowrap;align-items:baseline;padding:8px 0}
  .r:not(.act):has(>.val)>.k:where(.tile:not(.flush) *){flex:0 1 auto;min-width:0}
  /* значение не сжимается, пока помещается: переносится подпись ("Дневной лимит / видео"), а значение остаётся строкой */
  .r:not(.act)>.val:where(.tile:not(.flush) *){flex:0 0 auto;max-width:calc(100% - 92px)}
}
@media (min-width:861px) and (max-width:1121px){
  .r:not(.act):has(>.val):where(.col .tile:not(.flush) *){flex-wrap:nowrap;align-items:baseline;padding:8px 0}
  .r:not(.act):has(>.val)>.k:where(.col .tile:not(.flush) *){flex:0 1 auto;min-width:0}
  /* значение не сжимается, пока помещается: переносится подпись ("Дневной лимит / видео"), а значение остаётся строкой */
  .r:not(.act)>.val:where(.col .tile:not(.flush) *){flex:0 0 auto;max-width:calc(100% - 92px)}
}
@media (min-width:1122px){
  .r:not(.act):has(>.val):where(.col.aside .tile:not(.flush) *){flex-wrap:nowrap;align-items:baseline;padding:8px 0}
  .r:not(.act):has(>.val)>.k:where(.col.aside .tile:not(.flush) *){flex:0 1 auto;min-width:0}
  /* значение не сжимается, пока помещается: переносится подпись ("Дневной лимит / видео"), а значение остаётся строкой */
  .r:not(.act)>.val:where(.col.aside .tile:not(.flush) *){flex:0 0 auto;max-width:calc(100% - 92px)}
}
@media (max-width:513px){
  .r:not(.act):has(>.val):where(.tile.flush *){flex-wrap:nowrap;align-items:baseline;padding:8px 0}
  .r:not(.act):has(>.val)>.k:where(.tile.flush *){flex:0 1 auto;min-width:0}
  /* значение не сжимается, пока помещается: переносится подпись ("Дневной лимит / видео"), а значение остаётся строкой */
  .r:not(.act)>.val:where(.tile.flush *){flex:0 0 auto;max-width:calc(100% - 92px)}
}
@media (min-width:861px) and (max-width:1085px){
  .r:not(.act):has(>.val):where(.col .tile.flush *){flex-wrap:nowrap;align-items:baseline;padding:8px 0}
  .r:not(.act):has(>.val)>.k:where(.col .tile.flush *){flex:0 1 auto;min-width:0}
  /* значение не сжимается, пока помещается: переносится подпись ("Дневной лимит / видео"), а значение остаётся строкой */
  .r:not(.act)>.val:where(.col .tile.flush *){flex:0 0 auto;max-width:calc(100% - 92px)}
}
@media (min-width:1086px){
  .r:not(.act):has(>.val):where(.col.aside .tile.flush *){flex-wrap:nowrap;align-items:baseline;padding:8px 0}
  .r:not(.act):has(>.val)>.k:where(.col.aside .tile.flush *){flex:0 1 auto;min-width:0}
  /* значение не сжимается, пока помещается: переносится подпись ("Дневной лимит / видео"), а значение остаётся строкой */
  .r:not(.act)>.val:where(.col.aside .tile.flush *){flex:0 0 auto;max-width:calc(100% - 92px)}
}
}
/* "Приложение для Windows" на телефоне при включённой веб-версии: шаги открываются кнопкой "Показать шаги" - на первом
   экране "Обзора" главное "Открыть веб-версию", приложение для Windows на телефоне не запускается (находка 9 круга 4) */
.app-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.st-toggle{display:none}
/* вид кнопки - как раскрывающаяся строка "Настроить ссылку" ("Реферальная программа", .faq.solo): синий текст и уголок */
@media (max-width:640px){
  .st-toggle{display:inline-flex;align-items:center;gap:9px;min-height:36px;padding:0;border:0;background:transparent;cursor:pointer;
    font-family:var(--ui);font-size:13px;font-weight:500;color:var(--accent-line);white-space:nowrap}
  .st-toggle::after{content:"";width:6px;height:6px;margin-bottom:3px;border-right:1.5px solid var(--accent-line);border-bottom:1.5px solid var(--accent-line);transform:rotate(45deg)}
  .st-toggle:hover{text-decoration:underline}
  #app.fold.open .st-toggle::after{transform:rotate(-135deg);margin-bottom:-3px}
  #app.fold:not(.open) .steps{display:none}
}

/* ---------- пульт: журнал событий (admin.js, VIEWS.journal) ----------
   Список событий - таблица кабинета с разделителями дней (П87 Design Pilot): итог - словом сразу за событием.
   Успех - серым text-label обычного веса; цвет текста ошибки #F0797C и полужирный - только отказу, ошибке сервера и
   успеху с неотправленным письмом. Без плашек (запрет владельца на цветные бейджи; D51 UX TV советует плашку, применён
   запрет). Письма - значок конверта с числом, неотправленные - красным словом.
   Схема события - вертикальная цепочка и на ПК, и на телефоне: кружок шага цвета исхода (ok - успех, fail - отказ,
   skip - серое кольцо, info - серый), линия между кружками; развилка - ромб, невыбранные исходы - отводы вбок с
   условием; письмо - конверт цвета ответа почтового сервера; данные шага - колодец #222222 под шагом. Серыми (#787878)
   остаются только кольца и линии; текст исхода пропущенного шага, смещение времени и невыбранные ветки - text-label
   #A0A0A5 (контраст текста). */
.jr-ok{color:var(--t-label);font-weight:400}
.jr-bad{color:var(--error-text);font-weight:600}
td.jr-oc .jr-out{white-space:nowrap}
a.jr-link{color:var(--t-high);font-weight:600;text-decoration:none;overflow-wrap:anywhere}
a.jr-link:hover{text-decoration:underline}
a.jr-link.mono{font-family:var(--mono);font-size:13px}
table.rt tr.jr-row{cursor:pointer}
table.rt tr.jr-row:hover{background:var(--nav-hover)}
/* событие - 36% ширины (max-width:0 не даёт длинной почте раздвинуть столбец), итог - сразу за ним */
#jr-list td.jr-evc{width:36%;max-width:0}
/* время и письма - по содержимому, свободное место - столбцу итога */
#jr-list td.jr-tight{width:1%}
.jr-who{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jr-msub{display:none}
/* текст только для чтения с экрана: состояние шага словом, подсказка переключателя */
.jr-vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* конверт 16x16, контур 1.3 px цвета text-soft (брендбук, иконография); неотправленное - цвет текста ошибки */
.ml{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;font-weight:500;color:var(--t-label);font-variant-numeric:tabular-nums}
.ml::before{content:"";flex:none;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C9C9CC' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.75' y='3.25' width='12.5' height='9.5' rx='1.5'/%3E%3Cpath d='M2.5 4.5l5.5 4.25 5.5-4.25'/%3E%3C/svg%3E") center/16px 16px no-repeat}
.ml.bad{color:var(--error-text);font-weight:600}
.ml.bad::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F0797C' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.75' y='3.25' width='12.5' height='9.5' rx='1.5'/%3E%3Cpath d='M2.5 4.5l5.5 4.25 5.5-4.25'/%3E%3C/svg%3E")}
.jr-msub .ml{margin-left:9px}
/* счёт ошибок за сутки и «Обновить журнал» круговой стрелкой (брендбук: обновление - стрелкой рядом со значением,
   эталон - кнопка баланса 22x22, значок 13 px #A0A0A5) */
.jr-count{display:flex;align-items:center;gap:6px;min-width:0}
.jr-fails{padding:0;margin:0;border:0;background:transparent;font-family:var(--ui);font-size:13px;font-weight:600;line-height:1.5;color:var(--error-text);cursor:pointer;text-align:left;overflow-wrap:anywhere}
.jr-fails:hover{text-decoration:underline}
.jr-ref{flex:none;display:inline-grid;place-items:center;width:22px;height:22px;padding:0;border:1px solid transparent;border-radius:3px;background:transparent;cursor:pointer}
.jr-ref svg{display:block;width:13px;height:13px}
.jr-ref:hover:enabled{background:var(--raised);border-color:var(--border)}
.jr-ref:focus-visible{outline:0;border-color:var(--accent-line)}
.jr-ref:disabled{opacity:.4;cursor:default}
.jr-filters .qbox{max-width:280px}
.jr-filters .drop{max-width:280px}
.jr-only{gap:9px}
.jr-only .line{color:var(--t-body);cursor:help}
/* отборы, которых нет в полях: строка и текстовая кнопка снятия, без плашки */
.jr-acts{display:flex;flex-direction:column;gap:3px;margin-top:9px}
.jr-act{display:flex;align-items:center;flex-wrap:wrap;gap:0 9px;min-width:0}
.jr-act .line{color:var(--t-body);overflow-wrap:anywhere;min-width:0;max-width:100%}
.jr-em{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.jr-act .btn.text{padding:0}
@container tile (max-width:559px){
  table.rt .jr-msub{display:flex;align-items:center;flex-wrap:wrap}
  #jr-list td.jr-evc{width:auto;max-width:none}
  td.jr-oc .jr-out{white-space:normal;overflow-wrap:anywhere}
  table.rt td.jr-oc{max-width:42vw;text-align:right}
}
@supports not (container-type:inline-size){
@media (max-width:629px){
  table.rt .jr-msub:where(.tile:not(.flush) *){display:flex;align-items:center;flex-wrap:wrap}
  #jr-list td.jr-evc:where(.tile:not(.flush) *){width:auto;max-width:none}
  td.jr-oc .jr-out:where(.tile:not(.flush) *){white-space:normal;overflow-wrap:anywhere}
  table.rt td.jr-oc:where(.tile:not(.flush) *){max-width:42vw;text-align:right}
}
@media (min-width:641px) and (max-width:697px){
  table.rt .jr-msub:where(.tile:not(.flush) *){display:flex;align-items:center;flex-wrap:wrap}
  #jr-list td.jr-evc:where(.tile:not(.flush) *){width:auto;max-width:none}
  td.jr-oc .jr-out:where(.tile:not(.flush) *){white-space:normal;overflow-wrap:anywhere}
  table.rt td.jr-oc:where(.tile:not(.flush) *){max-width:42vw;text-align:right}
}
@media (min-width:861px) and (max-width:1201px){
  table.rt .jr-msub:where(.col .tile:not(.flush) *){display:flex;align-items:center;flex-wrap:wrap}
  #jr-list td.jr-evc:where(.col .tile:not(.flush) *){width:auto;max-width:none}
  td.jr-oc .jr-out:where(.col .tile:not(.flush) *){white-space:normal;overflow-wrap:anywhere}
  table.rt td.jr-oc:where(.col .tile:not(.flush) *){max-width:42vw;text-align:right}
}
@media (min-width:1202px){
  table.rt .jr-msub:where(.col.aside .tile:not(.flush) *){display:flex;align-items:center;flex-wrap:wrap}
  #jr-list td.jr-evc:where(.col.aside .tile:not(.flush) *){width:auto;max-width:none}
  td.jr-oc .jr-out:where(.col.aside .tile:not(.flush) *){white-space:normal;overflow-wrap:anywhere}
  table.rt td.jr-oc:where(.col.aside .tile:not(.flush) *){max-width:42vw;text-align:right}
}
@media (max-width:593px){
  table.rt .jr-msub:where(.tile.flush *){display:flex;align-items:center;flex-wrap:wrap}
  #jr-list td.jr-evc:where(.tile.flush *){width:auto;max-width:none}
  td.jr-oc .jr-out:where(.tile.flush *){white-space:normal;overflow-wrap:anywhere}
  table.rt td.jr-oc:where(.tile.flush *){max-width:42vw;text-align:right}
}
@media (min-width:641px) and (max-width:661px){
  table.rt .jr-msub:where(.tile.flush *){display:flex;align-items:center;flex-wrap:wrap}
  #jr-list td.jr-evc:where(.tile.flush *){width:auto;max-width:none}
  td.jr-oc .jr-out:where(.tile.flush *){white-space:normal;overflow-wrap:anywhere}
  table.rt td.jr-oc:where(.tile.flush *){max-width:42vw;text-align:right}
}
@media (min-width:861px) and (max-width:1165px){
  table.rt .jr-msub:where(.col .tile.flush *){display:flex;align-items:center;flex-wrap:wrap}
  #jr-list td.jr-evc:where(.col .tile.flush *){width:auto;max-width:none}
  td.jr-oc .jr-out:where(.col .tile.flush *){white-space:normal;overflow-wrap:anywhere}
  table.rt td.jr-oc:where(.col .tile.flush *){max-width:42vw;text-align:right}
}
@media (min-width:1166px){
  table.rt .jr-msub:where(.col.aside .tile.flush *){display:flex;align-items:center;flex-wrap:wrap}
  #jr-list td.jr-evc:where(.col.aside .tile.flush *){width:auto;max-width:none}
  td.jr-oc .jr-out:where(.col.aside .tile.flush *){white-space:normal;overflow-wrap:anywhere}
  table.rt td.jr-oc:where(.col.aside .tile.flush *){max-width:42vw;text-align:right}
}
}
@media (max-width:640px){
  .jr-filters .qbox{flex-basis:100%;max-width:none;font-size:16px}
  .jr-filters .drop{flex:1 1 140px;min-width:0;max-width:none}
  /* вид события длиннее периода: «Любой вид события» и «За 90 дней» помещаются без обрезки */
  .jr-filters #jr-kind{flex:2 1 180px}
  .jr-filters #jr-days{flex:1 1 112px}
  .jr-ref{width:32px;height:32px}
}
/* событие: название и итог строкой над колонками, ниже - схема и подробности */
.jr-back{font-size:13px}
.jr-top{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 15px;min-width:0}
.jr-h{margin:0;font-size:17px;line-height:1.35;font-weight:600;color:var(--t-high);overflow-wrap:anywhere;min-width:0}
.jr-h.mono{font-family:var(--mono);font-size:15px}
.jr-h:focus{outline:0}
.jr-top .jr-out{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
/* «События этого аккаунта» и «События этой почты» - под адресом слева, а не растянутыми кнопками */
#jr-ev .r.act .row{align-items:flex-start}
.jr-links{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.jr-links .link{text-align:left;font-size:13px}
.jr-code{font-size:12px}
/* цепочка: линия по центру кружков (x = 9 px), кружок 12 px, отводы развилки - от той же линии */
.chain{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.chain>li{position:relative;padding-left:30px;min-width:0}
.chain>li::before{content:"";position:absolute;left:8px;top:0;bottom:0;width:2px;background:var(--border)}
.chain>li:first-child::before{top:18px}
.chain>li:last-child::before{bottom:auto;height:18px}
.chain>li:only-child::before{display:none}
.nd{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:baseline;width:100%;min-height:36px;padding:8px 0;margin:0;border:0;border-radius:0;background:transparent;color:var(--t-body);font-family:var(--ui);font-size:13px;line-height:1.5;text-align:left}
button.nd{cursor:pointer}
button.nd:hover .nd-name{color:var(--t-white)}
button.nd:focus-visible{outline:1px solid var(--accent-line);outline-offset:2px}
.nd .mk{position:absolute;left:-27px;top:12px;width:12px;height:12px;border-radius:50%;background:var(--t-2)}
.s-ok>.nd .mk{background:var(--success)}
.s-fail>.nd .mk{background:var(--error-text)}
.s-skip>.nd .mk{background:var(--tile);border:2px solid var(--t-2)}
.nd-dec>.nd .mk{left:-26px;top:13px;width:10px;height:10px;border-radius:2px;transform:rotate(45deg);background:var(--selected);border:2px solid var(--t-label)}
.nd-mail>.nd .mk{left:-30px;top:9px;width:18px;height:18px;border-radius:0;background:var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2330A46C' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.75' y='3.25' width='12.5' height='9.5' rx='1.5'/%3E%3Cpath d='M2.5 4.5l5.5 4.25 5.5-4.25'/%3E%3C/svg%3E") center/16px 16px no-repeat}
.nd-mail.s-fail>.nd .mk{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F0797C' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.75' y='3.25' width='12.5' height='9.5' rx='1.5'/%3E%3Cpath d='M2.5 4.5l5.5 4.25 5.5-4.25'/%3E%3C/svg%3E")}
/* письмо отправлено повторно: серый конверт, нейтральный текст - не сбой */
.nd-mail.s-retry>.nd .mk{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A0A0A5' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.75' y='3.25' width='12.5' height='9.5' rx='1.5'/%3E%3Cpath d='M2.5 4.5l5.5 4.25 5.5-4.25'/%3E%3C/svg%3E")}
.nd-end>.nd .mk{left:-28px;top:11px;width:14px;height:14px;background:var(--tile);border:2px solid var(--error-text)}
.nd-end.s-ok>.nd .mk{border-color:var(--success)}
.nd-main{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 9px;min-width:0}
.nd-name{color:var(--t-high);font-weight:500;overflow-wrap:anywhere}
.nd-name.mono{font-family:var(--mono);font-size:13px}
.nd-oc{color:var(--t-body);overflow-wrap:anywhere}
.s-fail>.nd .nd-oc{color:var(--error-text);font-weight:600}
.s-skip>.nd .nd-oc,.s-info>.nd .nd-oc{color:var(--t-label)}
.nd-mail.s-ok>.nd .nd-oc{cursor:help}
.nd-oc.nd-pick{color:var(--t-high);font-weight:600}
.nd-end>.nd .nd-oc.jr-ok{color:var(--t-label);font-weight:400}
.nd-t{font-size:12px;color:var(--t-label);font-variant-numeric:tabular-nums;white-space:nowrap}
/* шаг с данными: уголок за названием, как у раскрывающихся строк кабинета */
button.nd .nd-main::after{content:"";flex:none;align-self:center;width:6px;height:6px;margin:0 0 3px 0;border-right:1.5px solid var(--t-label);border-bottom:1.5px solid var(--t-label);transform:rotate(45deg)}
button.nd[aria-expanded="true"] .nd-main::after{transform:rotate(-135deg);margin:3px 0 0 0}
.nd-sub{margin:-6px 0 8px;font-size:12px;color:var(--t-label);overflow-wrap:anywhere}
.nd-lines{display:flex;flex-direction:column;gap:2px;margin:-6px 0 10px;font-size:12px;color:var(--t-body);overflow-wrap:anywhere}
.nd-k{color:var(--t-label)}
/* невыбранные исходы развилки: отвод от линии цепочки, серое кольцо; исход и условие - text-label */
.alts{list-style:none;margin:-4px 0 8px;padding:0;display:flex;flex-direction:column;gap:2px}
.alts>li{position:relative;padding:2px 0 2px 20px;min-height:22px;font-size:12px;line-height:1.5;color:var(--t-label);overflow-wrap:anywhere}
.alts>li::before{content:"";position:absolute;left:-21px;top:12px;width:25px;height:1px;background:var(--border-strong)}
.alts>li::after{content:"";position:absolute;left:4px;top:8px;width:9px;height:9px;border-radius:50%;border:1.5px solid var(--t-2);background:var(--tile)}
.alt-l{font-weight:500}
.nd-data{margin:-4px 0 10px;padding:9px 12px;background:var(--well);border:1px solid var(--hairline);border-radius:6px;min-width:0}
.kv{display:flex;flex-direction:column;gap:3px;font-size:12px;min-width:0}
.kv.nest{padding-left:18px}
.kv-r{display:grid;grid-template-columns:180px minmax(0,1fr);gap:0 12px;align-items:baseline}
.kv-k{color:var(--t-label);overflow-wrap:anywhere}
.kv-k.mono{font-family:var(--mono)}
.kv-v{color:var(--t-body);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@container tile (max-width:479px){
  .kv-r{grid-template-columns:minmax(0,130px) minmax(0,1fr)}
}
@supports not (container-type:inline-size){
@media (max-width:549px){
  .kv-r:where(.tile:not(.flush) *){grid-template-columns:minmax(0,130px) minmax(0,1fr)}
}
@media (min-width:861px) and (max-width:1121px){
  .kv-r:where(.col .tile:not(.flush) *){grid-template-columns:minmax(0,130px) minmax(0,1fr)}
}
@media (min-width:1122px){
  .kv-r:where(.col.aside .tile:not(.flush) *){grid-template-columns:minmax(0,130px) minmax(0,1fr)}
}
@media (max-width:513px){
  .kv-r:where(.tile.flush *){grid-template-columns:minmax(0,130px) minmax(0,1fr)}
}
@media (min-width:861px) and (max-width:1085px){
  .kv-r:where(.col .tile.flush *){grid-template-columns:minmax(0,130px) minmax(0,1fr)}
}
@media (min-width:1086px){
  .kv-r:where(.col.aside .tile.flush *){grid-template-columns:minmax(0,130px) minmax(0,1fr)}
}
}

/* ---------- высокая контрастность (forced-colors: контрастная тема Windows) ----------
   Браузер заменяет цвета системными (фон - Canvas, текст - CanvasText) и снимает тени и градиенты. Пропадало то, что
   нарисовано только фоном, тенью или светлой картинкой (приёмка 24.10.2026, U-Н5): выключатели уведомлений «Профиля»,
   значок «Завершить сеанс» (светлый крестик на белом Canvas), логотип меню (белая картинка). Здесь они рисуются
   системными цветами: рамка и ручка выключателя - ButtonText, «включено» - Highlight; значки и логотип - маской своей
   картинки, залитой цветом текста. Свои цвета не задаются: тема человека остаётся его темой */
@media (forced-colors:active){
  .switch::before{forced-color-adjust:none;box-sizing:border-box;background:Canvas;border:1px solid ButtonText;box-shadow:none}
  .switch::after,.switch:hover::after{forced-color-adjust:none;background:ButtonText}
  .switch[aria-checked="true"]::before{background:Highlight;border-color:Highlight}
  .switch[aria-checked="true"]::after,.switch[aria-checked="true"]:hover::after{background:HighlightText}
  .switch:focus-visible::before{outline-color:CanvasText}
  /* значок «Завершить сеанс»: картинка фона - маской слоя ::before (подсказка data-tip занимает ::after) */
  .x{background-image:none}
  .x::before{content:"";display:block;width:14px;height:14px;margin:auto;forced-color-adjust:none;background:ButtonText;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f2f2f2' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") center/14px 14px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f2f2f2' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") center/14px 14px no-repeat}
  .x:disabled::before{background:GrayText}
  .btn.gg::before{forced-color-adjust:none;background:ButtonText;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center/contain no-repeat}
  .btn.tg::before{forced-color-adjust:none;background:ButtonText;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23DFDFDF' d='M17.6 3.2 2.9 8.9c-.8.3-.8 1.1 0 1.4l3.6 1.2 1.4 4.4c.2.6.9.7 1.3.3l2-1.9 3.6 2.7c.6.4 1.3.1 1.5-.6l2.6-12.1c.2-.9-.5-1.4-1.3-1.1zM8.3 11.3l6.4-4-4.9 5.1-.3 2.5-1.2-3.6z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23DFDFDF' d='M17.6 3.2 2.9 8.9c-.8.3-.8 1.1 0 1.4l3.6 1.2 1.4 4.4c.2.6.9.7 1.3.3l2-1.9 3.6 2.7c.6.4 1.3.1 1.5-.6l2.6-12.1c.2-.9-.5-1.4-1.3-1.1zM8.3 11.3l6.4-4-4.9 5.1-.3 2.5-1.2-3.6z'/%3E%3C/svg%3E") center/contain no-repeat}
  .btn.cp::before{forced-color-adjust:none;background:ButtonText;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23f2f2f2' fill-rule='evenodd' d='M4 2a2 2 0 00-2 2v9a2 2 0 002 2h2v2a2 2 0 002 2h9a2 2 0 002-2V8a2 2 0 00-2-2h-2V4a2 2 0 00-2-2H4zm9 4V4H4v9h2V8a2 2 0 012-2h5zM8 8h9v9H8V8z'/%3E%3C/svg%3E") center/16px 16px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23f2f2f2' fill-rule='evenodd' d='M4 2a2 2 0 00-2 2v9a2 2 0 002 2h2v2a2 2 0 002 2h9a2 2 0 002-2V8a2 2 0 00-2-2h-2V4a2 2 0 00-2-2H4zm9 4V4H4v9h2V8a2 2 0 012-2h5zM8 8h9v9H8V8z'/%3E%3C/svg%3E") center/16px 16px no-repeat}
  .ml::before,.ml.bad::before{forced-color-adjust:none;background:CanvasText;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C9C9CC' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.75' y='3.25' width='12.5' height='9.5' rx='1.5'/%3E%3Cpath d='M2.5 4.5l5.5 4.25 5.5-4.25'/%3E%3C/svg%3E") center/16px 16px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C9C9CC' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.75' y='3.25' width='12.5' height='9.5' rx='1.5'/%3E%3Cpath d='M2.5 4.5l5.5 4.25 5.5-4.25'/%3E%3C/svg%3E") center/16px 16px no-repeat}
  /* значки меню - цветом подписи пункта */
  .nav svg,.nav[aria-current="page"] svg{stroke:currentColor}
  .nav[aria-current="page"]::before{forced-color-adjust:none;background:Highlight}
  /* логотип - белая картинка PNG: на его месте маска той же картинки цветом текста */
  .brand img,.brand-link img{display:none}
  .brand::before{content:"";display:block;flex:none;width:28px;height:28px;forced-color-adjust:none;background:CanvasText;-webkit-mask:url("img/logo.png") center/contain no-repeat;mask:url("img/logo.png") center/contain no-repeat}
  .brand-link::before{content:"";flex:none;width:24px;height:24px;forced-color-adjust:none;background:CanvasText;-webkit-mask:url("img/logo.png") center/contain no-repeat;mask:url("img/logo.png") center/contain no-repeat}
}
