:root {
  color-scheme: dark;
  --sidebar-width: 258px;
  --topbar-height: 58px;
  --bg: #0a0b0e;
  --sidebar: #0c0d11;
  --surface: #0e1014;
  --surface-2: #111318;
  --surface-3: #15181e;
  --surface-hover: #181b21;
  --line: #202329;
  --line-strong: #2b2f37;
  --text: #f1f2f4;
  --text-soft: #c7cad0;
  --muted: #8b909a;
  --muted-2: #646a74;
  --orange: #f25a1c;
  --orange-bright: #ff6a2b;
  --orange-soft: rgb(242 90 28 / 12%);
  --green: #4ade80;
  --purple: #c084fc;
  --blue: #60a5fa;
  --shadow: 0 18px 60px rgb(0 0 0 / 24%);
  --font-display: "Manrope", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f5;
  --sidebar: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f4f4f1;
  --surface-3: #ecece8;
  --surface-hover: #eeeeea;
  --line: #e1e1dc;
  --line-strong: #d1d1cb;
  --text: #17181b;
  --text-soft: #42454b;
  --muted: #6d7179;
  --muted-2: #8d9198;
  --orange-soft: rgb(242 90 28 / 9%);
  --shadow: 0 18px 50px rgb(36 32 28 / 10%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

::selection {
  background: rgb(242 90 28 / 35%);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* Sidebar */
.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.sidebar__header {
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 126px;
  height: auto;
}

.brand > span {
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

html[data-theme="light"] .brand img {
  filter: invert(1);
}

.search-wrap {
  position: relative;
  z-index: 3;
  padding: 16px 14px 8px;
}

.search {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.search:focus-within {
  border-color: rgb(242 90 28 / 60%);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.search svg {
  width: 15px;
  height: 15px;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 11px;
}

.search input::placeholder {
  color: var(--muted-2);
}

.search kbd {
  min-width: max-content;
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 8px;
  line-height: 1.4;
}

.search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% - 2px);
  right: 14px;
  left: 14px;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-3);
  box-shadow: var(--shadow);
}

.search-results a {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 6px;
}

.search-results a:hover {
  background: var(--surface-hover);
}

.search-results span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.search-results small {
  color: var(--muted);
  font-size: 9px;
}

.search-results p {
  margin: 0;
  padding: 10px;
  color: var(--muted);
  font-size: 10px;
}

.sidebar-nav {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 7px 10px 24px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.nav-group + .nav-group {
  margin-top: 22px;
}

.nav-group h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 5px;
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-group h2::after {
  width: 5px;
  height: 5px;
  margin-left: auto;
  transform: rotate(45deg);
  border-right: 1px solid var(--muted-2);
  border-bottom: 1px solid var(--muted-2);
  content: "";
}

.nav-group__icon {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  color: var(--muted);
}

.nav-group__icon svg {
  width: 13px;
  height: 13px;
}

.nav-link {
  position: relative;
  display: flex;
  min-height: 30px;
  align-items: center;
  margin: 1px 0;
  padding: 5px 10px 5px 31px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

a.nav-link:hover {
  background: var(--surface-hover);
  color: var(--text-soft);
}

.nav-link.is-active {
  background: var(--orange-soft);
  color: var(--text);
  font-weight: 600;
}

.nav-link.is-active::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgb(242 90 28 / 70%);
  content: "";
}

.nav-link--soon {
  cursor: default;
  opacity: 0.62;
}

.nav-link em {
  margin-left: auto;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-help {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin: 0 12px 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(74 222 128 / 10%);
}

.sidebar-help strong,
.sidebar-help a {
  display: block;
  line-height: 1.35;
}

.sidebar-help strong {
  color: var(--text-soft);
  font-size: 9px;
}

.sidebar-help a {
  color: var(--muted);
  font-size: 8px;
}

.sidebar-help > svg {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}

/* Top navigation */
.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  display: flex;
  height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgb(10 11 14 / 86%);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .topbar {
  background: rgb(247 247 245 / 88%);
}

.topbar__path {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.topbar__path svg {
  width: 11px;
  height: 11px;
  color: var(--muted-2);
}

.topbar__path strong {
  overflow: hidden;
  color: var(--text-soft);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.docs-language-selector {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.docs-language-selector select {
  min-width: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.topbar__nav > a:not(.open-app) {
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.topbar__nav > a:not(.open-app):hover {
  background: var(--surface-hover);
  color: var(--text);
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  color: var(--text);
}

.icon-button svg {
  width: 15px;
  height: 15px;
}

.theme-button .sun-icon,
html[data-theme="light"] .theme-button .moon-icon {
  display: none;
}

html[data-theme="light"] .theme-button .sun-icon {
  display: block;
}

.menu-button {
  display: none;
}

.open-app {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  margin-left: 5px;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  font-size: 9px;
  font-weight: 700;
}

.open-app svg {
  width: 12px;
  height: 12px;
}

/* Main frame */
.main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
}

.page {
  min-height: calc(100vh - var(--topbar-height));
}

.page.is-active {
  animation: page-enter 0.38s ease both;
}

.page-inner {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 36px 52px 72px;
}

.page-inner--home {
  width: min(100%, 970px);
}

.breadcrumb,
.article-breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 9px;
}

/* Home */
.home-hero {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 23px 0 26px;
  border-bottom: 1px solid var(--line);
}

.home-hero__glow {
  position: absolute;
  top: -100px;
  right: -110px;
  width: 340px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(242 90 28 / 11%), transparent 66%);
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 610px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgb(242 90 28 / 75%);
}

.home-hero h1 {
  margin: 13px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 1.07;
}

.home-hero h1 span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 700;
}

.home-hero__content > p {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 12px;
  height: 12px;
}

.button--primary {
  background: var(--text);
  color: var(--bg);
}

.button--primary:hover {
  background: #fff;
}

html[data-theme="light"] .button--primary:hover {
  background: #292b30;
}

.button--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text-soft);
}

.button--secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.home-hero__mark {
  position: absolute;
  right: 2%;
  bottom: 28px;
  width: 125px;
  height: 125px;
  transform: rotate(-10deg);
  opacity: 0.8;
}

.home-hero__mark::before,
.home-hero__mark::after,
.home-hero__mark span {
  position: absolute;
  border: 1px solid rgb(242 90 28 / 18%);
  border-radius: 50%;
  content: "";
}

.home-hero__mark::before {
  inset: 0;
}

.home-hero__mark::after {
  inset: 22px;
}

.home-hero__mark span:nth-child(1) {
  inset: 45px;
  background: var(--orange);
  box-shadow: 0 0 30px rgb(242 90 28 / 30%);
}

.home-hero__mark span:nth-child(2) {
  top: 4px;
  left: 57px;
  width: 9px;
  height: 9px;
  border: 0;
  background: var(--orange);
}

.home-hero__mark span:nth-child(3) {
  right: 12px;
  bottom: 22px;
  width: 6px;
  height: 6px;
  border: 0;
  background: var(--purple);
}

.home-section {
  padding-top: 28px;
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.section-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
}

.section-heading h2,
.home-footer-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.section-heading p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 12px;
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 600;
}

.section-label svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.section-label i {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.category-card {
  position: relative;
  display: flex;
  min-height: 154px;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

a.category-card:hover {
  z-index: 1;
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 14px 30px rgb(0 0 0 / 12%);
}

.category-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 0 0 9px 9px;
  background: var(--orange);
  content: "";
  transition: transform 0.28s ease;
}

a.category-card:hover::after {
  transform: scaleX(1);
}

.card-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.card-icon svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.9;
}

.card-icon--orange {
  background: rgb(242 90 28 / 10%);
  color: var(--orange-bright);
}

.card-icon--purple {
  background: rgb(192 132 252 / 10%);
  color: var(--purple);
}

.card-icon--green {
  background: rgb(74 222 128 / 10%);
  color: var(--green);
}

.card-icon--blue {
  background: rgb(96 165 250 / 10%);
  color: var(--blue);
}

.category-card__meta {
  position: absolute;
  top: 16px;
  right: 14px;
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-card h3 {
  margin: 11px 0 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: -0.02em;
}

.category-card p {
  max-width: 250px;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 600;
}

.card-link b {
  color: var(--orange);
  font-size: 11px;
  transition: transform 0.18s ease;
}

a.category-card:hover .card-link b {
  transform: translateX(3px);
}

.category-card--muted {
  background: transparent;
}

.card-link--muted {
  color: var(--muted-2);
}

.home-footer-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 90% 10%, rgb(242 90 28 / 12%), transparent 38%),
    var(--surface);
}

.home-footer-card h2 {
  margin-top: 7px;
}

.home-footer-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

/* Tutorial articles */
.page-inner--article {
  width: min(100%, 820px);
  padding-top: 42px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
}

.article-breadcrumb a:hover {
  color: var(--text);
}

.article-breadcrumb span:last-child {
  color: var(--text-soft);
}

.article-header {
  padding: 14px 0 29px;
  border-bottom: 1px solid var(--line);
}

.article-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-kicker .card-icon {
  width: 30px;
  height: 30px;
}

.article-header h1 {
  margin: 16px 0 0;
  outline: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 1.06;
}

.article-header > p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-meta svg {
  width: 12px;
  height: 12px;
}

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin: 28px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left-width: 2px;
  border-radius: 8px;
  background: var(--surface);
}

.callout__icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.callout strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-soft);
  font-size: 10px;
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.callout--info {
  border-left-color: var(--blue);
  background: rgb(96 165 250 / 5%);
}

