/*
 * Hub toasts (see hub-toast.js): top of the screen below the page header,
 * stacked, dismissible, readable at any width.
 */
.hub-toasts {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483000;
  width: min(440px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none; /* the page stays usable around and between toasts */
}
.hub-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 12px 8px 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #e3ded3;
  border-left: 4px solid #1a7a64;
  box-shadow: 0 10px 28px rgba(20, 28, 24, 0.16);
  font: 500 0.9rem/1.4 var(--zy-font-sans, system-ui, -apple-system, 'Segoe UI', sans-serif);
  animation: hub-toast-in 160ms ease-out;
}
.hub-toast.leaving { animation: hub-toast-out 160ms ease-in forwards; }
.hub-toast-msg { overflow-wrap: anywhere; padding-top: 2px; }
.hub-toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: #1a7a64;
}
.hub-toast-success .hub-toast-icon::before { content: '\2713'; }
.hub-toast-error { border-left-color: #b42318; }
.hub-toast-error .hub-toast-icon { background: #b42318; }
.hub-toast-error .hub-toast-icon::before { content: '!'; }
.hub-toast-warn { border-left-color: #b7791f; }
.hub-toast-warn .hub-toast-icon { background: #b7791f; }
.hub-toast-warn .hub-toast-icon::before { content: '!'; }
.hub-toast-info { border-left-color: #2c5a8a; }
.hub-toast-info .hub-toast-icon { background: #2c5a8a; }
.hub-toast-info .hub-toast-icon::before { content: 'i'; }
.hub-toast-x {
  width: 32px;
  height: 32px;
  margin: -6px 0 -6px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #555;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.hub-toast-x:hover { background: rgba(0, 0, 0, 0.06); color: #111; }
.hub-toast-x:focus-visible { outline: 2px solid #1a7a64; outline-offset: 1px; }
@keyframes hub-toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes hub-toast-out { to { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .hub-toast, .hub-toast.leaving { animation: none; }
}
