/* Erised — «Ночное зеркало» для вход/кабинет/приложение (П6 шаг 2, Б958, 12.11.2026).
   Подключается сервером (sub_server: _csp_nonce_mw → _зеркало_вставить) после <title> на /portal*, /cabinet*, /app*.
   Ложится ПОВЕРХ старых стилей страниц: старые цвета (неон #00E5FF→#8B5CF6, радиальные пятна) перекрываются здесь,
   вёрстка страниц не трогается. Нет файла — страница остаётся в старом виде (ничего не ломается).
   Возврат: убрать файл website/zerkalo.css (или вернуть sub_server.py.pre_b958). Палитра — как website/n/n.css. */
@font-face{font-family:"Literata";src:url("/app/z/literata-600.woff2?v=01ede043") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Onest";src:url("/app/z/onest-var.woff2?v=f8c763c2") format("woff2");font-weight:400 600;font-style:normal;font-display:swap}
@font-face{font-family:"Onest-fb";src:local("Arial"),local("Helvetica");size-adjust:101%;ascent-override:96%;descent-override:25%}
:root{--z-bg:#0C0D11;--z-surface:#14161C;--z-line:#262932;--z-text:#ECE8DF;--z-muted:#A29F97;--z-accent:#9FE3DA;--z-hover:#B8EBE4;--z-ink:#0C0D11;
  --z-serif:"Literata",Georgia,serif;--z-sans:"Onest","Onest-fb",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  /* старые переменные страниц → новая палитра (кабинет, /app) */
  --bg:#0C0D11;--card:#14161C;--line:#262932;--ac:#9FE3DA;--ac2:#9FE3DA;--vi:#9FE3DA;--mut:#A29F97;--tx:#ECE8DF;--grad:#9FE3DA;--accent:#9FE3DA}
html{scrollbar-color:#262932 transparent!important}
::-webkit-scrollbar-thumb{background:#262932!important}
body{background:var(--z-bg)!important;color:var(--z-text)!important;font-family:var(--z-sans)!important;-webkit-font-smoothing:antialiased}
h1,h2{font-family:var(--z-serif)!important;font-weight:600!important;letter-spacing:0!important;color:var(--z-text)}
a{color:var(--z-accent)}
/* знак-зеркало: без свечения, цвет акцента */
svg{filter:none!important}
svg[style*="#00E5FF"],.brand svg{color:var(--z-accent)!important}
.brand{font-family:var(--z-serif)}
.brand small{font-family:var(--z-sans)}
/* карточки: поверхность, тонкая линия, без теней и переливов */
.card,.c{background:var(--z-surface)!important;border:1px solid var(--z-line)!important;box-shadow:none!important;border-radius:16px!important}
.card:first-of-type{border-color:var(--z-line)!important}
.mut,.m,.meta,.foot{color:var(--z-muted)!important}
/* кнопки: один акцент, без градиента и свечения */
a.btn,button.btn,.btn,.c button,button[type=submit]{background:var(--z-accent)!important;color:var(--z-ink)!important;box-shadow:none!important;border:1px solid transparent!important;
  border-radius:999px!important;font-family:var(--z-sans)!important;font-weight:600!important;transform:none!important;transition:background-color .15s,border-color .15s}
a.btn:hover,button.btn:hover,.c button:hover{background:var(--z-hover)!important}
a.btn.alt,button.btn.alt,a.btn.ghost,.btn.dis{background:transparent!important;color:var(--z-text)!important;border:1px solid var(--z-line)!important}
a.btn.alt:hover,button.btn.alt:hover,a.btn.ghost:hover{border-color:var(--z-muted)!important}
.btn.dis{color:var(--z-muted)!important}
a.btn.gr,button.btn.gr{background:var(--z-accent)!important;color:var(--z-ink)!important}
.tg{color:var(--z-accent)!important}
/* поля ввода и вкладки входа */
input,select,textarea{background:var(--z-bg)!important;border:1px solid var(--z-line)!important;color:var(--z-text)!important;font-family:var(--z-sans)!important}
input:focus,select:focus,textarea:focus{outline:2px solid var(--z-accent);outline-offset:1px}
:focus-visible{outline:2px solid var(--z-accent);outline-offset:3px}
.tab{background:var(--z-bg)!important;border:1px solid var(--z-line);border-radius:999px!important;padding:3px}
.tab a{border-radius:999px;color:var(--z-muted)!important}
.tab a.on{background:var(--z-surface)!important;color:var(--z-text)!important;box-shadow:inset 0 0 0 1px var(--z-line)!important}
/* кабинет: полоса трафика, выбор устройства, метки, адрес подписки */
.bar{background:var(--z-line)!important}
.bar>i{background:var(--z-accent)!important;box-shadow:none!important}
.dev{background:transparent!important;border:1px solid var(--z-line)!important;color:var(--z-text)!important;border-radius:999px!important}
.dev:hover,.dev.on{background:var(--z-accent)!important;color:var(--z-ink)!important;border-color:var(--z-accent)!important;box-shadow:none!important}
.ok{background:rgba(159,227,218,.10)!important;color:var(--z-accent)!important;border:1px solid rgba(159,227,218,.28)!important}
.sub{background:var(--z-bg)!important;border-color:var(--z-line)!important;color:var(--z-muted)!important}
/* старые встроенные стили страниц (style="…"): неон и тёмно-синие поверхности → палитра зеркала */
[style*="linear-gradient(135deg,#00E5FF"],[style*="background:#9FE3DA"],[style*="linear-gradient(135deg, #00E5FF"]{background:var(--z-accent)!important;color:var(--z-ink)!important;box-shadow:none!important;border-radius:999px!important}
[style*="background:#1778AE"]{background:transparent!important;color:var(--z-text)!important;border:1px solid var(--z-line)!important;border-radius:999px!important}
[style*="background:#0E1018"],[style*="background:#14161C"],[style*="background:#141a26"],[style*="background:#11161e"]{background:var(--z-surface)!important;border-color:var(--z-line)!important;box-shadow:none!important}
[style*="rgba(0,229,255,.18)"],[style*="rgba(0,229,255,.22)"],[style*="border:1px solid #1e2636"]{border-color:var(--z-line)!important}
[style*="background:#161927"]{background:transparent!important;border:1px solid var(--z-line)!important}
[style*="color:#8a97ad"],[style*="color:#8E94A0"]{color:var(--z-muted)!important}
[style*="color:#00E5FF"]:not(svg){color:var(--z-accent)!important}
[style*="color:#2BD976"]{color:var(--z-accent)!important}
[style*="background:#0d1220"]{background:var(--z-bg)!important;border-color:var(--z-line)!important}
[style*="background:#37d39b"]{background:var(--z-accent)!important;color:var(--z-ink)!important;border-radius:999px!important}

/* Б974b: «Показать пароль» — тихая ссылка, не вторая главная кнопка (один акцент) */
.c button.pwT,.c button.pwT:hover,button.pwT,button.pwT:hover{background:transparent!important;color:var(--z-muted)!important;border:0!important;box-shadow:none!important;width:auto!important;padding:6px 2px!important;margin:0 0 4px!important;font-weight:400!important;font-size:13px!important;text-decoration:underline;text-underline-offset:3px}

/* Б979 (П41-7): одна шапка и подвал на входе, кабинете и /app — как у главной. Разметку ставит сервер (_зеркало_рамка). */
body[data-zr]{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important}
body[data-zr]>*:not(.zt):not(.zf){box-sizing:border-box;flex:0 0 auto}
body[data-zr]>.c{max-width:436px!important}   /* вход: та же ширина, что до рамки (380 + поля 2×28) */
.zt,.zf{width:100%;max-width:960px;margin:0 auto;box-sizing:border-box;font-family:var(--z-sans)}
.zt{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:4px 0 18px;margin-bottom:20px;border-bottom:1px solid var(--z-line)}
.zt__b{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--z-text)!important;text-decoration:none;font-family:var(--z-serif);font-size:19px}
.zt__b svg{color:var(--z-accent)!important}
.zt__b b{font-weight:600}
.zt__n{display:flex;gap:4px;flex-wrap:wrap}
.zt__n a,.zf nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;color:var(--z-muted)!important;text-decoration:none;font-size:14px;border-radius:999px}
.zt__n a:hover,.zf nav a:hover{color:var(--z-text)!important}
.zf{margin-top:28px;padding:16px 0 4px;border-top:1px solid var(--z-line);text-align:center}
.zf nav{display:flex;justify-content:center;flex-wrap:wrap;gap:0}
.zf p{margin:8px 0 0;color:var(--z-muted);font-size:12px}
@media (max-width:420px){.zt{padding-bottom:12px}.zt__n a{padding:0 8px;font-size:13px}.zf nav a{padding:0 7px;font-size:13px}}
