/* Toast d'app — CC-FIX-PAYLOAD-UNIONS-01 (#543). Langage des menus
   (tokens), bas-centre : la géographie du cockpit (#541) occupe les coins. */
#app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300; /* au-dessus des popins — l'échec doit se voir pendant le geste */
  max-width: min(92vw, 560px);
  padding: 10px 16px;
  background: var(--menu-bg);
  border: 1px solid var(--menu-border);
  border-radius: var(--radius-full);
  box-shadow: var(--menu-shadow);
  backdrop-filter: blur(8px);
  font-family: var(--font, 'Satoshi', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
  font-size: var(--text-rem-875);
  line-height: 1.4;
  cursor: pointer;
}
#app-toast.toast-error { color: var(--color-error-alt); }
#app-toast.toast-info { color: var(--menu-fg); }

/* #1341 (A4) — LE SECOND GESTE. La pilule devient une ligne : la phrase, puis
   l'action. Le bouton reprend le gabarit du lien du bandeau de quota
   (`.home-quota-lien`, home.css) plutôt qu'un troisième dessin de bouton — même
   geste, même forme, où qu'on le rencontre. */
/* #1667 ① — la confirmation d'une création : l'avatar devant la phrase. */
#app-toast .toast-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; object-fit: cover; }
/* #1689 — TOUJOURS UNE ICÔNE À GAUCHE : avatar (rond), logo officiel (22 px) ou pictogramme. */
#app-toast { display: flex; align-items: center; gap: 10px; padding-left: 10px; }
#app-toast:has(.toast-avatar) { padding-left: 8px; }
#app-toast .toast-logo { flex: none; width: 22px; height: 22px; object-fit: contain; }
#app-toast .toast-ico { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: inherit; }
#app-toast .toast-ico svg { width: 18px; height: 18px; display: block; }
/* #1695 — le tick vert : badge sur l'avatar ; sans avatar, l'icône « ok » est le tick dans un rond vert */
#app-toast.toast-ok .toast-ico { color: #fff; background: #1f8a4c; border-radius: 50%; width: 22px; height: 22px; }
#app-toast.toast-ok .toast-ico svg { width: 14px; height: 14px; stroke-width: 3; }
#app-toast .toast-avatar-wrap { position: relative; flex: none; width: 28px; height: 28px; display: block; }
#app-toast .toast-tick { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: #1f8a4c; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--menu-bg, #fff); }
#app-toast .toast-tick svg { width: 10px; height: 10px; stroke-width: 3.5; }
#app-toast.toast-ok { color: var(--menu-fg); }
#app-toast:has(.toast-action) {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: default;
}
#app-toast .toast-mot { flex: 1 1 auto; }
#app-toast .toast-action {
  flex: none;
  padding: 4px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#app-toast .toast-action:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}
