/* Sendorr Help Center — canonical token-aligned surfaces */
:root {
  color-scheme: dark;
  --sendorr-bg: #090909;
  --sendorr-bg-soft: #111111;
  --sendorr-surface: #151515;
  --sendorr-surface-hover: #1a1a1a;
  --sendorr-surface-active: #1f1f1f;
  --sendorr-elevated: #222222;
  --sendorr-ink: #f7f7f7;
  --sendorr-ink-secondary: #d4d4d4;
  --sendorr-muted: #a3a3a3;
  --sendorr-muted-2: #7a7a7a;
  --sendorr-border: color-mix(in srgb, #f7f7f7 12%, transparent);
  --sendorr-border-strong: color-mix(in srgb, #f7f7f7 18%, transparent);
  --sendorr-btn: #ffffff;
  --sendorr-btn-text: #090909;
  --sendorr-btn-hover: #e8e8e8;
  --sendorr-warning: #ffac30;
  --sendorr-danger: #f97066;
  --sendorr-radius-xs: 8px;
  --sendorr-radius-control: 10px;
  --sendorr-radius-btn: 12px;
  --sendorr-radius-menu: 14px;
  --sendorr-radius-card: 16px;
  --sendorr-radius-shell: 20px;
  --sendorr-space-2: 8px;
  --sendorr-space-3: 12px;
  --sendorr-space-4: 16px;
  --sendorr-space-5: 20px;
  --sendorr-space-6: 24px;
  --sendorr-space-7: 32px;
  --sendorr-motion-hover: 150ms;
  --sendorr-motion: 200ms;
  --sendorr-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --sendorr-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  --sendorr-menu-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --help-header-h: 64px;
  --help-font: "Segoe UI", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --help-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --help-max: 1180px;
  --help-prose: 720px;
  --help-scrollbar: rgba(247, 247, 247, 0.28);
}

html[data-theme='light'],
html[data-resolved-theme='light'][data-theme='light'] {
  color-scheme: light;
  --sendorr-bg: #f4f4f5;
  --sendorr-bg-soft: #ececef;
  --sendorr-surface: #ffffff;
  --sendorr-surface-hover: #f7f7f7;
  --sendorr-surface-active: #f0f0f2;
  --sendorr-elevated: #ffffff;
  --sendorr-ink: #090909;
  --sendorr-ink-secondary: #333333;
  --sendorr-muted: #676767;
  --sendorr-muted-2: #8a8a8a;
  --sendorr-border: color-mix(in srgb, #090909 10%, transparent);
  --sendorr-border-strong: color-mix(in srgb, #090909 16%, transparent);
  --sendorr-btn: #0a0a0a;
  --sendorr-btn-text: #ffffff;
  --sendorr-btn-hover: #222222;
  --sendorr-shadow-sm: 0 1px 2px rgba(9, 9, 9, 0.04);
  --sendorr-shadow: 0 16px 48px rgba(9, 9, 9, 0.08);
  --sendorr-menu-shadow: 0 10px 36px rgba(9, 9, 9, 0.12);
  --help-scrollbar: rgba(9, 9, 9, 0.28);
}

@media (prefers-color-scheme: light) {
  html[data-theme='system'] {
    color-scheme: light;
    --sendorr-bg: #f4f4f5;
    --sendorr-bg-soft: #ececef;
    --sendorr-surface: #ffffff;
    --sendorr-surface-hover: #f7f7f7;
    --sendorr-surface-active: #f0f0f2;
    --sendorr-elevated: #ffffff;
    --sendorr-ink: #090909;
    --sendorr-ink-secondary: #333333;
    --sendorr-muted: #676767;
    --sendorr-muted-2: #8a8a8a;
    --sendorr-border: color-mix(in srgb, #090909 10%, transparent);
    --sendorr-border-strong: color-mix(in srgb, #090909 16%, transparent);
    --sendorr-btn: #0a0a0a;
    --sendorr-btn-text: #ffffff;
    --sendorr-btn-hover: #222222;
    --sendorr-shadow-sm: 0 1px 2px rgba(9, 9, 9, 0.04);
    --sendorr-shadow: 0 16px 48px rgba(9, 9, 9, 0.08);
    --sendorr-menu-shadow: 0 10px 36px rgba(9, 9, 9, 0.12);
    --help-scrollbar: rgba(9, 9, 9, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--help-header-h) + 16px);
  background: var(--sendorr-bg);
}
body.help-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--help-font);
  background:
    radial-gradient(1200px 480px at 12% -10%, color-mix(in srgb, var(--sendorr-ink) 6%, transparent), transparent 55%),
    var(--sendorr-bg);
  color: var(--sendorr-ink);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--sendorr-motion-hover), color var(--sendorr-motion-hover);
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.sendorr-scrollbar,
.help-sidenav,
.help-toc,
.help-search__results {
  scrollbar-width: thin;
  scrollbar-color: var(--help-scrollbar) transparent;
}

.sr-only, .help-sr-live:empty {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.help-sr-live:not(:empty) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.help-skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--sendorr-btn); color: var(--sendorr-btn-text);
  padding: 8px 12px; border-radius: var(--sendorr-radius-control);
}
.help-skip:focus { left: 12px; top: 12px; }

/* Header */
.help-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--help-header-h);
  background: color-mix(in srgb, var(--sendorr-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sendorr-border);
}
.help-header__inner {
  max-width: var(--help-max); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: var(--sendorr-space-3);
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
.help-header__brand-block {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.help-brand {
  display: inline-flex; align-items: center; text-decoration: none;
}
.help-brand__logo,
.help-footer__logo {
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.help-brand__logo { width: 112px; height: 28px; }
html[data-theme='light'] .help-brand__logo,
html[data-theme='light'] .help-footer__logo,
html[data-resolved-theme='light'] .help-brand__logo,
html[data-resolved-theme='light'] .help-footer__logo {
  filter: none;
}
@media (prefers-color-scheme: light) {
  html[data-theme='system']:not([data-resolved-theme='dark']) .help-brand__logo,
  html[data-theme='system']:not([data-resolved-theme='dark']) .help-footer__logo {
    filter: none;
  }
}
.help-header__product {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--sendorr-border);
  background: color-mix(in srgb, var(--sendorr-surface) 70%, transparent);
  color: var(--sendorr-muted); text-decoration: none; font-size: 12px; font-weight: 600;
  letter-spacing: 0.01em;
}
.help-header__product:hover { color: var(--sendorr-ink); border-color: var(--sendorr-border-strong); }

.help-search-trigger {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px 0 14px;
  border-radius: var(--sendorr-radius-control);
  border: 1px solid var(--sendorr-border);
  background: var(--sendorr-surface);
  color: var(--sendorr-muted); cursor: pointer;
  box-shadow: var(--sendorr-shadow-sm);
  transition: border-color var(--sendorr-motion-hover), background var(--sendorr-motion-hover), box-shadow var(--sendorr-motion-hover);
}
.help-search-trigger:hover,
.help-search-trigger:focus-visible {
  border-color: var(--sendorr-border-strong);
  background: var(--sendorr-surface-hover);
  outline: none;
}
.help-search-trigger__label { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.help-search-trigger kbd {
  font: 11px var(--help-mono); color: var(--sendorr-muted-2);
  border: 1px solid var(--sendorr-border); border-radius: 6px; padding: 2px 6px;
}

/* Homepage: hero search primary; compact header search until scroll */
.help-page--home:not(.is-scrolled) .help-search-trigger {
  flex: 0 0 auto; width: 40px; padding: 0; justify-content: center;
}
.help-page--home:not(.is-scrolled) .help-search-trigger__label,
.help-page--home:not(.is-scrolled) .help-search-trigger kbd { display: none; }

.help-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.help-control {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; min-width: 36px; padding: 0 10px;
  border-radius: var(--sendorr-radius-control);
  border: 1px solid var(--sendorr-border);
  background: var(--sendorr-surface);
  color: var(--sendorr-ink); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background var(--sendorr-motion-hover), border-color var(--sendorr-motion-hover);
}
.help-control:hover { background: var(--sendorr-surface-hover); border-color: var(--sendorr-border-strong); }
.help-control--icon { width: 36px; padding: 0; }
.help-control__label { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.help-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px; border-radius: var(--sendorr-radius-btn);
  text-decoration: none; font-size: 13px; font-weight: 650;
  border: 1px solid transparent; white-space: nowrap;
  transition: background var(--sendorr-motion-hover), filter var(--sendorr-motion-hover);
}
.help-btn--primary { background: var(--sendorr-btn); color: var(--sendorr-btn-text); }
.help-btn--primary:hover { background: var(--sendorr-btn-hover); }
.help-btn--ghost {
  border-color: var(--sendorr-border); background: transparent; color: var(--sendorr-ink);
}
.help-btn--ghost:hover { background: var(--sendorr-surface-hover); }
.help-nav-toggle { display: none; }

.help-menu { position: relative; }
.help-menu__panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 80;
  min-width: 220px; padding: 8px;
  border-radius: var(--sendorr-radius-menu);
  border: 1px solid var(--sendorr-border-strong);
  background: var(--sendorr-elevated);
  box-shadow: var(--sendorr-menu-shadow);
}
.help-menu__panel--appearance { min-width: 280px; }
.help-menu__title {
  padding: 8px 10px 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--sendorr-muted-2);
}
.help-menu__item {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px; border: 0; border-radius: var(--sendorr-radius-control);
  background: transparent; color: var(--sendorr-ink); text-align: left; cursor: pointer;
  font: inherit;
}
.help-menu__item:hover,
.help-menu__item[aria-checked='true'] { background: var(--sendorr-surface-active); }
.help-menu__item--rich { justify-content: flex-start; }
.help-menu__icon { display: inline-flex; width: 20px; flex-shrink: 0; color: var(--sendorr-muted); }
.help-menu__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.help-menu__text strong { font-size: 13px; font-weight: 650; }
.help-menu__text small { color: var(--sendorr-muted); font-size: 12px; }
.help-menu__check { width: 14px; display: inline-flex; color: var(--sendorr-ink); }

.help-tooltip {
  position: fixed; z-index: 120; transform: translateX(-50%);
  padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: var(--sendorr-elevated); color: var(--sendorr-ink);
  border: 1px solid var(--sendorr-border-strong); box-shadow: var(--sendorr-shadow-sm);
  pointer-events: none; white-space: nowrap;
}

/* Shell / nav */
.help-shell {
  max-width: var(--help-max); margin: 0 auto;
  padding: var(--sendorr-space-6) max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left));
  display: grid; grid-template-columns: 248px minmax(0, 1fr) 200px; gap: 28px;
}
.help-page--home .help-shell { grid-template-columns: 248px minmax(0, 1fr); }
.help-page--home .help-toc { display: none; }

.help-sidenav {
  position: sticky; top: calc(var(--help-header-h) + 16px); align-self: start;
  max-height: calc(100vh - var(--help-header-h) - 32px); overflow: auto;
}
.help-sidenav__inner {
  padding: 6px;
  border-radius: var(--sendorr-radius-card);
  background: color-mix(in srgb, var(--sendorr-surface) 72%, transparent);
  border: 1px solid transparent;
}
.help-sidenav__home {
  display: block; padding: 10px 12px; border-radius: var(--sendorr-radius-control);
  text-decoration: none; color: var(--sendorr-muted); font-size: 13px; font-weight: 600;
}
.help-sidenav__home:hover { background: var(--sendorr-surface-hover); color: var(--sendorr-ink); }
.help-nav-group { margin-top: 2px; }
.help-nav-group summary {
  list-style: none; cursor: pointer; padding: 10px 12px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--sendorr-muted-2); text-transform: uppercase;
}
.help-nav-group summary::-webkit-details-marker { display: none; }
.help-nav-group summary a { text-decoration: none; color: inherit; }
.help-nav-group summary a:hover { color: var(--sendorr-ink); }
.help-nav-group ul { list-style: none; margin: 0; padding: 0 0 6px; }
.help-nav-group li a {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px 8px 14px; margin: 0 2px; border-radius: var(--sendorr-radius-control);
  text-decoration: none; color: var(--sendorr-muted); font-size: 13px;
}
.help-nav-link__bar {
  position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: transparent;
}
.help-nav-group li a:hover { background: var(--sendorr-surface-hover); color: var(--sendorr-ink); }
.help-nav-group li a[aria-current='page'] {
  background: var(--sendorr-surface-active); color: var(--sendorr-ink); font-weight: 650;
}
.help-nav-group li a[aria-current='page'] .help-nav-link__bar { background: var(--sendorr-ink); }

