:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-deep: #eef2f8;
  --surface: #ffffff;
  --surface-soft: #f9fbfe;
  --surface-raised: #ffffff;
  --surface-tint: #edf3ff;
  --text: #182234;
  --text-strong: #0b1424;
  --muted: #607089;
  --muted-strong: #43526a;
  --border: #dfe5ef;
  --border-strong: #cbd5e3;
  --accent: #2367e8;
  --accent-hover: #1455ca;
  --accent-soft: #e9f1ff;
  --accent-ink: #0e4dc1;
  --cyan: #0f8f9f;
  --green: #0d8a64;
  --green-soft: #e2f7ef;
  --orange: #b45d0b;
  --orange-soft: #fff2df;
  --red: #c53d4d;
  --red-soft: #ffebee;
  --code-bg: #0c1424;
  --code-bg-soft: #101c31;
  --code-border: #253652;
  --code-text: #d7e2f2;
  --code-muted: #8fa3c2;
  --header-bg: rgb(245 247 251 / 84%);
  --shadow-sm: 0 1px 2px rgb(15 30 55 / 5%);
  --shadow-md: 0 14px 36px rgb(26 48 84 / 8%);
  --shadow-lg: 0 24px 70px rgb(16 35 68 / 12%);
  --focus: #7aa7ff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080d17;
  --bg-deep: #0b1220;
  --surface: #0f1827;
  --surface-soft: #111c2d;
  --surface-raised: #142034;
  --surface-tint: #122442;
  --text: #d7e1f0;
  --text-strong: #f3f7ff;
  --muted: #8d9cb3;
  --muted-strong: #b1bed0;
  --border: #223148;
  --border-strong: #31445f;
  --accent: #7aa7ff;
  --accent-hover: #9dbfff;
  --accent-soft: #152947;
  --accent-ink: #a8c6ff;
  --cyan: #50cbd4;
  --green: #4ed2a4;
  --green-soft: #102c25;
  --orange: #f2ac58;
  --orange-soft: #2d2112;
  --red: #ff8491;
  --red-soft: #321920;
  --code-bg: #060b14;
  --code-bg-soft: #0a1321;
  --code-border: #21334d;
  --code-text: #dce6f5;
  --code-muted: #8097b9;
  --header-bg: rgb(8 13 23 / 82%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 18%);
  --shadow-md: 0 16px 40px rgb(0 0 0 / 20%);
  --shadow-lg: 0 28px 80px rgb(0 0 0 / 28%);
  --focus: #8eb4ff;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 5%, color-mix(in srgb, var(--accent) 8%, transparent) 0, transparent 28rem),
    radial-gradient(circle at 93% 22%, color-mix(in srgb, var(--cyan) 7%, transparent) 0, transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 40%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 40%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 20%), transparent 48%);
  content: "";
  pointer-events: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

svg {
  display: block;
  flex: 0 0 auto;
}

code {
  font-family: var(--font-mono);
  font-size: 0.89em;
}

p code,
li code {
  padding: 0.12em 0.42em;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--text-strong);
  white-space: nowrap;
}

::selection {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text-strong);
  color: var(--surface);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nav-shell {
  display: flex;
  align-items: center;
  width: min(1380px, calc(100% - 48px));
  height: 68px;
  margin: 0 auto;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.brand-name {
  font-size: 16px;
  font-weight: 760;
  white-space: nowrap;
}

.brand-name b {
  color: var(--accent);
  font-weight: 800;
}

.brand-version {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 580;
  transition: color 150ms ease, background 150ms ease;
}

.site-nav a:hover {
  background: var(--surface-tint);
  color: var(--text-strong);
}

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

.nav-ext-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 9px;
  border-radius: 7px;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  transition: color 150ms ease, background 150ms ease;
}

.nav-ext-link svg {
  width: 15px;
  height: 15px;
}

.nav-ext-link:hover {
  background: var(--surface-tint);
  color: var(--text-strong);
}

