/* AUTO-GENERATED by web/scripts/sync-primer-tokens.mjs — do not hand-edit.
 * Source: @primer/primitives@10.7.0 light + dark functional themes + size tokens.
 * Re-run: cd web && npm run sync:primer-tokens
 */

:root,
[data-color-mode="dark"],
[data-color-mode="dark"][data-dark-theme="dark"] {
  color-scheme: dark;

  /* ── Primer functional color roles ── */
  --bgColor-default: #0d1117;
  --bgColor-muted: #151b23;
  --bgColor-inset: #010409;
  --bgColor-emphasis: #3d444d;
  --bgColor-disabled: #212830;
  --bgColor-accent-emphasis: #1f6feb;
  --bgColor-accent-muted: #388bfd1a;
  --bgColor-success-emphasis: #238636;
  --bgColor-success-muted: #2ea04326;
  --bgColor-attention-emphasis: #9e6a03;
  --bgColor-attention-muted: #bb800926;
  --bgColor-danger-emphasis: #da3633;
  --bgColor-danger-muted: #f851491a;
  --bgColor-severe-emphasis: #bd561d;
  --bgColor-neutral-emphasis: #656c76;
  --bgColor-neutral-muted: #656c7633;
  --fgColor-default: #f0f6fc;
  --fgColor-muted: #9198a1;
  --fgColor-onEmphasis: #ffffff;
  --fgColor-accent: #4493f8;
  --fgColor-success: #3fb950;
  --fgColor-attention: #d29922;
  --fgColor-danger: #f85149;
  --fgColor-severe: #db6d28;
  --fgColor-link: #4493f8;
  --borderColor-default: #3d444d;
  --borderColor-muted: #3d444db3;
  --borderColor-emphasis: #656c76;
  --borderColor-accent-emphasis: #1f6feb;
  --borderColor-success-emphasis: #238636;
  --borderColor-attention-emphasis: #9e6a03;
  --borderColor-danger-emphasis: #da3633;
  --button-primary-bgColor-rest: #238636;
  --button-primary-bgColor-hover: #29903b;
  --button-primary-bgColor-active: #2e9a40;
  --control-borderColor-rest: #3d444d;
  --control-fgColor-rest: #f0f6fc;
  --focus-outlineColor: #1f6feb;

  /* Canvas layers: Primer default/muted plus stable elevated steps used
   * across NFLTR panels (historical GitHub canvas values). */
  --bgColor-surface: #161b22;
  --bgColor-surface-alt: #1c2128;
  --bgColor-surface-elevated: #21262d;
  --borderColor-subtle: #21262d;

  /* ── Primer control / stack size (subset) ── */
  --control-small-size: 1.75rem;
  --control-medium-size: 2rem;
  --control-large-size: 2.5rem;
  --control-medium-paddingInline-normal: 0.75rem;
  --control-small-paddingInline-normal: 0.75rem;
  --stack-gap-condensed: 0.5rem;
  --stack-gap-normal: 1rem;
  --stack-gap-spacious: 1.5rem;
  --stack-padding-condensed: 0.5rem;
  --stack-padding-normal: 1rem;
  --overlay-borderRadius: 0.375rem;

  /* ── Spacing scale (4px base, Primer-aligned) ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* ── Radii ── */
  --borderRadius-small: 0.375rem;
  --borderRadius-medium: 0.5rem;
  --borderRadius-large: 0.75rem;
  --borderRadius-xlarge: 0.875rem;
  --borderRadius-full: 999px;

  /* ── Typography stacks (Primer / GitHub system) ── */
  --fontStack-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --fontStack-monospace: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fontStack-display: var(--fontStack-system);
  --fontStack-body: var(--fontStack-system);

  /* ── NFLTR compat aliases (existing CSS keeps working) ── */
  --bg: var(--bgColor-default);
  --surface: var(--bgColor-surface);
  --surface-alt: var(--bgColor-surface-alt);
  --surface-elevated: var(--bgColor-surface-elevated);
  --border-subtle: var(--borderColor-subtle);
  --border: var(--borderColor-default);
  --text-heading: var(--fgColor-default);
  --text: #c9d1d9;
  --text-secondary: var(--fgColor-default);
  --text-muted: var(--fgColor-muted);
  --text-dim: #484f58;
  --blue: var(--fgColor-accent);
  --blue-bg: var(--bgColor-accent-emphasis);
  --green: var(--fgColor-success);
  --green-bg: var(--bgColor-success-emphasis);
  --red: var(--fgColor-danger);
  --yellow: var(--fgColor-attention);
  --orange: var(--fgColor-severe);
  --state-paused: var(--fgColor-attention);
  --radius-sm: var(--borderRadius-small);
  --radius-md: var(--borderRadius-medium);
  --radius-lg: var(--borderRadius-large);
  --radius-xl: var(--borderRadius-xlarge);
  --radius-pill: var(--borderRadius-full);
  --mono: var(--fontStack-monospace);
  --accent: var(--fgColor-accent);
  --accent-cyan: var(--fgColor-accent);
  --accent-indigo: #7f89ff;
  --cyan: #39c5cf;
  --pink: #ff7b72;
  --landing-hero-glow: #1a2f52;
  --landing-body-deep: #0b1016;
  --orch-workspace-nav-top: 0.5rem;
  --orch-workspace-nav-stack: 3.75rem;
}

