:root {
  --accent: #ff8a1f;
  --accent-2: #ff4d6d;
  --accent-soft: rgba(255, 138, 31, 0.14);
  --bg: #0e0f11;
  --bg-2: #131417;
  --panel: #18191d;
  --panel-2: #212228;
  --line: #2b2d33;
  --text: #d6d7db;
  --muted: #9a9ca4;
  --white: #f6f6f7;
  --good: #3fb950;
  --bad: #f85149;
  --radius: 12px;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, Menlo, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

[id] {
  scroll-margin-top: 84px;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--white);
}

a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #111;
  padding: 8px 16px;
  z-index: 40;
}

.skip:focus {
  left: 8px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 15, 17, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.top-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  margin-left: auto;
}

.nav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--white);
  border-bottom-color: var(--line);
}

.nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--accent);
}

.nav .lang {
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.nav .lang:hover {
  border-color: var(--accent);
  color: var(--white);
}

main {
  display: block;
}

.sec {
  padding: 64px 0;
}

.s2,
.s3 {
  border-top: 1px solid var(--line);
}

.alt-bg {
  background: var(--bg-2);
}

h1,
h2,
h3,
h4 {
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 42px;
  font-weight: 800;
}

h2 {
  font-size: 30px;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
}

.center {
  text-align: center;
}

.lead {
  max-width: 740px;
  font-size: 19px;
}

.center.lead,
.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.small {
  font-size: 15px;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.center .actions,
.actions.center {
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: #ffa04a;
  border-color: #ffa04a;
  color: #111;
  transform: translateY(-1px);
}

.btn.alt {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}

.btn.alt:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--white);
}

.btn.big {
  padding: 14px 30px;
  font-size: 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 78% -12%, rgba(255, 138, 31, 0.2), transparent 62%),
    radial-gradient(700px 360px at 8% -6%, rgba(255, 77, 109, 0.12), transparent 62%),
    var(--bg);
}

.hero h1 {
  max-width: 880px;
  font-size: 52px;
  line-height: 1.08;
}

.hero .lead {
  font-size: 20px;
}

.frame {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(255, 138, 31, 0.16), 0 8px 30px rgba(0, 0, 0, 0.5);
}