.help-main-wrap { min-width: 0; }
.help-breadcrumbs { margin-bottom: 16px; }
.help-breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0;
  color: var(--sendorr-muted); font-size: 13px;
}
.help-breadcrumbs a { color: var(--sendorr-muted); text-decoration: none; }
.help-breadcrumbs a:hover { color: var(--sendorr-ink); }
.help-breadcrumbs__sep { opacity: 0.45; }

.help-toc {
  position: sticky; top: calc(var(--help-header-h) + 16px); align-self: start;
  max-height: calc(100vh - var(--help-header-h) - 32px); overflow: auto;
}
.help-toc__inner {
  padding: 14px;
  border-radius: var(--sendorr-radius-card);
  background: color-mix(in srgb, var(--sendorr-surface) 70%, transparent);
}
.help-toc__title {
  margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--sendorr-muted-2); font-weight: 700;
}
.help-toc ul { list-style: none; margin: 0; padding: 0; }
.help-toc a {
  display: block; padding: 6px 0; text-decoration: none; color: var(--sendorr-muted); font-size: 13px;
  border-left: 2px solid transparent; padding-left: 10px; margin-left: -2px;
}
.help-toc a:hover, .help-toc a.is-active {
  color: var(--sendorr-ink); border-left-color: var(--sendorr-ink);
}
.help-toc__l3 a { padding-left: 20px; }