.theme-toggle,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-strong);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.icon-moon,
:root[data-theme="dark"] .icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: grid;
  width: 17px;
  gap: 3px;
}

.menu-icon i {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.page-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  gap: 54px;
}

.docs-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  padding-top: 36px;
}

.toc-card {
  padding-right: 20px;
}

.toc-label,
.section-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.toc-nav {
  position: relative;
  display: grid;
  border-left: 1px solid var(--border);
  gap: 1px;
}

.toc-nav a {
  position: relative;
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  transition: color 150ms ease, border-color 150ms ease;
}

.toc-nav a:hover {
  color: var(--text-strong);
}

.toc-nav a.is-active {
  border-left-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 680;
}

.sidebar-meta {
  display: grid;
  margin-top: 26px;
  gap: 12px;
}

.sidebar-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent);
}

.sidebar-meta a {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 4px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 650;
}

.sidebar-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-meta svg {
  width: 12px;
  height: 12px;
}

main {
  min-width: 0;
  padding-bottom: 90px;
}

.docs-section + .docs-section {
  margin-top: 104px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(250px, 0.62fr);
  align-items: stretch;
  min-height: 590px;
  margin-top: 34px;
  padding: 52px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 22rem),
    linear-gradient(140deg, color-mix(in srgb, var(--surface) 96%, var(--accent)) 0%, var(--surface) 48%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-md);
  gap: 46px;
}

.hero-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 17px;
  gap: 9px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.eyebrow > span {
  width: 20px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--text-strong);
  font-size: clamp(2.65rem, 4.1vw, 4.15rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

h1 em {
  color: var(--accent-ink);
  font-style: normal;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 26px;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.78;
}

.hero-lede code {
  color: var(--accent-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 34px;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  gap: 8px;
  font-size: 13px;
  font-weight: 680;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 17px;
  height: 17px;
}

.button-primary {
  background: var(--accent);
  box-shadow: 0 9px 20px color-mix(in srgb, var(--accent) 22%, transparent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 28%, transparent);
}

:root[data-theme="dark"] .button-primary {
  color: #07101f;
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
}

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

.hero-command {
  width: min(100%, 600px);
}

.code-shell {
  overflow: hidden;
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  background: var(--code-bg);
  box-shadow: var(--shadow-md);
}

.hero-command .code-shell {
  width: 100%;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 10px 0 15px;
  border-bottom: 1px solid var(--code-border);
  background: color-mix(in srgb, var(--code-bg-soft) 92%, #fff 2%);
  gap: 14px;
}

.code-filename {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--code-muted);
  cursor: pointer;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 650;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.copy-button svg {
  width: 14px;
  height: 14px;
}

.copy-button:hover {
  border-color: var(--code-border);
  background: rgb(255 255 255 / 5%);
  color: #e5edf9;
}

.copy-button.is-copied {
  color: #71e0b5;
}

.code-shell pre {
  overflow: auto;
  margin: 0;
  padding: 17px 18px;
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.68;
  scrollbar-color: #344867 transparent;
  tab-size: 2;
}

.code-shell pre code {
  font-size: inherit;
}

.code-shell .prompt {
  margin-right: 6px;
  color: #6cddb3;
  user-select: none;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  margin: 12px 0 0;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.hero-note svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.hero-note code {
  color: var(--muted-strong);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-self: center;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 10px;
}

.panel-kicker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.version-badge {
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--border));
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.fact-list {
  display: grid;
  gap: 5px;
}

.fact-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--accent-ink);
}

.fact-icon svg {
  width: 18px;
  height: 18px;
}

.fact-row > span:last-child {
  display: grid;
}

.fact-row small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.fact-row strong {
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 660;
  line-height: 1.5;
}

.panel-code {
  display: grid;
  margin: 20px 0;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  gap: 3px;
}

.panel-code span {
  color: var(--muted);
  font-size: 10px;
}

.panel-code code {
  overflow-wrap: anywhere;
  color: var(--text-strong);
  font-size: 11.5px;
  font-weight: 650;
}

.panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 680;
}

