/* ==========================================================================
   toast.css — Orcheum CANONICAL corner notification (shared)
   --------------------------------------------------------------------------
   A brief, self-dismissing message anchored to the bottom-right corner —
   e.g. "Project X was deleted". Not a modal: it never blocks or dims the
   page. Reusable; values come from the design-token layer.
   ========================================================================== */

.oc-toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;                 /* above pop-ups: it reports their outcome */
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;          /* the region is transparent to clicks */
}

.oc-toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  box-sizing: border-box;
  padding: 12px 14px;
  background: var(--color-cream-50);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-sm);     /* 14 */
  line-height: 1.35;
  color: var(--color-foreground);
  pointer-events: auto;          /* the toast itself is interactive/hoverable */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.oc-toast.is-in {
  opacity: 1;
  transform: none;
}

.oc-toast__icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}
.oc-toast__message {
  min-width: 0;
}
/* Emphasised subject inside the message (e.g. the project name). */
.oc-toast__subject { font-weight: var(--font-weight-medium); }

@media (prefers-reduced-motion: reduce) {
  .oc-toast { transition: opacity 160ms ease; transform: none; }
}

@media (max-width: 440px) {
  .oc-toast-region {
    right: 12px;
    left: 12px;
    bottom: 12px;
    align-items: stretch;
  }
  .oc-toast { max-width: none; }
}
