/* Public help uses shared theme tokens and works without JavaScript. */
.public-help { --help-accent: #007987; --help-soft: #e5f3f4; display: flow-root; min-height: 100vh; background: #e5eff2; }
[data-theme="dark"] .public-help { --help-accent: #8dd4dc; --help-soft: #203b43; background: var(--canvas); }
.help-header-inner { width: min(76rem, calc(100% - 2rem)); min-height: 100px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.help-header .brand-logo { width: 176px; }
.help-header-actions { display: flex; align-items: center; gap: 12px; }
.help-login { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--help-accent); }
.help-login svg, .help-phone svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.help-login-tooltip { display: none; position: absolute; right: 0; top: 100%; padding: 8px 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; font-size: .875rem; z-index: 1; }
.help-login:hover .help-login-tooltip, .help-login:focus-visible .help-login-tooltip { display: block; }
.help-shell { width: min(44rem, calc(100% - 2rem)); margin: 24px auto 64px; }
.help-sheet { padding: 40px 48px; background: var(--paper); border-radius: 12px; box-shadow: 0 12px 36px rgb(25 65 80 / 8%); }
.help-sheet h1, .help-task-title { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.5rem); line-height: 1.2; letter-spacing: -.035em; }
.help-lead { margin: 14px 0 20px; color: var(--muted); font-size: 1.125rem; }
.help-phone { display: flex; align-items: center; gap: 14px; width: fit-content; min-height: 44px; max-width: 100%; color: var(--help-accent); text-decoration: none; }
.help-phone > span { min-width: 0; }
.help-phone-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .9rem; }
.help-phone strong { display: block; font-size: 1.3rem; line-height: 1.25; font-variant-numeric: lining-nums; }
.help-home { padding: 36px; }
.help-home h1 { font-size: clamp(1.6rem, 3.5vw, 2rem); }
.help-home-phone { margin: 24px 0; gap: 12px; }
.help-home-phone svg { width: 28px; height: 28px; }
.help-home .help-phone-label { color: var(--theme-text-secondary, #626b76); }
.help-home-phone strong { font-size: clamp(1.35rem, 3.5vw, 1.75rem); letter-spacing: -.025em; }
.help-primary { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 14px 16px; background: #007987; color: #fff; border-radius: 6px; text-align: center; text-decoration: none; font-size: 1.125rem; }
.help-primary:hover { background: #006774; }
.help-home .help-primary { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 52px; border-radius: 10px; font-size: 1rem; line-height: 1.4; text-align: left; }
.help-home .help-primary > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.help-home .help-primary > span:last-child, .help-home-action > span:last-child { flex: 0 0 auto; font-size: 1.25rem; }
.help-home-actions { display: block; margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; }
.help-home-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-width: 0; min-height: 60px; padding: 16px; color: var(--ink); text-decoration: none; line-height: 1.4; overflow-wrap: anywhere; }
.help-home-action > span:first-child { min-width: 0; }
.help-home-action > span:last-child { color: var(--help-accent); }
.help-home-action + .help-home-action { border-top: 1px solid var(--line); }
.help-home-action:first-child { border-radius: 9px 9px 0 0; }
.help-home-action:last-child { border-radius: 0 0 9px 9px; }
.help-home-action:hover { background: var(--help-soft); }
.help-future { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 20px; color: var(--theme-text-secondary, #626b76); font-size: .875rem; line-height: 1.5; }
.help-future small { font-size: inherit; }
.help-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 8px 0; color: var(--help-accent); text-decoration: none; }
.help-sheet > .help-back:first-child { margin: -12px 0 12px; }
.help-topics { display: grid; }
.help-topic { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1.125rem; line-height: 1.4; }
.help-topic:last-child { border-bottom: 0; }
.help-topic > span:last-child { color: var(--help-accent); font-size: 1.75rem; }
.help-topic small { display: block; margin-bottom: 4px; color: var(--muted); font-size: .875rem; }
.help-topic:hover, .help-model:hover, .help-login:hover { background: var(--help-soft); }
.help-support { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.help-models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.help-model { display: flex; flex-direction: column; gap: 8px; padding: 16px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.help-model img { display: block; width: 100%; height: 160px; object-fit: contain; }
.help-model small { color: var(--muted); }
.help-model > span { margin-top: auto; font-size: .9rem; color: var(--help-accent); }
.public-help a:focus-visible { outline: 3px solid var(--help-accent); outline-offset: 4px; }
.public-help .instruction-page { padding-top: 12px; }
.public-help .instruction-page > .help-support { margin-bottom: 24px; }
.public-help .instruction-model-hero { margin-top: 24px; grid-template-columns: 8rem minmax(0, 1fr); gap: 20px; padding: 24px; }
.public-help .instruction-model-image { height: 10rem; }
.public-help .instruction-model-hero h1 { font-size: 2rem; line-height: 1.2; }
.public-help .source-material-badge { margin-top: 0; }
.public-help .instruction-section { scroll-margin-top: 24px; }
.help-empty { margin-top: 24px; }
/* One contact in the DOM: a bottom bar until both columns fit, including enlarged text. */
.public-help .instruction-page { container-type: inline-size; }
.help-reading-layout { padding-bottom: calc(10rem + env(safe-area-inset-bottom, 0px)); }
.help-reading-body { min-width: 0; }
.help-reading-body .operation-choice { grid-template-columns: minmax(0, 1fr); }
.help-reading-body .operation-choice-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.help-reading-body .operation-choice-grid a { min-width: 0; overflow-wrap: anywhere; }
.help-reading-phone { position: fixed; inset: auto 0 0; z-index: 10; justify-content: center; width: 100%; min-height: 80px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgb(25 65 80 / 8%); }
.help-reading-phone > span { max-width: 100%; }
.help-reading-desktop-label { display: none; }
.help-reading-call { margin-top: 6px; font-size: .9rem; }
.help-reading-followup { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 44px; margin-top: 24px; padding: 12px 0; color: var(--help-accent); }
.public-help .help-reading-body .instruction-toc { position: static; }
.public-help .help-reading-body .instruction-layout { grid-template-columns: minmax(0, 1fr); }
.public-help .help-reading-body .instruction-toc { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.public-help .help-reading-body .instruction-toc strong { grid-column: 1 / -1; }
html:has(.help-reading-layout) { scroll-padding-bottom: calc(10rem + env(safe-area-inset-bottom, 0px)); }
.help-reading-body [id], .help-reading-body a { scroll-margin-bottom: calc(10rem + env(safe-area-inset-bottom, 0px)); }
@container (min-width: 64rem) {
  .help-reading-layout { display: grid; grid-template-columns: 18rem minmax(0, 1fr); align-items: start; gap: 24px; padding-bottom: 0; }
  .help-reading-phone { position: sticky; inset: auto; top: 24px; width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 36px rgb(25 65 80 / 8%); }
  .help-reading-mobile-label { display: none; }
  .help-reading-desktop-label { display: block; }
  .help-reading-phone strong { font-size: 1.2rem; }
  .help-reading-body .operation-choice { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
}
@media (max-width: 600px) {
  .help-header-inner { min-height: 80px; }
  .help-header .brand-logo { width: 140px; }
  .help-header-actions { gap: 8px; }
  .help-shell { margin-top: 12px; }
  .help-sheet { padding: 24px; }
  .help-home { padding: 24px; }
  .help-home-phone { gap: 10px; }
  .help-home-phone svg { width: 28px; height: 28px; }
  .help-home .help-home-phone strong { font-size: clamp(1.2rem, 5.7vw, 1.7rem); }
  .help-phone strong { font-size: 1.15rem; }
  .help-phone { gap: 10px; }
  .help-phone svg { width: 24px; height: 24px; }
  .help-topic { min-height: 56px; padding: 12px 0; font-size: 1.05rem; }
  .help-models { grid-template-columns: minmax(0, 1fr); }
  .public-help .instruction-model-hero { grid-template-columns: minmax(0, 1fr); }
  .public-help .instruction-model-image { display: none; }
  .public-help .source-material-badge { grid-column: 1; }
  .public-help .instruction-toc { position: static; }
  .public-help .instruction-section { padding: 20px; }
}
@media (max-width: 350px) {
  .help-sheet { padding: 20px 16px; }
  .help-home { padding: 24px 16px; }
  .help-header .brand-logo { width: 120px; }
  .help-phone-label { font-size: .85rem; }
}
@media print {
  .public-help, [data-theme="dark"] .public-help { --help-accent: #007987; --help-soft: #e5f3f4; background: #fff; }
  .help-header-actions { display: none; }
  .help-sheet { box-shadow: none; }
  .public-help .instruction-page { container-type: normal; }
  .help-reading-layout { display: block; padding-bottom: 0; }
  .help-reading-phone { position: static; width: fit-content; margin-bottom: 24px; padding: 12px; border: 1px solid var(--line); box-shadow: none; }
  .help-reading-mobile-label { display: none; }
  .help-reading-desktop-label { display: block; }
  html:has(.help-reading-layout) { scroll-padding-bottom: 0; }
}
