:root {
  color-scheme: dark;
  --bg: #010409;
  --bg-elevated: #0e141b;
  --panel: #0e141b;
  --panel-strong: #111319;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(170, 139, 253, 0.075);
  --line: rgba(191, 193, 196, 0.16);
  --line-strong: rgba(170, 139, 253, 0.36);
  --ink: #ecedef;
  --muted: #bfc1c4;
  --quiet: #8392ab;
  --blue: #7396ff;
  --cyan: #58c5e8;
  --purple: #aa8bfd;
  --success: #65d6a5;
  --warning: #f4c36a;
  --danger: #ff8996;
  --page-glow: linear-gradient(180deg, rgba(116, 67, 255, 0.07), transparent 420px);
  --header-bg: rgba(16, 21, 27, 0.92);
  --control-bg: rgba(37, 39, 43, 0.86);
  --control-bg-subtle: rgba(24, 29, 36, 0.86);
  --control-bg-strong: #25272b;
  --active-gradient: linear-gradient(90deg, rgba(116, 67, 255, 0.2), rgba(88, 197, 232, 0.045));
  --accent-ink: #aa8bfd;
  --accent-ink-hover: #c8b8ff;
  --accent-soft: rgba(116, 67, 255, 0.12);
  --warning-soft: rgba(244, 195, 106, 0.07);
  --danger-soft: rgba(255, 137, 150, 0.07);
  --inline-code-bg: rgba(116, 67, 255, 0.14);
  --inline-code-border: rgba(170, 139, 253, 0.24);
  --inline-code-ink: #c8b8ff;
  --code-bg: #000000;
  --code-ink: #d5dce0;
  --media-bg: #010409;
  --technical-bg: #010409;
  --technical-panel: rgba(14, 20, 27, 0.98);
  --technical-panel-strong: #10151b;
  --technical-card: #111319;
  --search-bg: rgba(14, 20, 27, 0.98);
  --scrim: rgba(3, 5, 6, 0.72);
  --sidebar-bg: #0e141b;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  --shadow-strong: 0 34px 100px rgba(0, 0, 0, 0.58);
  --font-heading: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-interface: "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --header-height: 70px;
  --section-nav-height: 48px;
  --docs-chrome-height: calc(var(--header-height) + var(--section-nav-height));
  --sidebar-width: 292px;
  --toc-width: 220px;
  --content-width: 820px;
  --radius: 8px;
  font-family: var(--font-interface);
}

:root[data-docs-theme="light"] {
  color-scheme: light;
  --bg: #f3f7f9;
  --bg-elevated: #f9fbfc;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-hover: #f1f7fa;
  --line: rgba(55, 65, 81, 0.15);
  --line-strong: rgba(77, 88, 102, 0.25);
  --ink: #20242c;
  --muted: #5f6875;
  --quiet: #7c8793;
  --blue: #526fd7;
  --cyan: #298faf;
  --purple: #7658d6;
  --success: #2f8f62;
  --warning: #a66a0a;
  --danger: #c34858;
  --page-glow: linear-gradient(180deg, rgba(41, 143, 175, 0.018), transparent 280px);
  --header-bg: rgba(255, 255, 255, 0.96);
  --control-bg: rgba(255, 255, 255, 0.96);
  --control-bg-subtle: #f7f9fb;
  --control-bg-strong: #ffffff;
  --active-gradient: linear-gradient(90deg, rgba(82, 111, 215, 0.075), rgba(41, 143, 175, 0.018));
  --accent-ink: #5267c9;
  --accent-ink-hover: #4054b0;
  --accent-soft: rgba(82, 111, 215, 0.055);
  --warning-soft: rgba(166, 106, 10, 0.075);
  --danger-soft: rgba(195, 72, 88, 0.065);
  --inline-code-bg: rgba(82, 111, 215, 0.07);
  --inline-code-border: rgba(82, 111, 215, 0.17);
  --inline-code-ink: #465bbb;
  --code-bg: #010409;
  --code-ink: #d6dfe0;
  --media-bg: #ffffff;
  --technical-bg: #eef4f7;
  --technical-panel: rgba(255, 255, 255, 0.97);
  --technical-panel-strong: #ffffff;
  --technical-card: #fbfcfd;
  --search-bg: rgba(255, 255, 255, 0.98);
  --scrim: rgba(32, 36, 44, 0.38);
  --sidebar-bg: #ffffff;
  --shadow: 0 10px 30px rgba(45, 55, 72, 0.085);
  --shadow-strong: 0 22px 58px rgba(45, 55, 72, 0.14);
}

:root[data-docs-theme="light"] .docs-theme-choice[aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 30%, transparent);
}

:root[data-docs-theme="light"] .docs-site-footer {
  background:
    linear-gradient(112deg, color-mix(in srgb, var(--blue) 2.5%, transparent), transparent 36%),
    linear-gradient(250deg, color-mix(in srgb, var(--cyan) 2%, transparent), transparent 34%),
    #f9fbfc;
}

:root[data-docs-theme="light"] .docs-sidebar {
  background: color-mix(in srgb, var(--sidebar-bg) 82%, transparent);
}

:root[data-docs-theme="light"] .doc-trigger-workbench {
  border-color: var(--line);
  box-shadow: 0 12px 38px rgba(45, 55, 72, 0.1);
}

:root[data-docs-theme="light"] .doc-trigger-workbench-header {
  background:
    linear-gradient(115deg, rgba(109, 99, 232, 0.025), transparent 34%),
    #ffffff;
}

:root[data-docs-theme="light"] .doc-trigger-workbench-tabs button.is-active {
  background:
    linear-gradient(125deg, rgba(109, 99, 232, 0.06), rgba(109, 99, 232, 0.015)),
    #ffffff;
}

:root[data-docs-theme="light"] .doc-trigger-workbench-context {
  background:
    linear-gradient(100deg, rgba(109, 99, 232, 0.018), transparent 38%),
    #f3f8fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    var(--page-glow),
    var(--bg);
  font-family: var(--font-interface);
  font-size: 14px;
  line-height: 1.68;
}

body.docs-nav-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--docs-chrome-height);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.docs-header-inner {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(260px, 560px) 1fr auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  margin: 0;
  padding: 0 20px;
}

.docs-section-navigation {
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  height: var(--section-nav-height);
  margin: 0;
  padding: 0 20px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}

.docs-section-navigation::-webkit-scrollbar {
  display: none;
}

.docs-section-link {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 92px;
  padding: 0 14px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 650;
  justify-content: center;
  transition: color 150ms ease, background 150ms ease;
}

.docs-section-link:first-child {
  min-width: 78px;
  justify-content: flex-start;
  padding-left: 0;
}

.docs-section-link:first-child.is-active::after {
  left: 0;
}

.docs-section-link:hover,
.docs-section-link:focus-visible {
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.docs-section-link.is-active {
  color: var(--ink);
  background: linear-gradient(180deg, transparent, var(--accent-soft));
}

.docs-section-link.is-active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 0 14px rgba(107, 141, 255, 0.36);
}

.docs-brand {
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  gap: 14px;
  width: fit-content;
}

.docs-brand img {
  width: 150px;
  height: auto;
}

.docs-brand span {
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.docs-search-trigger {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: 20px 1fr auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 10px 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--control-bg);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.docs-search-trigger:hover,
.docs-search-trigger:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  outline: none;
}

.docs-search-trigger svg {
  width: 18px;
  height: 18px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  min-height: 23px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--quiet);
  background: var(--control-bg-subtle);
  font-family: var(--font-interface);
  font-size: 11px;
  line-height: 1;
}

.docs-header-actions {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.docs-header-actions a:hover,
.docs-header-actions a:focus-visible {
  color: var(--ink);
  outline: none;
}

.docs-view-controls {
  display: flex;
  grid-column: 4;
  grid-row: 1;
  gap: 6px;
  align-items: center;
  justify-self: end;
}

.docs-font-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--control-bg);
  font-family: var(--font-interface);
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.docs-font-toggle:hover,
.docs-font-toggle:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
  outline: none;
}

.docs-font-toggle[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--cyan) 62%, var(--purple));
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--blue) 58%, var(--cyan));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 20px color-mix(in srgb, var(--blue) 32%, transparent);
}

.docs-console-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink) !important;
  background: var(--control-bg-strong);
}

.docs-theme-switch {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 2px;
  justify-self: end;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--control-bg);
}

:root[data-docs-text-size="large"] {
  --content-width: 900px;
  --sidebar-width: 306px;
  --toc-width: 232px;
}

:root[data-docs-text-size="large"] body {
  font-size: 15px;
}

:root[data-docs-text-size="large"] .docs-section-link,
:root[data-docs-text-size="large"] .docs-nav-link,
:root[data-docs-text-size="large"] .docs-nav-link[data-depth="1"],
:root[data-docs-text-size="large"] .docs-nav-link[data-depth="2"],
:root[data-docs-text-size="large"] .docs-nav-link[data-depth="3"] {
  font-size: 13.5px;
}

:root[data-docs-text-size="large"] .docs-article h1 {
  font-size: clamp(44px, 5vw, 64px);
}

:root[data-docs-text-size="large"] .docs-article-description,
:root[data-docs-text-size="large"] .docs-article-body p,
:root[data-docs-text-size="large"] .docs-article-body li {
  font-size: 17px;
}

:root[data-docs-text-size="large"] .docs-article-body h2 {
  font-size: 32px;
}

:root[data-docs-text-size="large"] .docs-article-body h3 {
  font-size: 22px;
}