.callout--info .callout__icon {
  background: rgb(96 165 250 / 13%);
  color: var(--blue);
}

.callout--tip {
  border-left-color: var(--green);
  background: rgb(74 222 128 / 5%);
}

.callout--tip .callout__icon {
  background: rgb(74 222 128 / 13%);
  color: var(--green);
}

.callout--warning {
  border-left-color: var(--orange);
  background: var(--orange-soft);
}

.callout--warning .callout__icon {
  background: rgb(242 90 28 / 15%);
  color: var(--orange-bright);
}

.article-section {
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--topbar-height) + 20px);
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}

.step-heading > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(242 90 28 / 25%);
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange-bright);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.step-heading p {
  margin: 0 0 1px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.step-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.article-section > p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.article-section > p strong {
  color: var(--text-soft);
  font-weight: 600;
}

.product-image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  margin-top: 23px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
  box-shadow: 0 18px 40px rgb(0 0 0 / 18%);
  cursor: zoom-in;
}

.product-image img {
  display: block;
  width: 100%;
  height: auto;
  transition:
    transform 0.45s ease,
    opacity 0.2s ease;
}

.product-image:hover img {
  transform: scale(1.012);
  opacity: 0.9;
}

.product-image > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 6px;
  background: rgb(10 11 14 / 80%);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.product-image:hover > span,
