/* ============================================================
   AluHub — тёмный строгий интерфейс со стеклом (в духе Liquid Glass iOS).
   Стекло = размытие и насыщение того, что под ним (backdrop-filter) + светлая кромка,
   которая ярче на углах, как у толстого стекла + блик за курсором/пальцем (glass.js).
   В Chromium поверх — лёгкое преломление фона SVG-фильтром (класс lg-refract на <html>).
   Один акцент — системный синий iOS; остальное — оттенки белого на чёрном.
   ============================================================ */

@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('../fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    color-scheme: dark;
    /* На Apple — системный SF, на остальных — Inter (одинаково на Windows и Android) */
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
    --bg: #030406;
    --text: #f5f5f7;
    --text-2: rgba(235, 235, 245, .62);
    --text-3: rgba(235, 235, 245, .36);
    --hair: rgba(255, 255, 255, .09);
    --accent: #0a84ff;
    --accent-hi: #3d9bff;
    --danger: #ff453a;
    --ok: #30d158;
    --warn: #ffd60a;
    --field: rgba(255, 255, 255, .055);
    --field-hover: rgba(255, 255, 255, .08);
    --blur: 30px;
    --r-xl: 30px;
    --r-lg: 24px;
    --r: 18px;
    --r-sm: 13px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* hidden сильнее display у кнопок и блоков (иначе .lg-btn с inline-flex остаётся видимым) */
[hidden] { display: none !important; }
/* Фон только у html: фон body закрыл бы слой с пятнами света (он под содержимым, z-index < 0) */
html { background: var(--bg); }
html, body { margin: 0; min-height: 100%; }
body {
    color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; letter-spacing: -.011em;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
    min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
a { color: var(--accent-hi); text-decoration: none; }
a:hover { color: #6db3ff; }
::selection { background: rgba(10, 132, 255, .45); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- Фон: чёрный с приглушёнными пятнами света — стеклу есть что преломлять ---------- */
.lg-backdrop { position: fixed; inset: -25%; z-index: -2; pointer-events: none;
    background:
        radial-gradient(38% 32% at 20% 24%, rgba(48, 86, 255, .34), transparent 70%),
        radial-gradient(30% 28% at 80% 16%, rgba(0, 170, 205, .22), transparent 70%),
        radial-gradient(42% 38% at 72% 82%, rgba(112, 64, 255, .26), transparent 70%),
        radial-gradient(26% 24% at 28% 82%, rgba(255, 255, 255, .06), transparent 70%);
    filter: blur(48px) saturate(115%);
    animation: lg-drift 48s var(--ease) infinite alternate; }
@keyframes lg-drift { to { transform: translate3d(3%, -2.5%, 0) rotate(7deg) scale(1.06); } }
/* Тонкая сетка — строгость; гаснет к краям */
.lg-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 25%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 25%, transparent 80%); }

/* ---------- Стекло ---------- */
.glass {
    position: relative; isolation: isolate; border-radius: var(--r-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, .105) 0%, rgba(255, 255, 255, .035) 48%, rgba(255, 255, 255, .06) 100%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(185%) brightness(1.06);
    backdrop-filter: blur(var(--blur)) saturate(185%) brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),     /* блик по верхней кромке */
        inset 0 -1px 0 rgba(255, 255, 255, .035),
        inset 0 0 28px rgba(255, 255, 255, .025),   /* толща стекла */
        0 1px 2px rgba(0, 0, 0, .45),
        0 32px 64px -28px rgba(0, 0, 0, .8);
}
/* Кромка: ярче у верхнего левого и нижнего правого угла */
.glass::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .09) 26%, rgba(255, 255, 255, 0) 50%,
                rgba(255, 255, 255, .05) 74%, rgba(255, 255, 255, .30));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
