:root {
  --ink: #1a1f26;
  --muted: #687280;
  --soft: #eef3f8;
  --line: #dce4ed;
  --paper: #ffffff;
  --page: #f6f8fb;
  --brand: #7056ff;
  --brand-dark: #5840d8;
  --cyan: #00a9c2;
  --green: #178a61;
  --amber: #a86708;
  --red: #b63d51;
  --shadow: 0 12px 34px rgba(22, 38, 62, .09);
  --radius: 16px;
  --header: 68px;
  --sidebar: 286px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 22px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
svg { display: block; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--brand-dark);
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.docs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header);
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(7,17,27,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.docs-header__inner {
  width: min(100% - 32px, 1500px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 1.02rem;
  font-weight: 820;
  letter-spacing: -.025em;
}
.brand-logo { width: 132px; height: auto; object-fit: contain; }
.brand-mark {
  width: 34px;
  height: 34px;
  position: relative;
  border-radius: 11px;
  border: 1px solid rgba(0,224,255,.45);
  background: #0c151c;
  box-shadow: 0 0 22px rgba(0,224,255,.16);
}
.brand-mark::before {
  content: "/";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #00e0ff;
  font-size: 1.42rem;
  font-weight: 520;
  line-height: 1;
}
.brand em {
  margin-left: 4px;
  color: #b9c6d7;
  font-size: .78rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}
.header-search {
  position: relative;
  width: min(480px, 44vw);
  margin: 0 auto;
}
.header-search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #718095;
  transform: translateY(-50%);
  pointer-events: none;
}
.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 42px;
  border: 1px solid #cfd9e5;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #f8fafc;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.header-search input:focus {
  border-color: var(--brand);
  background: white;
  box-shadow: 0 0 0 4px rgba(0,102,255,.14);
}
.search-clear {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 30px;
  height: 30px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #68768a;
  background: transparent;
  transform: translateY(-50%);
}
.search-clear.visible { display: grid; }
.header-actions { display: flex; align-items: center; gap: 8px; min-width: max-content; }
.header-link,
.language-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  color: #4d5c70;
  font-size: .86rem;
  font-weight: 760;
}
.header-link:hover, .language-link:hover { color: var(--brand-dark); background: #eef4ff; }
.language-link { border: 1px solid var(--line); }
.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  background: white;
}
.menu-button svg { width: 20px; height: 20px; }

