@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/Archivo.var.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/Archivo-italic.var.woff2") format("woff2");
}
@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/MartianMono.var.woff2") format("woff2");
}

:root {
  --font-display: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Roboto, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #ffffff;
  --bg-soft: #f7f5f2;
  --bg-muted: #f1efeb;
  --panel: #ffffff;
  --panel-raised: #ffffff;
  --fg: #0b0a08;
  --fg-soft: #2d2c29;
  --muted: #5b5a56;
  --faint: #8a8882;
  --line: #e3e1dd;
  --line-mid: #cfccc7;
  --line-strong: #0b0a08;
  --accent: #ff2e97;
  --accent-strong: #cf0064;
  --accent-soft: #ffe9f3;
  --accent-faint: #fff5f9;
  --yellow: #ffd60a;
  --green: #008b56;
  --blue: #1450d8;
  --orange: #b45309;
  --cream: #fbf0df;
  --code-bg: #0e0e0e;
  --code-head: #191919;
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-h: 68px;
  --tabbar-h: 48px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 5px;
  --shadow-sm: 0 1px 2px rgba(11, 10, 8, 0.05);
  --shadow-lg: 0 20px 60px rgba(11, 10, 8, 0.13);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d0a0c;
  --bg-soft: #141114;
  --bg-muted: #1b171a;
  --panel: #121012;
  --panel-raised: #181418;
  --fg: #eceae8;
  --fg-soft: #d4d1ce;
  --muted: #aaa5a7;
  --faint: #817c7f;
  --line: #2a2528;
  --line-mid: #3b3539;
  --line-strong: #eceae8;
  --accent: #ff5fae;
  --accent-strong: #ff8ec7;
  --accent-soft: #2b0b1b;
  --accent-faint: #1b0a12;
  --green: #45d18d;
  --blue: #82aaff;
  --orange: #ffb86b;
  --cream: #1b1610;
  --code-bg: #0a090a;
  --code-head: #141214;
  --header-bg: rgba(13, 10, 12, 0.86);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--tabbar-h) + 24px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll {
  overflow: hidden;
}
::selection {
  background: var(--accent);
  color: #fff;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg);
}
p {
  margin: 0;
}
code,
pre,
kbd {
  font-family: var(--font-mono);
}
kbd {
  font-size: 10px;
  line-height: 1;
  border: 1px solid var(--line-mid);
  background: var(--bg);
  color: var(--faint);
  border-radius: 3px;
  padding: 3px 5px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 12px;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.mobile-only {
  display: none !important;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.icon-button:hover {
  color: var(--fg);
  background: var(--bg-muted);
}
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 650;
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.16s;
}
.primary-button {
  background: var(--fg);
  color: var(--bg);
}
.primary-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.secondary-button {
  background: transparent;
  color: var(--fg);
}
.secondary-button:hover {
  background: var(--fg);
  color: var(--bg);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
  color: var(--accent-strong);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.text-link:hover {
  color: var(--accent);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.eyebrow-dot + * {
  margin-left: 0;
}

/* ---------- announcement + header ---------- */
.announcement {
  position: relative;
  z-index: 60;
  min-height: 38px;
  background: #0b0a08;
  color: #f5f2ef;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 46px;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.announcement-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.announcement-link:hover .announcement-cta {
  color: var(--accent);
}
.announcement-cta {
  color: #b9b4b1;
  transition: color 0.15s;
}
.announcement-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #8d8785;
  border-radius: 3px;
}
.announcement-close:hover {
  color: #fff;
  background: #242120;
}
.banner-hidden .announcement {
  display: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.header-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.header-right {
  gap: 7px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand .logo {
  width: 102px;
  height: auto;
}
.logo-dark {
  display: none;
}
[data-theme="dark"] .logo-light {
  display: none;
}
[data-theme="dark"] .logo-dark {
  display: block;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 520;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.primary-nav a:hover {
  color: var(--fg);
  background: var(--bg-muted);
}
.primary-nav a.is-active {
  color: var(--fg);
  background: var(--bg-muted);
  font-weight: 620;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 272px;
  height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--faint);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.search-trigger:hover {
  border-color: var(--line-mid);
  background: var(--bg);
}
.search-trigger-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.search-trigger kbd {
  flex-shrink: 0;
}
.header-social {
  width: 34px;
  height: 34px;
}
.install-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  margin-left: 8px;
  border: 1px solid #0b0a08;
  border-radius: 3px;
  background: #0b0a08;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.install-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.install-version {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #c9c4c2;
  font-weight: 400;
  padding-left: 8px;
  border-left: 1px solid #3c3837;
}
.lang-menu {
  position: relative;
}
.lang-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 8px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}
.lang-menu > summary::-webkit-details-marker {
  display: none;
}
.lang-menu > summary:hover {
  color: var(--fg);
  background: var(--bg-muted);
}
.lang-menu .chev {
  color: var(--faint);
  transition: transform 0.18s;
}
.lang-menu[open] > summary {
  background: var(--bg-muted);
  color: var(--fg);
}
.lang-menu[open] .chev {
  transform: rotate(180deg);
}
.lang-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 252px;
  padding: 7px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 80;
}
.lang-popover-head {
  padding: 8px 10px 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 4px;
  color: var(--fg-soft);
}
.lang-option:hover {
  background: var(--bg-muted);
}
.lang-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-option strong {
  font-size: 13.5px;
  font-weight: 600;
}
.lang-option small {
  font-size: 11px;
  color: var(--faint);
}
.lang-option.is-current {
  background: var(--accent-faint);
  color: var(--accent-strong);
}
.lang-option.is-current svg {
  color: var(--accent);
}
.theme-icon-dark {
  display: none;
}
[data-theme="dark"] .theme-icon-light {
  display: none;
}
[data-theme="dark"] .theme-icon-dark {
  display: block;
}
.mobile-panel {
  display: none;
}
.mobile-menu-button {
  display: none;
}

/* ---------- docs tab bar ---------- */
.docs-tabbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  height: var(--tabbar-h);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.docs-tabbar-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: stretch;
  gap: 1px;
  overflow-x: auto;
  scrollbar-width: none;
}
.docs-tabbar-inner::-webkit-scrollbar {
  display: none;
}
.docs-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 520;
  white-space: nowrap;
  transition: color 0.15s;
}
.docs-tab svg {
  color: var(--faint);
}
.docs-tab:hover {
  color: var(--fg);
}
.docs-tab.is-active {
  color: var(--fg);
  font-weight: 620;
}
.docs-tab.is-active svg {
  color: var(--accent);
}
.docs-tab.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

