:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #161a20);
  --bg-soft: light-dark(#f4f6f8, #1c2129);
  --bg-sunk: light-dark(#eceff3, #12151a);
  --code-bg: light-dark(#f7f8fa, #1a1f26);
  --ink: light-dark(#141920, #eef1f5);
  --text: light-dark(#2a313b, #cdd3db);
  --muted: light-dark(#5a6370, #97a1ad);
  --line: light-dark(#e1e5ea, #2a313b);
  --line-strong: light-dark(#c8cfd8, #3a4350);
  --accent: light-dark(#1d4e89, #8fb6ee);
  --accent-strong: light-dark(#143a68, #b7d0f5);
  --accent-soft: light-dark(#eaf1fa, #1c2a3d);
  --pole: light-dark(#b42318, #ff8f80);
  --pole-soft: light-dark(#fdefed, #3a201d);
  --tip: light-dark(#1a7f37, #6fd08c);
  --warn: light-dark(#8a5a00, #e8b44c);
  --teal: light-dark(#0b6e7f, #6fcbd9);
  --shadow: light-dark(0 18px 48px rgb(16 24 40 / 18%), 0 18px 48px rgb(0 0 0 / 55%));
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, monospace;
  --topbar-h: 56px;
  --sidebar-w: 272px;
  --toc-w: 224px;
  --content-w: 46rem;
  --radius: 8px;
}

:root[data-theme='light'] {
  color-scheme: light;
}

:root[data-theme='dark'] {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

kbd {
  font-size: 0.75rem;
  padding: 0 0.35em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 10px;
  color: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--topbar-h);
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.brand-mark {
  color: var(--ink);
  flex: none;
}

.version {
  font: 500 11.5px/1 var(--font-mono);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 7px;
}

.products {
  display: flex;
  gap: 2px;
  margin-left: 14px;
  align-self: stretch;
}

.products a {
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
}

.products a:hover {
  color: var(--ink);
}

.products a.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  height: 34px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.search-trigger:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.search-kbd {
  margin-left: auto;
}

.pricing-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 4px;
}

.theme-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px;
  gap: 2px;
}

.theme-switch button,
.nav-toggle,
.nav-close {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-switch button:hover,
.nav-toggle:hover,
.nav-close:hover {
  color: var(--ink);
}

.theme-switch button[aria-checked='true'] {
  background: var(--bg-sunk);
  color: var(--ink);
}

.nav-toggle,
.nav-close {
  display: none;
  width: 36px;
  height: 36px;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  max-width: 1480px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 12px 48px 16px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.sidebar-head {
  display: none;
}

.nav-section {
  margin-bottom: 6px;
}

.nav-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.nav-section summary .badge {
  margin: 0 8px 0 auto;
}

.nav-section summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.nav-section[open] summary::after {
  transform: rotate(45deg);
}

.nav-section summary:hover {
  background: var(--bg-soft);
}

.nav-section ul {
  list-style: none;
  margin: 2px 0 10px;
  padding: 0 0 0 8px;
}

.nav-section a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 10px;
  border-left: 2px solid var(--line);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.nav-section a:hover {
  color: var(--ink);
  border-left-color: var(--line-strong);
}

.nav-section a[aria-current='page'] {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
  border-radius: 0 6px 6px 0;
}

.scrim {
  display: none;
}

main {
  min-width: 0;
  padding: 36px 56px 96px;
}

.doc {
  max-width: var(--content-w);
  margin: 0 auto;
}

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
}

.crumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--line-strong);
}

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

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.25;
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}

h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.4rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.lead {
  margin: 14px 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40rem;
}

.doc-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.doc-body > :first-child {
  margin-top: 0;
}

.doc-body h2 {
  margin: 2.6em 0 0.7em;
  font-size: 1.5rem;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.doc-body h3 {
  margin: 2em 0 0.55em;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.doc-body h4 {
  margin: 1.6em 0 0.4em;
  font-size: 1rem;
}

.doc-body p,
.doc-body ul,
.doc-body ol {
  margin: 0 0 1.05em;
}

.doc-body li {
  margin: 0.25em 0;
}

.doc-body li > p {
  margin: 0.25em 0;
}

.doc-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5em 0;
}

.doc-body img {
  max-width: 100%;
}

.doc-body blockquote {
  margin: 1.2em 0;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
}

.anchor {
  margin-left: 0.35em;
  color: var(--line-strong);
  font-weight: 500;
  text-decoration: none;
  opacity: 0;
}

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

.anchor:hover {
  color: var(--accent);
}

:not(pre) > code {
  font-size: 0.86em;
  padding: 0.12em 0.36em;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  overflow-wrap: anywhere;
}

a > code {
  color: inherit;
}

.table-wrap {
  margin: 1.25em 0 1.5em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

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

th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
}

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

.code-block {
  margin: 1.25em 0 1.5em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--code-bg);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 6px 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 12.5px;
  color: var(--muted);
}

.code-title {
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  visibility: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 500 12px/1 var(--font-sans);
  padding: 6px 9px;
  cursor: pointer;
}

.js .copy-btn {
  visibility: visible;
}

.copy-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg);
}

.copy-btn.copied {
  color: var(--tip);
}

.shiki {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.62;
  tab-size: 2;
  background: transparent !important;
  color: light-dark(var(--shiki-light, var(--ink)), var(--shiki-dark, var(--ink)));
}

.shiki span {
  color: light-dark(var(--shiki-light), var(--shiki-dark));
}

.shiki-plain {
  color: var(--ink);
}

.tabs {
  margin: 1.25em 0 1.5em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--code-bg);
}

.tabs-list {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  scrollbar-width: none;
}

.tabs-list [role='tab'] {
  flex: none;
  padding: 9px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 550 13px/1.2 var(--font-sans);
  cursor: pointer;
  box-shadow: inset 0 -2px 0 transparent;
}

.tabs-list [role='tab']:hover {
  color: var(--ink);
}

.tabs-list [role='tab'][aria-selected='true'] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.tabs-list [role='tab']:focus-visible {
  outline-offset: -3px;
}

.tabs .code-block {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.tabs .code-head {
  background: transparent;
  min-height: 30px;
}

.callout {
  margin: 1.4em 0;
  padding: 12px 16px 2px;
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line));
  border-left: 3px solid var(--c);
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 6%, var(--bg));
  --c: var(--accent);
}

.callout-tip {
  --c: var(--tip);
}

.callout-warning {
  --c: var(--warn);
}

.callout-danger,
.callout-pro {
  --c: var(--pole);
}

.callout-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 6px !important;
  color: var(--c);
  font-weight: 650;
  font-size: 0.95rem;
}

.callout-pro .callout-title span {
  color: var(--text);
  font-weight: 450;
  font-size: 0.9rem;
}

.callout .code-block {
  background: var(--bg);
}

.callout > :last-child {
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--b, var(--line-strong));
  border-radius: 999px;
  background: var(--bg, transparent);
  color: var(--b, var(--muted));
  font: 650 11.5px/1 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}

h1 .badge {
  height: 24px;
  font-size: 12.5px;
}

.badge-pro {
  --b: var(--pole);
  background: var(--pole-soft);
}

a.badge-pro:hover {
  color: var(--pole);
}

.badge-scheduler {
  --b: var(--teal);
}

.products-more {
  position: relative;
  display: flex;
}

.products-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
  box-shadow: inset 0 -2px 0 transparent;
}

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

.products-more summary::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.products-more summary:hover,
.products-more[open] summary {
  color: var(--ink);
}

.products-more.active summary {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.products-more ul {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 45;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.products-more ul a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  box-shadow: none;
}

.products-more ul a:hover,
.products-more ul a.active {
  background: var(--bg-soft);
  color: var(--ink);
  box-shadow: none;
}

.badge-gantt {
  --b: var(--teal);
}

.badge-pivot-studio {
  --b: var(--accent);
}

.badge-spreadsheet {
  --b: var(--tip);
}

.fn-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.fn-count {
  color: var(--muted);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}

.fn-table td:nth-child(2) code {
  white-space: normal;
}

.badge-diagram {
  --b: var(--pole);
}

.badge-charts {
  --b: var(--teal);
}

.badge-builder {
  --b: var(--warn);
}

.badge-calendar {
  --b: var(--accent);
}

.badge-excel {
  --b: var(--tip);
}

.badge-mit {
  --b: var(--muted);
}

.demo {
  margin: 1.5em 0 1.75em;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}

.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 13px;
}

.demo-title {
  color: var(--ink);
  font-weight: 600;
}

.demo-title::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--tip);
  vertical-align: 1px;
}

.demo-restart {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: 500 12.5px/1 var(--font-sans);
  padding: 6px 10px;
  cursor: pointer;
}

.demo-restart:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.demo-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--demo-h, 420px);
  overflow: hidden;
}

