/* iOS Folder – Glass 3.1 Erweiterung */

body.mhfolder-ready:not(.desktop-mode)::before {
  background:
    linear-gradient(
      rgba(245,239,232,.12),
      rgba(229,223,218,.18)
    ),
    var(--mhfolder-photo) center / cover no-repeat
    !important;

  position: fixed !important;
  inset: -16px !important;
  width: calc(100% + 32px) !important;
  height: calc(100% + 32px) !important;
  transform: none !important;

  filter:
    blur(12px)
    saturate(1.15)
    brightness(.92) !important;

  pointer-events: none !important;
}

html.theme-dark body.mhfolder-ready:not(.desktop-mode)::before {
  background:
    linear-gradient(
      rgba(15,23,19,.35),
      rgba(15,23,19,.45)
    ),
    var(--mhfolder-photo) center / cover no-repeat
    !important;
}

/* Kleine Bildauswahl nur auf der Testseite */
#mhfolder-picker {
  position: fixed;
  bottom: calc(92px + env(safe-area-inset-bottom));
  right: 14px;
  z-index: 99999;
  border-radius: 24px;
  padding: 11px 15px;
  color: #244637;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 5px 22px rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: 600 13px -apple-system, sans-serif;
}