[data-color-mode="light"],
[data-color-mode="light"][data-light-theme="light"] {
  color-scheme: light;

  /* ── Primer functional color roles ── */
  --bgColor-default: #ffffff;
  --bgColor-muted: #f6f8fa;
  --bgColor-inset: #f6f8fa;
  --bgColor-emphasis: #25292e;
  --bgColor-disabled: #eff2f5;
  --bgColor-accent-emphasis: #0969da;
  --bgColor-accent-muted: #ddf4ff;
  --bgColor-success-emphasis: #1f883d;
  --bgColor-success-muted: #dafbe1;
  --bgColor-attention-emphasis: #9a6700;
  --bgColor-attention-muted: #fff8c5;
  --bgColor-danger-emphasis: #cf222e;
  --bgColor-danger-muted: #ffebe9;
  --bgColor-severe-emphasis: #bc4c00;
  --bgColor-neutral-emphasis: #59636e;
  --bgColor-neutral-muted: #818b981f;
  --fgColor-default: #1f2328;
  --fgColor-muted: #59636e;
  --fgColor-onEmphasis: #ffffff;
  --fgColor-accent: #0969da;
  --fgColor-success: #1a7f37;
  --fgColor-attention: #9a6700;
  --fgColor-danger: #d1242f;
  --fgColor-severe: #bc4c00;
  --fgColor-link: #0969da;
  --borderColor-default: #d1d9e0;
  --borderColor-muted: #d1d9e0b3;
  --borderColor-emphasis: #818b98;
  --borderColor-accent-emphasis: #0969da;
  --borderColor-success-emphasis: #1a7f37;
  --borderColor-attention-emphasis: #9a6700;
  --borderColor-danger-emphasis: #cf222e;
  --button-primary-bgColor-rest: #1f883d;
  --button-primary-bgColor-hover: #1c8139;
  --button-primary-bgColor-active: #197935;
  --control-borderColor-rest: #d1d9e0;
  --control-fgColor-rest: #25292e;
  --focus-outlineColor: #0969da;

  /* Canvas layers: Primer default/muted plus stable elevated steps used
   * across NFLTR panels (historical GitHub canvas values). */
  --bgColor-surface: #ffffff;
  --bgColor-surface-alt: #f6f8fa;
  --bgColor-surface-elevated: #eaeef2;
  --borderColor-subtle: #d8dee4;

  /* ── NFLTR compat aliases (existing CSS keeps working) ── */
  --bg: var(--bgColor-default);
  --surface: var(--bgColor-surface);
  --surface-alt: var(--bgColor-surface-alt);
  --surface-elevated: var(--bgColor-surface-elevated);
  --border-subtle: var(--borderColor-subtle);
  --border: var(--borderColor-default);
  --text-heading: var(--fgColor-default);
  --text: #424a53;
  --text-secondary: var(--fgColor-default);
  --text-muted: var(--fgColor-muted);
  --text-dim: #656d76;
  --blue: var(--fgColor-accent);
  --blue-bg: var(--bgColor-accent-emphasis);
  --green: var(--fgColor-success);
  --green-bg: var(--bgColor-success-emphasis);
  --red: var(--fgColor-danger);
  --yellow: var(--fgColor-attention);
  --orange: var(--fgColor-severe);
  --state-paused: var(--fgColor-attention);
  --radius-sm: var(--borderRadius-small);
  --radius-md: var(--borderRadius-medium);
  --radius-lg: var(--borderRadius-large);
  --radius-xl: var(--borderRadius-xlarge);
  --radius-pill: var(--borderRadius-full);
  --mono: var(--fontStack-monospace);
  --accent: var(--fgColor-accent);
  --accent-cyan: var(--fgColor-accent);
  --accent-indigo: #5a64d6;
  --cyan: #1199ad;
  --pink: #cf222e;
  --landing-hero-glow: #d7e7ff;
  --landing-body-deep: #eef2f6;
  --orch-workspace-nav-top: 0.5rem;
  --orch-workspace-nav-stack: 3.75rem;
}

