/* NEO V18.7 | Theme Studio */
html,body,.app-bg,.sidebar,.topbar,.card,.metric-card,.hero,.hero-stat,.module-panel,.module-mount,.item,.task,.column,.btn,.nav button,.search input,.field input,.field textarea,.field select,.v6-ribbon,.neo-drawer,.neo-drawer-head,.neo-drawer-foot,.live-source-tabs button,.live-source-item,.intel-v16-item,.intel-v16-kpi,.gcal-shell,.gcal-calendar,.canvas-board,.canvas-wrap,.node{
  transition:background-color .32s ease,border-color .32s ease,color .24s ease,box-shadow .32s ease,filter .32s ease;
}
.app-bg{
  background:var(--bgfx)!important;
  background-size:150% 150%!important;
  animation:neoThemeDrift 18s ease-in-out infinite alternate;
  filter:saturate(1.12) contrast(1.02)!important;
}
.no-spot .app-bg{animation-play-state:paused}
.logo,.btn.primary,.neo-boot-logo,.v6-live{
  background-image:linear-gradient(120deg,var(--accent),var(--accent2),var(--accent3,var(--accent)))!important;
  background-size:200% 200%!important;
  animation:neoAccentFlow 8s ease-in-out infinite alternate;
}
.btn.primary{color:var(--primaryText,#fff)!important}
.sidebar-foot #themeBtn{width:100%;min-height:44px;text-align:left;position:relative;overflow:hidden}
.sidebar-foot #themeBtn::before{content:"";display:inline-block;width:11px;height:11px;margin-right:9px;vertical-align:-1px;background:linear-gradient(135deg,var(--accent),var(--accent2));box-shadow:0 0 18px var(--accentGlow)}
.neo-theme-studio{overflow:hidden;position:relative}
.neo-theme-studio::after{content:"";position:absolute;inset:auto -10% -65% 35%;height:170px;background:radial-gradient(circle,var(--accentGlow),transparent 68%);pointer-events:none}
.neo-theme-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin-top:16px;position:relative;z-index:1}
.neo-theme-choice{min-height:72px;border:1px solid var(--line);background:color-mix(in srgb,var(--panel2) 84%,transparent);color:var(--text);padding:12px;text-align:left;cursor:pointer;border-radius:0!important;display:grid;grid-template-columns:32px 1fr;gap:10px;align-items:center}
.neo-theme-choice:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));transform:translateY(-1px)}
.neo-theme-choice.active{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent),0 0 26px color-mix(in srgb,var(--accent) 13%,transparent)}
.neo-theme-choice .theme-swatch{width:32px;height:32px;border:1px solid rgba(255,255,255,.18);background:var(--swatch,linear-gradient(135deg,var(--accent),var(--accent2)));box-shadow:0 0 16px rgba(0,0,0,.14)}
.neo-theme-choice b{display:block;font-size:12px}.neo-theme-choice small{display:block;color:var(--muted);font-size:10px;margin-top:3px;line-height:1.35}
.neo-theme-choice[data-theme-choice="system"]{--swatch:linear-gradient(135deg,#111827 0 50%,#f8fafc 50%)}
.neo-theme-choice[data-theme-choice="aurora"]{--swatch:linear-gradient(135deg,#8b5cf6,#22d3ee,#2dd4bf)}
.neo-theme-choice[data-theme-choice="ocean"]{--swatch:linear-gradient(135deg,#0284c7,#06b6d4,#2dd4bf)}
.neo-theme-choice[data-theme-choice="cyber"]{--swatch:linear-gradient(135deg,#39ff88,#00d9ff,#a3ff12)}
.neo-theme-choice[data-theme-choice="ember"]{--swatch:linear-gradient(135deg,#ff5f45,#ff8a34,#fbbf24)}
.neo-theme-choice[data-theme-choice="graphite"]{--swatch:linear-gradient(135deg,#64748b,#cbd5e1,#f97316)}
.neo-theme-choice[data-theme-choice="light"]{--swatch:linear-gradient(135deg,#ffffff,#dbeafe,#6366f1)}
html[data-theme="light"] .noise{opacity:.018}
html[data-theme="light"] .sidebar,html[data-theme="light"] .topbar{backdrop-filter:blur(22px) saturate(1.05)}
html[data-theme="light"] .neo-theme-choice .theme-swatch{border-color:rgba(15,23,42,.12)}
@keyframes neoThemeDrift{0%{background-position:0% 20%}50%{background-position:60% 65%}100%{background-position:100% 20%}}
@keyframes neoAccentFlow{0%{background-position:0% 50%}100%{background-position:100% 50%}}
@media(prefers-reduced-motion:reduce){.app-bg,.logo,.btn.primary,.neo-boot-logo,.v6-live{animation:none!important}}