.panel-link svg {
  width: 15px;
  height: 15px;
  transition: transform 150ms ease;
}

.panel-link:hover svg {
  transform: translate(2px, -2px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.section-heading > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.prereq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
  gap: 12px;
}

.prereq-card {
  display: flex;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  gap: 13px;
}

.prereq-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.prereq-icon svg {
  width: 21px;
  height: 21px;
}

.prereq-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-strong);
  font-size: 13px;
}

.prereq-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.steps {
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  padding: 25px 28px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}

.step:last-child {
  border-bottom: 0;
}

.step-number {
  display: flex;
  align-items: flex-start;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.04em;
}

.step-number::after {
  width: 25px;
  height: 1px;
  margin: 10px 0 0 9px;
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  content: "";
}

.step-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 10px;
}

.step h3,
.config-card h3,
.tool-card h3,
.result-notes + h3,
.behavior-grid h3,
.requirements-card h3,
.security-banner h3,
.debug-grid h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 690;
  letter-spacing: -0.012em;
}

.mini-tag {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
}

.step p {
  max-width: 680px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 12px;
  gap: 6px;
}

.scope-list code {
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 680;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link svg {
  width: 14px;
  height: 14px;
}

.prompt-example {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: var(--surface-soft);
}

.prompt-example span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prompt-example p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
}

.callout {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  gap: 12px;
}

.callout-info {
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border));
  background: var(--accent-soft);
}

.callout-warning {
  border-color: color-mix(in srgb, var(--orange) 28%, var(--border));
  background: var(--orange-soft);
}

.callout-danger {
  margin-top: 18px;
  border-color: color-mix(in srgb, var(--red) 25%, var(--border));
  background: var(--red-soft);
}

.callout-compact {
  margin: 14px 0;
  padding: 11px 13px;
}

.callout-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--accent-ink);
}

.callout-warning .callout-icon {
  color: var(--orange);
}

.callout-danger .callout-icon {
  color: var(--red);
}

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

.callout > div {
  min-width: 0;
}

.callout strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-strong);
  font-size: 12.5px;
}

.callout p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
}

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

.config-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 16px;
  gap: 12px;
}

.config-client {
  display: block;
  margin-bottom: 1px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.config-card h3 {
  font-size: 14px;
}

.file-path {
  max-width: 52%;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-card .code-shell {
  flex: 1;
}

.config-card .code-shell pre {
  min-height: 205px;
  font-size: 11px;
}

.config-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.client-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.client-details > div {
  padding: 15px 17px;
  border-right: 1px solid var(--border);
}

.client-details > div:last-child {
  border-right: 0;
}

.detail-label {
  display: block;
  margin-bottom: 3px;
  color: var(--text-strong);
  font-size: 10.5px;
  font-weight: 680;
}

.client-details p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

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

.tool-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 90px;
}

.tool-card-write {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(100deg, var(--surface-soft), var(--surface));
  gap: 18px;
}

.tool-card-write .tool-head {
  background: linear-gradient(100deg, var(--accent-soft), var(--surface));
}

.tool-title-wrap {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 13px;
}

.tool-index {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.tool-card h3 {
  margin-bottom: 2px;
}

.tool-card h3 code {
  color: var(--text-strong);
  font-size: 15px;
}

.tool-title-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}

.access-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.access-badge.read {
  border-color: color-mix(in srgb, var(--green) 25%, var(--border));
  background: var(--green-soft);
  color: var(--green);
}

.access-badge.write {
  border-color: color-mix(in srgb, var(--orange) 28%, var(--border));
  background: var(--orange-soft);
  color: var(--orange);
}

.tool-body {
  padding: 20px 22px 22px;
}

.tool-notes > p {
  margin-bottom: 13px;
  color: var(--muted-strong);
  font-size: 12.5px;
}

.inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-fields span {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-size: 10px;
}

.tool-example {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  gap: 13px;
}

.mini-label {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tool-example .mini-label {
  flex: 0 0 auto;
}

.tool-example > code {
  overflow-wrap: anywhere;
  color: var(--text-strong);
  font-size: 10.5px;
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  scrollbar-width: thin;
}

.param-table,
.env-table,
.error-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  text-align: left;
}

.param-table {
  min-width: 590px;
}

.param-table th,
.param-table td,
.env-table th,
.env-table td,
.error-table th,
.error-table td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.param-table tr:last-child td,
.env-table tr:last-child td,
.error-table tr:last-child td {
  border-bottom: 0;
}

.param-table th,
.env-table th,
.error-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.param-table td,
.env-table td,
.error-table td {
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.6;
}

.param-table tbody tr:hover,
.env-table tbody tr:hover,
.error-table tbody tr:hover {
  background: color-mix(in srgb, var(--accent-soft) 35%, transparent);
}

.param-table td code,
.env-table td code,
.error-table td code {
  color: var(--text-strong);
}

.exclusive-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.exclusive-option {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
}

.exclusive-option > code {
  display: block;
  margin: 5px 0 3px;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 650;
}

.exclusive-option p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
}

