dialog.help-centre { width: min(1320px, calc(100vw - 40px)); height: min(900px, calc(100dvh - 40px)); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--panel); color: var(--text); }
.help-centre[open] { display: flex; flex-direction: column; }
.help-centre::backdrop { background: rgba(15,23,42,.35); }
.help-centre-header { display: flex; align-items: center; justify-content: space-between; flex: none; min-height: 64px; padding: 12px 24px; border-bottom: 1px solid var(--border); }
.help-centre-header h2 { margin: 0; font-size: 18px; }
.help-centre-header .dialog-close { display: grid; place-items: center; width: 36px; height: 36px; background: var(--surface-input); border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text); cursor: pointer; }
.help-centre-header svg { width: 18px; height: 18px; }
.help-centre-body { display: grid; grid-template-columns: 270px minmax(0,1fr); flex: 1; min-height: 0; }
.help-centre-sidebar { min-height: 0; overflow-y: auto; padding: 22px 18px; border-right: 1px solid var(--border); background: var(--surface-input); overscroll-behavior: contain; }
.help-centre-search { display: grid; gap: 8px; font-size: 12px; font-weight: 600; }
.help-centre-search input { min-width: 0; width: 100%; height: 40px; padding: 8px 10px; font: inherit; font-weight: 400; border: 1px solid var(--control-border, var(--border-strong)); background: var(--panel); }
.help-centre-search input::placeholder { color: var(--text-dim); opacity: 1; }
#help-browse { display: none; }
#help-search-status { font-size: 12px; line-height: 1.5; color: var(--text-dim); margin: 12px 0; }
#help-search-status:empty { display: none; }
.help-centre-group { margin-top: 23px; }
.help-centre-group h3 { margin: 0 9px 6px; font-size: 12px; font-weight: 750; }
#help-navigation button { display: block; width: 100%; min-height: 36px; padding: 8px 9px; border: 0; border-radius: 5px; text-align: left; font: inherit; font-size: 12px; line-height: 1.45; background: transparent; color: var(--text-dim); cursor: pointer; }
#help-navigation button:hover { background: var(--surface-2); color: var(--text); }
#help-navigation button[aria-current] { background: color-mix(in srgb, var(--accent) 10%, var(--panel)); color: var(--accent); font-weight: 700; }
.help-centre-article { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 30px 36px 40px; }
.help-centre-article article { max-width: 940px; margin: 0 auto; }
.help-centre-article h3 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.025em; text-wrap: balance; }
.help-centre-article h3:focus { outline: none; }
.help-centre-article p, .help-centre-steps { font-size: 14px; line-height: 1.65; max-width: 74ch; }
.help-centre-intro { color: var(--text-dim); margin: 0 0 18px; }
.help-centre-location { padding: 10px 12px; background: var(--surface-input); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 20px; }
.help-centre-steps { padding-left: 24px; margin: 0 0 24px; }
.help-centre-steps li { padding: 0 0 9px 5px; }
.help-centre-steps li::marker { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.help-centre-figure { margin: 26px 0; }
.help-centre-media { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-input); }
.help-centre-media img, .help-centre-media video { display: block; width: 100%; height: auto; margin: 0; }
.help-centre-figure figcaption { font-size: 12px; color: var(--text-dim); line-height: 1.5; padding: 10px 0 0; }
.help-centre-media-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.help-centre a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.help-centre .help-centre-video-note, .help-centre .help-centre-updated { font-size: 12px; color: var(--text-dim); }
.help-centre-media-error { padding: 20px; }
.help-centre-notes { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 28px; }
.help-centre h4 { font-size: 15px; margin: 0 0 10px; }
.help-centre-notes p { margin: 0 0 12px; }
.help-centre-related { margin: 28px 0; }
.help-centre-related button { display: block; padding: 8px 0; border: 0; background: transparent; color: var(--accent); font-size: 14px; text-align: left; cursor: pointer; }
.help-centre-updated { margin-top: 32px; }
.help-centre-footer { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; border-top: 1px solid var(--border); padding: 10px 24px; }
#help-progress { color: var(--text-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.help-centre button:focus-visible, .help-centre a:focus-visible, .help-centre input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  dialog.help-centre { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .help-centre-header { padding: 10px 16px; min-height: 58px; }
  .help-centre-body { display: flex; flex-direction: column; }
  .help-centre-sidebar { flex: none; border-right: 0; border-bottom: 1px solid var(--border); padding: 12px 16px; overflow: auto; max-height: 48dvh; }
  .help-centre-search span { display: none; }
  #help-browse { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: transparent; color: var(--text); padding: 10px 0 0; font-size: 13px; font-weight: 600; }
  #help-browse svg { width: 16px; height: 16px; }
  #help-navigation { display: none; }
  .help-browsing #help-navigation { display: block; }
  .help-centre-article { flex: 1; padding: 24px 18px; }
  .help-centre-article h3 { font-size: 24px; }
  .help-centre-footer { padding: 10px 14px; }
}
