/* Ordinary messages only; never restyles project, login or account content. */
dialog#toast.centered-notice {
  position: fixed; inset: 0; margin: auto; transform: none; z-index: auto;
  opacity: 1; visibility: visible; pointer-events: auto; transition: none; animation: none; backdrop-filter: none; white-space: normal;
  box-sizing: border-box; width: min(520px, calc(100vw - 32px));
  min-width: 0; max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px);
  padding: 24px; border: 1px solid #ded8ca; border-radius: 14px;
  background: #fffdf9; color: #29261f; box-shadow: 0 16px 56px #28221726;
  font: 16px/1.6 system-ui, sans-serif; text-align: left; overflow: hidden;
}
dialog#toast.centered-notice[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; }
dialog#toast.centered-notice:not([open]) { display: none; }
dialog#toast.centered-notice::backdrop { background: #28221738; }
dialog#toast.centered-notice h2 { margin: 0; color: #29261f; font-size: 20px; line-height: 1.4; }
dialog#toast.centered-notice p { margin: 0; min-height: 0; max-height: calc(100dvh - 220px); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #29261f; }
dialog#toast.centered-notice footer { display: flex; justify-content: flex-end; }
dialog#toast.centered-notice button { padding: 9px 24px; border: 0; border-radius: 8px; background: #c4a652; color: #251f10; font: inherit; cursor: pointer; }
dialog#toast.centered-notice button:focus-visible { outline: 2px solid #8a6a1d; outline-offset: 3px; }