.demo-status {
  margin: auto;
  color: var(--muted);
  font-size: 14px;
}

.demo-unavailable {
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  background: repeating-linear-gradient(135deg, var(--bg-soft) 0 10px, var(--bg) 10px 20px);
}

.demo-unavailable p {
  max-width: 34rem;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.demo-unavailable strong {
  display: block;
  color: var(--ink);
}

.demo:has(.demo-unavailable) .demo-title::before,
.demo.demo-failed .demo-title::before {
  background: var(--line-strong);
}

.demo .demo-over-budget {
  color: var(--pole);
  font-weight: 600;
}

.demo .demo-total {
  font-weight: 650;
}

.demo-source {
  border-top: 1px solid var(--line);
}

.demo-source summary {
  padding: 9px 14px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.demo-note {
  margin: 0;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.demo-source .code-block {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.demo-source .shiki {
  max-height: 560px;
}

.doc-footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.page-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font: 500 13px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
}

.page-action:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.page-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page-action.copied {
  color: var(--tip);
}

.copy-page {
  display: none;
}

.js .copy-page {
  display: inline-flex;
}

.doc-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.doc-meta {
  margin: 0 0 20px;
  font-size: 14px;
}

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

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

.pager a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

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

.pager-next {
  text-align: right;
}

.pager-label {
  color: var(--muted);
  font-size: 13px;
}

.pager-title {
  font-weight: 600;
}

.toc {
  position: sticky;
  top: var(--topbar-h);
  align-self: start;
  max-height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 40px 20px 40px 8px;
  font-size: 13.5px;
  scrollbar-width: thin;
}

.toc-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 650;
}

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

.toc a {
  display: block;
  margin-left: -1px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  line-height: 1.4;
  text-decoration: none;
}

.toc .toc-d3 a {
  padding-left: 24px;
  font-size: 13px;
}

.toc a:hover {
  color: var(--ink);
}

.toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 20px 28px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  margin-left: 14px;
}

.search-dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 80px));
  margin: 9vh auto auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-dialog[open] {
  display: flex;
  flex-direction: column;
}

