/* Shared feedback above the page and modal content. */
body[data-apl-design="negocios"] .an-toast-source { display: none !important; }
body[data-apl-design="negocios"] .an-toast-region {
  position: fixed; inset: calc(var(--shell-topbar-height, 54px) + 16px) max(16px, env(safe-area-inset-right)) auto auto;
  box-sizing: border-box; display: flex; flex-direction: column; gap: 12px;
  width: min(480px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - var(--shell-topbar-height, 54px) - 32px);
  margin: 0; padding: 0; border: 0; background: transparent; overflow: auto; pointer-events: none; z-index: 2147483300;
  font-family: var(--an-font); scrollbar-width: thin;
}
body[data-apl-design="negocios"] .an-toast-region:empty,
body[data-apl-design="negocios"] .an-toast-region[popover]:not(:popover-open) { display: none; }
body[data-apl-design="negocios"] .an-toast {
  --an-toast-tone: var(--an-brand-ink); --an-toast-soft: var(--an-mint);
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: start; gap: 12px;
  flex: 0 0 auto; box-sizing: border-box; min-width: 0; padding: 16px; margin: 0;
  border: 1px solid var(--an-border); border-inline-start: 5px solid var(--an-toast-tone);
  border-radius: var(--an-radius-card); background: var(--an-surface); color: var(--an-ink);
  box-shadow: var(--an-shadow-float); pointer-events: auto; font: 400 var(--an-text-body)/1.5 var(--an-font);
  animation: an-toast-enter var(--an-motion-expand) var(--an-ease);
}
body[data-apl-design="negocios"] .an-toast--error { --an-toast-tone: var(--an-danger); --an-toast-soft: var(--an-danger-soft); }
body[data-apl-design="negocios"] .an-toast--warning { --an-toast-tone: var(--an-warning); --an-toast-soft: var(--an-warning-soft); }
body[data-apl-design="negocios"] .an-toast--info { --an-toast-tone: var(--an-brand-ink); --an-toast-soft: var(--an-surface-soft); }
body[data-apl-design="negocios"] .an-toast__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--an-toast-soft); color: var(--an-toast-tone); font-size: 20px; font-weight: 700; }
body[data-apl-design="negocios"] .an-toast__copy { min-width: 0; overflow-wrap: anywhere; }
body[data-apl-design="negocios"] .an-toast__title { display: block; color: var(--an-toast-tone); font-size: var(--an-text-body); font-weight: 700; }
body[data-apl-design="negocios"] .an-toast__message { margin: 4px 0 0; color: var(--an-ink); font-size: var(--an-text-body); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
body[data-apl-design="negocios"] .an-toast__action { display: inline-block; margin-top: 8px; color: var(--an-brand-ink); text-decoration: underline; font-weight: 600; }
body[data-apl-design="negocios"] .an-toast__close { display: grid; place-items: center; width: 36px; min-width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--an-radius-sm); background: transparent; color: var(--an-ink); font: 400 26px/1 var(--an-font); cursor: pointer; }
body[data-apl-design="negocios"] .an-toast__close:hover { background: var(--an-surface-soft); }
body[data-apl-design="negocios"] .an-toast :is(button, a):focus-visible { outline: 2px solid var(--an-brand); outline-offset: 2px; }
@keyframes an-toast-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  body[data-apl-design="negocios"] .an-toast-region { inset-inline: 12px; width: auto; max-height: calc(100dvh - var(--shell-topbar-height, 54px) - 28px); }
  body[data-apl-design="negocios"] .an-toast { grid-template-columns: 32px minmax(0, 1fr) 44px; gap: 8px; padding: 12px; }
  body[data-apl-design="negocios"] .an-toast__icon { width: 32px; height: 32px; }
  body[data-apl-design="negocios"] .an-toast__close { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { body[data-apl-design="negocios"] .an-toast { animation: none; } }
@media print { body[data-apl-design="negocios"] .an-toast-region { display: none !important; } }
