.effect-lab-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.effect-lab-toggle {
  position: absolute;
  left: 50%;
  bottom: -15px;
  z-index: 5;
  width: 48px;
  height: 26px;
  padding: 0;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 0 0 16px 16px;
  background: rgba(8,14,17,.76);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(16px);
  font-size: 1.25rem;
  line-height: 1;
}

.effect-lab-toggle:hover,
.effect-lab-toggle:focus-visible { border-color: white; outline: none; }
.effect-lab.is-collapsed {
  height: 27px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}
.effect-lab.is-collapsed > :not(.effect-lab-toggle) { display: none !important; }
.effect-lab.is-collapsed .effect-lab-toggle {
  bottom: 0;
  border-radius: 16px 16px 0 0;
  pointer-events: auto;
}
.effect-lab.is-collapsed .effect-lab-toggle span { display: inline-block; transform: rotate(180deg); }

.effect-reset {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .7);
  font: 500 1rem/1 system-ui, sans-serif;
  transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease;
}

.effect-reset:hover {
  border-color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transform: rotate(-22deg);
}

.effect-reset:focus-visible,
.background-pick:focus-visible,
.background-picker select:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .92);
  outline-offset: 2px;
}

.background-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 9px;
}

.background-picker select,
.background-pick {
  min-width: 0;
  min-height: 34px;
  border-radius: 3px;
  color: rgba(255, 255, 255, .78);
  font-family: inherit;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
}

.background-picker select {
  width: 100%;
  padding: 0 28px 0 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(5, 10, 14, .42);
  color-scheme: dark;
  text-overflow: ellipsis;
}

.background-pick {
  width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}

.background-pick:hover {
  border-color: rgba(255, 255, 255, .54);
  background: rgba(255, 255, 255, .09);
  color: #fff;
}

.background-pick:disabled {
  cursor: wait;
  opacity: .52;
}

.effect-lab.is-file-target {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(13, 20, 26, .68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 0 28px rgba(255, 255, 255, .08);
}

.background-status {
  display: block;
  min-height: 1.2em;
  margin-top: 6px;
  color: rgba(255, 255, 255, .38);
  font-size: .64rem;
  line-height: 1.25;
}

.hero[data-hero-effect="depth"] .hero-bokeh {
  opacity: 0;
}

.hero[data-hero-effect="depth"][data-bokeh-state="ready"] .hero-bokeh {
  opacity: 1;
}

@media (max-width: 740px) {
  .background-picker {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .effect-reset {
    transition: none;
  }

  .effect-reset:hover {
    transform: none;
  }
}