:root[data-docs-text-size="large"] .docs-article-body h4 {
  font-size: 17px;
}

:root[data-docs-text-size="large"] .docs-article-body table,
:root[data-docs-text-size="large"] .docs-article-body pre code {
  font-size: 14px;
}

:root[data-docs-text-size="large"] .docs-article-body .doc-concept-list a span,
:root[data-docs-text-size="large"] .docs-article-body .doc-deployment-strip a span,
:root[data-docs-text-size="large"] .docs-article-body .doc-start-path a small,
:root[data-docs-text-size="large"] .docs-home-category span {
  font-size: 13.5px;
}

.docs-theme-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-family: var(--font-interface);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.docs-theme-choice svg {
  width: 16px;
  height: 16px;
}

.docs-theme-choice:hover,
.docs-theme-choice:focus-visible {
  color: var(--ink);
  outline: none;
}

.docs-theme-choice[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface-hover);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.docs-console-link svg {
  width: 16px;
  height: 16px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
  outline: none;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.mobile-nav-button,
.docs-sidebar-header,
.docs-mobile-sections {
  display: none;
}

.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--toc-width);
  gap: 44px;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding-top: var(--docs-chrome-height);
}

.docs-sidebar {
  position: sticky;
  top: var(--docs-chrome-height);
  align-self: start;
  height: calc(100vh - var(--docs-chrome-height));
  overflow-y: auto;
  padding: 30px 26px 26px 20px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.docs-navigation {
  display: grid;
  gap: 16px;
}

.docs-sidebar-section-title {
  display: grid;
  gap: 2px;
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--line);
}

.docs-sidebar-section-title small {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.docs-sidebar-section-title strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
}

.docs-nav-section-tree {
  display: grid;
  gap: 4px;
}

.docs-nav-home {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.docs-nav-home:hover,
.docs-nav-home.is-active {
  color: var(--ink);
  background: var(--surface-hover);
}

.docs-nav-group {
  display: grid;
  gap: 4px;
}

.docs-nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--quiet);
  background: transparent;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.docs-nav-group-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.docs-nav-group-toggle:hover,
.docs-nav-group-toggle:focus-visible {
  color: var(--muted);
  background: var(--surface);
  outline: none;
}

.docs-nav-group.is-open .docs-nav-group-toggle::after {
  transform: rotate(225deg);
}

.docs-nav-group-links {
  display: none;
  gap: 4px;
}

.docs-nav-group.is-open .docs-nav-group-links {
  display: grid;
}

.docs-nav-branch {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.docs-nav-branch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  min-width: 0;
}

.docs-nav-branch-row > .docs-nav-link {
  padding-right: 5px;
}

.docs-nav-branch-row-label {
  grid-template-columns: minmax(0, 1fr);
}

.docs-nav-label-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-right: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.docs-nav-label-toggle::after {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-left: 12px;
  border-right: 1px solid var(--quiet);
  border-bottom: 1px solid var(--quiet);
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.docs-nav-branch.is-open > .docs-nav-branch-row .docs-nav-label-toggle::after {
  transform: rotate(225deg);
}

.docs-nav-branch-toggle {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: var(--quiet);
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.docs-nav-branch-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.docs-nav-branch-toggle:hover,
.docs-nav-branch-toggle:focus-visible {
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.docs-nav-branch.is-open > .docs-nav-branch-row .docs-nav-branch-toggle::after {
  transform: rotate(225deg);
}

.docs-nav-children {
  display: none;
  min-width: 0;
  gap: 3px;
  margin-left: 10px;
  padding-left: 9px;
  border-left: 1px solid var(--line);
}

.docs-nav-branch.is-open > .docs-nav-children {
  display: grid;
}

.docs-nav-link {
  position: relative;
  display: block;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color 140ms ease, background 140ms ease;
}

.docs-nav-link:hover,
.docs-nav-link:focus-visible {
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

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

.docs-nav-link.is-active::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--purple), var(--cyan));
  box-shadow: 0 0 14px rgba(107, 141, 255, 0.42);
}

.docs-nav-link[data-depth="1"] {
  font-weight: 560;
  font-size: 12.5px;
}

.docs-nav-link[data-depth="2"] {
  color: var(--quiet);
  font-size: 12.25px;
}

.docs-nav-link[data-depth="3"] {
  color: var(--quiet);
  font-size: 12px;
}

.docs-sidebar-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.docs-sidebar-footer a {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}

.docs-sidebar-footer a:hover {
  background: var(--surface);
}

.docs-sidebar-footer span {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.docs-sidebar-footer strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
}

.docs-sidebar-footer small {
  margin-top: 2px;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.45;
}

.docs-sidebar-scrim {
  display: none;
}

.docs-main {
  width: min(100%, var(--content-width));
  min-width: 0;
  margin: 0 auto;
  padding: 38px 0 90px;
}

.docs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  margin-bottom: 38px;
  color: var(--quiet);
  font-size: 12px;
}

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

.docs-breadcrumb i {
  color: var(--quiet);
  font-style: normal;
}

.docs-article-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.docs-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 22px;
}

.docs-page-updated,
.docs-page-action-status {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 680;
  text-transform: uppercase;
}

.docs-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.docs-page-action {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--control-bg-subtle);
  cursor: pointer;
  font-size: 11px;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.docs-page-action svg {
  width: 14px;
  height: 14px;
}

.docs-page-action:hover,
.docs-page-action:focus-visible {
  border-color: color-mix(in srgb, var(--cyan) 45%, var(--line));
  color: var(--ink);
  background: var(--surface-hover);
  outline: none;
}

.docs-page-action:disabled {
  cursor: wait;
  opacity: 0.62;
}

.docs-page-action-status {
  min-width: 78px;
  color: var(--success);
}

.docs-article-home .docs-article-header {
  position: relative;
  min-height: 340px;
  padding: 50px 44px 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--technical-bg) 98%, transparent) 0 40%, color-mix(in srgb, var(--technical-bg) 82%, transparent) 68%, color-mix(in srgb, var(--purple) 10%, var(--technical-bg)) 100%),
    var(--technical-bg);
  isolation: isolate;
}

.docs-article-home .docs-article-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.38;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 42%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 42%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent 12%, black 60%, transparent);
}

.docs-article-home .docs-article-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--technical-bg) 0 44%, color-mix(in srgb, var(--technical-bg) 90%, transparent) 55%, transparent 74%);
  pointer-events: none;
}

.docs-article-home .docs-article-kicker,
.docs-article-home .docs-article-header h1,
.docs-article-home .docs-article-description {
  position: relative;
  z-index: 2;
  max-width: 470px;
}

.docs-article-home .docs-article-header h1 {
  font-size: clamp(42px, 6vw, 66px);
}

.docs-article-home .docs-article-description {
  max-width: 370px;
}

.docs-home-signal-field {
  position: absolute;
  top: 50%;
  right: -7%;
  z-index: 0;
  width: 56%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.docs-home-signal-glow {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 42%, color-mix(in srgb, var(--cyan) 48%, transparent), transparent 24%),
    radial-gradient(circle at 42% 56%, color-mix(in srgb, var(--purple) 54%, transparent), transparent 55%);
  filter: blur(20px);
  opacity: 0.75;
  animation: docs-home-glow 8s ease-in-out infinite;
}

.docs-home-glyph-cloud {
  position: absolute;
  inset: 8%;
  display: grid;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  border-radius: 50%;
  color: color-mix(in srgb, var(--cyan) 82%, var(--ink));
  font-family: var(--font-interface);
  font-size: clamp(8px, 0.92vw, 12px);
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 54%, transparent);
  transform: rotate(-3deg);
  mask-image: radial-gradient(circle, black 0 54%, transparent 73%);
  animation: docs-home-glyph-float 11s ease-in-out infinite;
}

.docs-home-glyph-cloud span {
  display: block;
  white-space: nowrap;
}

.docs-home-glyph-cloud span:nth-child(2n) {
  color: color-mix(in srgb, var(--purple) 78%, var(--ink));
  text-shadow: 0 0 12px color-mix(in srgb, var(--purple) 58%, transparent);
}

.docs-home-glyph-cloud span:nth-child(4),
.docs-home-glyph-cloud span:nth-child(6) {
  color: color-mix(in srgb, var(--ink) 76%, var(--cyan));
}

.docs-home-signal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 88px;
  height: 58px;
  place-content: center;
  border: 1px solid color-mix(in srgb, var(--cyan) 58%, transparent);
  border-radius: 6px;
  color: var(--ink);
  background: color-mix(in srgb, var(--technical-panel-strong) 84%, transparent);
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--purple) 7%, transparent),
    0 0 34px color-mix(in srgb, var(--cyan) 24%, transparent);
  text-align: center;
  transform: translate(-50%, -50%) rotate(-3deg);
  backdrop-filter: blur(8px);
}

.docs-home-signal-core span {
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0;
}

.docs-home-signal-core small {
  color: var(--success);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

@keyframes docs-home-glow {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.88;
    transform: scale(1.04);
  }
}

@keyframes docs-home-glyph-float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-7px) rotate(-1.5deg);
  }
}

.docs-article-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 20px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 680;
}

.docs-article h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 320;
  line-height: 1.06;
  letter-spacing: 0;
}

