/* ===== STATES: connection banner + toast ===== */
.conn-banner {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 300;
  display: flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 99px;
  background: oklch(0.30 0.04 50); color: oklch(0.97 0.02 80); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg);
}
.conn-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid oklch(1 0 0 / .3); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-host { position: fixed; top: 16px; right: 16px; z-index: 250; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; width: 340px; max-width: calc(100vw - 32px); padding: 12px 14px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  text-align: left; animation: toastLife 7.5s ease forwards;
}
@keyframes toastLife {
  0% { transform: translateX(20px); opacity: 1; }
  3% { transform: none; opacity: 1; }
  90% { transform: none; opacity: 1; }
  100% { transform: translateX(400px); opacity: 0; visibility: hidden; }
}
.toast:hover { background: var(--surface-2); }
.toast-lock { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--text-on-soft); flex-shrink: 0; }

@media (max-width: 560px) { .toast-host { left: 16px; right: 16px; } .toast { width: auto; } }
