/* Dialogs and toasts. */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--backdrop);
}
.dialog {
  width: min(440px, 100%);
  padding: 24px;
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: 4px;
}
.dialog-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.toasts {
  position: fixed;
  z-index: 60;
  inset-inline: 0;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
/* A newer version of the site is published: a strip above the page, so it covers nothing and stays
   in view. */
.fresh-bar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-bottom: 1.5px solid var(--sea);
  background: var(--sheet);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-label);
  box-shadow: 0 4px 14px var(--shadow);
}
.fresh-bar .btn {
  flex: none;
}
@media print {
  .fresh-bar {
    display: none;
  }
}
.toast {
  padding: 10px 18px;
  background: var(--ink);
  color: var(--sheet);
  border-radius: 4px;
  font-weight: 700;
  font-size: var(--fs-label);
}
.toast-err {
  background: var(--err);
  color: var(--on-accent);
}
.toast-ok {
  background: var(--sea);
  color: var(--on-sea);
}

.loading {
  padding: 40px 0;
  text-align: center;
  color: var(--mute);
}
.state-title {
  font-size: var(--fs-step);
  margin-bottom: 8px;
}
.key-input {
  font-family: var(--font-code);
  letter-spacing: 0.6em;
  font-size: 1.75rem;
  text-align: center;
  direction: ltr;
}
[hidden] {
  /* the hidden attribute must beat every component display */
  display: none !important;
}
