/* Sovereign Help Center, Search & Interactive Shortcuts Matrix */
.btn-topbar-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-topbar-help:hover { background: #334155; border-color: #475569; }
.help-modal-header { background: var(--bg-topbar); }
.help-title-short { display: none; }
.help-title-full { display: inline; }
.help-search-bar-wrap { padding: 12px 18px 0; background: var(--bg-surface); flex-shrink: 0; }
.help-search-input-box { position: relative; display: flex; align-items: center; width: 100%; }
.help-search-icon { position: absolute; left: 11px; font-size: 13px; pointer-events: none; color: var(--text-muted); }
.help-search-input {
  width: 100%;
  padding: 8px 34px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.help-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.help-search-clear-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
}
.help-search-clear-btn:hover { color: var(--text-main); background: var(--bg-card); }
.help-pills-bar, .help-subnav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}
.help-pills-bar::-webkit-scrollbar, .help-subnav-pills::-webkit-scrollbar { display: none; }
.pill-lbl-short { display: none; }
.pill-lbl-full { display: inline; }
.help-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.help-pill:hover { border-color: var(--border-strong); color: var(--text-main); }
.help-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.help-pill-icon { font-size: 12px; }
.help-pill-count { padding: 1px 6px; border-radius: 10px; font-size: 10.5px; background: rgba(0, 0, 0, 0.08); font-weight: 600; }
.help-pill.active .help-pill-count { background: rgba(255, 255, 255, 0.25); color: #fff; }
.help-modal-body { padding: 14px 18px; overflow-y: auto; flex: 1; }
.help-topics-grid { display: flex; flex-direction: column; gap: 10px; }
.help-topic-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.help-topic-card:hover { border-color: var(--border-strong); background: var(--bg-card); }
.help-topic-card.expanded { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.help-topic-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.help-topic-title-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.help-topic-cat-icon { font-size: 14px; }
.help-topic-badge { padding: 2px 7px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 700; }
.help-topic-title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text-main); }
.help-topic-chevron { color: var(--text-muted); font-size: 12px; padding: 2px 6px; }
.help-topic-summary { margin-top: 6px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.help-topic-details { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 8px; }
.help-steps-title { font-size: 12px; font-weight: 700; color: var(--text-main); }
.help-steps-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.help-step-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-main); line-height: 1.45; }
.help-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--border-strong);
  color: var(--text-main);
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.help-tip-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald);
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.45;
}
.help-tip-icon { font-size: 14px; flex-shrink: 0; }
.help-tags-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.help-keyword-tag { font-size: 10.5px; padding: 2px 6px; border-radius: 4px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-family: var(--font-mono); }
.help-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px; gap: 10px; text-align: center; }
.help-shortcuts-wrap { display: flex; flex-direction: column; gap: 12px; }
.help-subnav-pills { padding: 0 0 10px; border-bottom: 1px solid var(--border); }
.help-shortcuts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; }
.help-shortcut-card { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-subtle); gap: 10px; }
.help-shortcut-main { display: flex; flex-direction: column; gap: 2px; }
.help-shortcut-desc { font-size: 12.5px; font-weight: 600; color: var(--text-main); }
.help-shortcut-hint { font-size: 11px; color: var(--text-muted); line-height: 1.35; }
.help-kbd {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.help-modal-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-top: 1px solid var(--border); background: var(--bg-subtle); }
.help-footer-legend { font-size: 11.5px; color: var(--text-muted); }
