/* ==========================================================================
   Guided tour: spotlight overlay + contextual card
   ========================================================================== */
.tour-root { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.tour-blocker { position: fixed; inset: 0; pointer-events: auto; background: transparent; }
.tour-spot {
  position: fixed; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(12, 22, 40, .58), 0 0 0 3px var(--primary), 0 0 24px 6px rgba(229, 118, 42, .35);
  transition: top 260ms cubic-bezier(.2,.8,.3,1), left 260ms cubic-bezier(.2,.8,.3,1), width 260ms cubic-bezier(.2,.8,.3,1), height 260ms cubic-bezier(.2,.8,.3,1);
}
:root[data-theme="dark"] .tour-spot { box-shadow: 0 0 0 9999px rgba(3, 7, 14, .72), 0 0 0 3px var(--primary), 0 0 24px 6px rgba(240, 138, 67, .3); }
.tour-card {
  position: fixed; width: min(380px, calc(100vw - 24px)); pointer-events: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px 18px 12px; animation: pop-in 200ms ease-out;
  transition: top 260ms cubic-bezier(.2,.8,.3,1), left 260ms cubic-bezier(.2,.8,.3,1);
}
.tour-card.centered { animation: fade-in 200ms ease-out; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 24px)); }
.tour-card.sheet { top: auto !important; left: 0 !important; right: 0; bottom: 0; transform: none; width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 62vh; overflow-y: auto; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.tc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-step { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-700); }
:root[data-theme="dark"] .tc-step { color: var(--primary-600); }
.tc-x { width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); }
.tc-x:hover { background: var(--surface-3); color: var(--text); }
.tc-x svg { width: 16px; height: 16px; }
.tc-progress { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin: 10px 0 12px; }
.tc-progress span { display: block; height: 100%; background: var(--primary); border-radius: 4px; transition: width 300ms ease; }
.tc-title { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.tc-body { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.tc-body b { color: var(--text); }
.tc-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12.5px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--warning-50); color: var(--text); }
.tc-note svg { width: 15px; height: 15px; color: var(--warning); flex-shrink: 0; margin-top: 2px; }
.tc-result { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12.5px; padding: 10px; border-radius: var(--radius-sm); background: var(--success-50); color: var(--text); border: 1px solid color-mix(in srgb, var(--success) 25%, transparent); }
.tc-result > svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; margin-top: 1px; }
.tc-result.error { background: var(--danger-50); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.tc-result.error > svg { color: var(--danger); }
.tc-result > div { min-width: 0; flex: 1; }
.tc-table { width: 100%; margin-top: 8px; font-size: 12px; border-collapse: collapse; }
.tc-table td { padding: 4px 6px; border-bottom: 1px solid var(--divider); }
.tc-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tc-keys { margin-top: 10px; font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.tc-keys kbd { min-width: 18px; height: 18px; font-size: 10px; }
.tc-loading { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); padding: 8px 0; }
.tc-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--primary); animation: spin .7s linear infinite; }
@media (max-width: 640px) { .tc-keys { display: none; } }
