/* Contextual help: the "?" trigger and the shared overlay. One look everywhere. */
.help-trigger {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; padding: 0; border-radius: 50%;
  background: transparent; color: #d4af37; border: 1px solid #d4af37;
  font: 700 14px/1 Inter, sans-serif; cursor: pointer;
}
.help-trigger:hover, .help-trigger:focus-visible { background: rgba(212, 175, 55, 0.2); outline: none; box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35); }
.help-trigger.disabled-tile-help { margin-left: 8px; align-self: center; }
.tool-btn-wrap { display: flex; align-items: center; }
.tool-btn-wrap > .tool-btn { flex: 1; }

.help-overlay {
  position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(3, 8, 12, 0.78);
}
.help-overlay[hidden] { display: none; }
.help-dialog {
  position: relative; width: 100%; max-width: 680px; max-height: 88vh; overflow-y: auto;
  background: #111; color: #edf7ff; border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 14px;
  padding: 26px 28px 24px; font: 14px/1.65 Inter, sans-serif; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.help-dialog:focus { outline: none; }
.help-close {
  position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; background: transparent;
  color: #a9bfd1; border: none; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 6px;
}
.help-close:hover, .help-close:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.08); outline: none; }
.help-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-right: 36px; margin-bottom: 6px; }
.help-head h2 { margin: 0; font-size: 20px; color: #d4af37; }
.help-badge { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.help-badge.sim { color: #70d5ff; }
.help-badge.live { color: #7df7c4; }
.help-badge.soon { color: #a9bfd1; }
.help-summary { margin: 4px 0 14px; color: #a9bfd1; font-size: 15px; }
.help-body p { margin: 0 0 12px; }
.help-body ul { margin: 0 0 12px; padding-left: 20px; }
.help-body code, .help-io code { background: rgba(255, 255, 255, 0.08); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.help-example { margin-top: 16px; padding: 14px 16px; border-left: 3px solid #d4af37; background: rgba(212, 175, 55, 0.06); border-radius: 0 8px 8px 0; }
.help-example h3 { margin: 0 0 8px; font-size: 14px; color: #edf7ff; }
.help-example ol { margin: 0 0 6px; padding-left: 20px; }
.help-example li { margin-bottom: 4px; }
.help-io { margin: 6px 0 0; }
.help-retry { margin-top: 6px; background: #d4af37; color: #000; border: none; border-radius: 6px; padding: 6px 14px; font-weight: 700; cursor: pointer; }
@media (max-width: 520px) { .help-dialog { padding: 22px 18px 18px; } .help-overlay { padding: 12px; } }