.docs-article-description {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.docs-article-body {
  color: var(--muted);
}

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

.docs-article-body h2,
.docs-article-body h3,
.docs-article-body h4 {
  scroll-margin-top: calc(var(--docs-chrome-height) + 24px);
  color: var(--ink);
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.docs-article-body h2 {
  margin: 64px 0 20px;
  padding-top: 6px;
  font-size: 29px;
  font-weight: 390;
  line-height: 1.2;
}

.docs-article-body h3 {
  margin: 40px 0 14px;
  font-size: 20px;
  font-weight: 480;
  line-height: 1.3;
}

.docs-article-body h4 {
  margin: 30px 0 12px;
  font-size: 15px;
  font-weight: 620;
}

.docs-article-body p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.78;
}

.docs-article-body strong {
  color: var(--ink);
  font-weight: 700;
}

.docs-article-body a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-ink) 38%, transparent);
  text-underline-offset: 3px;
}

.docs-article-body a:hover {
  color: var(--accent-ink-hover);
  text-decoration-color: currentColor;
}

.docs-article-body ul,
.docs-article-body ol {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding-left: 24px;
}

.docs-article-body li {
  padding-left: 4px;
  color: var(--muted);
  line-height: 1.65;
}

.docs-article-body li::marker {
  color: var(--blue);
}

.docs-article-body hr {
  height: 1px;
  margin: 44px 0;
  border: 0;
  background: var(--line);
}

.docs-article-body blockquote,
.doc-callout {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--blue);
  border-radius: 0 7px 7px 0;
  color: var(--muted);
  background: var(--accent-soft);
}

.doc-callout-warning {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.doc-callout-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.doc-callout > :last-child,
.docs-article-body blockquote > :last-child {
  margin-bottom: 0;
}

.doc-download-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.34fr);
  gap: 28px;
  align-items: center;
  margin: 28px 0;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 58%),
    var(--technical-card);
  box-shadow: var(--shadow);
}

.doc-download-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan), var(--success));
}

.doc-download-card-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.doc-download-card-copy small {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.doc-download-card-copy strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.docs-article-body .doc-download-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.doc-download-card-copy span {
  color: var(--quiet);
  font-size: 11px;
}

.doc-download-actions {
  display: grid;
  gap: 9px;
}

.docs-article-body .doc-download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: var(--control-bg-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.docs-article-body .doc-download-action:hover,
.docs-article-body .doc-download-action:focus-visible {
  border-color: var(--blue);
  color: var(--accent-ink-hover);
  background: var(--surface-hover);
  outline: none;
  transform: translateY(-1px);
}

.docs-article-body .doc-download-action.is-primary {
  border-color: color-mix(in srgb, var(--blue) 65%, transparent);
  color: #f7fbff;
  background: linear-gradient(120deg, color-mix(in srgb, var(--purple) 72%, #243050), color-mix(in srgb, var(--blue) 78%, #183b4a));
}

.docs-article-body .doc-download-action.is-primary:hover,
.docs-article-body .doc-download-action.is-primary:focus-visible {
  color: #ffffff;
  background: linear-gradient(120deg, var(--purple), var(--blue));
}

.doc-quickstart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.doc-quickstart-grid .doc-download-card {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  gap: 20px;
  margin: 0;
  min-width: 0;
}

.doc-quickstart-grid .doc-download-actions {
  align-self: end;
}

.docs-article-body code {
  padding: 2px 6px;
  border: 1px solid var(--inline-code-border);
  border-radius: 4px;
  color: var(--inline-code-ink);
  background: var(--inline-code-bg);
  font-family: var(--font-interface);
  font-size: 0.88em;
}

.docs-article-body pre {
  position: relative;
  margin: 28px 0;
  overflow: auto;
  padding: 46px 20px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background:
    linear-gradient(90deg, #ff6b77 0 7px, transparent 7px 13px, #f2c65c 13px 20px, transparent 20px 26px, #67d59e 26px 33px, transparent 33px) 18px 16px / 33px 7px no-repeat,
    var(--code-bg);
  box-shadow: var(--shadow);
}

.docs-article-body pre::before {
  content: "code";
  position: absolute;
  top: 10px;
  right: 14px;
  color: var(--quiet);
  font-family: var(--font-interface);
  font-size: 10px;
  text-transform: uppercase;
}

.docs-article-body pre code {
  padding: 0;
  border: 0;
  color: var(--code-ink);
  background: transparent;
  font-size: 13px;
  line-height: 1.65;
}

.docs-article-body figure {
  margin: 34px 0;
}

.docs-article-body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 720px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--media-bg);
  box-shadow: var(--shadow);
}

.docs-article-body figcaption {
  margin-top: 11px;
  color: var(--quiet);
  font-size: 12px;
  text-align: center;
}

.doc-product-figure {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 44%),
    var(--surface);
}

.docs-article-body .doc-product-figure img {
  width: 100%;
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.doc-signal-map,
.doc-tech-plate {
  position: relative;
  margin: 32px 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(color-mix(in srgb, var(--line) 34%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 34%, transparent) 1px, transparent 1px),
    linear-gradient(120deg, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 38%),
    linear-gradient(300deg, color-mix(in srgb, var(--purple) 8%, transparent), transparent 42%),
    var(--technical-bg);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  box-shadow: var(--shadow);
}

.doc-signal-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--technical-panel) 88%, transparent);
}

.doc-signal-map-header > div,
.doc-signal-block-label {
  display: grid;
  gap: 3px;
}

.doc-signal-map-header small,
.doc-signal-block-label small,
.doc-signal-source small {
  color: var(--quiet);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.doc-signal-map-header strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 650;
}

.doc-signal-map-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-signal-map-status i,
.doc-signal-evidence > span:first-child i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent);
}

.doc-signal-stage {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 42px minmax(180px, 1.12fr) 42px minmax(180px, 1.12fr);
  gap: 10px;
  align-items: center;
  padding: 24px 18px;
}

.doc-signal-sources {
  display: grid;
  gap: 7px;
}

.doc-signal-source,
.doc-signal-gate,
.doc-signal-runtime {
  position: relative;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--technical-panel) 94%, transparent);
}

.doc-signal-source {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 10px 11px 9px 13px;
  border-left: 2px solid var(--cyan);
  border-radius: 5px;
}

.doc-signal-source.is-purple {
  border-left-color: var(--purple);
}

.doc-signal-source.is-amber {
  border-left-color: var(--warning);
}

.doc-signal-source strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 630;
}

.docs-article-body .doc-signal-source code,
.docs-article-body .doc-signal-evidence code {
  align-self: center;
  padding: 0;
  border: 0;
  color: var(--quiet);
  background: transparent;
  font-size: 9px;
}

.doc-signal-source small {
  grid-column: 1 / -1;
}

.doc-signal-link {
  position: relative;
  height: 20px;
}

.doc-signal-link::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cyan) 38%, transparent), var(--cyan));
}

.doc-signal-link.is-runtime::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--purple) 42%, transparent), var(--success));
}

.doc-signal-link::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px color-mix(in srgb, var(--cyan) 70%, transparent);
  animation: docs-signal-pulse 2.4s ease-in-out infinite;
}

.doc-signal-link.is-runtime::after {
  background: var(--success);
  box-shadow: 0 0 10px color-mix(in srgb, var(--success) 70%, transparent);
  animation-delay: 0.55s;
}

.doc-signal-link span::after,
.doc-signal-link span::before {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  right: 0;
  width: 4px;
  height: 4px;
  border-top: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
  transform: rotate(45deg);
}

.doc-signal-link span::before {
  right: 5px;
  opacity: 0.45;
}

.doc-signal-link.is-runtime span::after,
.doc-signal-link.is-runtime span::before {
  border-color: var(--success);
}

.doc-signal-gate,
.doc-signal-runtime {
  min-height: 168px;
  padding: 15px;
  border-radius: 6px;
}

.doc-signal-gate {
  border-color: color-mix(in srgb, var(--purple) 44%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--purple) 10%, transparent), transparent 58%),
    color-mix(in srgb, var(--technical-panel) 96%, transparent);
}

.doc-signal-runtime {
  border-color: color-mix(in srgb, var(--success) 40%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success) 9%, transparent), transparent 58%),
    color-mix(in srgb, var(--technical-panel) 96%, transparent);
}

.doc-signal-block-label strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 650;
}

.doc-signal-protocols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 15px;
}

.doc-signal-protocols span {
  padding: 5px 3px;
  border: 1px solid color-mix(in srgb, var(--purple) 30%, var(--line));
  border-radius: 3px;
  color: var(--purple);
  background: color-mix(in srgb, var(--purple) 7%, transparent);
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.doc-signal-gate-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 9px;
}

.doc-signal-gate-steps span:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--quiet);
}

.doc-signal-runtime-steps {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.doc-signal-runtime-steps span {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: var(--control-bg-subtle);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-signal-runtime-steps i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.doc-signal-runtime-steps span:nth-child(2) i {
  background: var(--purple);
}

.doc-signal-runtime-steps span:nth-child(3) i {
  background: var(--warning);
}

.doc-signal-evidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  padding: 9px 18px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  background: color-mix(in srgb, var(--technical-panel) 88%, transparent);
  font-size: 9px;
  text-transform: uppercase;
}

.doc-signal-evidence > span:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--success);
  font-weight: 700;
}

@keyframes docs-signal-pulse {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translateX(36px);
    opacity: 0;
  }
}

.doc-tech-flow-stage .doc-signal-link::after {
  animation-name: docs-tech-pulse;
}

@keyframes docs-tech-pulse {
  0% {
    left: 0;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 6px);
    opacity: 0;
  }
}

.doc-tech-flow-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) 26px minmax(0, 1fr) 26px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 22px 18px;
}

.doc-tech-flow-stage.is-five {
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr);
  gap: 5px;
}

.doc-tech-node {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 132px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  border-radius: 5px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 60%),
    color-mix(in srgb, var(--technical-panel) 96%, transparent);
}

