:root {
  color-scheme: light;
  --docs-bg: #fbfbfc;
  --docs-surface: #ffffff;
  --docs-surface-muted: #f6f7f9;
  --docs-surface-soft: #f9fafb;
  --docs-border: #e7e9ee;
  --docs-border-strong: #d8dce5;
  --docs-text: #1f2430;
  --docs-text-muted: #667085;
  --docs-text-soft: #8b93a5;
  --docs-accent: #2563eb;
  --docs-accent-soft: rgba(37, 99, 235, 0.08);
  --docs-shadow: 0 12px 30px rgba(17, 24, 39, 0.04);
  --docs-radius-xl: 20px;
  --docs-radius-lg: 16px;
  --docs-radius-md: 12px;
  --docs-radius-sm: 10px;
  --docs-header-height: 70px;
}

html[data-docs-theme="light"] {
  color-scheme: light;
}

html[data-docs-theme="dark"] {
  color-scheme: dark;
  --docs-bg: #0c111b;
  --docs-surface: #121925;
  --docs-surface-muted: #18212f;
  --docs-surface-soft: #0f1622;
  --docs-border: #223044;
  --docs-border-strong: #31445f;
  --docs-text: #edf2f8;
  --docs-text-muted: #a5b2c5;
  --docs-text-soft: #7f90a8;
  --docs-accent: #60a5fa;
  --docs-accent-soft: rgba(96, 165, 250, 0.14);
  --docs-shadow: 0 18px 40px rgba(2, 6, 23, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.docs-layout {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(240, 244, 255, 0.38), transparent 140px),
    var(--docs-bg);
  color: var(--docs-text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

html[data-docs-theme="dark"] body.docs-layout {
  background:
    radial-gradient(circle at top center, rgba(96, 165, 250, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.5), transparent 170px),
    var(--docs-bg);
}

a {
  color: inherit;
}

.docs-app {
  min-height: 100vh;
}

.docs-app [hidden] {
  display: none !important;
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--docs-header-height);
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--docs-border);
  background: rgba(251, 251, 252, 0.9);
  backdrop-filter: blur(18px);
}

.docs-header__left,
.docs-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}

.docs-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  background: linear-gradient(180deg, #ffffff, #f3f5f9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.docs-brand__logo {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.docs-brand__copy {
  display: grid;
  gap: 0.04rem;
}

.docs-brand strong {
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.1;
}

.docs-brand small {
  color: var(--docs-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
}

.docs-theme-picker {
  position: relative;
}

.docs-theme-picker__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  min-height: 40px;
  padding: 0.42rem 0.55rem 0.42rem 0.6rem;
  border: 1px solid var(--docs-border);
  border-radius: 999px;
  background: var(--docs-surface);
  color: var(--docs-text);
  box-shadow: var(--docs-shadow);
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.docs-theme-picker__trigger:hover {
  background: var(--docs-surface-muted);
}

.docs-theme-picker__trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--docs-surface-soft);
  color: var(--docs-text-soft);
}

.docs-theme-picker__trigger-icon svg,
.docs-theme-picker__option svg {
  width: 18px;
  height: 18px;
}

.docs-theme-picker__trigger-copy {
  display: grid;
  gap: 0.02rem;
  text-align: left;
}

.docs-theme-picker__trigger-copy strong {
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.1;
}

.docs-theme-picker__trigger-copy small {
  color: var(--docs-text-soft);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
}

.docs-theme-picker__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 70;
  width: min(280px, calc(100vw - 1.5rem));
  padding: 0.8rem;
  border: 1px solid var(--docs-border);
  border-radius: 18px;
  background: var(--docs-surface);
  box-shadow: 0 24px 56px rgba(17, 24, 39, 0.16);
}

