/* Help screen: role guides, settings reference and workflow SVGs. No inline styles (CSP). Phone first, no sideways scroll at 360px. */
.help-tabs { margin-bottom: var(--space-sm); }
.help-intro, .help-screen, .help-item, .help-flow { border-bottom: 1px solid var(--rule); padding: var(--space-sm) 0; overflow-wrap: anywhere; }
.help-screen h3, .help-intro h3 { font-size: var(--text-sm); color: var(--ink-2); margin: var(--space-xs) 0 2px; }
.help-note { background: var(--paper-2); padding: var(--space-xs); border-left: 3px solid var(--info); }
.help-hi-check { color: var(--warn); font-size: var(--text-sm); }
.help-coming { font-size: var(--text-sm); color: var(--warn); background: var(--warn-tint); padding: 0 6px; border-radius: 4px; font-weight: 600; }
.help-dl dt { font-weight: 600; color: var(--ink-2); font-size: var(--text-sm); margin-top: var(--space-xs); }
.help-dl dd { margin: 0; }
.help-dl ul { margin: 0; padding-left: 1.2em; }
.help-errors td { vertical-align: top; }
.help-matrix td { text-align: center; }
.flow-svg { width: 100%; max-width: 560px; height: auto; display: block; margin: var(--space-sm) 0; }
.flow-step rect { fill: var(--surface); stroke: var(--ink-3); stroke-width: 1.2; }
.flow-role-owner rect { fill: var(--accent-tint); }
.flow-role-billing rect { fill: var(--ok-tint); }
.flow-role-admin rect { fill: var(--paper-3); }
.flow-role-production rect, .flow-role-dispatch rect { fill: var(--warn-tint); }
.flow-label { fill: var(--ink); font-size: 12px; font-weight: 600; text-anchor: middle; }
.flow-role { fill: var(--ink-2); font-size: 11px; text-anchor: middle; }
.flow-arrow { fill: none; stroke: var(--ink-2); stroke-width: 1.4; }
.flow-head { fill: var(--ink-2); }
.flow-list li { margin-bottom: 4px; }
/* Topics that open and close. The body is hidden (not removed), so search and print can still use it. */
.help-fold-btn { display: flex; width: 100%; min-height: 44px; align-items: center; gap: var(--space-xs); padding: 0; background: none; border: 0; color: inherit; font: inherit; font-weight: 600; text-align: start; cursor: pointer; }
.help-fold-btn::before { content: "\25B8"; color: var(--ink-3); flex: none; }
.help-fold-btn[aria-expanded="true"]::before { content: "\25BE"; }
#help-search { min-height: 44px; max-width: 100%; }
@media screen {
  .help-match { margin: 0 0 var(--space-sm); font-size: var(--text-sm); }
  .help-fold:has(.help-fold-btn[aria-expanded="true"]) > .help-match { display: none; }
  .help-topics { display: grid; gap: var(--space-xs); }
  .help-topics .help-screen { padding: 0 var(--space-sm); border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
  .help-topics .help-fold-h { margin: 0; font-size: 1rem; }
  .help-topics .help-fold-btn { justify-content: space-between; flex-direction: row-reverse; }
  .help-topics .help-fold-body { padding-bottom: var(--space-sm); }
  #help-more { margin-top: var(--space-sm); }
}
@media screen and (min-width: 760px) {
  .help-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .help-screen:has(.help-fold-btn[aria-expanded="true"]) { grid-column: 1 / -1; }
}
@media print {
  .help-tabs, .help-match, #help-print, .toolbar, #help-found, #help-more { display: none; }
  .help-fold-body[hidden], .help-fold[hidden], .help-group[hidden] { display: block !important; }
  .help-fold-btn::before { content: none; }
  .help-screen, .help-flow { break-inside: avoid; }
}