.frame img {
  display: block;
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats li {
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.stats b {
  display: block;
  color: var(--white);
  font-size: 32px;
  line-height: 1.1;
}

.stats span {
  color: var(--muted);
  font-size: 14.5px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: #4a4c55;
  transform: translateY(-2px);
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.card h3 {
  margin-bottom: 6px;
}

.card p {
  font-size: 16px;
  margin-bottom: 10px;
}

.card .more {
  margin-top: auto;
  font-size: 16px;
  font-weight: 600;
}

.feat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.feat > div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feat h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.feat p {
  margin: 0;
  font-size: 15.5px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.steps h3 {
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  font-size: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 0 7px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

.checks {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 28px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

.faq {
  max-width: 820px;
  margin-top: 24px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 16px 40px 16px 0;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 12px;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 18px;
}

.cta {
  padding: 56px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(255, 138, 31, 0.18), transparent 70%),
    var(--panel);
  text-align: center;
}

.cta h2 {
  margin-bottom: 10px;
}

.dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.dl-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.dl-card h2 {
  margin-bottom: 4px;
}

.dl-card .file {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

.dl-card .btn {
  margin-bottom: 18px;
}

.dl-card p {
  font-size: 15.5px;
}

.list {
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.list li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.list a {
  flex: 0 0 280px;
  font-weight: 600;
}

.list span {
  flex: 1 1 260px;
  font-size: 15.5px;
  color: var(--muted);
}

.prose {
  max-width: 780px;
}

.prose h2 {
  margin-top: 36px;
  font-size: 24px;
}

code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.88em;
}

pre {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow-x: auto;
}

pre code {
  display: block;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  line-height: 1.5;
}

.manual {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.toc {
  position: sticky;
  top: 62px;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
  padding: 28px 8px 40px 0;
  font-size: 15px;
}

.toc h4 {
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.toc h4:first-child {
  margin-top: 0;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 3px 10px;
  border-left: 2px solid transparent;
  color: var(--text);
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  color: var(--white);
  background: var(--panel);
}

.toc a[aria-current="page"] {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--white);
  font-weight: 600;
}

.toc ul ul {
  margin: 2px 0 6px 14px;
}

.toc ul ul a {
  color: var(--muted);
  font-size: 14px;
}

.alllink {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.toc-m {
  display: none;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.toc-m summary {
  padding: 10px 16px;
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
}

.toc-m .toc-body,
.toc-m > h4,
.toc-m > ul {
  margin-left: 12px;
  margin-right: 12px;
}

.toc-m a {
  display: block;
  padding: 4px 8px;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

.toc-m a[aria-current="page"] {
  color: var(--white);
  font-weight: 600;
}

.toc-m ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-m ul ul {
  margin-left: 14px;
}

.toc-m h4 {
  margin: 12px 12px 4px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.doc {
  min-width: 0;
  max-width: 840px;
  padding: 36px 0 72px;
}

.doc h1 {
  margin-bottom: 8px;
  font-size: 38px;
}

.doc h2 {
  position: relative;
  margin: 42px 0 12px;
  padding-top: 8px;
  font-size: 26px;
}

.doc h3 {
  position: relative;
  margin: 30px 0 10px;
}

.doc .chapter > h2 {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 32px;
}

.crumb {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.crumb a {
  color: var(--muted);
}

.meta {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
}

.onpage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 14.5px;
}

.onpage span {
  margin-right: 6px;
  color: var(--muted);
  font-weight: 600;
}

.onpage a {
  padding: 2px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
}

.onpage a:hover {
  border-color: var(--accent);
  color: var(--white);
}

.anchor {
  position: absolute;
  left: -1.1em;
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
}

.doc h2:hover .anchor,
.doc h3:hover .anchor,
.anchor:focus-visible {
  opacity: 0.8;
}

.doc ul,
.doc ol {
  margin: 0 0 18px;
  padding-left: 26px;
}

.doc li {
  margin: 0 0 6px;
}

.tablewrap {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.5;
}

th,
td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--panel-2);
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

tbody td:first-child {
  color: var(--white);
}

.note {
  margin: 24px 0;
  padding: 14px 18px 4px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
}

.note.tip {
  border-left-color: var(--good);
}

.note.warning {
  border-left-color: var(--bad);
}

.note-label {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.note.tip .note-label {
  color: var(--good);
}

.note.warning .note-label {
  color: var(--bad);
}

.shot {
  margin: 28px 0;
}

.shot a {
  display: block;
}

.shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 48px 0 24px;
}

.pager a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.pager a:hover {
  border-color: var(--accent);
}

.pager small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.pager .next {
  grid-column: 2;
  text-align: right;
}

.pager .prev {
  grid-column: 1;
}

.help {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.manual-hero {
  background:
    radial-gradient(800px 320px at 80% -20%, rgba(255, 138, 31, 0.16), transparent 62%),
    var(--bg);
}

.mini {
  margin: 28px 0 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.part {
  margin-bottom: 40px;
}

.part h2 {
  font-size: 24px;
}

.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapters a {
  position: relative;
  display: block;
  min-height: 100%;
  padding: 14px 16px 14px 58px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.chapters a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.chapters .num {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.chapters .ct {
  display: block;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.chapters .cd {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  background: var(--bg-2);
  font-size: 14px;
  color: var(--muted);
}

.fcols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.fcols h4 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.fcols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fcols li {
  margin: 0 0 4px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer .wrap {
  max-width: 1280px;
}

.fine {
  margin: 32px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1060px) {
  .manual {
    display: block;
  }

  .toc {
    display: none;
  }

  .toc-m {
    display: block;
  }

  .doc {
    max-width: none;
  }

  .anchor {
    display: none;
  }
}

@media (max-width: 860px) {
  .cards,
  .feat,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .fcols {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16.5px;
  }

  h1,
  .hero h1,
  .doc h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 25px;
  }

  .top {
    position: static;
  }

  .top-in {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .nav {
    margin-left: 0;
    width: 100%;
    gap: 4px 18px;
  }

  .sec {
    padding: 44px 0;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .cards,
  .feat,
  .steps,
  .dl {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .list a {
    flex: 1 1 100%;
  }

  .manual {
    padding: 0 16px;
  }

  .pager {
    grid-template-columns: 1fr;
  }

  .pager .next,
  .pager .prev {
    grid-column: 1;
    text-align: left;
  }

  th,
  td {
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card,
  .chapters a {
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .chapters a:hover {
    transform: none;
  }
}

@media print {
  .top,
  .footer,
  .toc,
  .toc-m,
  .pager,
  .skip,
  .anchor,
  .help {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .manual {
    display: block;
    max-width: none;
    padding: 0;
  }

  .doc {
    max-width: none;
    padding: 0;
  }

  h1,
  h2,
  h3,
  h4,
  .note-label,
  thead th,
  tbody td:first-child {
    color: #111;
  }

  a {
    color: #111;
  }

  code,
  pre,
  .note,
  .tablewrap,
  thead th {
    background: #f1f1f1;
    border-color: #bbb;
    color: #111;
  }

  th,
  td {
    border-color: #bbb;
  }

  .shot img {
    box-shadow: none;
    border-color: #bbb;
  }

  .doc .chapter > h2 {
    page-break-before: always;
    border-top: 0;
  }

  h2,
  h3,
  .shot,
  .note,
  tr {
    page-break-inside: avoid;
  }
}