/* ---------- home hero ---------- */
.home {
  overflow: hidden;
}
.hero {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--fg) 7%, transparent) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 36%, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 36%, #000 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(50px, 6vw, 84px) var(--gutter) clamp(52px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy {
  min-width: 0;
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-eyebrow:hover {
  color: var(--accent-strong);
}
.new-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(44px, 5.3vw, 74px);
  line-height: 0.94;
  font-weight: 820;
  letter-spacing: -0.052em;
  font-stretch: 92%;
  margin: 0 0 26px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
[lang="zh-Hans"] .hero h1,
[lang="zh-Hant"] .hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(38px, 3.95vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-stretch: normal;
  text-wrap: balance;
}
.hero-body {
  max-width: 560px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.68;
}
.hero-body code,
.code-inline {
  font-size: 13px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-muted);
  color: var(--fg);
  white-space: nowrap;
}
.hero-install {
  margin-top: 32px;
  max-width: 590px;
}
.hero-install-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}
.version-chip {
  margin-left: 5px;
  color: var(--faint);
  font-weight: 400;
  letter-spacing: 0;
}
.install-script-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
  color: var(--faint);
}
.install-script-link:hover {
  color: var(--accent-strong);
}
.hero-command {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 12px 52px 12px 16px;
  background: #0b0a08;
  color: #f2efec;
  border-radius: 3px;
  border: 1px solid #0b0a08;
}
.hero-command .prompt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.hero-command code {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.hero-command-copy {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #99928f;
}
.hero-command-copy:hover {
  background: #242120;
  color: #fff;
}
.hero-os-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}
.os-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-soft);
}
.os-tab {
  border: 0;
  border-radius: 2px;
  height: 28px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 520;
}
.os-tab:hover {
  color: var(--fg);
}
.os-tab.is-active {
  background: var(--fg);
  color: var(--bg);
}
.quickstart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  white-space: nowrap;
}
.quickstart-link:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}
.hero-visual {
  min-width: 0;
}
.benchmark {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--fg) 8%, transparent);
}
.benchmark-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-strong);
}
.benchmark-tab {
  height: 42px;
  padding: 0 6px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.benchmark-tab:last-child {
  border-right: 0;
}
.benchmark-tab:hover {
  color: var(--fg);
  background: var(--bg-soft);
}
.benchmark-tab.is-active {
  background: #0b0a08;
  color: #fff;
}
.benchmark-panel {
  padding: 18px 20px 15px;
}
.benchmark-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.benchmark-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.benchmark-sub {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--faint);
}
.benchmark-replay {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 10.5px;
  font-weight: 550;
  white-space: nowrap;
  padding: 3px 0;
}
.benchmark-replay:hover {
  color: var(--accent);
}
.replay-triangle {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}
.benchmark-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 62px;
  gap: 10px;
  align-items: center;
  min-height: 26px;
}
.bar-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.bar-name {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-version {
  font-size: 8.5px;
  color: var(--faint);
  font-family: var(--font-mono);
}
.bar-track {
  position: relative;
  height: 20px;
  background: var(--bg-muted);
  overflow: visible;
}
.bar-fill {
  display: block;
  height: 100%;
  width: var(--bar);
  background: var(--fg);
  position: relative;
  transform-origin: left center;
}
.benchmark.is-animated .bar-fill {
  animation: bar-grow 1.05s var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.bar-fill.is-bun {
  background: var(--accent);
}
.bar-bun {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 18px;
}
.bar-value {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 550;
  text-align: right;
  color: var(--fg);
  white-space: nowrap;
}
.benchmark-axis {
  display: flex;
  justify-content: space-between;
  margin: 7px 72px 0 98px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
}
.benchmark-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.5;
}
.benchmark-source {
  font-family: var(--font-mono);
  white-space: nowrap;
  font-size: 7.5px;
  color: var(--accent-strong);
}

/* ---------- used by ---------- */
.used-by {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.used-by-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 30px;
}
.used-by-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.logo-strip {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
}
.used-logo {
  font-size: 13px;
  font-weight: 750;
  color: var(--fg);
  opacity: 0.72;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}
.used-logo:hover {
  opacity: 1;
}
.used-logo-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.used-logo-spaced {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.used-logo-wide {
  font-size: 14px;
  letter-spacing: 0.12em;
}
.used-logo-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: -0.03em;
}
.used-logo-x {
  font-size: 18px;
  font-weight: 900;
}

/* ---------- general home sections ---------- */
.home-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) var(--gutter);
}
.section-heading {
  max-width: 800px;
  margin-bottom: 46px;
}
.section-heading h2 {
  margin: 16px 0 18px;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.section-heading p {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.features-section {
  padding-bottom: clamp(70px, 8vw, 120px);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 286px;
  padding: 26px 26px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.2s;
}
.feature-card:hover {
  background: var(--bg-soft);
}
.feature-card::after {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.feature-card:hover::after {
  width: calc(100% + 1px);
}
.feature-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}
.feature-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--accent);
}
.feature-card h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin-bottom: 9px;
}
.feature-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
  margin-bottom: 24px;
}
.feature-command {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
}
.feature-command code {
  font-size: 9.5px;
  color: var(--fg-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feature-card:hover .feature-command svg {
  color: var(--accent);
}

/* ---------- runtime section ---------- */
.runtime-section {
  max-width: none;
  background: #0b0a08;
  color: #f1efeb;
  padding-left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.runtime-section h2 {
  color: #fff;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.02;
  margin: 18px 0 22px;
}
.runtime-section .eyebrow {
  color: #99928f;
}
.runtime-section .eyebrow-dot {
  background: var(--accent);
}
.runtime-copy > p {
  color: #b9b3af;
  font-size: 15.5px;
  line-height: 1.72;
  max-width: 470px;
}
.check-list {
  list-style: none;
  margin: 27px 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #d8d3cf;
  font-size: 13px;
  line-height: 1.5;
}
.check-list svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.runtime-section .text-link {
  color: #fff;
  border-color: #6f6865;
}
.runtime-section .text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.code-window {
  border: 1px solid #312c2e;
  background: #111012;
  box-shadow: 14px 14px 0 rgba(255, 255, 255, 0.035);
}
.code-window-bar {
  height: 39px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid #312c2e;
  background: #171517;
}
.window-dots {
  display: flex;
  gap: 5px;
}
.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b3639;
}
.window-dots span:first-child {
  background: #ff5f57;
}
.window-dots span:nth-child(2) {
  background: #febc2e;
}
.window-dots span:nth-child(3) {
  background: #28c840;
}
.window-file {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #b3adaa;
}
.window-lang {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f686b;
}
.code-window pre {
  margin: 0;
  padding: 22px 22px 18px;
  overflow-x: auto;
  font-size: 11.2px;
  line-height: 1.8;
  color: #e7e3e0;
  tab-size: 2;
}
.c-key {
  color: #ff79c6;
}
.c-fn {
  color: #8be9fd;
}
.c-str {
  color: #f1fa8c;
}
.c-num {
  color: #bd93f9;
}
.c-bool {
  color: #bd93f9;
}
.code-window-terminal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #312c2e;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #8c8588;
  background: #0d0c0e;
}
.terminal-ok {
  color: #50fa7b;
}

/* ---------- quickstart ---------- */
.quickstart-section {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.quickstart-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 70px);
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: #0b0a08;
}
[data-theme="dark"] .quickstart-panel {
  background: var(--cream);
  color: var(--fg);
  border-color: var(--line-mid);
}
.quickstart-left h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  margin: 16px 0 17px;
  color: inherit;
}
.quickstart-left p {
  max-width: 450px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #5b5349;
}
[data-theme="dark"] .quickstart-left p {
  color: var(--muted);
}
.quickstart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.quickstart-panel .secondary-button {
  border-color: #0b0a08;
  color: #0b0a08;
}
.quickstart-panel .secondary-button:hover {
  background: #0b0a08;
  color: #fff;
}
[data-theme="dark"] .quickstart-panel .secondary-button {
  border-color: var(--line-mid);
  color: var(--fg);
}
.quickstart-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quickstep {
  position: relative;
}
.quickstep-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 7px;
}
.quickstep-num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent-strong);
}
.quickstep-command {
  background: #0b0a08;
  border: 1px solid #0b0a08;
  padding: 12px 14px;
  overflow-x: auto;
}
.quickstep-command code {
  font-size: 10.5px;
  color: #f1efeb;
  white-space: nowrap;
}
.quickstep-line {
  display: block;
  width: 1px;
  height: 10px;
  margin-left: 15px;
  background: #c9b9a4;
}

