:root {
  color-scheme: light;
  --bg: #f3f0ea;
  --panel: rgba(255, 255, 255, 0.86);
  --surface: #fbfcfd;
  --text: #182028;
  --muted: #63707e;
  --line: rgba(28, 39, 51, 0.14);
  --accent: #125e54;
  --accent-strong: #0c463f;
  --danger: #a04121;
  --caution: #9a5a14;
  --caution-bg: rgba(154, 90, 20, 0.08);
  --caution-line: rgba(154, 90, 20, 0.28);
  --glow: rgba(18, 94, 84, 0.16);
  --code-bg: linear-gradient(180deg, rgba(18, 94, 84, 0.07), rgba(255, 255, 255, 0.96) 26%, rgba(240, 236, 229, 0.98) 100%);
  --code-line: rgba(18, 94, 84, 0.16);
  --code-shadow: rgba(24, 32, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(18, 94, 84, 0.10), transparent 32%),
    radial-gradient(circle at top right, rgba(160, 65, 33, 0.08), transparent 28%),
    linear-gradient(180deg, #faf7f1 0%, var(--bg) 55%, #ece7df 100%);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

.shell {
  width: min(100% - 32px, 920px);
  margin: 28px auto 40px;
  position: relative;
  z-index: 1;
}

.shell--wide {
  width: min(100% - 32px, 1240px);
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 35%),
    radial-gradient(circle at 70% 15%, rgba(18, 94, 84, 0.08), transparent 18%);
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(18, 94, 84, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(14, 44, 49, 0.94), rgba(17, 58, 60, 0.9)),
    radial-gradient(circle at top right, rgba(103, 208, 185, 0.22), transparent 36%);
  box-shadow: 0 18px 40px rgba(10, 20, 24, 0.18);
  backdrop-filter: blur(16px);
}

.topbar__main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  color: rgba(243, 248, 247, 0.92);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background: rgba(103, 208, 185, 0.18);
  border-color: rgba(103, 208, 185, 0.36);
  transform: translateY(-1px);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.topbar .meta {
  color: rgba(243, 248, 247, 0.82);
}

.topbar .link-button {
  color: #9ef2de;
  font-weight: 800;
}

.topbar .link-button:hover,
.topbar .link-button:focus-visible {
  color: #fff;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 16px 42px rgba(24, 32, 40, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.36) inset;
  backdrop-filter: blur(12px);
}

.flow-grid {
  display: grid;
  gap: 16px;
  margin: 18px 0 20px;
}

.tool-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(251, 252, 253, 0.9);
  padding: 18px;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.meta,
.notice {
  color: var(--muted);
  margin: 0 0 8px;
}

.eyebrow {
  color: var(--accent);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 54ch;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.hero-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 94, 84, 0.08), rgba(255, 255, 255, 0.65));
  padding: 20px;
}

.access-block {
  margin: 22px 0 18px;
  border: 1px solid rgba(18, 94, 84, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 248, 0.92)),
    radial-gradient(circle at top left, rgba(18, 94, 84, 0.08), transparent 34%);
  padding: 18px 20px;
}

.access-block__eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.access-block__list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.access-block__list li + li {
  margin-top: 8px;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 20px;
}

.tab-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  box-shadow: none;
}

.tab-btn:hover,
.tab-btn.is-active {
  border-color: rgba(18, 94, 84, 0.28);
  background: rgba(18, 94, 84, 0.12);
  color: var(--accent-strong);
}

.protocol-hero {
  display: grid;
  gap: 18px;
}

