/* Help guides. Uses existing tokens only; readable at 375px. */
.help-container { max-width: 760px; padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 80px); }
.help-container h1 { margin: 0 0 12px; }
.help-container h2 { font-family: var(--font-ui); font-size: clamp(18px, 2vw, 22px); margin: 32px 0 12px; color: var(--fg-1); }
.help-crumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.help-crumb a { color: var(--accent); }
.help-summary { font-family: var(--font-ui); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--fg-2); margin: 0 0 8px; }
.help-before ul, .help-related ul { padding-left: 20px; margin: 0; color: var(--fg-2); font-family: var(--font-ui); line-height: 1.6; }
.help-steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 20px; }
.help-step {
  counter-increment: step; position: relative; padding: 18px 18px 18px 60px;
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-md);
  scroll-margin-top: 90px;
}
.help-step::before {
  content: counter(step); position: absolute; left: 16px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--fg-on-accent);
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
}
.help-step:target { border-color: var(--accent); }
.help-caption { margin: 0 0 10px; font-family: var(--font-ui); font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--fg-1); }
.help-media { display: block; width: 100%; max-width: 360px; height: auto; border-radius: var(--r-md); border: 1px solid var(--border-1); margin: 0 0 10px; }
.help-result { margin: 0; font-family: var(--font-ui); font-size: 14px; line-height: 1.5; color: var(--fg-3); }
.help-stuck dl { margin: 0; }
.help-stuck dt { font-family: var(--font-ui); font-weight: 600; color: var(--fg-1); margin-top: 14px; }
.help-stuck dd { margin: 4px 0 0; font-family: var(--font-ui); line-height: 1.6; color: var(--fg-2); }
.help-related a, .help-crumb a { text-decoration: none; border-bottom: 1px solid var(--border-2); color: var(--fg-1); }
.help-crumb a { color: var(--accent); border-bottom: 0; }
.help-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.help-card a {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; text-decoration: none;
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-md);
}
.help-card a:hover { border-color: var(--border-2); }
.help-card-title { font-family: var(--font-ui); font-size: 17px; font-weight: 600; color: var(--fg-1); }
.help-card-summary { font-family: var(--font-ui); font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.help-card-audience { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 480px) {
  .help-step { padding: 16px 14px 16px 52px; }
  .help-step::before { left: 12px; top: 16px; }
}

/* ---- Walk-through player (help-player.js). Hidden until JS fills it. ---- */
.help-player[hidden] { display: none; }
.help-player {
  margin: 32px 0 8px; padding: 20px;
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-lg);
  display: grid; gap: 20px; grid-template-columns: 1fr; justify-items: center;
}
@media (min-width: 720px) {
  .help-player { grid-template-columns: auto 1fr; align-items: center; justify-items: stretch; padding: 28px; gap: 32px; }
}
.help-player :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hp-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; width: 100%; }
.hp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hp-counter { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.hp-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-1); background: var(--surface-3); border: 1px solid var(--border-2);
}
.hp-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp-badge[data-surface="email"], .hp-badge[data-surface="web"] { border-color: var(--accent); }
.hp-handoff {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px;
  border-radius: var(--r-sm); border: 1px dashed var(--accent); background: var(--surface-2);
  font-family: var(--font-ui); font-size: 14px; line-height: 1.4; color: var(--fg-1);
}
.hp-handoff[hidden] { display: none; }
.hp-handoff-icon { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp-handoff-from { color: var(--fg-3); }
.hp-handoff-arrow { color: var(--accent); font-weight: 600; }
.hp-handoff-to { font-weight: 600; }
.hp-handoff-note { flex-basis: 100%; font-weight: 600; }
.hp-text { min-height: 5.5em; }
.hp-caption { margin: 0 0 6px; font-family: var(--font-ui); font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; line-height: 1.45; color: var(--fg-1); }
.hp-result { margin: 0; font-family: var(--font-ui); font-size: 15px; line-height: 1.5; color: var(--fg-2); }

/* Controls */
.hp-controls { display: flex; gap: 10px; align-items: center; }
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--fg-1); border: 1px solid var(--border-2);
  font-family: var(--font-ui); font-size: 15px; font-weight: 600; cursor: pointer;
}
.hp-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hp-btn:hover { border-color: var(--fg-3); }
.hp-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.hp-play { background: var(--accent); color: var(--fg-on-accent); border-color: var(--accent); padding: 0 20px; }
.hp-play svg { fill: currentColor; stroke: none; }
.hp-play:hover { border-color: var(--fg-on-accent); }
.hp-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.hp-dot {
  position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.hp-dot::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--border-2); transition: transform .2s ease, background .2s ease;
}
.hp-dot.is-handoff::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; border: 1px solid var(--accent); opacity: 0.6;
}
.hp-dot:hover::before { background: var(--fg-3); }
.hp-dot[aria-current="step"]::before { background: var(--accent); transform: scale(1.3); }

