.help-tools {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap:8px;
}
.help-tools-bar {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  margin: 0;
}
.help-tool {
  appearance: none;
  border: 0;
  background: var(--chip);
  color: var(--on-chip);
  border-radius:999px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0 8px;
  box-shadow: 0 0 0 1px var(--line-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.help-tool-icon {
  width: 28px;
  padding: 0;
  display: grid;
  place-items: center;
}
.help-tool-icon svg { width: 18px; height: 18px; display: block; }
.help-tool[aria-expanded="true"],
.help-tool[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}
.help-tool:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.help-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  box-sizing: border-box;
  width: min(420px, 100%);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--panel);
  color: var(--ink);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
}
.help-panel-head {
  display: flex;
  align-items: flex-start;
  gap:12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.help-panel-head h2 {
  margin: 0;
  font-size: 22px;
}
.help-summary {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.help-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.help-body {
  flex: 1;
  overflow: auto;
  padding: 12px 16px 16px;
}
.help-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.help-section {
  border: 1px solid var(--line);
  border-radius:8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: var(--bg);
}
.help-section summary {
  cursor: pointer;
  font-weight: 600;
}
.help-section p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  line-height: 1.45;
}
.help-answer {
  border: 1px solid var(--line);
  border-radius:8px;
  padding: 12px;
  margin-top: 12px;
  background: var(--bg);
}
.help-source {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-darker);
  margin: 0 0 8px;
}
.help-answer p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}
.help-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.help-tour-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius:8px;
  padding: 12px;
}
.help-tour-card ol {
  margin: 8px 0;
  padding-left: 18px;
}
.help-tour-card li {
  margin: 4px 0;
}
.help-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 12px 16px 16px;
  background: var(--panel);
  overflow: visible;
}
.help-ask {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap:8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.help-ask input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  border-radius:8px;
  padding: 8px 10px;
}
.help-disclaimer {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
.help-tour-btn {
  margin: 0 0 12px;
}
.help-changed { margin: 0 0 12px; }

.help-nudge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 35;
  max-width: 280px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius:12px;
  box-shadow: var(--shadow-pop);
  padding: 12px 14px;
}
.help-nudge p { margin: 0 0 10px; font-weight: 600; }
.help-nudge-actions { display: flex; gap:8px; }

@media (max-width: 640px) {
  .help-panel { left: 0; right: 0; width: auto; max-width: none; }
  .help-foot { position: sticky; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .help-panel { transition: none; }
}