.product-image:focus-visible > span {
  opacity: 1;
  transform: translateY(0);
}

.product-image > span svg {
  width: 13px;
  height: 13px;
}

.product-image--portrait {
  max-height: 650px;
}

.product-image--portrait img {
  max-height: 650px;
  object-fit: contain;
}

.mock-window {
  overflow: hidden;
  margin-top: 23px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mock-window__bar {
  display: flex;
  height: 39px;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.mock-window__bar > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mock-window__bar > span:first-child {
  background: var(--orange);
}

.mock-window__bar p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.mock-window__bar button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: default;
}

.mock-form {
  padding: 23px;
}

.mock-form__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.mock-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #ff9c65);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.mock-form__heading strong,
.mock-form__heading span {
  display: block;
}

.mock-form__heading strong {
  font-size: 10px;
}

.mock-form__heading span {
  color: var(--muted);
  font-size: 8px;
}

.mock-form > label,
.mock-form__row label {
  display: block;
}

.mock-form label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.mock-form label > b {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 500;
}

.mock-form label > b i {
  color: var(--muted);
  font-style: normal;
}

.mock-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 13px;
}

.mock-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 8px;
}

.mock-form__actions span {
  color: var(--muted);
}

.mock-form__actions strong {
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
}

.article-section .callout {
  margin-bottom: 0;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
}

.check-list li > span {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgb(74 222 128 / 11%);
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}

.check-list strong {
  color: var(--text-soft);
  font-weight: 600;
}

.success-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 24px;
  padding: 17px;
  border: 1px solid rgb(74 222 128 / 20%);
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgb(74 222 128 / 7%), transparent),
    var(--surface);
}

.success-panel__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgb(74 222 128 / 12%);
  color: var(--green);
}

.success-panel__icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.success-panel strong {
  display: block;
  color: var(--text-soft);
  font-size: 10px;
}

.success-panel p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
}

.signal-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.signal-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

.signal-icon--green {
  background: rgb(74 222 128 / 10%);
  color: var(--green);
}

.signal-icon--orange {
  background: var(--orange-soft);
  color: var(--orange-bright);
}

.signal-icon--purple {
  background: rgb(192 132 252 / 10%);
  color: var(--purple);
}

.signal-icon--blue {
  background: rgb(96 165 250 / 10%);
  color: var(--blue);
}

.signal-grid strong {
  display: block;
  font-size: 9px;
}

.signal-grid p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.workflow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 9px;
  margin-top: 23px;
}

.workflow > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.workflow > div > span {
  display: block;
  margin-bottom: 9px;
  color: var(--orange);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.workflow strong {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
}

.workflow p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.workflow > i {
  align-self: center;
  color: var(--muted-2);
  font-size: 10px;
  font-style: normal;
}

.article-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 28px;
}