.exclusive-or {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.write-banner {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 9px;
  background: var(--accent-soft);
  gap: 11px;
}

.write-banner > span {
  color: var(--accent-ink);
}

.write-banner svg {
  width: 19px;
  height: 19px;
  margin-top: 2px;
}

.write-banner p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 11.5px;
}

.write-banner strong {
  color: var(--text-strong);
}

.required {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.split-examples {
  display: grid;
  margin-top: 16px;
  gap: 9px;
}

.split-examples details {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
}

.split-examples summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 13px;
  color: var(--text-strong);
  cursor: pointer;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 650;
  list-style: none;
}

.split-examples summary::-webkit-details-marker {
  display: none;
}

.split-examples summary::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 150ms ease;
}

.split-examples details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.split-examples summary code {
  margin-left: auto;
  color: var(--muted);
  font-size: 9.5px;
}

.code-shell-flat {
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.code-shell-flat pre {
  padding: 14px 16px;
  font-size: 11px;
}

.env-table-wrap {
  margin-bottom: 16px;
}

.env-table {
  min-width: 760px;
}

.env-table th:nth-child(1) {
  width: 25%;
}

.env-table th:nth-child(2) {
  width: 9%;
}

.env-table th:nth-child(3) {
  width: 28%;
}

.env-table td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.env-table td:first-child code {
  font-size: 10.5px;
  font-weight: 650;
}

.muted {
  color: var(--muted) !important;
}

.config-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: stretch;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  gap: 24px;
  padding: 26px;
}

.config-flow-copy h3 {
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.config-flow-copy ol {
  display: grid;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 11.5px;
  gap: 7px;
}

.config-flow-copy li {
  padding-left: 3px;
}

.config-flow-copy li::marker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.config-flow .code-shell {
  align-self: center;
}

.config-flow .code-shell pre {
  font-size: 11px;
}

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

.security-card {
  display: flex;
  align-items: flex-start;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  gap: 12px;
}

.security-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
}

.security-icon svg {
  width: 18px;
  height: 18px;
}

.security-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-strong);
  font-size: 12px;
}

.security-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.publish-flow {
  display: flex;
  align-items: stretch;
  margin-bottom: 20px;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  flex: 1 1 0;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  gap: 11px;
}

.flow-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.flow-step code {
  display: block;
  margin-bottom: 2px;
  color: var(--text-strong);
  font-size: 10.5px;
  font-weight: 650;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.flow-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  color: var(--border-strong);
  font-size: 13px;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.82fr);
  margin-bottom: 18px;
  gap: 14px;
}

