/*
 * Help center styles. Self-contained: every class is help-*, colours are the
 * variables below (light on :root, dark on [data-theme="dark"] and on the
 * system setting when no theme is stored). Tokens: specs/help-center.md 4.3.
 * output.css (Tailwind preflight) loads first, so lists, headings and
 * buttons start unstyled here.
 */

/* ---------- Tokens ---------- */
:root {
  --help-bg: #ffffff;
  --help-bg-subtle: #f9fafb;
  --help-surface: #ffffff;
  --help-surface-2: #f3f4f6;
  --help-border: #e5e7eb;
  --help-border-strong: #d1d5db;
  --help-text: #111827;
  --help-text-body: #374151;
  --help-text-muted: #4b5563;
  --help-text-subtle: #6b7280;
  --help-link: #2c61ff;
  --help-link-hover: #1d4ed8;
  --help-primary: #2c61ff;
  --help-primary-hover: #1d4ed8;
  --help-primary-soft: #eaefff;
  --help-primary-soft-text: #1d4ed8;
  --help-selected-bg: #eaefff;
  --help-focus: #2c61ff;
  --help-mark-bg: #fde68a;
  --help-note-bg: #eaefff;
  --help-note-border: #c7d4ff;
  --help-note-title: #1e3a8a;
  --help-tip-bg: #ecfdf5;
  --help-tip-border: #a7f3d0;
  --help-tip-title: #065f46;
  --help-warning-bg: #fffbeb;
  --help-warning-border: #fde68a;
  --help-warning-title: #92400e;
  --help-draft-bg: #fffbeb;
  --help-draft-border: #fcd34d;
  --help-draft-text: #92400e;
  --help-draft-chip: #fef3c7;
  --help-success: #047857;
  --help-danger: #b91c1c;
  --help-overlay: rgba(3, 7, 18, 0.45);
  --help-shadow-card: 0 1px 2px rgba(17, 24, 39, 0.04);
  --help-shadow-pop: 0 12px 32px rgba(17, 24, 39, 0.12), 0 2px 6px rgba(17, 24, 39, 0.06);
  --help-gradient: linear-gradient(135deg, #7775d6, #e935c1);
  --help-glow-opacity: 0.1;
  --help-shot-filter: none;
  --help-radius-sm: 6px;
  --help-radius-md: 10px;
  --help-radius-lg: 16px;
  --help-header-h: 56px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --help-bg: #030712;
  --help-bg-subtle: #0b1120;
  --help-surface: #111827;
  --help-surface-2: #1f2937;
  --help-border: #1f2937;
  --help-border-strong: #374151;
  --help-text: #f9fafb;
  --help-text-body: #d1d5db;
  --help-text-muted: #9ca3af;
  --help-text-subtle: #9ca3af;
  --help-link: #6b8cff;
  --help-link-hover: #93acff;
  --help-primary-soft: #0f1a3d;
  --help-primary-soft-text: #b4c6ff;
  --help-selected-bg: color-mix(in srgb, #2c61ff 20%, #111827);
  --help-focus: #6b8cff;
  --help-mark-bg: rgba(250, 204, 21, 0.28);
  --help-note-bg: #0f1a3d;
  --help-note-border: #1e3a8a;
  --help-note-title: #b4c6ff;
  --help-tip-bg: #052e1f;
  --help-tip-border: #065f46;
  --help-tip-title: #6ee7b7;
  --help-warning-bg: #2b1d05;
  --help-warning-border: #78350f;
  --help-warning-title: #fcd34d;
  --help-draft-bg: #2b1d05;
  --help-draft-border: #78350f;
  --help-draft-text: #fcd34d;
  --help-draft-chip: #451a03;
  --help-success: #34d399;
  --help-danger: #f87171;
  --help-overlay: rgba(0, 0, 0, 0.6);
  --help-shadow-card: none;
  --help-shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5);
  --help-glow-opacity: 0.16;
  --help-shot-filter: brightness(0.92);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --help-bg: #030712;
    --help-bg-subtle: #0b1120;
    --help-surface: #111827;
    --help-surface-2: #1f2937;
    --help-border: #1f2937;
    --help-border-strong: #374151;
    --help-text: #f9fafb;
    --help-text-body: #d1d5db;
    --help-text-muted: #9ca3af;
    --help-text-subtle: #9ca3af;
    --help-link: #6b8cff;
    --help-link-hover: #93acff;
    --help-primary-soft: #0f1a3d;
    --help-primary-soft-text: #b4c6ff;
    --help-selected-bg: color-mix(in srgb, #2c61ff 20%, #111827);
    --help-focus: #6b8cff;
    --help-mark-bg: rgba(250, 204, 21, 0.28);
    --help-note-bg: #0f1a3d;
    --help-note-border: #1e3a8a;
    --help-note-title: #b4c6ff;
    --help-tip-bg: #052e1f;
    --help-tip-border: #065f46;
    --help-tip-title: #6ee7b7;
    --help-warning-bg: #2b1d05;
    --help-warning-border: #78350f;
    --help-warning-title: #fcd34d;
    --help-draft-bg: #2b1d05;
    --help-draft-border: #78350f;
    --help-draft-text: #fcd34d;
    --help-draft-chip: #451a03;
    --help-success: #34d399;
    --help-danger: #f87171;
    --help-overlay: rgba(0, 0, 0, 0.6);
    --help-shadow-card: none;
    --help-shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5);
    --help-glow-opacity: 0.16;
    --help-shot-filter: brightness(0.92);
    color-scheme: dark;
  }
}
@media (min-width: 1024px) {
  :root { --help-header-h: 64px; }
}

