/* Ladcraft Help Center — isolated styles (does not alter landing tokens) */

:root {
  --help-bg: #fafafa;
  --help-surface: #ffffff;
  --help-text: #111111;
  --help-muted: #5f6368;
  --help-border: rgba(17, 17, 17, 0.08);
  --help-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
  --help-accent: #fb8760;
  --help-radius: 14px;
  --help-font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --help-sidebar-w: 261px;
  --help-toc-w: 220px;
  --help-content-max: 720px;
  --help-article-pad-x: 48px;
  --help-h1-size: clamp(30px, 3.4vw, 44px);
  --help-h1-line-height: 1.06;
  --help-h1-letter-spacing: -0.03em;
  --help-h1-margin-bottom: 16px;
  /* Vertical rhythm for article prose */
  --help-space-sm: 8px;
  --help-space: 16px;
  --help-space-lg: 28px;
}

html.help-page,
body.help-page {
  height: 100%;
}

body.help-page {
  margin: 0;
  font-family: var(--help-font);
  color: var(--help-text);
  background: var(--help-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: auto;
}

.help-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow-x: visible;
}

.help-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--help-surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--help-border);
}

.help-topbar__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--help-sidebar-w) minmax(0, 1fr) var(--help-toc-w);
  gap: 0;
  align-items: center;
  position: relative;
}

body.help-page:has(.help-layout.is-no-toc) .help-topbar__inner {
  grid-template-columns: var(--help-sidebar-w) minmax(0, 1fr);
}

.help-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  letter-spacing: -0.02em;
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  padding: 0 10px 0 20px;
  box-sizing: border-box;
}

.help-brand img {
  display: block;
}

.help-brand > span {
  position: relative;
  padding-left: 10px;
  margin-right: 8px;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.help-brand > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  background: rgba(10, 10, 10, 0.16);
  transform: translateY(-50%);
}

.help-topnav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.help-topnav a {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--help-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.help-topnav a:hover {
  background: #f4f4f2;
  color: #111;
}

.help-topnav a.is-active {
  background: #f4f4f2;
  color: #111;
  font-weight: 500;
}

.help-topbar__main {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.help-topbar__main .help-search {
  grid-column: auto;
  flex: 1;
  min-width: 0;
  padding-left: 0;
  padding-right: 16px;
}

body.help-updates-page .help-topbar__main {
  padding-right: 16px;
}

@media (min-width: 769px) {
  body.help-updates-page .help-topbar__main {
    min-height: 44px;
  }
}

.help-topbar__start {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 20px;
  box-sizing: border-box;
}

.help-topbar__start .help-brand {
  padding-left: 0;
}

.help-updates-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-updates-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.help-updates-link:hover {
  background: #f4f4f2;
}

.help-updates-link.is-active {
  background: #f4f4f2;
}

.help-updates-link__title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.help-updates-link__date {
  font-size: 12px;
  line-height: 1.3;
  color: var(--help-muted);
}

.help-updates-empty {
  margin: 0;
  color: var(--help-muted);
  font-size: 14px;
  line-height: 1.45;
}

body.help-updates-page .help-topbar__inner {
  grid-template-columns: var(--help-sidebar-w) minmax(0, 1fr) var(--help-toc-w);
}

body.help-updates-page:has(.help-layout.is-no-toc) .help-topbar__inner {
  grid-template-columns: var(--help-sidebar-w) minmax(0, 1fr);
}

.help-topbar__spacer {
  display: 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-search {
  --help-search-content-inset-x: calc(
    var(--help-article-pad-x) +
      max(0px, (100% - 2 * var(--help-article-pad-x) - var(--help-content-max)) / 2)
  );
  grid-column: 2;
  justify-self: start;
  align-self: center;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding-left: var(--help-search-content-inset-x);
  padding-right: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border-radius: 10px;
  border: 0;
  background: transparent;
  position: relative;
  left: auto;
  transform: none;
  z-index: 35;
}

.help-search__control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 3px;
  box-sizing: border-box;
  max-width: 520px;
  width: 100%;
}

.help-search__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #717182;
  transform: translateY(-50%);
  pointer-events: none;
}

.help-search input {
  width: 100%;
  height: 38px;
  border: 0;
  outline: none;
  border-radius: 10px;
  background: #f3f3f3;
  padding: 6px 76px 6px 40px;
  font-family: var(--help-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.0195em;
  color: #0a0a0a;
}

.help-search input:focus {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--help-accent) 45%, transparent);
  background: #fff;
}

.help-search__kbd {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(10, 10, 10, 0.38);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(10, 10, 10, 0.1);
  background: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  user-select: none;
}

