.nail-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  transition: opacity 0.18s;
}

.nail-sheet-overlay.nail-is-open {
  opacity: 1;
}

.nail-sheet {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 0;
  width: min(680px, 100%);
  max-height: 92dvh;
  transform: translate(-50%, 105%);
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

.nail-sheet.nail-is-open {
  transform: translate(-50%, 0);
}

.nail-sheet__handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #c9cbd0;
  margin: 8px auto;
}

.nail-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--nail-border);
}

.nail-sheet__header h2 {
  margin: 0;
  font-size: 18px;
}

.nail-sheet__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f5;
  font-size: 25px;
}

.nail-sheet__body {
  overflow: auto;
  padding: 16px;
}

.nail-sheet__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--nail-border);
  background: #fff;
}

.nail-sheet-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .nail-sheet,
  .nail-sheet-overlay {
    transition: none;
  }
}