/* Auto follows the OS day/night preference until the operator picks light or dark. */
@media (prefers-color-scheme: light) {
[data-color-mode="auto"],
[data-color-mode="auto"][data-light-theme="light"] {
  color-scheme: light;

  /* ── Primer functional color roles ── */
  --bgColor-default: #ffffff;
  --bgColor-muted: #f6f8fa;
  --bgColor-inset: #f6f8fa;
  --bgColor-emphasis: #25292e;
  --bgColor-disabled: #eff2f5;
  --bgColor-accent-emphasis: #0969da;
  --bgColor-accent-muted: #ddf4ff;
  --bgColor-success-emphasis: #1f883d;
  --bgColor-success-muted: #dafbe1;
  --bgColor-attention-emphasis: #9a6700;
  --bgColor-attention-muted: #fff8c5;
  --bgColor-danger-emphasis: #cf222e;
  --bgColor-danger-muted: #ffebe9;
  --bgColor-severe-emphasis: #bc4c00;
  --bgColor-neutral-emphasis: #59636e;
  --bgColor-neutral-muted: #818b981f;
  --fgColor-default: #1f2328;
  --fgColor-muted: #59636e;
  --fgColor-onEmphasis: #ffffff;
  --fgColor-accent: #0969da;
  --fgColor-success: #1a7f37;
  --fgColor-attention: #9a6700;
  --fgColor-danger: #d1242f;
  --fgColor-severe: #bc4c00;
  --fgColor-link: #0969da;
  --borderColor-default: #d1d9e0;
  --borderColor-muted: #d1d9e0b3;
  --borderColor-emphasis: #818b98;
  --borderColor-accent-emphasis: #0969da;
  --borderColor-success-emphasis: #1a7f37;
  --borderColor-attention-emphasis: #9a6700;
  --borderColor-danger-emphasis: #cf222e;
  --button-primary-bgColor-rest: #1f883d;
  --button-primary-bgColor-hover: #1c8139;
  --button-primary-bgColor-active: #197935;
  --control-borderColor-rest: #d1d9e0;
  --control-fgColor-rest: #25292e;
  --focus-outlineColor: #0969da;

  /* Canvas layers: Primer default/muted plus stable elevated steps used
   * across NFLTR panels (historical GitHub canvas values). */
  --bgColor-surface: #ffffff;
  --bgColor-surface-alt: #f6f8fa;
  --bgColor-surface-elevated: #eaeef2;
  --borderColor-subtle: #d8dee4;

  /* ── NFLTR compat aliases (existing CSS keeps working) ── */
  --bg: var(--bgColor-default);
  --surface: var(--bgColor-surface);
  --surface-alt: var(--bgColor-surface-alt);
  --surface-elevated: var(--bgColor-surface-elevated);
  --border-subtle: var(--borderColor-subtle);
  --border: var(--borderColor-default);
  --text-heading: var(--fgColor-default);
  --text: #424a53;
  --text-secondary: var(--fgColor-default);
  --text-muted: var(--fgColor-muted);
  --text-dim: #656d76;
  --blue: var(--fgColor-accent);
  --blue-bg: var(--bgColor-accent-emphasis);
  --green: var(--fgColor-success);
  --green-bg: var(--bgColor-success-emphasis);
  --red: var(--fgColor-danger);
  --yellow: var(--fgColor-attention);
  --orange: var(--fgColor-severe);
  --state-paused: var(--fgColor-attention);
  --radius-sm: var(--borderRadius-small);
  --radius-md: var(--borderRadius-medium);
  --radius-lg: var(--borderRadius-large);
  --radius-xl: var(--borderRadius-xlarge);
  --radius-pill: var(--borderRadius-full);
  --mono: var(--fontStack-monospace);
  --accent: var(--fgColor-accent);
  --accent-cyan: var(--fgColor-accent);
  --accent-indigo: #5a64d6;
  --cyan: #1199ad;
  --pink: #cf222e;
  --landing-hero-glow: #d7e7ff;
  --landing-body-deep: #eef2f6;
  --orch-workspace-nav-top: 0.5rem;
  --orch-workspace-nav-stack: 3.75rem;
}

}