.article-pagination a {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.article-pagination a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.article-pagination a:last-child {
  align-items: flex-end;
  text-align: right;
}

.article-pagination span {
  color: var(--muted);
  font-size: 8px;
}

.article-pagination strong {
  margin-top: 3px;
  font-size: 10px;
}

/* Screenshot dialog */
.image-dialog {
  width: min(94vw, 1280px);
  max-width: none;
  max-height: 92vh;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 35px 100px rgb(0 0 0 / 55%);
}

.image-dialog::backdrop {
  background: rgb(0 0 0 / 78%);
  backdrop-filter: blur(7px);
}

.image-dialog img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.image-dialog__close {
  position: sticky;
  z-index: 2;
  top: 8px;
  float: right;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin: 4px 4px -34px 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 7px;
  background: rgb(10 11 14 / 82%);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.mobile-scrim {
  position: fixed;
  z-index: 35;
  inset: 0;
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(3px);
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .page-inner {
    padding-right: 38px;
    padding-left: 38px;
  }

  .home-hero__mark {
    right: -25px;
    opacity: 0.58;
  }
}

@media (max-width: 959px) {
  .sidebar {
    width: min(86vw, 285px);
    transform: translateX(-102%);
    box-shadow: 20px 0 55px rgb(0 0 0 / 35%);
    transition: transform 0.28s cubic-bezier(0.2, 0.75, 0.2, 1);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .topbar {
    left: 0;
    padding-left: 15px;
  }

  .menu-button {
    display: grid;
    flex: 0 0 auto;
  }

  .topbar__path {
    margin-right: auto;
  }

  .main {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .topbar {
    gap: 9px;
    padding-right: 12px;
  }

  .topbar__nav > a:not(.open-app) {
    display: none;
  }

  .open-app {
    padding: 6px 9px;
  }

  .docs-language-selector {
    min-height: 30px;
  }

  .page-inner {
    padding: 28px 20px 55px;
  }

  .home-hero {
    min-height: auto;
    padding-top: 15px;
  }

  .home-hero__mark {
    display: none;
  }

  .home-hero h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .category-grid,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 145px;
  }

  .home-footer-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-header h1 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .mock-form {
    padding: 18px;
  }

  .mock-form__row {
    grid-template-columns: 1fr;
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow > i {
    transform: rotate(90deg);
    justify-self: center;
  }

  .article-pagination {
    grid-template-columns: 1fr;
  }

  .article-pagination a:last-child {
    align-items: flex-start;
    text-align: left;
  }
}

/* Arabic / RTL documentation */
html[dir="rtl"] body {
  direction: rtl;
  font-family: Tahoma, Arial, "Inter", sans-serif;
  text-align: right;
}

html[dir="rtl"] .sidebar {
  inset: 0 0 0 auto;
  right: 0;
  left: auto;
  border-right: 0;
  border-left: 1px solid var(--line);
}

html[dir="rtl"] .topbar {
  right: var(--sidebar-width);
  left: 0;
  padding-right: 30px;
  padding-left: 24px;
}

html[dir="rtl"] .main {
  margin-right: var(--sidebar-width);
  margin-left: 0;
}

html[dir="rtl"] .topbar,
html[dir="rtl"] .topbar__path,
html[dir="rtl"] .topbar__nav,
html[dir="rtl"] .brand,
html[dir="rtl"] .sidebar-help,
html[dir="rtl"] .button,
html[dir="rtl"] .article-pagination a {
  direction: rtl;
}

html[dir="rtl"] .topbar__path svg,
html[dir="rtl"] .button svg,
html[dir="rtl"] .sidebar-help > svg,
html[dir="rtl"] .card-link b {
  transform: scaleX(-1);
}

html[dir="rtl"] .open-app {
  margin-right: 5px;
  margin-left: 0;
}

html[dir="rtl"] .nav-link--soon em {
  margin-right: auto;
  margin-left: 0;
  padding-right: 7px;
  padding-left: 0;
  border-right: 1px solid var(--muted-2);
  border-left: 0;
}

html[dir="rtl"] .search-results {
  right: 14px;
  left: 14px;
}

html[dir="rtl"] .article-meta,
html[dir="rtl"] .article-heading,
html[dir="rtl"] .callout,
html[dir="rtl"] .success-panel,
html[dir="rtl"] .category-card,
html[dir="rtl"] .step,
html[dir="rtl"] .signal-grid,
html[dir="rtl"] .action-flow {
  text-align: right;
}

html[dir="rtl"] .mock-field,
html[dir="rtl"] .progress-dashboard,
html[dir="rtl"] .metric-value,
html[dir="rtl"] .category-card__meta {
  direction: rtl;
}

@media (max-width: 959px) {
  html[dir="rtl"] .sidebar {
    transform: translateX(102%);
    box-shadow: -20px 0 55px rgb(0 0 0 / 35%);
  }

  html[dir="rtl"] .sidebar.is-open {
    transform: translateX(0);
  }

  html[dir="rtl"] .topbar {
    right: 0;
    padding-right: 15px;
  }

  html[dir="rtl"] .main {
    margin-right: 0;
  }

  html[dir="rtl"] .topbar__path {
    margin-right: 0;
    margin-left: auto;
  }
}

@media (max-width: 430px) {
  .topbar__path span,
  .topbar__path svg,
  .open-app svg {
    display: none;
  }

  .topbar__path {
    font-size: 8px;
  }

  .theme-button {
    display: none;
  }

  .home-hero h1 span {
    margin-top: 8px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-number {
    margin-bottom: 2px;
  }

  .category-card__meta {
    max-width: 90px;
    text-align: right;
  }

  .article-meta {
    gap: 10px;
  }
}

/* Data-driven tutorial catalog */
.nav-link__number {
  width: 20px;
  flex: 0 0 auto;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.nav-link.is-active .nav-link__number {
  color: var(--orange-bright);
}

.home-hero h1 {
  outline: 0;
}

.tutorial-group {
  scroll-margin-top: calc(var(--topbar-height) + 22px);
}

.tutorial-group + .tutorial-group {
  margin-top: 34px;
  padding-top: 31px;
  border-top: 1px solid var(--line);
}

.tutorial-group__heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 13px;
  margin-bottom: 14px;
}

.tutorial-group__heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.tutorial-group__heading p {
  max-width: 580px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tutorial-card {
  position: relative;
  display: flex;
  min-height: 174px;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.tutorial-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--card-accent, var(--orange));
  content: "";
  opacity: 0.65;
}

.tutorial-card::after {
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--card-accent, var(--orange)) 12%, transparent),
    transparent 68%
  );
  content: "";
  pointer-events: none;
}

.tutorial-card:hover {
  z-index: 1;
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 15px 32px rgb(0 0 0 / 13%);
}

.tutorial-card--orange {
  --card-accent: var(--orange-bright);
}

.tutorial-card--purple {
  --card-accent: var(--purple);
}

.tutorial-card--green {
  --card-accent: var(--green);
}

.tutorial-card--blue {
  --card-accent: var(--blue);
}

.tutorial-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tutorial-card__number {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-accent) 30%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-accent) 10%, transparent);
  color: var(--card-accent);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
}