/* Homepage */
.help-hero {
  position: relative; overflow: hidden;
  padding: 32px 28px;
  border-radius: var(--sendorr-radius-shell);
  background: linear-gradient(165deg, var(--sendorr-surface) 0%, var(--sendorr-bg-soft) 100%);
  border: 1px solid var(--sendorr-border);
  box-shadow: var(--sendorr-shadow-sm);
}
.help-hero__glow {
  position: absolute; inset: auto -20% 40% -20%; height: 180px; pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--sendorr-ink) 8%, transparent), transparent 70%);
}
.help-eyebrow {
  position: relative; margin: 0 0 10px; color: var(--sendorr-muted);
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; font-weight: 750;
}
.help-hero h1 {
  position: relative; margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.08; font-weight: 750;
}
.help-hero__lead {
  position: relative; margin: 0 0 22px; max-width: 40rem;
  color: var(--sendorr-ink-secondary); font-size: 1.05rem;
}
.help-search-hero {
  position: relative; width: 100%; display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 16px; margin-bottom: 12px;
  border-radius: var(--sendorr-radius-btn);
  border: 1px solid var(--sendorr-border-strong);
  background: var(--sendorr-elevated);
  color: var(--sendorr-muted); cursor: pointer; text-align: left; font: inherit;
  box-shadow: var(--sendorr-shadow-sm);
}
.help-search-hero span:nth-child(2) { flex: 1; }
.help-search-hero kbd {
  font: 11px var(--help-mono); border: 1px solid var(--sendorr-border);
  border-radius: 6px; padding: 2px 6px; color: var(--sendorr-muted-2);
}
.help-hero__hint {
  position: relative; margin: 0; color: var(--sendorr-muted-2); font-size: 12px;
}

