/* SpitzerData tutorial mode (2026-08-10). Navy/cream house palette;
 * spotlight = the classic huge-box-shadow cutout. The TUTORIAL nav link
 * ships hidden and is revealed by SpitzerTutorial.define() so pages
 * without a tour never show a dead button. */

.nav-tutorial-link { display: none; }

#sptr-wrap { display: none; }

#sptr-spot {
  position: fixed;
  z-index: 10050;
  border-radius: 6px;
  box-shadow: 0 0 0 9999px rgba(4, 10, 24, 0.72);
  outline: 2px solid #D9F7FD;
  outline-offset: 1px;
  pointer-events: none;
  transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease;
}

#sptr-card {
  position: fixed;
  z-index: 10051;
  background: #0E1F3D;
  color: #D9F7FD;
  border: 1px solid #D9F7FD;
  border-radius: 8px;
  padding: 12px 14px 10px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
  font-size: 13.5px;
  line-height: 1.45;
}

#sptr-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

#sptr-badge {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #D9F7FD;
  color: #0E1F3D;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sptr-title {
  flex: 1 1 auto;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12.5px;
}

#sptr-skip {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: #D9F7FD;
  opacity: .7;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
}
#sptr-skip:hover { opacity: 1; }

/* pre-line: line breaks typed in EDIT HELP's textarea (or baked into a
 * step's text) render as real breaks; long lines still wrap. */
#sptr-text { color: #EAF9FE; white-space: pre-line; }

#sptr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

#sptr-dots .sptr-dotcol {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-right: 4px;
}
#sptr-dots i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(217, 247, 253, 0.35);
}
#sptr-dots i.on { background: #D9F7FD; }
/* Sequence numbers under the dots + click-to-jump: EDIT HELP only. */
#sptr-dots b { display: none; }
.sptr-editing #sptr-dots b {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(217, 247, 253, 0.55);
}
.sptr-editing #sptr-dots .sptr-dotcol { cursor: pointer; }
.sptr-editing #sptr-dots .sptr-dotcol:hover i { background: #D9F7FD; }
.sptr-editing #sptr-dots .sptr-dotcol:hover b,
.sptr-editing #sptr-dots i.on + b { color: #D9F7FD; }

#sptr-btns button {
  background: none;
  border: 1px solid #D9F7FD;
  color: #D9F7FD;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 12px;
  margin-left: 6px;
  cursor: pointer;
}
#sptr-btns button:hover { background: #D9F7FD; color: #0E1F3D; }
#sptr-back { opacity: .8; }

/* ── EDIT HELP chrome (tier-1) ─────────────────────────────────────── */
/* View mode hides the edit fields; .sptr-editing swaps them in. */
#sptr-title-edit, #sptr-text-edit, #sptr-tools, #sptr-note { display: none; }

.sptr-editing #sptr-title { display: none; }
.sptr-editing #sptr-text { display: none; }
.sptr-editing #sptr-title-edit,
.sptr-editing #sptr-note { display: block; }
.sptr-editing #sptr-text-edit { display: block; width: 100%; }
.sptr-editing #sptr-tools { display: flex; flex-wrap: wrap; gap: 4px; }

#sptr-title-edit, #sptr-text-edit {
  background: #081428;
  color: #EAF9FE;
  border: 1px solid rgba(217, 247, 253, 0.45);
  border-radius: 4px;
  font: inherit;
  padding: 4px 6px;
}
#sptr-title-edit { flex: 1 1 auto; text-transform: uppercase; font-size: 12px; }
#sptr-text-edit { resize: vertical; margin-top: 2px; }

#sptr-note {
  margin-top: 6px;
  font-size: 11px;
  opacity: .8;
  word-break: break-all;
}

#sptr-tools { margin-top: 8px; }
#sptr-tools button {
  background: none;
  border: 1px solid rgba(217, 247, 253, 0.55);
  color: #D9F7FD;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 8px;
  cursor: pointer;
}
#sptr-tools button:hover { background: #D9F7FD; color: #0E1F3D; }

/* Arrows + the move-to-position field between them: identical widths. */
#sptr-tools button[data-act="up"],
#sptr-tools button[data-act="down"] {
  width: 34px;
  padding-left: 0;
  padding-right: 0;
}
#sptr-pos {
  width: 34px;
  box-sizing: border-box;
  background: #081428;
  color: #EAF9FE;
  border: 1px solid rgba(217, 247, 253, 0.55);
  border-radius: 4px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
}

/* Retarget element picker. */
#sptr-pickbox {
  display: none;
  position: fixed;
  z-index: 10060;
  pointer-events: none;
  outline: 2px solid #FF7F50;
  outline-offset: 1px;
  background: rgba(255, 127, 80, 0.12);
  border-radius: 4px;
}
body.sptr-picking, body.sptr-picking * { cursor: crosshair !important; }

/* Phones: bottom-sheet card, full width. */
@media (max-width: 700px) {
  #sptr-card {
    left: 8px !important;
    right: 8px;
    bottom: 10px;
    top: auto !important;
    width: auto !important;
  }
}
