/* BioStudio AI — snap preview + Win11 snap layouts flyout */

.snap-preview {
  position: absolute;
  z-index: 8000;
  border-radius: 10px;
  background: rgba(120, 170, 255, 0.28);
  border: 1px solid rgba(160, 200, 255, 0.7);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease, left 0.12s ease, top 0.12s ease, width 0.12s ease, height 0.12s ease;
}
.snap-preview.show { opacity: 1; }

.snap-flyout {
  position: fixed;
  z-index: 21000;
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--menu-bg, rgba(245, 246, 250, 0.9));
  backdrop-filter: blur(34px) saturate(1.5);
  -webkit-backdrop-filter: blur(34px) saturate(1.5);
  border: 1px solid var(--menu-border, rgba(255, 255, 255, 0.5));
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.snap-flyout.show { opacity: 1; transform: translateY(0); }

.snap-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  width: 96px;
  height: 70px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(125, 135, 155, 0.18);
}

.snap-cell {
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.45;
  transition: opacity 0.1s ease;
}
.snap-cell:hover,
.snap-cell.hot { opacity: 0.95; }

.dark .snap-flyout {
  --menu-bg: rgba(43, 43, 51, 0.9);
  --menu-border: rgba(255, 255, 255, 0.1);
}
