/* Keep the enlarged toolbar within the page on desktop and mobile. */
#dashboard > header { gap: 18px; flex-wrap: wrap; }
#dashboard .header-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

#help-dialog { width: min(960px, calc(100% - 30px)); max-height: 90vh; overflow: auto; }
#help-description { margin: 12px 0; }
.help-server { font-size: 12px; overflow-wrap: anywhere; }
.help-setup-url { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); }
.help-setup-url[hidden] { display: none; }
.help-setup-url > div { min-width: 0; }
.help-setup-url strong { display: block; font-size: 12px; margin-bottom: 5px; }
.help-setup-url code { display: block; overflow-wrap: anywhere; word-break: break-all; font-size: 12px; }
.help-setup-url button { flex: 0 0 auto; font-size: 12px; }
.help-search { display: grid; grid-template-columns: minmax(0, 2fr) minmax(170px, 1fr); gap: 12px; margin: 18px 0; }
.help-search label { margin: 0; }
.help-topic { border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; background: var(--surface); }
.help-topic > summary { padding: 15px; cursor: pointer; font-weight: 700; border-radius: 10px; }
.help-topic > summary:hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.help-topic > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent); outline-offset: -3px; border-radius: 10px; }
.help-topic > summary small { color: var(--muted); font-weight: 400; margin-left: 8px; }
.help-topic-body { padding: 0 16px 16px; }
.help-topic-body p, .help-topic-body li { overflow-wrap: anywhere; }
.help-topic-body ol { padding-left: 23px; margin: 12px 0; }
.help-topic-body li + li { margin-top: 9px; }
.help-note, .help-warning { padding: 12px 14px; border-radius: 8px; font-size: 13px; color: var(--ink); }
.help-note { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-left: 3px solid var(--accent); }
.help-warning { background: color-mix(in srgb, var(--warning) 10%, var(--surface)); border-left: 3px solid var(--warning); }
.help-warning[hidden] { display: none; }
.help-command { margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: color-mix(in srgb, var(--accent) 3%, var(--surface)); }
.help-command-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.help-command-head strong { font-size: 13px; }
.help-shell { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.help-command pre { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font-size: 12px; line-height: 1.7; color: var(--ink); }
.help-command button, .help-enroll { font-size: 12px; }
.help-enroll { margin-top: 10px; }
#help-copy-status { overflow-wrap: anywhere; }
@media (max-width: 620px) {
  #help-dialog { padding: 18px; }
  .help-search { grid-template-columns: 1fr; }
  .help-setup-url { align-items: stretch; flex-direction: column; }
  .help-setup-url button { align-self: flex-start; }
  .help-topic > summary small { display: block; margin: 4px 0 0; }
  #dashboard .header-actions { justify-content: flex-start; }
}