.docs-layout {
  width: min(100%, 1600px);
  min-height: calc(100vh - var(--header));
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: var(--header);
  height: calc(100vh - var(--header));
  overflow-y: auto;
  padding: 28px 20px 38px;
  border-right: 1px solid var(--line);
  background: #fbfcfe;
  scrollbar-width: thin;
}
.sidebar__label {
  margin: 0 10px 9px;
  color: #8b96a5;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sidebar nav { display: grid; gap: 3px; }
.sidebar a {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  color: #536175;
  font-size: .88rem;
  font-weight: 660;
  line-height: 1.25;
  transition: color .15s ease, background .15s ease;
}
.sidebar a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c4cdd8;
}
.sidebar a:hover { color: var(--brand-dark); background: #eef4ff; }
.sidebar a.active { color: var(--brand-dark); background: #e7f0ff; }
.sidebar a.active::before { background: var(--brand); box-shadow: 0 0 0 4px rgba(0,102,255,.14); }
.sidebar__support {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid #b8cced;
  border-radius: 12px;
  color: #35445a;
  background: #f1f6ff;
  font-size: .8rem;
}
.sidebar__support strong { display: block; margin-bottom: 4px; color: var(--ink); }
.sidebar__support a { min-height: auto; display: inline; padding: 0; color: var(--brand-dark); text-decoration: underline; }
.sidebar__support a::before { display: none; }

.docs-main { min-width: 0; padding: 0 50px 80px; background: var(--paper); }
.docs-hero {
  margin: 0 -50px 46px;
  padding: 68px max(50px, calc((100% - 960px)/2));
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 5%, rgba(0,224,255,.1), transparent 30%),
    radial-gradient(circle at 8% 50%, rgba(0,102,255,.1), transparent 34%),
    linear-gradient(180deg, #fbfdff, #f6f8fc);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--brand); }
.docs-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(2.45rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.docs-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(1.03rem, 2vw, 1.2rem); }
.quick-grid {
  max-width: 960px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 8px 22px rgba(22,38,62,.05);
}
.quick-card:hover { border-color: #9ebcf0; box-shadow: 0 10px 26px rgba(0,102,255,.1); }
.quick-card span { color: var(--muted); font-size: .82rem; }
.quick-card strong { font-size: 1.02rem; }
.quick-card b { color: var(--brand-dark); font-size: .82rem; }

.article { max-width: 960px; margin: 0 auto; }
.doc-section { padding: 34px 0 44px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 18px); }
.doc-section[hidden] { display: none; }
.doc-section:last-of-type { border-bottom: 0; }
.section-kicker { margin: 0 0 8px; color: var(--brand); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.doc-section h2 { margin: 0 0 18px; font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.16; letter-spacing: -.035em; }
.doc-section h3 { margin: 30px 0 10px; font-size: 1.14rem; line-height: 1.3; letter-spacing: -.015em; }
.doc-section h4 { margin: 22px 0 8px; font-size: 1rem; }
.doc-section p, .doc-section li { color: #46566b; }
.doc-section p { margin: 0 0 15px; }
.doc-section ul, .doc-section ol { margin: 12px 0 20px; padding-left: 23px; }
.doc-section li { margin: 7px 0; padding-left: 3px; }
.doc-section strong { color: #202e43; }
.doc-section a:not(.step-card):not(.action-link) { color: var(--brand-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lead { color: #35445a !important; font-size: 1.05rem; }

.steps { margin: 20px 0; display: grid; gap: 12px; counter-reset: steps; }
.step-card {
  position: relative;
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfe;
  counter-increment: steps;
}
.step-card::before {
  content: counter(steps);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--brand);
  font-size: .84rem;
  font-weight: 850;
}
.step-card strong { display: block; margin-bottom: 2px; }
.step-card span { color: var(--muted); font-size: .91rem; }

.callout {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid #c9d7e8;
  border-left: 4px solid var(--cyan);
  border-radius: 12px;
  color: #36546b;
  background: #f1f9fc;
}
.callout strong { display: block; margin-bottom: 4px; color: #153f55; }
.callout.warning { border-color: #edd3a7; border-left-color: #e19b2f; color: #76521e; background: #fff9ef; }
.callout.warning strong { color: #66420c; }
.callout.success { border-color: #b9e0d0; border-left-color: #2e9c72; color: #28654d; background: #f1fbf7; }
.callout.success strong { color: #15523c; }
.callout.danger { border-color: #e9bdc5; border-left-color: #ce5267; color: #7e3441; background: #fff5f7; }
.callout.danger strong { color: #6e2633; }

.two-col, .three-col { display: grid; gap: 14px; margin: 20px 0; }
.two-col { grid-template-columns: repeat(2, minmax(0,1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0,1fr)); }
.info-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; }
.info-card h3 { margin: 0 0 7px; font-size: 1.02rem; }
.info-card p, .info-card ul { margin-bottom: 0; font-size: .91rem; }
.status-table { width: 100%; margin: 20px 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.status-table th, .status-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.status-table th { color: #36455b; background: #f4f7fa; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.status-table td { color: #536175; font-size: .9rem; }
.status-table tr:last-child td { border-bottom: 0; }
.status-table td:first-child { color: #25334a; font-weight: 720; }
.path {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 1px 2px;
  padding: 2px 8px;
  border: 1px solid #d8e0e8;
  border-radius: 7px;
  color: #39495f;
  background: #f5f7fa;
  font-size: .86em;
  font-weight: 720;
  overflow-wrap: anywhere;
  white-space: normal;
}
.action-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 16px;
  border-radius: 10px;
  color: white;
  background: var(--brand);
  font-size: .88rem;
  font-weight: 780;
}
.action-link:hover { background: var(--brand-dark); }

.search-state {
  display: none;
  max-width: 960px;
  margin: 36px auto 0;
  padding: 22px;
  border: 1px dashed #c8d2de;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: #fafbfd;
}
.search-state.visible { display: block; }
mark { padding: 0 2px; border-radius: 3px; color: inherit; background: #fff0a8; }

.docs-footer { padding: 30px 24px; border-top: 1px solid var(--line); color: var(--muted); background: #f8fafc; font-size: .85rem; }
.docs-footer__inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; }
.docs-footer a { color: var(--brand-dark); font-weight: 720; }

/* Controls use a restrained medium weight; headings keep their hierarchy. */
button,
.header-link,
.language-link {
  font-weight: 500 !important;
}
.sidebar-backdrop { display: none; }

@media (max-width: 1100px) {
  .header-link { display: none; }
  .docs-main { padding-inline: 36px; }
  .docs-hero { margin-inline: -36px; padding-inline: 36px; }
}

@media (max-width: 820px) {
  :root { --header: 62px; }
  body.menu-open { overflow: hidden; }
  .docs-header__inner { width: calc(100% - 24px); gap: 10px; }
  .brand em { display: none; }
  .header-search { flex: 1; width: auto; margin: 0; }
  .header-search input { height: 40px; font-size: .9rem; }
  .language-link { padding-inline: 10px; }
  .menu-button { display: grid; }
  .docs-layout { display: block; }
  .sidebar {
    position: fixed;
    z-index: 90;
    top: var(--header);
    left: 0;
    width: min(86vw, 330px);
    height: calc(100dvh - var(--header));
    transform: translateX(-103%);
    box-shadow: 18px 0 46px rgba(23,35,55,.18);
    transition: transform .2s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    z-index: 80;
    inset: var(--header) 0 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    border: 0;
    background: rgba(17,29,47,.4);
    transition: opacity .2s ease, visibility .2s ease;
  }
  .sidebar-backdrop.open { visibility: visible; opacity: 1; }
  .docs-main { padding: 0 24px 60px; }
  .docs-hero { margin: 0 -24px 30px; padding: 50px 24px 38px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 100px; }
  .doc-section { padding-block: 28px 36px; }
  .three-col { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .docs-header__inner { gap: 8px; }
  .brand-logo { width: 106px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-search input { padding-left: 36px; padding-right: 34px; }
  .header-search svg { left: 11px; }
  .search-clear { right: 3px; }
  .language-link { min-width: 42px; padding: 0 7px; }
  .docs-main { padding-inline: 17px; }
  .docs-hero { margin-inline: -17px; padding-inline: 17px; }
  .docs-hero h1 { font-size: 2.25rem; }
  .two-col { grid-template-columns: 1fr; }
  .status-table { display: block; overflow-x: auto; }
  .docs-footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