@media (prefers-color-scheme: dark) {
[data-color-mode="auto"],
[data-color-mode="auto"][data-dark-theme="dark"] {
  color-scheme: dark;

  /* ── Primer functional color roles ── */
  --bgColor-default: #0d1117;
  --bgColor-muted: #151b23;
  --bgColor-inset: #010409;
  --bgColor-emphasis: #3d444d;
  --bgColor-disabled: #212830;
  --bgColor-accent-emphasis: #1f6feb;
  --bgColor-accent-muted: #388bfd1a;
  --bgColor-success-emphasis: #238636;
  --bgColor-success-muted: #2ea04326;
  --bgColor-attention-emphasis: #9e6a03;
  --bgColor-attention-muted: #bb800926;
  --bgColor-danger-emphasis: #da3633;
  --bgColor-danger-muted: #f851491a;
  --bgColor-severe-emphasis: #bd561d;
  --bgColor-neutral-emphasis: #656c76;
  --bgColor-neutral-muted: #656c7633;
  --fgColor-default: #f0f6fc;
  --fgColor-muted: #9198a1;
  --fgColor-onEmphasis: #ffffff;
  --fgColor-accent: #4493f8;
  --fgColor-success: #3fb950;
  --fgColor-attention: #d29922;
  --fgColor-danger: #f85149;
  --fgColor-severe: #db6d28;
  --fgColor-link: #4493f8;
  --borderColor-default: #3d444d;
  --borderColor-muted: #3d444db3;
  --borderColor-emphasis: #656c76;
  --borderColor-accent-emphasis: #1f6feb;
  --borderColor-success-emphasis: #238636;
  --borderColor-attention-emphasis: #9e6a03;
  --borderColor-danger-emphasis: #da3633;
  --button-primary-bgColor-rest: #238636;
  --button-primary-bgColor-hover: #29903b;
  --button-primary-bgColor-active: #2e9a40;
  --control-borderColor-rest: #3d444d;
  --control-fgColor-rest: #f0f6fc;
  --focus-outlineColor: #1f6feb;

  /* Canvas layers: Primer default/muted plus stable elevated steps used
   * across NFLTR panels (historical GitHub canvas values). */
  --bgColor-surface: #161b22;
  --bgColor-surface-alt: #1c2128;
  --bgColor-surface-elevated: #21262d;
  --borderColor-subtle: #21262d;

  /* ── NFLTR compat aliases (existing CSS keeps working) ── */
  --bg: var(--bgColor-default);
  --surface: var(--bgColor-surface);
  --surface-alt: var(--bgColor-surface-alt);
  --surface-elevated: var(--bgColor-surface-elevated);
  --border-subtle: var(--borderColor-subtle);
  --border: var(--borderColor-default);
  --text-heading: var(--fgColor-default);
  --text: #c9d1d9;
  --text-secondary: var(--fgColor-default);
  --text-muted: var(--fgColor-muted);
  --text-dim: #484f58;
  --blue: var(--fgColor-accent);
  --blue-bg: var(--bgColor-accent-emphasis);
  --green: var(--fgColor-success);
  --green-bg: var(--bgColor-success-emphasis);
  --red: var(--fgColor-danger);
  --yellow: var(--fgColor-attention);
  --orange: var(--fgColor-severe);
  --state-paused: var(--fgColor-attention);
  --radius-sm: var(--borderRadius-small);
  --radius-md: var(--borderRadius-medium);
  --radius-lg: var(--borderRadius-large);
  --radius-xl: var(--borderRadius-xlarge);
  --radius-pill: var(--borderRadius-full);
  --mono: var(--fontStack-monospace);
  --accent: var(--fgColor-accent);
  --accent-cyan: var(--fgColor-accent);
  --accent-indigo: #7f89ff;
  --cyan: #39c5cf;
  --pink: #ff7b72;
  --landing-hero-glow: #1a2f52;
  --landing-body-deep: #0b1016;
  --orch-workspace-nav-top: 0.5rem;
  --orch-workspace-nav-stack: 3.75rem;
}

}
/* Primer-aligned base: type, links, focus, code. No page layout. */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    transition-duration: 0s !important;
  }
}

