/* Scoped reader styles; theme values come from CyLic or the standalone shell. */
#helpScreen { min-width: 0; }
#helpScreen [hidden] { display: none !important; }
#helpScreen .help-panel { padding: 24px; }
#helpScreen .help-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
#helpScreen #helpTitle { margin: 4px 0 0; font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }
#helpScreen .help-eyebrow { margin: 0; font-size: 12px; font-weight: 650; color: var(--muted); line-height: 1.5; }
#helpScreen .help-revision { color: var(--muted); font-size: 12px; }
#helpScreen .help-intro { margin: 12px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.65; }
#helpScreen .help-layout { display: grid; grid-template-columns: 216px minmax(0,1fr); align-items: start; gap: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
#helpScreen .help-index { position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow: auto; scrollbar-width: thin; min-width: 0; padding: 2px 8px 4px 2px; }
#helpScreen .help-index label { display: block; font-size: 12px; font-weight: 650; color: var(--muted); margin-bottom: 8px; }
#helpScreen #helpSearch { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-strong); color: var(--text); padding: 11px 10px; font: inherit; font-size: 13px; }
#helpScreen #helpSearch::placeholder { color: var(--muted); opacity: 1; }
#helpScreen #helpClearSearch { padding: 8px 0; min-height: 36px; color: var(--primary-dark); background: transparent; border: 0; box-shadow: none; font-size: 12px; cursor: pointer; }
#helpScreen #helpIndexDisclosure { margin-top: 20px; }
#helpScreen #helpIndexDisclosure > summary { display: none; }
#helpScreen summary { cursor: pointer; color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.5; padding: 13px 4px; }
#helpScreen .help-nav-group { border-top: 1px solid var(--line); }
#helpScreen .help-nav-links { display: grid; gap: 3px; padding-bottom: 12px; }
#helpScreen #helpNavigation a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; font-size: 13px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
#helpScreen #helpNavigation > nav > a { margin-bottom: 8px; }
#helpScreen #helpNavigation a[aria-current] { color: var(--primary-dark); background: var(--panel-soft); font-weight: 650; box-shadow: inset 3px 0 var(--primary); }
#helpScreen #helpNavigation a:hover { color: var(--primary-dark); background: var(--panel-soft); }
#helpScreen :is(a,button,input,summary):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
#helpScreen .help-reading { min-width: 0; padding-left: 28px; border-left: 1px solid var(--line); scroll-margin-top: 24px; }
#helpScreen #helpBreadcrumb { margin-bottom: 10px; }
#helpScreen .help-content, #helpScreen .help-results { font-size: 15px; color: var(--text); line-height: 1.75; overflow-wrap: anywhere; }
#helpScreen .help-doc-chapter { max-width: 900px; }
#helpScreen :is(.help-content,.help-results) h2 { color: var(--text); font-size: 26px; font-weight: 650; line-height: 1.3; margin: 0 0 12px; letter-spacing: -.02em; }
#helpScreen .help-content h3 { color: var(--text); font-size: 18px; font-weight: 650; line-height: 1.45; margin: 28px 0 10px; }
#helpScreen .help-content p { margin: 12px 0; }
#helpScreen .help-content .help-summary { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
#helpScreen .help-content :is(ul,ol) { padding-left: 22px; margin: 14px 0 20px; }
#helpScreen .help-content li + li { margin-top: 8px; }
#helpScreen a { color: var(--primary-dark); text-underline-offset: 3px; }
#helpScreen .help-content code { font-family: Consolas, monospace; font-size: .88em; background: var(--panel-soft); padding: 2px 4px; border-radius: 3px; }
#helpScreen .help-note { padding: 16px 18px; margin: 24px 0; border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: 6px; background: var(--panel-soft); font-size: 14px; }
#helpScreen .help-table { max-width: 100%; overflow-x: auto; margin: 20px 0 26px; border: 1px solid var(--line); border-radius: 6px; }
#helpScreen table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; line-height: 1.65; }
#helpScreen :is(th,td) { padding: 12px 14px; min-width: 120px; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--text); }
#helpScreen th { font-weight: 650; background: var(--panel-soft); }
#helpScreen tr:last-child td { border-bottom: 0; }
#helpScreen figure { margin: 24px 0; max-width: 100%; }
#helpScreen .help-image-link { display: block; border-radius: 6px; }
#helpScreen img { display: block; height: auto; width: auto; max-width: 100%; max-height: 560px; border: 1px solid var(--line); border-radius: 6px; margin: 0 auto; }
#helpScreen figcaption { color: var(--muted); font-size: 12px; margin-top: 10px; line-height: 1.6; }
#helpScreen .help-paths { margin: 24px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
#helpScreen .help-paths a { padding: 18px; text-decoration: none; border-bottom: 1px solid var(--line); }
#helpScreen .help-paths a:nth-child(odd) { border-right: 1px solid var(--line); }
#helpScreen .help-paths a:nth-last-child(-n+2) { border-bottom: 0; }
#helpScreen .help-paths a:hover { background: var(--panel-soft); }
#helpScreen .help-paths :is(strong,span) { display: block; }
#helpScreen .help-paths strong { font-size: 14px; }
#helpScreen .help-paths span { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }
#helpScreen .help-release-list { border-top: 1px solid var(--line); }
#helpScreen .help-release-list > a { display: grid; grid-template-columns: 115px minmax(0,1fr) 130px; align-items: start; gap: 16px; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
#helpScreen .help-release-list > a:hover { background: var(--panel-soft); }
#helpScreen .help-version { font-size: 20px; font-weight: 650; color: var(--primary-dark); line-height: 1.4; }
#helpScreen .help-version small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 500; }
#helpScreen .help-release-description strong { display: block; font-size: 15px; color: var(--text); }
#helpScreen .help-release-description > span { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 6px; }
#helpScreen .help-release-date { color: var(--muted); font-size: 12px; line-height: 1.6; text-align: right; }
#helpScreen .help-meta { color: var(--muted); font-size: 12px; line-height: 1.65; }
#helpScreen #helpSearchLinks { margin: 18px 0; padding: 0; list-style: none; }
#helpScreen #helpSearchLinks a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
#helpScreen #helpSearchLinks :is(strong,span) { display: block; }
#helpScreen #helpSearchLinks span { color: var(--muted); font-size: 13px; margin-top: 5px; }
@media (max-width: 1100px) {
  #helpScreen .help-layout { grid-template-columns: 1fr; gap: 24px; }
  #helpScreen .help-index { position: static; max-height: none; overflow: visible; padding: 0; }
  #helpScreen #helpIndexDisclosure { margin-top: 12px; }
  #helpScreen #helpIndexDisclosure > summary { display: list-item; padding: 12px 0; }
  #helpScreen .help-reading { border-left: 0; padding-left: 0; }
  #helpScreen #helpNavigation { border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
  #helpScreen .help-release-list > a { grid-template-columns: 110px minmax(0,1fr); }
  #helpScreen .help-release-date { grid-column: 2; text-align: left; }
}
@media (max-width: 600px) {
  #helpScreen .help-panel { padding: 16px; }
  #helpScreen #helpTitle { font-size: 22px; }
  #helpScreen :is(.help-content,.help-results) h2 { font-size: 23px; }
  #helpScreen .help-content { font-size: 14px; }
  #helpScreen .help-content h3 { font-size: 17px; }
  #helpScreen .help-note { padding: 12px; }
  #helpScreen .help-paths { grid-template-columns: 1fr; }
  #helpScreen .help-paths a:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  #helpScreen .help-paths a:last-child { border-bottom: 0; }
  #helpScreen .help-release-list > a { grid-template-columns: 1fr; gap: 10px; padding: 20px 4px; }
  #helpScreen .help-release-date { grid-column: 1; }
}
@media print {
  #helpScreen .help-index, #helpScreen .help-header, #helpScreen .help-intro { display: none; }
  #helpScreen .help-layout { display: block; border: 0; }
  #helpScreen .help-reading { padding: 0; border: 0; }
  #helpScreen figure, #helpScreen .help-note, #helpScreen tr { break-inside: avoid; }
}