/* ---------- closing ---------- */
.home-closing {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: clamp(60px, 7vw, 90px) var(--gutter);
  text-align: center;
}
.closing-inner {
  max-width: 740px;
  margin: 0 auto;
}
.closing-inner > svg {
  margin: 0 auto 20px;
  color: var(--accent);
}
.closing-inner h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 13px;
  text-wrap: balance;
}
.closing-inner p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 26px;
}
.closing-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 54px var(--gutter) 22px;
}
.footer-shell {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.4fr;
  gap: 60px;
  padding-bottom: 42px;
}
.footer-brand .logo {
  width: 100px;
}
.footer-brand p {
  max-width: 260px;
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.footer-socials {
  display: flex;
  gap: 4px;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
}
.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-column h3 {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-column a {
  display: flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-column a:hover {
  color: var(--accent-strong);
}
.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10.5px;
  color: var(--faint);
}
.footer-dot {
  color: var(--accent);
  font-size: 7px;
  vertical-align: 1px;
}
.footer-locales {
  display: flex;
  gap: 14px;
}
.footer-locales a:hover {
  color: var(--fg);
}
.footer-disclaimer {
  max-width: 1320px;
  margin: 14px auto 0;
  font-size: 9.5px;
  color: var(--faint);
  line-height: 1.5;
}

/* ============================================================
   Docs
   ============================================================ */
.docs-page {
  background: var(--bg);
}
.docs-layout {
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px 30px 90px;
  display: grid;
  grid-template-columns: 262px minmax(0, 790px) 218px;
  gap: 48px;
  justify-content: center;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--tabbar-h) + 22px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - var(--tabbar-h) - 44px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-mid) transparent;
}
.docs-sidebar::-webkit-scrollbar {
  width: 5px;
}
.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--line-mid);
  border-radius: 5px;
}
.sidebar-mobile-head {
  display: none;
}
.sidebar-tab-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 12px;
  margin-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
}
.sidebar-tab-title svg {
  color: var(--accent);
}
.sidebar-nav {
  padding-bottom: 30px;
}
.nav-group {
  margin-bottom: 4px;
}
.nav-group > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  color: var(--fg);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
  border-radius: 3px;
}
.nav-group > summary::-webkit-details-marker {
  display: none;
}
.nav-group > summary:hover {
  color: var(--accent-strong);
}
.nav-group-icon {
  display: inline-flex;
  color: var(--faint);
}
.nav-group-title {
  flex: 1;
  min-width: 0;
}
.nav-group-chevron {
  color: var(--faint);
  transition: transform 0.18s;
  transform: rotate(0deg);
}
.nav-group[open] > summary .nav-group-chevron {
  transform: rotate(90deg);
}
.nav-group ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 0 13px;
  border-left: 1px solid var(--line);
}
.nav-group ul li {
  margin: 0;
}
.nav-group ul a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 4px 0 4px 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
  border-radius: 0 3px 3px 0;
  transition: color 0.14s, background 0.14s;
}
.nav-group ul a:hover {
  color: var(--fg);
  background: var(--bg-soft);
}
.nav-group ul a.is-active {
  color: var(--fg);
  font-weight: 600;
  background: var(--bg-soft);
}
.nav-group ul a.is-active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--accent);
}
.fallback-dot {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 7px;
  border: 1px solid var(--line-mid);
  color: var(--faint);
  border-radius: 2px;
  padding: 1px 3px;
  line-height: 1.2;
}
.sidebar-direct-pages {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-direct-pages a {
  display: block;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--muted);
}
.sidebar-direct-pages a.is-active {
  color: var(--accent-strong);
  font-weight: 600;
}
.docs-main {
  min-width: 0;
  padding-top: 3px;
}
.docs-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 32px;
  margin-bottom: 20px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 11.5px;
  color: var(--faint);
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumb a:hover {
  color: var(--accent-strong);
}
.breadcrumb > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb-current {
  color: var(--fg-soft);
}
.docs-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.copy-page-button,
.edit-page-button,
.docs-mobile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.copy-page-button:hover,
.edit-page-button:hover,
.docs-mobile-trigger:hover {
  color: var(--fg);
  border-color: var(--line-mid);
  background: var(--bg-soft);
}
.copy-page-button.is-copied {
  color: var(--green);
  border-color: var(--green);
}
.edit-page-button {
  width: 30px;
  padding: 0;
}
.docs-mobile-trigger {
  display: none;
}
.docs-title-block {
  margin-bottom: 34px;
  padding-bottom: 29px;
  border-bottom: 1px solid var(--line);
}
.docs-title-block h1 {
  font-size: clamp(35px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
[lang="zh-Hans"] .docs-title-block h1,
[lang="zh-Hant"] .docs-title-block h1 {
  font-family: var(--font-sans);
  letter-spacing: -0.035em;
  line-height: 1.14;
}
.docs-lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 680px;
}
.untranslated-notice {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--orange) 35%, var(--line));
  border-left: 3px solid var(--orange);
  background: color-mix(in srgb, var(--orange) 7%, var(--bg));
  border-radius: 4px;
}
.untranslated-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--orange);
}
.untranslated-notice strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.untranslated-notice p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 7px;
}
.untranslated-notice a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
}
.docs-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--faint);
}
.docs-footer-meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.docs-footer-meta a:hover {
  color: var(--accent-strong);
}
.sidebar-scrim {
  display: none;
}
.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pager-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.15s, background 0.15s;
}
.pager-link:hover {
  border-color: var(--accent);
  background: var(--accent-faint);
}
.pager-next {
  text-align: right;
  align-items: flex-end;
}
.pager-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.pager-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + var(--tabbar-h) + 30px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - var(--tabbar-h) - 60px);
  overflow-y: auto;
  padding-left: 2px;
  scrollbar-width: none;
}
.toc::-webkit-scrollbar {
  display: none;
}
.toc-inner {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.toc-title {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
}
.toc nav {
  display: flex;
  flex-direction: column;
}
.toc a {
  padding: 4px 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
  transition: color 0.14s;
}
.toc a:hover {
  color: var(--fg);
}
.toc a.is-active {
  color: var(--accent-strong);
  font-weight: 600;
}
.toc-level-3 {
  padding-left: 10px !important;
  color: var(--faint) !important;
  font-size: 11px !important;
}
.toc-level-3.is-active {
  color: var(--accent-strong) !important;
}

/* ---------- prose ---------- */
.prose {
  color: var(--fg-soft);
  font-size: 15.5px;
  line-height: 1.76;
  overflow-wrap: break-word;
}
.prose > *:first-child {
  margin-top: 0 !important;
}
.prose h2 {
  scroll-margin-top: calc(var(--header-h) + var(--tabbar-h) + 24px);
  margin: 52px 0 17px;
  font-size: 29px;
  line-height: 1.14;
  letter-spacing: -0.035em;
}
[lang="zh-Hans"] .prose h2,
[lang="zh-Hant"] .prose h2 {
  font-family: var(--font-sans);
  letter-spacing: -0.025em;
}
.prose h3 {
  scroll-margin-top: calc(var(--header-h) + var(--tabbar-h) + 24px);
  margin: 34px 0 12px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.prose h4 {
  margin: 26px 0 10px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0;
}
.prose p {
  margin: 16px 0;
}
.prose strong {
  color: var(--fg);
  font-weight: 650;
}
.prose a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 38%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.14s, text-decoration-color 0.14s;
}
.prose a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.prose ul,
.prose ol {
  margin: 15px 0;
  padding-left: 25px;
}
.prose li {
  margin: 6px 0;
  padding-left: 2px;
}
.prose li::marker {
  color: var(--faint);
}
.prose ul li::marker {
  color: var(--accent);
}
.prose blockquote {
  margin: 22px 0;
  padding: 13px 18px;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  color: var(--muted);
}
.prose blockquote p {
  margin: 5px 0;
}
.prose :not(pre) > code {
  font-size: 12.5px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-muted);
  color: var(--fg);
  white-space: break-spaces;
  overflow-wrap: anywhere;
}
.prose .code-block code {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  white-space: pre;
  overflow-wrap: normal;
}
.prose img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 20px auto;
}
.prose video {
  max-width: 100%;
  margin: 20px auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.prose hr {
  margin: 32px 0;
}
.prose > .table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.prose table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}
.prose th,
.prose td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.prose th:last-child,
.prose td:last-child {
  border-right: 0;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose th {
  background: var(--bg-soft);
  color: var(--fg);
  font-weight: 650;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.prose tr:hover td {
  background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
}

/* code blocks */
.code-block {
  margin: 22px 0;
  border: 1px solid #2a2729;
  border-radius: 4px;
  background: var(--code-bg);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 36px;
  padding: 0 9px 0 14px;
  background: var(--code-head);
  border-bottom: 1px solid #2b282a;
}
.code-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #aaa4a6;
}
.code-label svg {
  color: #7e777a;
  flex-shrink: 0;
}
.code-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  height: 25px;
  padding: 0 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #898285;
  font-family: var(--font-sans);
  font-size: 9.5px;
}
.code-copy:hover {
  color: #fff;
  background: #292527;
}
.code-copy.is-copied {
  color: #50fa7b;
}
.code-block pre {
  margin: 0;
  padding: 17px 18px;
  overflow-x: auto;
  background: var(--code-bg);
  color: #f1efeb;
  font-size: 11.5px;
  line-height: 1.72;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: #3a3538 transparent;
}
.code-block pre code {
  font-family: var(--font-mono);
  white-space: pre;
}
.code-block .hljs-comment,
.code-block .hljs-quote {
  color: #7f848e;
  font-style: italic;
}
.code-block .hljs-keyword,
.code-block .hljs-selector-tag,
.code-block .hljs-literal,
.code-block .hljs-section,
.code-block .hljs-link {
  color: #ff79c6;
}
.code-block .hljs-function .hljs-keyword,
.code-block .hljs-built_in,
.code-block .hljs-title,
.code-block .hljs-title.function_,
.code-block .hljs-name {
  color: #8be9fd;
}
.code-block .hljs-string,
.code-block .hljs-regexp,
.code-block .hljs-attribute,
.code-block .hljs-symbol,
.code-block .hljs-bullet,
.code-block .hljs-addition {
  color: #f1fa8c;
}
.code-block .hljs-number,
.code-block .hljs-variable,
.code-block .hljs-template-variable,
.code-block .hljs-type,
.code-block .hljs-params {
  color: #bd93f9;
}
.code-block .hljs-attr,
.code-block .hljs-property,
.code-block .hljs-selector-class,
.code-block .hljs-selector-id {
  color: #50fa7b;
}
.code-block .hljs-meta,
.code-block .hljs-meta .hljs-keyword {
  color: #ffb86c;
}
.code-block .hljs-deletion {
  color: #ff5555;
}
.code-block .hljs-emphasis {
  font-style: italic;
}
.code-block .hljs-strong {
  font-weight: 700;
}
.code-block .hljs-operator,
.code-block .hljs-punctuation {
  color: #f8f8f2;
}