/* Блик за курсором/пальцем: glass.js ставит --mx, --my и --glow */
.glass::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, .11), transparent 62%);
    opacity: var(--glow, 0); transition: opacity .35s var(--ease);
}
.glass > * { position: relative; z-index: 2; }
/* Chromium: преломление фона по краю стекла */
.lg-refract .glass { -webkit-backdrop-filter: url(#lg-refract) blur(var(--blur)) saturate(185%) brightness(1.06);
                     backdrop-filter: url(#lg-refract) blur(var(--blur)) saturate(185%) brightness(1.06); }
/* Нет поддержки размытия — плотный тёмный фон вместо прозрачного */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass { background: rgba(28, 30, 36, .94); }
}
@media (prefers-reduced-transparency: reduce) {
    .glass { background: rgba(28, 30, 36, .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Верхняя панель ---------- */
.lg-top { position: sticky; top: 0; z-index: 50; padding: 12px 16px 0; }
.lg-top-bar { max-width: 1080px; margin: 0 auto; height: 56px; padding: 0 10px 0 16px; border-radius: 999px;
    display: flex; align-items: center; gap: 12px; }
.lg-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.lg-brand:hover { color: var(--text); }
.lg-brand-mark { width: 32px; height: 32px; border-radius: 9px; display: block; object-fit: cover;
    box-shadow: 0 4px 16px -4px rgba(70, 110, 255, .6); }
.lg-brand-sub { color: var(--text-3); font-weight: 500; margin-left: -4px; }
.lg-top-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.lg-top-link { color: var(--text-2); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.lg-top-link:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.lg-theme-toggle { appearance: none; border: 0; background: none; font-size: 17px; line-height: 1; cursor: pointer; }

/* ---------- Кнопки ---------- */
.lg-btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
    height: 48px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    color: var(--text); text-decoration: none; transition: transform .18s var(--ease), filter .2s, background .2s, opacity .2s;
    -webkit-tap-highlight-color: transparent; user-select: none; white-space: nowrap; }
.lg-btn:active { transform: scale(.97); }
.lg-btn:disabled { opacity: .55; pointer-events: none; }
.lg-btn-block { width: 100%; }
.lg-btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.lg-btn-primary { color: #fff;
    background: linear-gradient(180deg, #2d97ff 0%, #0a7aff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(0, 0, 0, .18), 0 10px 26px -10px rgba(10, 132, 255, .75); }
.lg-btn-primary:hover { filter: brightness(1.08); color: #fff; }
.lg-btn-glass { background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.lg-btn-glass:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.lg-btn-plain { background: none; color: var(--accent-hi); height: auto; padding: 6px 4px; font-weight: 500; }
.lg-btn-plain:hover { color: #6db3ff; }
.lg-btn-danger { background: rgba(255, 69, 58, .14); color: #ff6961; box-shadow: inset 0 0 0 1px rgba(255, 69, 58, .28); }
.lg-btn-danger:hover { background: rgba(255, 69, 58, .2); color: #ff7a72; }

/* ---------- Поля ---------- */
.lg-field { display: block; margin-bottom: 14px; }
.lg-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin: 0 0 7px 4px; }
.lg-input { width: 100%; height: 50px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--text);
    background: var(--field); border: 1px solid var(--hair); border-radius: var(--r-sm); outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); transition: border-color .2s, background .2s, box-shadow .2s; }
.lg-input::placeholder { color: var(--text-3); }
.lg-input:hover { background: var(--field-hover); }
.lg-input:focus { border-color: rgba(10, 132, 255, .9); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(10, 132, 255, .22); }
.lg-textarea { height: auto; min-height: 360px; padding: 14px 16px; line-height: 1.55; font-size: 14.5px; resize: vertical; }
.lg-input-code { text-align: center; font-size: 26px; font-weight: 600; letter-spacing: .5em; padding-left: calc(16px + .5em); font-variant-numeric: tabular-nums; }
.lg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lg-hint { font-size: 12.5px; color: var(--text-3); margin: 6px 0 0 4px; }

/* ---------- Пароль: показать/скрыть, индикатор сложности ---------- */
.lg-pwd-wrap { position: relative; }
.lg-pwd-wrap .lg-input { padding-right: 46px; }
/* Моноширинный шрифт — чтобы поле не «дёргалось» по ширине при переборе символов анимацией показа/скрытия */
.lg-pwd-wrap .lg-input { font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; letter-spacing: .02em; }
.lg-pwd-eye { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 42px; display: grid; place-items: center;
    background: transparent; border: none; border-radius: var(--r-sm); color: var(--text-3); cursor: pointer; transition: color .15s, background .15s; }
.lg-pwd-eye:hover { color: var(--text-2); background: rgba(255, 255, 255, .06); }
.lg-pwd-eye svg { pointer-events: none; }
.lg-pwd-meter { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .2s var(--ease), opacity .2s var(--ease), margin .2s var(--ease); }
.lg-pwd-meter.is-visible { max-height: 40px; opacity: 1; margin-top: 8px; }
.lg-pwd-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .09); overflow: hidden; margin: 0 4px; }
.lg-pwd-bar span { display: block; height: 100%; border-radius: 2px; transition: width .2s var(--ease), background-color .2s; }
.lg-pwd-bar span.lvl-0 { width: 15%; background: var(--danger); }
.lg-pwd-bar span.lvl-1 { width: 35%; background: var(--danger); }
.lg-pwd-bar span.lvl-2 { width: 60%; background: var(--warn); }
.lg-pwd-bar span.lvl-3 { width: 82%; background: var(--accent); }
.lg-pwd-bar span.lvl-4 { width: 100%; background: var(--ok); }
.lg-pwd-text { font-size: 12px; margin: 5px 0 0 4px; }
.lg-pwd-text.lvl-0, .lg-pwd-text.lvl-1 { color: #ffb3ae; }
.lg-pwd-text.lvl-2 { color: #ffe08a; }
.lg-pwd-text.lvl-3 { color: var(--accent-hi); }
.lg-pwd-text.lvl-4 { color: #a6f0b8; }
.lg-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; margin: 4px 0 16px; }
.lg-check input { appearance: none; flex-shrink: 0; width: 22px; height: 22px; margin: 0; border-radius: 7px; cursor: pointer;
    background: var(--field); border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.lg-check input::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px) scale(0); transition: transform .18s var(--ease); }
.lg-check input:checked { background: var(--accent); border-color: var(--accent); }
.lg-check input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }

/* ---------- Сообщения ---------- */
.lg-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 16px; line-height: 1.45; }
.lg-alert-error { background: rgba(255, 69, 58, .12); color: #ffb3ae; box-shadow: inset 0 0 0 1px rgba(255, 69, 58, .3); }
.lg-alert-ok { background: rgba(48, 209, 88, .12); color: #a6f0b8; box-shadow: inset 0 0 0 1px rgba(48, 209, 88, .28); }
.lg-alert-info { background: rgba(10, 132, 255, .12); color: #b5d8ff; box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .3); }

/* ---------- Кнопка «Вернуться в WashDesk» (?from=) ---------- */
.lg-backbar { display: flex; justify-content: center; padding: 10px 16px 0; }
.lg-backbar-link { font-size: 13.5px; color: var(--text-2); padding: 6px 12px; border-radius: 999px; background: var(--field); border: 1px solid var(--hair); }
.lg-backbar-link:hover { color: var(--text); background: var(--field-hover); }

/* ---------- Связь (js/net.js): плашка внизу, только когда что-то не так ---------- */
.hub-net { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2000;
    width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: var(--r-sm);
    background: color-mix(in srgb, var(--bg) 86%, var(--text) 14%); color: var(--text); border: 1px solid var(--hair); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .45); font-size: 13.5px; }
.hub-net[hidden] { display: none; }
.hub-net-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: #cbd5e1; }
.hub-net[data-tone="bad"] .hub-net-dot { background: #f87171; }
.hub-net[data-tone="warn"] .hub-net-dot { background: #fbbf24; }
.hub-net-text { flex: 1; min-width: 0; color: var(--text-2); }
.hub-net-text b { color: var(--text); }
.hub-net-btn { border: 0; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; color: #fff; background: var(--accent, #0a7aff); cursor: pointer; white-space: nowrap; }

/* ---------- Экран входа / регистрации ---------- */
.lg-main { flex: 1; width: 100%; }
.lg-auth { min-height: calc(100vh - 140px); min-height: calc(100dvh - 140px); display: grid; place-items: center; padding: 28px 16px 40px; }
.lg-card { width: min(420px, 100%); padding: 32px 28px 28px; border-radius: var(--r-xl); }
.lg-card-wide { width: min(560px, 100%); }
.lg-card-head { text-align: center; margin-bottom: 26px; }
.lg-card-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; }
.lg-title { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 650; letter-spacing: -.03em; }
.lg-sub { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.lg-divider { height: 1px; background: var(--hair); margin: 22px 0; }
.lg-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-2); }
.lg-links { display: flex; justify-content: space-between; align-items: center; margin: -2px 0 18px; font-size: 14px; }
.lg-steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; }
.lg-steps span { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.lg-steps span.is-on { background: var(--text); }

/* «Продолжить как» */
.lg-who { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); margin-bottom: 16px; }
.lg-who-name { font-weight: 600; font-size: 16px; }
.lg-who-meta { color: var(--text-2); font-size: 13px; }

/* ---------- Аватар ---------- */
.lg-avatar { --s: 44px; position: relative; width: var(--s); height: var(--s); flex-shrink: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    font-weight: 600; font-size: calc(var(--s) * .38); color: #fff; letter-spacing: 0;
    background: linear-gradient(145deg, #5a6478, #2a3040); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(255, 255, 255, .08); }
.lg-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lg-top-link .lg-avatar { --s: 30px; }
.lg-avatar-xl { --s: 88px; }

/* ---------- Списки в стиле настроек iOS ---------- */
.lg-section-title { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 26px 0 8px 18px; }
.lg-list { border-radius: var(--r-lg); overflow: hidden; }
.lg-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-height: 56px; color: var(--text); position: relative;
    background: none; border: 0; width: 100%; text-align: left; font: inherit; cursor: default; }
a.lg-item, button.lg-item { cursor: pointer; transition: background .2s; }
a.lg-item:hover, button.lg-item:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.lg-item + .lg-item::before { content: ''; position: absolute; top: 0; left: 18px; right: 0; height: 1px; background: var(--hair); }
.lg-item-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; flex-shrink: 0;
    background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.lg-item-body { flex: 1; min-width: 0; }
.lg-item-title { font-size: 15.5px; font-weight: 500; }
.lg-item-sub { font-size: 13px; color: var(--text-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }
.lg-item-value { color: var(--text-2); font-size: 15px; }
.lg-chev { color: var(--text-3); font-size: 18px; line-height: 1; }
.lg-badge { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(48, 209, 88, .16); color: #6ee38b; }

/* ---------- Профиль ---------- */
.lg-page { max-width: 640px; margin: 0 auto; padding: 28px 16px 56px; }
.lg-profile { text-align: center; padding: 30px 20px 26px; border-radius: var(--r-xl); }
.lg-profile .lg-avatar { margin: 0 auto 14px; }
.lg-profile-name { font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.lg-profile-meta { color: var(--text-2); margin-top: 4px; }
.lg-back { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-hi); font-size: 15px; margin-bottom: 14px; }
/* Узкие страницы аккаунта и карточки на всю ширину (вместо style="…" в разметке) */
.lg-page-sm { max-width: 480px; }
.lg-page-md { max-width: 520px; }
.lg-card-full { width: 100%; }
.lg-card-full + .lg-card-full { margin-top: 16px; }
.lg-title-sm { font-size: 20px; }
.lg-gap-top { margin-top: 12px; }
.lg-gap-top-sm { margin-top: 8px; }
.lg-gap-bottom { margin-bottom: 12px; }
.lg-block { display: block; }
.lg-inline { display: flex; gap: 10px; }
.lg-btn-auto { flex: none; }
.lg-stack { display: grid; gap: 10px; }

/* Выбор аккаунта (несколько аккаунтов на устройстве) */
.lg-accounts { display: grid; gap: 10px; }
.lg-account-row { display: flex; align-items: center; gap: 8px; }
.lg-account { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 0; border-radius: var(--r);
    color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .15s var(--ease); }
.lg-account:active { transform: scale(.985); }
.lg-account-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lg-account-name { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-account-meta { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-account-x { width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 50%; cursor: pointer; font-size: 14px;
    color: var(--text-2); background: rgba(255, 255, 255, .06); }
.lg-account-x:hover { color: #ff6961; background: rgba(255, 69, 58, .14); }
.lg-account-pick { cursor: pointer; }
.lg-account-pick input { position: absolute; opacity: 0; pointer-events: none; }
.lg-account-check { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: transparent; box-shadow: inset 0 0 0 1.5px var(--line, rgba(255,255,255,.2)); transition: background .15s, color .15s; }
.lg-account-pick:has(input:checked) { box-shadow: inset 0 0 0 1.5px rgba(10, 132, 255, .8); }
.lg-account-pick:has(input:checked) .lg-account-check { background: #0a84ff; color: #fff; box-shadow: none; }

/* Вход по QR: белая плашка — камера телефона уверенно читает тёмный код на светлом */
.lg-qr { text-align: center; padding: 6px 0 4px; }
.lg-qr-code { width: 232px; height: 232px; margin: 4px auto 14px; padding: 16px; border-radius: 22px; background: #fff;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .25); transition: opacity .25s, filter .25s; }
.lg-qr-code img, .lg-qr-code canvas { width: 200px !important; height: 200px !important; display: block; }
.lg-qr-code.is-dim { opacity: .25; filter: blur(2px); }
.lg-qr-text { font-size: 14px; color: var(--text-2); line-height: 1.5; max-width: 320px; margin: 0 auto; }
.lg-qr-timer { font-size: 12.5px; color: var(--text-3); margin: 8px 0 10px; font-variant-numeric: tabular-nums; }
/* Подтверждение входа на телефоне */
.lg-qr-device { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); margin-bottom: 14px; text-align: left; }
.lg-qr-device .lg-item-icon { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }

/* Пункт 5: второй шаг входа (/login/confirm) */
.lg-code-input { text-align: center; font-size: 26px; letter-spacing: .35em; font-variant-numeric: tabular-nums;
    font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }
.lg-wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--text-3); }
.lg-wait[hidden] { display: none; }
.lg-wait-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #0a84ff); animation: lg-wait 1.2s ease-in-out infinite; }
@keyframes lg-wait { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .lg-wait-dot { animation: none; } }
/* Блокировка отпечатком/лицом (js/applock.js) — непрозрачный экран поверх всего */
html.alh-locked, html.alh-locked body { overflow: hidden; }
.alh-applock { position: fixed; inset: 0; z-index: 4500; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
    background: var(--bg, #05070a); color: var(--text, #f2f2f7); }
.alh-applock-box { width: 100%; max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.alh-applock-logo { width: 64px; height: 64px; border-radius: 16px; }
.alh-applock-title { font-size: 20px; font-weight: 600; }
.alh-applock-bio { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 0; font: inherit;
    font-size: 16px; font-weight: 600; color: #fff; background: var(--accent, #0a84ff); cursor: pointer; }
.alh-applock-box.shake { animation: alh-shake .35s; }
@keyframes alh-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.alh-applock-dots { display: flex; gap: 14px; margin: 4px 0; }
.alh-applock-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; }
.alh-applock-dots i.on { background: currentColor; opacity: 1; }
.alh-applock-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px; }
.alh-applock-pad button { width: 72px; height: 72px; border-radius: 50%; border: 0; font: inherit; font-size: 26px; font-weight: 500; color: inherit;
    background: color-mix(in srgb, currentColor 10%, transparent); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.alh-applock-pad button:active { background: color-mix(in srgb, currentColor 20%, transparent); }
.alh-applock-pad button svg { display: block; margin: auto; }
.alh-applock-msg { min-height: 18px; font-size: 13px; color: #ff6961; }
.alh-applock-msg.is-hint { color: var(--text-3, #8e8e93); }
@media (prefers-reduced-motion: reduce) { .alh-applock-box.shake { animation: none; } }
.alh-applock-out { border: 0; background: none; font: inherit; font-size: 13px; color: var(--text-3, #8e8e93); text-decoration: underline; cursor: pointer; }
.lg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.lg-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border, rgba(255, 255, 255, .14)); background: transparent;
    font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.lg-chip.is-on { background: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); color: #fff; }
/* «Безопасность»: второй шаг входа и ключи доступа */
.lg-choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r); margin-bottom: 8px; cursor: pointer; }
.lg-choice input { margin-top: 3px; flex: none; accent-color: var(--accent, #0a84ff); width: 18px; height: 18px; }
.lg-choice b { display: block; color: var(--text); }
.lg-choice small { display: block; color: var(--text-3); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.lg-choice.is-disabled { opacity: .55; cursor: default; }

/* Аватарка в профиле: ✎ — сменить фото */
.lg-ava-edit { position: relative; width: 88px; margin: 0 auto 14px; }
.lg-ava-edit .lg-avatar { margin: 0; }
.lg-ava-btn { position: absolute; right: -4px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    font-size: 14px; cursor: pointer; color: #fff; background: linear-gradient(180deg, #2d97ff, #0a7aff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 3px #101216, 0 6px 16px -6px rgba(10, 132, 255, .8); }
.lg-ava-btn:active { transform: scale(.94); }
/* Изменить — слева снизу, удалить — справа снизу (как в WashDesk) */
.lg-ava-edit > .lg-ava-btn { right: auto; left: -4px; }
.lg-ava-del { right: -4px; left: auto; border: 0; font: inherit; font-size: 13px; background: linear-gradient(180deg, #ff5f57, #e5372d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 3px #101216, 0 6px 16px -6px rgba(255, 69, 58, .7); }
html.light .lg-ava-btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 3px #fff, 0 6px 16px -6px rgba(10, 132, 255, .6); }
html.light .lg-ava-del { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 3px #fff, 0 6px 16px -6px rgba(255, 69, 58, .5); }

/* Лист снизу (на ПК — по центру): обрезка фото */
.lg-sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; padding: 12px;
    background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(12px) saturate(120%); backdrop-filter: blur(12px) saturate(120%);
    opacity: 0; transition: opacity .2s var(--ease); }
.lg-sheet.is-open { opacity: 1; }
.lg-sheet[hidden] { display: none; }
.lg-sheet-box { width: min(440px, 100%); padding: 20px 18px 16px; border-radius: 28px; transform: translateY(24px); transition: transform .25s var(--ease); }
.lg-sheet.is-open .lg-sheet-box { transform: none; }
.lg-sheet-title { font-size: 17px; font-weight: 650; text-align: center; margin-bottom: 14px; }
.lg-sheet-hint { font-size: 13px; color: var(--text-3); text-align: center; margin: 10px 0 14px; }
.lg-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lg-crop { height: min(62vh, 360px); border-radius: 18px; overflow: hidden; background: #000; }
.lg-crop img { display: block; max-width: 100%; }
/* Круглая рамка обрезки — как будет выглядеть аватарка */
.lg-crop .cropper-view-box, .lg-crop .cropper-face { border-radius: 50%; }
.lg-crop .cropper-view-box { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: -1px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); }
@media (min-width: 640px) { .lg-sheet { align-items: center; } }

/* ---------- Витрина ---------- */
.lg-hero { max-width: 1080px; margin: 0 auto; padding: 96px 20px 48px; text-align: center; }
.lg-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2);
    padding: 7px 14px; border-radius: 999px; margin-bottom: 26px; }
.lg-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.lg-hero h1 { margin: 0 auto; max-width: 820px; font-size: clamp(38px, 7vw, 68px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em;
    background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-hero p { max-width: 560px; margin: 22px auto 0; color: var(--text-2); font-size: 18px; line-height: 1.5; }
.lg-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.lg-services { max-width: 1080px; margin: 0 auto; padding: 8px 20px 80px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lg-service { padding: 26px; border-radius: var(--r-xl); display: flex; flex-direction: column; min-height: 250px; color: var(--text);
    transition: transform .35s var(--ease); }
a.lg-service:hover { transform: translateY(-3px); color: var(--text); }
.lg-service-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; margin-bottom: 22px;
    background: rgba(255, 255, 255, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 24px -12px rgba(0, 0, 0, .8); }
.lg-service h3 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
.lg-service p { margin: 8px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; flex: 1; }
.lg-service-go { margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--accent-hi); display: inline-flex; gap: 6px; align-items: center; }
.lg-service-soon { margin-top: 20px; font-size: 13px; color: var(--text-3); }

/* ---------- Документ ---------- */
.lg-doc { padding: 30px 28px; border-radius: var(--r-xl); }
.lg-doc h1 { font-size: 26px; letter-spacing: -.03em; margin: 0 0 6px; }
.lg-doc h2 { font-size: 18px; margin: 26px 0 8px; }
.lg-doc p, .lg-doc li { color: rgba(235, 235, 245, .8); line-height: 1.65; }
.lg-doc-meta { color: var(--text-3); font-size: 13px; margin-bottom: 18px; }
/* Редакции документа: прежняя — с плашкой, внизу — список всех */
.lg-doc-old { margin: -6px 0 16px; padding: 10px 14px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--text);
    background: color-mix(in srgb, var(--warn) 16%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
.lg-doc-old a { display: inline-block; margin-top: 2px; font-weight: 600; }
.lg-doc-history { margin-top: 16px; }
.lg-doc-history h2 { font-size: 18px; margin: 0 0 10px; }
.lg-doc-history ul { list-style: none; margin: 0; padding: 0; }
.lg-doc-history li { padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14.5px; }
.lg-doc-history li:first-child { border-top: 0; }
.lg-doc-tag { margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.lg-doc-note { margin-top: 3px; font-size: 13px; color: var(--text-2); }

/* ---------- Подвал ---------- */
.lg-footer { text-align: center; color: var(--text-3); font-size: 12.5px; padding: 24px 16px 32px; }
.lg-footer a { color: var(--text-2); }

@media (max-width: 520px) {
    .lg-card { padding: 26px 20px 22px; border-radius: 26px; }
    .lg-top { padding: 10px 10px 0; }
    .lg-hero { padding-top: 64px; }
    .lg-row { grid-template-columns: 1fr; gap: 0; }
}
/* Телефоны и планшеты — как в WashDesk, где на телефоне всё плавно:
   • фон неподвижен (пока он движется, каждая панель пересчитывает размытие в каждом кадре);
   • настоящее размытие (backdrop-filter) — только у шапки и окон (.glass-float): под ними прокручивается
     содержимое. Карточки и списки — полупрозрачная заливка с кромкой: фон и так мягкий, на глаз то же
     стекло, а телефону не нужно размывать каждую панель при прокрутке;
   • без блика за пальцем. */
@media (hover: none), (pointer: coarse) {
    .lg-backdrop { animation: none; filter: none; inset: -10%; }
    .glass { -webkit-backdrop-filter: none; backdrop-filter: none;
             background: linear-gradient(160deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .045) 48%, rgba(255, 255, 255, .07) 100%); }
    .glass.glass-float { -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
                         background: rgba(22, 24, 30, .7); }
    .glass::after { display: none; }
    .lg-btn-glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-backdrop { animation: none; }
    .lg-btn, .lg-service, .glass::after { transition: none; }
}

/* ---------- Светлая тема: html.light (кука aluhub_theme=light — её ставит WashDesk) ----------
   То же стекло, но белое: светлый фон с мягкими пятнами, панели — белая полупрозрачная заливка, текст тёмный. */
html.light {
    color-scheme: light;
    --bg: #eef1f6;
    --text: #0b0d12;
    --text-2: rgba(60, 60, 67, .72);
    --text-3: rgba(60, 60, 67, .45);
    --hair: rgba(0, 0, 0, .08);
    --accent: #007aff;
    --accent-hi: #0062d6;
    --field: rgba(255, 255, 255, .7);
    --field-hover: rgba(255, 255, 255, .9);
}
html.light a:hover, html.light .lg-btn-plain:hover { color: #0062d6; }
html.light .lg-backdrop {
    background:
        radial-gradient(38% 32% at 20% 24%, rgba(0, 122, 255, .2), transparent 70%),
        radial-gradient(30% 28% at 80% 16%, rgba(0, 190, 220, .16), transparent 70%),
        radial-gradient(42% 38% at 72% 82%, rgba(140, 90, 255, .16), transparent 70%);
}
html.light .lg-grid { background-image: linear-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .035) 1px, transparent 1px); }
html.light .glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .6) 48%, rgba(255, 255, 255, .7) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(15, 23, 42, .06), 0 24px 48px -24px rgba(15, 23, 42, .22);
}
html.light .glass::before { background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(0, 0, 0, .04) 40%, rgba(0, 0, 0, .06) 70%, rgba(255, 255, 255, .8)); }
html.light .glass::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, .6), transparent 62%); }
html.light .lg-top-link:hover, html.light a.lg-item:hover, html.light button.lg-item:hover { background: rgba(0, 0, 0, .04); }
html.light .lg-btn-glass { background: rgba(255, 255, 255, .75); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 0, 0, .08); color: var(--text); }
html.light .lg-btn-glass:hover { background: #fff; }
html.light .lg-btn-danger { color: #d70015; background: rgba(255, 59, 48, .1); box-shadow: inset 0 0 0 1px rgba(255, 59, 48, .25); }
html.light .lg-input { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
html.light .lg-input:focus { background: #fff; }
html.light .lg-check input { border-color: rgba(0, 0, 0, .2); }
html.light .lg-alert-error { color: #b3261e; }
html.light .lg-alert-ok { color: #1b7f3b; }
html.light .lg-alert-info { color: #0050a8; }
html.light .lg-pwd-text.lvl-0, html.light .lg-pwd-text.lvl-1 { color: #b3261e; }
html.light .lg-pwd-text.lvl-2 { color: #a06a00; }
html.light .lg-pwd-text.lvl-3 { color: var(--accent-hi); }
html.light .lg-pwd-text.lvl-4 { color: #1b7f3b; }
html.light .lg-badge { color: #1b7f3b; }
html.light .lg-steps span, html.light .lg-account-x { background: rgba(0, 0, 0, .07); }
html.light .lg-item-icon, html.light .lg-service-icon { background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 14px -8px rgba(15, 23, 42, .25); }
html.light .lg-account-check { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .2); }
html.light .lg-qr-code { box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .35), 0 0 0 1px rgba(0, 0, 0, .08); }
html.light .lg-hero h1 { background: linear-gradient(180deg, #0b0d12 30%, rgba(11, 13, 18, .6)); -webkit-background-clip: text; background-clip: text; }
@media (hover: none), (pointer: coarse) {
    html.light .glass { background: linear-gradient(160deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .66) 48%, rgba(255, 255, 255, .75) 100%); }
    html.light .glass.glass-float { background: rgba(246, 248, 252, .78); }
}
/* «Кнопка занята» (js/busy.js): надпись слева с «…», справа бежит ∞ (как в WashDesk, цвет — от текста кнопки) */
.is-busy { cursor: progress !important; }
.lg-btn.is-busy { justify-content: space-between; pointer-events: none; opacity: .88; }
.lg-btn.is-busy:disabled { opacity: .88; }
.lg-item.is-busy, .lg-account.is-busy { pointer-events: none; opacity: .8; }
.lg-busy-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.lg-busy-inf { flex: 0 0 auto; width: 32px; height: 16px; overflow: visible; }
.lg-chev .lg-busy-inf { width: 26px; height: 13px; vertical-align: middle; }
.lg-busy-inf path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.lg-busy-track { opacity: .22; stroke-width: 5; }
.lg-busy-strip { stroke-width: 9; stroke-dasharray: 22 78; animation: lg-busy-run 1.6s linear infinite, lg-busy-breathe .8s ease-in-out infinite alternate; }
.lg-busy-shine { stroke: #fff !important; opacity: .85; stroke-width: 3; stroke-dasharray: 10 90; animation: lg-busy-run 1.6s linear infinite; animation-delay: -.08s; }
html.light .lg-btn-glass .lg-busy-shine, html.light .lg-chev .lg-busy-shine { opacity: .5; }
@keyframes lg-busy-run { to { stroke-dashoffset: -100; } }
@keyframes lg-busy-breathe { from { stroke-width: 6; } to { stroke-width: 12; } }
@media (prefers-reduced-motion: reduce) { .lg-busy-strip, .lg-busy-shine { animation-duration: 4s; } }

/* Сканер QR (js/qr-scan.js): камера во весь экран, рамка по центру, снизу — фото из галереи, «Отмена», фонарик */
html.lg-scan-open, html.lg-scan-open body { overflow: hidden; }
.lg-scan { position: fixed; inset: 0; z-index: 1500; background: #000; color: #fff; opacity: 0; transition: opacity .2s var(--ease); }
.lg-scan.is-open { opacity: 1; }
.lg-scan-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Рамка: всё вокруг затемнено тенью, уголки — псевдоэлементами и <i> */
.lg-scan-frame { position: absolute; left: 50%; top: 46%; width: min(68vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%);
    border-radius: 28px; box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .55); pointer-events: none; }
.lg-scan-frame::before, .lg-scan-frame::after, .lg-scan-frame i::before, .lg-scan-frame i::after {
    content: ''; position: absolute; width: 44px; height: 44px; border: 4px solid #fff; filter: drop-shadow(0 0 6px rgba(0, 0, 0, .4)); }
.lg-scan-frame::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 28px; }
.lg-scan-frame::after { right: -2px; top: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 28px; }
.lg-scan-frame i::before { left: -2px; bottom: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 28px; }
.lg-scan-frame i::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 28px; }
.lg-scan-frame i { position: absolute; inset: 0; }
.lg-scan-top { position: absolute; left: 0; right: 0; top: 0; padding: max(20px, env(safe-area-inset-top)) 16px 0; text-align: center; }
.lg-scan-title { font-size: 18px; font-weight: 650; letter-spacing: -.02em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.lg-scan-msg { margin: 6px auto 0; max-width: 360px; font-size: 14px; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.lg-scan-msg.is-bad { color: #fff; background: rgba(255, 69, 58, .32); border-radius: 14px; padding: 8px 12px; text-shadow: none; }
.lg-scan-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 18px;
    padding: 16px 16px max(24px, env(safe-area-inset-bottom)); }
.lg-scan-cancel { min-width: 140px; color: #fff !important; background: rgba(255, 255, 255, .16) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22) !important; }
.lg-scan-round { appearance: none; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer;
    color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); -webkit-tap-highlight-color: transparent; }
.lg-scan-round[hidden] { display: none; }
/* Нет фонарика — кнопка фото слева, «Отмена» по центру всё равно (пустое место справа) */
.lg-scan-bar:has([data-torch][hidden])::after { content: ''; width: 52px; }
.lg-scan-round.is-on { background: #fff; color: #000; }

/* Просмотр фото крупно (glass.js) */
.lg-ava-edit .lg-avatar img { cursor: zoom-in; }
.lg-viewer { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(0, 0, 0, .88); opacity: 0; transition: opacity .2s var(--ease); cursor: zoom-out; }
.lg-viewer.is-open { opacity: 1; }
.lg-viewer img { max-width: min(100%, 640px); max-height: 100%; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    transform: scale(.94); transition: transform .25s var(--ease); }
.lg-viewer.is-open img { transform: none; }