.doc-tech-node.is-purple {
  border-top-color: var(--purple);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--purple) 9%, transparent), transparent 60%),
    color-mix(in srgb, var(--technical-panel) 96%, transparent);
}

.doc-tech-node.is-green {
  border-top-color: var(--success);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--success) 9%, transparent), transparent 60%),
    color-mix(in srgb, var(--technical-panel) 96%, transparent);
}

.doc-tech-node.is-amber {
  border-top-color: var(--warning);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--warning) 8%, transparent), transparent 60%),
    color-mix(in srgb, var(--technical-panel) 96%, transparent);
}

.doc-tech-node small,
.doc-tech-boundary-card small,
.doc-tech-hub-card small,
.doc-tech-hub-core small {
  color: var(--quiet);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-tech-node strong,
.doc-tech-boundary-card strong,
.doc-tech-hub-card strong,
.doc-tech-hub-core strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.doc-tech-node span,
.doc-tech-boundary-card span,
.doc-tech-hub-card span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.doc-tech-node em {
  align-self: end;
  margin-top: auto;
  color: var(--quiet);
  font-size: 8px;
  font-style: normal;
  text-transform: uppercase;
}

.doc-tech-hub-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(190px, 1.18fr) minmax(0, 0.92fr);
  grid-template-rows: repeat(2, minmax(86px, auto));
  gap: 12px 44px;
  padding: 24px 18px;
}

.doc-tech-hub-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 25% 17%;
  background:
    linear-gradient(90deg, var(--line-strong), var(--line-strong)) top / 100% 1px no-repeat,
    linear-gradient(90deg, var(--line-strong), var(--line-strong)) bottom / 100% 1px no-repeat;
}

.doc-tech-hub-card,
.doc-tech-hub-core {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: 5px;
  background: color-mix(in srgb, var(--technical-panel) 97%, transparent);
}

.doc-tech-hub-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.doc-tech-hub-card:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
  border-left-color: var(--purple);
}

.doc-tech-hub-card:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
  border-left-color: var(--warning);
}

.doc-tech-hub-card:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
  border-left-color: var(--success);
}

.doc-tech-hub-core {
  grid-column: 2;
  grid-row: 1 / 3;
  align-content: start;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--purple) 44%, var(--line));
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--purple) 11%, transparent), transparent 58%),
    color-mix(in srgb, var(--technical-panel) 97%, transparent);
}

.doc-tech-hub-core strong {
  font-size: 15px;
}

.doc-tech-hub-core-steps {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.doc-tech-hub-core-steps span {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: var(--control-bg-subtle);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-tech-hub-core-steps i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.doc-tech-hub-core-steps span:nth-child(2) i {
  background: var(--purple);
}

.doc-tech-hub-core-steps span:nth-child(3) i {
  background: var(--success);
}

.doc-tech-boundaries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 22px 18px 12px;
}

.doc-tech-boundary-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 142px;
  padding: 15px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  border-radius: 5px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 62%),
    color-mix(in srgb, var(--technical-panel) 96%, transparent);
}

.doc-tech-boundary-card:nth-child(2) {
  border-top-color: var(--purple);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--purple) 9%, transparent), transparent 62%),
    color-mix(in srgb, var(--technical-panel) 96%, transparent);
}

.doc-tech-boundary-card:nth-child(3) {
  border-top-color: var(--success);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--success) 9%, transparent), transparent 62%),
    color-mix(in srgb, var(--technical-panel) 96%, transparent);
}

.doc-tech-boundary-card ul {
  display: grid;
  gap: 4px;
  margin: 7px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 8px;
  list-style: none;
}

.doc-tech-boundary-card li::before {
  content: "+";
  margin-right: 6px;
  color: var(--accent-ink);
}

.doc-tech-foundation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 18px 18px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  background: color-mix(in srgb, var(--technical-panel) 96%, transparent);
  font-size: 8px;
  text-transform: uppercase;
}

.doc-tech-foundation strong {
  color: var(--ink);
  font-size: 9px;
}

.doc-platform-map {
  display: grid;
  gap: 12px;
  margin: 32px 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(115deg, var(--accent-soft), transparent 36%),
    linear-gradient(245deg, color-mix(in srgb, var(--success) 8%, transparent), transparent 36%),
    var(--technical-bg);
  box-shadow: var(--shadow);
}

.doc-platform-map-edge {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.doc-platform-map-edge span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--control-bg);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.doc-platform-map-direction {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: 18px;
}

.doc-platform-map-direction span {
  position: relative;
  justify-self: center;
  width: 1px;
  height: 18px;
  background: linear-gradient(var(--blue), rgba(107, 141, 255, 0.18));
}

.doc-platform-map-direction span::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: 0;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
  transform: rotate(45deg);
}

.doc-platform-map-direction-out span {
  background: linear-gradient(rgba(84, 199, 236, 0.18), var(--cyan));
}

.doc-platform-map-direction-out span::after {
  border-color: var(--cyan);
}

.doc-platform-map-runtime {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 48%),
    var(--technical-panel);
}

.doc-platform-map-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.doc-platform-map-title small {
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 720;
  text-transform: uppercase;
}

.doc-platform-map-title strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
}

.doc-platform-map-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.doc-platform-map-stages div {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 14px;
  background: var(--technical-panel);
}

.doc-platform-map-stages b {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 650;
}

.doc-platform-map-stages span,
.doc-platform-map-rails span {
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.45;
}

.doc-platform-map-rails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.doc-platform-map-rails span {
  position: relative;
  padding-left: 13px;
}

.doc-platform-map-rails span::before {
  content: "";
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(101, 214, 165, 0.55);
}

.doc-platform-map-systems span {
  border-color: rgba(84, 199, 236, 0.16);
}

.doc-execution-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--line);
}

.doc-execution-step {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 7px;
  min-height: 132px;
  padding: 18px;
  background:
    linear-gradient(150deg, var(--accent-soft), transparent 50%),
    var(--technical-card);
}

.doc-execution-step span {
  color: var(--accent-ink);
  font-family: var(--font-interface);
  font-size: 10px;
  font-weight: 700;
}

.doc-execution-step strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 650;
}

.doc-execution-step small {
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.5;
}

@media (min-width: 621px) {
  .doc-execution-path:has(> .doc-execution-step:nth-child(7):last-child) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .doc-execution-path:has(> .doc-execution-step:nth-child(7):last-child) > .doc-execution-step {
    grid-column: span 3;
  }

  .doc-execution-path:has(> .doc-execution-step:nth-child(7):last-child) > .doc-execution-step:nth-last-child(-n + 3) {
    grid-column: span 4;
  }
}

.doc-concept-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.docs-article-body .doc-concept-list a {
  display: grid;
  grid-template-columns: minmax(100px, 0.36fr) 1fr;
  gap: 16px;
  align-items: start;
  min-height: 86px;
  padding: 17px;
  color: inherit;
  background: var(--technical-card);
  text-decoration: none;
  transition: background 160ms ease;
}

.docs-article-body .doc-concept-list a:hover,
.docs-article-body .doc-concept-list a:focus-visible {
  background:
    linear-gradient(120deg, var(--accent-soft), transparent 58%),
    var(--technical-panel-strong);
  outline: none;
}

.doc-concept-list strong {
  color: var(--accent-ink);
  font-family: var(--font-heading);
  font-size: 14px;
}

.doc-concept-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.doc-concept-list > a:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (min-width: 621px) {
  .doc-concept-list:has(> a:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .docs-article-body .doc-concept-list:has(> a:nth-child(3):last-child) > a {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .doc-concept-list:has(> a:nth-child(7):last-child) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .docs-article-body .doc-concept-list:has(> a:nth-child(7):last-child) > a {
    grid-column: span 3;
  }

  .docs-article-body .doc-concept-list:has(> a:nth-child(7):last-child) > a:nth-last-child(-n + 3) {
    grid-column: span 2;
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.doc-concept-list-five > a:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (min-width: 921px) {
  .doc-concept-list-five {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .docs-article-body .doc-concept-list-five > a {
    grid-column: span 2;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .docs-article-body .doc-concept-list-five > a:nth-last-child(-n + 2) {
    grid-column: span 3;
    grid-template-columns: minmax(100px, 0.36fr) 1fr;
    gap: 16px;
  }
}

.doc-deployment-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 22px;
}

.docs-article-body .doc-deployment-strip a {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 146px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: inherit;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 52%),
    var(--surface);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.docs-article-body .doc-deployment-strip a:hover,
.docs-article-body .doc-deployment-strip a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  outline: none;
}

.doc-deployment-strip small {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-deployment-strip strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 16px;
}

.doc-deployment-strip span {
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.55;
}

.doc-start-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--line);
}

.docs-article-body .doc-start-path a {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 9px;
  min-height: 170px;
  padding: 18px;
  color: inherit;
  background:
    linear-gradient(150deg, var(--accent-soft), transparent 54%),
    var(--technical-card);
  text-decoration: none;
  transition: background 160ms ease;
}

.docs-article-body .doc-start-path a:hover,
.docs-article-body .doc-start-path a:focus-visible {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--blue) 16%, transparent), color-mix(in srgb, var(--cyan) 5%, transparent) 58%, transparent),
    var(--technical-panel-strong);
  outline: none;
}

.doc-start-path a > span {
  color: var(--accent-ink);
  font-family: var(--font-interface);
  font-size: 10px;
  font-weight: 700;
}

.doc-start-path a > strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.doc-start-path a > small {
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.55;
}