.code-group {
  position: relative;
  margin: 22px 0;
  border: 1px solid #2a2729;
  border-radius: 4px;
  background: var(--code-bg);
  overflow: hidden;
}
.code-group > .code-block {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.code-group > .code-block + .code-block {
  display: none;
}
.code-group > .code-block .code-head {
  display: none;
}
.code-group-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 36px;
  background: var(--code-head);
  border-bottom: 1px solid #2b282a;
  overflow-x: auto;
  scrollbar-width: none;
}
.code-group-tabs::-webkit-scrollbar {
  display: none;
}
.code-group-tab {
  border: 0;
  border-right: 1px solid #2b282a;
  background: transparent;
  color: #898285;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  white-space: nowrap;
}
.code-group-tab:hover {
  color: #ddd8d5;
}
.code-group-tab.is-active {
  color: #fff;
  background: #0b0a0c;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* tabs */
.doc-tabs {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  overflow: hidden;
}
.doc-tab-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  scrollbar-width: none;
}
.doc-tab-list::-webkit-scrollbar {
  display: none;
}
.doc-tab {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  padding: 10px 14px;
  white-space: nowrap;
}
.doc-tab:hover {
  color: var(--fg);
}
.doc-tab[aria-selected="true"] {
  color: var(--fg);
  font-weight: 650;
  background: var(--bg);
}
.doc-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.doc-tab-panel {
  padding: 4px 16px 16px;
}
.doc-tab-panel > *:first-child {
  margin-top: 14px;
}
.doc-tab-panel .code-block {
  margin: 14px -16px 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}