.help-section { margin-top: 36px; }
.help-section h2 {
  margin: 0 0 14px; font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 700;
}

.help-task-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.help-task-card {
  position: relative; display: grid; gap: 6px; min-height: 96px;
  padding: 16px; border-radius: var(--sendorr-radius-card);
  border: 1px solid var(--sendorr-border); background: var(--sendorr-surface);
  text-decoration: none; transition: border-color var(--sendorr-motion-hover), background var(--sendorr-motion-hover), transform var(--sendorr-motion-hover);
}
.help-task-card:hover {
  border-color: var(--sendorr-border-strong); background: var(--sendorr-surface-hover);
  transform: translateY(-1px);
}
.help-task-card__hint {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--sendorr-muted-2);
}
.help-task-card strong { font-size: 14px; letter-spacing: -0.01em; padding-right: 18px; }
.help-task-card__go {
  position: absolute; right: 14px; bottom: 14px; color: var(--sendorr-muted);
}

.help-category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.help-category-card {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start;
  padding: 18px; border-radius: var(--sendorr-radius-card);
  border: 1px solid var(--sendorr-border); background: var(--sendorr-surface);
  text-decoration: none;
  transition: border-color var(--sendorr-motion-hover), background var(--sendorr-motion-hover), transform var(--sendorr-motion-hover);
}
.help-category-card:hover {
  transform: translateY(-1px); border-color: var(--sendorr-border-strong);
  background: var(--sendorr-surface-hover);
}
.help-category-card__icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--sendorr-radius-btn);
  background: var(--sendorr-surface-active); border: 1px solid var(--sendorr-border);
  font-size: 16px; color: var(--sendorr-ink);
}
.help-category-card__body { min-width: 0; }
.help-category-card h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: -0.01em; }
.help-category-card p { margin: 0 0 8px; color: var(--sendorr-muted); font-size: 13px; }
.help-category-card__meta { color: var(--sendorr-muted-2); font-size: 12px; font-weight: 600; }
.help-category-card__go { color: var(--sendorr-muted); margin-top: 4px; }

