.app-toast-region {
    position: fixed;
    top: max(24px, env(safe-area-inset-top));
    right: max(24px, env(safe-area-inset-right));
    z-index: 10900;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    pointer-events: none;
}
.app-toast {
    --toast-tone: #16865b;
    --toast-soft: #e8f6ee;
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    gap: 12px;
    padding: 14px 12px 16px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    box-shadow: 0 1px 2px #0f172a0f, 0 14px 32px -12px #0f172a3d;
    overflow: hidden;
    pointer-events: auto;
    font-family: inherit;
    animation: app-toast-in .3s ease both;
}
.app-toast--error { --toast-tone: #d63c49; --toast-soft: #fdecee; }
.app-toast--warning { --toast-tone: #b77916; --toast-soft: #fff4db; }
.app-toast--info { --toast-tone: #3274cf; --toast-soft: #eaf2ff; }
.app-toast-icon { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--toast-soft); color: var(--toast-tone); }
.app-toast-icon svg { width: 18px; height: 18px; }
.app-toast-content { flex: 1; min-width: 0; padding-top: 1px; }
.app-toast-title { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.app-toast-message { margin: 3px 0 0; color: #607089; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.app-toast-close { display: grid; flex: none; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #64748b; cursor: pointer; }
.app-toast-close:hover { background: #f1f5f9; color: #172033; }
.app-toast-close:focus-visible { outline: 2px solid var(--toast-tone); outline-offset: 2px; }
.app-toast-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--toast-tone); transform-origin: left; }
[data-toast-message] { display: none !important; }
[data-theme="dark"] .app-toast { background: #1e293b; color: #f1f5f9; border-color: #334155; }
[data-theme="dark"] .app-toast-message { color: #cbd5e1; }
[data-theme="dark"] .app-toast-close { color: #cbd5e1; }
@keyframes app-toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 575px) { .app-toast-region { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); left: max(12px, env(safe-area-inset-left)); width: auto; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .app-toast { animation: none; } }
