.cd-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.35);
  backdrop-filter: blur(6px) saturate(120%);
  z-index: 1000;
  -webkit-font-smoothing: antialiased;
  animation: cd-fade-in 160ms ease-out;
}

.cd-sheet {
  width: min(560px, calc(100% - 48px));
  max-width: 560px;
  background: var(--theme-bg);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(12, 12, 12, 0.3),
    0 2px 6px rgba(12, 12, 12, 0.12);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-origin: center;
  animation: cd-pop 200ms cubic-bezier(0.2, 0.9, 0.2, 1);
  color: var(--theme-clr);
}

.cd-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cd-titles {
  display: flex;
  flex-direction: column;
}

.cd-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--theme-clr);
}

.cd-description {
  margin-top: 6px;
  font-size: 13px;
  color: var(--theme-clr);
  line-height: 1.3;
  white-space: pre-wrap;
}

.cd-spacer {
  min-height: 6px;
  flex: 1;
}

.cd-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.cd-actions {
  font-weight: 700;
}

@keyframes cd-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes cd-pop {
  0% {
    transform: translateY(8px) scale(0.985);
    opacity: 0;
  }
  60% {
    transform: translateY(-4px) scale(1.004);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 360px) {
  .cd-btn {
    padding: 8px 10px;
    min-width: 66px;
  }
  .cd-sheet {
    padding: 14px;
    border-radius: 10px;
  }
}