.search-dialog::backdrop {
  background: rgb(12 16 22 / 48%);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.search-form:focus-within {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.search-form input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: 400 17px/1 var(--font-sans);
}

.search-form input::-webkit-search-cancel-button {
  display: none;
}

.search-close {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  font: 500 12px/1 var(--font-sans);
  padding: 5px 8px;
  cursor: pointer;
}

.search-results {
  flex: 1;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
}

.search-results:empty {
  display: none;
}

.search-results li a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.search-results li[aria-selected='true'] a {
  background: var(--accent-soft);
}

.search-results li[aria-selected='true'] .sr-title {
  color: var(--accent);
}

.sr-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.sr-page {
  color: var(--muted);
  font-weight: 450;
  font-size: 12.5px;
}

.sr-kind {
  margin-left: auto;
  color: var(--muted);
  font: 500 11px/1 var(--font-mono);
}

.sr-snippet {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-results mark {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: inherit;
  border-radius: 2px;
}

.search-empty {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 14px;
}

.search-help {
  margin: 0;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12.5px;
}

.api-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 18px 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.api-install {
  padding: 6px 10px !important;
}

.api-guides {
  font-size: 14.5px;
}

.api-symbol {
  margin: 0 0 8px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line);
}

.api-symbol h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.api-symbol h3 code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.05rem;
}

.api-kind {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-sunk);
  color: var(--muted);
  font: 500 11.5px/1.3 var(--font-mono);
}

.api-kind-function {
  color: var(--accent);
}

.api-kind-interface,
.api-kind-type {
  color: var(--teal);
}

.api-sig {
  margin: 0.6em 0 1em;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
}

