/* The one toast (F-108). Every pop-up message in GitAway (a plan moved, Undo, the Ask sheet's result, the calendar's added/deleted lines, an error) is this: an opaque pill at the top (no glass or blur, F-200),
   just under the heading (assets/js/toast.js measures where that is and sets --ga-toast-y), centred, never wider than 22rem, its words wrap and are never cut. It grows out of what was
   tapped (assets/js/motion.js, the one liquid spring, F-109) and folds back into it, a new one takes its place (the words crossfade, the pill does not move). Reduced motion:
   no movement and no fade, it simply appears and goes. Loaded by layout.styles() on every page. Sizes are rem; the touch target (Undo) is 2.75rem. */
:root { --ga-toast-y: 4.5rem; }

.ga-toast { position: fixed; z-index: 80; left: 0; right: 0; margin-inline: auto; top: calc(max(var(--ga-toast-y), env(safe-area-inset-top, 0px)) + 0.5rem); width: max-content; max-width: min(22rem, calc(100% - 2rem)); box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 0.375rem 0.75rem; padding: 0.3125rem 0.3125rem 0.3125rem 1.125rem; border-radius: 1.75rem; color: var(--ink); font-weight: 800; font-size: max(var(--text-min), 0.9375rem); line-height: 1.25; text-align: left;
  background: var(--card-2); border: 0; box-shadow: var(--sh3);
  pointer-events: auto; }
.ga-toast-body { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-width: 0; max-width: 100%; opacity: 1; transition: opacity var(--motion-fade) ease; }
.ga-toast-body.is-swap { opacity: 0; }
.ga-toast-t { min-width: 0; overflow-wrap: anywhere; padding: 0.25rem 0; flex: 1 1 auto; }
.ga-toast-act { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: var(--target); min-height: var(--target); padding: 0 1.125rem; border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink);
  font-family: var(--font-body); font-weight: 800; font-size: max(var(--text-min), 0.9375rem); text-decoration: none; cursor: pointer; }
.ga-toast-act:focus-visible { outline: 0.1875rem solid var(--ink); outline-offset: 0.125rem; }
.ga-toast.is-error { box-shadow: 0 0 0 0.125rem var(--coral-deep), 0 0.5rem 1.5rem -0.5rem rgb(var(--shadow-c) / .28); }
.ga-toast form { display: inline-flex; margin: 0; }

/* a toast the server drew with the page (the old Today page's): it is there from the start and glides in once */
.ga-toast-static { opacity: 1; translate: 0 0; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) { .ga-toast-static { animation: ga-toast-in var(--motion-spring-dur) var(--motion-spring) both; } }
@keyframes ga-toast-in { from { opacity: 0; translate: 0 -0.75rem; } }

@media (prefers-reduced-motion: reduce) { .ga-toast, .ga-toast-body { transition: none; animation: none; } }