.help-search__dropdown {
  position: absolute;
  left: var(--help-search-content-inset-x);
  right: auto;
  top: calc(100% + 6px);
  width: min(
    520px,
    calc(100% - var(--help-search-content-inset-x) - 16px)
  );
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--help-border);
  background: var(--help-surface);
  box-shadow: var(--help-shadow);
  overflow: hidden;
  z-index: 50;
}

.help-search__dropdown[hidden] {
  display: none !important;
}

.help-search__dropdown-inner {
  max-height: min(52vh, 360px);
  overflow-y: auto;
  padding: 6px 0;
}

.help-search__hint {
  padding: 10px 14px 8px;
  font-size: 12px;
  color: var(--help-muted);
  line-height: 1.45;
}

.help-search__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--help-font);
  transition: background 0.12s ease;
}

.help-search__item:hover,
.help-search__item.is-active {
  background: #f4f4f2;
}

.help-search__item-section {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--help-muted);
}

.help-search__item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--help-text);
  letter-spacing: -0.02em;
}

.help-search__empty {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--help-muted);
  line-height: 1.45;
}

.help-search input::-webkit-search-cancel-button,
.help-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.help-search input::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.help-search__clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #8f8fa1;
  cursor: pointer;
}

.help-search__clear[hidden] {
  display: none !important;
}

.help-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  display: grid;
  place-items: start center;
  padding-top: 68px;
  z-index: 60;
}

.help-search-modal[hidden] {
  display: none;
}

.help-search-modal__panel {
  width: min(920px, calc(100vw - 32px));
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.help-search-modal__head {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ececec;
  padding: 0 16px;
}

.help-search-modal__head input {
  flex: 1;
  border: 0;
  outline: 0;
  height: 64px;
  font: 500 34px/1.1 var(--help-font);
}

.help-search-modal__head button {
  border: 0;
  background: transparent;
  color: #8c8c96;
  font-size: 32px;
  cursor: pointer;
}

.help-search-modal__list {
  max-height: min(60vh, 520px);
  overflow: auto;
  padding: 8px 0;
}

.help-search-result {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 28px;
  font: 500 34px/1.2 var(--help-font);
  cursor: pointer;
}

.help-search-result:hover {
  background: #f6f6f8;
}

.help-search__clear svg {
  display: block;
  width: 16px;
  height: 16px;
}

.help-search__clear:hover {
  opacity: 0.8;
}

.help-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  grid-column: 3;
  justify-self: end;
  padding-right: 20px;
  box-sizing: border-box;
}

body.help-page:has(.help-layout.is-no-toc) .help-actions {
  grid-column: 2;
  justify-self: end;
}

.help-mobile-actions {
  display: none;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  grid-column: 3;
  justify-self: end;
  padding-right: 20px;
  box-sizing: border-box;
}

body.help-page:has(.help-layout.is-no-toc) .help-mobile-actions {
  grid-column: 2;
  justify-self: end;
}

.help-icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #717182;
  cursor: pointer;
}

.help-icon-btn:hover {
  background: #f3f3f3;
}

.help-btn {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  font-family: var(--help-font);
  border-radius: 10px;
  height: 44px;
  padding: 0 18px;
  border: none;
  position: relative;
  white-space: nowrap;
  background: var(--help-surface);
  color: var(--help-text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.help-btn::before {
  display: none;
}

.help-btn:hover {
  border-color: color-mix(in srgb, var(--help-accent) 35%, var(--help-border));
  box-shadow: 0 6px 18px rgba(251, 135, 96, 0.12);
}

.help-btn--primary {
  background: #111;
  color: #fff;
  border-radius: 10px;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 1px 3px rgba(0,0,0,0.3);
}

.help-btn--primary::before {
  display: none;
}

.help-btn--primary:hover {
  background: #2a2a2a;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 4px 10px rgba(0,0,0,0.25);
  transform: translateY(-1px);
  border-color: transparent;
}

.help-btn--primary:active {
  background: #000;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.help-btn--ghost {
  background: transparent;
}

.help-layout {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: var(--help-sidebar-w) minmax(0, 1fr) var(--help-toc-w);
  gap: 0;
  align-items: start;
  background: #fff;
  min-width: 0;
}

.help-layout.is-no-toc {
  grid-template-columns: var(--help-sidebar-w) minmax(0, 1fr);
}

.help-sidebar,
.help-toc {
  position: sticky;
  top: 74px;
  align-self: start;
  border: 0;
  border-left: 1px solid var(--help-border);
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  min-height: calc(100vh - 74px);
}

.help-toc {
  background: #fff;
  border: 0;
  box-shadow: none;
}

.help-sidebar__header,
.help-toc__header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--help-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.help-sidebar__title,
.help-toc__title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--help-muted);
  font-weight: 600;
}