.tutorial-card__time {
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tutorial-card h3 {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.tutorial-card p {
  position: relative;
  z-index: 1;
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.tutorial-card .card-link {
  position: relative;
  z-index: 1;
}

.tutorial-card:hover .card-link b {
  transform: translateX(3px);
}

.screenshot-language-note {
  margin-top: 36px;
  margin-bottom: 0;
}

.click-path {
  display: grid;
  gap: 8px;
  margin-top: 17px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.click-path > strong {
  color: var(--muted-2);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.click-path > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.click-path__item {
  padding: 4px 7px;
  border: 1px solid rgb(242 90 28 / 17%);
  border-radius: 5px;
  background: var(--orange-soft);
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 600;
}

.click-path__arrow {
  color: var(--muted-2);
  font-size: 9px;
}

.tutorial-figure {
  margin: 23px 0 0;
}

.tutorial-figure .product-image {
  margin-top: 0;
}

.tutorial-figure figcaption {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 8px;
  text-align: center;
}

.tutorial-success {
  margin-top: 30px;
}

html[dir="rtl"] .tutorial-card,
html[dir="rtl"] .tutorial-group__heading,
html[dir="rtl"] .click-path {
  text-align: right;
}

html[dir="rtl"] .tutorial-card::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .tutorial-card::after {
  right: auto;
  left: -45px;
}

html[dir="rtl"] .tutorial-card:hover .card-link b,
html[dir="rtl"] .click-path__arrow {
  transform: scaleX(-1);
}

@media (max-width: 700px) {
  .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-card {
    min-height: 158px;
  }
}

@media (max-width: 430px) {
  .tutorial-group__heading {
    grid-template-columns: 1fr;
  }

  .click-path {
    padding: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