/* ---------- Base ---------- */
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body:has(.help-root) { background: var(--help-bg); }
body.help-locked { overflow: hidden; }
.help-root {
  color: var(--help-text-body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.help-root [hidden] { display: none !important; }
.help-root a { color: var(--help-link); text-decoration: none; }
.help-root a:hover { color: var(--help-link-hover); }
.help-root :focus-visible { outline: 2px solid var(--help-focus); outline-offset: 2px; }
.help-root h1, .help-root h2, .help-root h3 { color: var(--help-text); text-wrap: balance; }
.help-root p, .help-root li { text-wrap: pretty; }
/* Short nav links: pretty still left "Foresight" or "cost?" alone on a second line. */
/* pretty, not balance: balance breaks short nav titles at a hard hyphen ("7- / day free trial"). */
.help-root .help-sidebar a, .help-root .help-toc a, .help-root .help-footer li { text-wrap: pretty; }
.help-root ::placeholder { color: var(--help-text-subtle); opacity: 1; }
.help-root mark { background: var(--help-mark-bg); color: var(--help-text); border-radius: 3px; padding: 0 1px; }
.help-icon { width: 20px; height: 20px; flex: none; }
.help-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.help-skip {
  position: absolute; left: 16px; top: -100px; z-index: 100; padding: 8px 14px;
  border-radius: 8px; background: var(--help-surface); color: var(--help-text) !important;
  box-shadow: var(--help-shadow-pop); font-size: 14px; font-weight: 600;
}
.help-skip:focus { top: 8px; }

/* JS-only controls stay out of the way when scripts don't run. */
html:not(.help-js) [data-help-page-actions],
html:not(.help-js) [data-help-feedback],
html:not(.help-js) [data-help-theme],
html:not(.help-js) .help-segmented,
html:not(.help-js) .help-menu-button,
html:not(.help-js) .help-js-only { display: none !important; }
.help-js .help-nojs-only { display: none !important; }

.help-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .help-container { padding: 0 24px; } }
@media (min-width: 1024px) { .help-container { padding: 0 32px; } }
.help-main { flex: 1; padding: 32px 0 80px; }
.help-main:focus { outline: none; }
@media (min-width: 1024px) { .help-main { padding-top: 40px; } }
.help-main--home { padding-top: 0; }

/* ---------- Buttons, pills, chips, keycaps ---------- */
.help-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--help-border-strong); background: var(--help-surface);
  color: var(--help-text) !important; font-size: 14px; font-weight: 600; line-height: 20px;
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.help-button:hover { background: var(--help-surface-2); }
.help-button:disabled { opacity: 0.6; cursor: default; }
.help-button .help-icon { width: 18px; height: 18px; }
.help-button--primary { background: var(--help-primary); border-color: var(--help-primary); color: #ffffff !important; }
.help-button--primary:hover { background: var(--help-primary-hover); border-color: var(--help-primary-hover); }
.help-button--sm { min-height: 32px; padding: 5px 10px; font-size: 13px; gap: 6px; }
.help-button--sm .help-icon { width: 16px; height: 16px; }
.help-button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.help-pill {
  position: relative; display: inline-flex; align-items: center; min-height: 34px; padding: 5px 14px;
  border: 1px solid var(--help-border-strong); border-radius: 999px; background: var(--help-surface);
  color: var(--help-text-body) !important; font-size: 14px; font-weight: 500; line-height: 22px;
  white-space: nowrap; cursor: pointer;
}
.help-pill:hover { border-color: var(--help-text-subtle); color: var(--help-text) !important; }
/* Taller tap area than the pill draws. */
.help-pill::after { content: ""; position: absolute; inset: -5px 0; }
.help-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.help-pills-label { font-size: 14px; color: var(--help-text-muted); margin-right: 4px; }
/* On phones the label costs a pill's width and pushes the last pill onto a line of its own. */
@media (max-width: 479px) { .help-pills-label { display: none; } }

.help-chip, .help-badge {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
  background: var(--help-primary-soft); color: var(--help-primary-soft-text) !important;
  font-size: 11px; font-weight: 600; line-height: 18px; text-transform: uppercase;
  letter-spacing: 0.04em; white-space: nowrap; vertical-align: middle;
}
a.help-badge:hover { color: var(--help-link-hover) !important; }
.help-chip--draft { background: var(--help-draft-chip); color: var(--help-draft-text) !important; }

.help-root kbd {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--help-border-strong);
  border-bottom-width: 2px; border-radius: 6px; background: var(--help-surface);
  color: var(--help-text-muted); font: 500 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  white-space: nowrap; vertical-align: 1px;
}
.help-mod-mac { display: none; }
.help-mac .help-mod-mac { display: inline; }
.help-mac .help-mod-other { display: none; }

/* ---------- Header ---------- */
.help-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--help-bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  view-transition-name: help-header;
}
.help-header[data-scrolled] { border-bottom-color: var(--help-border); }
/* Clear at the top so the home hero glow runs under it without a band. */
.help-js .help-header:not([data-scrolled]) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.help-header-inner { display: flex; align-items: center; gap: 4px; height: var(--help-header-h); }
.help-brand {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px;
  color: var(--help-text) !important; font-size: 16px; line-height: 1;
}
.help-brand img { width: 28px; height: 28px; margin-right: 2px; }
.help-brand-name { font-weight: 600; letter-spacing: -0.01em; }
.help-brand-help { font-weight: 500; color: var(--help-text-muted); }
.help-root .help-icon-button {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 8px; color: var(--help-text-body); cursor: pointer;
}
.help-root .help-icon-button:hover { background: var(--help-surface-2); color: var(--help-text); }
.help-header .help-menu-button { margin-left: -10px; }
.help-header-end { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.help-search-trigger {
  display: none; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 10px;
  border: 1px solid var(--help-border-strong); border-radius: 8px; background: var(--help-surface);
  color: var(--help-text-subtle) !important; font-size: 14px; line-height: 1;
}
.help-search-trigger:hover { border-color: var(--help-text-subtle); }
.help-search-trigger .help-icon { width: 18px; height: 18px; }
.help-search-trigger kbd { margin-left: auto; }
.help-header-nav { display: none; align-items: center; gap: 24px; margin: 0 12px 0 8px; font-size: 14px; font-weight: 600; }
.help-header-nav a { color: var(--help-text) !important; }
.help-header-nav a:hover { color: var(--help-link) !important; }
.help-header-cta { display: flex; align-items: center; gap: 16px; margin-left: 4px; }
.help-header-cta .help-button { padding-left: 12px; padding-right: 12px; }
.help-header-login { display: none; font-size: 14px; font-weight: 600; color: var(--help-text) !important; }
.help-header-login:hover { color: var(--help-link) !important; }
.help-cta-long { display: none; }
.help-header .help-theme { display: none; }
@media (max-width: 479px) {
  .help-header-cta--app { display: none; }
}
@media (max-width: 359px) {
  .help-header-cta { display: none; }
}
@media (min-width: 640px) {
  .help-header-inner { gap: 8px; }
  .help-brand { font-size: 17px; gap: 8px; }
  .help-header .help-theme { display: block; }
  .help-cta-short { display: none; }
  .help-cta-long { display: inline; }
}
@media (min-width: 768px) {
  .help-header .help-search-icon { display: none; }
  .help-search-trigger { display: inline-flex; width: 220px; margin-right: 4px; }
}
@media (min-width: 1024px) {
  .help-header .help-menu-button { display: none; }
  .help-search-trigger { width: 260px; margin: 0 0 0 24px; }
  .help-header-nav { display: flex; }
  .help-header-login { display: inline; }
}

/* ---------- Menus ---------- */
.help-theme, .help-page-actions { position: relative; }
.help-theme-icon { display: none; }
:root:not([data-theme]) .help-theme-icon--system,
:root[data-theme="light"] .help-theme-icon--light,
:root[data-theme="dark"] .help-theme-icon--dark { display: inline-flex; }
.help-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 200px;
  display: flex; flex-direction: column; gap: 1px; padding: 6px;
  background: var(--help-surface); border: 1px solid var(--help-border); border-radius: 12px;
  box-shadow: var(--help-shadow-pop);
}
.help-menu > * {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border-radius: var(--help-radius-sm); color: var(--help-text-body) !important;
  font-size: 14px; font-weight: 500; line-height: 20px; text-align: left; white-space: nowrap; cursor: pointer;
}
.help-menu > *:hover, .help-menu > *:focus-visible { background: var(--help-surface-2); color: var(--help-text) !important; outline: none; }
.help-menu .help-icon { width: 18px; height: 18px; color: var(--help-text-subtle); }
.help-menu-end { margin-left: auto; padding-left: 12px; }
.help-menu-end .help-icon { width: 16px; height: 16px; }
.help-menu [aria-checked="true"] { color: var(--help-text) !important; }
.help-menu [aria-checked="false"] .help-menu-end { visibility: hidden; }
.help-menu [aria-checked="true"] .help-menu-end .help-icon { color: var(--help-link); }

