/* Scoped global notifications; native form validation is untouched. */
.fxt-notifications {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    z-index: 1100;
    pointer-events: none;
}
.fxt-notifications[hidden] { display: none !important; }
.fxt-toast {
    --fxt-toast-accent: #315b72;
    --fxt-toast-tint: #f4f8fa;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border: 1px solid #d9d7cc;
    border-inline-start: 5px solid var(--fxt-toast-accent);
    border-radius: 16px;
    background: var(--fxt-toast-tint);
    color: #30362b;
    box-shadow: 0 16px 48px #20251b30, 0 3px 10px #20251b15;
    font-family: inherit;
    line-height: 1.45;
    text-align: start;
    pointer-events: auto;
    animation: fxt-toast-appear 140ms ease-out;
}
.fxt-toast--success { --fxt-toast-accent: #397044; --fxt-toast-tint: #f3f8ef; }
.fxt-toast--error { --fxt-toast-accent: #b33b32; --fxt-toast-tint: #fff5f2; }
.fxt-toast--warning { --fxt-toast-accent: #a67517; --fxt-toast-tint: #fff9ea; }
.fxt-toast-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--fxt-toast-accent);
    font: 700 20px/1 sans-serif;
}
.fxt-toast-content { flex: 1 1 auto; min-width: 0; }
.fxt-toast-heading { margin-bottom: 4px; font-size: 17px; font-weight: 700; color: var(--fxt-toast-accent); }
.fxt-toast-text { overflow-wrap: anywhere; font-size: 15px; }
.fxt-toast-text p { margin: 0 0 6px; }
.fxt-toast-text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fxt-toast-controls { flex: 0 0 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fxt-toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -5px -5px 0 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #555c50;
    font: 400 27px/1 sans-serif;
    cursor: pointer;
    box-shadow: none;
}
.fxt-toast-close:hover { background: #30362b10; }
.fxt-toast-close:focus-visible { outline: 2px solid var(--fxt-toast-accent); outline-offset: 2px; }
.fxt-toast-count { border-radius: 12px; padding: 1px 6px; background: #30362b10; font-size: 12px; color: #555c50; }
.fxt-toast-count[hidden] { display: none; }
#messages.fxt-message-source { display: none !important; margin: 0; padding: 0; }
.page.messages:has(.fxt-message-source) { position: static; margin: 0; padding: 0; min-height: 0; }
@keyframes fxt-toast-appear {
    from { opacity: 0; translate: 0 5px; }
    to { opacity: 1; translate: 0 0; }
}
@media (max-width: 480px) {
    .fxt-toast { padding: 16px 14px; gap: 10px; border-radius: 12px; }
    .fxt-toast-text { font-size: 14px; }
    .fxt-toast-heading { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .fxt-toast { animation: none; } }
