body > .account-toolbar > #page-help-trigger { right: 88px; border-radius: 50%; }
body .account-toolbar #page-help-trigger { border-radius: 50%; }
body > .account-toolbar > .account-settings-trigger { right: 152px; }
body:has(> .account-toolbar) { --account-header-space: 208px; }
body:has(.workspace-sidebar-toggle) { --account-header-space: 144px; }
#page-help { --help-pointer: 50%; --help-height: calc(100dvh - 100px); inset: auto; margin: 0; padding: 0; width: min(540px, calc(100vw - 24px)); max-height: none; overflow: visible; }
#page-help::before {
  content: '';
  position: absolute;
  top: -7px;
  left: calc(var(--help-pointer, 50%) - 7px);
  width: 12px;
  height: 12px;
  background: var(--sf);
  border-top: 1px solid var(--ln);
  border-left: 1px solid var(--ln);
  transform: rotate(45deg);
}
.page-help-content { padding: 22px; box-sizing: border-box; max-height: var(--help-height, calc(100dvh - 100px)); overflow: auto; }
.page-help-content h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.3; }
.page-help-content ol { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: page-help-step; }
.page-help-content li { position: relative; padding-left: 1.5em; margin-bottom: 8px; counter-increment: page-help-step; }
.page-help-content li::before { content: counter(page-help-step) "."; position: absolute; left: 0; }
.page-help-content p { margin: 0 0 16px; }
#page-help-more { display: block; width: fit-content; max-width: 100%; margin-left: auto; }
#page-help-detail { max-width: 1120px; height: min(900px, calc(100dvh - 32px)); overflow: hidden; font: 18px/1.5 system-ui, sans-serif; }
#page-help-detail[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 20px; }
#page-help-detail h2 { font-size: 24px; }
#page-help-detail h3 { margin: 24px 0 12px; }
#page-help-detail li { margin-bottom: 8px; }
#page-help-detail ul, #page-help-detail ol { padding-left: 1.5em; }
#page-help-detail .account-menu-heading { align-items: flex-start; margin: 0; max-height: 25dvh; overflow: auto; }
#page-help-detail .account-menu-heading > button { flex: 0 0 44px; min-height: 44px; font-size: 26px; }
.page-help-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; min-height: 0; }
.page-help-contents { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; padding-right: 8px; }
#page-help-sections { min-width: 0; overflow: auto; padding-right: 12px; overscroll-behavior: contain; }
#page-help-sections > section:first-child > h3 { margin-top: 0; }
#page-help-detail .page-help-contents button { flex-shrink: 0; padding: 10px 14px; min-height: 44px; border: 1px solid var(--ln); border-radius: 10px; background: var(--bg2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.help-copy-icon { display: inline-block; vertical-align: middle; width: 24px; height: 24px; }
.help-copy-icon svg { width: 100%; height: 100%; }
body.has-logist-help { --account-header-space: 208px; }
.has-logist-help #bell { position: absolute; top: 8px; right: 148px; height: 52px; z-index: 40; }
@media (max-width: 700px) {
  #page-help-detail { padding: 16px; }
  #page-help-detail[open] { gap: 16px; }
  .page-help-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 16px; }
  .page-help-contents { flex-direction: row; padding: 0 0 8px; }
  #page-help-detail .page-help-contents button { max-width: 260px; }
}
@media (max-width: 480px) {
  body > .account-toolbar > #page-help-trigger { right: 78px; }
  body > .account-toolbar > .account-settings-trigger { right: 142px; }
  .has-logist-help #bell { right: 138px; }
  .page-help-content { padding: 16px; }
}
@media print { #page-help-detail { display: none; } }

#page-help, #page-help-detail { --help-accent: var(--blue); --help-active-bg: var(--bluebg); }
#page-help h2, #page-help-detail h2, #page-help-detail h3 { color: var(--help-accent); }
#page-help-detail .page-help-contents button[aria-current="location"] { color: var(--help-accent); border-color: var(--help-accent); background: var(--help-active-bg); box-shadow: inset 3px 0 var(--help-accent); }
#page-help-sections > section:last-child { min-height: 100%; }

#page-help-trigger[hidden] { display: none; }
@media screen and (max-width: 600px) {
  body #page-help-detail { overflow: hidden; }
  #page-help-detail .page-help-contents button { min-height: 44px; }
}