.help-nav {
  padding: 24px 24px 32px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  background: #fff;
}

.help-group {
  margin-top: 28px;
}

.help-group:first-child {
  margin-top: 0;
}

.help-group__label {
  list-style: none;
  font-size: 14px;
  line-height: 20px;
  height: 20px;
  color: #717182;
  padding: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.help-group__label::-webkit-details-marker {
  display: none;
}

.help-group__label::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("pic/collapse-icon.svg") center / 16px 16px no-repeat;
  opacity: 0.9;
  transform: rotate(0deg);
  margin-right: 2px;
}

details.help-group[open] > .help-group__label::after {
  transform: rotate(180deg);
}

.help-group__list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-subgroup {
  box-sizing: border-box;
  height: 26px;
  display: flex;
  align-items: center;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  color: rgba(113, 113, 130, 0.7);
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
}

.help-group__list > .help-subgroup {
  margin-top: 8px;
  margin-bottom: 4px;
}

.help-group__list > .help-subgroup:first-child {
  margin-top: 4px;
}

.help-link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 32px;
  height: auto;
  padding: 6px 10px;
  border-radius: 8px;
  color: #2b2b2b;
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  border-left: 2px solid transparent;
}

.help-link:hover {
  background: #f3f3f3;
  color: #030213;
  font-weight: 500;
  border-left-color: transparent;
}

.help-link.is-active {
  background: #f3f3f3;
  color: #030213;
  border-left-color: transparent;
}

.help-link--disabled {
  color: #9a9aa4;
  opacity: 1;
  pointer-events: none;
}

.help-main {
  border: 0;
  border-left: 1px solid var(--help-border);
  border-right: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  min-height: calc(100vh - 74px);
}

.help-main__toolbar {
  display: none;
}

.help-breadcrumb {
  display: inline-flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-family: var(--help-font);
  font-size: 13px;
  font-weight: 400;
  color: #9a9aa4;
  line-height: 1.35;
}

.help-breadcrumb code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #2b2b2b;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.help-breadcrumb a,
.help-breadcrumb span {
  display: inline-block;
  min-width: 0;
  max-width: clamp(90px, 16vw, 200px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9a9aa4;
  text-decoration: none;
}

.help-breadcrumb a:hover {
  color: #717182;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-breadcrumb__sep {
  flex-shrink: 0;
  color: #c7c7cf;
}

.help-copy {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #717182;
  font-family: var(--help-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.help-copy:hover {
  background: #f3f3f3;
  color: #717182;
}

.help-copy svg {
  flex-shrink: 0;
}

.help-copy-inline {
  display: inline-flex;
  margin: var(--help-space-sm) 0 var(--help-space);
  padding: 0;
}

.help-prose h1 + p {
  margin-top: 0;
  margin-bottom: 0;
}

.help-article {
  padding: 48px var(--help-article-pad-x) 40px;
  background: #fff;
  min-width: 0;
}

.help-prose {
  max-width: var(--help-content-max);
  margin: 0 auto;
  min-width: 0;
}

.help-noscript-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(146, 116, 220, 0.08);
  border: 1px solid rgba(146, 116, 220, 0.2);
  font-size: 14px;
  color: var(--help-muted);
}

/* Prose typography (scoped) */
.help-prose h1 {
  font-family: var(--help-font);
  font-size: var(--help-h1-size);
  line-height: var(--help-h1-line-height);
  letter-spacing: var(--help-h1-letter-spacing);
  margin: 0 0 var(--help-h1-margin-bottom);
}

.help-prose > h1 + p {
  margin-top: 0;
  color: var(--help-muted);
  font-size: 16px;
  line-height: 1.55;
}

.help-prose h2 {
  font-family: var(--help-font);
  font-size: 20px;
  margin: var(--help-space-lg) 0 var(--help-space);
  letter-spacing: -0.01em;
  scroll-margin-top: 90px;
}

.help-prose h3 {
  font-family: var(--help-font);
  font-size: 15px;
  margin: var(--help-space) 0 var(--help-space-sm);
  color: #1f1f1f;
  scroll-margin-top: 90px;
}

.help-prose p,
.help-prose li {
  font-size: 15.5px;
  line-height: 1.68;
  color: #1f1f1f;
  overflow-wrap: anywhere;
}

.help-prose p {
  margin: var(--help-space) 0;
}

.help-prose ul,
.help-prose ol {
  margin: var(--help-space) 0;
  padding-left: 0;
  max-width: 680px;
  list-style: none;
}

.help-prose ol {
  counter-reset: help-ordered-list;
}

.help-prose ol[start] {
  counter-reset: help-ordered-list calc(attr(start number, integer) - 1);
}

.help-prose li {
  margin: 0;
}

.help-prose ul > li,
.help-prose ol > li {
  position: relative;
  padding-left: 1.9em;
}

.help-prose ul > li::before,
.help-prose ol > li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 1.3em;
  text-align: right;
  color: #6b7280;
}

.help-prose ul > li::before {
  content: "•";
}

.help-prose ol > li {
  counter-increment: help-ordered-list;
}

.help-prose ol > li::before {
  content: counter(help-ordered-list) ".";
  font-variant-numeric: tabular-nums;
}

.help-prose ul > li + li,
.help-prose ol > li + li {
  margin-top: 0;
}

.help-prose li > ul,
.help-prose li > ol {
  margin: var(--help-space-sm) 0 var(--help-space-sm);
  padding-left: 0;
  max-width: none;
}

.help-prose li > ul > li,
.help-prose li > ol > li {
  padding-left: 1.5em;
}

.help-prose li > ul > li::before,
.help-prose li > ol > li::before {
  width: 1em;
}

.help-prose li > ul > li + li,
.help-prose li > ol > li + li {
  margin-top: 0;
}

.help-prose li > p {
  margin: var(--help-space-sm) 0 0;
}

.help-prose li > p:first-child {
  margin-top: 0;
}

.help-prose li:last-child {
  margin-bottom: 0;
}

.help-prose li strong {
  font-weight: 600;
  margin-right: 0;
}

.help-prose a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.help-prose a:hover {
  color: #1d4ed8;
}

.help-prose img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: var(--help-space) 0;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
}

