/* Show me how tours (2026-10-31). The walkthrough card, the spotlight, the How this works button and the manager's Tour flaws section.
   Tokens only (css/style.css). Green means done or right (Got it), yellow means attention (This confused me), blue is the spotlight.
   Every control is at least 44px tall. Nothing here moves when the person asked for less motion. */

/* ── the button in the top bar and in the phone More sheet ── */
.topbar .howtour { background: none; border: 1px solid var(--line-strong, #66728a); color: var(--text); border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 600; min-height: 36px; }
.topbar .howtour:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 899px) { .topbar .howtour { min-height: 44px; } }
@media (max-width: 767px) { header.topbar .howtour { display: inline-flex; align-items: center; margin-left: auto; } header.topbar .spacer { display: none; } }

/* ── the walkthrough ── */
#st-tour[hidden] { display: none; }
#st-tour { position: fixed; inset: 0; z-index: 10200; pointer-events: none; }
#st-tour .stt-dim { position: absolute; inset: 0; width: 100%; height: 100%; }
#st-tour .stt-ring { position: absolute; border: 3px solid var(--blue, #4da3ff); border-radius: 12px; box-shadow: 0 0 0 4px rgba(77, 163, 255, .22), 0 0 26px rgba(77, 163, 255, .45); pointer-events: none; animation: stt-glow 1.8s ease-in-out infinite; }
#st-tour .stt-ring[hidden] { display: none; }
@keyframes stt-glow { 0%, 100% { box-shadow: 0 0 0 4px rgba(77, 163, 255, .22), 0 0 18px rgba(77, 163, 255, .35); } 50% { box-shadow: 0 0 0 8px rgba(77, 163, 255, .12), 0 0 30px rgba(77, 163, 255, .6); } }
@media (prefers-reduced-motion: reduce) { #st-tour .stt-ring { animation: none; } }
#st-tour .stt-card { position: absolute; pointer-events: auto; background: var(--panel, #131822); color: var(--text, #e8ecf3); border: 2px solid var(--blue, #4da3ff); border-radius: 16px; font-size: 14px; line-height: 1.5; box-shadow: 0 16px 48px rgba(0, 0, 0, .6); outline: none; }
#st-tour .stt-card.is-explain { border-color: var(--yellow, #f5c451); }
#st-tour .stt-card:focus-visible, #st-tour button:focus-visible, #st-tour input:focus-visible { outline: 3px solid var(--blue, #4da3ff); outline-offset: 2px; }
#st-tour .stt-inner { display: flex; flex-direction: column; max-height: calc(100vh - 24px); border-radius: 14px; overflow: hidden; }
#st-tour .stt-scroll { padding: 14px 16px 6px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
#st-tour .stt-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
#st-tour .stt-count { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted, #8b96a8); }
#st-tour .stt-tag { font-size: 11px; font-weight: 900; letter-spacing: .5px; background: var(--yellow, #f5c451); color: #1d1604; border-radius: 999px; padding: 2px 10px; }
#st-tour .stt-tag[hidden] { display: none; }
#st-tour h2.stt-title { font-size: 18px; line-height: 1.25; margin: 0 0 6px; padding: 0; border: 0; }
#st-tour .stt-body p { margin: 0 0 8px; }
#st-tour .stt-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
#st-tour .stt-list li { padding-left: 14px; position: relative; }
#st-tour .stt-list li::before { content: "\2022"; position: absolute; left: 2px; color: var(--blue, #4da3ff); }
#st-tour .stt-note { margin: 4px 0 8px; padding: 6px 10px; border-radius: 10px; font-weight: 700; font-size: 13px; background: rgba(245, 196, 81, .12); color: var(--yellow, #f5c451); border: 1px solid var(--yellow, #f5c451); }
#st-tour .stt-note[hidden] { display: none; }
#st-tour .stt-promise { font-size: 12px; color: var(--muted, #8b96a8); margin: 2px 0 8px; }
#st-tour .stt-taps { display: flex; gap: 8px; padding: 6px 12px 4px; flex: none; }
#st-tour .stt-taps[hidden], #st-tour .stt-notebox[hidden] { display: none; }
#st-tour .stt-btn { min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong, #66728a); background: var(--panel-2, #1a2130); color: var(--text, #e8ecf3); font-weight: 800; font-size: 14px; margin: 0; cursor: pointer; }
#st-tour .stt-btn:disabled { opacity: .45; cursor: not-allowed; }
#st-tour .stt-btn[hidden] { display: none; }
#st-tour .stt-got { flex: 1 1 0; background: var(--green, #2fd07c); border-color: var(--green, #2fd07c); color: #04170d; }
#st-tour .stt-conf { flex: 1 1 0; background: transparent; border-color: var(--yellow, #f5c451); color: var(--yellow, #f5c451); }
#st-tour .stt-btn.is-picked { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
#st-tour .stt-notebox { padding: 6px 12px 4px; flex: none; }
#st-tour .stt-notebox label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
#st-tour .stt-notebox input { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong, #66728a); background: var(--bg, #0b0e13); color: var(--text, #e8ecf3); font-size: 15px; margin: 0; }
#st-tour .stt-noterow { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
#st-tour .stt-noterow .stt-btn { flex: 1 1 140px; }
#st-tour .stt-save { background: var(--yellow, #f5c451); border-color: var(--yellow, #f5c451); color: #1d1604; }
#st-tour .stt-nav { display: flex; gap: 8px; align-items: center; padding: 4px 12px 12px; flex: none; }
#st-tour .stt-gap { flex: 1; }
#st-tour .stt-ghost { background: transparent; border-color: transparent; color: var(--muted, #8b96a8); text-decoration: underline; padding: 0 8px; font-weight: 700; }
#st-tour .stt-arrow { position: absolute; width: 16px; height: 16px; background: var(--panel, #131822); border: 2px solid var(--blue, #4da3ff); transform: rotate(45deg); display: none; margin: -8px 0 0 -8px; }
#st-tour .stt-arrow.a-top { display: block; top: 0; border-right: 0; border-bottom: 0; }
#st-tour .stt-arrow.a-bottom { display: block; top: 100%; border-left: 0; border-top: 0; }
#st-tour .stt-arrow.a-left { display: block; left: 0; border-right: 0; border-top: 0; }
#st-tour .stt-arrow.a-right { display: block; left: 100%; border-left: 0; border-bottom: 0; }
@media (max-width: 699px) {
  #st-tour .stt-inner { max-height: 62vh; }
  #st-tour h2.stt-title { font-size: 16px; }
  #st-tour .stt-card { font-size: 13px; }
  #st-tour .stt-btn { font-size: 13px; padding: 0 10px; }
}

/* ── manager only: Tour flaws, inside Verify ── */
.tf-host { max-width: 1180px; margin: 0 auto; padding: 0 14px 90px; }
.tf-host .tf-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.tf-host h2 { font-size: 17px; }
.tf-host .tf-help { color: var(--muted); font-size: 13px; max-width: 70ch; margin-bottom: 10px; }
.tf-host .tf-tour { margin-top: 12px; }
.tf-host .tf-tour h3 { font-size: 14px; margin-bottom: 6px; }
.tf-host .tf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); margin-bottom: 6px; }
.tf-host .tf-row.flag { border-color: var(--yellow); }
.tf-host .tf-step { font-weight: 700; overflow-wrap: anywhere; }
.tf-host .tf-nums { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tf-host .tf-nums b { font-size: 16px; }
.tf-host .tf-flag { color: var(--yellow); font-weight: 800; }
.tf-host .tf-notes { grid-column: 1 / -1; margin: 2px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.tf-host .tf-notes li { padding: 2px 0; overflow-wrap: anywhere; }
.tf-host .tf-notes q { color: var(--text); }
