::selection { background: oklch(var(--p) / .35); color: inherit; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 99px; background-clip: content-box;
    background-image: linear-gradient(180deg, oklch(var(--p) / .75), oklch(var(--s) / .75)); }
::-webkit-scrollbar-thumb:hover { background-image: linear-gradient(180deg, oklch(var(--p)), oklch(var(--s))); }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: oklch(var(--p) / .7) transparent; } }
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .7; animation: drift 24s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -14vw; background: oklch(var(--p) / .35); }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: -8vw; top: 8vh; background: oklch(var(--s) / .28); animation-duration: 30s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 30vw; bottom: -16vw; background: oklch(var(--a) / .22); animation-duration: 36s; animation-delay: -14s; }
.aurora i:nth-child(4) { width: 14vw; height: 14vw; left: 62vw; top: 34vh; filter: blur(26px); background: oklch(var(--s) / .5); animation-duration: 18s; }
.aurora i:nth-child(5) { width: 11vw; height: 11vw; left: 8vw; top: 60vh; filter: blur(22px); background: oklch(var(--p) / .55); animation-duration: 22s; animation-delay: -5s; }
@keyframes drift { to { transform: translate(8vw, 6vh) scale(1.2); } }
.aurora .grid-bg { position: absolute; inset: 0; width: auto; height: auto; left: 0; top: 0; border-radius: 0; filter: none; opacity: 1; animation: none; background: none;
    background-image: linear-gradient(oklch(var(--bc) / .06) 1px, transparent 1px), linear-gradient(90deg, oklch(var(--bc) / .06) 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000, transparent 75%); }
#scroll-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9998; transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
    background: linear-gradient(90deg, oklch(var(--p)), oklch(var(--s)), oklch(var(--a))); box-shadow: 0 0 12px oklch(var(--p) / .7); }