body {
  margin: 0;
  font-family: var(--fontStack-body);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--bgColor-default);
  color: var(--text);
}

a {
  color: var(--fgColor-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

h1, h2, h3, h4 {
  color: var(--fgColor-default);
  font-family: var(--fontStack-display);
  font-weight: 600;
  line-height: 1.25;
}
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

code, kbd, pre, samp {
  font-family: var(--fontStack-monospace);
}

code {
  background: var(--bgColor-muted);
  padding: 0.125rem 0.375rem;
  border-radius: var(--borderRadius-small);
  font-size: 0.9em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.primer-caption,
.text-caption {
  font-size: 0.75rem;
  line-height: 1.333;
  color: var(--fgColor-muted);
}
/* Primer-aligned controls shared across landing, docs, login, install, dashboard. */

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-medium-size);
  padding: 0 var(--control-medium-paddingInline-normal);
  border: 1px solid var(--borderColor-default);
  border-radius: var(--borderRadius-medium);
  background: var(--bgColor-surface);
  color: var(--fgColor-default);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.btn:hover,
button.btn:hover {
  text-decoration: none;
  background: var(--bgColor-neutral-muted);
  border-color: var(--borderColor-emphasis);
}
.btn:disabled,
button.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-primary,
button.btn-primary {
  background: var(--button-primary-bgColor-rest);
  border-color: var(--borderColor-success-emphasis);
  color: var(--fgColor-onEmphasis);
}
.btn-primary:hover,
button.btn-primary:hover {
  background: var(--button-primary-bgColor-hover);
  border-color: var(--button-primary-bgColor-hover);
  color: var(--fgColor-onEmphasis);
}

.btn-danger,
button.btn-danger {
  background: var(--bgColor-danger-emphasis);
  border-color: var(--borderColor-danger-emphasis);
  color: var(--fgColor-onEmphasis);
}
.btn-danger:hover,
button.btn-danger:hover {
  filter: brightness(1.08);
  color: var(--fgColor-onEmphasis);
}

.btn-outline,
button.btn-outline {
  background: transparent;
  border-color: var(--borderColor-default);
  color: var(--fgColor-default);
}
.btn-outline:hover,
button.btn-outline:hover {
  background: var(--bgColor-neutral-muted);
}

.btn-xs,
button.btn-xs {
  min-height: var(--control-small-size);
  padding: 0 var(--control-small-paddingInline-normal);
  font-size: 0.75rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="url"],
input:not([type]),
textarea,
select {
  min-height: var(--control-medium-size);
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--control-borderColor-rest);
  border-radius: var(--borderRadius-medium);
  background: var(--bgColor-default);
  color: var(--control-fgColor-rest);
  font: inherit;
  font-size: 0.875rem;
}
textarea {
  min-height: 5rem;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus-outlineColor);
  outline-offset: 0;
  border-color: var(--borderColor-accent-emphasis);
}

details.primer-disclosure,
details.orch-trace-lab,
details.orch-dag-coordination {
  border: 1px solid var(--borderColor-default);
  border-radius: var(--borderRadius-medium);
  background: var(--bgColor-surface);
}
details.primer-disclosure > summary,
details.orch-trace-lab > .orch-trace-lab-disclosure,
details.orch-dag-coordination > .orch-dag-coordination-summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
  color: var(--fgColor-default);
}
details.primer-disclosure > summary::-webkit-details-marker,
details.orch-trace-lab > .orch-trace-lab-disclosure::-webkit-details-marker,
details.orch-dag-coordination > .orch-dag-coordination-summary::-webkit-details-marker {
  display: none;
}

