.toast-region{position:fixed;z-index:250;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));width:min(380px,calc(100vw - 32px));display:grid;gap:12px;pointer-events:none;max-height:calc(100dvh - 32px);overflow:auto;padding:4px}
.notification{padding:14px 16px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-panel);color:var(--ui-fg);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.toast-card{display:grid;grid-template-columns:24px minmax(0,1fr) 44px;gap:10px;align-items:start;padding:12px 8px 12px 16px;box-shadow:0 12px 36px #0004;pointer-events:auto;border-left:3px solid var(--ui-accent)}
.toast-card p{margin:10px 0}.notification-symbol{display:grid;place-items:center;width:24px;height:24px;border:1px solid currentColor;border-radius:50%;font-weight:650;margin-top:9px;color:var(--ui-accent)}
.notification[data-type=success]{border-left-color:#74cba0}.notification[data-type=success] .notification-symbol{color:#74cba0}.notification[data-type=error],.notification[data-type=warning]{border-left-color:#ffaaaa}.notification[data-type=error] .notification-symbol,.notification[data-type=warning] .notification-symbol{color:#ffaaaa}
[data-theme=classic] .notification[data-type=success]{border-left-color:#176b45}[data-theme=classic] .notification[data-type=success] .notification-symbol{color:#176b45}[data-theme=classic] .notification:is([data-type=error],[data-type=warning]){border-left-color:#b71c1c}[data-theme=classic] .notification:is([data-type=error],[data-type=warning]) .notification-symbol{color:#b71c1c}
.notification-close{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:var(--ui-muted);font-size:26px;cursor:pointer}.notification-close:hover{background:var(--ui-raised);color:var(--ui-fg)}
.notification-fallback:empty{display:none}.notification-fallback .notification{margin-top:16px}
@media(prefers-reduced-motion:no-preference){.toast-card{animation:toast-enter .2s ease-out}@keyframes toast-enter{from{transform:translateY(-8px);opacity:0}to{transform:translateY(0);opacity:1}}}
@media(max-width:639px){.toast-region{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));width:auto;top:max(12px,env(safe-area-inset-top))}}
