/* Guided-help ("Tour") overlay — shared by the Terminal and Report pages.
   Engine: LTV.HelpMode in common.js. Toggled by the status-bar Tour button.
   All colours from CSS variables (theme-aware). */

/* Tour toggle active state — the toggle lives only in the Terminal Settings panel. */
.settings-toggle-btn.active {
  color: var(--green);
  border-color: var(--green);
}

/* When help mode is on, mark every explainable (visible) element. */
.help-mode [data-help-text] {
  position: relative;
  outline: 1px dashed var(--green);
  outline-offset: 2px;
  border-radius: 4px;
  cursor: help;
}
.help-mode [data-help-text]::after {
  content: "?";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
  background: var(--green);
  color: var(--bg0);
  border-radius: 50%;
  font: 700 11px/16px var(--font-mono);
  text-align: center;
  pointer-events: none;
  z-index: 6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* The revealed help bubble — one shared node, JS-positioned fixed. */
.help-bubble {
  position: fixed;
  z-index: 10060;
  max-width: 280px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.help-bubble[hidden] { display: none; }
.help-bubble-title {
  font: 700 10px/1.3 var(--font-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.help-bubble-text {
  font: 400 12px/1.55 var(--font-ui);
  color: var(--text2);
}

@media (prefers-reduced-motion: no-preference) {
  .help-bubble { animation: helpBubbleIn .12s ease-out; }
  @keyframes helpBubbleIn {
    from { opacity: 0; transform: translateY(-2px); }
    to   { opacity: 1; transform: none; }
  }
}
