/* Toast and the confirmation dialog, copied from Website/CreatorTool/Styles/dialogs.css with
   identical values (re-copy when it changes); the toast sits lower because this page has no
   bottom route bar. */
.toast {
  position: fixed;
  z-index: var(--z-toast);
  bottom: var(--space-9);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: var(--space-5) var(--space-7);
  overflow-wrap: anywhere;
  border-radius: var(--radius-md);
  background: var(--color-inverse-surface);
  color: var(--color-inverse-text);
  box-shadow: var(--shadow-menu);
  font-size: var(--font-size-sm);
}
dialog {
  width: min(440px, calc(100vw - 24px));
  max-width: none;
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-dialog);
}
dialog::backdrop {
  background: var(--color-backdrop);
}
dialog h2 {
  margin: 0 0 var(--space-4);
  font: 700 var(--font-size-3xl)/1.3 var(--font-serif);
}
dialog p {
  margin: 0 0 var(--space-8);
  color: var(--color-text-muted);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.dialog-head h2 {
  margin: 0;
}
.dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.dialog-actions button {
  width: 100%;
  min-width: 0;
  min-height: var(--touch-target);
}
