/* === TUTORIAL TOUR (edit mode onboarding) === */
.tour-overlay[hidden] { display: none !important; }

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  pointer-events: auto;
}

body.tour-open {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Spotlight "hole" */
.tour-spotlight {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  transform: translate(-50%, -50%);
  border-radius: 6px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.58);
  outline: 2px solid rgba(255, 255, 255, 0.524);
  pointer-events: none;
}

.tour-card {
  position: fixed;
  left: 12px;
  right: 12px;
  margin: 0 auto;
  max-width: 520px;

  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18,18,20,0.92);
  color: #fff;
  box-shadow: 0 14px 44px rgba(0,0,0,0.45);
  padding: 12px 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (prefers-color-scheme: light) {
  .tour-card {
    background: rgba(255,255,255,0.94);
    color: #111;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 14px 44px rgba(0,0,0,0.18);
  }
  .tour-spotlight {
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.42);
    outline: 2px solid rgba(0,0,0,0.14);
  }
}

.tour-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tour-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.tour-skip {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: inherit;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  cursor: pointer;
}
.tour-skip:active { transform: scale(0.98); }

@media (prefers-color-scheme: light) {
  .tour-skip {
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.04);
  }
}

.tour-text {
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.95;
}

.tour-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.tour-progress {
  font-size: 11px;
  opacity: 0.75;
  white-space: nowrap;
}

.tour-btn {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: inherit;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
  min-width: 78px;
}
.tour-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.tour-btn:active { transform: scale(0.98); }

@media (prefers-color-scheme: light) {
  .tour-btn {
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.04);
  }
}

.tour-primary {
  background: rgba(240, 205, 120, 0.86);
  border: 1px solid rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.88);
}
.tour-primary:active { background: rgba(240, 205, 120, 0.74); }