.result-grid .code-shell pre {
  height: calc(100% - 40px);
  min-height: 340px;
  font-size: 11px;
}

.result-notes {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.result-note {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  gap: 9px;
}

.result-note:last-child {
  border-bottom: 0;
}

.result-key {
  padding-top: 1px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.result-key.success {
  color: var(--green);
}

.result-key.action {
  color: var(--accent-ink);
}

.result-key.warning {
  color: var(--orange);
}

.result-note p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.behavior-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.behavior-grid > div {
  padding: 20px;
}

.behavior-grid > div + div {
  border-left: 1px solid var(--border);
}

.behavior-grid h3 {
  margin-bottom: 5px;
}

.behavior-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}

.limit-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  gap: 10px;
}

.limit-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.limit-value {
  display: block;
  margin-bottom: 5px;
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 710;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.limit-value small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0;
}

.limit-label {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 680;
}

.limit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.limits-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
  gap: 12px;
}

.requirements-card {
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 11px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

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

.card-heading p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.check-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10.5px;
  gap: 4px;
}

.check-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.check-list li > span {
  flex: 0 0 48px;
  color: var(--text-strong);
  font-size: 9.5px;
  font-weight: 700;
}

.check-list code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 9px;
}

.security-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  padding: 25px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent-soft) 82%, var(--surface)), var(--surface));
  gap: 30px;
}

.security-banner h3 {
  margin-bottom: 6px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.security-banner-copy p {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}

.security-points {
  display: grid;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  gap: 9px;
}

.security-points span {
  display: flex;
  align-items: center;
  color: var(--muted-strong);
  font-size: 10.5px;
  gap: 8px;
}

.security-points i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 12%, transparent);
}

.error-table-wrap {
  margin-bottom: 15px;
}

.error-table {
  min-width: 710px;
}

.error-table th:first-child {
  width: 20%;
}

.error-table th:nth-child(2) {
  width: 29%;
}

.error-table td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.http-badge {
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--red) 20%, var(--border));
  border-radius: 4px;
  background: var(--red-soft);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
}

.debug-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.debug-grid > div {
  position: relative;
  padding: 20px;
}

.debug-grid > div + div {
  border-left: 1px solid var(--border);
}

.debug-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.debug-grid h3 {
  margin-bottom: 5px;
  font-size: 12px;
}

.debug-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 38px;
  gap: 60px;
}

.footer-brand .brand {
  margin-bottom: 11px;
}

.footer-brand p {
  max-width: 420px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
}

.footer-version {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

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

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-links span {
  margin-bottom: 3px;
  color: var(--text-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links a {
  width: max-content;
  color: var(--muted);
  font-size: 11.5px;
}

.footer-links a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 48px));
  min-height: 58px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  gap: 20px;
}

@media (max-width: 1180px) {
  .nav-shell,
  .page-shell,
  .footer-shell,
  .footer-bottom {
    width: min(100% - 38px, 1180px);
  }

  .nav-shell {
    gap: 18px;
  }

  .site-nav a {
    padding-right: 8px;
    padding-left: 8px;
  }

  .page-shell {
    grid-template-columns: 186px minmax(0, 1fr);
    gap: 36px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.7fr);
    padding: 42px;
    gap: 32px;
  }

  .hero-panel {
    padding: 22px;
  }

  .result-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(230px, 0.95fr);
  }
}

