.app-help-dialog { width: min(960px, calc(100vw - 24px)); }
.app-help-dialog > header { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.app-help-dialog-body { max-height: calc(100dvh - 106px); overflow: auto; padding: 16px 20px 20px; }
.app-help-content { display: grid; gap: 14px; }
.app-help-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.app-help-heading h2 { margin: 3px 0 6px; font-size: 20px; }
.app-help-heading > div > p:last-child { max-width: 72ch; color: var(--muted); font-size: 12px; line-height: 1.55; }
.app-help-project-state { flex: none; padding: 5px 8px; border-radius: 4px; color: var(--accent-strong); background: var(--accent-soft); font-size: 10px; }
.app-help-search { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); }
.app-help-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.app-help-section { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.app-help-section > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.app-help-section > header h3 { margin-top: 3px; font-size: 14px; }
.app-help-section > header > span { color: var(--muted); font-size: 10px; }
.app-help-steps { display: grid; gap: 7px; margin: 0; padding-left: 21px; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.app-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.app-help-entry { min-width: 0; display: grid; justify-items: start; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--surface); text-align: left; cursor: pointer; }
.app-help-entry:hover { border-color: var(--accent); background: var(--surface-soft); }
.app-help-entry small, .app-help-version-grid small { color: var(--muted); font-size: 9px; }
.app-help-entry strong { font-size: 11px; }
.app-help-entry span { color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.app-help-entry b { justify-self: end; color: var(--accent-strong); font-size: 10px; }
.app-help-relations { display: grid; gap: 6px; }
.app-help-relation { display: grid; gap: 4px; padding: 8px 9px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--surface-soft); }
.app-help-relation strong { font-size: 10px; }
.app-help-relation span, .app-help-relation small, .app-help-note { color: var(--muted); font-size: 9px; line-height: 1.45; }
.app-help-note { margin-top: 9px; }
.app-help-version-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.app-help-version-grid > div { min-width: 0; display: grid; gap: 5px; padding: 9px; border: 1px solid var(--line-soft); border-radius: 4px; }
.app-help-version-grid strong { overflow-wrap: anywhere; font-size: 11px; }
.app-help-version-grid span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.app-help-empty { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.app-help-footer { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; }
@media (max-width: 640px) {
  .app-help-dialog-body { padding: 12px; }
  .app-help-grid, .app-help-version-grid { grid-template-columns: minmax(0, 1fr); }
  .app-help-heading { flex-direction: column; }
  .app-help-footer { flex-direction: column; }
  .application-help-button { display: none; }
}