/* Phone frame */
.hp-stage { border-radius: 40px; }
.hp-phone {
  position: relative; width: min(280px, 72vw, max(200px, 28vh)); padding: 10px; border-radius: 40px;
  background: var(--surface-3); border: 1px solid var(--border-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.hp-screen { position: relative; overflow: hidden; border-radius: 30px; background: var(--bg); }
.hp-chrome { display: flex; align-items: center; justify-content: center; height: 30px; }
.hp-chrome[data-surface="app"]::before, .hp-chrome[data-surface="system"]::before {
  content: ''; width: 76px; height: 20px; border-radius: var(--r-pill); background: var(--surface-3);
}
.hp-url {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); padding: 3px 12px;
  border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border-1);
}
.hp-view { position: relative; aspect-ratio: 600 / 1304; display: flex; } /* same box for every step */
.hp-view.has-media { display: block; }
.hp-view.has-media > .hp-layer, .hp-cam { height: 100%; }
.hp-shot { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.hp-view { overflow: hidden; }
.hp-view > .hp-layer { position: relative; flex: 1; display: flex; width: 100%; }
.hp-view.has-media > .hp-layer { display: block; }
.hp-layer.is-out { position: absolute; inset: 0; z-index: 0; pointer-events: none; animation: hp-layer-out .32s ease forwards; }
.hp-layer.is-in { z-index: 1; animation: hp-layer-in .32s ease both; }
@keyframes hp-layer-in { from { opacity: 0; transform: translateX(calc(var(--dir, 0) * 14px)); } to { opacity: 1; transform: none; } }
@keyframes hp-layer-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(calc(var(--dir, 0) * -14px)); } }
@keyframes hp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Camera: the screenshot plus everything pinned to it; pushes in on a press. */
.hp-cam { position: relative; transition: transform .4s cubic-bezier(.25, .1, .25, 1), transform-origin .35s cubic-bezier(.25, .1, .25, 1); will-change: transform; }
.hp-cam.no-anim { transition: none; }
.hp-cam.is-zoom { transform: none; } /* push-in dropped: it cropped the screenshot edges */

/* Spotlight: crisp ~15% scrim with a clean round cut-out and an accent ring
   around target.point. No glow, no blur: the screenshot stays full brightness. */
.hp-spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background:
    radial-gradient(circle at var(--x) var(--y), transparent 0 37px, rgba(186, 73, 45, 0.95) 38px 40px, transparent 41px),
    radial-gradient(circle at var(--x) var(--y), transparent 0 40px, rgba(0, 0, 0, 0.15) 54px);
}
.hp-spot.is-on { opacity: 1; }

/* Touch indicator: translucent accent dot with a white halo, no hand or cursor. */
.hp-touch {
  position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 0; height: 0; pointer-events: none;
  opacity: 0; transition: opacity .2s ease;
}
.hp-touch.is-on { opacity: 1; }
.hp-touch.is-gliding { transition: opacity .2s ease, left .35s cubic-bezier(.2, .9, .25, 1.04), top .35s cubic-bezier(.2, .9, .25, 1.04); }
.hp-touch.is-swiping { transition: left .7s cubic-bezier(.45, 0, .2, 1), top .7s cubic-bezier(.45, 0, .2, 1); }
.hp-touch.is-fading { opacity: 0; transition: opacity .3s ease; }
.hp-touch-dot {
  position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(186, 73, 45, 0.72); border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform .15s ease;
}
.hp-touch.is-press .hp-touch-dot { transform: scale(0.8); }
.hp-touch-dot { transition-duration: .1s; }
.hp-ripple-once {
  position: absolute; left: var(--x); top: var(--y); width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none;
}
.hp-ripple-once.is-go { animation: hp-ripple-ring .6s cubic-bezier(.2, .6, .3, 1) forwards; }
@keyframes hp-ripple-ring { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }

