.sample-dialog {
  position: fixed;
  inset: 0;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(20px, 5vw, 32px);
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--bg-2);
  color: var(--ink);
  color-scheme: dark;
  box-shadow: 0 20px 80px rgb(0 0 0 / 45%);
}

.sample-dialog::backdrop {
  background: rgb(10 8 12 / 72%);
  backdrop-filter: blur(4px);
}

.sample-dialog__header {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-right: 56px;
}

.sample-dialog h2 {
  font-size: clamp(24px, 4vw, 30px);
}

.sample-dialog__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--ink);
  transition: background-color .2s, border-color .2s, color .2s;
}

.sample-dialog__close:hover {
  border-color: var(--lilac-a35);
  background: var(--lilac-a12);
  color: var(--lilac-hi);
}

.sample-dialog form:not([hidden]) {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.sample-dialog p {
  font-size: var(--t-small);
}

.sample-dialog label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
}

.sample-dialog input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line-3);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.sample-dialog button[type="submit"] {
  justify-content: center;
  margin-top: 4px;
}

.sample-dialog button:disabled {
  opacity: .65;
  cursor: wait;
}

.sample-dialog [role="status"]:not(:empty) {
  margin-top: 12px;
  overflow-wrap: anywhere;
}