/* ---------- Drawer (phone and tablet) ---------- */
.help-drawer { position: fixed; inset: 0; z-index: 60; }
.help-drawer-overlay { position: absolute; inset: 0; background: var(--help-overlay); opacity: 0; }
.help-drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 88vw);
  display: flex; flex-direction: column; background: var(--help-surface);
  box-shadow: var(--help-shadow-pop); transform: translateX(-100%);
}
.help-drawer.is-open .help-drawer-overlay { opacity: 1; }
.help-drawer.is-open .help-drawer-panel { transform: none; }
.help-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 20px; }
.help-drawer-title { margin: 0; color: var(--help-text); font-size: 16px; font-weight: 600; }
.help-drawer-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 24px; }
.help-drawer-search {
  display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 16px; padding: 0 7px;
  border: 1px solid var(--help-border-strong); border-radius: 10px; background: var(--help-bg);
  color: var(--help-text-subtle) !important; font-size: 15px;
}
.help-drawer-search .help-icon { width: 18px; height: 18px; }
.help-drawer-links { display: flex; flex-direction: column; margin: 16px 0 0; padding: 0; }
.help-drawer-links a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--help-text) !important; font-size: 15px; font-weight: 500; border-radius: 8px; }
.help-drawer-links a:hover { background: var(--help-surface-2); }
.help-segmented {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 16px 0 0; padding: 3px;
  border-radius: 10px; background: var(--help-surface-2);
}
.help-segmented button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px;
  border-radius: 8px; color: var(--help-text-muted); font-size: 14px; font-weight: 500; cursor: pointer;
}
.help-segmented button .help-icon { width: 16px; height: 16px; }
.help-segmented button[aria-pressed="true"] { background: var(--help-surface); color: var(--help-text); box-shadow: 0 1px 2px rgba(17, 24, 39, 0.12); }
.help-drawer-cta { display: grid; gap: 8px; padding: 16px 12px; background: var(--help-surface); box-shadow: 0 -1px 0 var(--help-border); }
.help-drawer-cta .help-button { min-height: 44px; }

/* ---------- Layout ---------- */
.help-layout { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
.help-layout-nav, .help-layout-toc { display: none; }
.help-layout-main { min-width: 0; max-width: 680px; }
@media (min-width: 1024px) {
  .help-layout { grid-template-columns: 232px minmax(0, 1fr); }
  .help-layout-nav { display: block; }
}
@media (min-width: 1280px) {
  .help-layout--article { grid-template-columns: 248px minmax(0, 1fr) 220px; }
  .help-layout-toc { display: block; }
  .help-toc-fold { display: none; }
}
.help-layout-nav, .help-layout-toc {
  position: sticky; top: calc(var(--help-header-h) + 24px); align-self: start;
  max-height: calc(100vh - var(--help-header-h) - 40px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--help-border-strong) transparent;
}
.help-layout-nav { margin-left: -8px; padding-bottom: 24px; }
.help-narrow { max-width: 720px; }

/* Sidebar: one <details> per category, the current one open. */
.help-sidebar { font-size: 14px; line-height: 20px; }
.help-sidebar-group summary {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 8px; border-radius: 8px;
  color: var(--help-text); font-weight: 500; cursor: pointer; list-style: none; user-select: none;
}
.help-sidebar-group summary::-webkit-details-marker { display: none; }
.help-sidebar-group summary:hover { background: var(--help-surface-2); }
.help-sidebar-group summary > .help-icon { width: 18px; height: 18px; color: var(--help-text-subtle); }
.help-sidebar-label { flex: 1; min-width: 0; }
.help-sidebar-chevron { display: inline-flex; color: var(--help-text-subtle); }
.help-sidebar-chevron .help-icon { width: 14px; height: 14px; }
.help-sidebar-group[open] .help-sidebar-chevron { transform: rotate(90deg); }
.help-sidebar-group.is-current summary, .help-sidebar-group.is-current summary > .help-icon { color: var(--help-primary-soft-text); }
.help-sidebar-group ul { margin: 2px 0 10px 17px; border-left: 1px solid var(--help-border); }
.help-sidebar-group li a {
  display: block; margin-left: -1px; padding: 6px 8px 6px 18px; border-left: 1px solid transparent;
  color: var(--help-text-muted) !important;
}
.help-sidebar-group li a:hover { color: var(--help-text) !important; border-left-color: var(--help-text-subtle); }
.help-sidebar-group li a[aria-current="page"] {
  color: var(--help-primary-soft-text) !important; font-weight: 500; border-left: 2px solid var(--help-primary); padding-left: 17px;
}
.help-sidebar .help-chip { margin-left: 4px; padding: 0 6px; font-size: 10px; line-height: 16px; }

/* ---------- Page header ---------- */
.help-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 16px; font-size: 14px; line-height: 20px; }
.help-breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.help-breadcrumbs li + li::before {
  content: ""; width: 14px; height: 14px; flex: none; background: var(--help-text-subtle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.help-breadcrumbs a { color: var(--help-text-muted) !important; }
.help-breadcrumbs a:hover { color: var(--help-text) !important; }
.help-breadcrumbs [aria-current="page"] { color: var(--help-text-subtle); }
@media (max-width: 639px) {
  .help-breadcrumbs li:last-child:not(:first-child) { display: none; }
}

.help-page-header { margin-bottom: 32px; }
.help-page-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: var(--help-primary-soft); color: var(--help-primary-soft-text);
}
.help-page-icon .help-icon { width: 24px; height: 24px; }
.help-page-title { margin: 0 0 12px; font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 768px) { .help-page-title { font-size: 36px; } }
.help-lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--help-text-muted); }
.help-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px;
  font-size: 14px; line-height: 20px; color: var(--help-text-muted);
}
.help-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--help-text-subtle); }
.help-page-actions { display: inline-flex; margin-left: auto; }
.help-page-actions-main { border-radius: 8px 0 0 8px; }
.help-page-actions-toggle { margin-left: -1px; border-radius: 0 8px 8px 0; padding-left: 7px; padding-right: 7px; }
.help-page-actions .help-menu { min-width: 236px; }
@media (max-width: 479px) {
  .help-page-actions { margin-left: 0; }
  .help-page-actions .help-menu { right: auto; left: 0; }
}
.help-copy-swap { position: relative; display: inline-flex; width: 16px; height: 16px; }
.help-copy-swap .help-icon { position: absolute; inset: 0; }
.help-copy-swap .help-icon + .help-icon { opacity: 0; transform: scale(0.8); color: var(--help-success); }
[data-copied] .help-copy-swap .help-icon:first-child { opacity: 0; transform: scale(0.8); }
[data-copied] .help-copy-swap .help-icon + .help-icon { opacity: 1; transform: none; }
.help-app-link { margin: 20px 0 0; }