/* Site-wide day/night theme control (Auto → Day → Night). */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-medium-size);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--borderColor-default);
  border-radius: var(--borderRadius-medium);
  background: var(--bgColor-surface);
  color: var(--fgColor-default);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.theme-toggle:hover {
  border-color: var(--borderColor-emphasis);
  background: var(--bgColor-neutral-muted);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--focus-outlineColor);
  outline-offset: 2px;
}
.theme-toggle-floating {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  right: 0.75rem;
}
/* =====================================================================
   doc.css — Shared stylesheet for all NFLTR docs pages
   Primer tokens/base/controls are prepended by web.DocsStaticFile.
   ===================================================================== */

body {
  background: var(--bgColor-default);
  color: var(--text);
  line-height: 1.7;
}

h1 { margin-bottom: 1rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border-subtle); }
h3 { font-size: 1.1rem; margin: 1.75rem 0 .6rem; color: var(--text-secondary); }
h4 { font-size: 1rem; margin: 1.25rem 0 .5rem; color: var(--text); }

p { margin: .75rem 0; }
ul, ol { padding-left: 1.5rem; margin: .75rem 0; }
li { margin: .3rem 0; }
hr { border: none; border-top: 1px solid var(--border-subtle); margin: 2rem 0; }

blockquote {
  border-left: 3px solid var(--blue-bg);
  padding: .5rem 1rem;
  margin: 1rem 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
}

strong { color: var(--text-heading); font-weight: 600; }

/* ── Code ── */
code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .875em;
  font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  overflow-wrap: break-word;
  word-break: break-word;
}
pre {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}
pre code { background: none; padding: 0; font-size: .85em; line-height: 1.6; }

/* ── Tables ── */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: .9rem;
  display: block;
  overflow-x: auto;
}
th {
  background: var(--surface);
  color: var(--text-heading);
  padding: .6rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
td { padding: .55rem 1rem; border-bottom: 1px solid var(--border-subtle); color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: color-mix(in srgb, var(--bgColor-muted) 66%, transparent); }

/* ── Header / nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bgColor-default) 93%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
header nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Logo ── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-heading);
}
.logo:hover { text-decoration: none; color: var(--text-heading); }
.logo img { border-radius: var(--radius-sm); }
.logo-mark { display: block; border-radius: var(--radius-sm); }

.nav-right { display: flex; align-items: center; gap: 1rem; font-size: .875rem; }
.nav-right a { color: var(--text-muted); }
.nav-right a:hover { color: var(--text-heading); text-decoration: none; }
.nav-right a.active { color: var(--text-heading); }

.docs-trust-note {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
  font-size: .76rem;
  color: var(--text-muted);
}

.docs-trust-note a {
  color: var(--blue);
}

.docs-trust-note a:hover {
  text-decoration: underline;
}

/* ── Page layout ── */
.page-layout {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100vh - 58px);
}

/* ── Sidebar ── */
.sidebar {
  display: block;
  width: 240px;
  flex-shrink: 0;
  padding: 2rem 0;
  border-right: 1px solid var(--border-subtle);
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-section { margin-bottom: 1.5rem; padding: 0 1.25rem; }
.sidebar-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin: 0; }
.sidebar a {
  display: block;
  padding: .3rem .5rem;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: .875rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sidebar a:hover { color: var(--text); background: var(--surface-elevated); text-decoration: none; }
.sidebar a.active { color: var(--text-heading); background: var(--surface-elevated); font-weight: 500; }

/* ── Content ── */
.content { flex: 1; padding: 2.5rem 2.5rem 4rem; min-width: 0; }
.page-title { margin-bottom: .25rem; }
.page-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }
.breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 .4rem; }

/* ── Diagram box ── */
.diagram-box {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
}

