/* Liquid Glass enforcement: keep only the main panel blurry and prevent stacked/backdrop blurs */
body:not(.admin-page) .panel {
  isolation: isolate;
  -webkit-backdrop-filter: var(--panel-blur, blur(10px)) !important;
  backdrop-filter: var(--panel-blur, blur(10px)) !important;
}

/* Disable descendant backdrop-filter to avoid layered blur*/
body:not(.admin-page) .panel * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Remove panel pseudo-elements that can create a second visible frame */
body:not(.admin-page) .panel::before,
body:not(.admin-page) .panel::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Provide an opt-in class for small accents that should keep their own blur */
body:not(.admin-page) .panel .allow-panel-accent {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  body:not(.admin-page) .panel * { transition: none !important; animation: none !important; }
}