.help-link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.help-link-list li {
  display: grid; gap: 4px; padding: 14px 16px;
  border-radius: var(--sendorr-radius-btn);
  border: 1px solid var(--sendorr-border); background: var(--sendorr-surface);
}
.help-link-list a { text-decoration: none; font-weight: 650; }
.help-link-list span { color: var(--sendorr-muted); font-size: 13px; }
.help-support-card {
  padding: 20px; border-radius: var(--sendorr-radius-card);
  border: 1px solid var(--sendorr-border); background: var(--sendorr-bg-soft);
}
.help-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.help-chip {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border-radius: var(--sendorr-radius-btn); border: 1px solid var(--sendorr-border);
  background: var(--sendorr-surface); text-decoration: none; color: var(--sendorr-ink);
  font-size: 14px; cursor: pointer; font: inherit;
}
.help-chip:hover { background: var(--sendorr-surface-hover); border-color: var(--sendorr-border-strong); }

/* Article */
.help-page-header { margin-bottom: 24px; }
.help-page-header h1 {
  margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.03em; font-weight: 750;
}
.help-page-header__desc { margin: 0; color: var(--sendorr-ink-secondary); max-width: 42rem; }
.help-page-header__meta { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.help-kicker { color: var(--sendorr-muted); font-size: 13px; font-weight: 600; }
.help-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; border: 1px solid var(--sendorr-border-strong);
  font-size: 11px; font-weight: 700;
}
.help-meta-row { display: flex; gap: 20px; margin: 16px 0 0; padding: 0; }
.help-meta-row dt { color: var(--sendorr-muted-2); font-size: 12px; }
.help-meta-row dd { margin: 2px 0 0; font-size: 13px; }

