/* ==========================================================================
   TOASTS · dark pills anchored at the bottom center
   ========================================================================== */

#toasts {
  position: fixed; left: 50%; bottom: var(--toast-b, 24px);
  transform: translateX(-50%); z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100vw - 32px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px; border-radius: 22px;
  background: color-mix(in srgb, var(--color-ink) 94%, transparent);
  color: var(--color-white); font-size: var(--fs-md);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--color-forest) 30%, transparent);
  animation: toastIn .3s var(--ease);
}
.toast .ic { width: 16px; height: 16px; margin-top: 2px; stroke-width: 2.4; color: var(--color-aqua) }
.toast[data-level="attention"] .ic { color: var(--color-warn-soft) }
.toast[data-level="surgeon"]   .ic { color: var(--color-crit-toast) }
.toast[data-level="sensor"]    .ic { color: var(--color-sensor-toast) }

.toast .tx { display: flex; flex-direction: column; gap: 1px; min-width: 0 }
.toast .tx b    { font-weight: 600; display: flex; align-items: center; gap: 8px }
.toast .lvdot   { box-shadow: 0 0 0 3px color-mix(in srgb, var(--lv) 28%, transparent) }
.toast .tx span { color: var(--color-toast-text); font-size: var(--fs-sm) }

.toast .btn {
  min-height: 32px; padding: 5px 12px; font-size: var(--fs-xs);
  margin-left: 6px; flex: none; align-self: center;
  background: color-mix(in srgb, var(--color-white) 12%, transparent);
  border-color: color-mix(in srgb, var(--color-white) 25%, transparent);
  color: var(--color-white);
}
.toast .btn:hover { background: color-mix(in srgb, var(--color-white) 22%, transparent) }
.toast.out { transition: opacity .2s ease-out, transform .2s ease-out; opacity: 0; transform: translateY(-8px) }

@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98) } to { opacity: 1; transform: none } }
