:root {
  color-scheme: dark;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: #0b1220;
  color: #e2e8f0;
}

button,
input,
select,
textarea,
.btn,
.pill,
.thread,
.actor-item,
.composer,
.banner {
  font-family: var(--font-sans);
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

.muted {
  color: #94a3b8;
  font-size: 12px;
}
/* ===== Toast ===== */
#toast-root {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  bottom: auto;
  display: grid;
  gap: 10px;
  z-index: 9999;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #eef2ff;
  background: rgba(15, 17, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px) saturate(140%);
  animation: toastIn 0.18s ease-out;
}
.toast .ico {
  font-size: 18px;
  opacity: 0.9;
}
.toast .msg {
  line-height: 1.35;
}
.toast .close {
  margin-left: auto;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 18px;
}
.toast--success {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.15);
}
.toast--error {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.15);
}
.toast--info {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.15);
}

@keyframes toastIn {
  from {
    transform: translateY(-6px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes toastOut {
  to {
    transform: translateY(-6px);
    opacity: 0;
  }
}