.document-frame {
  width: 100%;
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.document-frame--compact {
  min-height: 520px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 24px;
  background: rgba(251, 252, 253, 0.72);
}

@media (max-width: 900px) {
  .document-frame {
    min-height: 420px;
  }
}

.flow {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.flow li + li {
  margin-top: 8px;
}

.stack {
  display: grid;
  gap: 10px;
}

.compact {
  margin-top: 16px;
  max-width: 320px;
}

.credential-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.field-label {
  color: var(--muted);
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

label {
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--accent-strong);
  box-shadow: 0 12px 24px var(--glow);
}

.link-button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
}

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

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.message {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 10px 12px;
}

.message.error {
  color: var(--danger);
}

.code-box {
  width: fit-content;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef6f4;
  padding: 12px 16px;
  font: 700 22px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

.repo-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.repo {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.repo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

code {
  border-radius: 6px;
  background: #f0f2f4;
  color: #17202a;
  padding: 2px 5px;
  font: 0.92em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--code-line);
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(24, 32, 40, 0.04);
}

pre code,
.repo code,
.credential-grid code {
  display: block;
  overflow-x: auto;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
}

pre code,
pre code.hljs {
  background: transparent;
}

.code-block {
  position: relative;
}

.code-block::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(18, 94, 84, 0.32), rgba(18, 94, 84, 0.06));
}

.repo code {
  background: #eef2f4;
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-width: 420px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  max-width: 920px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-item__answer {
  padding: 4px 20px 20px;
}

.faq-item__answer > :last-child {
  margin-bottom: 0;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.94);
}

.button-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.button-secondary:hover {
  background: #f4f6f7;
  color: var(--text);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.guide-grid,
.packet-grid,
.snippet-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.guide-card,
.snippet-card,
.packet-card,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.guide-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.resource-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.resource-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 248, 0.9));
  padding: 18px;
  display: grid;
  gap: 12px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.resource-row:hover,
.resource-row:focus-within {
  transform: translateY(-1px);
  border-color: rgba(18, 94, 84, 0.28);
  box-shadow: 0 14px 30px rgba(24, 32, 40, 0.08);
}

.resource-row--shared-target {
  border-color: rgba(18, 94, 84, 0.28);
  box-shadow: 0 0 0 2px rgba(18, 94, 84, 0.12);
}

.resource-row--shared-active {
  border-color: rgba(18, 94, 84, 0.42);
  box-shadow: 0 0 0 3px rgba(18, 94, 84, 0.18), 0 16px 32px rgba(24, 32, 40, 0.1);
}

.resource-row__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.resource-row__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.resource-row__content {
  display: grid;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.resource-row__content h2 {
  margin: 0;
}

.resource-row__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: end;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.resource-row__cta {
  color: #125e54;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.resource-row__cta:hover,
.resource-row__cta:focus-visible {
  text-decoration: underline;
}

.docs-layout {
  --docs-pane-height: auto;
  display: grid;
  grid-template-columns: 260px 26px minmax(0, 1fr);
  column-gap: 22px;
  align-items: start;
  margin-top: 12px;
  transition: grid-template-columns 180ms ease, column-gap 180ms ease;
}

.docs-layout[data-scroll-panes="true"] {
  align-items: stretch;
  height: var(--docs-pane-height);
  max-height: var(--docs-pane-height);
}

.docs-layout[data-sidebar-collapsed="true"] {
  grid-template-columns: 0 26px minmax(0, 1fr);
  column-gap: 12px;
}

.docs-sidebar {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-right: 1px solid var(--line);
  padding: 10px 18px 18px 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    max-height 180ms ease,
    padding 180ms ease,
    border-color 180ms ease;
}

.docs-layout[data-scroll-panes="true"] .docs-sidebar {
  position: static;
  top: auto;
  max-height: none;
  height: 100%;
}

.docs-layout[data-sidebar-collapsed="true"] .docs-sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-18px);
  max-height: 0;
  overflow: hidden;
  padding: 0;
  border-color: transparent;
}

.docs-divider {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: stretch;
}

.docs-layout[data-scroll-panes="true"] .docs-divider {
  height: 100%;
}

.docs-layout:not([data-scroll-panes="true"]) .docs-divider {
  position: sticky;
  top: 18px;
  align-self: start;
}

