.help-launcher {
  position: fixed;
  right: 0;
  top: 48%;
  z-index: 110;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--ink, #252620);
  border-radius: 28px 0 0 28px;
  background: var(--ink, #252620);
  color: var(--paper, #f7f5ef);
  font: 500 13px/1.4 var(--sans, system-ui);
  box-shadow: none;
  opacity: 0.68;
  cursor: pointer;
}
body[data-mode="welcome"] .help-launcher,
body:has(#welcome:not([hidden])) .help-launcher {
  display: none;
}
.help-launcher:hover,
.help-launcher:focus-visible,
.help-panel-open .help-launcher {
  opacity: 1;
}
.public-help-inline {
  display: inline-block;
  margin-top: 16px;
  font: 400 13px/1.6 var(--sans, system-ui);
  text-underline-offset: 4px;
}
.help-launcher:focus-visible,
.help-drawer button:focus-visible,
.help-drawer a:focus-visible {
  outline: 3px solid var(--red, #c3341f);
  outline-offset: 3px;
}
.help-panel-open .help-launcher {
  right: min(430px, 100vw);
}
dialog.help-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(430px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line, #d5d5ca);
  background: var(--paper, #f7f5ef);
  color: var(--ink, #252620);
  box-shadow: -10px 0 45px #2223;
  z-index: 115;
  overflow: hidden;
  border-radius: 0;
}
dialog.help-drawer[open] {
  display: flex;
  flex-direction: column;
}
.help-drawer::backdrop {
  background: #20231d55;
}
.help-modal-open {
  overflow: hidden;
}
.help-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
}
.help-panel-header h2 {
  font: 400 42px/1.05 var(--serif, serif);
  margin: 6px 0 0;
}
.help-panel-eyebrow {
  font: 600 10px/1.5 var(--sans, system-ui);
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}
.help-panel-close {
  font: 28px/1 var(--sans, system-ui);
  background: transparent;
  color: inherit;
  border: 1px solid var(--line, #d5d5ca);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  cursor: pointer;
}
.help-panel-tools {
  padding: 0 24px 16px;
  border-bottom: 1px solid var(--line, #d5d5ca);
}
.help-panel-tools label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
.help-panel-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.help-panel-search-row input {
  min-width: 0;
  flex: 1;
  width: 100%;
  font-size: 16px;
  background: #fff;
}
.help-panel-search-row button {
  min-height: 44px;
}
.help-panel-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.help-panel-action,
.help-panel-current {
  border: 1px solid var(--line, #d5d5ca);
  padding: 10px 12px;
  min-height: 44px;
  background: transparent;
  color: inherit;
  font: 500 13px/1.5 var(--sans, system-ui);
  text-align: left;
  cursor: pointer;
}
.help-panel-filters button[aria-pressed="true"] {
  background: var(--ink, #252620);
  color: var(--paper, #f7f5ef);
  border-color: var(--ink, #252620);
}
.help-panel-current {
  width: 100%;
  border-left: 3px solid var(--red, #c3341f);
  font-size: 12px;
}
.help-panel-count {
  font-size: 12px;
  margin: 8px 0 0;
  min-height: 0;
}
.help-panel-content {
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  flex: 1;
  padding: 24px;
  scrollbar-gutter: stable;
}
.help-panel-content h3 {
  font: 400 29px/1.15 var(--serif, serif);
  margin: 8px 0 16px;
  overflow-wrap: anywhere;
}
.help-panel-content p,
.help-panel-content li {
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.help-panel-summary {
  font-weight: 500;
}
.help-panel-content ol {
  padding-left: 22px;
  margin: 20px 0;
}
.help-panel-content li {
  margin: 0 0 14px;
}
.help-panel-content pre {
  max-width: 100%;
  overflow: auto;
  background: #fff;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
}
.help-panel-content code {
  white-space: pre;
}
.help-panel-related {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}
.help-panel-related h4 {
  font-size: 13px;
  margin: 0 0 4px;
}
.help-panel-results {
  padding: 0;
  margin: 0;
  list-style: none;
}
.help-panel-results li {
  margin: 0 0 12px;
}
.help-panel-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line, #d5d5ca);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.help-panel-result strong {
  font-size: 16px;
  line-height: 1.4;
}
.help-panel-result > span:last-child {
  font-size: 13px;
  line-height: 1.6;
}
.help-panel-result:hover {
  background: #fff;
}
.help-panel-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--line, #d5d5ca);
}
.help-panel-footer a {
  font-size: 14px;
  min-height: 28px;
}
.help-panel-footer span {
  font-size: 11px;
}
.help-inline-launch {
  font-size: 13px;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line, #d5d5ca);
  color: inherit;
  cursor: pointer;
  margin-bottom: 12px;
}
@media (max-width: 760px) {
  .help-panel-open .help-launcher {
    display: none;
  }
  .help-panel-header {
    padding: 20px 20px 14px;
  }
  .help-panel-tools {
    padding: 0 20px 14px;
  }
  .help-panel-content {
    padding: 20px;
  }
  .help-panel-footer {
    padding: 14px 20px;
  }
  .help-launcher {
    padding: 10px 14px;
    min-height: 44px;
  }
  .help-panel-header h2 {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .help-launcher {
    transition: opacity 0.15s ease;
  }
  .help-drawer[open] {
    animation: help-panel-in 0.18s ease-out;
  }
  @keyframes help-panel-in {
    from {
      opacity: 0.65;
      translate: 16px 0;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}