.api-sig a,
.api-type a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.tk-kw {
  color: light-dark(#a3292d, #ff9b8f);
}

.tk-str {
  color: light-dark(#0a5f2f, #8fd9a8);
}

.tk-num {
  color: light-dark(#0b5cad, #9cc6ff);
}

.api-table td:first-child {
  white-space: nowrap;
}

.api-table .api-type code,
.api-table .api-name code {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12.5px;
}

.api-table .api-type code {
  color: var(--text);
}

.api-name a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.api-flag {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font: 500 10.5px/1 var(--font-mono);
}

.api-table tr:target {
  background: var(--accent-soft);
}

.api-desc {
  min-width: 14rem;
}

.api-none,
.api-inherited,
.api-default,
.api-source {
  color: var(--muted);
}

.api-source {
  margin: 0;
  font-size: 12.5px;
}

.api-source code {
  font-size: 12px !important;
}

.api-deprecated {
  color: var(--warn);
  font-weight: 600;
}

.api-embed {
  margin: 1.4em 0 1.6em;
}

.api-embed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 14px;
}

.api-embed-head > code {
  font-weight: 650;
}

.api-from {
  color: var(--muted);
  font: 500 12.5px var(--font-mono);
}

.api-embed-head a {
  margin-left: auto;
  font-size: 13.5px;
}

.api-embed .table-wrap,
.api-embed .api-sig {
  margin-top: 8px;
}

.layout-home .shell {
  grid-template-columns: minmax(0, 1fr);
}

.layout-home .sidebar {
  display: none;
}

.layout-home main {
  padding-top: 0;
}

.doc-home {
  max-width: 1120px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 64px 0 40px;
}

.home-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.home-hero .lead {
  max-width: 44rem;
  font-size: 1.2rem;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: light-dark(#ffffff, #10161f);
}

.button-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: light-dark(#ffffff, #10161f);
}

.home-install {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.doc-home .demo {
  margin-top: 0;
  box-shadow: var(--shadow);
}

.home-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 56px 0 24px;
  border-top: 1px solid var(--line);
}

.home-product {
  padding: 24px 28px 20px 0;
  border-bottom: 1px solid var(--line);
}

.home-product:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.home-product h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px !important;
  font-size: 1.2rem !important;
}

.home-product h2 a {
  color: var(--ink);
  text-decoration: none;
}

.home-product h2 a:hover {
  color: var(--accent);
}

.home-product p {
  margin: 0 0 10px !important;
  color: var(--muted);
}

.home-product .price {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.home-frameworks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0 !important;
  list-style: none;
  font-size: 15px;
}

@media (max-width: 1240px) {
  :root {
    --topbar-h: 96px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    height: auto;
    row-gap: 0;
    padding: 0 12px;
  }

  .brand,
  .topbar-actions {
    height: 56px;
  }

  .products {
    order: 10;
    flex-basis: 100%;
    height: 40px;
    margin: 0 -12px;
    padding: 0 6px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }

  .shell {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }

  .toc {
    display: none;
  }

  main {
    padding: 32px 40px 88px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-grid;
    width: 36px;
    height: 56px;
  }

  .shell,
  .layout-home .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar,
  .layout-home .sidebar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: min(320px, 86vw);
    height: auto;
    padding-top: 0;
    background: var(--bg);
    border-right: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateX(-104%);
    visibility: hidden;
    transition:
      transform 0.2s ease,
      visibility 0s linear 0.2s;
  }

  .nav-open .sidebar {
    transform: none;
    visibility: visible;
    transition: transform 0.2s ease;
  }

  .sidebar-head {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    margin: 0 -12px 8px -16px;
    padding: 0 8px 0 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 650;
  }

  .nav-close {
    display: inline-grid;
  }

  .scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgb(12 16 22 / 42%);
  }

  .search-trigger {
    min-width: 0;
  }

  .search-label,
  .search-kbd {
    display: none;
  }

  main {
    padding: 28px 20px 72px;
  }

  .home-products {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-product,
  .home-product:nth-child(even) {
    padding: 20px 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .pricing-link {
    display: none;
  }

  main {
    padding: 24px 16px 64px;
  }

  .pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .shiki {
    font-size: 12.5px;
  }

  .home-hero {
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .topbar,
  .sidebar,
  .toc,
  .site-footer,
  .pager,
  .copy-btn,
  .demo,
  .search-dialog {
    display: none !important;
  }

  .shell {
    display: block;
  }
}

.badge-document {
  --b: var(--accent);
}

.badge-pdf {
  --b: var(--warn);
}