.docs-sidebar__header {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.docs-sidebar__title {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.docs-sidebar__caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.docs-nav__link {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  padding: 8px 10px;
  text-decoration: none;
}

.docs-nav__link:hover,
.docs-nav__link.is-active {
  background: rgba(18, 94, 84, 0.08);
  color: var(--accent-strong);
}

.docs-subnav {
  display: grid;
  gap: 2px;
  margin: 0 0 8px 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.docs-subnav__link {
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  padding: 5px 8px;
  text-decoration: none;
}

.docs-subnav__link:hover {
  background: rgba(18, 94, 84, 0.08);
  color: var(--accent-strong);
}

.docs-subnav__link--child {
  padding-left: 18px;
  font-size: 12px;
}

.docs-article {
  max-width: 880px;
  min-width: 0;
  padding-bottom: 40px;
}

.docs-layout[data-scroll-panes="true"] .docs-article {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
  scrollbar-gutter: stable;
}

.docs-sidebar-toggle {
  position: sticky;
  top: 18px;
  width: 26px;
  min-height: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  border: 1px solid rgba(18, 94, 84, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 242, 0.92)),
    linear-gradient(180deg, rgba(18, 94, 84, 0.08), rgba(255, 255, 255, 0));
  color: var(--accent-strong);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 14px 24px rgba(20, 33, 32, 0.08);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.docs-sidebar-toggle:hover,
.docs-sidebar-toggle:focus-visible {
  background: rgba(18, 94, 84, 0.08);
  border-color: rgba(18, 94, 84, 0.32);
  box-shadow: 0 18px 30px rgba(20, 33, 32, 0.12);
  transform: translateX(-1px);
}

.docs-sidebar-toggle__glyph {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.docs-article h2 {
  margin-top: 28px;
}

.docs-section,
.docs-section section,
.docs-article h2 {
  scroll-margin-top: 24px;
}

.markdown-guide {
  color: var(--text);
}

.markdown-guide > :first-child {
  margin-top: 0;
}

.markdown-guide > :last-child {
  margin-bottom: 0;
}

.md-guide-intro {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.markdown-guide p,
.markdown-guide li,
.markdown-guide blockquote {
  color: var(--muted);
}

.markdown-guide h2,
.markdown-guide h3,
.markdown-guide h4 {
  scroll-margin-top: 24px;
}

.markdown-guide .md-section,
.markdown-guide .md-subsection {
  margin: 16px 0;
  border: 1px solid rgba(18, 94, 84, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 250, 0.98)),
    radial-gradient(circle at top left, rgba(18, 94, 84, 0.06), transparent 36%);
  box-shadow: 0 18px 32px rgba(20, 33, 32, 0.06);
  overflow: clip;
}

.markdown-guide .md-subsection {
  margin: 14px 0 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.markdown-guide .md-section-heading,
.markdown-guide .md-section-heading--h2,
.markdown-guide .md-section-heading--h3 {
  margin: 0;
}

.markdown-guide .md-section-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 18px 20px;
  text-align: left;
}

.markdown-guide .md-section-toggle:hover,
.markdown-guide .md-section-toggle:focus-visible {
  background: rgba(18, 94, 84, 0.06);
}

.markdown-guide .md-section-toggle__text {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.markdown-guide .md-section-heading--h3 .md-section-toggle {
  padding: 14px 18px;
}

.markdown-guide .md-section-heading--h3 .md-section-toggle__text {
  font-size: 15px;
}

.markdown-guide .md-section-toggle__meta {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.markdown-guide .is-expanded > .md-section-heading .md-section-toggle__meta,
.markdown-guide .is-expanded > .md-section-heading--h3 .md-section-toggle__meta {
  color: var(--accent);
}

.markdown-guide .md-section__body,
.markdown-guide .md-subsection__body {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
}

.markdown-guide .md-section__body[hidden],
.markdown-guide .md-subsection__body[hidden] {
  display: none;
}

.markdown-guide .md-subsection__body {
  padding: 0 18px 18px;
}

.markdown-guide .md-section__intro,
.markdown-guide .md-subsection__intro {
  display: grid;
  gap: 14px;
}

.markdown-guide .md-section.is-collapsed,
.markdown-guide .md-subsection.is-collapsed {
  box-shadow: none;
}

.markdown-guide ul,
.markdown-guide ol {
  padding-left: 22px;
}

.markdown-guide li + li {
  margin-top: 6px;
}

.markdown-guide img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0;
}

.markdown-guide a {
  color: var(--accent);
}

.markdown-guide pre {
  margin: 14px 0;
}

.markdown-guide pre code {
  white-space: pre;
  word-break: normal;
}

.markdown-guide .md-code-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin: 14px 0;
}

.markdown-guide .md-code-block pre {
  margin: 0;
  min-width: 0;
}

.markdown-guide .md-code-block__copy {
  margin-top: 8px;
}

.markdown-guide .md-interactive {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(18, 94, 84, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 248, 0.96)),
    radial-gradient(circle at top left, rgba(18, 94, 84, 0.08), transparent 34%);
  box-shadow: 0 16px 34px rgba(24, 32, 40, 0.08);
}

.md-interactive h3 {
  margin: 0 0 14px;
}

.interactive-controls {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) 56px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.interactive-range-label,
.interactive-range-value {
  font-weight: 800;
  color: var(--accent-strong);
}

.interactive-range-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.interactive-controls input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

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

.interactive-canvas {
  min-width: 0;
}

.interactive-canvas canvas {
  display: block;
  width: 100%;
  max-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7f7;
}

.interactive-canvas:last-child {
  grid-column: 1 / -1;
}

.interactive-histogram {
  aspect-ratio: 18 / 7;
}

.md-callout {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
  margin: 18px 0;
}

.md-callout__label {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.md-callout--warning {
  border-left: 5px solid var(--danger);
  background: rgba(160, 65, 33, 0.08);
}

.md-callout--warning .md-callout__label {
  color: var(--danger);
}

.md-callout--note {
  border-left: 5px solid var(--accent);
  background: rgba(18, 94, 84, 0.08);
}

.md-callout--note .md-callout__label {
  color: var(--accent);
}

.md-callout--success {
  border-left: 5px solid var(--accent-strong);
  background: rgba(18, 94, 84, 0.08);
}

.md-callout--success .md-callout__label {
  color: var(--accent-strong);
}

.md-callout--if-needed {
  border-left: 5px solid var(--caution);
  background: var(--caution-bg);
}

.md-callout--if-needed .md-callout__label {
  color: var(--caution);
}

.md-mermaid {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
  margin: 16px 0;
}

.md-mermaid--error {
  border-color: var(--danger);
  color: var(--danger);
}

.md-math {
  overflow-x: auto;
}

.md-math--block {
  margin: 16px 0;
}

.docs-callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 246, 244, 0.68);
  padding: 14px 16px;
  margin: 14px 0;
}

.docs-callout h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.docs-callout p {
  margin: 0;
  color: var(--muted);
}

.docs-callout p + p {
  margin-top: 8px;
}

.docs-media {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
}

.docs-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.docs-pager__link {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 14px;
  text-decoration: none;
}

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

.docs-pager__link:first-child:last-child {
  grid-column: 2;
}

.docs-pager__link span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-pager__link strong {
  line-height: 1.25;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.snippet-card__top,
.packet-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.snippet-stack {
  grid-template-columns: 1fr;
}

.snippet-stack--steps {
  gap: 14px;
}

.copy-btn {
  min-height: 32px;
  padding: 6px 10px;
}

.snippet-card {
  display: grid;
  gap: 12px;
}

.snippet-card h3 {
  margin: 0;
  max-width: 26ch;
  font-weight: 900;
}

.snippet-card__description {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.snippet-card pre {
  margin: 0;
}

.snippet-card code {
  white-space: pre;
  word-break: normal;
}

.syntax-highlight {
  line-height: 1.55;
}

.syntax-highlight .tok-c,
.syntax-highlight .tok-c1,
.syntax-highlight .tok-ch,
.syntax-highlight .tok-cm,
.syntax-highlight .tok-cpf {
  color: #7a8692;
  font-style: italic;
}

.syntax-highlight .tok-cp,
.syntax-highlight .tok-k,
.syntax-highlight .tok-kc,
.syntax-highlight .tok-kd,
.syntax-highlight .tok-kn,
.syntax-highlight .tok-kr,
.syntax-highlight .tok-ow {
  color: #16615a;
  font-weight: 700;
}

.syntax-highlight .tok-m,
.syntax-highlight .tok-mb,
.syntax-highlight .tok-mf,
.syntax-highlight .tok-mh,
.syntax-highlight .tok-mi,
.syntax-highlight .tok-mo,
.syntax-highlight .tok-il {
  color: #17836a;
}

.syntax-highlight .tok-na,
.syntax-highlight .tok-s,
.syntax-highlight .tok-s1,
.syntax-highlight .tok-s2,
.syntax-highlight .tok-sa,
.syntax-highlight .tok-sc,
.syntax-highlight .tok-sd,
.syntax-highlight .tok-se,
.syntax-highlight .tok-si,
.syntax-highlight .tok-sr,
.syntax-highlight .tok-ss {
  color: #285ea8;
}

.syntax-highlight .tok-nb,
.syntax-highlight .tok-ne,
.syntax-highlight .tok-nf,
.syntax-highlight .tok-fm {
  color: #923f8d;
}

.syntax-highlight .tok-nc,
.syntax-highlight .tok-nn,
.syntax-highlight .tok-nt {
  color: #a04121;
  font-weight: 700;
}

.syntax-highlight .tok-no,
.syntax-highlight .tok-nv,
.syntax-highlight .tok-vc,
.syntax-highlight .tok-vg,
.syntax-highlight .tok-vi,
.syntax-highlight .tok-vm {
  color: #7d3fb2;
}

.syntax-highlight .tok-o,
.syntax-highlight .tok-p {
  color: #5f6773;
}

.snippet-card--substep {
  position: relative;
  margin-left: 28px;
  border-color: var(--caution-line);
  border-left: 5px solid var(--caution);
  background:
    linear-gradient(90deg, var(--caution-bg), rgba(255, 255, 255, 0.68) 34%),
    rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.snippet-card--substep h3 {
  color: var(--caution);
  font-size: 16px;
  font-weight: 800;
}

.snippet-card--substep::before {
  content: "Only if needed";
  justify-self: start;
  border: 1px solid var(--caution-line);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.86);
  color: var(--caution);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.snippet-card--substep .copy-btn {
  border-color: var(--caution-line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--caution);
}

.snippet-card--substep .snippet-card__description {
  color: #765b3a;
}

.expected-output {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.expected-output pre {
  background: rgba(18, 94, 84, 0.05);
}

.bullet-list {
  color: var(--muted);
  margin: 8px 0 18px;
  padding-left: 20px;
}

.bullet-list li + li {
  margin-top: 6px;
}

.repo-name {
  margin: 0 0 14px;
  font-weight: 800;
}

.clone-panel {
  position: sticky;
  top: 16px;
}

.clone-command {
  margin: 8px 0 10px;
}

.copy-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.copy-shell .clone-command {
  margin: 8px 0 10px;
}

.copy-shell .copy-btn {
  margin-top: 8px;
}

.clone-command-empty code {
  color: var(--muted);
}

.clone-section {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 4px;
}

.clone-section--top {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  margin: 20px 0 28px;
  padding: 16px;
}

.clone-section--top h2 {
  margin-top: 0;
}

.clone-section form {
  margin: 12px 0 18px;
}

.search-input {
  width: 100%;
  max-width: 420px;
  margin: 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.94);
}

.dashboard-hero {
  display: grid;
  padding: 0;
  overflow: hidden;
}

.dashboard-hero__content {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(18, 94, 84, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.9));
}

.dashboard-kicker {
  margin: -8px 0 14px;
  max-width: 28ch;
  font: 700 clamp(22px, 3vw, 32px)/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
  color: #123b36;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.dashboard-section {
  display: grid;
  gap: 18px;
}

.dashboard-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-section__head h2,
.dashboard-article h3 {
  margin: 0;
}

.dashboard-article-stack {
  display: grid;
  gap: 14px;
}

.dashboard-article {
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 248, 0.9));
  padding: 18px;
  display: grid;
  gap: 12px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-article:hover,
.dashboard-article:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(18, 94, 84, 0.28);
  box-shadow: 0 14px 30px rgba(24, 32, 40, 0.08);
}

.dashboard-article--compact {
  align-content: start;
}

.dashboard-article__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-article__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-article__cta {
  align-self: end;
  color: #125e54;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 720px);
    margin: 14px auto 24px;
  }

  .panel {
    padding: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    top: 8px;
    padding: 14px;
  }

  .topbar__main {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .topbar-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .docs-layout[data-scroll-panes="true"] {
    height: auto;
    max-height: none;
  }

  .docs-layout[data-sidebar-collapsed="true"] {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .docs-sidebar {
    position: static;
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 14px;
  }

  .docs-layout[data-scroll-panes="true"] .docs-sidebar,
  .docs-layout[data-scroll-panes="true"] .docs-article {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .docs-divider,
  .docs-layout[data-scroll-panes="true"] .docs-divider {
    position: static;
    height: auto;
    justify-content: flex-start;
  }

  .docs-layout[data-sidebar-collapsed="true"] .docs-sidebar {
    margin: 0;
    border-bottom-color: transparent;
  }

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

  .docs-sidebar-toggle {
    position: static;
    width: 40px;
    min-height: 40px;
  }

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

  .docs-pager__link:first-child:last-child {
    grid-column: auto;
  }

  .docs-pager__link--next {
    text-align: left;
  }

  .dashboard-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    gap: 0;
  }

  .dashboard-hero__content {
    padding: 18px;
  }

  .dashboard-article__body {
    flex-direction: column;
    gap: 10px;
  }

  .resource-row__body,
  .resource-row__actions {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .interactive-grid,
  .interactive-controls {
    grid-template-columns: 1fr;
  }

  .interactive-range-value {
    text-align: left;
  }

  .snippet-stack {
    grid-template-columns: 1fr;
  }

  .clone-panel {
    position: static;
  }
}

:root {
  --bg: #ececec;
  --panel: rgba(255, 255, 255, 0.96);
  --surface: #ffffff;
  --text: #111111;
  --muted: #4d4d4d;
  --line: rgba(0, 0, 0, 0.14);
  --accent: #111111;
  --accent-strong: #000000;
  --danger: #111111;
  --caution: #222222;
  --caution-bg: rgba(0, 0, 0, 0.04);
  --caution-line: rgba(0, 0, 0, 0.14);
  --glow: rgba(0, 0, 0, 0.16);
  --code-bg: linear-gradient(180deg, rgba(248, 248, 248, 0.98), rgba(237, 237, 237, 0.98));
  --code-line: rgba(0, 0, 0, 0.14);
  --code-shadow: rgba(0, 0, 0, 0.08);
}

body {
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.06), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.04), transparent 24%),
    linear-gradient(180deg, #fafafa 0%, var(--bg) 52%, #e3e3e3 100%);
  color: var(--text);
  font: 15px/1.6 "Lato", sans-serif;
}

.page-backdrop {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 36%),
    radial-gradient(circle at 72% 14%, rgba(0, 0, 0, 0.05), transparent 18%);
}

.topbar {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.98), rgba(24, 24, 24, 0.95)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 38%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.topbar__main {
  gap: 22px;
}

.brand {
  color: #ffffff;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-lockup__company-logo,
.brand-lockup__product-logo {
  display: block;
  width: auto;
}

.brand-lockup__company-logo {
  height: 28px;
}

.brand-lockup__product {
  display: inline-grid;
  gap: 3px;
}

.brand-lockup__product-logo {
  height: 24px;
}

.brand-lockup__divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.22);
}

