/* Toasts: small confirmations that slide in at the top right so the person sees the system did something. Same look as Podengo's. */
.xup-toasts{position:fixed;top:20px;right:20px;z-index:120;display:flex;flex-direction:column;gap:10px;max-width:min(360px,calc(100vw - 32px));pointer-events:none}
.xup-toast{position:relative;overflow:hidden;pointer-events:auto;display:flex;align-items:flex-start;gap:10px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-left:4px solid var(--green);border-radius:12px;padding:12px 14px;box-shadow:0 12px 32px rgba(0,0,0,.26);font-size:13px;line-height:1.4;opacity:0;transform:translateX(24px);transition:opacity .25s,transform .25s}
.xup-toast.in{opacity:1;transform:none}
.xup-toast.error{border-left-color:#d64545}.xup-toast.busy{border-left-color:var(--muted)}
.xup-toast .xt-ic{flex:0 0 auto;width:18px;height:18px;margin-top:1px}
.xup-toast .xt-tx{flex:1 1 auto;overflow-wrap:anywhere}
.xup-toast .xt-x{flex:0 0 auto;background:none;border:0;color:var(--muted);font-size:17px;line-height:1;cursor:pointer;padding:0 2px}.xup-toast .xt-x:hover{color:var(--ink)}
.xup-toast .xt-spin{flex:0 0 auto;width:16px;height:16px;margin-top:2px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--green);animation:xup-spin .8s linear infinite}
@keyframes xup-spin{to{transform:rotate(360deg)}}
@media (max-width:700px){.xup-toasts{top:12px;right:12px;left:12px;max-width:none}}
@media (prefers-reduced-motion:reduce){.xup-toast{transition:none;transform:none}.xup-toast .xt-spin{animation:none}}
/* a message the page already showed as a banner is now a toast; the banner stays only when scripts do not run */
.js-toasted{display:none!important}
.xup-toast .xt-bar{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--green);transform-origin:left;animation:xup-drain linear forwards}
.xup-toast.error .xt-bar{background:#d64545}.xup-toast.paused .xt-bar{animation-play-state:paused}
@keyframes xup-drain{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){.xup-toast .xt-bar{animation:none;display:none}}
