@font-face { font-family:'Material Symbols Outlined'; src:url('/fonts/material-symbols-f24.woff2') format('woff2'); font-weight:100 700; font-display:block; }
.ag-toasts { position:fixed; z-index:100000; top:16px; right:16px; display:flex; flex-direction:column; gap:10px; width:min(400px, calc(100vw - 32px)); pointer-events:none; font-family:'Roboto',system-ui,-apple-system,'Segoe UI',sans-serif; }
.ag-toast { pointer-events:auto; position:relative; display:flex; gap:12px; align-items:flex-start; padding:14px 14px 14px 14px; background:#16181d; color:#fff; border-radius:16px; box-shadow:0 12px 32px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.2); overflow:hidden; opacity:0; transform:translateX(24px) scale(.97); transition:opacity .22s ease, transform .22s ease; touch-action:pan-y; }
.ag-toast.is-in { opacity:1; transform:none; }
.ag-toast.is-out { opacity:0; transform:translateX(24px) scale(.97); }
.ag-toast__ic { flex:none; width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.14); }
.ag-toast__ic .ms { font-family:'Material Symbols Outlined'; font-weight:500; font-style:normal; font-size:18px; line-height:1; letter-spacing:normal; text-transform:none; white-space:nowrap; direction:ltr; display:inline-block; font-feature-settings:'liga'; -webkit-font-smoothing:antialiased; }
.ag-toast.is-ok .ag-toast__ic { background:#22c55e; color:#06240f; }
.ag-toast.is-error .ag-toast__ic { background:#dc2626; color:#fff; }
.ag-toast.is-warn .ag-toast__ic { background:#f59e0b; color:#2b1a02; }
.ag-toast.is-info .ag-toast__ic { background:#60a5fa; color:#06203f; }
.ag-toast__body { flex:1; min-width:0; font-size:14px; line-height:1.45; padding-top:3px; overflow-wrap:anywhere; }
.ag-toast__msg { margin:0; font-weight:600; }
.ag-toast__list { margin:6px 0 0; padding:0; list-style:none; color:rgba(255,255,255,.82); font-weight:400; }
.ag-toast__list li { margin-top:3px; }
.ag-toast__act { margin-top:8px; display:inline-block; color:#fff; font-weight:600; text-decoration:underline; }
.ag-toast__x { flex:none; width:28px; height:28px; margin:-2px -2px 0 0; border:0; border-radius:50%; background:transparent; color:rgba(255,255,255,.7); cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
.ag-toast__x:hover, .ag-toast__x:focus-visible { background:rgba(255,255,255,.14); color:#fff; outline:none; }
.ag-toast__x .ms { font-family:'Material Symbols Outlined'; font-style:normal; font-size:18px; line-height:1; font-feature-settings:'liga'; display:inline-block; }
.ag-toast__bar { position:absolute; left:0; bottom:0; height:3px; width:100%; background:rgba(255,255,255,.35); transform-origin:left; animation:agToastBar linear forwards; animation-duration:var(--ag-dur, 6s); }
.ag-toast:hover .ag-toast__bar, .ag-toast.is-paused .ag-toast__bar { animation-play-state:paused; }
.ag-toast.is-ok .ag-toast__bar { background:#22c55e; } .ag-toast.is-error .ag-toast__bar { background:#ef4444; } .ag-toast.is-warn .ag-toast__bar { background:#f59e0b; } .ag-toast.is-info .ag-toast__bar { background:#60a5fa; }
@keyframes agToastBar { from { transform:scaleX(1); } to { transform:scaleX(0); } }
@media (max-width:560px) { .ag-toasts { top:calc(12px + env(safe-area-inset-top)); bottom:auto; right:12px; left:12px; width:auto; flex-direction:column; } .ag-toast { transform:translateY(-20px) scale(.97); } .ag-toast.is-out { transform:translateY(-20px) scale(.97); } }
@media (prefers-reduced-motion:reduce) { .ag-toast { transition:opacity .01s; transform:none; } } /* Zeitbalken bleibt auch bei reduzierter Bewegung: ruhige, lineare Restzeit-Anzeige */
/* Deutlichere Bewegung: Toast federt herein, Symbol springt auf, beim Schließen gleitet er heraus */
.ag-toast { transform:translateX(48px) scale(.92); transition:opacity .28s ease, transform .5s cubic-bezier(.2,1.3,.35,1); }
.ag-toast.is-out { opacity:0; transform:translateX(56px) scale(.96); transition:opacity .2s ease, transform .22s ease-in; }
.ag-toast.is-in .ag-toast__ic { animation:agToastPop .5s .08s cubic-bezier(.2,1.7,.4,1) both; }
@keyframes agToastPop { from { transform:scale(.3); opacity:0; } to { transform:none; opacity:1; } }
/* Handy: oben mittig; Meldungen gleiten von oben herein */
@media (max-width:560px) {
  .ag-toasts { top:calc(12px + env(safe-area-inset-top)); bottom:auto; left:12px; right:12px; width:auto; max-width:440px; margin:0 auto; flex-direction:column; }
  .ag-toast { transform:translateY(-32px) scale(.94); }
  .ag-toast.is-out { transform:translateY(-32px) scale(.96); }
}
@media (prefers-reduced-motion:reduce) { .ag-toast, .ag-toast.is-out { transform:none; transition:opacity .25s ease; } .ag-toast.is-in .ag-toast__ic { animation:none; } }