.brand-lockup__label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.topbar .meta {
  color: rgba(255, 255, 255, 0.7);
}

.topbar .link-button {
  color: #ffffff;
  opacity: 0.92;
  -webkit-text-fill-color: #ffffff;
}

.topbar .link-button:hover,
.topbar .link-button:focus-visible {
  color: rgba(255, 255, 255, 0.74);
}

.panel,
.tool-card,
.guide-card,
.snippet-card,
.packet-card,
.side-panel,
.repo,
.resource-row,
.dashboard-article,
.hero-card,
.markdown-guide .md-section,
.markdown-guide .md-subsection {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 242, 242, 0.96));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.eyebrow,
.access-block__eyebrow,
.resource-row__eyebrow,
.dashboard-article__eyebrow,
.docs-sidebar__title,
.markdown-guide .md-section-toggle__meta,
.dashboard-kicker,
.resource-row__cta,
.dashboard-article__cta,
.markdown-guide a,
.topbar .link-button,
a {
  color: var(--accent);
}

.lead,
.meta,
.notice,
.markdown-guide p,
.markdown-guide li,
.markdown-guide blockquote,
.docs-sidebar__caption,
.docs-nav__link,
.docs-subnav__link {
  color: var(--muted);
}

.hero-brand-strip,
.dashboard-brand-strip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, #050505, #1a1a1a);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.hero-brand-strip__company-logo,
.dashboard-brand-strip__company-logo {
  height: 24px;
  width: auto;
}