/* Folded "On this page" for narrower screens. */
.help-toc-fold {
  margin-top: 24px; border: 1px solid var(--help-border); border-radius: 12px; background: var(--help-surface);
  font-size: 14px; line-height: 20px;
}
.help-toc-fold summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px;
  color: var(--help-text); font-weight: 600; cursor: pointer; list-style: none;
}
.help-toc-fold summary::-webkit-details-marker { display: none; }
.help-toc-fold summary .help-icon { width: 16px; height: 16px; color: var(--help-text-subtle); }
.help-toc-fold[open] summary .help-icon { transform: rotate(180deg); }
.help-toc-fold ul { padding: 0 14px 12px; }
.help-toc-fold a { display: block; padding: 6px 0; color: var(--help-text-muted) !important; }
.help-toc-fold a:hover { color: var(--help-text) !important; }
.help-toc-fold .help-toc-item--h3 a { padding-left: 14px; }

/* Right-hand TOC with a sliding indicator. */
.help-toc { font-size: 13px; line-height: 18px; padding-bottom: 24px; }
.help-toc-title { margin: 0 0 10px; color: var(--help-text); font-size: 13px; font-weight: 600; }
.help-toc-track { position: relative; border-left: 1px solid var(--help-border); }
.help-toc-indicator {
  position: absolute; left: -1px; top: 0; width: 2px; height: 0; border-radius: 2px;
  background: var(--help-primary); opacity: 0;
}
.help-toc-indicator.is-visible { opacity: 1; }
.help-toc a { display: block; padding: 5px 0 5px 14px; color: var(--help-text-muted) !important; }
.help-toc a:hover { color: var(--help-text) !important; }
.help-toc a[aria-current="true"] { color: var(--help-primary-soft-text) !important; }
.help-toc .help-toc-item--h3 a { padding-left: 26px; }

/* ---------- Prose ---------- */
.help-prose { color: var(--help-text-body); }
.help-prose > :first-child { margin-top: 0; }
.help-prose h2 {
  position: relative; margin: 48px 0 12px; font-size: 24px; line-height: 1.3; font-weight: 600;
  letter-spacing: -0.01em; scroll-margin-top: 96px;
}
.help-prose h3 { position: relative; margin: 32px 0 8px; font-size: 18px; line-height: 1.4; font-weight: 600; scroll-margin-top: 96px; }
.help-prose p { margin: 0 0 16px; }
.help-prose ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.help-prose ul ul { margin: 4px 0 0; list-style: circle; }
.help-prose li { margin: 6px 0; padding-left: 2px; }
.help-prose li::marker { color: var(--help-text-subtle); }
.help-prose strong { color: var(--help-text); font-weight: 600; }
.help-prose a {
  color: var(--help-link);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--help-link) 35%, transparent);
}
.help-prose a:hover { color: var(--help-link-hover); text-decoration-color: currentColor; }
.help-prose a.help-anchor {
  display: inline-block; margin-left: 8px; padding: 0 4px; border-radius: 4px;
  color: var(--help-text-subtle) !important; font-weight: 400; text-decoration: none; opacity: 0;
}
.help-prose h2:hover .help-anchor, .help-prose h3:hover .help-anchor, .help-prose .help-anchor:focus-visible { opacity: 1; }
.help-prose a.help-anchor:hover { color: var(--help-link) !important; }
@media (hover: none) { .help-prose a.help-anchor { display: none; } }
.help-prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--help-border); }
.help-prose img { max-width: 100%; height: auto; }

/* Numbered steps: every <ol> in an article. */
.help-prose ol { margin: 20px 0 24px; padding: 0; list-style: none; counter-reset: help-step; }
.help-prose ol > li { position: relative; margin: 0; padding: 0 0 16px 42px; counter-increment: help-step; }
.help-prose ol > li::before {
  content: counter(help-step); position: absolute; left: 0; top: 0; width: 26px; height: 26px;
  border-radius: 999px; background: var(--help-primary-soft); color: var(--help-primary-soft-text);
  font-size: 13px; font-weight: 600; line-height: 26px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.help-prose ol > li:last-child { padding-bottom: 0; }
.help-prose ol > li > :last-child { margin-bottom: 0; }

/* Callouts: > [!NOTE], > [!TIP], > [!WARNING]. */
.help-callout {
  margin: 24px 0; padding: 14px 16px 14px 46px; position: relative;
  border: 1px solid; border-radius: 12px; font-size: 15px; line-height: 1.6;
}
.help-callout::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--help-callout-icon) center / contain no-repeat; mask: var(--help-callout-icon) center / contain no-repeat;
}
.help-callout > :last-child { margin-bottom: 0; }
.help-callout p { margin: 0 0 8px; }
.help-callout-title { margin: 0 0 2px !important; font-weight: 600; color: var(--help-text); }
.help-callout--note {
  background: var(--help-note-bg); border-color: var(--help-note-border); color: var(--help-note-title);
  --help-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11.25 11.25.04-.02a.75.75 0 0 1 1.07.85l-.71 2.84a.75.75 0 0 0 1.06.85l.04-.02M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.01v.01H12V8.25Z'/%3E%3C/svg%3E");
}
.help-callout--tip {
  background: var(--help-tip-bg); border-color: var(--help-tip-border); color: var(--help-tip-title);
  --help-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 18v-5.25m0 0a6 6 0 0 0 1.5-.19m-1.5.19a6 6 0 0 1-1.5-.19m3.75 7.48a12 12 0 0 1-4.5 0m3.75 2.38a14.4 14.4 0 0 1-3 0M14.25 18v-.19c0-.98.66-1.82 1.51-2.32a7.5 7.5 0 1 0-7.52 0c.85.5 1.51 1.34 1.51 2.32V18'/%3E%3C/svg%3E");
}
.help-callout--warning {
  background: var(--help-warning-bg); border-color: var(--help-warning-border); color: var(--help-warning-title);
  --help-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v3.75m-9.3 3.38c-.87 1.5.21 3.37 1.95 3.37h14.7c1.74 0 2.82-1.87 1.95-3.37L13.95 3.38c-.87-1.5-3.03-1.5-3.9 0L2.7 16.13ZM12 15.75h.01v.01H12v-.01Z'/%3E%3C/svg%3E");
}
.help-callout--note .help-callout-title { color: var(--help-note-title); }
.help-callout--tip .help-callout-title { color: var(--help-tip-title); }
.help-callout--warning .help-callout-title { color: var(--help-warning-title); }
.help-callout > :not(.help-callout-title) { color: var(--help-text-body); }
.help-callout strong { color: var(--help-text); }
.help-prose .help-callout--note a { color: var(--help-link-hover); }