@media (max-width: 1000px) {
  .brand-version {
    display: none;
  }

  .page-shell {
    display: block;
  }

  .docs-sidebar {
    display: none;
  }

  .hero {
    margin-top: 26px;
  }

  .hero-panel {
    align-self: stretch;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px max(18px, calc((100% - 1180px) / 2));
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 18px 34px rgb(14 26 45 / 10%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .menu-toggle {
    display: inline-grid;
  }
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    display: block;
  }

  .hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 28px;
  }

  .panel-top {
    grid-column: 1 / -1;
  }

  .fact-list {
    grid-column: 1;
    grid-row: 2 / span 2;
  }

  .panel-code {
    align-self: end;
    grid-column: 2;
    grid-row: 2;
    min-width: 190px;
  }

  .panel-link {
    align-self: start;
    grid-column: 2;
    grid-row: 3;
    padding-left: 14px;
    gap: 20px;
  }

  .config-grid,
  .limits-layout,
  .security-banner {
    grid-template-columns: 1fr;
  }

  .config-flow {
    grid-template-columns: 1fr;
  }

  .config-card .code-shell pre {
    min-height: 0;
  }

  .client-details {
    grid-template-columns: 1fr;
  }

  .client-details > div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .client-details > div:last-child {
    border-bottom: 0;
  }

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

  .result-grid .code-shell pre {
    height: auto;
    min-height: 0;
  }

  .limit-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 82px;
  }

  .nav-shell,
  .page-shell,
  .footer-shell,
  .footer-bottom {
    width: calc(100% - 28px);
  }

  .nav-shell {
    height: 60px;
    gap: 10px;
  }

  .nav-actions {
    gap: 1px;
  }

  .nav-ext-link {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .nav-ext-link span {
    display: none;
  }

  .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 14px;
  }

  .hero {
    padding: 26px 20px;
    border-radius: var(--radius-lg);
    gap: 26px;
  }

  h1 {
    font-size: clamp(2.18rem, 10vw, 3rem);
    letter-spacing: -0.045em;
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .hero-command pre {
    font-size: 11px;
  }

  .hero-panel {
    display: block;
  }

  .fact-row {
    padding: 9px 0;
  }

  .panel-code {
    margin-bottom: 14px;
  }

  .panel-link {
    padding-left: 0;
  }

  .docs-section + .docs-section {
    margin-top: 76px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 1.92rem;
  }

  .section-heading > p {
    font-size: 13px;
  }

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

  .step {
    grid-template-columns: 1fr;
    padding: 21px 18px;
    gap: 7px;
  }

  .step-number::after {
    width: 18px;
  }

  .step-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .callout {
    padding: 13px;
  }

  .config-card {
    padding: 15px;
  }

  .config-head {
    display: block;
  }

  .file-path {
    display: inline-block;
    max-width: 100%;
    margin-top: 7px;
  }

  .tool-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .tool-body {
    padding: 16px;
  }

  .tool-example {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

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

  .exclusive-or {
    margin: -2px auto;
  }

  .exclusive-or::after {
    position: absolute;
    content: "";
  }

  .config-flow {
    padding: 19px;
    gap: 17px;
  }

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

  .publish-flow {
    display: grid;
    gap: 7px;
  }

  .flow-arrow {
    display: none;
  }

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

  .behavior-grid > div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .limit-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .limit-card {
    padding: 15px;
  }

  .security-banner {
    padding: 19px;
    gap: 19px;
  }

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

  .debug-grid > div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .footer-shell {
    padding-top: 35px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 17px 0;
    gap: 4px;
  }
}

@media (max-width: 430px) {
  .brand-name {
    font-size: 15px;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .menu-toggle-label {
    display: none;
  }

  .nav-actions .nav-ext-link:first-child {
    display: none;
  }

  .hero {
    padding: 23px 16px;
  }

  .hero-note {
    font-size: 10px;
  }

  .code-head {
    padding-left: 11px;
  }

  .code-shell pre {
    padding: 14px;
    font-size: 11px;
  }

  .result-note {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .limit-cards {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 20px;
  }
}

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

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

@media print {
  .site-header,
  .docs-sidebar,
  .copy-button,
  .skip-link {
    display: none !important;
  }

  .page-shell {
    display: block;
    width: 100%;
  }

  .hero,
  .tool-card,
  .config-card,
  .steps {
    box-shadow: none;
  }

  a {
    text-decoration: underline;
  }
}
