/* Shared Luntian glass treatment. Text and badges retain solid contrast. */
@media screen{
:root{--frost-panel:var(--theme-opaque);--frost-control:var(--theme-opaque);--frost-hover:var(--theme-soft);--frost-edge:#b7cbbdcc;--frost-highlight:#ffffffb8;--frost-shadow:0 8px 28px #143c2b0b;--frost-selected:linear-gradient(135deg,#1b654eea,#145747f5)}
:root[data-theme=dark]{--frost-edge:#9ed4b92e;--frost-highlight:#d4ffe516;--frost-shadow:0 8px 28px #00000024;--frost-selected:linear-gradient(135deg,#2b7659ed,#216548f5)}
@supports(backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){
:root{--frost-panel:#fcfdf5c9;--frost-control:#ffffff66;--frost-hover:#e0eddfb8}
:root[data-theme=dark]{--frost-panel:#1d3028d6;--frost-control:#d6ffe60a;--frost-hover:#a2dec01c}
:root :is(#sidebar,#topbar,.bottom-nav,.notif-panel,.quick-fab-menu,.modal,.auth-card,.card,.dash-widget,.hub-card,.klasama-launch-card,.demo,.demo-inner,.tool,.nav,.cp-action,.dashboard-welcome){-webkit-backdrop-filter:blur(20px) saturate(120%)!important;backdrop-filter:blur(20px) saturate(120%)!important}
}
:root body{background:radial-gradient(ellipse at 0% 0%,#bbd9bf99,transparent 55%),radial-gradient(ellipse at 100% 80%,#d6e6ccbb,transparent 60%),var(--theme-bg)!important;background-attachment:fixed!important}
:root[data-theme=dark] body{background:radial-gradient(ellipse at 0% 0%,#28574277,transparent 55%),radial-gradient(ellipse at 100% 80%,#24433577,transparent 60%),var(--theme-bg)!important}
:root :is(#sidebar,#topbar,.bottom-nav,.notif-panel,.quick-fab-menu,.modal,.auth-card,.card,.dash-widget,.hub-card,.klasama-launch-card,.demo,.demo-inner,.tool,.nav,.cp-action),:root .hero-banner.dashboard-welcome{background:var(--frost-panel)!important;border-color:var(--frost-edge)!important;box-shadow:inset 0 1px 0 var(--frost-highlight),var(--frost-shadow)!important;color:var(--theme-ink)!important}
:root #sidebar{border-right:1px solid var(--frost-edge)!important;box-shadow:inset -1px 0 0 var(--frost-highlight),8px 0 30px #102e230a!important}
:root #sidebar-footer{background:transparent!important;border-color:var(--frost-edge)!important}
:root #sidebar-nav .nav-item{background:var(--frost-control)!important;border:1px solid var(--frost-edge)!important;border-radius:9px!important;color:var(--theme-ink)!important;box-shadow:inset 0 1px 0 var(--frost-highlight)!important;margin-bottom:4px;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}
:root #sidebar-nav .nav-item:hover{background:var(--frost-hover)!important;border-color:var(--theme-accent)!important;box-shadow:inset 0 1px 0 var(--frost-highlight),0 3px 10px #102e230a!important;color:var(--theme-ink)!important;transform:none!important}
:root #sidebar #sidebar-nav .nav-item.active{background:var(--frost-selected)!important;color:var(--theme-on)!important;border-color:var(--theme-action-hover)!important;box-shadow:inset 0 1px 0 #ffffff40,0 4px 12px #102e2318!important}
:root #sidebar-nav .nav-item.active::before{display:none!important}
:root #sidebar-nav .nav-section-title{color:var(--theme-muted)!important}
:root #sidebar :is(.sidebar-footer-btn,.sidebar-btn),:root :is(.btn-outline,.btn-secondary,.settings-nav-item,.hero-class-chip):not(.active){background:var(--frost-control)!important;border-color:var(--frost-edge)!important;box-shadow:inset 0 1px 0 var(--frost-highlight)!important;color:var(--theme-ink)!important}
:root :is(.btn-primary,.quick-fab-main,.primary){box-shadow:inset 0 1px 0 #ffffff36,0 4px 12px #102e2318!important}
:root :is(input,select,textarea){background:var(--theme-opaque)!important;color:var(--theme-ink)!important}
:root :is(.nav-item,button,a,input,select,textarea):focus-visible{outline:2px solid var(--theme-accent)!important;outline-offset:3px}
@media(max-width:768px){:root :is(#sidebar,.modal,.quick-fab-menu,.notif-panel){--frost-panel:var(--theme-opaque)}}
@media(prefers-reduced-transparency:reduce){:root{--frost-panel:var(--theme-opaque);--frost-control:var(--theme-opaque);--frost-hover:var(--theme-soft)}:root *{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
@media(prefers-reduced-motion:reduce){:root #sidebar-nav .nav-item{transition:none!important}}
}
/* Resting controls stay plain; frost is reserved for interaction states. */
@media screen{
:root #sidebar #sidebar-nav .nav-item:not(.active):not(:hover):not([aria-selected=true]){background:transparent!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root :is(.btn-outline,.btn-secondary,.settings-nav-item,.hero-class-chip,.sidebar-footer-btn,.sidebar-btn):not(.active):not(:hover):not([aria-selected=true]):not([aria-pressed=true]){background:transparent!important;border-color:var(--theme-edge)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root :is(.btn-primary,.primary,.quick-fab-main):not(:hover):not(.active):not([aria-pressed=true]){box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root :is(.btn-outline,.btn-secondary,.settings-nav-item,.hero-class-chip,.sidebar-footer-btn,.sidebar-btn):hover{background:var(--frost-hover)!important;border-color:var(--theme-accent)!important;box-shadow:inset 0 1px 0 var(--frost-highlight)!important;color:var(--theme-ink)!important}
}