/* Figures with click-to-zoom. */
.help-figure { margin: 28px 0; }
.help-zoom { display: block; width: 100%; padding: 0; border-radius: 12px; cursor: zoom-in; }
.help-figure img {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; margin-inline: auto;
  border: 1px solid var(--help-border); border-radius: 12px;
  background: var(--help-surface-2); filter: var(--help-shot-filter);
}
.help-root .help-zoom:focus-visible { outline: none; }
.help-zoom:focus-visible img { outline: 2px solid var(--help-focus); outline-offset: 2px; }
.help-figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--help-text-muted); text-align: center; text-wrap: pretty; }

/* Tables and code. */
.help-prose .ks-table {
  margin: 24px 0; overflow-x: auto; border: 1px solid var(--help-border); border-radius: 12px;
  /* A shadow on the right edge while more columns are hidden; the cover scrolls over it at the end. */
  background:
    linear-gradient(to left, var(--help-bg) 30%, transparent) right / 24px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--help-text) 14%, transparent), transparent) right / 10px 100% no-repeat scroll;
}
.help-prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.help-prose th, .help-prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--help-border); }
.help-prose th { background: var(--help-bg-subtle); color: var(--help-text); font-weight: 600; white-space: nowrap; }
.help-prose tr:last-child td { border-bottom: 0; }
.help-prose td { font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  /* Two and three column tables fit a 390px phone; only four or more columns scroll sideways. */
  .help-prose th, .help-prose td { min-width: 0; padding: 10px 12px; }
  .help-prose :is(th, td):first-child { min-width: 104px; }
  .help-prose table:has(th:nth-child(4)) :is(th, td) { min-width: 136px; }
  /* The row label stays put while the other columns scroll. */
  .help-prose th:first-child, .help-prose td:first-child { position: sticky; left: 0; z-index: 1; background: var(--help-bg); }
  .help-prose th:first-child { background: var(--help-bg-subtle); }
}
.help-prose code {
  padding: 2px 6px; border-radius: 6px; background: var(--help-surface-2); color: var(--help-text);
  font: 0.875em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere;
}
.help-prose pre {
  position: relative; margin: 20px 0; padding: 14px 16px; overflow-x: auto;
  border: 1px solid var(--help-border); border-radius: 12px; background: var(--help-bg-subtle);
}
.help-prose pre code { padding: 0; background: none; font-size: 14px; line-height: 1.6; overflow-wrap: normal; white-space: pre; }
.help-js .help-prose pre { padding-right: 92px; }
.help-pre-copy {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 4px 10px; border: 1px solid var(--help-border-strong); border-radius: 8px;
  background: var(--help-surface); color: var(--help-text-muted); font-size: 13px; font-weight: 500; cursor: pointer;
}
.help-pre-copy:hover { color: var(--help-text); background: var(--help-surface-2); }

/* ---------- End of article ---------- */
.help-trial-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 48px; padding: 20px;
  border: 1px solid var(--help-border); border-radius: var(--help-radius-lg); background: var(--help-bg-subtle);
}
.help-trial-card-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: var(--help-surface); border: 1px solid var(--help-border);
}
.help-trial-card-mark img { width: 26px; height: 26px; }
.help-trial-card-body { flex: 1 1 200px; min-width: 0; }
.help-trial-card-title { margin: 0 0 2px; color: var(--help-text); font-size: 16px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.help-trial-card-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--help-text-muted); }
@media (max-width: 479px) {
  .help-trial-card .help-button { width: 100%; min-height: 44px; }
}

.help-endcard {
  display: grid; gap: 20px; margin-top: 48px; padding: 20px;
  border: 1px solid var(--help-border); border-radius: var(--help-radius-lg); background: var(--help-surface);
}
@media (min-width: 640px) { .help-endcard { padding: 20px 24px; } }
.help-feedback-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.help-feedback-question, .help-still-title { margin: 0; color: var(--help-text); font-size: 15px; font-weight: 600; }
.help-feedback-buttons { display: flex; gap: 8px; }
.help-feedback-buttons .help-button { min-width: 72px; }
.help-feedback-buttons .help-button[aria-pressed="true"]:disabled {
  opacity: 1; border-color: var(--help-primary); background: var(--help-primary-soft); color: var(--help-primary-soft-text) !important;
}
.help-feedback-reveal { display: grid; grid-template-rows: 0fr; }
.help-feedback-reveal.is-open { grid-template-rows: 1fr; }
.help-feedback-reveal-inner { min-height: 0; overflow: hidden; }
.help-feedback-form { padding: 12px 2px 2px; }
.help-feedback-form fieldset { margin: 0 0 16px; padding: 0; border: 0; }
.help-feedback-form legend { margin-bottom: 10px; color: var(--help-text); font-size: 15px; font-weight: 600; }
.help-feedback-reasons { display: grid; gap: 8px; }
@media (min-width: 640px) { .help-feedback-reasons { grid-template-columns: 1fr 1fr; } }
.help-feedback-reason {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--help-border-strong); border-radius: 10px; color: var(--help-text-body);
  font-size: 14px; line-height: 1.4; cursor: pointer;
}
.help-feedback-reason:hover { border-color: var(--help-text-subtle); }
.help-feedback-reason:has(input:checked) { border-color: var(--help-primary); background: var(--help-primary-soft); color: var(--help-text); }
.help-feedback-reason input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--help-primary); }
.help-feedback-comment-label { display: block; margin-bottom: 6px; color: var(--help-text); font-size: 14px; font-weight: 500; }
.help-feedback-form textarea {
  display: block; width: 100%; min-height: 88px; padding: 10px 12px; resize: vertical;
  border: 1px solid var(--help-border-strong); border-radius: 10px; background: var(--help-bg);
  color: var(--help-text); font: inherit; font-size: 15px; line-height: 1.5;
}
.help-feedback-form textarea:focus-visible { outline: 2px solid var(--help-focus); outline-offset: 0; border-color: transparent; }
.help-feedback-form .help-feedback-buttons { margin-top: 14px; }
.help-feedback-note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--help-text-body); font-size: 15px; }
.help-feedback-note .help-icon { width: 18px; height: 18px; color: var(--help-success); }
.help-feedback-note--error { margin-top: 12px; color: var(--help-danger); font-size: 14px; }
.help-still { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 2px 10px; font-size: 15px; }
.help-still > .help-icon { width: 20px; height: 20px; color: var(--help-text-subtle); }
.help-still p { margin: 0; }
.help-still-text { grid-column: 2; color: var(--help-text-muted); }
.help-still-text a { font-weight: 500; }

/* Touch: 44px tap targets (spec 4.8). The header CTA keeps its 36px look and grows its hit area. */
@media (max-width: 639px), (pointer: coarse) {
  .help-feedback-buttons .help-button, .help-page-actions .help-button { min-height: 44px; }
  .help-page-actions-toggle { min-width: 44px; }
  .help-header-cta .help-button { position: relative; }
  .help-header-cta .help-button::after { content: ""; position: absolute; inset: -4px 0; }
}

.help-related { margin-top: 48px; }
.help-related-title { margin: 0 0 12px; font-size: 18px; line-height: 1.4; font-weight: 600; }

