/* Help content stays inside its workspace view. */
body.mortx-ui-shell #helpView {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  color: #20252b;
}
#helpView .help-header { margin-bottom: 20px; }
#helpView .help-header h2 { margin: 0 0 6px; font-size: 23px; font-weight: 750; }
#helpView .help-header p { margin: 0; color: #64748b; }
#helpView .help-search-panel { padding: 20px; background: #f6f9ff; border: 1px solid #e0e8f5; border-radius: 10px; }
#helpView .help-search-panel > label { display: block; margin: 0 0 10px; font-size: 16px; font-weight: 700; }
#helpView .help-search-field { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
#helpView .help-search-field:focus-within { border-color: #4f7cff; box-shadow: 0 0 0 3px #4f7cff20; }
#helpView .help-search-field > i { color: #64748b; }
#helpView .help-search-field input { flex: 1; width: 100%; min-width: 0; padding: 5px 0; border: 0; background: transparent; outline: none; font: inherit; color: inherit; }
#helpView .help-search-field button { flex-shrink: 0; }
#helpView #helpSearchHint { margin: 10px 0 0; font-size: 13px; color: #64748b; }
#helpView .help-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 12px; }
#helpView .help-topic { padding: 8px 12px; border: 1px solid #dce4ed; border-radius: 7px; background: #fff; color: #475569; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
#helpView .help-topic:hover { background: #f6f9ff; }
#helpView .help-topic[aria-pressed="true"] { background: #edf3ff; border-color: #4f7cff; color: #2454d5; }
#helpView .help-topic:focus-visible, #helpView summary:focus-visible { outline: 2px solid #2454d5; outline-offset: 3px; }
#helpView .help-result-count { margin: 16px 0 12px; color: #64748b; font-size: 13px; }
#helpView .help-articles { display: grid; gap: 10px; }
#helpView .help-article { border: 1px solid #e0e6ef; border-radius: 8px; overflow: hidden; }
#helpView .help-article summary { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; list-style: none; }
#helpView .help-article summary::-webkit-details-marker { display: none; }
#helpView .help-article summary::after { content: '+'; margin-left: auto; font-size: 20px; font-weight: 500; color: #64748b; }
#helpView .help-article[open] summary::after { content: '\2212'; }
#helpView .help-article[open] summary { background: #f8faff; }
#helpView .help-question { display: block; font-size: 14px; line-height: 1.45; font-weight: 700; }
#helpView .help-topic-label { display: block; margin-top: 4px; color: #64748b; font-size: 11px; font-weight: 600; }
#helpView .help-answer { max-width: 960px; padding: 2px 18px 18px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
#helpView .help-answer p { margin: 12px 0 0; }
#helpView .help-answer ol { margin: 12px 0 0; padding-left: 24px; }
#helpView .help-answer li + li { margin-top: 6px; }
#helpView .help-answer-note { color: #64748b; font-size: 13px; }
#helpView .help-empty { padding: 32px 16px; text-align: center; border: 1px dashed #dce4ed; border-radius: 10px; }
#helpView .help-empty > i { color: #94a3b8; font-size: 24px; }
#helpView .help-empty h3 { font-size: 16px; margin: 12px 0 8px; }
#helpView .help-empty p { color: #64748b; }
#helpView [hidden] { display: none !important; }
#helpView .help-access-note { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #e9eef4; color: #64748b; font-size: 12px; line-height: 1.6; }
@media (max-width: 640px) {
  body.mortx-ui-shell #helpView { padding: 14px; }
  #helpView .help-search-panel { padding: 14px; }
  #helpView .help-search-field { gap: 8px; }
  #helpView .help-article summary { padding: 14px; }
}
