/* ===== Toast ===== */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  min-width: 180px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  color: var(--text-body);
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

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

.toast-success { border-color: rgba(85,204,136,0.45); color: #d4f5e3; }
.toast-warning { border-color: rgba(255,204,51,0.45); color: #fff5cc; }
.toast-error   { border-color: rgba(255,85,85,0.45); color: #ffd6d6; }
.toast-info    { border-color: rgba(102,204,255,0.45); color: #dff4ff; }

@media (max-width: 640px) {
  #toast-container { bottom: 16px; }
  .toast { font-size: 13px; padding: 10px 14px; }
}

@media (max-width: 640px) {
  .global-bar { flex-direction: column; align-items: flex-start; }
  .global-pills { width: 100%; justify-content: flex-start; }
}

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