.help-pager { display: grid; gap: 12px; margin-top: 48px; }
@media (min-width: 640px) { .help-pager { grid-template-columns: 1fr 1fr; gap: 16px; } }
.help-pager-link {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 76px;
  border: 1px solid var(--help-border); border-radius: 12px; background: var(--help-surface);
}
.help-pager-link:hover { border-color: var(--help-border-strong); background: var(--help-bg-subtle); }
.help-pager-link--next { grid-column: -2; text-align: right; align-items: flex-end; }
.help-pager-label { display: inline-flex; align-items: center; gap: 6px; color: var(--help-text-muted); font-size: 13px; line-height: 18px; }
.help-pager-label .help-icon { width: 14px; height: 14px; }
.help-pager-title { color: var(--help-text); font-size: 15px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.help-pager-link:hover .help-pager-title { color: var(--help-link); }

/* ---------- Link lists (popular, related, suggested) ---------- */
.help-links { display: grid; gap: 8px; }
.help-links--two { gap: 8px 16px; }
@media (min-width: 768px) { .help-links--two { grid-template-columns: 1fr 1fr; } }
.help-links a {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--help-border); border-radius: 12px; background: var(--help-surface);
  color: var(--help-text) !important; font-size: 15px; font-weight: 500; line-height: 1.4;
}
.help-links a:hover { border-color: var(--help-border-strong); background: var(--help-bg-subtle); }
.help-links a > .help-icon { width: 18px; height: 18px; color: var(--help-text-subtle); }
.help-links a > .help-links-chevron { margin-left: auto; width: 16px; height: 16px; }
.help-links a:hover > .help-links-chevron { color: var(--help-link); }
.help-links-text { min-width: 0; text-wrap: pretty; }

/* ---------- Home ---------- */
.help-hero { position: relative; padding: 48px 0 8px; text-align: center; isolation: isolate; }
@media (min-width: 768px) { .help-hero { padding-top: 80px; } }
.help-hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -120px; width: min(1100px, 140vw); height: 480px;
  transform: translateX(-50%); background: var(--help-gradient); opacity: var(--help-glow-opacity);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
  pointer-events: none;
}
/* Fine noise over the glow hides the banding rings a faint gradient shows in 8-bit colour. */
.help-hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -120px; width: min(1100px, 140vw); height: 480px;
  transform: translateX(-50%); opacity: 0.035; pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent);
  mask-image: radial-gradient(closest-side, #000 80%, transparent);
}
.help-hero-inner { max-width: 720px; }
.help-hero-title { margin: 0 0 12px; font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; }
@media (min-width: 768px) { .help-hero-title { font-size: 44px; line-height: 1.1; } }
.help-hero-text { margin: 0 auto 28px; max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--help-text-muted); }
@media (min-width: 768px) { .help-hero-text { font-size: 18px; } }
.help-hero .help-pills { justify-content: center; margin-top: 20px; }

.help-search-form {
  position: relative; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 16px;
  border: 1px solid var(--help-border-strong); border-radius: 14px; background: var(--help-surface);
  color: var(--help-text-subtle); box-shadow: var(--help-shadow-card);
}
.help-search-form:focus-within { border-color: var(--help-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--help-primary) 20%, transparent); }
.help-search-form > .help-icon { width: 20px; height: 20px; }
.help-search-input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none;
  color: var(--help-text); font: inherit; font-size: 16px;
}
.help-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.help-root .help-search-input:focus-visible, .help-root .help-palette-input:focus-visible { outline: none; }
.help-search-form .help-button { min-height: 40px; }
.help-search-form kbd { margin-right: 8px; }
@media (max-width: 639px), (hover: none) { .help-search-form kbd { display: none; } }
.help-search-form--hero { height: 60px; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px -12px rgba(17, 24, 39, 0.12); }
.help-search-form--hero .help-search-input { font-size: 17px; cursor: text; }

.help-section { padding-top: 64px; }
@media (max-width: 639px) { .help-section { padding-top: 48px; } }
.help-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.help-section-title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 768px) { .help-section-title { font-size: 24px; } }
.help-section-head .help-section-title { margin: 0; }
.help-section > .help-container > .help-section-title { margin-bottom: 20px; }