/* ── Feature grid + card ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.feature-card h3 { margin-top: 0; font-size: 1rem; }
.feature-card h4 { font-size: .95rem; margin-bottom: .4rem; }
.feature-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ── Callout ── */
.callout {
  background: #0d419d16;
  border: 1px solid #388bfd30;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout-title { font-weight: 600; color: var(--blue); margin-bottom: .25rem; }
.callout-warn { background: #d2992216; border: 1px solid #d2992230; }
.callout-warn .callout-title { color: var(--yellow); }

/* ── CTA box ── */
.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-box h3 { margin-bottom: .5rem; }
.cta-box p { color: var(--text-muted); margin-bottom: 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.btn-primary { background: var(--green-bg); color: #fff; border: 1px solid #2ea043; }
.btn-primary:hover { background: #2ea043; text-decoration: none; }
.btn-secondary { background: var(--surface-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); text-decoration: none; }
.btn-ml { margin-left: .5rem; }

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  background: #388bfd22;
  color: var(--blue);
  border: 1px solid #388bfd30;
  margin-left: .5rem;
}
/* Docs index tag variants */
.card .tag {
  margin-top: .75rem;
  font-size: .7rem;
  padding: 2px 8px;
  align-self: flex-start;
  margin-left: 0;
}
.tag-core  { background: #23863616; color: var(--green);  border: 1px solid #23863630; }
.tag-ref   { background: #388bfd16; color: var(--blue);   border: 1px solid #388bfd30; }
.tag-guide { background: #f0883e16; color: var(--orange); border: 1px solid #f0883e30; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  vertical-align: middle;
  margin-left: .4rem;
}
.badge-cli { background: #f0883e16; color: var(--orange); border: 1px solid #f0883e30; }
.badge-new { background: #23863616; color: var(--green);  border: 1px solid #23863630; }
.badge-go  { background: #00acd716; color: var(--cyan);   border: 1px solid #00acd730; }
.badge-req { background: #23863616; color: var(--green);  border: 1px solid #23863630; }
.badge-opt { background: #8b949e16; color: var(--text-muted); border: 1px solid #8b949e30; }

/* ── Terminal mock (browser-ssh, web-terminal, log-streaming) ── */
.terminal-mock {
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-family: "SF Mono", Consolas, monospace;
  font-size: .8rem;
  line-height: 1.8;
  color: var(--green);
  overflow-x: auto;
}
.terminal-mock .title-bar { display: flex; gap: .4rem; margin-bottom: .75rem; }
.terminal-mock .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-mock .dot-red    { background: var(--red); }
.terminal-mock .dot-yellow { background: #e3b341; }
.terminal-mock .dot-green  { background: var(--green); }
.terminal-mock .prompt { color: var(--blue); }
.terminal-mock .output { color: var(--text); }

/* ── SDK field list (sdk.html) ── */
.field {
  margin: .5rem 0;
  padding: .6rem .8rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.field-name {
  font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  color: #79c0ff;
  font-size: .9em;
}
.field-type {
  color: var(--pink);
  font-size: .85em;
  margin-left: .5rem;
  font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}
.field-desc { font-size: .875rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Docs index layout (docs/index.html) ── */
.wrapper { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color .2s, transform .15s;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--border); transform: translateY(-2px); }
.card-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.card h3 { font-size: 1rem; margin-bottom: .35rem; }
.card h3 a { color: var(--text-heading); text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.card p { color: var(--text-muted); font-size: .85rem; line-height: 1.5; flex: 1; }
.back-home {
  display: inline-block;
  margin-top: 3rem;
  padding: .6rem 1.2rem;
  background: var(--surface-elevated);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  transition: background .2s;
}
.back-home:hover { background: var(--border); text-decoration: none; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: .8rem;
}
footer a { color: var(--blue); }

/* ── Responsive ── */
@media (max-width: 768px) {
  header nav {
    padding: .75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-right {
    width: 100%;
    flex-wrap: wrap;
    gap: .65rem 1rem;
  }
  .page-layout {
    flex-direction: column;
  }
  .sidebar {
    display: block;
    width: 100%;
    position: static;
    top: auto;
    height: auto;
    padding: 1rem 0;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    overflow: visible;
  }
  .sidebar-section {
    padding: 0 1rem;
  }
  .sidebar-section + .sidebar-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
  }
  .sidebar ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .35rem .75rem;
  }
  .content { padding: 1.5rem 1.25rem 3rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  table { font-size: .8rem; }
  th, td { padding: .45rem .6rem; }
  .feature-grid { grid-template-columns: 1fr; }
}