/* Typing: a clean pill near the field with a caret. */
.hp-typing {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; transform: translate(-50%, 30px);
  max-width: 86%; white-space: nowrap; overflow: hidden; padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.96); color: #15171A; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  font-family: var(--font-ui); font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  opacity: 0; transition: opacity .2s ease;
}
.hp-typing.is-above { transform: translate(-50%, calc(-100% - 30px)); }
.hp-typing.is-on { opacity: 1; transition-duration: .08s; }
.hp-typing .hp-caret { background: var(--accent); }

/* Ripple used inside caption cards (no screenshot yet). */
.hp-ripple {
  position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: var(--accent); opacity: 0; animation: hp-ripple 1.6s ease-out .5s infinite; pointer-events: none;
}
.hp-ripple--inline { left: 50%; top: 50%; }
.hp-chip {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: 88%;
  padding: 6px 12px; border-radius: var(--r-pill); background: var(--accent); color: var(--fg-on-accent);
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; text-align: center;
}
.hp-caret {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom;
  background: currentColor; animation: hp-blink 1s steps(1) infinite;
}
@keyframes hp-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: 0.7; } }
@keyframes hp-ripple { 0% { transform: scale(0.3); opacity: 0.45; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes hp-blink { 50% { opacity: 0; } }

/* Last step: check mark draws itself with a few particles. */
.hp-success { position: absolute; inset: 10px; z-index: 4; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hp-success[hidden] { display: none; }
.hp-check { width: 76px; height: 76px; animation: hp-pop .9s ease forwards; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35)); }
.hp-check circle { fill: var(--accent); stroke: rgba(255, 255, 255, 0.9); stroke-width: 2; }
.hp-check path {
  fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: hp-draw .3s .08s ease-out forwards;
}
.hp-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.hp-particle {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  opacity: 0; animation: hp-particle .6s .1s cubic-bezier(.2, .7, .3, 1) forwards;
}
.hp-particle:nth-child(even) { background: #fff; width: 4px; height: 4px; left: -2px; top: -2px; }
@keyframes hp-draw { to { stroke-dashoffset: 0; } }
@keyframes hp-pop { 0% { transform: scale(0.6); opacity: 0; } 20% { transform: scale(1); opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hp-particle { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0.4); opacity: 0; } }

/* Badge flips when the surface changes. */
.hp-badge.is-flip { animation: hp-flip .45s ease both; }
@keyframes hp-flip { from { transform: perspective(200px) rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Caption card: used until a step has a screenshot */
.hp-card {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px 18px 36px; text-align: center;
}
.hp-card-screen { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.hp-card-icon {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border-1);
}
.hp-card-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp-target { position: relative; }
.hp-card-target {
  display: inline-block; padding: 12px 20px; border-radius: var(--r-sm); background: var(--accent); color: var(--fg-on-accent);
  font-family: var(--font-ui); font-size: 15px; font-weight: 600; max-width: 100%; overflow-wrap: anywhere;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); animation: hp-pulse-box 1.6s ease-in-out infinite;
}
.hp-card-target .hp-ripple { margin: -27px 0 0 -27px; background: var(--fg-on-accent); }
.hp-card-field-label { align-self: stretch; text-align: left; font-family: var(--font-ui); font-size: 13px; color: var(--fg-2); margin-bottom: -10px; }
.hp-card-field {
  align-self: stretch; min-height: 46px; display: flex; align-items: center; padding: 0 12px; text-align: left;
  border-radius: var(--r-sm); border: 2px solid var(--accent); background: var(--surface-1); color: var(--fg-1);
  font-family: var(--font-ui); font-size: 15px; overflow: hidden; white-space: nowrap;
}
.hp-card-verb { font-family: var(--font-ui); font-size: 13px; color: var(--fg-3); }
.hp-scroll-hint {
  width: 22px; height: 36px; border-radius: 12px; border: 2px solid var(--fg-3); position: relative;
}
.hp-scroll-hint::after {
  content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--accent); animation: hp-scroll 1.4s ease-in-out infinite;
}
.hp-spinner {
  width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border-2); border-top-color: var(--accent);
  animation: hp-spin 0.9s linear infinite;
}
@keyframes hp-pulse-box { 0%, 100% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); } 50% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 10px rgba(186, 73, 45, 0.35); } }
@keyframes hp-scroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes hp-spin { to { transform: rotate(360deg); } }

