/* ── Toast notifications ─────────────────────────────────────────────── */
.p2p-toast {
  background: rgba(255, 255, 255, 0.92);
  color: #101114;
  border-color: rgba(18, 18, 18, 0.12);
}
.p2p-toast--error { box-shadow: 0 18px 44px rgba(239, 68, 68, 0.18); }
.p2p-toast--success { box-shadow: 0 18px 44px rgba(16, 185, 129, 0.18); }
.p2p-toast--warn { box-shadow: 0 18px 44px rgba(245, 158, 11, 0.18); }
.p2p-toast--info { box-shadow: 0 18px 44px rgba(59, 130, 246, 0.18); }
@media (prefers-color-scheme: dark) {
  .p2p-toast {
    background: rgba(20, 23, 27, 0.92);
    color: #f5f4ef;
    border-color: rgba(255, 255, 255, 0.14);
  }
}

/* ── Dark mode toggle (user override) ───────────────────────────────── */
html.theme-light, html.theme-light body { color-scheme: light; }
html.theme-dark, html.theme-dark body { color-scheme: dark; }
html.theme-system, html.theme-system body { color-scheme: light dark; }

/* ── Onboarding tour ─────────────────────────────────────────────────── */
.p2p-tour {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}
.p2p-tour__spotlight {
  position: absolute;
  border-radius: 1rem;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  transition: all 0.25s ease;
}
.p2p-tour__card {
  position: absolute;
  z-index: 151;
  width: 22rem;
  max-width: calc(100vw - 2rem);
  padding: 1.25rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}

/* ── Command palette (Cmd+K) ────────────────────────────────────────── */
.p2p-cmdk {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 1rem 1rem;
  backdrop-filter: blur(4px);
}
.p2p-cmdk__panel {
  width: min(40rem, 100%);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.p2p-cmdk__input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  outline: none;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
}
.p2p-cmdk__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  max-height: 56vh;
  overflow-y: auto;
}
.p2p-cmdk__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.p2p-cmdk__item.is-active,
.p2p-cmdk__item:hover { background: rgba(0, 0, 0, 0.06); }
@media (prefers-color-scheme: dark) {
  .p2p-cmdk__item.is-active,
  .p2p-cmdk__item:hover { background: rgba(255, 255, 255, 0.06); }
}