.help-prose { max-width: var(--help-prose); font-size: 16px; line-height: 1.7; }
.help-prose > :first-child { margin-top: 0; }
.help-prose h2, .help-prose h3 {
  scroll-margin-top: calc(var(--help-header-h) + 16px); letter-spacing: -0.02em; color: var(--sendorr-ink);
}
.help-prose h2 { margin: 2rem 0 0.8rem; font-size: 1.35rem; line-height: 1.25; }
.help-prose h3 { margin: 1.5rem 0 0.6rem; font-size: 1.1rem; line-height: 1.3; }
.help-prose p, .help-prose li { color: var(--sendorr-ink-secondary); }
.help-prose a { color: var(--sendorr-ink); text-decoration: underline; text-underline-offset: 3px; }
.help-prose code {
  font-family: var(--help-mono); font-size: 0.9em; padding: 0.1em 0.35em;
  border-radius: 6px; background: var(--sendorr-surface-active); border: 1px solid var(--sendorr-border);
}
.help-prose pre {
  overflow: auto; padding: 14px 16px; border-radius: var(--sendorr-radius-btn);
  background: var(--sendorr-bg-soft); border: 1px solid var(--sendorr-border);
}
.help-prose pre code { border: 0; background: transparent; padding: 0; }
.help-prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1rem 0; }
.help-prose th, .help-prose td { border: 1px solid var(--sendorr-border); padding: 8px 10px; text-align: left; }
.help-prose th { background: var(--sendorr-surface-hover); }
.help-callout {
  margin: 1.2rem 0; padding: 12px 14px; border-radius: var(--sendorr-radius-btn);
  border: 1px solid var(--sendorr-border); background: var(--sendorr-surface);
}
.help-callout--warning { border-color: color-mix(in srgb, var(--sendorr-warning) 50%, var(--sendorr-border)); }
.help-callout--critical { border-color: color-mix(in srgb, var(--sendorr-danger) 50%, var(--sendorr-border)); }
.help-callout p { margin: 0; }

.help-prevnext {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px;
}
.help-prevnext a {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--sendorr-radius-btn);
  border: 1px solid var(--sendorr-border); background: var(--sendorr-surface); text-decoration: none;
}
.help-prevnext span { color: var(--sendorr-muted); font-size: 12px; }
.help-prevnext__next { text-align: right; }
.help-feedback { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--sendorr-border); }

.help-footer {
  border-top: 1px solid var(--sendorr-border); background: var(--sendorr-bg-soft); margin-top: 40px;
}
.help-footer__inner {
  max-width: var(--help-max); margin: 0 auto;
  padding: 28px max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: grid; gap: 16px;
}
.help-footer__logo {
  width: 96px; height: 24px; margin-bottom: 8px;
}
.help-footer__brand p { margin: 0; color: var(--sendorr-muted); font-size: 14px; }
.help-footer__nav { display: flex; flex-wrap: wrap; gap: 14px; }
.help-footer__nav a { color: var(--sendorr-muted); text-decoration: none; font-size: 14px; }
.help-footer__nav a:hover { color: var(--sendorr-ink); }
.help-footer__copy { margin: 0; color: var(--sendorr-muted-2); font-size: 13px; }

/* Search overlay */
.help-search[hidden] { display: none !important; }
.help-search {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: start center; padding: 10vh 16px 16px;
}
.help-search__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.help-search__panel {
  position: relative; width: min(720px, 100%);
  border-radius: var(--sendorr-radius-card);
  background: var(--sendorr-elevated); border: 1px solid var(--sendorr-border-strong);
  box-shadow: var(--sendorr-shadow); overflow: hidden;
}
.help-search__bar {
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-bottom: 1px solid var(--sendorr-border); color: var(--sendorr-muted);
}
.help-search__input {
  flex: 1; height: 56px; border: 0; background: transparent;
  color: var(--sendorr-ink); font-size: 16px; outline: none;
}
.help-search__bar kbd {
  font: 11px var(--help-mono); border: 1px solid var(--sendorr-border);
  border-radius: 6px; padding: 2px 6px; color: var(--sendorr-muted-2);
}
.help-search__meta { padding: 8px 18px; color: var(--sendorr-muted-2); font-size: 12px; }
.help-search__results { list-style: none; margin: 0; padding: 0 8px 12px; max-height: 50vh; overflow: auto; }
.help-search__results li a {
  display: grid; gap: 2px; padding: 12px; border-radius: var(--sendorr-radius-control); text-decoration: none;
}
.help-search__results li a:hover, .help-search__results li a.is-active { background: var(--sendorr-surface-active); }
.help-search__results strong { font-size: 14px; }
.help-search__results span { color: var(--sendorr-muted); font-size: 12px; }
.help-search__results mark {
  background: color-mix(in srgb, var(--sendorr-ink) 16%, transparent);
  color: inherit; border-radius: 2px;
}
.help-search__empty { padding: 0 18px 18px; color: var(--sendorr-muted); }
.help-search__recent { padding: 0 18px 12px; }
.help-search__recent-label {
  margin: 0 0 8px; font-size: 12px; font-weight: 650; color: var(--sendorr-muted-2);
  text-transform: uppercase; letter-spacing: 0.04em;
}