/* Surface hand-off card over the phone */
.hp-transition {
  position: absolute; inset: 10px; border-radius: 30px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px;
  background: var(--accent); color: var(--fg-on-accent); text-align: center;
  animation: hp-card-in .35s cubic-bezier(.2, .8, .3, 1) both; transform-origin: 50% 100%;
}
@keyframes hp-card-in { from { opacity: 0; transform: perspective(700px) translateY(6%) rotateX(-10deg); } to { opacity: 1; transform: none; } }
.hp-transition[hidden] { display: none; }
.hp-transition.is-leaving { opacity: 0; transform: translateY(-4%); transition: opacity .3s ease, transform .3s ease; }
.hp-transition-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.hp-transition-icon { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-transition-text { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.25; }

/* Static list row the player is showing */
.help-player.is-ready ~ .help-steps .help-step { cursor: pointer; }
.help-step.is-current { border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .hp-ripple, .hp-caret, .hp-card-target, .hp-scroll-hint::after, .hp-spinner,
  .hp-layer.is-in, .hp-layer.is-out, .hp-transition, .hp-badge.is-flip, .hp-ripple-once.is-go { animation: none; }
  .hp-ripple, .hp-ripple-once, .hp-success, .hp-layer.is-out { display: none; }
  .hp-dot::before, .hp-transition.is-leaving, .hp-cam, .hp-spot, .hp-touch, .hp-touch-dot, .hp-typing { transition: none; }
  .hp-cam.is-zoom { transform: none; }
}
@media (max-width: 480px) {
  .help-player { padding: 16px 14px; margin-left: -4px; margin-right: -4px; }
  .hp-controls { justify-content: space-between; }
  .hp-play { flex: 1; }
}

/* ?record=1 (video export): phone + counter + caption only, nothing else on the page. */
html.help-record, html.help-record body { background: var(--bg); overflow: hidden; }
html.help-record body > *:not(#help-player) { display: none !important; }
.help-player.is-record {
  margin: 0; border: 0; border-radius: 0; background: var(--bg); min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 18px; padding: 28px 20px 16px;
}
.help-player.is-record .hp-phone { width: min(400px, calc((100vh - 260px) / 2.173 + 20px)); box-shadow: none; }
.help-player.is-record .hp-side { align-items: center; text-align: center; gap: 8px; max-width: 380px; }
.help-player.is-record .hp-controls, .help-player.is-record .hp-dots,
.help-player.is-record .hp-handoff, .help-player.is-record .hp-result { display: none; }
.help-player.is-record .hp-text { min-height: 4.6em; } /* fixed caption area: the phone never moves */
.help-player.is-record .hp-top { justify-content: center; }

/* Recorded walk-through video (guide.video) */
.help-video-player { display: block; width: 100%; max-width: 360px; height: auto; border-radius: var(--r-md); border: 1px solid var(--border-1); background: var(--surface-2); }

/* ---- Chapters ---- */
.help-chapters { margin: 28px 0 0; }
.help-chapters ol {
  list-style: none; counter-reset: chap; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.help-chapters li { counter-increment: chap; }
.help-chapters a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border-radius: var(--r-pill); border: 1px solid var(--border-2); background: var(--surface-1);
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--fg-1); text-decoration: none;
}
.help-chapters a::before {
  content: counter(chap); display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--surface-3); color: var(--fg-2);
  font-family: var(--font-mono); font-size: 11px;
}
.help-chapters a:hover { border-color: var(--fg-3); }
.help-chapters a.is-current { border-color: var(--accent); background: var(--surface-2); }
.help-chapters a.is-current::before { background: var(--accent); color: var(--fg-on-accent); }
.help-chapters a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.help-steps-chaptered { counter-reset: step; margin-top: 32px; }
.help-steps-chaptered .help-steps { counter-reset: none; margin-top: 12px; }
.help-chapter + .help-chapter { margin-top: 28px; }
.help-chapter-title {
  font-family: var(--font-ui); font-size: clamp(17px, 1.8vw, 20px); font-weight: 700; color: var(--fg-1);
  margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--border-1); scroll-margin-top: 90px;
}

.hp-dots { gap: 4px 14px; }
.hp-dot-group { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 2px 4px; border-radius: var(--r-pill); }
.hp-dot-group:has(.hp-dot[aria-current="step"]) { background: var(--surface-2); }

.hp-chapter-end { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-chapter-end[hidden] { display: none; }
.hp-next-chapter { background: var(--accent); color: var(--fg-on-accent); border-color: var(--accent); padding: 0 18px; }
.hp-replay { padding: 0 16px; }

.hp-chapter-card { background: var(--surface-3); color: var(--fg-1); }
.hp-chapter-card .hp-transition-kicker { color: var(--accent); opacity: 1; }
