.help-dialog {
  width: min(730px,calc(100% - 26px));
  max-height: min(84dvh,850px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 18px 60px #1c2a3944;
}
.help-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.help-dialog::backdrop { background: #192737a0; }
.help-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 20px; background: var(--blue-light); border-bottom: 1px solid var(--line); }
.help-dialog-header h2 { align-self: center; font-size: clamp(20px,3vw,26px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.help-dialog-header h2:focus { outline: none; }
.help-dialog-header form { margin: 0; }
.help-content { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 17px 20px 21px; color: var(--ink); }
.help-overview h3,.help-fields-title { font-size: 16px; color: var(--ink); }
.help-overview > p,.help-terms { font-size: 13px; line-height: 1.6; margin-top: 5px; }
.help-terms { padding-left: 19px; margin-bottom: 13px; }
.help-fields-title { margin: 20px 0 8px; }
.help-group { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 8px; background: var(--surface-subtle); }
.help-group-title { padding: 9px 11px; color: var(--accent-ink); font-size: 13px; font-weight: 700; }
summary.help-group-title { cursor: pointer; }
summary.help-group-title:hover { background: var(--blue-light-hover); }
.help-group-body { padding: 0 11px; }
.help-group-intro { padding: 0 0 8px; font-size: 12.5px; }
.help-field { border-top: 1px solid var(--line); padding: 8px 0; }
.help-field dt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; font-size: 13px; font-weight: 700; color: var(--ink); }
.help-field-code { color: var(--gray); background: var(--surface-tinted); padding: 1px 4px; border-radius: 4px; font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
.help-field dd { font-size: 12.5px; line-height: 1.55; margin-top: 3px; }
.example-dialog[open] { grid-template-rows: auto minmax(0,1fr) auto; }
.example-dialog-actions { display: flex; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); }
.example-steps { display: grid; gap: 10px; margin: 0; padding-left: 23px; font-size: 13px; line-height: 1.6; }
.example-steps strong { color: var(--ink); }
.example-values { margin: 0; }
.example-outcome { margin-top: 16px; padding: 10px 12px; border-radius: 7px; background: var(--surface-tinted); }
.example-outcome p { margin-top: 4px; font-size: 13px; line-height: 1.6; }

@media (max-width: 480px) {
  .help-dialog-header,.help-content { padding: 12px; }
}
