/* Tour overlay */
#tour-layer { position: fixed; inset: 0; z-index: 7000; pointer-events: none; display: none; }
#tour-layer.active { display: block; }
#tour-blocker { position: fixed; inset: 0; pointer-events: auto; background: transparent; }
#tour-blocker.dim { background: rgba(10, 30, 55, 0.62); }
#tour-spot {
  position: fixed; border-radius: 8px; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(0, 167, 132, 0.95), 0 0 0 9999px rgba(10, 30, 55, 0.62);
  transition: left 260ms ease, top 260ms ease, width 260ms ease, height 260ms ease, opacity 200ms;
}
#tour-spot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 10px; border: 3px solid rgba(0, 167, 132, 0.6);
  animation: tour-pulse 1.6s ease-out infinite;
}
@keyframes tour-pulse { 0% { inset: -3px; opacity: 1; } 100% { inset: -14px; opacity: 0; } }
#tour-card {
  position: fixed; width: 370px; max-width: calc(100vw - 16px); background: #fff; border-radius: 10px; pointer-events: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); padding: 16px 18px 12px; font-size: 0.92rem;
  transition: left 260ms ease, top 260ms ease, opacity 150ms;
}
#tour-card.loading { opacity: 0.55; }
#tour-card .tc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
#tour-card .tc-chapter { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); font-weight: 600; }
#tour-card .tc-chapter .material-icons { font-size: 16px; }
#tour-card .tc-count { font-size: 0.75rem; color: var(--text-2); }
#tour-card .tc-title { font-size: 1.15rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; line-height: 1.3; }
#tour-card .tc-text { color: #333; line-height: 1.5; }
#tour-card .tc-text p { margin: 0 0 8px; }
#tour-card .tc-text ul { margin: 4px 0 8px; padding-left: 20px; }
#tour-card .tc-text b { color: var(--navy); font-weight: 500; }
#tour-card .tc-text kbd { background: #eee; border-radius: 3px; padding: 0 4px; font-family: inherit; font-size: 0.85em; border: 1px solid #ddd; }
#tour-card .tc-hint { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--primary); margin-top: 8px; }
#tour-card .tc-hint .material-icons { font-size: 18px; }
#tour-card .tc-progress { height: 3px; background: rgba(0, 0, 0, 0.08); border-radius: 2px; margin: 12px 0 10px; overflow: hidden; }
#tour-card .tc-progress > div { height: 100%; background: var(--primary); transition: width 260ms; }
#tour-card .tc-actions { display: flex; align-items: center; gap: 4px; }
#tour-card .tc-global { font-size: 0.72rem; color: var(--text-2); margin-left: 2px; white-space: nowrap; }
.tc-btn {
  border: 0; border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 4px;
  background: transparent; color: var(--navy); font-family: inherit;
}
.tc-btn .material-icons { font-size: 18px; }
.tc-btn.ghost:hover { background: rgba(0, 0, 0, 0.05); }
.tc-btn.primary { background: var(--primary); color: #fff; }
.tc-btn.primary:hover { background: var(--primary-dark); }
.tc-btn[disabled] { opacity: 0.35; pointer-events: none; }
