/* Bottom sheet with grab handle */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--color-overlay);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.sheet-backdrop.is-open { opacity: 1; }
.sheet {
  position: fixed;
  z-index: 51;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--content-max));
  max-height: calc(100dvh - var(--safe-top) - var(--space-3));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-1) calc(var(--space-2) + var(--safe-right)) calc(var(--space-3) + var(--safe-bottom)) calc(var(--space-2) + var(--safe-left));
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  border-bottom: 0;
  transform: translate(-50%, 100%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.sheet.is-open { transform: translate(-50%, 0); }
.sheet-handle {
  width: 36px;
  height: 5px;
  margin: 0 auto var(--space-1);
  border-radius: var(--radius-full);
  background: var(--color-separator);
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}
.sheet-title { font-size: var(--text-headline); font-weight: 600; }
.sheet-text { color: var(--color-text-secondary); margin-bottom: var(--space-2); }