.help-feedback__reason {
  display: grid; gap: 8px; margin-top: 12px; max-width: 420px;
}
.help-feedback__reason label { font-size: 13px; color: var(--sendorr-muted); }
.help-feedback__reason textarea {
  width: 100%; resize: vertical; min-height: 64px;
  border: 1px solid var(--sendorr-border); border-radius: var(--sendorr-radius-control);
  background: var(--sendorr-surface); color: var(--sendorr-ink);
  padding: 10px 12px; font: inherit;
}
.help-feedback__note {
  margin: 8px 0 0; font-size: 12px; color: var(--sendorr-muted-2);
}
.help-feedback__support {
  margin: 10px 0 0; font-size: 13px;
}
.help-feedback__support a { color: var(--sendorr-ink); text-decoration: underline; text-underline-offset: 3px; }

.help-nav-backdrop {
  display: none;
}

.help-draft-banner {
  background: color-mix(in srgb, var(--sendorr-warning) 18%, var(--sendorr-bg));
  color: var(--sendorr-ink); text-align: center; padding: 8px 12px; font-size: 13px; font-weight: 600;
}
.help-dev-inspector {
  background: var(--sendorr-surface-active); border-bottom: 1px solid var(--sendorr-border);
  padding: 8px 16px; font-size: 12px;
}
.help-dev-inspector strong { display: block; margin-bottom: 6px; }
.help-dev-inspector dl {
  display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0;
}
.help-dev-inspector dt { color: var(--sendorr-muted-2); display: inline; margin-right: 6px; }
.help-dev-inspector dd { display: inline; margin: 0; font-weight: 650; }

:focus-visible {
  outline: 2px solid var(--sendorr-ink); outline-offset: 2px;
}

@media (max-width: 1024px) {
  .help-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .help-toc { display: none; }
}

@media (max-width: 980px) {
  .help-shell { grid-template-columns: minmax(0, 1fr); }
  .help-nav-backdrop {
    display: block; position: fixed; inset: var(--help-header-h) 0 0 0;
    background: rgba(0, 0, 0, 0.45); z-index: 55; opacity: 0; pointer-events: none;
    transition: opacity var(--sendorr-motion) ease;
  }
  .help-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .help-sidenav {
    position: fixed; inset: var(--help-header-h) auto 0 0; width: min(320px, 88vw);
    transform: translateX(-105%); transition: transform var(--sendorr-motion) ease; z-index: 60;
    background: var(--sendorr-bg); border-right: 1px solid var(--sendorr-border); padding: 12px;
    max-height: none; box-shadow: var(--sendorr-shadow);
  }
  .help-sidenav.is-open { transform: translateX(0); }
  .help-nav-toggle { display: inline-flex; }
  .help-btn--support { display: none; }
  body.help-nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .help-header__product-label { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .help-control__label { display: none; }
  .help-search { padding: 0; place-items: stretch; }
  .help-search__panel { width: 100%; height: 100%; border-radius: 0; }
  .help-search__results { max-height: none; }
  .help-prevnext { grid-template-columns: 1fr; }
  .help-hero { padding: 22px 18px; }
  .help-btn--primary { padding: 0 12px; }
  .help-page--home:not(.is-scrolled) .help-search-trigger { display: none; }
}

@media (max-width: 380px) {
  .help-brand__logo { width: 96px; height: 24px; }
  .help-header__actions .help-btn--primary { font-size: 12px; }
}