.help-start-steps { display: grid; gap: 16px; counter-reset: help-start; }
@media (min-width: 768px) { .help-start-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.help-start-step { counter-increment: help-start; }
.help-start-step a {
  display: flex; flex-direction: column; height: 100%; padding: 20px;
  border: 1px solid var(--help-border); border-radius: var(--help-radius-lg); background: var(--help-surface);
  box-shadow: var(--help-shadow-card);
}
.help-start-step a::before {
  content: counter(help-start); display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-bottom: 14px; border-radius: 999px;
  background: var(--help-primary); color: #ffffff; font-size: 14px; font-weight: 600;
}
.help-start-step a:hover { border-color: var(--help-border-strong); background: var(--help-bg-subtle); }
.help-start-step-title { display: flex; align-items: center; gap: 8px; color: var(--help-text); font-size: 16px; font-weight: 600; line-height: 1.4; }
.help-start-step-text { margin-top: 4px; color: var(--help-text-muted); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.help-start-step .help-chip { align-self: flex-start; margin-top: 10px; }

.help-cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .help-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .help-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.help-card {
  position: relative; display: flex; flex-direction: column; padding: 20px;
  border: 1px solid var(--help-border); border-radius: var(--help-radius-lg); background: var(--help-surface);
  box-shadow: var(--help-shadow-card);
}
@media (max-width: 639px) {
  .help-card, .help-start-step a { padding: 16px; }
  .help-cards:not(.help-cards--compact) .help-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .help-cards:not(.help-cards--compact) .help-card-icon { grid-row: span 3; margin: 0; }
  .help-card-text { margin-bottom: 8px; }
  .help-start-step a { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; }
  .help-start-step a::before { grid-row: span 3; margin: 0; }
}
.help-card:hover { border-color: var(--help-border-strong); background: var(--help-bg-subtle); }
.help-card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 10px; background: var(--help-primary-soft); color: var(--help-primary-soft-text);
}
.help-card-icon .help-icon { width: 22px; height: 22px; }
.help-card-title { margin: 0 0 4px; font-size: 16px; line-height: 1.4; font-weight: 600; }
.help-card-title a { color: var(--help-text) !important; }
/* The title link covers the whole card. */
.help-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.help-card:hover .help-card-title a { color: var(--help-link) !important; }
.help-card:has(a:focus-visible) { outline: 2px solid var(--help-focus); outline-offset: 2px; }
.help-card-title a:focus-visible { outline: none; }
.help-card-text { margin: 0 0 14px; color: var(--help-text-muted); font-size: 14px; line-height: 1.55; }
.help-card-count { margin: auto 0 0; color: var(--help-text-subtle); font-size: 13px; line-height: 18px; }
.help-cards--compact { gap: 8px; }
.help-cards--compact .help-card { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.help-cards--compact .help-card-icon { margin: 0; width: 36px; height: 36px; flex: none; }
.help-cards--compact .help-card-title { margin: 0; font-size: 15px; }
.help-cards--compact .help-card-count { margin: 0 0 0 auto; white-space: nowrap; }
@media (min-width: 640px) { .help-narrow .help-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.help-mcp-band {
  display: grid; gap: 16px; padding: 28px 24px;
  border: 1px solid transparent; border-radius: var(--help-radius-lg);
  background: linear-gradient(var(--help-surface), var(--help-surface)) padding-box, var(--help-gradient) border-box;
}
@media (min-width: 768px) {
  .help-mcp-band { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px 32px; }
}
.help-mcp-band .help-card-icon { margin: 0; }
.help-mcp-band h2 { margin: 0 0 6px; }
.help-mcp-band p { margin: 0; color: var(--help-text-muted); font-size: 15px; line-height: 1.6; max-width: 40em; }

.help-contact {
  display: grid; gap: 20px; padding: 28px 24px; border-radius: var(--help-radius-lg); background: var(--help-bg-subtle);
  border: 1px solid var(--help-border);
}
@media (min-width: 768px) { .help-contact { grid-template-columns: 1fr auto; align-items: center; padding: 32px; } }
.help-contact h2 { margin: 0 0 6px; }
.help-contact p { margin: 0; color: var(--help-text-muted); font-size: 15px; line-height: 1.6; max-width: 36em; }
@media (max-width: 479px) {
  .help-contact .help-button-row .help-button, .help-mcp-band .help-button-row .help-button { flex: 1 1 100%; min-height: 44px; }
}

/* ---------- Category list and search results ---------- */
.help-list { border: 1px solid var(--help-border); border-radius: var(--help-radius-lg); background: var(--help-surface); overflow: hidden; }
.help-list > li { position: relative; border-top: 1px solid var(--help-border); }
.help-list > li:first-child { border-top: 0; }
.help-list > li:hover { background: var(--help-bg-subtle); }
.help-list > li:has(a:focus-visible) { outline: 2px solid var(--help-focus); outline-offset: -2px; border-radius: 4px; }
.help-article-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 18px; }
.help-article-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.help-article-row-link { color: var(--help-text) !important; font-size: 16px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.help-article-row-link::after { content: ""; position: absolute; inset: 0; }
.help-article-row-link:focus-visible { outline: none; }
.help-list > li:hover .help-article-row-link { color: var(--help-link) !important; }
.help-article-row .help-badge, .help-article-row .help-chip { position: relative; z-index: 1; }
.help-article-row-summary { grid-column: 1; margin: 0; color: var(--help-text-muted); font-size: 14px; line-height: 1.55; }
.help-article-row-chevron { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--help-text-subtle); }
.help-article-row-chevron .help-icon { width: 18px; height: 18px; }
.help-list > li:hover .help-article-row-chevron { color: var(--help-link); }
.help-list-count { margin: 0 0 12px; color: var(--help-text-subtle); font-size: 14px; }

.help-narrow .help-search-form { margin: 0 0 20px; }
.help-search-status { margin: 0 0 8px; color: var(--help-text-muted); font-size: 15px; }
.help-search-group { margin-top: 28px; }
.help-search-group-title {
  margin: 0 0 10px; color: var(--help-text-muted); font-size: 12px; font-weight: 600; line-height: 16px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.help-search-hit a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; color: inherit !important; }
.help-search-hit a::after { content: ""; position: absolute; inset: 0; }
.help-search-hit a:focus-visible { outline: none; }
.help-search-hit-title { color: var(--help-text); font-size: 15px; font-weight: 600; line-height: 1.45; }
.help-list > li:hover .help-search-hit-title { color: var(--help-link); }
.help-search-hit-sep { color: var(--help-text-subtle); font-weight: 400; margin: 0 2px; }
.help-search-hit-crumb { color: var(--help-text-subtle); font-size: 12px; line-height: 18px; }
.help-search-hit-snippet { color: var(--help-text-muted); font-size: 14px; line-height: 1.55; }
.help-search-empty { margin-top: 8px; padding: 32px 24px; border: 1px solid var(--help-border); border-radius: var(--help-radius-lg); text-align: center; }
.help-search-empty .help-search-status { margin-bottom: 16px; color: var(--help-text); font-size: 16px; font-weight: 600; }
.help-search-empty .help-pills { justify-content: center; margin-bottom: 20px; }
.help-block-title { margin: 40px 0 14px; font-size: 18px; line-height: 1.4; font-weight: 600; }

/* ---------- Palette ---------- */
.help-palette { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: center; align-items: flex-start; padding: 8px; }
@media (min-width: 640px) { .help-palette { padding: 12vh 24px 24px; } }
.help-palette-overlay { position: absolute; inset: 0; background: var(--help-overlay); opacity: 0; }
.help-palette-panel {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 640px;
  max-height: calc(100dvh - 16px); overflow: hidden;
  background: var(--help-surface); border: 1px solid var(--help-border); border-radius: var(--help-radius-lg);
  box-shadow: var(--help-shadow-pop); opacity: 0; transform: scale(0.98) translateY(-4px);
}
@media (min-width: 640px) { .help-palette-panel { max-height: min(600px, 76vh); } }
.help-palette.is-open .help-palette-overlay { opacity: 1; }
.help-palette.is-open .help-palette-panel { opacity: 1; transform: none; }
.help-palette-field { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--help-border); color: var(--help-text-subtle); }
.help-palette-field > .help-icon { width: 20px; height: 20px; }
.help-palette-input {
  flex: 1; min-width: 0; height: 56px; border: 0; background: none; outline: none;
  color: var(--help-text); font: inherit; font-size: 17px;
}
.help-palette-close { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 8px; color: var(--help-text-muted); cursor: pointer; }
.help-palette-close:hover { background: var(--help-surface-2); }
.help-palette-close .help-icon { width: 20px; height: 20px; }
.help-palette-close kbd { display: none; }
@media (min-width: 640px) {
  .help-palette-close { min-width: 0; height: auto; padding: 4px; }
  .help-palette-close .help-icon { display: none; }
  .help-palette-close kbd { display: inline-flex; }
}
.help-palette-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px; scroll-padding: 8px; }
.help-palette-group + .help-palette-group { margin-top: 8px; }
.help-palette-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 6px 10px 4px;
  color: var(--help-text-subtle); font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase;
}
.help-palette-clear { padding: 2px 6px; border-radius: 6px; color: var(--help-text-muted); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; cursor: pointer; }
.help-palette-clear:hover { color: var(--help-text); background: var(--help-surface-2); }
.help-palette-option {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 9px 10px; border-radius: 10px;
  color: var(--help-text-body) !important; scroll-margin: 8px; cursor: pointer;
}
.help-palette-option[aria-selected="true"] { background: var(--help-selected-bg); }
.help-palette-option-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px;
  border-radius: 8px; border: 1px solid var(--help-border); background: var(--help-surface); color: var(--help-text-subtle);
}
.help-palette-option-icon .help-icon { width: 18px; height: 18px; }
.help-palette-option[aria-selected="true"] .help-palette-option-icon { color: var(--help-primary-soft-text); border-color: transparent; }
.help-palette-option-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.help-palette-option-top { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.help-palette-option-title { flex: 1; min-width: 0; color: var(--help-text); font-size: 15px; font-weight: 500; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-palette-option[aria-selected="true"] .help-palette-option-title { color: var(--help-primary-soft-text); }
.help-palette-option-sep { margin: 0 4px; color: var(--help-text-subtle); font-weight: 400; }
.help-palette-option-crumb { display: none; flex: none; color: var(--help-text-subtle); font-size: 12px; line-height: 16px; white-space: nowrap; }
@media (min-width: 640px) { .help-palette-option-crumb { display: inline; } }
.help-palette-option-snippet { color: var(--help-text-muted); font-size: 13px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-palette-option-enter { flex: none; visibility: hidden; color: var(--help-text-subtle); font-size: 14px; }
.help-palette-option[aria-selected="true"] .help-palette-option-enter { visibility: visible; color: var(--help-primary-soft-text); }
.help-palette-option .help-chip { margin-left: 6px; padding: 0 6px; font-size: 10px; line-height: 16px; }
@media (max-width: 639px), (hover: none) {
  .help-palette-option-title { white-space: normal; text-wrap: pretty; }
  .help-palette-option-enter { display: none; }
}
.help-palette-state { padding: 32px 16px; text-align: center; color: var(--help-text-muted); font-size: 15px; }
.help-palette-state-title { margin: 0 0 14px; color: var(--help-text); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.help-palette-state .help-pills { justify-content: center; margin-bottom: 18px; }
.help-palette-state .help-button-row { justify-content: center; }
.help-palette-footer {
  display: none; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--help-border);
  background: var(--help-bg-subtle); color: var(--help-text-subtle); font-size: 12px; line-height: 16px;
}
.help-palette-footer span { display: inline-flex; align-items: center; gap: 6px; }
.help-palette-footer kbd { min-width: 20px; height: 20px; padding: 0 5px; font-size: 11px; }
@media (min-width: 640px) and (hover: hover) { .help-palette-footer { display: flex; } }

/* ---------- Toasts and zoom ---------- */
.help-toasts {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transform: translateX(-50%); pointer-events: none;
}
.help-toast {
  padding: 9px 16px; border-radius: 10px; background: #111827; color: #ffffff;
  font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; box-shadow: var(--help-shadow-pop);
}
:root[data-theme="dark"] .help-toast { background: #f9fafb; color: #111827; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .help-toast { background: #f9fafb; color: #111827; } }
.help-zoom-dialog {
  max-width: min(1400px, 96vw); max-height: 94vh; margin: auto; padding: 0; overflow: visible;
  border: 0; background: transparent; opacity: 0; transform: scale(0.96);
}
.help-zoom-dialog.is-open { opacity: 1; transform: none; }
.help-zoom-dialog::backdrop { background: rgba(3, 7, 18, 0.82); }
.help-zoom-dialog img { display: block; max-width: min(1400px, 96vw); max-height: 86vh; width: auto; height: auto; border-radius: 12px; }
.help-zoom-close {
  display: flex; align-items: center; gap: 6px; margin: 0 0 10px auto; min-height: 36px; padding: 6px 12px;
  border-radius: 8px; background: rgba(255, 255, 255, 0.12); color: #ffffff; font-size: 14px; font-weight: 500; cursor: pointer;
}
.help-zoom-close:hover { background: rgba(255, 255, 255, 0.2); }
.help-zoom-close .help-icon { width: 18px; height: 18px; }

/* ---------- Draft banner ---------- */
.help-draft-banner {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--help-draft-border); background: var(--help-draft-bg); color: var(--help-draft-text);
  font-size: 14px; line-height: 1.5;
}
.help-draft-banner .help-chip { flex: none; }

/* ---------- Footer: gray-950 in both themes ---------- */
.help-footer { padding: 48px 0 28px; background: #030712; color: #9ca3af; font-size: 14px; line-height: 20px; }
.help-footer a { color: #d1d5db !important; }
.help-footer a:hover { color: #ffffff !important; }
.help-footer-columns { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .help-footer-columns { grid-template-columns: 2fr 1fr 1fr; gap: 32px; } }
.help-footer-column--topics { grid-column: 1 / -1; }
@media (min-width: 768px) { .help-footer-column--topics { grid-column: auto; } }
.help-footer-heading { margin: 0 0 14px; color: #ffffff; font-size: 14px; font-weight: 600; }
.help-footer ul { display: grid; gap: 10px; }
.help-footer-column--topics ul { display: block; columns: 2; column-gap: 24px; }
.help-footer-column--topics li { break-inside: avoid; margin-bottom: 10px; }
.help-footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 48px; color: #9ca3af;
}
.help-footer-bottom img { width: 20px; height: 20px; }
.help-footer-legal { display: inline-flex; align-items: center; gap: 10px; }
.help-footer-bottom nav { display: flex; gap: 20px; margin-left: auto; }
@media (max-width: 639px) { .help-footer-bottom nav { margin-left: 0; width: 100%; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 150ms; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  html { scroll-behavior: smooth; }
  .help-root a, .help-button, .help-pill, .help-icon-button, .help-menu > *, .help-search-trigger,
  .help-card, .help-list > li, .help-links a, .help-pager-link, .help-start-step a, .help-segmented button,
  .help-feedback-reason, .help-sidebar-group summary, .help-palette-close, .help-pre-copy {
    transition: color 150ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  }
  .help-header { transition: border-color 150ms ease, background-color 150ms ease; }
  .help-sidebar-chevron, .help-toc-fold summary .help-icon { transition: transform 150ms cubic-bezier(0.2, 0, 0, 1); }
  .help-drawer-panel { transition: transform 200ms cubic-bezier(0.2, 0, 0, 1); }
  .help-drawer-overlay { transition: opacity 150ms ease-out; }
  .help-palette-overlay { transition: opacity 100ms ease-in; }
  .help-palette-panel { transition: opacity 100ms ease-in, transform 100ms ease-in; }
  .help-palette.is-open .help-palette-overlay { transition: opacity 150ms ease-out; }
  .help-palette.is-open .help-palette-panel { transition: opacity 150ms cubic-bezier(0.2, 0, 0, 1), transform 150ms cubic-bezier(0.2, 0, 0, 1); }
  .help-toc-indicator { transition: transform 200ms cubic-bezier(0.2, 0, 0, 1), height 200ms cubic-bezier(0.2, 0, 0, 1), opacity 150ms ease; }
  .help-copy-swap .help-icon { transition: opacity 150ms ease, transform 150ms cubic-bezier(0.2, 0, 0, 1); }
  .help-feedback-reveal { transition: grid-template-rows 200ms cubic-bezier(0.2, 0, 0, 1); }
  .help-zoom-dialog { transition: opacity 180ms ease, transform 180ms cubic-bezier(0.2, 0, 0, 1); }
  .help-toast { animation: help-toast-in 150ms cubic-bezier(0.2, 0, 0, 1); }
  @keyframes help-toast-in { from { opacity: 0; transform: translateY(4px); } }
}
@media (prefers-reduced-motion: reduce) {
  .help-palette-panel { transform: none; }
  .help-zoom-dialog { transform: none; }
}
.help-no-transition *, .help-no-transition *::before, .help-no-transition *::after { transition: none !important; }