.docs-theme-picker__title {
  margin: 0 0 0.7rem;
  color: var(--docs-text-soft);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.docs-theme-picker__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.docs-theme-picker__option {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  min-height: 82px;
  padding: 0.72rem 0.45rem;
  border: 1px solid var(--docs-border);
  border-radius: 16px;
  background: var(--docs-surface-soft);
  color: var(--docs-text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.docs-theme-picker__option:hover {
  background: var(--docs-surface-muted);
  color: var(--docs-text);
  transform: translateY(-1px);
}

.docs-theme-picker__option.is-active {
  border-color: rgba(37, 99, 235, 0.2);
  background: var(--docs-accent-soft);
  color: var(--docs-accent);
}

.docs-header__link,
.docs-header__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 700;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.docs-header__link {
  color: var(--docs-text-muted);
}

.docs-header__link:hover {
  color: var(--docs-text);
  background: var(--docs-surface-muted);
}

.docs-header__button {
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: var(--docs-accent);
  color: #fff;
}

.docs-header__button:hover {
  background: #1d4ed8;
}

.docs-header__button--ghost {
  border-color: var(--docs-border);
  background: var(--docs-surface);
  color: var(--docs-text);
}

.docs-header__button--ghost:hover {
  background: var(--docs-surface-muted);
}

.docs-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  background: var(--docs-surface);
  color: var(--docs-text);
  cursor: pointer;
}

.docs-mobile-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: currentColor;
}

.docs-search {
  position: relative;
  width: min(620px, 100%);
  justify-self: center;
}

.docs-search__field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0 0.85rem;
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow);
}

.docs-search__field svg {
  width: 18px;
  height: 18px;
  color: var(--docs-text-soft);
}

.docs-search__field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--docs-text);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 600;
}

.docs-search__field input::placeholder {
  color: var(--docs-text-soft);
}

.docs-search__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 26px;
  padding: 0 0.42rem;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  background: var(--docs-surface-muted);
  color: var(--docs-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.docs-search__results {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: 16px;
  background: var(--docs-surface);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
}

.docs-search__results-list {
  display: grid;
  padding: 0.35rem;
}

.docs-search__result,
.docs-search__empty {
  display: grid;
  gap: 0.18rem;
  padding: 0.7rem 0.78rem;
  border-radius: 12px;
  text-decoration: none;
}

.docs-search__result:hover,
.docs-search__result.is-first {
  background: var(--docs-accent-soft);
}

.docs-search__result strong {
  font-size: 0.84rem;
  font-weight: 700;
}

.docs-search__result span,
.docs-search__empty {
  color: var(--docs-text-muted);
  font-size: 0.75rem;
}

.docs-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 220px;
  gap: 0;
  min-height: calc(100vh - var(--docs-header-height));
}

.docs-sidebar,
.docs-main,
.docs-toc {
  min-width: 0;
}

.docs-sidebar {
  position: sticky;
  top: var(--docs-header-height);
  align-self: start;
  height: calc(100vh - var(--docs-header-height));
  overflow-y: auto;
  padding: 1.2rem 1rem 1.3rem 1.15rem;
  border-right: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.7);
}

.docs-sidebar__section,
.docs-sidebar__nav-head,
.docs-toc__card > span,
.docs-empty-state__eyebrow,
.docs-page-head__label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 800;
}

.docs-sidebar__section {
  display: grid;
  gap: 0.28rem;
  margin-bottom: 1rem;
  color: var(--docs-accent);
}

.docs-sidebar__section strong {
  color: var(--docs-text);
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
}