.help-prose li > img {
  margin: var(--help-space-sm) 0;
}

.help-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  background: #f6f6f4;
  border: 1px solid var(--help-border);
  padding: 2px 6px;
  border-radius: 8px;
}

.help-prose pre {
  margin: var(--help-space) 0;
  max-width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--help-border);
  background: #0b0b0b;
  color: #f5f5f5;
  display: block;
  overflow: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.help-prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

.help-prose blockquote {
  margin: var(--help-space) 0;
  padding: 10px 12px;
  border-left: 3px solid color-mix(in srgb, var(--help-accent) 70%, #ffffff);
  background: color-mix(in srgb, var(--help-accent) 8%, #ffffff);
  border-radius: 10px;
  color: #222;
}

.help-prose hr + hr {
  display: none;
}

.help-prose hr {
  border: 0;
  height: 1px;
  background: #e6e6e6;
  margin: var(--help-space-lg) 0;
}

.help-prose > hr:first-of-type {
  display: none;
}

.help-prose table {
  width: 100%;
  max-width: 680px;
  margin: var(--help-space) 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15.5px;
  line-height: 1.68;
  color: #1f1f1f;
}

.help-prose th,
.help-prose td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--help-border);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.help-prose th:first-child,
.help-prose td:first-child {
  width: 18%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.help-prose th:nth-child(2),
.help-prose td:nth-child(2) {
  width: 22%;
}

.help-prose th:nth-child(3),
.help-prose td:nth-child(3) {
  width: 28%;
}

.help-prose th:nth-child(4),
.help-prose td:nth-child(4) {
  width: 32%;
}

.help-prose td:nth-child(2) code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.help-prose th {
  font-weight: 600;
  background: #f6f6f4;
}

.help-prose tbody tr:nth-child(even) {
  background: #fafaf9;
}

.help-prose aside {
  margin: var(--help-space) 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(151, 125, 217, 0.1);
  border: 1px solid rgba(151, 125, 217, 0.22);
  color: #1f2937;
  line-height: 1.6;
}

.help-prose aside p {
  margin: 0;
}

.help-prose aside p + p {
  margin-top: var(--help-space-sm);
}

.help-article-nav {
  margin-top: var(--help-space-lg);
  padding-top: var(--help-space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.help-article-nav__link {
  font-family: var(--help-font);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #717182;
  text-decoration: none;
}

.help-article-nav__link:hover {
  color: #4f4f5c;
}

.help-article-nav__link.is-next {
  margin-left: auto;
  text-align: right;
}

.help-toc__body {
  padding: 24px 24px 0 0;
  max-height: calc(100vh - 140px);
  overflow: auto;
}

.help-toc a {
  display: block;
  padding: 10px 24px;
  color: rgba(10, 10, 10, 0.5);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 0;
}

.help-toc a:hover {
  color: rgba(10, 10, 10, 0.8);
}

.help-toc a.is-active {
  color: #0a0a0a;
  border-left-color: #000;
}

.help-toc a.is-h3 {
  padding-left: 34px;
  font-size: 12.5px;
}

.help-mobile-bar {
  display: none;
  gap: 10px;
  padding: 0 0 12px;
}

.help-mobile-overlay {
  display: none;
}

.help-mobile-only {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --help-h1-size: clamp(22px, 6vw, 32px);
    --help-mobile-topbar-h: 96px;
  }

  /* ── Layout: single column, sidebar and toc out of flow ── */
  .help-layout {
    display: block;
    width: 100%;
    padding: 0;
  }

  .help-sidebar {
    display: none;
    position: fixed;
    top: var(--help-mobile-topbar-h);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--help-mobile-topbar-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 0;
    border-radius: 0;
    z-index: 20;
    min-height: unset;
  }

  .help-sidebar.is-open {
    display: block;
  }

  .help-sidebar .help-nav {
    max-height: none;
    min-height: 100%;
    box-sizing: border-box;
    padding: 20px 20px 40px;
  }

  .help-toc,
  .help-toc.is-open {
    display: none !important;
  }

  /* ── Topbar ── */
  .help-topbar__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand spacer actions"
      "main main main";
    height: auto;
    padding: 8px 14px 10px;
    gap: 10px;
    max-width: none;
    align-items: center;
  }

  .help-brand {
    grid-area: brand;
    min-width: 0;
    grid-column: unset;
    justify-self: unset;
    padding: 0;
  }

  .help-topbar__main {
    grid-area: main;
    display: block;
    width: 100%;
    min-width: 0;
    gap: 8px;
    overflow: hidden;
  }

  .help-topbar__main .help-search {
    padding-right: 0;
  }

  .help-topnav {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .help-topnav::-webkit-scrollbar {
    display: none;
  }

  .help-topnav a {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 12px;
  }

  .help-brand > span::before {
    display: none;
  }

  .help-brand > span {
    padding-left: 8px;
    margin-right: 0;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .help-topbar__spacer {
    display: none;
  }

  .help-search {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    width: auto;
    max-width: none;
    margin: 0;
    grid-column: unset;
    justify-self: unset;
    border-radius: 0;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) 14px
      max(16px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    border-bottom: 1px solid var(--help-border);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 30;
    transform: none;
    gap: 10px;
  }

  .help-search__control {
    padding: 2px 8px;
    max-width: none;
    width: 100%;
  }

  .help-search input {
    width: 100%;
    background: #f3f3f3;
    padding-right: 44px;
    font-size: 16px;
  }

  .help-search__kbd {
    display: none;
  }

  .help-search__dropdown {
    left: 0;
    right: 0;
    width: 100%;
    position: relative;
    top: 0;
    margin-top: 0;
    border-radius: 12px;
  }

  .help-search__dropdown-inner {
    max-height: min(50vh, 280px);
  }

  .help-topbar__inner.is-mobile-search-open .help-search {
    display: flex;
    flex-direction: column;
  }

  .help-actions {
    display: none;
    grid-column: unset;
    justify-self: unset;
  }

  .help-mobile-actions {
    display: inline-flex;
    grid-area: actions;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 0;
    grid-column: unset;
    justify-self: unset;
  }

  .help-icon-btn {
    width: 40px;
    height: 40px;
  }

  /* ── Overlay ── */
  .help-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 15;
  }

  .help-mobile-overlay[hidden] {
    display: none;
  }

  /* ── Main content: full width ── */
  .help-main {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    min-height: unset;
  }

  .help-main__toolbar {
    padding: 10px 16px;
    border-bottom: 1px solid var(--help-border);
  }

  .help-copy {
    display: none;
  }

  .help-article {
    padding: 24px 16px 48px;
  }

  .help-prose {
    min-width: 0;
  }

  .help-prose table {
    max-width: 100%;
  }

  .help-prose th,
  .help-prose td {
    min-width: 140px;
  }

  .help-prose h2 {
    font-size: 18px;
  }

  .help-prose p,
  .help-prose li {
    font-size: 15px;
  }

  .help-prose ul > li + li,
  .help-prose ol > li + li {
    margin-top: 10px;
  }

  .help-article-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .help-article-nav__link.is-next {
    margin-left: 0;
    text-align: left;
  }
}

.help-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.help-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