.doc-start-path-admin a > span {
  color: var(--success);
}

@media (min-width: 621px) {
  .doc-start-path:has(> a:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-start-path:has(> a:nth-child(3):last-child),
  .doc-start-path:has(> a:nth-child(6):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .doc-start-path:has(> a:nth-child(5):last-child) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .docs-article-body .doc-start-path:has(> a:nth-child(5):last-child) > a {
    grid-column: span 2;
  }

  .docs-article-body .doc-start-path:has(> a:nth-child(5):last-child) > a:nth-last-child(-n + 2) {
    grid-column: span 3;
  }

  .doc-start-path:has(> a:nth-child(7):last-child) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .docs-article-body .doc-start-path:has(> a:nth-child(7):last-child) > a {
    grid-column: span 3;
  }

  .docs-article-body .doc-start-path:has(> a:nth-child(7):last-child) > a:nth-last-child(-n + 3) {
    grid-column: span 4;
  }
}

.docs-article-body table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: 13px;
}

.docs-article-body th,
.docs-article-body td {
  min-width: 130px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-article-body th {
  color: var(--ink);
  background: var(--control-bg-strong);
}

.docs-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.docs-home-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 44px 0 20px;
}

.docs-home-category {
  position: relative;
  display: grid;
  min-height: 164px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(107, 141, 255, 0.08), transparent 48%),
    var(--surface);
  transition: transform 160ms ease, border-color 160ms ease;
}

.docs-home-category:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.docs-home-category small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.docs-home-category strong {
  align-self: end;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 580;
}

.docs-home-category span {
  color: var(--quiet);
  font-size: 12px;
}

.docs-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.docs-pagination a {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface);
}

.docs-pagination a:last-child {
  text-align: right;
}

.docs-pagination a:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.docs-pagination small {
  color: var(--quiet);
  font-size: 11px;
  text-transform: uppercase;
}

.docs-pagination strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.docs-article-footer {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  color: var(--quiet);
  font-size: 12px;
}

.docs-feedback-question {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
}

.docs-feedback-question p {
  margin: 0;
}

.docs-feedback-choice {
  display: flex;
  gap: 6px;
}

.docs-feedback-choice button,
.docs-feedback-form-actions button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.docs-feedback-choice button:hover,
.docs-feedback-choice button:focus-visible,
.docs-feedback-form-actions button:hover,
.docs-feedback-form-actions button:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
  outline: none;
}

.docs-feedback-choice button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--cyan) 62%, var(--purple));
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--blue) 58%, var(--cyan));
  box-shadow: 0 0 16px color-mix(in srgb, var(--blue) 24%, transparent);
}

.docs-feedback-choice button:disabled,
.docs-feedback-form-actions button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.docs-feedback-note {
  color: var(--quiet);
}

.docs-feedback-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--purple) 5%, transparent), transparent 42%),
    var(--surface);
}

.docs-feedback-form[hidden] {
  display: none;
}

.docs-feedback-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.docs-feedback-form legend,
.docs-feedback-comment > span {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
}

.docs-feedback-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.docs-feedback-reasons label {
  position: relative;
  cursor: pointer;
}

.docs-feedback-reasons input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.docs-feedback-reasons span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--control-bg);
}

.docs-feedback-reasons input:checked + span {
  border-color: color-mix(in srgb, var(--cyan) 60%, var(--purple));
  color: var(--ink);
  background: var(--active-gradient);
}

.docs-feedback-reasons input:focus-visible + span {
  border-color: var(--cyan);
  outline: 2px solid color-mix(in srgb, var(--cyan) 22%, transparent);
  outline-offset: 2px;
}

.docs-feedback-comment {
  display: grid;
}

.docs-feedback-comment small {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 500;
}

.docs-feedback-comment textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--control-bg);
  font: inherit;
  line-height: 1.55;
}

.docs-feedback-comment textarea:focus {
  border-color: var(--cyan);
  outline: 2px solid color-mix(in srgb, var(--cyan) 18%, transparent);
  outline-offset: 1px;
}

.docs-feedback-form-actions {
  display: flex;
  gap: 8px;
}

.docs-feedback-form-actions .docs-feedback-submit {
  border-color: color-mix(in srgb, var(--cyan) 55%, var(--purple));
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--blue) 58%, var(--cyan));
}

.docs-site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--purple) 7%, transparent), transparent 34%),
    linear-gradient(250deg, color-mix(in srgb, var(--cyan) 5%, transparent), transparent 32%),
    var(--bg-elevated);
}

.docs-site-footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, var(--sidebar-width)) repeat(3, minmax(140px, 1fr));
  gap: 42px;
  width: min(100% - 40px, 1600px);
  margin: 0 auto;
  padding: 46px 0 24px;
}

.docs-site-footer-brand {
  display: grid;
  align-content: start;
  gap: 16px;
}

.docs-site-footer-brand > a {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
}

.docs-site-footer-brand img {
  width: 146px;
  height: auto;
}

.docs-site-footer-brand span {
  padding-left: 13px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.docs-site-footer-brand p {
  max-width: 270px;
  margin: 0;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.65;
}

.docs-site-footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.docs-site-footer-column h2 {
  margin: 0 0 5px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 720;
  text-transform: uppercase;
}

.docs-site-footer-column a,
.docs-site-footer-bottom a {
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  transition: color 150ms ease;
}

.docs-site-footer-column a:hover,
.docs-site-footer-column a:focus-visible,
.docs-site-footer-bottom a:hover,
.docs-site-footer-bottom a:focus-visible {
  color: var(--ink);
  outline: none;
}

.docs-site-footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.docs-site-footer-bottom p {
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
}

.docs-site-footer-bottom nav {
  display: flex;
  gap: 20px;
}

.docs-report-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--purple) 6%, transparent), transparent 28%),
    var(--bg);
}

.docs-report-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 max(20px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--header-bg) 90%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
}

.docs-report-header .docs-brand {
  display: flex;
  align-items: center;
}

.docs-report-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.docs-report-header-actions > a {
  color: var(--muted);
  font-size: 12px;
}

.docs-report-header-actions > a:hover,
.docs-report-header-actions > a:focus-visible {
  color: var(--ink);
  outline: none;
}

.docs-report-main {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
  padding: 70px 0 100px;
}

.docs-report-intro {
  max-width: 760px;
}

.docs-report-intro h1 {
  margin: 14px 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 420;
  line-height: 1.02;
}

.docs-report-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.docs-report-access {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 12px;
  max-width: 720px;
  margin: 42px 0 52px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.docs-report-access label {
  display: grid;
  gap: 8px;
}

.docs-report-access label span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.docs-report-access input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--control-bg);
  font: inherit;
}

.docs-report-access input:focus {
  border-color: var(--cyan);
  outline: 2px solid color-mix(in srgb, var(--cyan) 18%, transparent);
  outline-offset: 1px;
}

.docs-report-access button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--cyan) 55%, var(--purple));
  border-radius: 7px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--blue) 58%, var(--cyan));
  cursor: pointer;
}

.docs-report-access p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
}

.docs-report-content {
  display: grid;
  gap: 54px;
}

.docs-report-content[hidden] {
  display: none;
}

.docs-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.docs-report-summary > div {
  display: grid;
  gap: 10px;
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.docs-report-summary small,
.docs-report-section-heading small {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.docs-report-summary strong {
  align-self: end;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 520;
}

.docs-report-section {
  display: grid;
  gap: 20px;
}

.docs-report-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.docs-report-section-heading h2 {
  margin: 7px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 430;
}

.docs-report-section-heading > span {
  color: var(--quiet);
  font-size: 11px;
}

.docs-report-section table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--surface);
}

.docs-report-section th,
.docs-report-section td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.docs-report-section th {
  color: var(--quiet);
  font-size: 10px;
  text-transform: uppercase;
}

.docs-report-section td a {
  color: var(--ink);
}

.docs-report-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docs-report-reasons > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
}

.docs-report-reasons b {
  font-weight: 600;
  text-transform: capitalize;
}

.docs-report-reasons em {
  color: var(--cyan);
  font-style: normal;
}

.docs-report-comments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.docs-report-comments article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.docs-report-comments article div {
  display: grid;
  gap: 4px;
}

.docs-report-comments strong {
  color: var(--ink);
  font-size: 12px;
}

.docs-report-comments span {
  color: var(--quiet);
  font-size: 10px;
  text-transform: capitalize;
}

.docs-report-comments p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.docs-toc {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 40px 0 30px;
}

.docs-toc > p {
  margin: 0 0 14px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.docs-toc nav {
  display: grid;
  gap: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.docs-toc a {
  padding: 4px 0;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.4;
}

.docs-toc a:hover,
.docs-toc a.is-active {
  color: var(--ink);
}

.docs-toc a[data-level="3"] {
  padding-left: 12px;
}

.docs-loading {
  display: grid;
  gap: 14px;
}

.docs-loading span {
  display: block;
  width: 100%;
  height: 18px;
  border-radius: 5px;
  background: var(--surface-hover);
}

.docs-loading span:first-child {
  width: 58%;
  height: 52px;
}

.docs-loading span:last-child {
  width: 82%;
}

.docs-search-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(680px, calc(100vh - 48px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--search-bg);
  box-shadow: var(--shadow-strong);
}

.docs-search-dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.docs-search-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(680px, calc(100vh - 48px));
}

.docs-search-input-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid var(--line);
}

.docs-search-input-row > svg {
  width: 20px;
  height: 20px;
  color: var(--quiet);
}

.docs-search-input-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.docs-search-input-row input::placeholder {
  color: var(--quiet);
}

