.doc-page {
  color: var(--ink, #151d35);
  background: var(--paper, #fcfcfa);
}

.doc-main {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 96px;
  font-size: 1rem;
  line-height: 1.9;
}

.doc-intro { margin-bottom: 48px; }
.doc-eyebrow {
  margin: 0 0 18px;
  color: var(--accent, #6742ef);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.doc-intro h1 {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.055em;
}
.doc-lead {
  max-width: 41em;
  color: var(--muted, #5e667c);
  font-size: 1.125rem;
  line-height: 1.9;
}
.doc-meta {
  margin: 20px 0 0;
  color: var(--muted, #5e667c);
  font-size: .875rem;
}
.doc-note {
  margin: 0 0 56px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--body-copy);
  font-size: .9375rem;
}
.doc-note p { margin: 0 0 12px; }
.doc-note strong { color: var(--ink, #151d35); }
.doc-main a {
  color: var(--accent, #6742ef);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.doc-main a:hover { text-decoration: underline; }
.doc-main a:focus-visible,
.doc-main summary:focus-visible,
.doc-table-wrap:focus-visible {
  outline: 3px solid #9c83f9;
  outline-offset: 5px;
  border-radius: 4px;
}
.doc-steps {
  counter-reset: doc-step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-steps > li {
  position: relative;
  counter-increment: doc-step;
  padding: 0 0 44px 56px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.doc-steps > li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  color: var(--accent, #6742ef);
  background: var(--accent-tint);
  content: counter(doc-step);
  font-size: .875rem;
  font-weight: 600;
}
.doc-main h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.025em;
}
.doc-main p { margin: 0 0 18px; }
.doc-main p:last-child { margin-bottom: 0; }
.doc-section { margin: 0 0 56px; }
.doc-privacy .doc-section {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.doc-caption { color: var(--muted, #5e667c); font-size: .875rem; }
.doc-text-link { display: inline-block; margin-top: 2px; font-size: .9375rem; }
.doc-table-wrap {
  overflow-x: auto;
  margin: 24px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.doc-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.doc-table th,
.doc-table td { padding: 15px 18px; text-align: left; vertical-align: top; }
.doc-table th { background: var(--surface-soft); color: var(--muted); font-weight: 500; }
.doc-table tbody tr + tr td { border-top: 1px solid var(--line); }
.doc-table td:first-child { width: 43%; }
.doc-table code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .875rem;
  color: var(--ink, #151d35);
}
.doc-main kbd {
  display: inline-block;
  min-width: 1.65em;
  padding: 0 .35em;
  border: 1px solid var(--panel-line);
  border-radius: 5px;
  background: var(--surface);
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.7;
  text-align: center;
}
.doc-shortcuts { margin: 0 0 24px; }
.doc-shortcuts > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  padding: 12px 0;
}
.doc-shortcuts dt,
.doc-shortcuts dd { margin: 0; }
.doc-faq { border-top: 1px solid var(--line); }
.doc-faq details { border-bottom: 1px solid var(--line); }
.doc-faq summary {
  position: relative;
  padding: 20px 32px 20px 0;
  font-size: 1rem;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary::after {
  position: absolute;
  top: 20px;
  right: 2px;
  content: "+";
  color: var(--muted, #5e667c);
  font-size: 1.125rem;
  font-weight: 400;
}
.doc-faq details[open] summary::after { content: "−"; }
.doc-faq details > div { padding: 0 28px 22px 0; color: var(--muted); }
.doc-endnote {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted, #5e667c);
  font-size: .9375rem;
}
.doc-endnote p { margin-bottom: 4px; }
.doc-footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: .875rem; }
.doc-page [id] { scroll-margin-top: 96px; }
html[lang="en"] .doc-intro h1 { letter-spacing: -.04em; line-height: 1.2; }
html[lang="en"] .doc-main { overflow-wrap: break-word; }

@media (max-width: 600px) {
  .doc-main { width: calc(100% - 40px); padding: 52px 0 64px; }
  .doc-intro { margin-bottom: 32px; }
  .doc-intro h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .doc-lead { font-size: 1.0625rem; }
  .doc-note { padding: 18px 20px; margin-bottom: 40px; }
  .doc-steps > li { padding-left: 0; padding-top: 48px; margin-bottom: 32px; padding-bottom: 32px; }
  .doc-steps > li::before { top: 0; }
  .doc-main h2 { font-size: 1.3rem; }
  .doc-table th,
  .doc-table td { padding: 12px; }
  .doc-table td:first-child { width: 40%; }
  .doc-section { margin-bottom: 40px; }
  .doc-shortcuts > div { grid-template-columns: 104px 1fr; }
  .doc-footer-links { gap: 18px; }
}