.hero-brand-strip__product-logo,
.dashboard-brand-strip__product-logo {
  height: 20px;
  width: auto;
}

.hero-brand-strip__separator,
.dashboard-brand-strip__separator {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.24);
}

.hero-card {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(42, 42, 42, 0.96));
  color: #ffffff;
}

.hero-card h2,
.hero-card li,
.hero-card__eyebrow,
.hero-card__lead {
  color: #ffffff;
}

.hero-card__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card__lead {
  margin: 0 0 14px;
  opacity: 0.76;
}

input,
select,
.search-input,
.message,
code,
.repo code {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--line);
  color: var(--text);
}

button,
.button {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

button:hover,
.button:hover,
button:focus-visible,
.button:focus-visible {
  background: #222222;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.button-secondary {
  border-color: rgba(0, 0, 0, 0.16);
  background: #ffffff;
  color: #111111;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #f1f1f1;
  color: #000000;
}

pre {
  border-color: var(--code-line);
  background: var(--code-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 10px 24px rgba(0, 0, 0, 0.05);
}

.code-block::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.04));
}

.badge {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

.docs-nav__link:hover,
.docs-nav__link.is-active,
.docs-subnav__link:hover,
.tab-btn:hover,
.tab-btn.is-active,
.markdown-guide .md-section-toggle:hover,
.markdown-guide .md-section-toggle:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
}

