/* =====================================================================
   Toasts (M.toast a través de UI.toast(texto, 'ok' | 'error' | 'info'))
   ===================================================================== */
#toast-container {
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
    max-width: calc(100% - 32px);
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 420px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: #13305f;
    color: var(--text);
    box-shadow: var(--shadow-modal);
    font-size: var(--text-sm);
    font-weight: 600;
}

.toast::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--accent);
}

.toast--ok::before {
    background: var(--ok);
}

.toast--error {
    border-color: var(--bad-line);
}

.toast--error::before {
    background: var(--bad);
}

@media (max-width: 600px) {
    #toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        align-items: stretch;
        max-width: none;
    }

    .toast {
        max-width: none;
    }
}
