/* First-time editor walkthrough — spotlight overlay + step tooltip.
   Self-contained; loaded only on the editor pages. */

.wt-root { position: fixed; inset: 0; z-index: 100000; }
.wt-root * { box-sizing: border-box; }

/* Full-screen dimmer used when a step has no target element */
.wt-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  animation: wt-fade 0.2s ease;
}

/* Spotlight: a transparent box whose huge box-shadow dims everything else */
.wt-spotlight {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.6);
  transition: all 0.25s ease;
  pointer-events: none;
}

.wt-card {
  position: absolute;
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  padding: 1.1rem 1.25rem 1rem;
  animation: wt-pop 0.2s ease;
  font-family: inherit;
}

.wt-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #0f172a;
}

.wt-card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
}

.wt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wt-progress { font-size: 0.8rem; color: #94a3b8; }

.wt-buttons { display: flex; gap: 0.4rem; }

.wt-btn {
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.wt-btn-primary { background: #43b0b3; color: #fff; }
.wt-btn-primary:hover { background: #3a9a9d; }
.wt-btn-ghost { background: transparent; color: #64748b; }
.wt-btn-ghost:hover { color: #0f172a; }
.wt-skip {
  background: none; border: none; cursor: pointer;
  font-size: 0.82rem; color: #94a3b8; padding: 0.3rem; font-family: inherit;
}
.wt-skip:hover { color: #64748b; text-decoration: underline; }

/* Little arrow pointing at the highlighted element */
.wt-card::before {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  background: #fff;
  transform: rotate(45deg);
}
.wt-card.wt-below::before { top: -6px; left: 28px; }
.wt-card.wt-above::before { bottom: -6px; left: 28px; }
.wt-card.wt-center::before { display: none; }

@keyframes wt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wt-pop  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-color-scheme: dark) {
  .wt-card { background: #1e293b; }
  .wt-card h3 { color: #f1f5f9; }
  .wt-card p { color: #cbd5e1; }
  .wt-card::before { background: #1e293b; }
}
