/* Namespaced overlay: the existing workspace remains responsible for page layout. */
#lh-guide { font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; line-height: 1.5; }
#lh-guide [hidden], #lh-guide[hidden] { display: none !important; }
#lh-guide *, #lh-guide *::before, #lh-guide *::after { box-sizing: border-box; }
#lh-guide button { min-height: 0; font-family: inherit; cursor: pointer; }
#lh-guide button:focus-visible { outline: 2px solid #a78bfa; outline-offset: 4px; }
#lh-guide button:disabled { cursor: default; opacity: .4; }
/* Leave scroll room to bring a bottom-of-page target above the coach. */
#lh-guide .lhg-spacer { height: var(--lhg-space, 350px); pointer-events: none; }
#lh-guide .lhg-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border: 1px solid #756093; border-radius: 16px; background: #24202f;
  color: #fff; box-shadow: 0 12px 48px #0006; text-align: left;
}
#lh-guide .lhg-launcher:hover { background: #30273e; }
#lh-guide .lhg-icon {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: #7c3aed; border-radius: 12px; font-size: 23px;
}
#lh-guide .lhg-launcher strong { display: block; font-size: 13px; font-weight: 600; }
#lh-guide .lhg-launcher small { display: block; margin-top: 4px; font-size: 11px; color: #b2a8c6; }
#lh-guide .lhg-launcher svg { color: #c4b5fd; margin-left: 10px; }
#lh-guide .lhg-ring {
  position: fixed; z-index: 901; pointer-events: none;
  border: 2px solid #a78bfa; border-radius: 12px;
  box-shadow: 0 0 0 5px #a78bfa14, 0 0 28px #7c3aed25;
}
#lh-guide .lhg-marker {
  position: fixed; z-index: 903; display: grid; place-items: center;
  width: 29px; height: 29px; padding: 0; border: 2px solid #e8ddff;
  border-radius: 50%; background: #8751e5; color: #fff;
  font-size: 12px; font-weight: 700; animation: lhg-breathe 2.4s infinite;
}
#lh-guide .lhg-coach {
  position: fixed; z-index: 902; width: 326px; max-width: calc(100vw - 32px);
  padding: 20px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid #fff; border-radius: 16px; background: #f6f3ff;
  color: #242033; box-shadow: 0 18px 70px #0006;
}
#lh-guide .lhg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #79658f; font-size: 11px; font-weight: 600; }
#lh-guide .lhg-close { border: 0; background: none; color: #746780; padding: 0 4px; font-size: 23px; line-height: 24px; }
#lh-guide .lhg-dots { display: flex; gap: 5px; margin: 12px 0 18px; }
#lh-guide .lhg-dots span { flex: 1; height: 3px; border-radius: 2px; background: #e2daee; }
#lh-guide .lhg-dots .filled { background: #8a56df; }
#lh-guide .lhg-title { margin: 0 0 10px; color: #242033; font-size: 20px; line-height: 1.4; font-weight: 650; letter-spacing: -.5px; }
#lh-guide .lhg-body { margin: 0 0 14px; color: #6d627e; font-size: 13px; line-height: 1.85; }
#lh-guide .lhg-tip { margin: 0; padding: 10px 12px; border-radius: 8px; background: #ebe4f7; color: #725b8a; font-size: 11px; line-height: 1.75; }
#lh-guide .lhg-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
#lh-guide .lhg-back { border: 0; padding: 6px 0; background: none; color: #7b638f; font-size: 12px; }
#lh-guide .lhg-next { padding: 9px 14px; border: 1px solid #9565ed; border-radius: 9px; background: #7c3aed; color: #fff; font-size: 12px; line-height: 20px; font-weight: 600; }
#lh-guide .lhg-next:hover { background: #8b4ff3; }
@keyframes lhg-breathe { 0%, 100% { box-shadow: 0 0 0 5px #8751e525; } 50% { box-shadow: 0 0 0 9px #8751e510; } }
@media (max-width: 640px) {
  #lh-guide .lhg-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 10px 13px; }
  #lh-guide .lhg-launcher small { font-size: 10px; }
  #lh-guide .lhg-coach { width: calc(100vw - 32px); padding: 18px; }
  #lh-guide .lhg-title { font-size: 18px; }
  #lh-guide .lhg-dots { margin: 10px 0 14px; }
}
@media (prefers-reduced-motion: reduce) { #lh-guide .lhg-marker { animation: none; } }