.docs-search-results {
  min-height: 180px;
  overflow-y: auto;
  padding: 10px;
}

.docs-search-empty {
  padding: 48px 20px;
  color: var(--quiet);
  text-align: center;
}

.docs-search-result {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 6px;
}

.docs-search-result:hover,
.docs-search-result:focus-visible,
.docs-search-result.is-selected {
  background: var(--surface-hover);
  outline: none;
}

.docs-search-result small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.docs-search-result strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 610;
}

.docs-search-result span {
  overflow: hidden;
  color: var(--quiet);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-search-help {
  display: flex;
  gap: 18px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 11px;
}

.docs-search-help span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.doc-flow-tester {
  margin: 30px 0 56px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--blue) 6%, transparent), transparent 34%),
    var(--technical-bg);
  box-shadow: var(--shadow);
}

.doc-flow-tester-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--technical-panel) 92%, transparent);
}

.doc-flow-tester-header > div {
  display: grid;
  gap: 3px;
}

.doc-flow-tester-header small {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-flow-tester-header strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.doc-flow-tester-local {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-flow-tester-local i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent);
}

.doc-trigger-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.doc-trigger-mode-switch button {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px 18px;
  border: 0;
  color: var(--quiet);
  background: var(--technical-card);
  font-family: var(--font-interface);
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.doc-trigger-mode-switch button:hover,
.doc-trigger-mode-switch button:focus-visible {
  color: var(--ink);
  background: var(--surface-hover);
  outline: none;
}

.doc-trigger-mode-switch button.is-active {
  color: var(--ink);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--purple) 10%, transparent), color-mix(in srgb, var(--blue) 9%, transparent)),
    var(--technical-card);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.doc-trigger-mode-switch strong {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 650;
}

.doc-trigger-mode-switch span {
  overflow-wrap: anywhere;
  font-size: 9px;
  line-height: 1.4;
}

.doc-trigger-mode-switch button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.doc-flow-tester-form {
  padding: 22px 20px 20px;
}

.doc-flow-tester-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.doc-flow-field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.doc-flow-field-wide {
  grid-column: 1 / -1;
}

.doc-flow-field > span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 620;
}

.doc-flow-field > span b {
  font: inherit;
}

.doc-flow-field > span small {
  color: var(--quiet);
  font-family: var(--font-interface);
  font-size: 9px;
  font-weight: 500;
}

.doc-flow-field input,
.doc-flow-field textarea,
.doc-flow-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  color: var(--ink);
  background: var(--control-bg-strong);
  font-family: var(--font-interface);
  font-size: 12px;
  line-height: 1.5;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.doc-flow-field input,
.doc-flow-field select {
  min-height: 43px;
  padding: 9px 12px;
}

.doc-flow-field select {
  padding-right: 34px;
}

.doc-flow-field textarea {
  min-height: 88px;
  padding: 11px 12px;
  resize: vertical;
}

.doc-flow-field input::placeholder,
.doc-flow-field textarea::placeholder {
  color: var(--quiet);
  opacity: 0.8;
}

.doc-flow-field input:focus,
.doc-flow-field textarea:focus,
.doc-flow-field select:focus {
  border-color: var(--blue);
  background: var(--technical-panel-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent);
}

.doc-flow-field input:disabled,
.doc-flow-field textarea:disabled,
.doc-flow-field select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.doc-flow-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 3px 0;
}

.doc-flow-options label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.doc-flow-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

.docs-article-body .doc-flow-options code {
  padding: 1px 4px;
}

.doc-flow-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  background: var(--control-bg-subtle);
  font-size: 11px;
  line-height: 1.5;
}

.doc-flow-plan strong {
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.doc-flow-plan.has-error {
  border-left-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.doc-flow-tester-actions,
.doc-flow-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.doc-flow-tester-actions {
  margin-top: 16px;
}

.doc-flow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: var(--control-bg-strong);
  font-family: var(--font-interface);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.doc-flow-button:hover:not(:disabled),
.doc-flow-button:focus-visible:not(:disabled) {
  border-color: var(--blue);
  background: var(--surface-hover);
  outline: none;
  transform: translateY(-1px);
}

.doc-flow-button.is-primary {
  border-color: color-mix(in srgb, var(--blue) 72%, transparent);
  color: #ffffff;
  background: linear-gradient(120deg, color-mix(in srgb, var(--purple) 78%, #22304e), color-mix(in srgb, var(--blue) 82%, #173b4a));
}

.doc-flow-button.is-primary:hover:not(:disabled),
.doc-flow-button.is-primary:focus-visible:not(:disabled) {
  background: linear-gradient(120deg, var(--purple), var(--blue));
}

.doc-flow-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.doc-flow-run-status {
  margin-left: auto;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

.doc-flow-run-status[data-state="running"] {
  color: var(--cyan);
}

.doc-flow-run-status[data-state="success"] {
  color: var(--success);
}

.doc-flow-run-status[data-state="error"] {
  color: var(--danger);
}

.doc-flow-run-status[data-state="cancelled"] {
  color: var(--warning);
}

.doc-flow-results {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--technical-panel) 72%, transparent);
}

.doc-flow-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px 0;
  color: var(--quiet);
  font-size: 10px;
}

.doc-flow-progress-row progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: var(--control-bg-strong);
  appearance: none;
}

.doc-flow-progress-row progress::-webkit-progress-bar {
  border-radius: 6px;
  background: var(--control-bg-strong);
}

.doc-flow-progress-row progress::-webkit-progress-value {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan));
}

.doc-flow-progress-row progress::-moz-progress-bar {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan));
}

.doc-flow-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.doc-flow-summary > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  background: var(--technical-card);
}

.doc-flow-summary small {
  color: var(--quiet);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-flow-summary strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 570;
}

.doc-flow-summary .is-success strong {
  color: var(--success);
}

.doc-flow-summary .is-warning strong {
  color: var(--warning);
}

.doc-flow-summary .is-danger strong {
  color: var(--danger);
}

.doc-flow-result-actions {
  padding: 0 20px 15px;
}

.doc-flow-result-actions small {
  margin-left: auto;
  color: var(--quiet);
  font-size: 9px;
}

.doc-flow-result-table {
  max-height: 420px;
  overflow: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.docs-article-body .doc-flow-result-table table {
  min-width: 720px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.docs-article-body .doc-flow-result-table th,
.docs-article-body .doc-flow-result-table td {
  padding: 10px 12px;
  font-size: 10px;
  line-height: 1.45;
  vertical-align: middle;
}

.docs-article-body .doc-flow-result-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--technical-panel-strong);
}

.doc-flow-result-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
}

.doc-flow-result-status.is-passed {
  border-color: color-mix(in srgb, var(--success) 38%, transparent);
  color: var(--success);
  background: color-mix(in srgb, var(--success) 8%, transparent);
}

.doc-flow-result-status.is-assertion-failed {
  border-color: color-mix(in srgb, var(--warning) 38%, transparent);
  color: var(--warning);
  background: var(--warning-soft);
}

.doc-flow-result-status.is-request-failed {
  border-color: color-mix(in srgb, var(--danger) 38%, transparent);
  color: var(--danger);
  background: var(--danger-soft);
}

.doc-flow-result-view {
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--blue) 42%, var(--line));
  border-radius: 5px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.doc-flow-result-view:hover,
.doc-flow-result-view:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  outline: none;
}

.doc-flow-result-detail {
  border-bottom: 1px solid var(--line);
  background: var(--technical-panel);
}

.doc-flow-result-detail[hidden] {
  display: none;
}

.doc-flow-result-detail > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.doc-flow-result-detail > header div {
  display: grid;
  gap: 3px;
}

.doc-flow-result-detail > header small,
.doc-flow-result-payloads small {
  color: var(--quiet);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-flow-result-detail > header strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 560;
}

.doc-flow-result-detail > header > span {
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 10px;
}

.doc-flow-result-payloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.doc-flow-result-payloads > section {
  display: grid;
  min-width: 0;
  padding: 14px 20px 18px;
  background: var(--technical-card);
}

.docs-article-body .doc-flow-result-payloads pre {
  max-height: 300px;
  margin: 9px 0 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-color: var(--line);
  border-radius: 6px;
  font-size: 10px;
}

.docs-article-body .doc-flow-result-note {
  margin: 0;
  padding: 11px 20px 13px;
  color: var(--quiet);
  font-size: 9px;
  line-height: 1.5;
}

.doc-flow-tester.is-running .doc-flow-tester-local i {
  animation: docs-home-glow 1.4s ease-in-out infinite;
}

.doc-protocol-tester {
  margin: 24px 0 48px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--purple) 7%, transparent), transparent 38%),
    var(--technical-bg);
  box-shadow: var(--shadow);
}

.doc-protocol-form {
  padding: 22px 20px 20px;
}

.doc-protocol-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.doc-protocol-actions .doc-flow-run-status {
  margin-left: auto;
}

.doc-protocol-results {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--technical-panel) 74%, transparent);
}

.doc-protocol-results[hidden],
.doc-protocol-output[hidden] {
  display: none;
}

.doc-protocol-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.doc-protocol-stages > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  min-width: 0;
  padding: 14px 16px;
  background: var(--technical-card);
}

.doc-protocol-stages small {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 9px;
}

.doc-protocol-stages strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 620;
}

.doc-protocol-stages span {
  overflow-wrap: anywhere;
  color: var(--quiet);
  font-size: 9px;
}

.doc-protocol-stages > div[data-state="running"] {
  background: color-mix(in srgb, var(--cyan) 7%, var(--technical-card));
}

