/* Shared short feedback; existing messages and per-page display times stay intact. */
:root { --outlo-toast-bottom-gap: 24px; }
.outlo-toast {
  position: fixed;
  z-index: 5000;
  inset: auto auto calc(var(--outlo-toast-bottom-gap, 24px) + env(safe-area-inset-bottom, 0px)) 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: min(480px, calc(100vw - 32px));
  box-sizing: border-box;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #e4e3ef;
  border-radius: 14px;
  background: #fff;
  color: #172033;
  box-shadow: 0 8px 28px #241c441a, 0 2px 6px #241c440a;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
  transform: translateX(-50%);
  animation: outloToastAppear 180ms ease-out;
  transition: opacity 160ms ease, transform 160ms ease;
}
.outlo-toast[hidden] { display: none; }
.outlo-toast[data-leaving] { opacity: 0; transform: translate(-50%, 4px); }
.outlo-toast .toast-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--outlo-brand-accent);
  background: var(--outlo-brand-soft);
}
.outlo-toast .toast-icon svg { display: block; width: 18px; height: 18px; }
.outlo-toast[data-tone="success"] .toast-icon { color: #15803d; background: #ecfdf3; }
.outlo-toast[data-tone="warning"] .toast-icon { color: #a16207; background: #fffbeb; }
.outlo-toast[data-tone="error"] .toast-icon { color: #be123c; background: #fff1f2; }
.outlo-toast .toast-message { min-width: 0; }
.outlo-load-error {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  background: #eef2ff;
  color: #1e1b4b;
  font-size: 14px;
  line-height: 1.5;
}
.outlo-load-error p { margin: 0 0 12px; }
.outlo-load-error-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.outlo-load-error .outlo-load-error-actions button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--outlo-brand-border);
  border-radius: 10px;
  background: #fff;
  color: var(--outlo-brand-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.outlo-load-error .outlo-load-error-actions button:hover { background: var(--outlo-brand-soft-hover); border-color: var(--outlo-brand-border-hover); }
.outlo-load-error .outlo-load-error-actions button:focus-visible { outline: 3px solid var(--outlo-brand-accent); outline-offset: 2px; }
.outlo-toast:has(> .outlo-load-error) { padding: 0; max-width: min(520px, calc(100vw - 24px)); }
.outlo-toast > .outlo-load-error { margin: 0; width: 100%; box-sizing: border-box; }
@keyframes outloToastAppear {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 1120px) {
  :root { --outlo-toast-bottom-gap: 16px; }
}
@media (max-width: 560px) {
  .outlo-toast { max-width: calc(100vw - 24px); }
}
/* The organizer request keeps its notice inline in the native dialog. */
#organizerRequestDialog .outlo-toast { animation: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .outlo-toast { animation: none; transition: none; }
}
