
/* ShiftFlow 5.1 – Stability UI */

.sf-toast-container {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 9999;
  display: grid;
  gap: 9px;
  width: min(390px, calc(100vw - 24px));
  pointer-events: none;
}

.sf-toast {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  opacity: 0;
  background: var(--app-surface);
  box-shadow: 0 20px 70px rgba(0,0,0,.34);
  transform: translateY(14px);
  transition: 220ms var(--sf-ease);
}

.sf-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.sf-toast > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: var(--accent-b);
  background: var(--app-surface-2);
  font-weight: 900;
}

.sf-toast.error > span { color: #ff786d; }
.sf-toast.success > span { color: #4fd79a; }

.sf-toast p {
  margin: 0;
  line-height: 1.45;
}

button.is-loading {
  position: relative;
  cursor: wait;
  opacity: .72;
}

button.is-loading::after {
  content: "";
  width: 13px;
  height: 13px;
  margin-left: 8px;
  display: inline-block;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: sf-spin .75s linear infinite;
  vertical-align: -2px;
}

@keyframes sf-spin {
  to { transform: rotate(360deg); }
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-b) 70%, white);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