/* callouts */
.callout {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  margin: 22px 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  background: color-mix(in srgb, var(--blue) 5%, var(--bg));
}
.callout-icon {
  display: flex;
  padding-top: 1px;
  color: var(--blue);
}
.callout-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--fg);
  margin-bottom: 4px;
}
.callout-body {
  font-size: 13.5px;
  line-height: 1.62;
}
.callout-body > *:first-child {
  margin-top: 0;
}
.callout-body > *:last-child {
  margin-bottom: 0;
}
.callout-warning {
  border-left-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 6%, var(--bg));
}
.callout-warning .callout-icon {
  color: var(--orange);
}
.callout-tip {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
}
.callout-tip .callout-icon {
  color: var(--accent);
}
.callout-note .callout-icon,
.callout-info .callout-icon {
  color: var(--blue);
}

/* doc cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.card-grid.cols-3,
.doc-columns[style*="--cols: 3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.doc-card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  min-width: 0;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.doc-card-link:hover {
  border-color: var(--accent);
  background: var(--accent-faint);
}
.doc-card-icon {
  display: flex;
  align-items: center;
  color: var(--accent);
  margin-bottom: 12px;
}
.doc-card-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 6px;
}
.doc-card-body {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.doc-card-body p {
  margin: 0;
}
.doc-card-cta {
  margin-top: auto;
  padding-top: 13px;
  color: var(--muted);
  font-size: 11.5px;
}
.doc-card-cta code {
  font-size: 10.5px;
  color: var(--accent-strong);
  background: transparent;
  border: 0;
  padding: 0;
}
.doc-columns {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.doc-columns > .doc-card {
  height: 100%;
}

/* accordion */
.accordion {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}
.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary:hover {
  color: var(--accent-strong);
}
.accordion-chevron {
  color: var(--faint);
  transition: transform 0.18s;
  flex-shrink: 0;
}
.accordion[open] .accordion-chevron {
  transform: rotate(180deg);
}
.accordion-body {
  padding: 2px 16px 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.accordion-body > *:first-child {
  margin-top: 14px;
}
.accordion-group {
  margin: 20px 0;
}

/* steps */
.steps {
  list-style: none;
  margin: 24px 0;
  padding: 0 !important;
}
.steps .step {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 24px;
}
.steps .step:last-child {
  padding-bottom: 0;
}
.steps .step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.step-marker {
  width: 25px;
  height: 25px;
  border: 1px solid var(--line-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.step-marker::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.step-content {
  min-width: 0;
  padding-top: 2px;
}
.step-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--fg);
  margin-bottom: 5px;
}
.step-body > *:first-child {
  margin-top: 3px;
}

/* param field */
.param-field {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.param-field-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 13px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.param-field-head code {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-strong);
  background: transparent;
  border: 0;
  padding: 0;
}
.param-type {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  padding: 2px 5px;
  border-radius: 2px;
}
.param-default,
.param-required {
  font-size: 9.5px;
  color: var(--faint);
}
.param-default code {
  font-size: 9px;
  color: var(--fg-soft);
}
.param-required {
  color: var(--orange);
}
.param-field-body {
  padding: 11px 13px;
  font-size: 13px;
}
.param-field-body > *:first-child {
  margin-top: 0;
}
.param-field-body > *:last-child {
  margin-bottom: 0;
}

/* frame, badge, video */
.doc-frame {
  margin: 22px 0;
}
.doc-frame img {
  margin: 0 auto;
}
.doc-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 24px 0;
  background: #000;
  border: 1px solid var(--line);
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* guides directory */
.guides-directory {
  margin-top: 10px;
}
.guide-group {
  margin: 30px 0;
}
.guide-group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 13px;
}
.guide-group-head h2 {
  margin: 0;
  font-size: 19px !important;
  letter-spacing: -0.02em;
}
.guide-group-head span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--faint);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.guide-card {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
}
.guide-card:hover {
  border-color: var(--accent);
  background: var(--accent-faint);
}
.guide-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
}
.guide-card-title svg {
  flex-shrink: 0;
  color: var(--faint);
}
.guide-card:hover .guide-card-title svg {
  color: var(--accent);
}
.guide-card p {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.45;
}

.docs-lede code {
  font-size: 13px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-muted);
  color: var(--fg);
}

.hero-title .hero-line {
  display: block;
}
.hero-title em {
  white-space: nowrap;
}

.fallback-summary {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-faint);
}
.fallback-summary-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.fallback-summary p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-soft);
}
.fallback-summary code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 4px;
}