.docs-sidebar__section p,
.docs-sidebar__empty,
.docs-toc__card p {
  margin: 0;
  color: var(--docs-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: normal;
  text-transform: none;
}

.docs-sidebar__nav {
  display: grid;
  gap: 0.7rem;
}

.docs-sidebar__nav-head {
  display: grid;
  gap: 0.22rem;
  color: var(--docs-text-soft);
}

.docs-sidebar__nav-head strong {
  color: var(--docs-text);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.docs-nav-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.12rem;
}

.docs-nav-tree .docs-nav-tree {
  margin-top: 0.18rem;
  margin-left: 0.9rem;
  padding-left: 0.7rem;
  border-left: 1px solid var(--docs-border);
}

.docs-nav-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.docs-nav-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0.1rem 0.42rem;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  color: #b45309;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  min-height: 34px;
  flex: 1 1 auto;
  padding: 0.42rem 0.62rem;
  border-radius: 10px;
  color: var(--docs-text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}

.docs-nav-link:hover,
.docs-nav-link.is-trail {
  color: var(--docs-text);
  background: var(--docs-surface-muted);
}

.docs-nav-link.is-active {
  color: var(--docs-accent);
  background: var(--docs-accent-soft);
}

.docs-nav-actions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.docs-nav-row:hover .docs-nav-actions,
.docs-nav-item:focus-within > .docs-nav-row .docs-nav-actions {
  opacity: 1;
  pointer-events: auto;
}

.docs-nav-action {
  min-height: 28px;
  padding: 0.32rem 0.48rem;
  border: 1px solid var(--docs-border);
  border-radius: 999px;
  background: var(--docs-surface);
  color: var(--docs-text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.docs-nav-action:hover {
  color: var(--docs-text);
  background: var(--docs-surface-muted);
}

.docs-nav-editor-slot {
  margin: 0.3rem 0 0.42rem;
}

.docs-sidebar__create-slot {
  width: 100%;
}

.docs-inline-slot {
  margin-top: 0.6rem;
}

.docs-inline-slot--body {
  margin-bottom: 1rem;
}

.docs-sidebar__empty {
  padding: 0.85rem;
  border: 1px dashed var(--docs-border-strong);
  border-radius: 14px;
  background: var(--docs-surface-soft);
}

.docs-main {
  background: var(--docs-bg);
}

.docs-main__inner {
  width: min(820px, calc(100% - 5rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.docs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  color: var(--docs-text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.docs-breadcrumbs a {
  text-decoration: none;
}

.docs-breadcrumbs strong {
  color: var(--docs-text);
}

.docs-page-head {
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--docs-border);
}

.docs-page-head__top,
.docs-page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.docs-page-head__top {
  margin-bottom: 0.7rem;
}

.docs-page-head__title-row,
.docs-page-head__excerpt-row,
.docs-inline-admin-strip,
.docs-section-tools,
.docs-sidebar__admin,
.docs-inline-toolbar,
.docs-inline-toolbar__actions,
.docs-body-editor__actions,
.docs-body-editor__meta,
.docs-nav-inline-editor__head,
.docs-nav-inline-editor__actions,
.docs-nav-inline-editor__footer,
.docs-inline-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.docs-inline-admin-strip,
.docs-sidebar__admin,
.docs-section-tools {
  margin-bottom: 0.9rem;
}

.docs-sidebar__admin {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--docs-border);
}

.docs-tree-create {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px dashed rgba(37, 99, 235, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
  color: var(--docs-text);
  text-align: left;
  cursor: pointer;
}

.docs-tree-create:hover {
  border-color: rgba(37, 99, 235, 0.34);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
}

.docs-tree-create__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--docs-accent);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.docs-tree-create__copy {
  display: grid;
  gap: 0.15rem;
}

.docs-tree-create__copy strong {
  font-size: 0.83rem;
  font-weight: 800;
}

.docs-tree-create__copy small {
  color: var(--docs-text-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.docs-page-head__title-row {
  align-items: flex-start;
  justify-content: space-between;
}

.docs-page-head__excerpt-row {
  margin-top: 0.8rem;
  align-items: flex-start;
}

.docs-page-head__excerpt-row .docs-page-head__excerpt {
  margin-top: 0;
  flex: 1 1 0;
}

.docs-page-head__excerpt--empty {
  margin: 0;
}

.docs-page-head__label {
  color: var(--docs-accent);
}

.docs-page-head__path {
  color: var(--docs-text-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
}

.docs-page-head h1,
.docs-empty-state h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.95rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.docs-page-head__excerpt,
.docs-empty-state p {
  max-width: 720px;
  margin: 0.85rem 0 0;
  color: var(--docs-text-muted);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.75;
}

.docs-page-head__meta {
  margin-top: 1rem;
}

.docs-page-head__meta span,
.docs-page-head__meta a {
  color: var(--docs-text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.docs-page-head__status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  color: #b45309;
}

.docs-page-head__meta a:hover,
.docs-prose a:hover,
.docs-toc__list a:hover,
.docs-pagination__link:hover strong {
  color: var(--docs-accent);
}

.docs-inline-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--docs-border);
  border-radius: 999px;
  background: var(--docs-surface);
  color: var(--docs-text-muted);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    border-color 140ms ease;
}

.docs-inline-edit-button:hover {
  color: var(--docs-text);
  background: var(--docs-surface-muted);
}

.docs-inline-edit-button--admin {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.14);
  color: var(--docs-accent);
}

.docs-inline-edit-button--admin:hover {
  background: rgba(37, 99, 235, 0.09);
}

.docs-inline-edit-button--primary {
  background: var(--docs-accent);
  border-color: rgba(37, 99, 235, 0.16);
  color: #fff;
}

.docs-inline-edit-button--primary:hover {
  background: #1d4ed8;
  color: #fff;
}

.docs-live-edit {
  display: grid;
  gap: 0.65rem;
  padding: 0.82rem;
  border: 1px solid var(--docs-border);
  border-radius: 16px;
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow);
}

.docs-live-edit--nav {
  padding: 0.68rem;
}

.docs-live-edit__input,
.docs-live-edit__textarea {
  width: 100%;
  min-width: 0;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  outline: 0;
  background: var(--docs-surface);
  color: var(--docs-text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
}

.docs-live-edit__input--title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.docs-live-edit__textarea {
  resize: vertical;
  line-height: 1.65;
}

.docs-live-edit__textarea--body {
  min-height: 340px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.7;
}

.docs-live-edit__input:focus,
.docs-live-edit__textarea:focus {
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.docs-live-edit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.docs-live-edit__message {
  color: var(--docs-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.docs-inline-editor,
.docs-nav-inline-editor {
  margin: 0 0 1.25rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--docs-border);
  border-radius: 18px;
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow);
}

.docs-body-editor {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 1px solid var(--docs-border);
  border-radius: 18px;
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow);
  overflow: hidden;
}

.docs-inline-editor__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.docs-inline-editor__head h2,
.docs-nav-inline-editor__head strong {
  margin: 0.18rem 0 0;
  color: var(--docs-text);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.docs-inline-editor__eyebrow {
  margin: 0;
  color: var(--docs-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-inline-flash {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.docs-inline-flash__item {
  padding: 0.7rem 0.82rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.docs-inline-flash__item--success {
  border: 1px solid rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
}

.docs-inline-flash__item--error {
  border: 1px solid rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
}

.docs-inline-editor__form,
.docs-nav-inline-editor__form {
  display: grid;
  gap: 0.95rem;
}

.docs-inline-editor__grid,
.docs-nav-inline-editor__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.docs-inline-field {
  display: grid;
  gap: 0.38rem;
}

.docs-inline-field--full {
  grid-column: 1 / -1;
}

.docs-inline-field span,
.docs-inline-advanced summary,
.docs-body-editor__preview-head span {
  color: var(--docs-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.docs-inline-field input,
.docs-inline-field select,
.docs-inline-field textarea,
.docs-body-editor__textarea {
  width: 100%;
  min-width: 0;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  outline: 0;
  background: var(--docs-surface);
  color: var(--docs-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.docs-inline-field textarea,
.docs-body-editor__textarea {
  resize: vertical;
  line-height: 1.6;
}

.docs-inline-field input:focus,
.docs-inline-field select:focus,
.docs-inline-field textarea:focus,
.docs-body-editor__textarea:focus {
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.docs-inline-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.docs-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--docs-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.docs-inline-toggle input {
  width: 16px;
  height: 16px;
}

.docs-inline-advanced {
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  background: var(--docs-surface-soft);
}

.docs-inline-advanced summary {
  padding: 0.82rem 0.9rem;
  cursor: pointer;
  list-style: none;
}

.docs-inline-advanced summary::-webkit-details-marker {
  display: none;
}

.docs-inline-advanced[open] .docs-inline-editor__grid {
  padding: 0 0.9rem 0.9rem;
}

.docs-body-editor__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem 0.9rem;
  border-bottom: 1px solid var(--docs-border);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), rgba(37, 99, 235, 0.01));
}

.docs-body-editor__title {
  display: grid;
  gap: 0.18rem;
}

.docs-body-editor__title h2 {
  margin: 0;
  color: var(--docs-text);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.docs-body-editor__mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.24rem;
  border: 1px solid var(--docs-border);
  border-radius: 999px;
  background: var(--docs-surface-soft);
}

.docs-body-editor__mode {
  min-height: 34px;
  padding: 0.4rem 0.82rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--docs-text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.docs-body-editor__mode:hover {
  color: var(--docs-text);
}

.docs-body-editor__mode.is-active {
  background: var(--docs-surface);
  color: var(--docs-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.docs-body-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  padding: 0.78rem 1.05rem;
  border-bottom: 1px solid var(--docs-border);
  background: var(--docs-surface-soft);
}

.docs-body-editor__toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.docs-toolbar-button {
  min-height: 34px;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--docs-border);
  border-radius: 999px;
  background: var(--docs-surface);
  color: var(--docs-text);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease;
}

.docs-toolbar-button:hover {
  background: var(--docs-surface-muted);
  border-color: var(--docs-border-strong);
}

.docs-body-editor__preview-head strong {
  color: var(--docs-text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.5;
}

.docs-body-editor__textarea {
  min-height: 360px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.7;
}

.docs-body-editor__stage {
  padding: 1rem 1.05rem 0;
}

.docs-body-editor__pane {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.docs-body-editor__pane--preview {
  min-height: 320px;
}

.docs-body-editor__preview-head {
  display: grid;
  gap: 0.24rem;
}

.docs-body-editor__preview {
  min-height: 320px;
  margin-top: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  background: var(--docs-surface-soft);
}

.docs-body-editor__actions {
  margin-top: 0.95rem;
  padding: 0 1.05rem 1rem;
}

.docs-body-editor__preview-empty {
  margin: 0;
  color: var(--docs-text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.docs-body-editor__preview-surface {
  padding-top: 0;
}

.docs-nav-inline-editor {
  margin-top: 0.2rem;
  padding: 0.85rem;
}

.docs-nav-inline-editor__footer {
  justify-content: flex-end;
}

.docs-prose {
  padding-top: 1.6rem;
  color: var(--docs-text);
  font-size: 0.98rem;
  line-height: 1.8;
}

.docs-prose > :first-child {
  margin-top: 0;
}

.docs-prose h1,
.docs-prose h2,
.docs-prose h3,
.docs-prose h4 {
  margin: 2rem 0 0.8rem;
  scroll-margin-top: calc(var(--docs-header-height) + 1rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.docs-prose h2 {
  font-size: 1.62rem;
}

.docs-prose h3 {
  font-size: 1.28rem;
}

.docs-prose h4 {
  font-size: 1.08rem;
}

.docs-prose p,
.docs-prose ul,
.docs-prose ol,
.docs-prose pre,
.docs-prose table,
.docs-prose blockquote,
.docs-prose hr {
  margin: 0 0 1rem;
}

.docs-prose ul,
.docs-prose ol {
  padding-left: 1.35rem;
}

.docs-prose li + li {
  margin-top: 0.36rem;
}

.docs-prose a {
  color: var(--docs-accent);
  text-decoration: none;
  font-weight: 600;
}

.docs-prose strong {
  font-weight: 800;
}

.docs-prose code {
  padding: 0.18rem 0.35rem;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  background: var(--docs-surface-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9em;
}

.docs-prose pre {
  overflow: auto;
  padding: 1rem 1.05rem;
  border: 1px solid #1f2937;
  border-radius: 16px;
  background: #111827;
  color: #f8fafc;
}

.docs-prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.docs-prose blockquote {
  padding: 0.8rem 0.95rem;
  border-left: 3px solid var(--docs-accent);
  border-radius: 0 12px 12px 0;
  background: rgba(37, 99, 235, 0.05);
  color: var(--docs-text-muted);
}

.docs-prose hr {
  border: 0;
  border-top: 1px solid var(--docs-border);
}

.docs-prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  overflow: hidden;
}

.docs-prose th,
.docs-prose td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--docs-border);
  border-right: 1px solid var(--docs-border);
  text-align: left;
  vertical-align: top;
}

.docs-prose th:last-child,
.docs-prose td:last-child {
  border-right: 0;
}

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

.docs-prose thead th {
  background: var(--docs-surface-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.docs-prose img {
  max-width: 100%;
  border: 1px solid var(--docs-border);
  border-radius: 16px;
  box-shadow: var(--docs-shadow);
}

.docs-prose .docs-embed {
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: 18px;
  background: #0f172a;
  box-shadow: var(--docs-shadow);
}

.docs-prose .docs-embed iframe,
.docs-prose .docs-embed video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.docs-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}

.docs-pagination__link,
.docs-pagination__spacer {
  min-height: 92px;
  padding: 1rem 1.05rem;
  border: 1px solid var(--docs-border);
  border-radius: 16px;
  background: var(--docs-surface);
}

.docs-pagination__link {
  display: grid;
  gap: 0.3rem;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    transform 140ms ease;
}

.docs-pagination__link:hover {
  border-color: var(--docs-border-strong);
  transform: translateY(-1px);
}

.docs-pagination__link--next {
  text-align: right;
}

.docs-pagination__link span {
  color: var(--docs-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.docs-pagination__link strong {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.docs-toc {
  position: sticky;
  top: var(--docs-header-height);
  align-self: start;
  height: calc(100vh - var(--docs-header-height));
  overflow-y: auto;
  padding: 1.3rem 1rem 1.5rem;
  border-left: 1px solid var(--docs-border);
  background: rgba(251, 251, 252, 0.86);
}

html[data-docs-theme="dark"] .docs-header {
  background: rgba(9, 13, 21, 0.86);
}

html[data-docs-theme="dark"] .docs-brand__mark {
  background: linear-gradient(180deg, #182233, #111925);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-docs-theme="dark"] .docs-search__results,
html[data-docs-theme="dark"] .docs-theme-picker__panel {
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.48);
}

html[data-docs-theme="dark"] .docs-sidebar {
  background: rgba(10, 15, 24, 0.82);
}

html[data-docs-theme="dark"] .docs-toc {
  background: rgba(9, 13, 21, 0.9);
}

.docs-toc__card {
  display: grid;
  gap: 0.65rem;
}

.docs-toc__card > span {
  color: var(--docs-text-soft);
}

.docs-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.docs-toc__list li.level-3,
.docs-toc__list li.level-4 {
  padding-left: 0.75rem;
}

.docs-toc__list a {
  color: var(--docs-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.docs-empty-state {
  padding: 1rem 0 0;
}

.docs-empty-state__eyebrow {
  margin: 0 0 0.7rem;
  color: var(--docs-accent);
}

body[data-docs-nav-open="true"],
body[data-docs-admin-open="true"] {
  overflow: hidden;
}

.docs-admin-overlay {
  position: fixed;
  inset: var(--docs-header-height) 0 0 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(4px);
}

.docs-admin-drawer {
  position: fixed;
  top: var(--docs-header-height);
  right: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(560px, 100vw);
  height: calc(100vh - var(--docs-header-height));
  border-left: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -24px 0 56px rgba(15, 23, 42, 0.14);
}

.docs-admin-drawer__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--docs-border);
}

.docs-admin-drawer__head h2 {
  margin: 0.16rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.docs-admin-drawer__eyebrow {
  margin: 0;
  color: var(--docs-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-admin-drawer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.docs-admin-flash {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem 0;
}

.docs-admin-flash__item {
  padding: 0.72rem 0.82rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.docs-admin-flash__item--success {
  border: 1px solid rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
}

.docs-admin-flash__item--error {
  border: 1px solid rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
}

.docs-admin-form {
  display: grid;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.1rem 1.2rem;
}

.docs-admin-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.docs-admin-field {
  display: grid;
  gap: 0.38rem;
}

.docs-admin-field--full {
  grid-column: 1 / -1;
}

.docs-admin-field span,
.docs-admin-advanced summary,
.docs-admin-toolbar__copy span {
  color: var(--docs-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.docs-admin-field input,
.docs-admin-field select,
.docs-admin-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  outline: 0;
  background: var(--docs-surface);
  color: var(--docs-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.docs-admin-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.docs-admin-field input:focus,
.docs-admin-field select:focus,
.docs-admin-field textarea:focus {
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.docs-admin-editor {
  min-height: 280px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.7;
}

.docs-admin-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.docs-admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--docs-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.docs-admin-toggle input {
  width: 16px;
  height: 16px;
}

.docs-admin-advanced {
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  background: var(--docs-surface-soft);
}

.docs-admin-advanced summary {
  padding: 0.82rem 0.9rem;
  cursor: pointer;
  list-style: none;
}

.docs-admin-advanced summary::-webkit-details-marker {
  display: none;
}

.docs-admin-advanced[open] .docs-admin-form__grid {
  padding: 0 0.9rem 0.9rem;
}

.docs-admin-toolbar {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.15rem;
}

.docs-admin-toolbar__copy {
  display: grid;
  gap: 0.25rem;
}

.docs-admin-toolbar__copy strong {
  color: var(--docs-text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.5;
}

.docs-admin-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.docs-admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.68rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    opacity 140ms ease;
}

.docs-admin-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.docs-admin-button--primary {
  border-color: rgba(37, 99, 235, 0.18);
  background: var(--docs-accent);
  color: #fff;
}

.docs-admin-button--primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.docs-admin-button--ghost {
  border-color: var(--docs-border);
  background: var(--docs-surface);
  color: var(--docs-text);
}

.docs-admin-button--ghost:hover:not(:disabled) {
  background: var(--docs-surface-muted);
}

.docs-admin-button--danger {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.docs-admin-button--danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.16);
}

@media (max-width: 1180px) {
  .docs-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .docs-shell {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .docs-sidebar {
    position: fixed;
    top: var(--docs-header-height);
    left: 0;
    z-index: 40;
    width: min(320px, calc(100vw - 1rem));
    height: calc(100vh - var(--docs-header-height));
    transform: translateX(calc(-100% - 12px));
    transition: transform 180ms ease;
    box-shadow: 0 24px 56px rgba(17, 24, 39, 0.12);
  }

  body[data-docs-nav-open="true"] .docs-sidebar {
    transform: translateX(0);
  }

  .docs-mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 920px) {
  .docs-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding: 0 0.75rem;
  }

  .docs-header__right .docs-header__link {
    display: none;
  }

  .docs-theme-picker__trigger-copy small {
    display: none;
  }

  .docs-search__hint {
    display: none;
  }

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-main__inner {
    width: min(100%, calc(100% - 2rem));
    padding: 1.35rem 0 2.4rem;
  }

  .docs-toc {
    position: static;
    height: auto;
    padding-top: 0;
    border-left: 0;
    border-top: 1px solid var(--docs-border);
  }

  .docs-pagination {
    grid-template-columns: 1fr;
  }

  .docs-nav-actions {
    opacity: 1;
    pointer-events: auto;
  }

  .docs-inline-editor__grid,
  .docs-nav-inline-editor__grid {
    grid-template-columns: 1fr;
  }

  .docs-inline-editor__head,
  .docs-body-editor__topbar,
  .docs-body-editor__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-body-editor__mode-switch,
  .docs-body-editor__toolbar-group,
  .docs-body-editor__actions,
  .docs-nav-inline-editor__footer {
    width: 100%;
  }

  .docs-body-editor__mode-switch {
    justify-content: stretch;
  }

  .docs-body-editor__mode {
    flex: 1 1 0;
  }

  .docs-body-editor__toolbar-group {
    justify-content: flex-start;
  }

  .docs-admin-drawer {
    width: min(100vw, 100vw);
  }

  .docs-admin-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .docs-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .docs-theme-picker__trigger {
    min-width: 40px;
    padding-inline: 0.45rem;
  }

  .docs-theme-picker__trigger-copy {
    display: none;
  }

  .docs-theme-picker__panel {
    right: -0.2rem;
  }

  .docs-brand__copy small {
    display: none;
  }

  .docs-header__button {
    min-height: 36px;
    padding-inline: 0.7rem;
    font-size: 0.78rem;
  }

  .docs-page-head h1,
  .docs-empty-state h1 {
    font-size: 1.78rem;
  }

  .docs-prose {
    font-size: 0.94rem;
  }

  .docs-prose h2 {
    font-size: 1.42rem;
  }

  .docs-prose h3 {
    font-size: 1.18rem;
  }

  .docs-header__right {
    gap: 0.45rem;
  }

  .docs-admin-drawer__head {
    padding-inline: 0.8rem;
  }

  .docs-admin-flash,
  .docs-admin-form {
    padding-inline: 0.8rem;
  }

  .docs-admin-toolbar__actions {
    flex-direction: column;
  }

  .docs-admin-button {
    width: 100%;
  }

  .docs-inline-edit-button {
    width: 100%;
  }

  .docs-body-editor__toolbar {
    padding-bottom: 0.9rem;
  }

  .docs-body-editor__toolbar-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.1rem;
  }
}