.docs-subnav {
  border-left-color: rgba(0, 0, 0, 0.12);
}

.docs-sidebar-toggle {
  border-color: rgba(0, 0, 0, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(234, 234, 234, 0.95));
  color: #111111;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
}

.docs-sidebar-toggle:hover,
.docs-sidebar-toggle:focus-visible {
  background: rgba(245, 245, 245, 0.98);
  border-color: rgba(0, 0, 0, 0.26);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

.docs-sidebar {
  border-right-color: rgba(0, 0, 0, 0.1);
}

.dashboard-hero__content {
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.92));
}

.dashboard-kicker {
  font-family: "Lato", sans-serif;
  color: #111111;
}

.copy-btn {
  border-color: rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: #111111;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: #f2f2f2;
  color: #000000;
}

.resource-row:hover,
.resource-row:focus-within,
.dashboard-article:hover,
.dashboard-article:focus-visible {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.resource-row--shared-target,
.resource-row--shared-active {
  border-color: rgba(0, 0, 0, 0.26);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(0, 0, 0, 0.08);
}

.syntax-highlight,
.syntax-highlight [class^="tok-"],
.syntax-highlight [class*=" tok-"] {
  color: #111111 !important;
}

@media (max-width: 720px) {
  .brand-lockup {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-lockup__divider {
    display: none;
  }

  .hero-brand-strip,
  .dashboard-brand-strip {
    width: 100%;
    justify-content: center;
    border-radius: 20px;
  }
}
