dialog {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: var(--s7);
  width: min(430px, calc(100% - 28px));
  box-shadow: var(--shadow);
}
.reveal-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.reveal-actions button { min-height: 44px; flex: 1 1 auto; justify-content: center; }
.reveal-actions button:disabled { opacity: 0.65; }
.reveal-error:empty { display: none; }
dialog::backdrop {
  background: color-mix(in srgb, var(--black) 75%, transparent);
}
dialog h2 {
  font: 700 35px var(--display);
  margin: 0 0 13px;
}
dialog p,
dialog li,
dialog dd {
  font-size: 14px;
  line-height: 1.55;
  color: var(--secondary);
}
dialog ol {
  padding-left: 22px;
}
dialog li {
  margin-bottom: 10px;
}
dialog dt {
  margin: 16px 0 3px;
  font-weight: 700;
}
dialog dd {
  margin: 0;
}
dialog p {
  margin-top: 15px;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  justify-content: center;
}
#toast {
  position: fixed;
  z-index: 5;
  bottom: var(--s7);
  left: 50%;
  max-width: 90%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--border);
  background: var(--inset);
  border-radius: var(--r2);
  padding: 10px 16px;
  color: var(--fg);
  font-size: 13px;
  box-shadow: var(--shadow);
  transition:
    opacity var(--speed),
    transform var(--speed);
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
