.postcard-dialog {
  width: min(710px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(12px, 2.5vw, 24px);
  border: 1px solid #d7d6c8;
  border-radius: 17px;
  background: #f9f7ee;
  color: var(--ink, #252d27);
  box-shadow: 0 24px 80px #26362e46;
}

.postcard-dialog::backdrop {
  background: #25382e92;
  backdrop-filter: blur(3px);
}

.postcard-dialog-heading, .postcard-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.postcard-dialog-heading { margin-bottom: 12px; }

.postcard-dialog-heading h2 {
  margin: 0;
  font: 600 clamp(1.35rem, 3.4vw, 1.85rem)/1.1 var(--display, Georgia, serif);
  letter-spacing: -.035em;
}

.postcard-dialog-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 41px;
  height: 41px;
  padding: 0;
  border: 1px solid #d8dacf;
  border-radius: 8px;
  background: #fffdf6;
  color: #344d40;
}

.postcard-dialog-close:hover { background: #ebeee3; }

.postcard-preview {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #bdb495;
  border-radius: 3px;
  box-shadow: 0 3px 12px #514b311d;
}

.postcard-dialog-actions { margin-top: 15px; }
.postcard-dialog-actions > span { color: #546056; font-size: .84rem; }
.postcard-download { flex: none; }
.postcard-download:disabled { cursor: default; opacity: .55; }
.postcard-download-status { color: #784737; margin: 10px 0 0; font-size: .9rem; }

@media (max-width: 360px) {
  .postcard-dialog-actions { align-items: flex-start; flex-direction: column; }
  .postcard-download { align-self: stretch; }
}