.doc-protocol-stages > div[data-state="running"] small,
.doc-protocol-stages > div[data-state="running"] span {
  color: var(--cyan);
}

.doc-protocol-stages > div[data-state="passed"] {
  background: color-mix(in srgb, var(--success) 7%, var(--technical-card));
}

.doc-protocol-stages > div[data-state="passed"] small,
.doc-protocol-stages > div[data-state="passed"] span {
  color: var(--success);
}

.doc-protocol-stages > div[data-state="failed"] {
  background: var(--danger-soft);
}

.doc-protocol-stages > div[data-state="failed"] small,
.doc-protocol-stages > div[data-state="failed"] span {
  color: var(--danger);
}

.doc-protocol-stages > div[data-state="skipped"] {
  opacity: 0.62;
}

.doc-protocol-output {
  border-top: 1px solid var(--line);
  background: var(--technical-panel);
}

.doc-protocol-output > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}

.doc-protocol-output > header small {
  color: var(--quiet);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-protocol-output > header span {
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: right;
}

.docs-article-body .doc-protocol-output pre {
  max-height: 420px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 0;
  border-radius: 0;
  background: var(--technical-card);
  font-size: 10px;
}

.doc-trigger-verification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 40px;
}

.doc-trigger-verification-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--technical-card);
}

.doc-trigger-verification-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.doc-trigger-verification-card > header div {
  display: grid;
  gap: 3px;
}

.doc-trigger-verification-card small {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-trigger-verification-card strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 620;
}

.doc-trigger-verification-card > header span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
}

.docs-article-body .doc-trigger-verification-card p,
.docs-article-body .doc-trigger-verification-card ol {
  margin: 0;
}

.docs-article-body .doc-trigger-verification-card ol {
  padding-left: 18px;
}

.doc-trigger-verification-card a {
  justify-self: start;
  font-size: 10px;
  font-weight: 700;
}

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

  .docs-toc {
    display: none;
  }

  .docs-header-inner {
    grid-template-columns: var(--sidebar-width) minmax(260px, 520px) 1fr auto;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 64px;
    --section-nav-height: 0px;
  }

  .docs-section-navigation {
    display: none;
  }

  .docs-header-inner {
    grid-template-columns: 40px auto minmax(0, 1fr) auto auto;
    gap: 10px;
    width: calc(100% - 24px);
    margin: 0 auto;
    padding: 0;
  }

  .mobile-nav-button {
    display: inline-grid;
    grid-column: 1;
    grid-row: 1;
  }

  .docs-brand {
    grid-column: 2;
  }

  .docs-brand img {
    width: 124px;
  }

  .docs-brand span {
    display: none;
  }

  .docs-search-trigger {
    grid-column: 3;
    justify-self: end;
    grid-template-columns: 20px;
    width: 42px;
    padding: 0;
    place-content: center;
  }

  .docs-search-trigger span,
  .docs-search-trigger kbd,
  .docs-header-actions > a:first-child {
    display: none;
  }

  .docs-console-link {
    min-height: 38px;
    padding: 0 11px;
  }

  .docs-header-actions {
    grid-column: 4;
  }

  .docs-view-controls {
    grid-column: 5;
  }

  .docs-theme-choice {
    width: 32px;
    padding: 0;
  }

  .docs-theme-choice span {
    display: none;
  }

  .docs-layout {
    display: block;
    width: min(calc(100% - 36px), var(--content-width));
    margin: 0 auto;
  }

  .docs-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: min(340px, calc(100vw - 44px));
    height: 100dvh;
    padding: 0 18px 24px;
    border-right: 1px solid var(--line-strong);
    background: var(--sidebar-bg);
    box-shadow: var(--shadow-strong);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .docs-nav-open .docs-sidebar {
    transform: translateX(0);
  }

  .docs-sidebar-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: var(--sidebar-bg);
    font-size: 13px;
    font-weight: 620;
  }

  .docs-mobile-sections {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .docs-mobile-sections > span {
    color: var(--quiet);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .docs-mobile-sections nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .docs-mobile-sections .docs-section-link {
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--control-bg);
  }

  .docs-mobile-sections .docs-section-link.is-active {
    border-color: var(--line-strong);
    background: var(--active-gradient);
  }

  .docs-mobile-sections .docs-section-link.is-active::after {
    display: none;
  }

  .docs-sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    border: 0;
    background: var(--scrim);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .docs-nav-open .docs-sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .docs-main {
    width: 100%;
    padding-top: 30px;
  }

  .docs-site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 42px;
    width: min(calc(100% - 36px), var(--content-width));
  }

  .docs-site-footer-brand {
    grid-column: 1 / -1;
  }

  .docs-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .docs-search-trigger {
    grid-column: 3;
  }

  .docs-view-controls {
    grid-column: 4;
  }

  .docs-header-actions {
    display: none;
  }

  .doc-flow-tester-header,
  .doc-flow-plan,
  .doc-flow-progress-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-flow-tester-header,
  .doc-flow-plan {
    display: flex;
  }

  .doc-flow-tester-form {
    padding: 18px 14px;
  }

  .doc-trigger-mode-switch,
  .doc-protocol-stages,
  .doc-trigger-verification-grid {
    grid-template-columns: 1fr;
  }

  .doc-trigger-mode-switch button {
    padding-inline: 14px;
  }

  .doc-protocol-form {
    padding: 18px 14px;
  }

  .doc-protocol-actions {
    align-items: stretch;
  }

  .doc-protocol-actions .doc-flow-run-status {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .doc-protocol-output > header {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 14px;
  }

  .doc-protocol-output > header span {
    text-align: left;
  }

  .doc-flow-tester-fields,
  .doc-flow-summary {
    grid-template-columns: 1fr;
  }

  .doc-flow-field-wide {
    grid-column: auto;
  }

  .doc-flow-tester-actions,
  .doc-flow-result-actions {
    align-items: stretch;
  }

  .doc-flow-button {
    flex: 1 1 auto;
  }

  .doc-flow-run-status,
  .doc-flow-result-actions small {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .doc-flow-progress-row {
    display: grid;
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .doc-flow-summary {
    margin-inline: 14px;
  }

  .doc-flow-summary > div {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }

  .doc-flow-result-actions {
    padding-inline: 14px;
  }

  .doc-flow-result-detail > header {
    display: grid;
    align-items: start;
    padding-inline: 14px;
  }

  .doc-flow-result-payloads {
    grid-template-columns: 1fr;
  }

  .doc-flow-result-payloads > section {
    padding-inline: 14px;
  }

  .docs-article-body .doc-flow-result-note {
    padding-inline: 14px;
  }

  .docs-breadcrumb {
    margin-bottom: 28px;
  }

  .docs-article-header {
    margin-bottom: 38px;
  }

  .docs-article-home .docs-article-header {
    min-height: 470px;
    padding: 32px 24px 205px;
  }

  .docs-article-home .docs-article-kicker,
  .docs-article-home .docs-article-header h1,
  .docs-article-home .docs-article-description {
    max-width: none;
  }

  .docs-article-home .docs-article-header h1 {
    font-size: 42px;
  }

  .docs-home-signal-field {
    top: auto;
    right: -15%;
    bottom: -12%;
    width: 100%;
    transform: none;
  }

  .docs-article-home .docs-article-header::after {
    background: linear-gradient(180deg, var(--technical-bg) 0 42%, color-mix(in srgb, var(--technical-bg) 84%, transparent) 58%, transparent 78%);
  }

  .docs-home-glyph-cloud {
    font-size: 8px;
  }

  .docs-article h1 {
    font-size: 38px;
  }

  .docs-article-description {
    font-size: 16px;
  }

  .docs-article-body h2 {
    margin-top: 50px;
    font-size: 26px;
  }

  .docs-article-body h3 {
    font-size: 19px;
  }

  .docs-article-body p {
    font-size: 15px;
  }

  .doc-download-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .doc-quickstart-grid {
    grid-template-columns: 1fr;
  }

  .doc-platform-map {
    padding: 14px;
  }

  .doc-signal-map-header,
  .doc-signal-evidence {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .doc-signal-stage {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 14px;
  }

  .doc-signal-link {
    width: 20px;
    height: 34px;
    margin: 0 auto;
  }

  .doc-signal-link::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, color-mix(in srgb, var(--cyan) 38%, transparent), var(--cyan));
  }

  .doc-signal-link.is-runtime::before {
    background: linear-gradient(180deg, color-mix(in srgb, var(--purple) 42%, transparent), var(--success));
  }

  .doc-signal-link::after {
    top: 0;
    left: calc(50% - 3px);
    animation-name: docs-signal-pulse-mobile;
  }

  .doc-tech-flow-stage .doc-signal-link::after {
    animation-name: docs-signal-pulse-mobile;
  }

  .doc-signal-link span::after,
  .doc-signal-link span::before {
    top: auto;
    right: calc(50% - 2px);
    bottom: 0;
    transform: rotate(135deg);
  }

  .doc-signal-link span::before {
    right: calc(50% - 2px);
    bottom: 5px;
  }

  .doc-signal-gate,
  .doc-signal-runtime {
    min-height: auto;
  }

  .doc-tech-flow-stage,
  .doc-tech-flow-stage.is-five,
  .doc-tech-boundaries,
  .doc-tech-hub-stage {
    grid-template-columns: 1fr;
  }

  .doc-tech-flow-stage,
  .doc-tech-flow-stage.is-five {
    gap: 8px;
    padding: 16px 14px;
  }

  .doc-tech-node,
  .doc-tech-boundary-card {
    min-height: auto;
  }

  .doc-tech-hub-stage {
    grid-template-rows: none;
    gap: 8px;
    padding: 16px 14px;
  }

  .doc-tech-hub-stage::before {
    display: none;
  }

  .doc-tech-hub-card,
  .doc-tech-hub-core,
  .doc-tech-hub-card:nth-child(1),
  .doc-tech-hub-card:nth-child(3),
  .doc-tech-hub-card:nth-child(4),
  .doc-tech-hub-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .doc-tech-hub-core {
    order: -1;
  }

  .doc-tech-boundaries {
    gap: 8px;
    padding: 16px 14px 10px;
  }

  .doc-tech-foundation {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin: 0 14px 14px;
  }

  .doc-signal-evidence {
    padding: 12px 14px;
  }

  .doc-platform-map-edge,
  .doc-platform-map-stages,
  .doc-execution-path,
  .doc-concept-list,
  .doc-deployment-strip,
  .doc-start-path {
    grid-template-columns: 1fr;
  }

  .doc-platform-map-direction {
    grid-template-columns: 1fr;
  }

  .doc-platform-map-direction span:not(:first-child) {
    display: none;
  }

  .doc-platform-map-title {
    display: grid;
    gap: 4px;
  }

  .doc-platform-map-stages {
    gap: 1px;
  }

  .doc-platform-map-stages div,
  .doc-execution-step {
    min-height: auto;
  }

  .docs-article-body .doc-concept-list a {
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: auto;
  }

  .docs-article-body .doc-deployment-strip a {
    min-height: auto;
  }

  .docs-article-body .doc-start-path a {
    min-height: auto;
  }

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

  .docs-pagination a:last-child {
    text-align: left;
  }

  .docs-feedback-question {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .docs-feedback-note {
    width: 100%;
  }

  .docs-feedback-form {
    padding: 16px;
  }

  .docs-report-header {
    min-height: 64px;
    padding: 0 14px;
  }

  .docs-report-header .docs-brand img {
    width: 126px;
  }

  .docs-report-header .docs-brand span,
  .docs-report-header-actions > a,
  .docs-report-header .docs-theme-choice span {
    display: none;
  }

  .docs-report-main {
    width: min(calc(100% - 28px), 1240px);
    padding: 44px 0 72px;
  }

  .docs-report-access {
    grid-template-columns: 1fr;
    padding: 16px;
  }

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

  .docs-report-summary > div {
    min-height: 104px;
  }

  .docs-report-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-site-footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 38px;
  }

  .docs-site-footer-brand {
    grid-column: auto;
  }

  .docs-site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .docs-search-dialog {
    width: calc(100% - 20px);
  }
}

@keyframes docs-signal-pulse-mobile {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translateY(30px);
    opacity: 0;
  }
}

