@import url("/tokens.css?v=20260907v1");

:root {
  --brand: #111111;
  --brand-strong: #000000;
  --brand-soft: #f4f4f5;
  --brand-line: #e4e4e7;
  --ink: #111111;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --soft: #a1a1aa;
  --line: #e4e4e7;
  --line-soft: #f4f4f5;
  --bg: #ffffff;
  --panel: #ffffff;
  --side: #f7f7f8;
  --focus: 0 0 0 2px #ffffff, 0 0 0 4px #111111;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font); }
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; z-index: 40; background: var(--panel); padding: 8px 12px; border-radius: var(--r-sm); }
.top {
  display: flex; gap: 12px; align-items: center; padding: 10px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 8;
}
.brand { display: flex; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.brand img {
  height: 28px; width: auto; max-width: 220px; border-radius: 4px;
  object-fit: contain; background: transparent;
}
.brand img[hidden], #helpName[hidden] { display: none; }
#helpQ {
  flex: 1; max-width: 420px; border: 1px solid transparent; border-radius: 8px; padding: 7px 13px;
  background: var(--line-soft); color: var(--ink); font: inherit;
}
#helpQ:focus { outline: none; background: var(--panel); box-shadow: var(--focus); border-color: var(--line); }
.top-links { display: flex; gap: 16px; margin-left: auto; }
.top-links:empty { display: none; }
.top-links a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; }
.top-links a:hover { color: var(--ink); }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  flex-shrink: 0;
}
.lang-switch button {
  border: 0; background: transparent; color: var(--muted); padding: 5px 11px;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button.is-on { background: var(--ink); color: var(--panel); }
.nav-btn {
  display: none; border: 1px solid var(--line); background: var(--panel); border-radius: 8px;
  padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
}
main { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - 52px); }
.list {
  position: sticky; top: 52px; height: calc(100vh - 52px);
  background: var(--side);
  border-right: 1px solid var(--line); overflow: auto; padding: 16px 10px 32px;
}
.list .cat {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  width: 100%; border: 0; background: transparent; cursor: pointer; font: inherit;
  text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--muted);
  font-weight: 600; font-size: 12px; margin-bottom: 2px;
}
.list .cat .n {
  margin-left: auto; font-size: 11px; font-weight: 500; color: var(--soft);
  background: transparent; border-radius: var(--r-pill); min-width: 18px; text-align: center; padding: 0 4px;
}
.list .cat::after {
  content: ''; width: 6px; height: 6px; flex-shrink: 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-135deg); opacity: .55; margin-top: 2px;
  transition: transform .15s ease;
}
.list .cat[aria-expanded="false"]::after {
  transform: rotate(45deg); margin-top: -3px;
}
.list .cat:hover { background: #ececee; color: var(--ink); }
.list .cat.is-on { background: #ececee; color: var(--ink); }
.list .cat.is-on .n { color: var(--muted); }
.list .cat-group.is-folded .arts { display: none; }
.list .arts { padding: 0 0 12px 0; }
.list .arts a {
  display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; margin-bottom: 1px;
  font-size: 13px; font-weight: 400; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list a:hover { color: var(--ink); background: #ececee; }
.list .arts a.is-on {
  background: #ececee; color: var(--ink); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--ink);
}

.article { padding: 36px 52px 88px; max-width: 760px; }
.article.has-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  grid-template-areas:
    "head toc"
    "body toc"
    "foot toc";
  column-gap: 48px;
  max-width: 980px;
}
.article-head { grid-area: head; min-width: 0; }
.article-body { grid-area: body; min-width: 0; }
.article-foot { grid-area: foot; min-width: 0; }
.help-toc { grid-area: toc; }

.article .k { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.article .crumb { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.article .crumb a { color: var(--muted); text-decoration: none; }
.article .crumb a:hover { color: var(--ink); }
.article h1, .article h2, .article h3, .article h4 { line-height: 1.32; scroll-margin-top: 76px; }
.article h1 { margin: 0 0 20px; font-size: var(--fs-4xl); font-weight: 700; letter-spacing: 0; }
.article h2 { margin: 36px 0 10px; font-size: 18px; font-weight: 700; }
.article h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 650; }
.article h4 { margin: 18px 0 8px; font-size: 15px; }
.article-body > h2:first-child { margin-top: 8px; }
.article p { margin: 0 0 14px; color: var(--ink-2); }
.article-body > p:first-of-type {
  font-size: 17px; color: var(--ink-2); margin: 0 0 28px;
}
.article ul, .article ol { margin: 0 0 18px; padding-left: 1.2em; }
.article li { margin: 0 0 8px; color: var(--ink-2); }
.article a { color: var(--ink); }
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #a1a1aa;
}
.article-body a:hover { text-decoration-color: var(--ink); }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.article blockquote {
  margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid #d4d4d8;
  background: var(--line-soft); border-radius: 0 8px 8px 0; color: var(--ink-2);
}
.article code {
  font-family: var(--font-mono); font-size: 0.9em; background: var(--line-soft);
  padding: 0.1em 0.35em; border-radius: 4px;
}
.article pre {
  margin: 0 0 16px; padding: 14px 16px; background: #18181b; color: #f4f4f5;
  border-radius: 10px; overflow: auto;
}
.article pre code { background: none; color: inherit; padding: 0; font-size: 13px; line-height: 1.55; }

.article-body > ol {
  list-style: none; padding: 0; counter-reset: help-step;
  margin: 0 0 28px; border-top: 1px solid var(--line-soft);
}
.article-body > ol > li {
  counter-increment: help-step;
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start;
  margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.article-body > ol > li::before {
  content: counter(help-step);
  width: 28px; height: 28px; border-radius: var(--r-pill);
  background: #ececee; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; line-height: 1;
  margin-top: 1px;
}

.help-table-wrap { overflow: auto; margin: 0 0 16px; }
.article table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article th, .article td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.article th { background: transparent; font-weight: 600; color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); }

.help-cta {
  margin-top: 20px; padding: 14px 16px;
  background: var(--line-soft); border-radius: 8px; border: 0;
  color: var(--ink-2); font-size: 14px;
}
.help-cta a { color: var(--ink); font-weight: 600; margin-left: 8px; text-decoration: none; }
.help-cta a:hover { text-decoration: underline; }
.help-vote {
  margin-top: 36px; padding: 20px 0 0; border-top: 1px solid var(--line);
  background: transparent;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.help-vote p { margin: 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.help-vote-btns { display: flex; gap: 8px; }
.help-vote button {
  border: 1px solid var(--line); background: var(--panel); border-radius: 8px;
  padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.help-vote button:hover, .help-vote button.is-on { border-color: var(--ink); color: var(--ink); background: var(--line-soft); }
.help-fallback {
  margin: 0 0 16px; padding: 10px 12px; border-radius: 8px;
  background: var(--line-soft); color: var(--ink-2); font-size: 13px;
}
.list .arts a mark, .help-snippet mark, .article mark { background: #e4e4e7; color: inherit; padding: 0 1px; }
.help-snippet { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; white-space: normal; }

.help-toc {
  position: sticky; top: 76px; align-self: start;
  padding: 4px 0 0; margin: 0; background: none; border: 0;
}
.help-toc p {
  margin: 0 0 10px; font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: .08em;
}
.help-toc ol { margin: 0; padding: 0; list-style: none; }
.help-toc li { margin: 0; }
.help-toc a {
  display: block; padding: 5px 0 5px 10px; border-left: 2px solid var(--line);
  color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.4;
}
.help-toc a:hover, .help-toc a.is-on { color: var(--ink); border-left-color: var(--ink); }
.help-toc .toc-h3 { margin-left: 0; }
.help-toc .toc-h3 a { padding-left: 20px; font-size: 12px; }

.help-related, .help-links { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.help-related h2, .help-links h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.help-related a, .help-links a {
  display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  margin: 0 0 6px; text-decoration: none; color: var(--ink); background: var(--panel);
}
.help-related a:hover, .help-links a:hover { color: var(--ink); background: var(--line-soft); border-color: #d4d4d8; }

.help-home h1 { margin-bottom: 8px; }
.help-home .lead { color: var(--ink-2); margin-bottom: 24px; }
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 28px; }
.help-cards a {
  display: block; padding: 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); text-decoration: none; color: var(--ink); min-height: 120px;
}
.help-cards a:hover { border-color: #d4d4d8; background: var(--line-soft); box-shadow: none; }
.help-cards .k { margin-bottom: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.help-cards h2 { margin: 0 0 6px; font-size: 16px; }
.help-cards p { margin: 0; font-size: 13px; color: var(--muted); }
.help-sec { margin: 0 0 28px; }
.help-sec h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.help-sec a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.help-sec a:hover { color: var(--ink); }

@media (max-width: 1200px) {
  .article.has-toc {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "toc"
      "body"
      "foot";
    column-gap: 0;
    max-width: 760px;
  }
  .help-toc {
    position: static; margin: 0 0 20px; padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
  }
  .help-toc p { margin-bottom: 8px; }
  .help-toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .help-toc a, .help-toc .toc-h3 a {
    display: inline-flex; padding: 4px 10px; border: 1px solid var(--line);
    border-radius: 8px; background: var(--panel); font-size: 12px;
  }
  .help-toc a:hover, .help-toc a.is-on {
    border-color: var(--ink); background: var(--line-soft); color: var(--ink);
  }
}

@media (max-width: 800px) {
  .top { flex-wrap: wrap; padding: 10px 16px; }
  #helpQ { max-width: none; order: 4; flex-basis: 100%; }
  .top-links { display: none; }
  .lang-switch { margin-left: auto; }
  .nav-btn { display: inline-flex; }
  main { grid-template-columns: 1fr; }
  .list {
    display: none; position: static; height: auto;
    border-right: 0; border-bottom: 1px solid var(--line); max-height: 50vh;
    background: var(--side);
  }
  body.help-nav-open .list { display: block; }
  body.help-home .list { display: block; max-height: none; }
  .article { padding: 20px 16px 64px; }
  .article.has-toc {
    grid-template-areas:
      "head"
      "body"
      "foot";
  }
  .help-toc { display: none; }
  .list .arts a { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .list .cat::after { transition: none; }
}