.grad-text { background: linear-gradient(100deg, oklch(var(--p)), oklch(var(--s)), oklch(var(--a)), oklch(var(--p))); background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
@keyframes shine { to { background-position: 250% 0; } }
.glass { background: linear-gradient(135deg, oklch(var(--b1) / .4), oklch(var(--b1) / .1)); border: 1px solid oklch(var(--bc) / .12);
    -webkit-backdrop-filter: blur(18px) saturate(1.9) brightness(1.05); backdrop-filter: blur(18px) saturate(1.9) brightness(1.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px 0 rgba(255,255,255,.06), inset 0 0 28px rgba(255,255,255,.05), 0 14px 36px rgba(0,0,0,.16); }
html .toast .alert {
    color: oklch(var(--bc)); border: 1px solid oklch(var(--bc) / .14); border-radius: 1rem;
    background: linear-gradient(135deg, oklch(var(--b1) / .78), oklch(var(--b1) / .5));
    -webkit-backdrop-filter: blur(18px) saturate(1.9); backdrop-filter: blur(18px) saturate(1.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 14px 36px rgba(0,0,0,.28), 0 0 24px var(--toast-glow, oklch(var(--p) / .25));
}
html .toast .alert-success { --toast-glow: oklch(var(--su) / .35); border-color: oklch(var(--su) / .45); }
html .toast .alert-error   { --toast-glow: oklch(var(--er) / .35); border-color: oklch(var(--er) / .45); }
html .toast .alert-warning { --toast-glow: oklch(var(--wa) / .35); border-color: oklch(var(--wa) / .45); }
html .toast .alert-info    { --toast-glow: oklch(var(--in) / .35); border-color: oklch(var(--in) / .45); }
html .toast .alert-success > svg { color: oklch(var(--su)); filter: drop-shadow(0 0 6px oklch(var(--su) / .7)); }
html .toast .alert-error > svg   { color: oklch(var(--er)); filter: drop-shadow(0 0 6px oklch(var(--er) / .7)); }
html .toast .alert-warning > svg { color: oklch(var(--wa)); filter: drop-shadow(0 0 6px oklch(var(--wa) / .7)); }
html .toast .alert-info > svg    { color: oklch(var(--in)); filter: drop-shadow(0 0 6px oklch(var(--in) / .7)); }
html .toast .alert.alert-error:not(:has(svg)) { border-left-width: 3px; }
html .ui-cf-overlay { background: oklch(0% 0 0 / .42); -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5); }
html .ui-cf-box {
    border: 1px solid oklch(var(--bc) / .14); border-radius: 1.6rem;
    background: linear-gradient(135deg, oklch(var(--b1) / .85), oklch(var(--b1) / .62));
    -webkit-backdrop-filter: blur(24px) saturate(1.9); backdrop-filter: blur(24px) saturate(1.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.34), inset 0 0 40px rgba(255,255,255,.04), 0 30px 80px oklch(var(--p) / .28);
}
html .ui-cf-box.ui-cf-danger { box-shadow: inset 0 1px 0 rgba(255,255,255,.34), inset 0 0 40px rgba(255,255,255,.04), 0 30px 80px oklch(var(--er) / .3); }
html .ui-cf-box::before { height: 3px; background-size: 200% 100%; animation: cfBar 5s linear infinite;
    background-image: linear-gradient(90deg, oklch(var(--p)), oklch(var(--s)), oklch(var(--a)), oklch(var(--p))); box-shadow: 0 0 16px oklch(var(--p) / .6); }
html .ui-cf-box.ui-cf-danger::before { background-image: linear-gradient(90deg, oklch(var(--er)), oklch(var(--s)), oklch(var(--wa)), oklch(var(--er))); box-shadow: 0 0 16px oklch(var(--er) / .6); }
@keyframes cfBar { to { background-position: 200% 0; } }
html .ui-cf-icon { background: linear-gradient(135deg, oklch(var(--p) / .3), oklch(var(--s) / .14)); border: 1px solid oklch(var(--p) / .35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 22px oklch(var(--p) / .35); }
html .ui-cf-danger .ui-cf-icon { background: linear-gradient(135deg, oklch(var(--er) / .3), oklch(var(--s) / .14)); border-color: oklch(var(--er) / .4); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 22px oklch(var(--er) / .4); }
html .ui-cf-actions .btn-primary, html .ui-cf-actions .btn-error { color: #fff !important; border: 1px solid rgba(255,255,255,.28) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 24px var(--cf-glow); transition: transform .2s, box-shadow .2s; }
html .ui-cf-actions .btn-primary { --cf-glow: oklch(var(--p) / .4); background: linear-gradient(180deg, oklch(var(--p) / .9), oklch(var(--p) / .5)) !important; color: oklch(var(--pc)) !important; }
html .ui-cf-actions .btn-error { --cf-glow: oklch(var(--er) / .4); background: linear-gradient(180deg, oklch(var(--er) / .9), oklch(var(--er) / .5)) !important; color: oklch(var(--erc)) !important; }
html .ui-cf-actions .btn:hover { transform: translateY(-1px); }
html .ui-cf-actions .btn-ghost { border: 1px solid oklch(var(--bc) / .14); background: oklch(var(--b1) / .3); }
html .user-card-menu {
    border: 1px solid oklch(var(--bc) / .14) !important; border-radius: 1.4rem !important;
    background: linear-gradient(135deg, oklch(var(--b1) / .8), oklch(var(--b1) / .58)) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.9); backdrop-filter: blur(24px) saturate(1.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 28px 70px oklch(var(--p) / .25) !important;
}
html .user-card-trigger { background: linear-gradient(135deg, oklch(var(--b1) / .45), oklch(var(--b1) / .15)); border-color: oklch(var(--bc) / .14);
    -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
html .user-card-trigger:hover { border-color: oklch(var(--p) / .55); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px oklch(var(--p) / .25); }
html .user-card-item:hover { background: linear-gradient(135deg, oklch(var(--p) / .2), oklch(var(--p) / .05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
html .user-card-banner { background: linear-gradient(135deg, oklch(var(--p) / .5), oklch(var(--s) / .4)); background-size: cover; background-position: center; }
html .theme-swatch { background: oklch(var(--b1) / .3); }
html .theme-swatch.theme-selected { box-shadow: 0 0 0 1px oklch(var(--p)), 0 0 20px oklch(var(--p) / .45); }
html .nav-link:hover { background: oklch(var(--p) / .12); }
html .lvl-pop, html .uis-pop {
    border: 1px solid oklch(var(--bc) / .14); background: linear-gradient(135deg, oklch(var(--b1) / .82), oklch(var(--b1) / .6));
    -webkit-backdrop-filter: blur(22px) saturate(1.9); backdrop-filter: blur(22px) saturate(1.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 20px 50px rgba(0,0,0,.35), 0 0 30px oklch(var(--p) / .15);
}
.app-skin .bg-base-200, .app-skin [class*="bg-base-200/"] {
    background: linear-gradient(135deg, oklch(var(--b1) / .4), oklch(var(--b1) / .1)) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.9) brightness(1.05); backdrop-filter: blur(18px) saturate(1.9) brightness(1.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(255,255,255,.05), inset 0 0 28px rgba(255,255,255,.04), 0 14px 36px rgba(0,0,0,.14);
}
.app-skin [class*="bg-base-300/"] { background: oklch(var(--b1) / .4) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.app-skin [class*="border-white/"] { border-color: oklch(var(--bc) / .11) !important; }
.app-skin .modal-box { background: linear-gradient(135deg, oklch(var(--b1) / .82), oklch(var(--b1) / .68)) !important; border: 1px solid oklch(var(--bc) / .14);
    -webkit-backdrop-filter: blur(24px) saturate(1.9); backdrop-filter: blur(24px) saturate(1.9); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 30px 80px oklch(var(--p) / .25); }
.app-skin .input, .app-skin .select, .app-skin .textarea { background: oklch(var(--b1) / .4) !important; border-color: oklch(var(--bc) / .14) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.app-skin .input:focus, .app-skin .select:focus, .app-skin .textarea:focus { border-color: oklch(var(--p) / .6) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 0 3px oklch(var(--p) / .18); }
.app-skin .btn-primary:not(.btn-outline) { color: oklch(var(--pc)) !important; border: 1px solid rgba(255,255,255,.28) !important;
    background: linear-gradient(180deg, oklch(var(--p) / .85), oklch(var(--p) / .48)) !important; -webkit-backdrop-filter: blur(12px) saturate(1.8); backdrop-filter: blur(12px) saturate(1.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -6px 14px oklch(var(--p) / .22), 0 8px 24px oklch(var(--p) / .32); transition: transform .2s, box-shadow .2s; }
.app-skin .btn-primary:not(.btn-outline):hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 12px 32px oklch(var(--p) / .5); }
.app-skin .btn-ghost:hover { background: oklch(var(--bc) / .09); }
.app-skin .table :where(th, td) { border-color: oklch(var(--bc) / .08); }
.app-skin .table :where(thead, tfoot) { color: oklch(var(--bc) / .55); }
.app-skin .table tbody tr:hover { background: oklch(var(--p) / .07); }
.app-skin .tabs .tab.tab-active { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 24px oklch(var(--p) / .4); color: oklch(var(--pc)); }
.app-skin .tabs-boxed { border: 1px solid oklch(var(--bc) / .12); }
.app-skin .dev-menu-btn:hover { transform: translateX(3px); }
.app-skin .dev-menu-btn.dev-active { background: linear-gradient(135deg, oklch(var(--p) / .3), oklch(var(--p) / .08)); border-color: oklch(var(--p) / .5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 22px oklch(var(--p) / .25); color: oklch(var(--bc)); }
.app-skin .dev-menu-btn.dev-active i { color: oklch(var(--p)); text-shadow: 0 0 12px oklch(var(--p)); }
.app-skin .dev-seg { background: oklch(var(--b1) / .35); border-color: oklch(var(--bc) / .12); -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.app-skin .dev-seg-btn.dev-seg-active { background: linear-gradient(180deg, oklch(var(--p) / .85), oklch(var(--p) / .5)); color: oklch(var(--pc)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 18px oklch(var(--p) / .35); }
.app-skin .dev-chip { background: oklch(var(--b1) / .4); border-color: oklch(var(--bc) / .12); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.app-skin .dev-suggest { background: oklch(var(--b1) / .82); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 16px 40px rgba(0,0,0,.4); }
.app-skin .dev-chart-tip { background: oklch(var(--b1) / .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@view-transition { navigation: auto; }
.aurora { view-transition-name: smes-aurora; }
.navbar { view-transition-name: smes-nav; position: relative; z-index: 50; } /* z-index: меню профиля остаётся над контентом */
@keyframes ptOut { to { opacity: 0; transform: translateY(-8px) scale(.996); } }
@keyframes ptIn { from { opacity: 0; transform: translateY(12px) scale(.996); } }
::view-transition-old(root) { animation: ptOut .22s ease-in both; }
::view-transition-new(root) { animation: ptIn .4s cubic-bezier(.2, .8, .2, 1) both; }
html.theme-wave::view-transition-old(root), html.theme-wave::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-wave::view-transition-old(root) { z-index: 1; }
html.theme-wave::view-transition-new(root) { z-index: 2; }
html.theme-wave .aurora, html.theme-wave .navbar { view-transition-name: none; }
@keyframes ptFade { from { opacity: 0; } to { opacity: 1; } }
html.no-vt body { animation: ptFade .4s ease-out; }
html.no-vt body.pt-leave { opacity: 0; transition: opacity .18s ease-in; }
@media (prefers-reduced-motion: reduce) {
    .aurora i, .grad-text, html .ui-cf-box::before { animation: none !important; }
    ::view-transition-old(root) { animation: ptFadeOut .15s linear both; }
    ::view-transition-new(root) { animation: ptFade .2s linear both; }
    @keyframes ptFadeOut { to { opacity: 0; } }
}