/* Trigger Tester workbench */
body.docs-workbench-mode .docs-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(calc(100% - 64px), 1800px);
  min-height: calc(100vh - var(--docs-chrome-height));
  margin: 0 auto;
}

body.docs-workbench-mode .docs-main {
  width: 100%;
  max-width: none;
  padding: 24px 0 56px;
}

body.docs-workbench-mode .docs-breadcrumb,
body.docs-workbench-mode .docs-toc,
body.docs-workbench-mode .docs-pagination,
body.docs-workbench-mode .docs-article-footer,
body.docs-workbench-mode .docs-site-footer {
  display: none;
}

body.docs-workbench-mode .docs-article-header {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  gap: 8px 42px;
  align-items: end;
  margin-bottom: 22px;
  padding: 0 0 20px;
}

body.docs-workbench-mode .docs-article-kicker {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0 0 4px;
}

body.docs-workbench-mode .docs-article h1 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
}

body.docs-workbench-mode .docs-article-description {
  max-width: 760px;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

body.docs-workbench-mode .docs-article-body > p:first-child {
  display: none;
}

.doc-trigger-workbench {
  min-width: 0;
  overflow: clip;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--technical-bg);
  box-shadow: var(--shadow-strong);
}

.doc-trigger-workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--purple) 9%, transparent), transparent 40%),
    linear-gradient(245deg, color-mix(in srgb, var(--cyan) 6%, transparent), transparent 35%),
    var(--technical-panel);
}

.doc-trigger-workbench-header > div {
  display: grid;
  gap: 4px;
  max-width: 860px;
}

.doc-trigger-workbench-header small,
.doc-trigger-workbench-context small,
.doc-workbench-guided-test > header span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 720;
  text-transform: uppercase;
}

.doc-trigger-workbench-header strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 590;
}

.docs-article-body .doc-trigger-workbench-header p {
  max-width: 760px;
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.55;
}

.doc-trigger-workbench-header nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.docs-article-body .doc-trigger-workbench-header a,
.docs-article-body .doc-trigger-workbench-context > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  background: var(--control-bg-strong);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.docs-article-body .doc-trigger-workbench-header a:hover,
.docs-article-body .doc-trigger-workbench-header a:focus-visible,
.docs-article-body .doc-trigger-workbench-context > a:hover,
.docs-article-body .doc-trigger-workbench-context > a:focus-visible {
  border-color: var(--cyan);
  color: var(--ink);
  background: var(--surface-hover);
  outline: none;
}

.doc-trigger-workbench-tabs {
  position: sticky;
  top: var(--docs-chrome-height);
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(6, minmax(126px, 1fr));
  gap: 1px;
  overflow-x: auto;
  padding: 1px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  backdrop-filter: blur(18px) saturate(130%);
}

.doc-trigger-workbench-tabs button {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 70px;
  padding: 11px 14px;
  border: 0;
  color: var(--quiet);
  background: color-mix(in srgb, var(--technical-card) 94%, transparent);
  font-family: var(--font-interface);
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.doc-trigger-workbench-tabs button::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 4px transparent;
}

.doc-trigger-workbench-tabs button:hover,
.doc-trigger-workbench-tabs button:focus-visible {
  color: var(--ink);
  background: var(--surface-hover);
  outline: none;
}

.doc-trigger-workbench-tabs button.is-active {
  color: var(--ink);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--purple) 12%, transparent), color-mix(in srgb, var(--blue) 8%, transparent)),
    var(--technical-card);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.doc-trigger-workbench-tabs button.is-active::before {
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 13%, transparent);
}

.doc-trigger-workbench-tabs span,
.doc-trigger-workbench-tabs small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-trigger-workbench-tabs span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-trigger-workbench-tabs strong {
  overflow-wrap: anywhere;
  color: inherit;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 620;
}

.doc-trigger-workbench-tabs small {
  font-size: 9px;
}

.doc-trigger-workbench-panel[hidden] {
  display: none;
}

.doc-trigger-workbench-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--blue) 6%, transparent), transparent 42%),
    var(--technical-bg);
}

.doc-trigger-workbench-context > div {
  display: grid;
  gap: 4px;
  max-width: 900px;
}

.doc-trigger-workbench-context strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 560;
}

.docs-article-body .doc-trigger-workbench-context p {
  max-width: 820px;
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.55;
}

.doc-trigger-workbench .doc-trigger-mode-switch {
  display: none;
}

.doc-trigger-workbench .doc-flow-tester,
.doc-trigger-workbench .doc-protocol-tester {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.doc-trigger-workbench .doc-flow-tester-header {
  background: color-mix(in srgb, var(--technical-panel) 84%, transparent);
}

.doc-workbench-safety {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--warning) 28%, var(--line));
  color: var(--muted);
  background: var(--warning-soft);
  font-size: 10px;
  line-height: 1.5;
}

.doc-workbench-safety strong {
  display: block;
  color: var(--warning);
  font-size: 10px;
  text-transform: uppercase;
}

.doc-workbench-safety span {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.doc-workbench-guided-test {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  min-height: 430px;
  background: var(--technical-bg);
}

.doc-workbench-guided-test > header {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--purple) 10%, transparent), transparent 44%),
    var(--technical-panel);
}

.doc-workbench-guided-test > header strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 540;
  line-height: 1.25;
}

.docs-article-body .doc-workbench-guided-test ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}

.docs-article-body .doc-workbench-guided-test li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 24px;
  background: var(--technical-card);
}

.doc-workbench-guided-test li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--cyan) 38%, var(--line));
  border-radius: 6px;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 7%, transparent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.doc-workbench-guided-test li > div {
  display: grid;
  gap: 6px;
}

.doc-workbench-guided-test li strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
}

.docs-article-body .doc-workbench-guided-test li p {
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.6;
}

@media (min-width: 921px) {
  body.docs-workbench-mode .docs-sidebar {
    display: none;
  }
}

@media (max-width: 920px) {
  body.docs-workbench-mode .docs-layout {
    width: min(calc(100% - 24px), 1800px);
  }

  body.docs-workbench-mode .docs-main {
    padding-top: 18px;
  }

  body.docs-workbench-mode .docs-article-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.docs-workbench-mode .docs-article-kicker {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .doc-trigger-workbench-header,
  .doc-trigger-workbench-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 17px 16px;
  }

  .doc-trigger-workbench-header nav {
    justify-content: flex-start;
  }

  .doc-trigger-workbench-tabs {
    grid-template-columns: repeat(6, 126px);
  }

  .doc-trigger-workbench-tabs button {
    min-height: 66px;
    padding: 10px 12px;
  }

  .doc-workbench-safety,
  .doc-workbench-guided-test {
    grid-template-columns: 1fr;
  }

  .doc-workbench-guided-test > header {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .docs-article-body .doc-workbench-guided-test ol {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
