/* Compact review dialog (centered card — not full-page sheet) */
.ds-modal-layer.ds-review-dialog {
  align-items: center;
  justify-content: center;
  padding: var(--ds-space-6) var(--ds-space-4);
  pointer-events: none;
  --ds-modal-max-h: min(88dvh, 52rem);
}
.ds-modal-layer.ds-review-dialog > .ds-modal-card {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(40rem, calc(100vw - 2rem));
  max-height: var(--ds-modal-max-h);
  min-height: 0;
  border-radius: var(--ds-radius-lg);
  box-shadow:
    0 24px 48px rgb(15 23 42 / 0.14),
    0 0 0 0.5px rgb(15 23 42 / 0.05);
  overflow: hidden;
}
.ds-modal-layer.ds-review-dialog > .ds-modal-card > .ds-modal-header {
  flex: 0 0 auto;
}
.ds-modal-layer.ds-review-dialog > .ds-modal-card > .ds-review-stats {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--ds-border-subtle);
}
.ds-modal-layer.ds-review-dialog > .ds-modal-card > .ds-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ds-modal-layer.ds-review-dialog > .ds-modal-card > .ds-modal-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--ds-border-subtle);
  background: var(--ds-surface);
}
.ds-modal-layer.ds-review-dialog .ds-modal-step {
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: var(--ds-weight-medium);
  color: var(--ds-brand-hero);
  margin: 0 0 0.15rem;
  font-size: var(--ds-text-caption);
}
/* Slightly denser stats for compact card */
#snapshot-summary-modal.ds-review-dialog .ds-review-stats {
  padding: 0.65rem 1.1rem;
  gap: 0.75rem 1rem;
}
@media (max-width: 640px) {
  /* Keep resume/review dialogs centered and fully on-screen (not off-fold bottom sheets) */
  .ds-modal-layer.ds-review-dialog {
    align-items: center;
    justify-content: center;
    padding: 1rem;
    --ds-modal-max-h: min(88dvh, 100%);
  }
  .ds-modal-layer.ds-review-dialog > .ds-modal-card {
    max-width: min(24rem, calc(100vw - 2rem));
    width: 100%;
    max-height: var(--ds-modal-max-h);
    border-radius: var(--ds-radius-lg);
  }
}
#table-edit-resume-dialog.ds-review-dialog {
  z-index: 70;
}
/* Section + buttons must sit above scrolling body content, not under header */
#new-snapshot-modal.ds-portfolio-edit-sheet .ds-draft-section-head {
  position: relative;
  z-index: 1;
  background: var(--ds-surface);
}
@media (max-width: 640px) {
  .ds-modal-layer.ds-portfolio-edit-sheet {
    padding: 0;
    --ds-modal-max-h: 100dvh;
  }
  .ds-modal-layer.ds-portfolio-edit-sheet > .ds-modal-card {
    max-height: 100%;
    border-radius: 0;
  }
}


