/* Coach-mark tour — fixed overlay so the card is never off-screen */
#ph-tour-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
}
#ph-tour-root.is-open {
  display: block;
  pointer-events: auto;
}
.ph-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 18, 0.48);
  cursor: pointer;
}
.ph-tour-highlight {
  position: fixed;
  z-index: 100001;
  border-radius: 12px;
  box-shadow: 0 0 0 2px #424fd1, 0 0 0 9999px rgba(10, 10, 18, 0.48);
  pointer-events: none;
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}
.ph-tour-card {
  position: fixed;
  z-index: 100002;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #13131a;
  color: #f8f8ff;
  border: 1px solid #2a2a3a;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  font-family: 'Instrument Sans', Inter, system-ui, sans-serif;
  pointer-events: auto;
}
.ph-tour-step {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7ae8;
}
.ph-tour-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.ph-tour-body {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #9999aa;
}
.ph-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ph-tour-actions button {
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border: 1px solid #2a2a3a;
  background: transparent;
  color: #9999aa;
}
.ph-tour-next {
  background: #424fd1 !important;
  border-color: #424fd1 !important;
  color: #fff !important;
}
.ph-tour-nav {
  display: flex;
  gap: 8px;
}
.ph-tour-back:disabled {
  opacity: 0.4;
  cursor: default;
}
.ph-tour-skip:hover {
  color: #fff;
  border-color: #555;
}
body.ph-tour-active {
  overflow: hidden;
}
@media (max-width: 640px) {
  .ph-tour-card {
    width: calc(100vw - 24px);
    left: 12px !important;
    right: 12px;
    max-height: min(42vh, 320px);
    padding: 14px 14px 12px;
  }
  .ph-tour-actions {
    flex-wrap: wrap;
  }
  .ph-tour-actions button {
    min-height: 40px;
    touch-action: manipulation;
  }
  .ph-tour-highlight {
    border-radius: 10px;
  }
}
