/* ==========================================================================
   RemoteRF Software Documentation Theme (VitePress / Stripe / PyTorch style)
   ========================================================================== */

.docs-body {
  --d-bg: #0b0f17;
  --d-surface: #111827;
  --d-surface-hover: #1e293b;
  --d-code-bg: #0d1117;
  --d-inline-bg: rgba(148, 163, 184, 0.15);
  --d-inline-tx: #e2e8f0;
  --d-tx: #f8fafc;
  --d-body: #cbd5e1;
  --d-muted: #94a3b8;
  --d-accent: #38bdf8;
  --d-accent-soft: rgba(56, 189, 248, 0.1);
  --d-border: #1e293b;
  --d-border-strong: #334155;
  --d-green-tx: #34d399;
  --d-green-bg: rgba(16, 185, 129, 0.14);
  --d-amber-tx: #fbbf24;
  --d-amber-bg: rgba(245, 158, 11, 0.12);
  --d-red-tx: #f87171;
  --d-red-bg: rgba(239, 68, 68, 0.12);
  --d-purple-tx: #c084fc;
  --d-purple-bg: rgba(168, 85, 247, 0.12);

  /* Syntax highlighting tokens (Dark) */
  --syn-kw: #ff7b72;
  --syn-fn: #d2a8ff;
  --syn-str: #a5d6ff;
  --syn-num: #79c0ff;
  --syn-cmt: #8b949e;
  --syn-cls: #ffa657;

  background: var(--d-bg);
  color: var(--d-body);
  font: 400 16px/1.72 var(--body);
}

[data-theme="light"] .docs-body {
  --d-bg: #ffffff;
  --d-surface: #f8fafc;
  --d-surface-hover: #f1f5f9;
  --d-code-bg: #f8fafc;
  --d-inline-bg: #f1f5f9;
  --d-inline-tx: #0f172a;
  --d-tx: #0f172a;
  --d-body: #334155;
  --d-muted: #64748b;
  --d-accent: #0284c7;
  --d-accent-soft: rgba(2, 132, 199, 0.08);
  --d-border: #e2e8f0;
  --d-border-strong: #cbd5e1;
  --d-green-tx: #15803d;
  --d-green-bg: rgba(22, 163, 74, 0.1);
  --d-amber-tx: #b45309;
  --d-amber-bg: rgba(245, 158, 11, 0.1);
  --d-red-tx: #b91c1c;
  --d-red-bg: rgba(239, 68, 68, 0.08);
  --d-purple-tx: #7e22ce;
  --d-purple-bg: rgba(147, 51, 234, 0.08);

  /* Syntax highlighting tokens (Light) */
  --syn-kw: #cf222e;
  --syn-fn: #8250df;
  --syn-str: #0a3069;
  --syn-num: #0550ae;
  --syn-cmt: #6e7781;
  --syn-cls: #953800;
}

/* Reset global section padding from style.css inside docs with zero class specificity */
:where(.docs-body) section {
  padding: 0;
}

.docs-body :is(h1, h2, h3, h4, h5, h6) {
  background: transparent !important;
}

/* 3-Column Documentation Grid */
.docs-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 88px 32px 96px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 216px;
  gap: 48px;
  align-items: start;
}

.docs-container.is-standalone {
  max-width: var(--wrap);
  padding: 88px 24px 96px;
  display: block;
}

.docs-container.is-standalone.has-toc {
  max-width: none;
  padding: 88px max(32px, calc(50% - 658px)) 96px max(24px, calc(50% - 576px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  gap: 48px;
  align-items: start;
}

.docs-container.is-standalone .docs-main {
  max-width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   1. Left Navigation Sidebar
   ========================================================================== */
.docs-sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding-right: 20px;
  border-right: 1px solid var(--d-border);
  scrollbar-width: thin;
}

.docs-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  margin-bottom: 20px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-surface);
}

.docs-mode-pill,
.docs-mode-pill:visited {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  text-align: center;
  font: 600 12px/1.3 var(--disp);
  color: var(--d-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.docs-mode-pill:hover {
  color: var(--d-tx);
  text-decoration: none;
}

.docs-mode-pill.is-active,
.docs-mode-pill.is-active:visited,
.docs-mode-pill.is-active:hover {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25);
}

.docs-sidebar-group {
  margin: 22px 0 6px;
  padding: 0 10px;
  color: var(--d-tx);
  font: 600 11.5px/1.4 var(--disp);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-sidebar-group:first-child {
  margin-top: 2px;
}

.docs-sidebar-item {
  margin: 1px 0;
}

.docs-sidebar-link,
.docs-sidebar-link:visited {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--d-muted);
  font: 400 14px/1.45 var(--body);
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.docs-sidebar-link:hover {
  color: var(--d-tx);
  background: var(--d-surface);
  text-decoration: none;
}

.docs-sidebar-link.is-active {
  border-left-color: var(--d-accent);
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-weight: 600;
}

/* ==========================================================================
   2. Center Article Typography & Components
   ========================================================================== */
.docs-main {
  min-width: 0;
  max-width: 780px;
  width: 100%;
}

.docs-issue-prompt {
  margin: 16px 0 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--d-border);
  display: grid;
  gap: 6px;
  font: 400 12.5px/1.45 var(--body);
  color: var(--d-muted);
}

.docs-issue-prompt a {
  color: var(--d-accent);
  font-weight: 500;
  text-decoration: none;
}

.docs-issue-prompt a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-header {
  margin-bottom: 18px;
}

.docs-kicker {
  color: var(--d-accent);
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.docs-title {
  color: var(--d-tx);
  font: 700 clamp(28px, 3vw, 36px)/1.18 var(--disp);
  letter-spacing: -0.02em;
  margin: 0;
}

.docs-intro {
  color: var(--d-muted);
  font-size: 17.5px;
  line-height: 1.6;
  margin: 12px 0 0;
}

/* Prose Headings */
.docs-post-content h2 {
  color: var(--d-tx);
  font: 600 23px/1.3 var(--disp);
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--d-border);
  scroll-margin-top: 88px;
}

.docs-post-content > h2:first-child {
  margin-top: 0;
}

.docs-post-content h3 {
  color: var(--d-tx);
  font: 600 18.5px/1.35 var(--disp);
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
  scroll-margin-top: 88px;
}

.docs-post-content h4 {
  color: var(--d-tx);
  font: 600 15.5px/1.4 var(--disp);
  margin: 24px 0 8px;
}

.docs-post-content p {
  color: var(--d-body);
  margin: 0 0 16px;
  text-wrap: pretty;
}

.docs-post-content ul,
.docs-post-content ol {
  color: var(--d-body);
  margin: 0 0 18px;
  padding-left: 24px;
}

.docs-post-content li {
  margin-bottom: 6px;
  text-wrap: pretty;
}

.docs-post-content strong,
.docs-post-content b {
  color: var(--d-tx);
  font-weight: 600;
}

.docs-post-content a:not(.docs-card):not(.btn):not(.dep-tag):not(.docs-chip) {
  color: var(--d-accent);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.35);
  text-underline-offset: 3px;
}

.docs-post-content a:not(.docs-card):not(.btn):not(.dep-tag):not(.docs-chip):hover {
  text-decoration-color: var(--d-accent);
}

/* Neutral Inline Code Pills (No Neon!) */
.docs-post-content :not(pre) > code {
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--d-border);
  background: var(--d-inline-bg);
  color: var(--d-inline-tx);
  font: 500 13.5px/1.4 var(--mono);
  word-break: break-word;
}

/* Code Blocks (GitHub / VSCode style) */
.docs-post-content div.highlighter-rouge,
.docs-post-content figure.highlight {
  position: relative;
  margin: 14px 0 24px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-code-bg);
  overflow: hidden;
  text-align: left;
}

.docs-post-content .highlight {
  background: transparent !important;
  margin: 0;
  text-align: left;
}

.docs-post-content pre {
  position: relative;
  margin: 12px 0 20px;
  padding: 14px 18px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-code-bg) !important;
  color: var(--d-tx);
  font: 400 13.5px/1.65 var(--mono);
  text-align: left;
  overflow-x: auto;
}

.docs-post-content .highlight pre,
.docs-post-content pre.highlight {
  margin: 0;
  padding: 16px 20px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--d-tx);
  font: 400 13.5px/1.65 var(--mono);
  text-align: left;
  overflow-x: auto;
}

.docs-post-content pre code {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: inherit;
  font: inherit;
}

/* Syntax Highlighting Colors */
.docs-post-content .highlight .c,
.docs-post-content .highlight .c1,
.docs-post-content .highlight .cm,
.docs-post-content .highlight .cs { color: var(--syn-cmt); font-style: italic; }

.docs-post-content .highlight .k,
.docs-post-content .highlight .kd,
.docs-post-content .highlight .kn,
.docs-post-content .highlight .kp,
.docs-post-content .highlight .kr,
.docs-post-content .highlight .ow { color: var(--syn-kw); font-weight: 500; }

.docs-post-content .highlight .s,
.docs-post-content .highlight .s1,
.docs-post-content .highlight .s2,
.docs-post-content .highlight .sd { color: var(--syn-str); }

.docs-post-content .highlight .nf,
.docs-post-content .highlight .nb,
.docs-post-content .highlight .bp { color: var(--syn-fn); }

.docs-post-content .highlight .nc,
.docs-post-content .highlight .nn { color: var(--syn-cls); }

.docs-post-content .highlight .mi,
.docs-post-content .highlight .mf,
.docs-post-content .highlight .mh,
.docs-post-content .highlight .m { color: var(--syn-num); }

.docs-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 9px;
  border: 1px solid var(--d-border-strong);
  border-radius: 6px;
  background: var(--d-surface);
  color: var(--d-muted);
  font: 500 11px/1.2 var(--mono);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.docs-copy-btn:hover {
  color: var(--d-tx);
  border-color: var(--d-accent);
}

.docs-copy-btn.is-copied {
  color: var(--ok);
  border-color: var(--ok);
}

/* Callouts & Blockquotes */
.docs-post-content blockquote,
.docs-note,
.docs-token-callout {
  margin: 18px 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-surface);
  color: var(--d-body);
  font-size: 14.5px;
}

.docs-post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Reference & API Tables */
.docs-table-wrap {
  margin: 18px 0 28px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-bg);
  overflow-x: auto;
}

.docs-post-content table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.docs-post-content table thead th {
  padding: 11px 14px;
  background: var(--d-surface);
  color: var(--d-tx);
  font: 600 12px/1.3 var(--disp);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--d-border);
}

.docs-post-content table td {
  padding: 11px 14px;
  border-top: 1px solid var(--d-border);
  color: var(--d-body);
  vertical-align: top;
}

.docs-post-content table tr.docs-table-category-row td {
  background: var(--d-surface);
  color: var(--d-tx);
  font: 600 12.5px/1.3 var(--disp);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.docs-post-content table tr.docs-category-advanced {
  cursor: pointer;
}

body.has-docs-advanced-toggle tr.docs-row-advanced {
  display: none;
}

body.has-docs-advanced-toggle tr.docs-row-advanced.is-visible {
  display: table-row;
}

.docs-advanced-toggle-btn {
  margin-left: 10px;
  padding: 3px 8px;
  border: 1px solid var(--d-border-strong);
  border-radius: 5px;
  background: var(--d-bg);
  color: var(--d-accent);
  font: 500 11px var(--mono);
  cursor: pointer;
}

/* Figures & Diagrams inside Docs */
.docs-post-content figure:not(.highlight) {
  margin: 22px 0 28px;
  text-align: center;
}

.docs-post-content figure:not(.highlight):not(.docs-figure-double) img {
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--d-border);
  background: #ffffff;
  padding: 12px;
}

.docs-post-content figcaption {
  margin-top: 8px;
  color: var(--d-muted);
  font-size: 13.5px;
}

/* SDR Showcase Grid */
.docs-sdr-showcase {
  margin: 22px 0 30px;
  padding: 20px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
}

.docs-sdr-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 12px;
}

.docs-sdr-showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 8px 12px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-bg);
  text-align: center;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

.docs-sdr-showcase-item img {
  display: block;
  height: 76px;
  width: 100%;
  max-width: 108px;
  object-fit: contain;
  margin: auto;
  flex-shrink: 0;
}

.docs-sdr-showcase-item span {
  display: block;
  color: var(--d-tx);
  font: 600 12px/1.25 var(--disp);
  text-align: center;
  max-width: 100%;
}

.docs-sdr-showcase-caption {
  text-align: center !important;
  color: var(--d-muted);
  font-size: 13.5px;
  font-style: italic;
  margin: 14px 0 0 !important;
  display: block;
  width: 100%;
}

/* Next-Step Cards (.docs-card-grid) */
.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.docs-card,
.docs-card:visited {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface);
  color: var(--d-tx);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.docs-card:hover {
  border-color: var(--d-accent);
  background: var(--d-surface-hover);
  text-decoration: none;
}

.docs-card-badge-row {
  margin-bottom: 6px;
}

.docs-card-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font: 600 10.5px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-card-title {
  color: var(--d-tx);
  font: 600 16.5px/1.35 var(--disp);
  margin: 2px 0 6px;
}

.docs-card-text {
  color: var(--d-muted) !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Terminal Window Include (.terminal-window) */
.terminal-window,
.cli-sim {
  --term-bg: #0d1117;
  --term-head-bg: #161b22;
  --term-sub-bg: #11161f;
  --term-border: #21262d;
  --term-tx: #e2e8f0;
  --term-tx-strong: #f8fafc;
  --term-muted: #8b949e;
  --term-title: #94a3b8;
  --term-blue: #58a6ff;
  --term-cyan: #38bdf8;
  --term-green: #3fb950;
  --term-red: #ff7b72;
  --term-magenta: #d2a8ff;
  --term-yellow: #fde047;
  --term-token: #ffa657;
  --term-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .terminal-window,
[data-theme="light"] .cli-sim {
  --term-bg: #f8fafc;
  --term-head-bg: #eef2f7;
  --term-sub-bg: #f1f5f9;
  --term-border: #dbe3ee;
  --term-tx: #1e293b;
  --term-tx-strong: #0f172a;
  --term-muted: #64748b;
  --term-title: #475569;
  --term-blue: #0284c7;
  --term-cyan: #0369a1;
  --term-green: #15803d;
  --term-red: #b91c1c;
  --term-magenta: #9333ea;
  --term-yellow: #b45309;
  --term-token: #b45309;
  --term-shadow: 0 10px 26px -12px rgba(15, 23, 42, 0.1);
}

.terminal-window {
  margin: 16px 0 24px;
  border: 1px solid var(--d-border-strong);
  border-radius: 10px;
  background: var(--term-bg);
  color: var(--term-tx);
  overflow: hidden;
  box-shadow: var(--term-shadow);
  font: 13.5px/1.6 var(--mono);
  text-align: left;
}

.terminal-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--term-head-bg);
  border-bottom: 1px solid var(--term-border);
  color: var(--term-muted);
  font-size: 12px;
}

.terminal-header .header-title {
  flex: 1;
  text-align: center;
  padding-right: 42px;
  color: var(--term-title);
  font: 500 12px var(--mono);
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-content {
  padding: 14px 18px;
  overflow-x: auto;
  text-align: left;
}

.terminal-content p {
  margin: 0;
  color: inherit;
  font: inherit;
}

.terminal-content .line {
  display: block;
  white-space: pre-wrap;
  text-align: left;
}

.terminal-window b,
.terminal-window strong,
.cli-sim b,
.cli-sim strong {
  color: var(--term-tx-strong);
  font-weight: 600;
}

.terminal-window code,
.cli-sim code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.cmd-glyph {
  display: inline-block;
  width: 1ch;
  text-align: center;
}

.cmd-blue { color: var(--term-blue); }
.cmd-cyan { color: var(--term-cyan); }
.cmd-green { color: var(--term-green); }
.cmd-red { color: var(--term-red); }
.cmd-magenta { color: var(--term-magenta); }
.cmd-yellow { color: var(--term-yellow); }
.cmd-gray { color: var(--term-muted); }
.cmd-token { color: var(--term-token); font-weight: 600; }

/* ==========================================================================
   3. Right "On this page" Table of Contents Rail
   ========================================================================== */
.docs-toc-rail {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
}

.docs-toc-inner {
  border-left: 1px solid var(--d-border);
  padding-left: 16px;
}

.docs-toc-heading {
  color: var(--d-tx);
  font: 600 11.5px/1.4 var(--disp);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.docs-page-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.docs-page-toc li {
  margin: 0;
}

.docs-page-toc a,
.docs-page-toc a:visited {
  display: block;
  color: var(--d-muted);
  font: 400 13px/1.4 var(--body);
  text-decoration: none;
  transition: color 0.15s;
}

.docs-page-toc a:hover {
  color: var(--d-tx);
  text-decoration: none;
}

.docs-page-toc a.is-current {
  color: var(--d-accent);
  font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1160px) {
  .docs-container {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .docs-container.is-standalone.has-toc {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-toc-rail {
    display: none;
  }
}

@media (max-width: 820px) {
  .docs-container,
  .docs-container.is-standalone,
  .docs-container.is-standalone.has-toc {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 76px 20px 64px;
  }
  .docs-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--d-border);
    padding-right: 0;
    padding-bottom: 20px;
  }
  .docs-sdr-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .docs-card-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   4. Rich Documentation Components (Server & Client Guides)
   ========================================================================== */
.docs-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--d-border);
  border-radius: 9px;
  background: var(--d-surface);
  color: var(--d-tx); }

.docs-note a {
  color: var(--d-accent);
  font-weight: 700; }

.docs-footnote {
  margin: 14px 0 0;
  padding: 0;
  color: var(--d-muted);
  font-size: 14px;
  line-height: 1.45; }

.docs-footnote code {
  display: inline-block;
  margin: 0 2px;
  padding: 0.1em 0.44em 0.16em;
  border-radius: 6px;
  background: var(--d-inline-bg) !important;
  color: var(--d-body) !important;
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  word-break: normal !important;
  overflow-wrap: normal !important;
  vertical-align: 0.02em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone; }

.docs-footnote strong {
  color: var(--d-tx);
  font-weight: 700; }

.docs-footnote a {
  color: var(--d-tx);
  font-weight: 700; }

.docs-footnote-large {
  margin-top: 18px;
  padding-left: 14px;
  font-size: 16px;
  line-height: 1.55; }

.docs-footnote-large p {
  margin: 0; }

.docs-footnote-large p + p {
  margin-top: 10px; }

.docs-footnote-large code {
  font-size: 0.88em; }

.docs-footnote + .docs-step-panel,
.docs-footnote + .docs-procedure-step {
  margin-top: 18px; }

.docs-overview-quickstart {
  margin-bottom: 28px; }

.docs-overview-quickstart-title,
.docs-overview-quickstart p {
  margin: 0 0 12px; }

.docs-overview-quickstart-title {
  font-size: 1.05em; }

.docs-overview-quickstart-list {
  margin: 0 0 16px 1.5em;
  padding-left: 1.1em; }

.docs-overview-quickstart-list li + li {
  margin-top: 6px; }

.docs-overview-quickstart p:last-child {
  margin-bottom: 0; }

.docs-client-handoff {
  margin: 24px 0 34px;
  padding: 18px 20px 20px;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
  box-shadow: 0 14px 26px -28px rgba(0, 60, 110, 0.28); }

.docs-client-handoff-copy {
  margin-bottom: 16px; }

.docs-client-handoff-copy h3 {
  margin: 0 0 6px;
  color: var(--d-tx);
  font-size: 24px;
  line-height: 1.2; }

.docs-client-handoff-copy p {
  margin: 0;
  color: var(--d-muted); }

.docs-client-handoff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px; }

.docs-client-handoff-item {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-surface); }

.docs-client-handoff-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--d-accent);
  font-size: 14px; }

.docs-client-handoff-item span {
  display: block;
  color: var(--d-body);
  font-size: 14px;
  line-height: 1.38; }

.docs-client-handoff-item a {
  color: var(--d-accent);
  font-weight: 700; }

.docs-client-handoff-item code {
  padding: 0.04em 0.34em 0.08em;
  border-radius: 5px;
  background: var(--d-accent-soft);
  color: var(--d-accent); }

.docs-client-command-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  padding: 12px 13px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-surface); }

.docs-client-command-copy {
  min-width: 0; }

.docs-client-command-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--d-accent);
  font-size: 14px;
  line-height: 1.3; }

.docs-client-command-copy span {
  display: block;
  color: var(--d-muted);
  font-size: 13px;
  line-height: 1.35; }

.docs-client-command-card .docs-client-command-line {
  display: block;
  min-width: 0;
  padding: 7px 10px 8px;
  overflow-x: auto;
  border: 1px solid var(--d-border);
  border-radius: 6px;
  background: var(--d-accent-soft) !important;
  color: var(--d-accent) !important;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap; }

.docs-client-command-card p {
  margin: 0;
  padding: 0;
  color: var(--d-muted);
  font-size: 13.5px;
  line-height: 1.4; }

.docs-client-setup-page :not(pre) > code {
  padding: 0.08em 0.38em 0.12em;
  border: 1px solid var(--d-border);
  border-radius: 5px;
  background: var(--d-accent-soft);
  color: var(--d-accent); }

.docs-client-code-card {
  position: relative;
  overflow: hidden;
  margin: 14px 0 24px;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
  box-shadow: 0 18px 30px -30px rgba(0, 85, 135, 0.45); }

.docs-client-code-card::before {
  content: attr(data-code-label);
  display: block;
  min-height: 18px;
  padding: 10px 122px 10px 58px;
  border-bottom: 1px solid rgba(39, 116, 174, 0.1);
  background: var(--d-surface-hover);
  color: var(--d-tx);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3; }

.docs-client-code-card::after {
  content: attr(data-code-kind);
  position: absolute;
  top: 8px;
  right: 14px;
  max-width: 108px;
  overflow: hidden;
  padding: 3px 8px;
  border: 1px solid var(--d-border);
  border-radius: 999px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap; }

.docs-client-code-card .highlight,
.docs-client-code-card .highlighter-rouge {
  margin: 0;
  background: transparent; }

.docs-client-code-card .highlight pre,
.docs-client-code-card pre.highlight,
.docs-client-code-card pre {
  margin: 0;
  padding: 16px 18px 18px;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent; }

.docs-client-code-card .highlight code,
.docs-client-code-card pre code {
  display: block;
  min-width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--d-tx);
  font-size: 14px;
  line-height: 1.62; }

.docs-client-code-card-large .highlight code,
.docs-client-code-card-large pre code {
  font-size: 13px;
  line-height: 1.55; }

.docs-client-code-card .highlight .nv,
.docs-client-code-card .highlight .nb,
.docs-client-code-card .highlight .nn {
  color: var(--d-accent); }

.docs-client-code-card .highlight .kn,
.docs-client-code-card .highlight .k,
.docs-client-code-card .highlight .o {
  color: var(--d-muted);
  font-weight: 700; }

.docs-client-code-card .highlight .s,
.docs-client-code-card .highlight .s1,
.docs-client-code-card .highlight .s2 {
  color: var(--d-purple-tx); }

.docs-client-code-card + p {
  margin-top: -4px; }

.docs-command-index {
  display: grid;
  gap: 0;
  margin: 16px 0 30px;
  border-top: 1px solid var(--d-border);
  border-bottom: 1px solid var(--d-border); }

.docs-command-index-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.18fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--d-border); }

.docs-command-index-row:first-child {
  border-top: 0; }

.docs-command-index-row strong {
  padding-top: 3px;
  color: var(--d-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3; }

.docs-command-index.is-compact {
  width: fit-content;
  max-width: 100%;
  margin: 10px 0 20px;
  border: 0; }

.docs-command-index.is-compact .docs-command-index-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
  padding: 0;
  border: 0; }

.docs-command-index.is-compact .docs-command-index-row strong {
  padding: 1px 10px 1px 0;
  border-right: 1px solid var(--d-border);
  color: var(--d-muted);
  white-space: nowrap; }

.docs-command-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0; }

.docs-command-chip-list code {
  padding: 0.08em 0.42em 0.12em;
  border: 1px solid var(--d-border);
  border-radius: 6px;
  background: var(--d-accent-soft) !important;
  color: var(--d-accent) !important;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.32;
  white-space: nowrap; }

.docs-command-chip-list code.is-destructive {
  border-color: var(--d-border);
  background: var(--d-accent-soft) !important;
  color: var(--d-accent) !important; }

.docs-troubleshooting-stack {
  display: grid;
  gap: 18px;
  margin: 24px 0 30px; }

.docs-trouble-card {
  min-width: 0;
  padding: 18px 20px 20px;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
  box-shadow: 0 16px 30px -30px rgba(0, 60, 110, 0.32); }

.docs-trouble-card.is-warning {
  border-color: rgba(197, 121, 22, 0.2);
  background: var(--d-amber-bg); }

.docs-trouble-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px; }

.docs-trouble-card h2 {
  margin: 0;
  padding-bottom: 0;
  border-bottom: 0;
  background: transparent;
  color: var(--d-tx);
  font-size: 24px;
  line-height: 1.2; }

.docs-trouble-card p {
  margin-bottom: 12px;
  color: var(--d-body);
  font-size: 15.5px;
  line-height: 1.55; }

.docs-trouble-card-badge {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap; }

.docs-trouble-card.is-warning .docs-trouble-card-badge {
  border-color: rgba(197, 121, 22, 0.2);
  background: var(--d-amber-bg);
  color: var(--d-amber-tx); }

.docs-trouble-label {
  margin: 14px 0 8px !important;
  color: var(--d-accent) !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase; }

.docs-trouble-card .highlighter-rouge,
.docs-trouble-card .highlight {
  margin: 0 0 14px;
  background: transparent; }

.docs-trouble-card .highlight pre,
.docs-trouble-card pre.highlight,
.docs-trouble-card pre {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface-hover); }

.docs-trouble-card .highlight code,
.docs-trouble-card pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--d-tx);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55; }

.docs-trouble-card code {
  padding: 0.08em 0.38em 0.12em;
  border-radius: 5px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-family: var(--mono);
  font-size: 0.92em;
  font-weight: 500; }

.docs-trouble-card .highlight code {
  padding: 0;
  background: transparent;
  color: var(--d-tx); }

.docs-trouble-checklist,
.docs-trouble-command-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 0;
  list-style: none; }

.docs-trouble-checklist li,
.docs-trouble-command-list li {
  position: relative;
  min-width: 0;
  padding: 9px 11px 9px 38px;
  border: 1px solid rgba(39, 116, 174, 0.1);
  border-radius: 8px;
  background: var(--d-surface);
  color: var(--d-body);
  font-size: 14.5px;
  line-height: 1.42; }

.docs-trouble-checklist li::before,
.docs-trouble-command-list li::before {
  position: absolute;
  top: 10px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800; }

.docs-trouble-checklist li::before {
  content: "\2713";
  background: var(--d-green-bg);
  color: var(--d-green-tx);
  font-size: 12px;
  line-height: 1; }

.docs-trouble-command-list li::before {
  content: "\203A";
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 0.9; }

.docs-trouble-card.is-warning .docs-trouble-command-list li {
  border-color: rgba(197, 121, 22, 0.18);
  background: var(--d-amber-bg);
  color: var(--d-amber-tx); }

.docs-trouble-card.is-warning .docs-trouble-command-list li code {
  background: var(--d-amber-bg);
  color: var(--d-amber-tx); }

.docs-trouble-card.is-warning .docs-trouble-command-list li::before {
  background: var(--d-amber-bg);
  color: var(--d-amber-tx); }

.docs-trouble-note {
  margin: 10px 0 2px;
  padding: 0;
  color: var(--d-muted);
  font-size: 12.5px;
  line-height: 1.46; }

.docs-trouble-note.is-warning {
  color: var(--d-amber-tx); }

.docs-trouble-note::before {
  content: "Note: ";
  color: var(--d-accent);
  font-weight: 800; }

.docs-trouble-note.is-warning::before {
  content: "Caution: ";
  color: var(--d-amber-tx); }

.docs-reset-safety-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px; }

.docs-reset-safety-item {
  display: grid;
  grid-template-columns: minmax(142px, 0.28fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-surface);
  box-shadow: 0 12px 22px -28px rgba(0, 60, 110, 0.28); }

.docs-reset-safety-command code {
  display: inline-block;
  padding: 0.08em 0.42em 0.12em;
  border: 1px solid var(--d-border);
  border-radius: 6px;
  background: var(--d-accent-soft) !important;
  color: var(--d-accent) !important;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.32;
  white-space: nowrap; }

.docs-reset-safety-copy strong {
  display: block;
  margin-bottom: 4px;
  color: var(--d-body);
  font-size: 15px;
  line-height: 1.35; }

.docs-reset-safety-copy p {
  margin: 0;
  color: var(--d-muted);
  font-size: 14px;
  line-height: 1.45; }

.docs-reset-safety-copy p span {
  display: inline-block;
  margin-right: 8px;
  color: var(--d-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase; }

.docs-client-verification {
  margin: 18px 0 26px;
  padding: 18px 20px 20px;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
  box-shadow: 0 14px 26px -28px rgba(0, 60, 110, 0.28); }

.docs-client-verification-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px; }

.docs-client-verification-header h3 {
  margin: 0 0 5px;
  color: var(--d-tx);
  font-size: 24px;
  line-height: 1.2; }

.docs-client-verification-header p {
  margin: 0;
  color: var(--d-muted); }

.docs-client-verification-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-size: 12px;
  font-weight: 700; }

.docs-client-verification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; }

.docs-client-verification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-surface); }

.docs-client-verification-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-size: 13px;
  font-weight: 800; }

.docs-client-verification-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--d-accent);
  font-size: 14px; }

.docs-client-verification-item p {
  margin: 0;
  color: var(--d-body);
  font-size: 14px;
  line-height: 1.4; }

.docs-client-result-panel {
  margin: -2px 0 32px;
  padding: 18px 20px 20px;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
  box-shadow: 0 14px 26px -28px rgba(0, 60, 110, 0.28); }

.docs-client-result-copy {
  margin-bottom: 14px; }

.docs-client-result-copy h3 {
  margin: 0 0 5px;
  color: var(--d-tx);
  font-size: 22px;
  line-height: 1.2; }

.docs-client-result-copy p {
  margin: 0;
  color: var(--d-muted);
  font-size: 14px;
  line-height: 1.45; }

.docs-client-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px; }

.docs-client-result-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-surface); }

.docs-client-result-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-size: 13px;
  font-weight: 800; }

.docs-client-result-item strong,
.docs-client-result-item span,
.docs-client-result-note strong,
.docs-client-result-note span {
  display: block; }

.docs-client-result-item strong,
.docs-client-result-note strong {
  margin-bottom: 4px;
  color: var(--d-accent);
  font-size: 14px; }

.docs-client-result-item span,
.docs-client-result-note span {
  color: var(--d-body);
  font-size: 14px;
  line-height: 1.45; }

.docs-client-result-note {
  padding: 12px 13px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-surface); }

@media screen and (max-width: 690px) {
  .docs-client-handoff {
    padding: 14px; }

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

  .docs-client-command-card {
    grid-template-columns: 1fr; }

  .docs-client-command-card .docs-client-command-line {
    font-size: 14px; }

  .docs-client-code-card {
    margin: 12px 0 22px; }

  .docs-client-code-card::before {
    padding-right: 14px; }

  .docs-client-code-card::after {
    display: none; }

  .docs-client-code-card .highlight pre,
  .docs-client-code-card pre.highlight,
  .docs-client-code-card pre {
    padding: 14px; }

  .docs-client-code-card .highlight code,
  .docs-client-code-card pre code,
  .docs-client-code-card-large .highlight code,
  .docs-client-code-card-large pre code {
    font-size: 13.5px; }

  .docs-command-index-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 9px 0; }

  .docs-command-index-row strong {
    padding-top: 0; }

  .docs-command-chip-list {
    gap: 5px; }

  .docs-command-chip-list code {
    font-size: 13.5px;
    white-space: normal; }

  .docs-troubleshooting-stack {
    gap: 14px;
    margin-top: 18px; }

  .docs-trouble-card {
    padding: 14px; }

  .docs-trouble-card-header {
    flex-direction: column;
    gap: 8px; }

  .docs-trouble-card h2 {
    font-size: 21px; }

  .docs-trouble-card-badge {
    white-space: normal; }

  .docs-trouble-checklist li,
  .docs-trouble-command-list li {
    padding-right: 10px;
    font-size: 14px; }

  .docs-trouble-card .highlight pre,
  .docs-trouble-card pre.highlight,
  .docs-trouble-card pre {
    padding: 12px; }

  .docs-trouble-card .highlight code,
  .docs-trouble-card pre code {
    font-size: 13.5px; }

  .docs-reset-safety-item {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px; }

  .docs-client-verification {
    padding: 14px; }

  .docs-client-verification-header {
    flex-direction: column;
    gap: 10px; }

  .docs-client-verification-grid,
  .docs-client-result-grid {
    grid-template-columns: 1fr; }

  .docs-client-result-panel {
    padding: 14px; } }
.docs-admin-readiness {
  margin: 18px 0 34px;
  padding: 18px 20px 20px;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
  box-shadow: 0 14px 26px -28px rgba(0, 60, 110, 0.28); }

.docs-admin-readiness-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px; }

.docs-admin-readiness-header h3 {
  margin: 0;
  color: var(--d-tx);
  font-size: 24px;
  line-height: 1.2; }

.docs-admin-readiness-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-size: 12px;
  font-weight: 700; }

.docs-admin-readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; }

.docs-admin-readiness .docs-command-index {
  margin: 2px 0 16px; }

.docs-static-start {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--d-border); }

.docs-static-start > strong {
  display: block;
  margin-bottom: 4px;
  color: var(--d-accent);
  font-size: 14px; }

.docs-static-start > p {
  margin: 0 0 8px;
  color: var(--d-body);
  font-size: 14px;
  line-height: 1.42; }

.docs-static-start .docs-command-chip-list {
  margin: 0 0 9px; }

.docs-static-start-note {
  margin-bottom: 0 !important;
  padding-left: 0;
  color: var(--d-muted) !important;
  font-size: 13.5px !important; }

.docs-static-start-note code {
  display: inline-block;
  margin: 0 2px;
  padding: 0.08em 0.38em 0.12em;
  border-radius: 5px;
  background: var(--d-inline-bg) !important;
  color: var(--d-body) !important;
  font-family: var(--mono);
  font-size: 0.92em;
  line-height: 1.25;
  white-space: nowrap; }

.docs-admin-readiness-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-surface); }

.docs-admin-readiness-item-wide {
  grid-column: 1 / -1; }

.docs-admin-readiness-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-size: 13px;
  font-weight: 800; }

.docs-admin-readiness-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--d-accent);
  font-size: 14px; }

.docs-admin-readiness-item p {
  margin: 0;
  color: var(--d-body);
  font-size: 14px;
  line-height: 1.38; }

.docs-admin-readiness-item code {
  padding: 0.04em 0.34em 0.08em;
  border-radius: 5px;
  background: var(--d-accent-soft);
  color: var(--d-accent); }

.docs-admin-readiness-warning {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-surface);
  color: var(--d-body); }

.docs-admin-readiness-warning strong {
  color: var(--d-accent);
  font-size: 14px; }

.docs-admin-readiness-warning span {
  color: var(--d-body);
  font-size: 14px;
  line-height: 1.45; }

@media screen and (max-width: 690px) {
  .docs-admin-readiness {
    padding: 14px; }

  .docs-admin-readiness-header {
    flex-direction: column;
    gap: 10px; }

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

  .docs-admin-readiness-warning {
    grid-template-columns: 1fr;
    gap: 4px; } }

.docs-hero {
  margin-bottom: 28px;
  padding: 26px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface); }

.docs-hero p:last-child {
  margin-bottom: 0; }

.docs-eyebrow {
  margin-bottom: 10px;
  color: var(--d-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase; }

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 30px; }

.docs-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface);
  box-shadow: 0 12px 24px -24px rgba(0, 85, 135, 0.35);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }

.docs-card-with-media {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden; }

.docs-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 188px;
  padding: 18px 18px 10px;
  border-bottom: 1px solid var(--d-border);
  background: var(--d-surface); }

.docs-card-media.is-pluto {
  background: var(--d-surface); }

.docs-card-media.is-hackrf {
  background: var(--d-surface); }

.docs-card-media.is-custom {
  background: var(--d-surface); }

.docs-card-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 12px 16px rgba(28, 62, 94, 0.1)); }

.docs-card-media.is-hackrf img {
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 10px 16px rgba(28, 62, 94, 0.12)); }

.docs-card-media.is-custom img {
  width: 84%;
  height: 150px;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 14px 22px rgba(68, 86, 112, 0.1)); }

.docs-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px; }

.docs-card:hover {
  border-color: var(--d-border-strong);
  box-shadow: 0 16px 28px -24px rgba(0, 85, 135, 0.34);
  text-decoration: none;
  transform: translateY(-2px); }

.docs-card-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px; }

.docs-card-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--d-surface-hover);
  color: var(--d-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase; }

.docs-card-badge-row .docs-card-badge {
  margin-bottom: 0; }

.docs-card-badge.is-start-here {
  background: var(--d-green-bg);
  color: var(--d-green-tx); }

.docs-card-title {
  margin: 0 0 8px;
  color: var(--d-tx);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2; }

.docs-card-text {
  margin: 0;
  color: var(--d-tx);
  line-height: 1.55; }

.docs-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 24px; }

.docs-inline-detail-row {
  margin-bottom: 0; }

.docs-guide-box {
  margin: 18px 0 26px;
  padding: 20px 22px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface); }

.docs-guide-box h2 {
  margin: 0 0 10px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--d-tx);
  font-size: 18px;
  line-height: 1.3; }

.docs-guide-box > p {
  margin-bottom: 0;
  font-size: 14.5px; }

.docs-guide-box .docs-chip-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 14px 0 0; }

.docs-chip,
.docs-chip-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--d-border-strong);
  border-radius: 8px;
  background: var(--d-bg);
  color: var(--d-tx);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s; }

.docs-chip code,
.docs-chip-button code {
  margin-left: 0; }

.docs-chip-button {
  cursor: pointer;
  font: inherit; }

.docs-guide-box .docs-chip-button {
  justify-content: space-between;
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  font: 600 14.5px/1.4 var(--disp); }

.docs-guide-box .docs-chip-button::after {
  content: "\2192";
  color: var(--d-accent);
  font-family: var(--mono);
  font-weight: 500; }

.docs-chip:hover,
.docs-chip-button:hover {
  border-color: var(--d-accent);
  background: var(--d-accent-soft);
  color: var(--d-accent);
  text-decoration: none; }

.docs-step-panel {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface); }

.docs-step-panel h3 {
  margin-top: 0; }

.docs-step-flow {
  display: grid;
  gap: 18px;
  margin: 22px 0 28px; }

.docs-step-flow > * {
  min-width: 0; }

.docs-procedure-step {
  margin: 0;
  min-width: 0;
  padding: 18px 20px 20px;
  font-size: 16px;
  line-height: 1.55;
  border: 1px solid var(--d-border);
  border-left: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
  box-shadow: 0 14px 26px -28px rgba(0, 60, 110, 0.28); }

.docs-procedure-step.is-warning {
  border-color: rgba(183, 113, 24, 0.18);
  background: var(--d-amber-bg); }

.docs-procedure-step.is-muted {
  padding: 14px 16px 16px;
  border-color: rgba(203, 8, 138, 0.12);
  background: linear-gradient(180deg, rgba(203, 8, 138, 0.038) 0%, rgba(203, 8, 138, 0.06) 100%);
  box-shadow: 0 10px 20px -28px rgba(203, 8, 138, 0.18); }

.docs-step-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase; }

.docs-step-kicker.is-warning {
  background: rgba(197, 121, 22, 0.12);
  color: var(--d-amber-tx); }

.docs-procedure-step.is-muted .docs-step-kicker {
  margin-bottom: 8px;
  padding: 3px 8px;
  background: rgba(203, 8, 138, 0.06);
  color: var(--d-purple-tx);
  font-size: 10px; }

.docs-procedure-step h3 {
  margin: 0 0 6px;
  background: transparent;
  color: var(--d-tx);
  font-size: 24px;
  line-height: 1.2; }

.docs-procedure-step.is-muted h3 {
  color: var(--d-body);
  font-size: 20px; }

.docs-step-summary {
  margin: 0 0 14px;
  color: var(--d-muted);
  font-size: 16px;
  line-height: 1.5; }

.docs-procedure-step.is-muted .docs-step-summary {
  color: var(--d-muted);
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4; }

.docs-procedure-step.is-muted .docs-step-summary code {
  display: inline-block;
  margin: 0 2px;
  padding: 0.1em 0.44em 0.16em;
  border-radius: 6px;
  background: rgba(203, 8, 138, 0.11) !important;
  color: var(--d-body) !important;
  font-family: var(--mono);
  font-size: 0.92em;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  word-break: normal !important;
  overflow-wrap: normal !important;
  vertical-align: 0.02em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone; }

.docs-schema-risk-note {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(205, 58, 58, 0.24);
  border-radius: 8px;
  background: var(--d-amber-bg);
  color: var(--d-red-tx);
  font-size: 13.5px;
  line-height: 1.48; }

.docs-schema-risk-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--d-red-tx);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em; }

.docs-procedure-step.is-muted .docs-footnote {
  margin-top: 12px;
  border-left-color: rgba(203, 8, 138, 0.22);
  color: var(--d-muted); }

.docs-procedure-step.is-muted .docs-footnote strong {
  color: var(--d-body); }

.docs-procedure-step.is-muted .docs-footnote code {
  display: inline-block;
  margin: 0 2px;
  padding: 0.1em 0.44em 0.16em;
  border-radius: 6px;
  background: rgba(203, 8, 138, 0.11) !important;
  color: var(--d-body) !important;
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  word-break: normal !important;
  overflow-wrap: normal !important;
  vertical-align: 0.02em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone; }

.docs-step-command-label {
  margin: 16px 0 8px;
  color: var(--d-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase; }

.docs-procedure-step.is-muted .docs-step-command-label {
  color: var(--d-purple-tx); }

.docs-command-block {
  margin: 14px 0 24px; }

.docs-command-block .docs-step-command-label {
  margin-top: 0; }

.docs-step-facts {
  margin: 12px 0 18px; }

.docs-step-facts .docs-chip {
  gap: 6px;
  font-size: 14px;
  background: var(--d-surface-hover); }

.docs-procedure-step pre,
.docs-command-block pre {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface-hover); }

.docs-procedure-step.is-muted pre {
  border-color: rgba(203, 8, 138, 0.12);
  background: linear-gradient(180deg, rgba(203, 8, 138, 0.05) 0%, rgba(203, 8, 138, 0.08) 100%); }

.docs-procedure-step pre code,
.docs-command-block pre code {
  background: transparent;
  padding: 0;
  font-size: 14px; }

.docs-step-outcome {
  margin-top: 12px;
  padding: 0;
  color: var(--d-muted);
  font-size: 13px;
  line-height: 1.5; }

.docs-procedure-step.is-muted .docs-step-outcome {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(203, 8, 138, 0.04); }

.docs-step-outcome strong {
  color: var(--d-tx);
  font-weight: 700; }

.docs-step-outcome code {
  padding: 0 4px;
  border-radius: 6px;
  background: var(--d-accent-soft);
  color: var(--d-tx);
  font-size: 12px;
  font-weight: 400; }

.docs-procedure-step.is-muted .docs-step-outcome code {
  display: inline-block;
  margin: 0 2px;
  padding: 0.1em 0.44em 0.16em;
  background: rgba(203, 8, 138, 0.11) !important;
  color: var(--d-body) !important;
  font-family: var(--mono);
  font-size: 0.92em;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  word-break: normal !important;
  overflow-wrap: normal !important;
  vertical-align: 0.02em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone; }

.docs-inline-code-wrap {
  display: inline !important;
  margin: 0 1px !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  vertical-align: baseline !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone; }

.docs-step-outcome.is-warning {
  border-left-color: rgba(197, 121, 22, 0.24);
  color: var(--d-amber-tx); }

.docs-step-outcome.is-warning strong {
  color: var(--d-amber-tx); }

.docs-sequence {
  --docs-seq-gap: clamp(6px, 1vw, 8px);
  --docs-seq-pad-y: clamp(8px, 1.1vw, 10px);
  --docs-seq-pad-x: clamp(10px, 1.4vw, 14px);
  --docs-seq-badge: clamp(22px, 2vw, 28px);
  --docs-seq-left: clamp(10px, 1.2vw, 12px);
  --docs-seq-gutter: calc(var(--docs-seq-left) + var(--docs-seq-badge) + clamp(12px, 1.6vw, 16px));
  --docs-seq-radius: clamp(10px, 1.3vw, 12px);
  list-style: none;
  counter-reset: docs-sequence;
  display: grid;
  gap: var(--docs-seq-gap);
  margin: 14px 0 0;
  max-width: 100%;
  padding: 0; }

.docs-procedure-step.is-muted .docs-sequence {
  --docs-seq-gap: clamp(4px, 0.7vw, 6px);
  --docs-seq-pad-y: clamp(6px, 0.8vw, 7px);
  --docs-seq-pad-x: clamp(8px, 1vw, 10px);
  --docs-seq-badge: clamp(18px, 1.4vw, 22px);
  --docs-seq-left: clamp(7px, 0.9vw, 9px);
  --docs-seq-gutter: calc(var(--docs-seq-left) + var(--docs-seq-badge) + clamp(8px, 1vw, 10px));
  --docs-seq-radius: clamp(8px, 1vw, 10px);
  margin-top: 10px; }

.docs-sequence li {
  counter-increment: docs-sequence;
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: calc(var(--docs-seq-badge) + (var(--docs-seq-pad-y) * 2));
  padding: var(--docs-seq-pad-y) var(--docs-seq-pad-x) var(--docs-seq-pad-y) var(--docs-seq-gutter);
  border: 1px solid var(--d-border);
  border-radius: var(--docs-seq-radius);
  background: var(--d-accent-soft);
  color: var(--d-tx);
  line-height: 1.45;
  box-shadow: none; }

.docs-sequence li::before {
  content: counter(docs-sequence);
  position: absolute;
  top: 50%;
  left: var(--docs-seq-left);
  box-sizing: border-box;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--docs-seq-badge);
  height: var(--docs-seq-badge);
  border-radius: 999px;
  background: var(--d-accent-soft);
  border: 1px solid var(--d-border);
  color: var(--d-accent);
  font-size: clamp(11px, 1.2vw, 13px);
  line-height: 1;
  font-weight: 700;
  box-shadow: none; }

.docs-sequence li > *:first-child {
  margin-top: 0; }

.docs-sequence li > *:last-child {
  margin-bottom: 0; }

.docs-sequence-body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(14px, 1.35vw, 16px); }

.docs-sequence-body code {
  font-size: 1em;
  line-height: inherit;
  padding: 0 0.28em; }

.docs-procedure-step.is-muted .docs-sequence li {
  min-height: calc(var(--docs-seq-badge) + (var(--docs-seq-pad-y) * 2) - 2px);
  background: rgba(203, 8, 138, 0.014);
  border-color: rgba(203, 8, 138, 0.055);
  color: var(--d-muted);
  line-height: 1.32; }

.docs-procedure-step.is-muted .docs-sequence-body {
  font-size: clamp(12px, 1vw, 13.5px);
  color: var(--d-muted); }

.docs-procedure-step.is-muted .docs-sequence-body code {
  padding: 0 0.24em;
  background-color: rgba(203, 8, 138, 0.06);
  color: var(--d-body); }

.docs-procedure-step.is-muted .docs-sequence li::before {
  background: rgba(203, 8, 138, 0.08);
  border-color: rgba(203, 8, 138, 0.1);
  color: var(--d-purple-tx); }

.docs-disclosure {
  margin: 18px 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface); }

.docs-disclosure summary {
  cursor: pointer;
  color: var(--d-accent);
  font-weight: 700; }

.docs-disclosure[open] summary {
  margin-bottom: 12px; }

.docs-disclosure p:last-child {
  margin-bottom: 0; }

.docs-disclosure .docs-disclosure {
  margin: 12px 0 0;
  background: var(--d-surface); }

.docs-disclosure ol:last-child {
  margin-bottom: 0; }

.docs-modal {
  width: min(900px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  box-shadow: 0 24px 60px -28px rgba(0, 40, 80, 0.35);
  overscroll-behavior: contain; }

.docs-modal::backdrop {
  background: rgba(16, 40, 68, 0.38);
  backdrop-filter: blur(2px); }

.docs-modal-frame {
  display: flex;
  flex-direction: column;
  background: var(--d-surface);
  max-height: calc(100vh - 48px); }

.docs-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(39, 116, 174, 0.1); }

.docs-modal-header h3 {
  margin: 0;
  color: var(--d-tx);
  font-size: 24px;
  line-height: 1.2; }

.docs-modal-close {
  padding: 8px 12px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-surface-hover);
  color: var(--d-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer; }

.docs-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain; }

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

.docs-modal-body > :last-child {
  margin-bottom: 0; }

.docs-modal-body pre {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--d-surface-hover);
  overflow-x: auto; }

.docs-modal-body pre code {
  background: transparent;
  padding: 0; }

.docs-modal-actions {
  flex-shrink: 0;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(39, 116, 174, 0.1);
  background: var(--d-surface); }

.docs-modal-actions p {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--d-muted); }

.docs-modal-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; }

.docs-modal-next,
.docs-modal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease; }

.docs-modal-next {
  background: #005587;
  color: white; }

.docs-modal-next:disabled,
.docs-modal-next.is-locked {
  background: var(--d-surface-hover);
  border-color: var(--d-border);
  color: var(--d-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none; }

.docs-modal-next:hover {
  background: #004873;
  box-shadow: 0 12px 24px -20px rgba(0, 85, 135, 0.55);
  transform: translateY(-1px); }

.docs-modal-next:disabled:hover,
.docs-modal-next.is-locked:hover {
  background: var(--d-surface-hover);
  border-color: var(--d-border);
  box-shadow: none;
  transform: none; }

.docs-modal-back {
  background: var(--d-surface-hover);
  color: var(--d-accent); }

.docs-modal-back:hover {
  background: var(--d-surface-hover);
  border-color: var(--d-border-strong);
  box-shadow: 0 12px 24px -20px rgba(0, 85, 135, 0.28);
  transform: translateY(-1px); }

html.docs-modal-open,
body.docs-modal-open {
  overflow: hidden;
  overscroll-behavior: none; }

body.docs-modal-open {
  position: fixed;
  width: 100%; }

.docs-definition-table-wrap {
  margin: 18px 0 24px;
  overflow-x: visible;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
  box-shadow: 0 12px 24px -24px rgba(0, 85, 135, 0.35); }

.docs-definition-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed; }

.docs-definition-table th,
.docs-definition-table td {
  padding: 16px 18px;
  border-right: 1px solid var(--d-border);
  border-bottom: 1px solid var(--d-border);
  vertical-align: top;
  text-align: left; }

.docs-definition-table th:last-child,
.docs-definition-table td:last-child {
  border-right: none; }

.docs-definition-table tr:last-child td {
  border-bottom: none; }

.docs-definition-table thead th {
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-size: 14px;
  font-weight: 700; }

.docs-definition-table thead th:first-child,
.docs-definition-table tbody td:first-child {
  width: 12%;
  color: var(--d-accent);
  font-weight: 700;
  white-space: nowrap; }

.docs-definition-table thead th:nth-child(2),
.docs-definition-table thead th:nth-child(3),
.docs-definition-table tbody td:nth-child(2),
.docs-definition-table tbody td:nth-child(3) {
  width: 44%;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere; }

.docs-table-wrap {
  margin: 18px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
  box-shadow: 0 12px 24px -24px rgba(0, 85, 135, 0.35); }
  .docs-table-wrap::-webkit-scrollbar {
    height: 7px; }
  .docs-table-wrap::-webkit-scrollbar-track {
    background: var(--d-surface-hover);
    border-radius: 4px; }
  .docs-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(39, 116, 174, 0.28);
    border-radius: 4px; }
    .docs-table-wrap::-webkit-scrollbar-thumb:hover {
      background: rgba(39, 116, 174, 0.5); }
  .docs-table-wrap table {
    width: 100%;
    min-width: 780px;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-collapse: collapse;
    font-size: 14px; }
  .docs-table-wrap table th,
  .docs-table-wrap table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--d-border);
    border-right: 1px solid var(--d-border);
    vertical-align: top;
    text-align: left;
    line-height: 1.5; }
  .docs-table-wrap table th:last-child,
  .docs-table-wrap table td:last-child {
    border-right: none; }
  .docs-table-wrap table thead th {
    background: var(--d-accent-soft);
    color: var(--d-accent);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap; }
  .docs-table-wrap table tr.docs-table-category-row th,
  .docs-table-wrap table tr.docs-table-category-row td {
    background: var(--d-surface-hover);
    color: var(--d-accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    border-top: 2px solid var(--d-border);
    border-bottom: 1px solid var(--d-border);
    border-right: none;
    white-space: normal; }
  .docs-table-wrap table tbody tr.docs-table-category-row:first-child th,
  .docs-table-wrap table tbody tr.docs-table-category-row:first-child td {
    border-top: none; }
  .docs-table-wrap table code {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    font-family: var(--mono);
    font-size: 13.5px;
    color: var(--d-accent); }
  .docs-table-wrap table tbody td:first-child {
    font-weight: 600;
    color: var(--d-accent); }
  .docs-table-wrap table tbody td:first-child code {
    color: var(--d-accent);
    font-weight: 600; }
  .docs-table-wrap table tbody tr.docs-row-advanced td {
    background: var(--d-surface); }
  .docs-table-wrap table tbody tr.docs-table-category-row.docs-category-advanced {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease; }
    .docs-table-wrap table tbody tr.docs-table-category-row.docs-category-advanced th {
      padding: 6px 12px; }
    .docs-table-wrap table tbody tr.docs-table-category-row.docs-category-advanced:hover th {
      background: var(--d-surface-hover); }
  .docs-table-wrap .docs-table-category-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 8px; }
  .docs-table-wrap .docs-advanced-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--d-surface);
    border: 1px solid var(--d-border-strong);
    border-radius: 4px;
    color: var(--d-accent);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    cursor: pointer;
    line-height: 1.35;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease; }
    .docs-table-wrap .docs-advanced-toggle-btn:hover {
      background: var(--d-surface-hover);
      border-color: #2774ae;
      color: var(--d-accent);
      box-shadow: 0 1px 3px rgba(39, 116, 174, 0.15); }
    .docs-table-wrap .docs-advanced-toggle-btn:focus-visible {
      outline: 2px solid #2774ae;
      outline-offset: 1px; }
    .docs-table-wrap .docs-advanced-toggle-btn .docs-toggle-arrow {
      font-size: 8.5px;
      display: inline-block;
      transition: transform 0.2s ease;
      line-height: 1; }
    .docs-table-wrap .docs-advanced-toggle-btn[aria-expanded="true"] .docs-toggle-arrow {
      transform: rotate(90deg); }
  .docs-table-wrap table tbody tr:last-child td {
    border-bottom: none; }
  .docs-table-wrap table tbody tr:not(.docs-table-category-row):hover td {
    background: var(--d-accent-soft); }
  .docs-table-wrap table.docs-methods-table {
    table-layout: auto;
    min-width: 860px; }
    .docs-table-wrap table.docs-methods-table th:first-child,
    .docs-table-wrap table.docs-methods-table td:first-child {
      min-width: 250px;
      max-width: 320px;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: anywhere; }
      .docs-table-wrap table.docs-methods-table th:first-child code,
      .docs-table-wrap table.docs-methods-table td:first-child code {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere; }
    .docs-table-wrap table.docs-methods-table th:nth-child(2),
    .docs-table-wrap table.docs-methods-table td:nth-child(2) {
      min-width: 150px;
      max-width: 210px;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: anywhere; }
      .docs-table-wrap table.docs-methods-table th:nth-child(2) code,
      .docs-table-wrap table.docs-methods-table td:nth-child(2) code {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere; }
    .docs-table-wrap table.docs-methods-table th:nth-child(3),
    .docs-table-wrap table.docs-methods-table td:nth-child(3) {
      min-width: 140px;
      max-width: 180px;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: anywhere; }
      .docs-table-wrap table.docs-methods-table th:nth-child(3) code,
      .docs-table-wrap table.docs-methods-table td:nth-child(3) code {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere; }
    .docs-table-wrap table.docs-methods-table th:nth-child(4),
    .docs-table-wrap table.docs-methods-table td:nth-child(4) {
      min-width: 260px;
      white-space: normal; }
    .docs-table-wrap table.docs-methods-table th:last-child,
    .docs-table-wrap table.docs-methods-table td:last-child {
      min-width: 260px;
      white-space: normal; }
  .docs-table-wrap table.docs-properties-table {
    table-layout: auto;
    min-width: 820px; }
    .docs-table-wrap table.docs-properties-table th:first-child,
    .docs-table-wrap table.docs-properties-table td:first-child {
      min-width: 180px;
      max-width: 240px;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: anywhere; }
      .docs-table-wrap table.docs-properties-table th:first-child code,
      .docs-table-wrap table.docs-properties-table td:first-child code {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere; }
    .docs-table-wrap table.docs-properties-table th:nth-child(2),
    .docs-table-wrap table.docs-properties-table td:nth-child(2) {
      min-width: 70px;
      white-space: nowrap; }
    .docs-table-wrap table.docs-properties-table th:nth-child(3),
    .docs-table-wrap table.docs-properties-table td:nth-child(3) {
      min-width: 80px;
      white-space: nowrap; }
    .docs-table-wrap table.docs-properties-table th:nth-child(4),
    .docs-table-wrap table.docs-properties-table td:nth-child(4) {
      min-width: 140px;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: anywhere; }
    .docs-table-wrap table.docs-properties-table th:nth-child(5),
    .docs-table-wrap table.docs-properties-table td:nth-child(5) {
      min-width: 240px;
      white-space: normal; }
    .docs-table-wrap table.docs-properties-table th:last-child,
    .docs-table-wrap table.docs-properties-table td:last-child {
      min-width: 240px;
      white-space: normal; }
  .docs-table-wrap table.docs-supported-table {
    table-layout: auto;
    min-width: 820px; }
    .docs-table-wrap table.docs-supported-table th, .docs-table-wrap table.docs-supported-table td {
      white-space: nowrap;
      vertical-align: middle;
      padding: 12px 16px; }
    .docs-table-wrap table.docs-supported-table th:first-child,
    .docs-table-wrap table.docs-supported-table td:first-child {
      font-weight: 700;
      color: var(--d-accent);
      white-space: nowrap; }
    .docs-table-wrap table.docs-supported-table td code {
      white-space: nowrap; }

body.has-docs-advanced-toggle .docs-table-wrap table tbody tr.docs-row-advanced {
  display: none; }
  body.has-docs-advanced-toggle .docs-table-wrap table tbody tr.docs-row-advanced.is-visible {
    display: table-row; }

@media print {
  body.has-docs-advanced-toggle .docs-table-wrap table tbody tr.docs-row-advanced {
    display: table-row !important; }

  .docs-advanced-toggle-btn {
    display: none !important; } }
.docs-tree-shell {
  margin: 22px 0 24px;
  padding: 18px 18px 16px;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
  box-shadow: 0 16px 28px -28px rgba(0, 85, 135, 0.35); }

.docs-tree-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px; }

.docs-tree-title {
  margin: 0 0 6px;
  background: transparent;
  color: var(--d-tx);
  font-size: 22px;
  line-height: 1.2; }

.docs-tree-subtitle {
  max-width: 700px;
  margin: 0;
  color: var(--d-muted);
  font-size: 15px;
  line-height: 1.5; }

.docs-two-parts-intro code,
.docs-tree-subtitle code {
  padding: 0 4px;
  border-radius: 5px;
  background: var(--d-accent-soft);
  color: var(--d-tx);
  font-size: 0.92em;
  font-weight: 500; }

.docs-config-hint {
  margin: 0 0 10px;
  color: var(--d-muted);
  font-size: 13px;
  line-height: 1.45; }

.docs-config-legend {
  margin: 0;
  justify-content: flex-end; }

.docs-file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap; }

.docs-file-badge.is-manual {
  border-color: rgba(31, 122, 77, 0.18);
  background: var(--d-green-bg);
  color: var(--d-green-tx); }

.docs-file-badge.is-manualish {
  border-color: rgba(197, 121, 22, 0.18);
  background: var(--d-amber-bg);
  color: var(--d-amber-tx); }

.docs-file-badge.is-auto {
  border-color: rgba(170, 34, 34, 0.22);
  background: var(--d-red-bg);
  color: var(--d-red-tx); }

.docs-file-badge.is-directory {
  border-color: var(--d-border);
  background: var(--d-accent-soft);
  color: var(--d-accent); }

.docs-file-badge.is-dashboard {
  border-color: rgba(31, 122, 77, 0.16);
  background: var(--d-green-bg);
  color: var(--d-green-tx); }

.docs-gist-panel {
  margin: 22px 0 24px;
  padding: 18px;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
  box-shadow: 0 18px 34px -30px rgba(0, 85, 135, 0.34); }

.docs-gist-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px; }

.docs-gist-header h3 {
  margin: 0 0 6px;
  background: transparent;
  color: var(--d-tx);
  font-size: 24px;
  line-height: 1.2; }

.docs-gist-header p {
  max-width: 680px;
  margin: 0;
  color: var(--d-muted);
  font-size: 15px;
  line-height: 1.5; }

.docs-gist-badge-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 190px; }

.docs-gist-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; }

.docs-gist-flow-step {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface);
  box-shadow: 0 12px 22px -26px rgba(0, 60, 110, 0.26); }

.docs-gist-flow-step span,
.docs-gist-requirement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1; }

.docs-gist-flow-step strong,
.docs-gist-requirement strong {
  display: block;
  margin-bottom: 6px;
  color: var(--d-tx);
  font-size: 15px;
  line-height: 1.25; }

.docs-gist-flow-step p,
.docs-gist-requirement p {
  margin: 0;
  color: var(--d-muted);
  font-size: 13px;
  line-height: 1.45; }

.docs-gist-flow-step code,
.docs-gist-requirement p code {
  display: inline-block;
  max-width: 100%;
  padding: 0.1em 0.44em 0.16em;
  border-radius: 6px;
  background: var(--d-accent-soft);
  color: var(--d-body);
  font-size: 0.92em;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere; }

.docs-gist-requirements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px; }

.docs-gist-requirement {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
  box-shadow: 0 14px 24px -28px rgba(0, 85, 135, 0.32); }

.docs-gist-requirement:nth-child(2) .docs-gist-requirement-icon {
  background: rgba(255, 209, 0, 0.2);
  color: var(--d-amber-tx); }

.docs-gist-requirement:nth-child(3) .docs-gist-requirement-icon {
  background: var(--d-green-bg);
  color: var(--d-green-tx); }

.docs-gist-requirement > code {
  display: block;
  margin-top: 12px;
  padding: 8px 10px;
  background: var(--d-accent-soft);
  font-family: var(--mono);
  font-size: 12.5px; }

.docs-gist-url-card pre code {
  overflow-wrap: anywhere;
  white-space: pre-wrap; }

.docs-config-tree,
.docs-config-tree ul {
  list-style: none;
  margin: 0;
  padding-left: 24px; }

.docs-config-tree {
  padding-left: 0; }

.docs-config-tree li {
  position: relative;
  margin: 6px 0; }

.docs-config-tree li::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -15px;
  border-left: 1px solid var(--d-border); }

.docs-config-tree li::after {
  content: "";
  position: absolute;
  top: 16px;
  left: -15px;
  width: 11px;
  border-top: 1px solid var(--d-border); }

.docs-config-tree > li.is-root::before,
.docs-config-tree > li.is-root::after {
  content: none; }

.docs-config-tree li:last-child::before {
  bottom: 16px; }

.docs-config-tree li.is-ellipsis {
  margin-top: -2px; }

.docs-config-ellipsis {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  padding: 4px 2px; }

.docs-config-ellipsis span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(39, 116, 174, 0.28); }

.docs-config-file {
  margin: 12px 0 18px;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--d-surface);
  box-shadow: 0 18px 30px -30px rgba(0, 85, 135, 0.45); }

.docs-config-file-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(39, 116, 174, 0.1);
  background: var(--d-surface); }

.docs-config-file-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px; }

.docs-config-file-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px; }

.docs-config-file-dots span:nth-child(1) {
  background: rgba(240, 99, 93, 0.85); }

.docs-config-file-dots span:nth-child(2) {
  background: rgba(241, 183, 57, 0.85); }

.docs-config-file-dots span:nth-child(3) {
  background: rgba(71, 179, 106, 0.85); }

.docs-config-file-name {
  color: var(--d-tx);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em; }

.docs-config-file-type {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--d-border);
  border-radius: 999px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase; }

.docs-config-file .highlighter-rouge,
.docs-config-file .highlight {
  margin: 0;
  background: transparent; }

.docs-config-file .highlight pre,
.docs-config-file pre.highlight,
.docs-config-file pre {
  margin: 0;
  padding: 16px 18px 18px;
  border: 0;
  border-radius: 0;
  background: transparent; }

.docs-config-file .highlight code,
.docs-config-file pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--d-tx);
  font-size: 14px;
  line-height: 1.62; }

.docs-config-file .highlight .na {
  color: var(--d-accent);
  font-weight: 600; }

.docs-config-file .highlight .s,
.docs-config-file .highlight .s1 {
  color: var(--d-tx); }

.docs-config-file .highlight .s2 {
  color: var(--d-amber-tx); }

.docs-config-file .highlight .m,
.docs-config-file .highlight .mi,
.docs-config-file .highlight .mf {
  color: var(--d-purple-tx);
  font-weight: 600; }

.docs-config-file .highlight .p,
.docs-config-file .highlight .o,
.docs-config-file .highlight .pi {
  color: var(--d-accent);
  font-weight: 600; }

.docs-config-file .highlight .w {
  color: transparent; }

.docs-field-guide {
  margin: 18px 0 10px; }

.docs-field-guide-title {
  margin: 0 0 8px;
  color: var(--d-tx);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35; }

.docs-field-guide-list {
  margin: 0; }

.docs-field-guide-row {
  display: grid;
  grid-template-columns: minmax(132px, 160px) minmax(0, 1fr);
  gap: 10px 18px;
  padding: 10px 0;
  border-top: 1px solid rgba(39, 116, 174, 0.1); }

.docs-field-guide-row:last-child {
  border-bottom: 1px solid rgba(39, 116, 174, 0.1); }

.docs-field-guide-row dt,
.docs-field-guide-row dd {
  margin: 0; }

.docs-field-guide-row dt {
  padding-top: 1px; }

.docs-field-guide-row dd {
  min-width: 0;
  color: var(--d-muted);
  font-size: 14px;
  line-height: 1.5; }

.docs-field-guide-row code {
  padding: 0 4px;
  border-radius: 5px;
  background: var(--d-accent-soft);
  color: var(--d-tx);
  font-size: 0.92em;
  font-weight: 500; }

.docs-file-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0 20px; }

.docs-file-role-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
  box-shadow: 0 18px 30px -30px rgba(0, 85, 135, 0.4); }

.docs-file-role-card.is-secondary {
  background: var(--d-surface); }

.docs-file-role-card .docs-config-file-header {
  padding: 10px 14px; }

.docs-file-role-body {
  padding: 14px 16px 16px; }

.docs-file-role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px; }

.docs-file-role-body p {
  margin: 0;
  color: var(--d-muted);
  font-size: 14px;
  line-height: 1.5; }

.docs-file-role-body p + p {
  margin-top: 8px; }

.docs-file-role-path code {
  padding: 0;
  background: transparent;
  color: var(--d-tx);
  font-size: 12.5px;
  font-weight: 600;
  overflow-wrap: anywhere; }

.docs-file-badge.is-required {
  border-color: rgba(31, 122, 77, 0.18);
  background: var(--d-green-bg);
  color: var(--d-green-tx); }

.docs-file-badge.is-optional {
  border-color: rgba(197, 121, 22, 0.18);
  background: var(--d-amber-bg);
  color: var(--d-amber-tx); }

.docs-file-badge.is-builtin {
  border-color: var(--d-border);
  background: var(--d-accent-soft);
  color: var(--d-accent); }

.docs-file-badge.is-plugin {
  border-color: rgba(103, 78, 167, 0.18);
  background: var(--d-purple-bg);
  color: var(--d-purple-tx); }

.docs-file-badge.is-per-device {
  border-color: rgba(84, 103, 121, 0.14);
  background: var(--d-surface);
  color: var(--d-muted); }

.docs-capability-shell {
  margin: 14px 0 10px; }

.docs-capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; }

.docs-capability-card {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(39, 116, 174, 0.1);
  border-radius: 12px;
  background: var(--d-surface); }

.docs-capability-label {
  margin-bottom: 6px;
  color: var(--d-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase; }

.docs-capability-card p {
  margin: 0;
  color: var(--d-muted);
  font-size: 14px;
  line-height: 1.48; }

.docs-capability-card code {
  padding: 0 4px;
  border-radius: 5px;
  background: var(--d-accent-soft);
  color: var(--d-tx);
  font-size: 0.92em;
  font-weight: 500; }

.docs-operation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 18px 0 22px; }

.docs-operation-card {
  min-width: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
  box-shadow: 0 14px 26px -28px rgba(0, 60, 110, 0.3); }

.docs-operation-label {
  margin-bottom: 8px;
  color: var(--d-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase; }

.docs-operation-card h3 {
  margin: 0 0 8px;
  color: var(--d-tx);
  font-size: 20px;
  line-height: 1.25; }

.docs-operation-card p {
  margin: 0;
  color: var(--d-muted);
  font-size: 14px;
  line-height: 1.5; }

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

.docs-operation-example {
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid rgba(39, 116, 174, 0.1);
  border-radius: 10px;
  background: var(--d-surface-hover); }

.docs-operation-example .highlighter-rouge,
.docs-operation-example .highlight {
  margin: 0;
  background: transparent; }

.docs-operation-example .highlight pre,
.docs-operation-example pre.highlight,
.docs-operation-example pre {
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: auto; }

.docs-operation-example .highlight code,
.docs-operation-example pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--d-tx);
  font-size: 13px;
  line-height: 1.5; }

.docs-operation-result {
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--d-accent-soft);
  color: var(--d-tx) !important;
  font-weight: 600; }

.docs-operation-result code,
.docs-operation-note code {
  padding: 0 4px;
  border-radius: 5px;
  background: var(--d-accent-soft);
  color: var(--d-tx);
  font-size: 0.94em;
  font-weight: 500; }

.docs-operation-note {
  font-size: 13px !important;
  color: var(--d-muted) !important; }

.docs-import-code-card {
  margin: 18px 0 20px;
  overflow: hidden;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface);
  box-shadow: 0 14px 34px rgba(21, 82, 125, 0.08); }

.docs-import-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--d-border);
  background: var(--d-surface);
  color: var(--d-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase; }

.docs-import-code-header span:last-child {
  color: var(--d-muted); }

.docs-import-code-body .highlighter-rouge,
.docs-import-code-body .highlight {
  margin: 0;
  background: transparent; }

.docs-import-code-body .highlight pre,
.docs-import-code-body pre.highlight,
.docs-import-code-body pre {
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background: var(--d-surface);
  overflow-x: auto; }

.docs-import-code-body .highlight code,
.docs-import-code-body pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--d-tx);
  font-size: 14px;
  line-height: 1.6; }

.docs-critical-note {
  margin: 16px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(205, 58, 58, 0.28);
  border-radius: 8px;
  background: var(--d-red-bg);
  color: var(--d-red-tx);
  font-size: 15px;
  line-height: 1.55; }

.docs-critical-note strong {
  color: var(--d-red-tx);
  font-weight: 800; }

.docs-critical-note code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(205, 58, 58, 0.12);
  color: var(--d-red-tx);
  font-size: 0.94em; }

.docs-method-heading {
  margin: -4px 0 14px; }

.docs-method-heading code {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--d-border);
  border-radius: 7px;
  background: var(--d-surface-hover);
  color: var(--d-tx);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25; }

.docs-minimum-required {
  margin: 20px 0 26px;
  padding: 16px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface); }

.docs-minimum-required-heading {
  margin-bottom: 12px;
  color: var(--d-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase; }

.docs-minimum-required-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px; }

.docs-minimum-required-card {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(39, 116, 174, 0.1);
  border-radius: 8px;
  background: var(--d-surface); }

.docs-minimum-required-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--d-tx);
  font-size: 14px;
  line-height: 1.3; }

.docs-minimum-required-card p {
  margin: 0;
  color: var(--d-muted);
  font-size: 13px;
  line-height: 1.45; }

.docs-minimum-required-card code {
  padding: 1px 4px;
  border-radius: 5px;
  background: var(--d-accent-soft);
  color: var(--d-tx);
  font-size: 0.92em;
  font-weight: 500; }

.docs-capability-grid-four {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.docs-definition-table-wide-first thead th:first-child,
.docs-definition-table-wide-first tbody td:first-child {
  width: 24%;
  white-space: normal; }

.docs-definition-table-wide-first thead th:nth-child(2),
.docs-definition-table-wide-first thead th:nth-child(3),
.docs-definition-table-wide-first tbody td:nth-child(2),
.docs-definition-table-wide-first tbody td:nth-child(3) {
  width: 38%; }

.docs-usrp-profile-table-wrap {
  margin: 20px 0 10px;
  overflow: hidden;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
  box-shadow: 0 14px 30px -28px rgba(0, 60, 110, 0.5); }

.docs-usrp-profile-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed; }

.docs-usrp-profile-table th,
.docs-usrp-profile-table td {
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--d-border);
  border-bottom: 1px solid var(--d-border);
  vertical-align: middle;
  text-align: left;
  font-size: 15px;
  line-height: 1.45; }

.docs-usrp-profile-table th:last-child,
.docs-usrp-profile-table td:last-child {
  border-right: 0; }

.docs-usrp-profile-table tbody tr:last-child td {
  border-bottom: 0; }

.docs-usrp-profile-table thead th {
  background: var(--d-surface);
  color: var(--d-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase; }

.docs-usrp-profile-table thead th:nth-child(1) {
  width: 19%; }

.docs-usrp-profile-table thead th:nth-child(2) {
  width: 31%; }

.docs-usrp-profile-table thead th:nth-child(3) {
  width: 24%; }

.docs-usrp-profile-table thead th:nth-child(4) {
  width: 26%; }

.docs-usrp-profile-table tbody tr:nth-child(even) {
  background: var(--d-surface); }

.docs-usrp-profile-table tbody tr:hover {
  background: var(--d-accent-soft); }

.docs-usrp-profile-table code {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--d-border);
  border-radius: 6px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-size: 0.94em;
  font-weight: 700;
  white-space: nowrap; }

.docs-usrp-validation-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(190, 126, 17, 0.22);
  border-radius: 999px;
  background: rgba(255, 185, 55, 0.11);
  color: var(--d-amber-tx);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap; }

.docs-usrp-validation-badge::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d99520;
  content: ""; }

.docs-usrp-validation-badge.is-generic {
  border-color: var(--d-muted);
  background: var(--d-inline-bg);
  color: var(--d-muted); }

.docs-usrp-validation-badge.is-generic::before {
  background: #7d8993; }

.docs-table-caption {
  margin: 0 0 24px;
  color: var(--d-muted);
  font-size: 13px;
  line-height: 1.55; }

.docs-pipeline-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 22px 0 26px; }

.docs-pipeline-node {
  position: relative;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--d-border);
  border-left: 5px solid rgba(39, 116, 174, 0.72);
  border-radius: 10px;
  background: var(--d-surface);
  box-shadow: 0 14px 26px -28px rgba(0, 60, 110, 0.32); }

.docs-pipeline-node.is-admin {
  border-left-color: var(--d-green-tx); }

.docs-pipeline-node.is-idl {
  border-left-color: var(--d-amber-tx); }

.docs-pipeline-node.is-client {
  border-left-color: var(--d-purple-tx); }

.docs-pipeline-node.is-runtime {
  border-left-color: var(--d-purple-tx); }

.docs-pipeline-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--d-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase; }

.docs-pipeline-node.is-admin .docs-pipeline-kicker {
  color: var(--d-green-tx); }

.docs-pipeline-node.is-idl .docs-pipeline-kicker {
  color: var(--d-amber-tx); }

.docs-pipeline-node.is-client .docs-pipeline-kicker {
  color: var(--d-purple-tx); }

.docs-pipeline-node.is-runtime .docs-pipeline-kicker {
  color: var(--d-purple-tx); }

.docs-pipeline-node strong {
  display: block;
  color: var(--d-tx);
  font-size: 17px;
  line-height: 1.25; }

.docs-pipeline-node p {
  margin: 8px 0 0;
  color: var(--d-muted);
  font-size: 14px;
  line-height: 1.48; }

.docs-pipeline-node code,
.docs-schema-note code {
  padding: 0 4px;
  border-radius: 5px;
  background: var(--d-accent-soft);
  color: var(--d-tx);
  font-size: 0.92em;
  font-weight: 500; }

.docs-annotated-schema {
  display: grid;
  gap: 14px;
  margin: 22px 0 28px; }

.docs-schema-row {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 46px;
  align-items: stretch;
  min-width: 0; }

.docs-schema-code-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface);
  box-shadow: 0 14px 26px -28px rgba(0, 60, 110, 0.28); }

.docs-schema-code-label {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(39, 116, 174, 0.1);
  background: var(--d-surface);
  color: var(--d-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase; }

.docs-schema-code-card .highlighter-rouge,
.docs-schema-code-card .highlight {
  margin: 0;
  background: transparent; }

.docs-schema-code-card .highlight pre,
.docs-schema-code-card pre.highlight,
.docs-schema-code-card pre {
  margin: 0;
  padding: 12px 14px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: auto; }

.docs-schema-code-card .highlight code,
.docs-schema-code-card pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--d-tx);
  font-size: 13px;
  line-height: 1.55; }

.docs-schema-row {
  position: relative; }

.docs-schema-row::before {
  content: "";
  position: absolute;
  top: -14px;
  bottom: -14px;
  left: calc((100% - 46px) * 0.56 + 23px);
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 122, 77, 0.28) 0%, rgba(138, 79, 6, 0.22) 52%, rgba(98, 65, 171, 0.2) 100%); }

.docs-schema-row:first-child::before {
  top: 14px; }

.docs-schema-row:last-child::before {
  bottom: 14px; }

.docs-schema-note {
  position: relative;
  min-width: 0;
  padding: 13px 14px 14px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface);
  box-shadow: 0 12px 22px -28px rgba(0, 60, 110, 0.28); }

.docs-schema-note::before {
  content: "";
  position: absolute;
  top: 23px;
  left: -24px;
  width: 24px;
  border-top: 2px solid var(--d-border); }

.docs-schema-note-index {
  position: absolute;
  top: 13px;
  left: -32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--d-border);
  border-radius: 999px;
  background: var(--d-surface);
  color: var(--d-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  z-index: 1; }

.docs-schema-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--d-tx);
  font-size: 15px;
  line-height: 1.3; }

.docs-schema-note p {
  margin: 0;
  color: var(--d-muted);
  font-size: 13.5px;
  line-height: 1.48; }

.docs-generated-footnote {
  margin: 22px 0 30px;
  padding: 14px 16px;
  border-left: 3px solid var(--d-border);
  border-radius: 0 8px 8px 0;
  background: var(--d-surface);
  color: var(--d-muted);
  font-size: 13px;
  line-height: 1.48; }

.docs-generated-footnote p {
  margin: 0; }

.docs-generated-footnote p + .docs-generated-code-card,
.docs-generated-code-card + p {
  margin-top: 10px; }

.docs-generated-code-card + h2,
.docs-generated-code-card + h3,
.docs-import-code-card + h2,
.docs-import-code-card + h3,
.docs-note + h2,
.docs-note + h3,
.docs-critical-note + h2,
.docs-critical-note + h3 {
  margin-top: 42px; }

.docs-generated-code-card {
  overflow: hidden;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-surface); }

.docs-generated-code-card .highlighter-rouge,
.docs-generated-code-card .highlight {
  margin: 0;
  background: transparent; }

.docs-generated-code-card .highlight pre,
.docs-generated-code-card pre.highlight,
.docs-generated-code-card pre {
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: auto; }

.docs-generated-code-card .highlight code,
.docs-generated-code-card pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--d-body);
  font-size: 12.5px;
  line-height: 1.5; }

.docs-generated-code-card .highlight .nt,
.docs-generated-code-card .highlight .s,
.docs-generated-code-card .highlight .s2,
.docs-generated-code-card .highlight .mi,
.docs-generated-code-card .highlight .k,
.docs-generated-code-card .highlight .kd,
.docs-generated-code-card .highlight .nf,
.docs-generated-code-card .highlight .nc {
  color: inherit;
  font-weight: inherit; }

.docs-config-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: min(100%, 760px);
  padding: 6px 9px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface);
  box-shadow: 0 10px 18px -24px rgba(0, 85, 135, 0.42);
  cursor: help;
  z-index: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease; }

.docs-config-node.is-folder {
  background: var(--d-surface); }

.docs-config-node.is-root {
  padding: 8px 11px;
  background: var(--d-surface); }

.docs-config-node code {
  padding: 0;
  background: transparent;
  color: var(--d-tx);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere; }

.docs-config-node:hover,
.docs-config-node:focus,
.docs-config-node:focus-visible {
  border-color: var(--d-border-strong);
  background: var(--d-surface);
  box-shadow: 0 16px 24px -24px rgba(0, 85, 135, 0.5);
  outline: none;
  z-index: 24;
  transform: translateY(-1px); }

.docs-config-node::before,
.docs-config-node::after {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease; }

.docs-config-node::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 18px;
  z-index: 18;
  border: 7px solid transparent;
  border-top-color: rgba(7, 35, 58, 0.94);
  transform: translateY(4px); }

.docs-config-node::after {
  content: attr(data-config-tip);
  position: absolute;
  bottom: calc(100% + 16px);
  left: 0;
  z-index: 17;
  width: max-content;
  max-width: min(320px, calc(100vw - 84px));
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(7, 35, 58, 0.94);
  box-shadow: 0 16px 30px -22px rgba(0, 20, 38, 0.7);
  color: white;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  transform: translateY(4px); }

.docs-config-node:hover::before,
.docs-config-node:hover::after,
.docs-config-node:focus::before,
.docs-config-node:focus::after,
.docs-config-node:focus-visible::before,
.docs-config-node:focus-visible::after {
  opacity: 1;
  transform: translateY(0); }


@media screen and (max-width: 925px) {
  .docs-note,
  .docs-hero,
  .docs-card,
  .docs-step-panel {
    padding: 16px; }

  .docs-procedure-step {
    padding: 16px; }

  .docs-procedure-step h3 {
    font-size: 22px; }

  .docs-step-summary {
    font-size: 15px; }

  .docs-hero,
  .docs-note {
    margin-bottom: 20px; }

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

  .docs-tree-shell {
    padding: 16px; }

  .docs-tree-header {
    flex-direction: column; }

  .docs-gist-panel {
    padding: 16px; }

  .docs-gist-header {
    flex-direction: column; }

  .docs-gist-badge-stack {
    justify-content: flex-start;
    min-width: 0; }

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

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

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

  .docs-schema-row {
    grid-template-columns: 1fr;
    gap: 10px; }

  .docs-schema-row::before,
  .docs-schema-note::before {
    display: none; }

  .docs-schema-note {
    padding-left: 42px; }

  .docs-schema-note-index {
    left: 14px; }

  .docs-config-legend {
    justify-content: flex-start; }


}

@media screen and (max-width: 690px) {
  .docs-definition-table-wrap {
    overflow-x: auto; }

  .docs-definition-table {
    min-width: 720px;
    table-layout: auto; }

  .docs-usrp-profile-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none; }

  .docs-usrp-profile-table,
  .docs-usrp-profile-table tbody,
  .docs-usrp-profile-table tr,
  .docs-usrp-profile-table td {
    display: block;
    width: 100%; }

  .docs-usrp-profile-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap; }

  .docs-usrp-profile-table tbody tr,
  .docs-usrp-profile-table tbody tr:nth-child(even) {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--d-border);
    border-radius: 11px;
    background: var(--d-surface);
    box-shadow: 0 12px 24px -26px rgba(0, 60, 110, 0.48); }

  .docs-usrp-profile-table td,
  .docs-usrp-profile-table tbody tr:last-child td {
    display: grid;
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 13px;
    border-right: 0;
    border-bottom: 1px solid var(--d-border);
    font-size: 14px; }

  .docs-usrp-profile-table td:last-child,
  .docs-usrp-profile-table tbody tr:last-child td:last-child {
    border-bottom: 0; }

  .docs-usrp-profile-table td::before {
    color: var(--d-accent);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase; }

  .docs-usrp-validation-badge {
    justify-self: start; }

  .docs-hero,
  .docs-card,
  .docs-step-panel {
    padding: 14px; }

  .docs-procedure-step {
    padding: 14px; }

  .docs-procedure-step h3 {
    font-size: 20px; }

  .docs-procedure-step.is-muted h3 {
    font-size: 18px; }

  .docs-step-summary {
    font-size: 14px; }

  .docs-procedure-step.is-muted .docs-step-summary {
    font-size: 13px; }

  .docs-procedure-step.is-muted {
    padding: 12px 13px 14px; }

  .docs-card-title {
    font-size: 20px; }

  .docs-card-media {
    min-height: 172px;
    padding: 14px 14px 8px; }

  .docs-card-media img {
    height: 146px; }

  .docs-card-body {
    padding: 16px; }

  .docs-chip-row {
    gap: 8px; }

  .docs-file-role-grid {
    gap: 12px; }

  .docs-file-role-body {
    padding: 12px 14px 14px; }

  .docs-capability-grid {
    gap: 10px; }

  .docs-capability-grid-four,
  .docs-file-role-grid,
  .docs-minimum-required-grid,
  .docs-operation-grid {
    grid-template-columns: 1fr; }

  .docs-pipeline-node {
    padding: 14px; }

  .docs-pipeline-node strong {
    font-size: 16px; }

  .docs-pipeline-node p {
    font-size: 13px; }

  .docs-schema-note-index {
    left: 14px; }

  .docs-tree-shell {
    padding: 14px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; }

  .docs-gist-panel {
    padding: 14px 12px; }

  .docs-gist-header h3 {
    font-size: 20px; }

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

  .docs-gist-flow-step,
  .docs-gist-requirement {
    padding: 13px; }

  .docs-tree-title {
    font-size: 20px; }

  .docs-tree-subtitle {
    font-size: 14px; }

  .docs-field-guide-row {
    grid-template-columns: 1fr;
    gap: 4px; }

  .docs-config-tree ul {
    padding-left: 20px; }

  .docs-config-tree li::before,
  .docs-config-tree li::after {
    left: -12px; }

  .docs-config-tree li::after {
    width: 8px; }

  .docs-config-node {
    max-width: min(100%, calc(100vw - 92px));
    padding: 6px 8px; }

  .docs-config-node::before {
    left: 14px; }

  .docs-config-node::after {
    max-width: min(260px, calc(100vw - 72px)); }

  .docs-config-file-header,
  .docs-import-code-header {
    flex-wrap: wrap; }

  .docs-config-file-name {
    min-width: 0;
    overflow-wrap: anywhere; }

  .docs-config-file-type {
    margin-left: 0; }

  .docs-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 12px; }

  .docs-modal-frame {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px); }

  .docs-modal-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px; }

  .docs-modal-header h3 {
    font-size: 20px; }

  .docs-modal-close,
  .docs-modal-next,
  .docs-modal-back {
    width: 100%; }

  .docs-modal-body,
  .docs-modal-actions {
    padding: 14px; }

  .docs-modal-action-row {
    display: grid;
    grid-template-columns: 1fr; } }
}

.docs-table-wrap table.docs-hardware-table {
  min-width: 0;
  width: 100%;
}
/* Modern macOS-style Terminal Component */

.docs-token-callout {
  margin: 18px 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-amber-bg);
  color: var(--d-amber-tx);
  font-size: 15px;
  line-height: 1.5; }

.docs-token-callout,
.docs-token-callout p,
.docs-token-callout ul,
.docs-token-callout li,
.docs-token-callout strong {
  color: var(--d-amber-tx); }

.docs-token-callout > strong:first-child,
.docs-token-callout > p:first-child > strong:first-child {
  font-size: 16px;
  display: block;
  margin-bottom: 6px; }

.docs-token-callout > p:first-child {
  margin: 0 0 6px; }

.docs-token-callout ul {
  margin: 6px 0 0;
  padding-left: 20px; }

.docs-token-callout li:last-child {
  margin-bottom: 0; }

/* Collapsible Terminal Output Component */
.docs-terminal-collapse {
  margin: 14px 0 20px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface);
  overflow: hidden;
  transition: all 0.2s ease; }

.docs-terminal-collapse summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--d-surface-hover);
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--d-accent);
  outline: none;
  transition: background 0.15s ease; }

.docs-terminal-collapse summary:hover {
  background: var(--d-surface-hover);
  color: var(--d-accent); }

.docs-terminal-collapse summary::-webkit-details-marker {
  display: none; }

.docs-terminal-collapse .toggle-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--d-muted);
  font-weight: 500; }

.docs-terminal-collapse .toggle-indicator::after {
  content: "▼";
  font-size: 9px;
  transition: transform 0.2s ease;
  display: inline-block; }

.docs-terminal-collapse[open] .toggle-indicator::after {
  transform: rotate(180deg); }

.docs-terminal-collapse[open] summary {
  border-bottom: 1px solid var(--d-border); }

.docs-terminal-collapse .terminal-window.is-mac {
  margin: 12px 14px !important;
  max-width: 100%; }

/* Command Block with Integrated Terminal Output Button */
.docs-cmd-interactive {
  margin: 16px 0 20px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface);
  overflow: hidden;
  box-shadow: 0 4px 14px -6px rgba(0, 45, 85, 0.08); }
  .docs-cmd-interactive .docs-cmd-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--d-surface);
    border-bottom: 1px solid var(--d-border);
    padding: 10px 14px;
    gap: 12px; }
    .docs-cmd-interactive .docs-cmd-bar .docs-cmd-code {
      font-family: var(--mono);
      font-size: 15px;
      font-weight: 700;
      color: var(--d-tx);
      display: flex;
      align-items: center;
      gap: 8px; }
      .docs-cmd-interactive .docs-cmd-bar .docs-cmd-code::before {
        content: "$";
        color: var(--d-accent);
        font-weight: 800; }
    .docs-cmd-interactive .docs-cmd-bar .docs-cmd-actions {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0; }
      .docs-cmd-interactive .docs-cmd-bar .docs-cmd-actions .docs-cmd-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 28px;
        padding: 0 10px;
        font-size: 12px;
        font-weight: 700;
        border-radius: 6px;
        border: 1px solid var(--d-border);
        background: var(--d-surface);
        color: var(--d-accent);
        cursor: pointer;
        line-height: 1;
        transition: all 0.15s ease; }
        .docs-cmd-interactive .docs-cmd-bar .docs-cmd-actions .docs-cmd-btn:hover {
          background: var(--d-surface-hover);
          border-color: var(--d-accent);
          color: var(--d-accent); }
        .docs-cmd-interactive .docs-cmd-bar .docs-cmd-actions .docs-cmd-btn.is-output-toggle {
          background: var(--d-surface-hover);
          border-color: #bae6fd;
          color: var(--d-accent); }
          .docs-cmd-interactive .docs-cmd-bar .docs-cmd-actions .docs-cmd-btn.is-output-toggle:hover {
            background: var(--d-surface-hover);
            border-color: #0284c7;
            color: var(--d-accent); }
          .docs-cmd-interactive .docs-cmd-bar .docs-cmd-actions .docs-cmd-btn.is-output-toggle .docs-cmd-arrow {
            font-size: 9px;
            transition: transform 0.2s ease;
            display: inline-block; }
          .docs-cmd-interactive .docs-cmd-bar .docs-cmd-actions .docs-cmd-btn.is-output-toggle[aria-expanded="true"] .docs-cmd-arrow {
            transform: rotate(180deg); }
  .docs-cmd-interactive .docs-cmd-drawer {
    background: var(--d-surface-hover);
    padding: 14px 16px;
    border-top: 1px solid var(--d-border); }
    .docs-cmd-interactive .docs-cmd-drawer .terminal-window.is-mac {
      margin: 0 !important;
      box-shadow: none;
      max-width: 100%; }

/* ==========================================================================
   Resources Page Styles (Clean & Minimal)
   ========================================================================== */

  .docs-post-content figure.docs-figure-double {
    overflow-x: visible !important;
    max-width: 100%; }
  .docs-post-content figure .image-double {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box; }
    .docs-post-content figure .image-double .image-double-box {
      flex: 1 1 260px;
      max-width: 340px;
      height: 260px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #ffffff;
      border-radius: 10px;
      border: 1px solid var(--d-border);
      padding: 12px;
      box-sizing: border-box; }
      .docs-post-content figure .image-double .image-double-box a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%; }
      .docs-post-content figure .image-double .image-double-box img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important; }

@media screen and (max-width: 690px) {
  .docs-post-content figure.docs-figure-double {
    overflow-x: visible !important; }

  .docs-post-content figure .image-double {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%; }
    .docs-post-content figure .image-double .image-double-box {
      width: 100%;
      max-width: 300px;
      height: 220px !important;
      margin: 0 auto; } }
/* Capacity Sizing Table */
table.docs-sizing-table {
  width: 100%;
  min-width: 720px; }
  table.docs-sizing-table th, table.docs-sizing-table td {
    padding: 12px 16px;
    vertical-align: middle; }
  table.docs-sizing-table tr.is-highlighted-row td {
    background: var(--d-accent-soft); }

/* Structured Lab Curriculum Cards */
.docs-lab-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px; }

.docs-lab-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 60, 110, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease; }
  .docs-lab-card:hover {
    border-color: var(--d-border-strong);
    box-shadow: 0 4px 12px rgba(0, 60, 110, 0.08); }

.docs-lab-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase; }

.docs-lab-content {
  flex: 1;
  min-width: 0; }
  .docs-lab-content h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--d-tx);
    line-height: 1.35; }
  .docs-lab-content p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--d-tx); }

@media (max-width: 640px) {
  .docs-lab-card {
    flex-direction: column;
    gap: 10px; } }

/* ==========================================================================
   5. Interactive RemoteRF CLI Terminal Simulator (.cli-sim)
   ========================================================================== */
.cli-sim {
  margin: 18px 0 32px;
  border: 1px solid var(--d-border-strong);
  border-radius: 12px;
  background: var(--term-bg);
  color: var(--term-tx);
  overflow: hidden;
  box-shadow: var(--term-shadow);
  text-align: left;
}

.cli-sim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--term-head-bg);
  border-bottom: 1px solid var(--term-border);
  font: 500 12px var(--mono);
  color: var(--term-title);
}

.cli-sim-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cli-sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(63, 185, 80, 0.14);
  color: var(--term-green);
  font: 600 11px var(--mono);
}

.cli-sim-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--term-green);
}

.cli-sim-reset {
  padding: 4px 10px;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #21262d;
  color: #cbd5e1;
  font: 500 11.5px var(--mono);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.cli-sim-reset:hover {
  border-color: var(--term-blue);
  color: #ffffff;
}

[data-theme="light"] .cli-sim-reset {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #334155;
}

[data-theme="light"] .cli-sim-reset:hover {
  border-color: var(--term-blue);
  color: #0f172a;
}

.cli-sim-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 14px;
  background: var(--term-sub-bg);
  border-bottom: 1px solid var(--term-border);
}

.cli-sim-toolbar-label {
  color: var(--term-muted);
  font: 600 11px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 4px;
}

.cli-sim-chip {
  padding: 4px 9px;
  border: 1px solid #2d3542;
  border-radius: 6px;
  background: #19212e;
  color: #79c0ff;
  font: 500 12px var(--mono);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cli-sim-chip:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  color: #ffffff;
}

[data-theme="light"] .cli-sim-chip {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #0369a1;
}

[data-theme="light"] .cli-sim-chip:hover {
  background: rgba(2, 132, 199, 0.1);
  border-color: #0284c7;
  color: #0c4a6e;
}

.cli-sim-screen {
  height: 340px;
  padding: 14px 18px;
  overflow-y: auto;
  font: 400 13.5px/1.62 var(--mono);
  cursor: text;
}

.cli-sim-out .line {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

.cli-sim-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.cli-sim-prompt {
  color: var(--term-blue);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.cli-sim-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--term-tx-strong);
  font: 400 13.5px/1.62 var(--mono);
  caret-color: var(--term-cyan);
}

.cli-sim-input::placeholder {
  color: var(--term-muted);
}

.cli-sim-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 14px;
  background: var(--term-sub-bg);
  border-top: 1px solid var(--term-border);
  color: var(--term-muted);
  font: 400 11.5px var(--mono);
}

/* ==========================================================================
   6. Worldwide Deployments Directory Cards (.dep-*)
   ========================================================================== */
.dep-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 18px 0 32px;
}

.dep-card {
  padding: 22px 24px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
  transition: border-color 0.15s;
}

.dep-card:hover {
  border-color: var(--d-border-strong);
}

[data-theme="light"] .dep-card {
  background: #fff;
}

.dep-card#ucla,
.dep-modal-frame[data-dep-theme="ucla"] {
  --dep-color: #2774ae;
  --dep-border: rgba(39, 116, 174, 0.42);
  --dep-soft: rgba(39, 116, 174, 0.14);
  --dep-tint: rgba(39, 116, 174, 0.07);
}

.dep-card#ut-austin,
.dep-modal-frame[data-dep-theme="ut-austin"] {
  --dep-color: #f97316;
  --dep-border: rgba(249, 115, 22, 0.38);
  --dep-soft: rgba(249, 115, 22, 0.12);
  --dep-tint: rgba(249, 115, 22, 0.06);
}

.dep-card#nyu,
.dep-modal-frame[data-dep-theme="nyu"] {
  --dep-color: #a855f7;
  --dep-border: rgba(168, 85, 247, 0.38);
  --dep-soft: rgba(168, 85, 247, 0.12);
  --dep-tint: rgba(168, 85, 247, 0.06);
}

.dep-card#yonsei,
.dep-modal-frame[data-dep-theme="yonsei"] {
  --dep-color: #3b82f6;
  --dep-border: rgba(59, 130, 246, 0.38);
  --dep-soft: rgba(59, 130, 246, 0.12);
  --dep-tint: rgba(59, 130, 246, 0.06);
}

[data-theme="light"] .dep-card#ucla,
[data-theme="light"] .dep-modal-frame[data-dep-theme="ucla"] {
  --dep-color: #2774ae;
  --dep-border: rgba(39, 116, 174, 0.34);
  --dep-soft: rgba(39, 116, 174, 0.10);
  --dep-tint: rgba(39, 116, 174, 0.05);
}

[data-theme="light"] .dep-card#ut-austin,
[data-theme="light"] .dep-modal-frame[data-dep-theme="ut-austin"] {
  --dep-color: #bf5700;
  --dep-border: rgba(191, 87, 0, 0.35);
  --dep-soft: rgba(191, 87, 0, 0.10);
  --dep-tint: rgba(191, 87, 0, 0.05);
}

[data-theme="light"] .dep-card#nyu,
[data-theme="light"] .dep-modal-frame[data-dep-theme="nyu"] {
  --dep-color: #7c3aed;
  --dep-border: rgba(124, 58, 237, 0.34);
  --dep-soft: rgba(124, 58, 237, 0.10);
  --dep-tint: rgba(124, 58, 237, 0.05);
}

[data-theme="light"] .dep-card#yonsei,
[data-theme="light"] .dep-modal-frame[data-dep-theme="yonsei"] {
  --dep-color: #1d4ed8;
  --dep-border: rgba(29, 78, 216, 0.34);
  --dep-soft: rgba(29, 78, 216, 0.10);
  --dep-tint: rgba(29, 78, 216, 0.05);
}

.dep-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dep-title-group .dep-map-detail-title-row {
  margin-bottom: 4px;
}

.dep-title-group h3 {
  margin: 0 !important;
  font: 600 19px/1.3 var(--disp);
  color: var(--d-tx);
}

.dep-location {
  font: 400 13px/1.4 var(--mono);
  color: var(--d-muted);
}

.dep-handle-inline {
  font: 400 13px/1 var(--mono);
  color: var(--d-muted);
}

.dep-loc-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--d-tx);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--d-border-strong);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.dep-loc-link:hover,
.dep-loc-link:focus-visible {
  color: var(--dep-color, var(--d-accent));
  text-decoration-color: currentColor;
}

.dep-stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 0;
  margin: 0 0 14px;
  border-top: 1px solid var(--d-border);
  border-bottom: 1px solid var(--d-border);
}

.dep-stat-item {
  min-width: 0;
}

.dep-stat-item + .dep-stat-item {
  border-left: 1px solid var(--d-border);
  padding-left: 16px;
}

.dep-stat-n {
  display: block;
  font: 600 clamp(20px, 2.2vw, 26px)/1.1 var(--disp);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--d-tx);
}

.dep-stat-k {
  display: block;
  margin-top: 4px;
  font: 400 12.5px/1.3 var(--body);
  color: var(--d-muted);
}

@media (max-width: 680px) {
  .dep-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .dep-stat-item + .dep-stat-item {
    border-left: 0;
    padding-left: 0;
  }

  .dep-stat-item:nth-child(even) {
    border-left: 1px solid var(--d-border);
    padding-left: 16px;
  }

  .dep-stat-item:nth-child(5) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--d-border);
    padding-top: 12px;
  }
}

@media (max-width: 420px) {
  .dep-stats-row {
    grid-template-columns: 1fr;
  }

  .dep-stat-item:nth-child(even) {
    border-left: 0;
    padding-left: 0;
  }
}

.dep-site-link,
.docs-post-content a.dep-site-link {
  color: var(--dep-color, var(--d-accent)) !important;
  text-decoration: none !important;
  font-weight: 500;
}

.dep-site-link:hover,
.docs-post-content a.dep-site-link:hover {
  text-decoration: underline !important;
}

.dep-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--d-border-strong);
  background: var(--d-green-bg);
  color: var(--d-green-tx);
  font: 600 11.5px/1.2 var(--mono);
  white-space: nowrap;
}

.dep-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dep-status.is-partner {
  background: var(--d-accent-soft);
  color: var(--d-accent);
}

.dep-desc {
  margin: 0 0 16px !important;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--d-body);
}

.dep-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--d-border);
  border-bottom: 1px solid var(--d-border);
  background: transparent;
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  .dep-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .dep-meta-grid {
    grid-template-columns: 1fr;
  }
}

.dep-card[hidden],
.dep-empty[hidden] {
  display: none !important;
}

.dep-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.dep-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 13.5px/1.3 var(--body);
  color: var(--d-muted);
}

.dep-filter-select {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--d-border-strong);
  background: var(--d-surface);
  color: var(--d-tx);
  font: 500 13.5px/1.3 var(--body);
  cursor: pointer;
}

.dep-filter-select:hover,
.dep-filter-select:focus-visible {
  border-color: var(--d-accent);
  outline: none;
}

.dep-filter-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font: 400 13px/1.3 var(--body);
  color: var(--d-muted);
}

.dep-filter-status[hidden] {
  display: none !important;
}

.dep-filter-reset {
  padding: 0;
  border: 0;
  background: none;
  color: var(--d-accent);
  font: 500 13px/1.3 var(--body);
  cursor: pointer;
}

.dep-filter-reset:hover {
  text-decoration: underline;
}

.dep-meta-item {
  min-width: 0;
}

.dep-meta-label {
  display: block;
  font: 600 10.5px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--d-muted);
  margin-bottom: 4px;
}

.dep-meta-val {
  display: block;
  font: 500 13px/1.4 var(--body);
  color: var(--d-tx);
}

.dep-tags {
  display: block;
  font: 400 13.5px/1.6 var(--body);
  color: var(--d-tx);
}

.dep-tags::before {
  content: "Devices:";
  font: 600 12px/1.3 var(--mono);
  color: var(--d-muted);
  margin-right: 8px;
}

.dep-tag {
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--d-body);
  font: 400 13.5px/1.6 var(--body);
}

.docs-post-content a.dep-tag,
.docs-post-content a.dep-tag:visited {
  color: var(--d-tx);
  text-decoration: none !important;
  transition: color 0.15s;
}

.docs-post-content a.dep-tag:hover {
  color: var(--d-accent);
  text-decoration: underline !important;
}

.dep-empty {
  padding: 20px 22px;
  border: 1px dashed var(--d-border-strong);
  border-radius: 10px;
  background: var(--d-surface);
  color: var(--d-muted);
  font-size: 14.5px;
}

.dep-card {
  scroll-margin-top: 92px;
}

.dep-card.is-highlighted {
  border-color: var(--d-accent);
  box-shadow: 0 0 0 2px var(--d-accent-soft), 0 12px 28px -12px rgba(56, 189, 248, 0.25);
}

.dep-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dep-locate-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--d-border-strong);
  background: transparent;
  color: var(--d-muted);
  font: 500 11.5px/1.2 var(--mono);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.dep-locate-btn:hover {
  color: var(--d-accent);
  border-color: var(--d-accent);
  background: var(--d-accent-soft);
}

.dep-locate-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Interactive Worldwide Deployment Map (.dep-map-*) */
.dep-map-shell {
   --map-ocean: #070b12;
  --map-sphere-fill: #09101d;
  --map-sphere-stroke: rgba(56, 189, 248, 0.22);
  --map-grat: rgba(148, 163, 184, 0.09);
  --map-land: #131f33;
  --map-land-stroke: rgba(56, 189, 248, 0.28);
  --map-country-stroke: rgba(148, 163, 184, 0.18);
  --map-state-stroke: rgba(148, 163, 184, 0.14);
  --map-arc: rgba(56, 189, 248, 0.45);
  --map-arc-glow: rgba(255, 0, 165, 0.55);
  --map-label-bg: rgba(11, 15, 23, 0.88);
  --map-label-border: rgba(148, 163, 184, 0.32);
  --map-label-tx: #f8fafc;
  --map-overlay-bg: rgba(15, 23, 42, 0.82);

  margin: 22px 0 36px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
  overflow: hidden;
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.45);
  scroll-margin-top: 88px;
}

[data-theme="light"] .dep-map-shell {
  --map-ocean: #eef6fc;
  --map-sphere-fill: #e4f0fa;
  --map-sphere-stroke: rgba(2, 132, 199, 0.28);
  --map-grat: rgba(100, 116, 139, 0.14);
  --map-land: #ffffff;
  --map-land-stroke: rgba(2, 132, 199, 0.38);
  --map-country-stroke: rgba(100, 116, 139, 0.24);
  --map-state-stroke: rgba(100, 116, 139, 0.2);
  --map-arc: rgba(2, 132, 199, 0.5);
  --map-arc-glow: rgba(219, 39, 119, 0.65);
  --map-label-bg: rgba(255, 255, 255, 0.94);
  --map-label-border: rgba(100, 116, 139, 0.36);
  --map-label-tx: #0f172a;
  --map-overlay-bg: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px -20px rgba(15, 23, 42, 0.14);
}

.dep-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--d-border);
  background: var(--d-surface);
}

.dep-map-regions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.dep-map-region-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--d-muted);
  font: 600 12px/1.2 var(--disp);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.dep-map-region-btn:hover {
  color: var(--d-tx);
  background: var(--d-bg);
}

.dep-map-region-btn.is-active {
  color: var(--d-accent);
  background: var(--d-accent-soft);
  border-color: rgba(56, 189, 248, 0.3);
}

.dep-map-region-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--d-inline-bg);
  color: var(--d-muted);
  font: 600 10.5px/1 var(--mono);
}

.dep-map-region-btn.is-active .dep-map-region-count {
  background: var(--d-accent);
  color: #0b0f17;
}

[data-theme="light"] .dep-map-region-btn.is-active .dep-map-region-count {
  color: #ffffff;
}

.dep-map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--map-overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dep-map-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--d-border-strong);
  border-radius: 6px;
  background: var(--d-bg);
  color: var(--d-body);
  font: 600 12.5px/1 var(--mono);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.dep-map-ctrl-btn:hover {
  color: var(--d-tx);
  border-color: var(--d-accent);
}

.dep-map-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.8;
  min-height: 300px;
  max-height: 440px;
  background: radial-gradient(ellipse 75% 70% at 50% 48%, var(--map-sphere-fill), var(--map-ocean));
  overflow: hidden;
  user-select: none;
}

.dep-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

.dep-map-svg:active {
  cursor: grabbing;
}

.dep-map-sphere {
  fill: var(--map-sphere-fill);
  stroke: var(--map-sphere-stroke);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.dep-map-graticule {
  fill: none;
  stroke: var(--map-grat);
  stroke-width: 0.75px;
  vector-effect: non-scaling-stroke;
}

.dep-map-land {
  fill: var(--map-land);
  stroke: var(--map-land-stroke);
  stroke-width: 0.85px;
  vector-effect: non-scaling-stroke;
  transition: fill 0.2s;
}

.dep-map-countries {
  fill: none;
  stroke: var(--map-country-stroke);
  stroke-width: 0.65px;
  vector-effect: non-scaling-stroke;
}

.dep-map-states {
  fill: none;
  stroke: var(--map-state-stroke);
  stroke-width: 0.6px;
  stroke-dasharray: 2 2;
  vector-effect: non-scaling-stroke;
}

.dep-map-arc-base {
  fill: none;
  stroke: var(--map-arc);
  stroke-width: 1.5px;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}

.dep-map-arc-pulse {
  fill: none;
  stroke: var(--map-arc-glow);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-dasharray: 10 26;
  vector-effect: non-scaling-stroke;
  animation: depMapArcFlow 2.6s linear infinite;
}

@keyframes depMapArcFlow {
  to {
    stroke-dashoffset: -36;
  }
}

/* SVG Deployment Markers */
.dep-map-node {
  cursor: pointer;
  outline: none;
}

.dep-map-node-hit {
  fill: transparent;
}

.dep-map-node-pulse {
  fill: none;
  stroke: var(--node-color, var(--d-accent));
  stroke-width: 1.6px;
  opacity: 0.75;
  transform-box: fill-box;
  transform-origin: center;
  animation: depMapPinPulse 2.4s ease-out infinite;
}

.dep-map-node.is-selected .dep-map-node-pulse {
  stroke: var(--node-color, #ff00a5);
  stroke-width: 2.2px;
}

@keyframes depMapPinPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.dep-map-node-halo {
  fill: var(--node-halo, rgba(56, 189, 248, 0.22));
  stroke: var(--node-color, rgba(56, 189, 248, 0.55));
  stroke-width: 1.2px;
  transition: r 0.18s, fill 0.18s, stroke 0.18s;
}

.dep-map-node-dot {
  fill: var(--node-color, var(--d-accent));
  stroke: #ffffff;
  stroke-width: 1.6px;
  transition: r 0.18s, fill 0.18s, transform 0.18s;
}

.dep-map-node:hover .dep-map-node-dot,
.dep-map-node:focus-visible .dep-map-node-dot,
.dep-map-node.is-selected .dep-map-node-dot {
  fill: var(--node-color, #ff00a5);
  r: 5.4px;
}

.dep-map-node:hover .dep-map-node-halo,
.dep-map-node:focus-visible .dep-map-node-halo,
.dep-map-node.is-selected .dep-map-node-halo {
  fill: var(--node-halo, rgba(255, 0, 165, 0.24));
  stroke: var(--node-color, #ff00a5);
  r: 11px;
}

.dep-map-node-pill {
  fill: var(--map-label-bg);
  stroke: var(--map-label-border);
  stroke-width: 1px;
  rx: 5px;
  ry: 5px;
  transition: stroke 0.15s, fill 0.15s;
}

.dep-map-node:hover .dep-map-node-pill,
.dep-map-node:focus-visible .dep-map-node-pill,
.dep-map-node.is-selected .dep-map-node-pill {
  stroke: var(--node-color, #ff00a5);
  stroke-width: 1.5px;
}

.dep-map-node-text {
  fill: var(--map-label-tx);
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* Map Legend & Floating Hint */
.dep-map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 11px;
  border: 1px solid var(--d-border-strong);
  border-radius: 8px;
  background: var(--map-overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 500 11px/1.2 var(--mono);
  color: var(--d-body);
  pointer-events: none;
}

.dep-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dep-map-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dep-map-legend-dot.is-flagship {
  background: var(--d-green-tx);
  box-shadow: 0 0 6px var(--d-green-tx);
}

.dep-map-legend-dot.is-partner {
  background: var(--d-accent);
  box-shadow: 0 0 6px var(--d-accent);
}

.dep-map-legend-line {
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--d-accent), #ff00a5);
  display: inline-block;
  border-radius: 2px;
}

.dep-map-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--map-overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 500 11px/1.2 var(--mono);
  color: var(--d-muted);
  pointer-events: none;
}

/* Hover Tooltip on Map */
.dep-map-tooltip {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  padding: 8px 11px;
  border: 1px solid var(--d-border-strong);
  border-radius: 8px;
  background: var(--map-label-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, calc(-100% - 14px));
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.dep-map-tooltip.is-visible {
  opacity: 1;
}

.dep-map-tooltip-title {
  color: var(--d-tx);
  font: 600 12.5px/1.3 var(--disp);
}

.dep-map-tooltip-sub {
  color: var(--d-muted);
  font: 400 11px/1.35 var(--mono);
  margin-top: 2px;
}

.dep-map-tooltip-cta {
  color: var(--d-accent);
  font: 600 10.5px/1.3 var(--mono);
  margin-top: 4px;
}

/* Quick-Select Node Strip below canvas */
.dep-map-selector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--d-border);
  background: var(--d-surface);
}

.dep-map-selector-label {
  font: 500 12px/1.3 var(--mono);
  color: var(--d-muted);
}

.dep-map-node-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dep-map-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--d-border-strong);
  border-radius: 999px;
  background: var(--d-bg);
  color: var(--d-tx);
  font: 500 12px/1.2 var(--mono);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.dep-map-pill-btn:hover {
  border-color: var(--d-accent);
  background: var(--d-surface-hover);
}

.dep-map-pill-btn.is-selected {
  border-color: #ff00a5;
  background: rgba(255, 0, 165, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 0, 165, 0.25);
}

.dep-map-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--d-accent);
}

.dep-map-pill-btn.is-flagship .dep-map-pill-dot {
  background: var(--d-green-tx);
}

.dep-map-pill-btn.is-selected .dep-map-pill-dot {
  background: #ff00a5;
}

.dep-map-pill-city {
  color: var(--d-muted);
  font-weight: 400;
}

/* Expandable Selected Deployment Info Drawer */
.dep-map-detail {
  border-top: 1px solid var(--d-border);
  background: var(--d-bg);
  padding: 18px 20px;
  animation: depMapDetailIn 0.2s ease-out;
}

.dep-map-detail[hidden] {
  display: none !important;
}

@keyframes depMapDetailIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dep-map-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dep-map-detail-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dep-map-detail-title {
  margin: 0 !important;
  font: 600 18px/1.3 var(--disp) !important;
  color: var(--d-tx);
}

.dep-map-handle-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--dep-border, var(--d-border-strong));
  background: var(--dep-soft, var(--d-surface));
  color: var(--dep-color, var(--d-accent));
  font: 600 12px/1.3 var(--mono);
}

.dep-map-detail-loc {
  margin-top: 3px;
  font: 400 12.5px/1.4 var(--mono);
  color: var(--d-muted);
}

.dep-map-detail-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dep-map-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--d-border-strong);
  background: var(--d-surface);
  color: var(--d-muted);
  font: 600 16px/1 var(--body);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.dep-map-close-btn:hover {
  color: var(--d-tx);
  border-color: var(--d-accent);
}

.dep-map-detail-desc {
  margin: 0 0 14px !important;
  font-size: 14px;
  line-height: 1.58;
  color: var(--d-body);
}

.dep-map-detail .dep-meta-grid {
  background: var(--d-surface);
  margin-bottom: 12px;
}

.dep-map-detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--d-border);
}

.dep-map-cli-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 11px;
  border: 1px solid var(--d-border);
  border-radius: 7px;
  background: var(--d-code-bg);
  font: 400 12px/1.3 var(--mono);
  color: var(--d-tx);
  max-width: 100%;
}

.dep-map-cli-box code {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 12px !important;
  color: var(--d-tx) !important;
}

.dep-map-cli-copy {
  padding: 3px 8px;
  border: 1px solid var(--d-border-strong);
  border-radius: 5px;
  background: var(--d-surface);
  color: var(--d-muted);
  font: 500 11px/1.2 var(--mono);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.dep-map-cli-copy:hover {
  color: var(--d-tx);
  border-color: var(--d-accent);
}

.dep-map-detail-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dep-map-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: var(--d-accent-soft);
  color: var(--d-accent) !important;
  font: 600 12.5px/1.2 var(--disp);
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dep-map-jump-btn:hover {
  border-color: var(--d-accent);
  background: rgba(56, 189, 248, 0.18);
}

/* Unified Deployment Info & Photos Pop-out Modal (dialog.dep-info-modal) */
dialog.dep-info-modal {
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 1px solid var(--d-border-strong);
  border-radius: 14px;
  background: var(--d-surface);
  color: var(--d-body);
  box-shadow: 0 28px 70px -20px rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
}

dialog.dep-info-modal::backdrop {
  background: rgba(6, 10, 18, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dep-modal-frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100vh - 38px);
  background: var(--d-surface);
  box-sizing: border-box;
}

.dep-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 26px 18px;
  border-bottom: 1px solid var(--d-border);
  background: var(--d-surface);
  flex-shrink: 0;
}

.dep-modal-body {
  padding: 22px 26px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dep-modal-gallery {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--d-border);
}

.dep-modal-gallery[hidden] {
  display: none !important;
}

.dep-modal-gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dep-modal-gallery-title {
  font: 600 11.5px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--d-muted);
}

.dep-modal-gallery-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dep-modal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--d-border-strong);
  background: var(--d-bg);
  color: var(--d-tx);
  font: 600 12px/1.2 var(--mono);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.dep-modal-nav-btn:hover {
  border-color: var(--d-accent);
  color: var(--d-accent);
}

.dep-modal-photo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 420px;
  background: #070b12;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
}

[data-theme="light"] .dep-modal-photo-stage {
  background: #f1f5f9;
}

.dep-modal-photo-stage img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  border-radius: 6px;
  margin: 0 !important;
  display: block;
}

.dep-modal-photo-caption-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin-top: 8px;
}

.dep-modal-photo-caption {
  font-size: 13px;
  line-height: 1.45;
  color: var(--d-muted);
  margin: 0 !important;
  flex: 1 1 auto;
}

.dep-modal-photo-open {
  font: 500 12px/1.3 var(--mono);
  color: var(--d-accent) !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.dep-modal-photo-open:hover {
  text-decoration: underline !important;
}

.dep-modal-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dep-modal-thumbs[hidden] {
  display: none !important;
}

.dep-modal-thumb-btn {
  padding: 0;
  width: 72px;
  height: 50px;
  border-radius: 6px;
  border: 2px solid var(--d-border);
  background: var(--d-bg);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
}

.dep-modal-thumb-btn:hover {
  opacity: 0.92;
}

.dep-modal-thumb-btn.is-active {
  opacity: 1;
  border-color: var(--d-accent);
}

.dep-modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dep-more-btn,
.docs-post-content a.dep-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--d-border-strong);
  background: transparent;
  color: var(--d-tx);
  font: 500 13px/1.2 var(--body);
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.dep-more-btn:hover,
.docs-post-content a.dep-more-btn:hover {
  border-color: var(--dep-color, var(--d-accent));
  color: var(--dep-color, var(--d-accent));
  background: transparent;
}

.dep-more-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.dep-map-ctrl-btn {
  gap: 5px;
}

.dep-map-ctrl-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dep-map-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: depMapDetailIn 0.16s ease-out;
}

.dep-map-backdrop[hidden] {
  display: none !important;
}

.dep-map-shell.is-expanded {
  position: fixed;
  inset: 5vh 5vw;
  width: 90vw;
  height: 90vh;
  margin: 0;
  z-index: 95;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  border-color: var(--d-border-strong);
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.75);
}

.dep-map-shell.is-expanded .dep-map-viewport {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

/* Enlarged Map Docked Side Panel */
.dep-map-sidepanel {
  flex: 0 0 clamp(500px, 48vw, 680px);
  width: clamp(500px, 48vw, 680px);
  height: 100%;
  min-height: 0;
  border-left: 1px solid var(--d-border);
  background: var(--d-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: depMapSideIn 0.18s ease-out;
}

.dep-map-sidepanel[hidden] {
  display: none !important;
}

@keyframes depMapSideIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dep-map-sidepanel .dep-modal-frame {
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.dep-map-sidepanel .dep-modal-head {
  padding: 18px 22px 16px;
}

.dep-map-sidepanel .dep-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 22px 22px;
  overflow-y: auto;
}

.dep-map-sidepanel .dep-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dep-map-sidepanel .dep-modal-photo-stage {
  height: 380px;
}

@media (max-width: 820px) {
  .dep-map-shell.is-expanded {
    flex-direction: column;
  }
  .dep-map-sidepanel {
    flex: 0 0 48%;
    width: 100%;
    height: 48%;
    border-left: 0;
    border-top: 1px solid var(--d-border);
  }
}

@media (max-width: 680px) {
  .dep-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dep-map-hint {
    display: none;
  }
  .dep-map-viewport {
    aspect-ratio: 16 / 10.5;
  }
  .dep-modal-photo-stage {
    height: 240px;
  }
}

/* ==========================================================================
   7. Pure HTML/CSS Component Architecture Diagram (.docs-arch-*)
   ========================================================================== */
.docs-arch-figure {
  margin: 24px 0 32px;
  text-align: center;
}

.docs-arch-diagram {
  padding: 28px 24px 32px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
  box-shadow: 0 12px 24px -24px rgba(0, 85, 135, 0.35);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.docs-arch-grid {
  display: grid;
  grid-template-columns: 128px 160px 124px 20px 124px;
  grid-template-rows: auto 54px 48px 54px 48px 54px;
  width: max-content;
  margin: 0 auto;
  padding: 0 64px 0 0;
  position: relative;
  align-items: stretch;
}

.docs-arch-zone {
  font: italic 500 15px/1.35 var(--disp);
  color: var(--d-muted);
  text-align: center;
  padding-bottom: 14px;
  align-self: end;
}

.docs-arch-zone.is-client {
  grid-column: 1;
  grid-row: 1;
}

.docs-arch-zone.is-deployment {
  grid-column: 3 / 6;
  grid-row: 1;
}

.docs-arch-divider {
  grid-column: 2;
  grid-row: 1 / 7;
  justify-self: start;
  margin-left: 46%;
  width: 1.5px;
  background: repeating-linear-gradient(
    to bottom,
    var(--d-muted) 0 6px,
    transparent 6px 11px
  );
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
}

.docs-arch-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--d-border-strong);
  border-radius: 8px;
  background: var(--d-bg);
  color: var(--d-tx);
  font: 600 15.5px/1.2 var(--disp);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.docs-arch-box.is-client {
  grid-column: 1;
  grid-row: 2;
}

.docs-arch-box.is-server {
  grid-column: 3 / 6;
  grid-row: 2;
}

.docs-arch-box.is-server-device {
  grid-column: 3;
  grid-row: 4;
}

.docs-arch-box.is-host {
  grid-column: 5;
  grid-row: 4;
}

.docs-arch-box.is-host-device {
  grid-column: 5;
  grid-row: 6;
}

.docs-arch-hlink {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 2;
}

.docs-arch-hlink::before {
  content: "";
  position: absolute;
  left: 46%;
  top: 1px;
  bottom: 18px;
  width: 14px;
  transform: translateX(-50%);
  background: var(--d-surface);
  z-index: 0;
}

.docs-arch-harrow {
  position: relative;
  width: 100%;
  height: 1.5px;
  background: var(--d-tx);
  z-index: 1;
}

.docs-arch-harrow::before,
.docs-arch-harrow::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--d-tx);
}

.docs-arch-harrow::before {
  left: 0;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.docs-arch-harrow::after {
  right: 0;
  clip-path: polygon(100% 50%, 0 0, 0 100%);
}

.docs-arch-vlink {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  z-index: 2;
}

.docs-arch-vlink.is-server-device {
  grid-column: 3;
  grid-row: 3;
}

.docs-arch-vlink.is-server-host {
  grid-column: 5;
  grid-row: 3;
}

.docs-arch-vlink.is-host-device {
  grid-column: 5;
  grid-row: 5;
}

.docs-arch-grid.is-ai {
  grid-template-columns: 168px 156px 124px 20px 124px;
  padding: 0 64px 0 0;
}

.docs-arch-vlink.is-client-gpu {
  grid-column: 1;
  grid-row: 3;
}

.docs-arch-box.is-gpu {
  grid-column: 1;
  grid-row: 4;
  padding: 6px 10px;
  text-align: center;
}

.docs-arch-varrow {
  position: relative;
  width: 1.5px;
  height: 100%;
  background: var(--d-tx);
}

.docs-arch-varrow::before,
.docs-arch-varrow::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--d-tx);
}

.docs-arch-varrow::before {
  top: 0;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.docs-arch-varrow::after {
  bottom: 0;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.docs-arch-label {
  position: absolute;
  font: 500 13px/1.25 var(--body);
  color: var(--d-body);
  white-space: nowrap;
  z-index: 2;
}

.docs-arch-label.is-top {
  bottom: calc(50% + 7px);
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px;
  background: var(--d-surface);
}

.docs-arch-label.is-left {
  top: 50%;
  right: calc(50% + 10px);
  transform: translateY(-50%);
}

.docs-arch-label.is-right {
  top: 50%;
  left: calc(50% + 10px);
  transform: translateY(-50%);
}

/* Global Deployments <-> VPS Architecture Diagram (.docs-arch-grid.is-global) */
.docs-arch-grid.is-global {
  grid-template-columns: 118px 132px 124px 164px 146px;
  grid-template-rows: auto 54px 36px 54px 38px;
  padding: 0;
}

.docs-arch-grid.is-global .docs-arch-zone {
  white-space: nowrap;
}

.docs-arch-zone.is-global {
  grid-column: 3;
  grid-row: 1;
}

.docs-arch-zone.is-deployments {
  grid-column: 5;
  grid-row: 1;
}

.docs-arch-divider.is-global-left {
  grid-column: 2;
  grid-row: 1 / 6;
  justify-self: center;
  margin-left: 0;
}

.docs-arch-divider.is-global-right {
  grid-column: 4;
  grid-row: 1 / 6;
  justify-self: start;
  margin-left: calc((100% - 28px) / 2);
}

.docs-arch-box.is-global-client {
  grid-column: 1;
  grid-row: 2 / 5;
  height: 54px;
  align-self: center;
}

.docs-arch-box.is-vps {
  grid-column: 3;
  grid-row: 2 / 5;
  height: 54px;
  align-self: center;
}

.docs-arch-box.is-deployment-top {
  grid-column: 5;
  grid-row: 2;
}

.docs-arch-box.is-deployment-bottom {
  grid-column: 5;
  grid-row: 4;
}

.docs-arch-hlink.is-client-vps {
  grid-column: 2;
  grid-row: 2 / 5;
}

.docs-arch-hlink.is-client-vps::before {
  left: 50%;
  top: calc(50% - 26px);
  bottom: calc(50% + 9px);
}

.docs-arch-fork {
  grid-column: 4;
  grid-row: 2 / 5;
  position: relative;
  z-index: 2;
}

.docs-arch-fork::before {
  content: "";
  position: absolute;
  left: calc((100% - 28px) / 2);
  top: calc(50% - 26px);
  bottom: calc(50% + 9px);
  width: 14px;
  transform: translateX(-50%);
  background: var(--d-surface);
  z-index: 0;
}

.docs-arch-fork .docs-arch-label.is-top {
  left: calc((100% - 28px) / 2);
}

.docs-arch-fork-stem {
  position: absolute;
  left: 0;
  right: 28px;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
  background: var(--d-tx);
  z-index: 1;
}

.docs-arch-fork-stem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--d-tx);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.docs-arch-fork-bar {
  position: absolute;
  right: 28px;
  top: 27px;
  bottom: 27px;
  width: 1.5px;
  background: var(--d-tx);
  z-index: 1;
}

.docs-arch-fork-branch {
  position: absolute;
  right: 0;
  width: 28px;
  height: 1.5px;
  transform: translateY(-50%);
  background: var(--d-tx);
  z-index: 1;
}

.docs-arch-fork-branch.is-top {
  top: 27px;
}

.docs-arch-fork-branch.is-bottom {
  bottom: 27px;
  transform: translateY(50%);
}

.docs-arch-fork-branch::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--d-tx);
  clip-path: polygon(100% 50%, 0 0, 0 100%);
}

.docs-arch-direct {
  grid-column: 1 / 6;
  grid-row: 2 / 6;
  position: relative;
  pointer-events: none;
  z-index: 2;
}

.docs-arch-direct-left {
  position: absolute;
  left: 59px;
  top: 99px;
  height: 71px;
  width: 1.5px;
  transform: translateX(-50%);
  background: var(--d-tx);
}

.docs-arch-direct-left::before,
.docs-arch-direct-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--d-tx);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.docs-arch-direct-right {
  position: absolute;
  right: 73px;
  top: 144px;
  height: 26px;
  width: 1.5px;
  transform: translateX(50%);
  background: var(--d-tx);
}

.docs-arch-direct-bar {
  position: absolute;
  left: 59px;
  right: 73px;
  top: 170px;
  height: 1.5px;
  transform: translateY(-50%);
  background: var(--d-tx);
}

.docs-arch-label.is-direct {
  left: 312px;
  top: 145px;
  transform: translateX(-50%);
  padding: 1px 6px;
  background: var(--d-surface);
}

/* ==========================================================================
   8. Education Page Components (.edu-*)
   ========================================================================== */
.edu-jump-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 32px;
  padding: 12px 16px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-surface);
}

.edu-jump-label {
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--d-muted);
  margin-right: 4px;
}

.edu-jump-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.docs-post-content a.edu-jump-pill,
.docs-post-content a.edu-jump-pill:visited {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--d-border-strong);
  border-radius: 999px;
  background: var(--d-bg);
  color: var(--d-body);
  font: 500 12.5px/1.25 var(--mono);
  text-decoration: none !important;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.docs-post-content a.edu-jump-pill:hover {
  color: var(--d-accent);
  border-color: var(--d-accent);
  background: var(--d-accent-soft);
  text-decoration: none !important;
}

.edu-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 32px;
}

.edu-pillar-card {
  padding: 20px 22px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
  transition: border-color 0.15s;
}

.edu-pillar-card:hover {
  border-color: var(--d-border-strong);
}

.edu-pillar-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.edu-pillar-card h3 {
  margin: 0 0 8px !important;
  font: 600 18px/1.3 var(--disp);
  color: var(--d-tx);
}

.edu-pillar-card p {
  margin: 0 !important;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--d-body);
}

.edu-bench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 22px;
}

.edu-bench-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
  overflow: hidden;
}

.edu-bench-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 12px;
  background: #070b12;
  border-bottom: 1px solid var(--d-border);
  overflow: hidden;
}

[data-theme="light"] .edu-bench-photo {
  background: #f1f5f9;
}

.edu-bench-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.edu-bench-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.edu-bench-tag {
  display: inline-block;
  margin-bottom: 6px;
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--d-accent);
}

.edu-bench-header h3 {
  margin: 0 0 8px !important;
  font: 600 18px/1.3 var(--disp);
  color: var(--d-tx);
}

.edu-bench-body p {
  margin: 0 0 14px !important;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--d-body);
  flex: 1;
}

.edu-rack-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 24px;
  align-items: center;
  margin: 24px 0 32px;
  padding: 22px 24px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
}

.edu-rack-media {
  border: 1px solid var(--d-border);
  border-radius: 10px;
  overflow: hidden;
  background: #070b12;
}

.edu-rack-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: cover;
}

.edu-rack-copy h3 {
  margin: 0 0 10px !important;
  font: 600 20px/1.3 var(--disp);
  color: var(--d-tx);
}

.edu-rack-copy h4 {
  margin: 16px 0 8px !important;
  font: 600 15px/1.35 var(--disp);
  color: var(--d-tx);
}

.edu-rack-copy p {
  margin: 0 0 12px !important;
  font-size: 14.5px;
  line-height: 1.6;
}

.edu-rack-copy ul {
  margin: 0 !important;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.55;
}

.edu-rack-copy li {
  margin-bottom: 6px;
}

.edu-workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 22px;
}

.edu-workflow-step {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
}

.edu-workflow-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.edu-workflow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font: 700 11.5px/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.edu-workflow-head h3 {
  margin: 0 !important;
  font: 600 17.5px/1.3 var(--disp);
  color: var(--d-tx);
}

.edu-workflow-step p {
  font-size: 14.5px;
  line-height: 1.58;
}

.edu-workflow-step .highlighter-rouge,
.edu-workflow-step figure.highlight {
  margin: 8px 0 12px;
}

.edu-workflow-foot {
  margin: auto 0 0 !important;
  padding-top: 8px;
  font-size: 13.5px !important;
  color: var(--d-muted) !important;
}

.edu-lab-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.edu-lab-head h4 {
  margin: 0 !important;
}

.edu-lab-meta {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--d-border-strong);
  border-radius: 5px;
  background: var(--d-bg);
  color: var(--d-muted);
  font: 500 11.5px/1.3 var(--mono);
  white-space: nowrap;
}

.docs-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.docs-card-title-row .docs-card-title {
  margin: 0;
}

.docs-card-title-row .docs-card-badge {
  margin: 0;
  flex-shrink: 0;
}

.edu-strip {
  padding: 6px 0 10px;
  margin: 18px 0 28px;
}

.edu-strip .edu-strip-panel {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.edu-strip .edu-strip-panel .stat {
  padding: 20px 15px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.edu-strip .edu-strip-panel .stat:first-child {
  border-left: 0;
}

.edu-strip .edu-strip-panel .stat:hover {
  background: transparent;
}

.edu-strip .edu-strip-panel .stat .n {
  font-size: clamp(28px, 3vw, 38px);
}

.edu-strip .edu-strip-panel .stat .k {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tx2);
}

@media (max-width: 860px) {
  .edu-pillars-grid,
  .edu-bench-grid,
  .edu-workflow-grid,
  .edu-rack-card {
    grid-template-columns: 1fr;
  }

  .edu-strip .edu-strip-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edu-strip .edu-strip-panel .stat {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .edu-strip .edu-strip-panel .stat:nth-child(odd) {
    border-left: 0;
  }

  .edu-strip .edu-strip-panel .stat:nth-child(1),
  .edu-strip .edu-strip-panel .stat:nth-child(2) {
    border-top: 0;
  }

  .edu-strip .edu-strip-panel .stat:nth-child(5) {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   9. Lab Syllabus Timeline (.edu-lab-timeline) & Topics Panel (.edu-topics-panel)
   ========================================================================== */
.edu-lab-timeline {
  list-style: none !important;
  margin: 22px 0 34px !important;
  padding: 0 !important;
  position: relative;
}

.edu-lab-step {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 24px;
  margin: 0 !important;
}

.edu-lab-step:last-child {
  padding-bottom: 0;
}

/* Continuous vertical line connecting Lab 1 -> Lab 7 */
.edu-lab-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 32px;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(180deg, var(--d-accent), var(--d-border));
  opacity: 0.55;
}

.edu-lab-marker {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2px;
  position: relative;
  z-index: 1;
}

.edu-lab-marker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  padding: 5px 0;
  border-radius: 999px;
  border: 1px solid var(--d-border-strong);
  background: var(--d-surface);
  color: var(--d-accent);
  font: 700 11.5px/1.2 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.edu-lab-body {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--d-border);
}

.edu-lab-step:last-child .edu-lab-body {
  padding-bottom: 0;
  border-bottom: 0;
}

.edu-lab-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.edu-lab-header h3 {
  margin: 0 !important;
  font: 600 17.5px/1.35 var(--disp) !important;
  color: var(--d-tx);
}

.edu-lab-header h3 a,
.docs-post-content .edu-lab-header h3 a,
.edu-topic-head h3 a,
.docs-post-content .edu-topic-head h3 a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--d-tx);
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.edu-lab-header h3 a .edu-lab-arrow {
  color: var(--d-muted);
  font-weight: 500;
  transition: transform 0.15s ease, color 0.15s ease;
}

.edu-lab-header h3 a:hover,
.docs-post-content .edu-lab-header h3 a:hover,
.edu-topic-head h3 a:hover,
.docs-post-content .edu-topic-head h3 a:hover {
  color: var(--d-accent);
  text-decoration: none !important;
}

.edu-lab-header h3 a:hover .edu-lab-arrow {
  color: var(--d-accent);
  transform: translateX(2px);
}

.edu-lab-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font: 500 11.5px/1.3 var(--mono);
  white-space: nowrap;
}

.edu-lab-body p {
  margin: 0 !important;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--d-body);
}

.edu-lab-body p + p {
  margin-top: 8px !important;
}

.edu-lab-body ul,
.docs-post-content .edu-lab-body ul {
  margin: 8px 0 0 !important;
  padding-left: 20px !important;
  list-style: disc !important;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--d-body);
}

.edu-lab-body li {
  margin-bottom: 5px;
}

.edu-lab-body li:last-child {
  margin-bottom: 0;
}

.edu-lab-body :not(pre) > code,
.docs-post-content .edu-lab-body :not(pre) > code {
  padding: 1.5px 5px;
  font-size: 12.5px;
  white-space: nowrap;
}

.edu-lab-body a:not(.btn):not(.docs-chip),
.docs-post-content .edu-lab-body a:not(.btn):not(.docs-chip) {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(2, 132, 199, 0.3);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.edu-lab-body a:not(.btn):not(.docs-chip):hover,
.docs-post-content .edu-lab-body a:not(.btn):not(.docs-chip):hover {
  border-bottom-color: var(--d-accent);
}

/* Lab plot figure cards inside .edu-lab-timeline and on /education/ */
.edu-lab-plots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.edu-lab-plots.is-single {
  grid-template-columns: minmax(0, 460px);
}

.edu-lab-plots.is-showcase {
  margin: 18px 0 28px;
}

.edu-lab-plot {
  margin: 0 !important;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
}

.edu-lab-plot-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-lab-plot img {
  display: block;
  width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Unified Divided Panel for Graduate & Special Topics */
.edu-topics-panel {
  margin: 20px 0 32px;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
  overflow: hidden;
}

.edu-topic-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 20px 24px;
  border-top: 1px solid var(--d-border);
}

.edu-topic-row:first-child {
  border-top: 0;
}

.edu-topic-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-topic-kicker {
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--d-accent);
}

.edu-topic-head h3 {
  margin: 0 !important;
  font: 600 16.5px/1.3 var(--disp) !important;
  color: var(--d-tx);
}

.edu-topic-desc p {
  margin: 0 !important;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--d-body);
}

@media (max-width: 720px) {
  .edu-lab-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .edu-lab-step:not(:last-child)::before {
    display: none;
  }

  .edu-lab-marker {
    justify-content: flex-start;
  }

  .edu-lab-plots {
    grid-template-columns: 1fr;
  }

  .edu-topic-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 18px;
  }
}

@media (max-width: 520px) {
  .edu-strip .edu-strip-panel {
    grid-template-columns: 1fr;
  }

  .edu-strip .edu-strip-panel .stat {
    border-left: 0 !important;
    border-top: 1px solid var(--line) !important;
  }

  .edu-strip .edu-strip-panel .stat:first-child {
    border-top: 0 !important;
  }
}

/* ==========================================================================
   10. Changelog (.cl-*)
   ========================================================================== */
.docs-container.is-standalone:has(.cl-page) .docs-main {
  max-width: 920px;
}

.cl-lead {
  max-width: 720px;
  margin: 0 0 28px !important;
  font: 400 16px/1.6 var(--body);
  color: var(--d-body);
}

.cl-page :not(pre) > code {
  border: 0;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
}

.cl-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--d-border);
  margin: 0 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cl-tabs::-webkit-scrollbar {
  display: none;
}

.cl-tab {
  position: relative;
  padding: 10px 0 12px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--d-muted);
  font: 500 14.5px/1.3 var(--disp);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.cl-tab:hover {
  color: var(--d-tx);
}

.cl-tab.is-active {
  color: var(--d-tx);
  font-weight: 600;
  border-bottom-color: var(--d-tx);
}

.cl-panel[hidden] {
  display: none !important;
}

.cl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 14px 0 28px;
}

.cl-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 13.5px/1.45 var(--body);
  color: var(--d-muted);
}

.cl-notice-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--d-muted);
}

.cl-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--d-border);
  border-radius: 7px;
  background: var(--d-surface);
  color: var(--d-tx);
  font: 500 12.5px/1.2 var(--disp);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.cl-expand-btn:hover {
  background: var(--d-surface-hover);
  border-color: var(--d-border-strong);
}

.cl-expand-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.cl-expand-btn.is-expanded .cl-expand-icon {
  transform: rotate(180deg);
}

.cl-entries {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cl-entry {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  scroll-margin-top: 88px;
}

.cl-side {
  padding-top: 6px;
}

.cl-version {
  display: block;
  font: 600 15px/1.3 var(--mono);
  color: var(--d-tx);
}

.cl-latest {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--d-accent-soft);
  color: var(--d-accent);
  font: 600 10px/1.2 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cl-date {
  display: block;
  margin-top: 7px;
  font: 400 13px/1.4 var(--body);
  color: var(--d-muted);
}

.cl-card {
  padding: 24px 28px;
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: var(--d-surface);
}

.cl-title,
.docs-post-content h3.cl-title {
  margin: 0 0 8px !important;
  font: 600 17.5px/1.35 var(--disp) !important;
  color: var(--d-tx);
}

.cl-desc {
  margin: 0 0 18px !important;
  font: 400 14.5px/1.6 var(--body);
  color: var(--d-body);
}

.cl-details {
  border: 1px solid var(--d-border-strong);
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.06);
  overflow: hidden;
}

[data-theme="light"] .cl-details {
  border-color: #d8e0ea;
  background: #eef2f7;
}

.cl-details + .cl-details {
  margin-top: 10px;
}

.cl-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.cl-summary::marker {
  content: "";
}

.cl-summary-head {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.cl-summary-title {
  font: 600 14.5px/1.3 var(--disp);
  color: var(--d-tx);
}

.cl-summary-count {
  font: 400 13px/1.3 var(--body);
  color: var(--d-muted);
}

.cl-chevron {
  width: 16px;
  height: 16px;
  color: var(--d-muted);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.cl-details[open] .cl-chevron {
  transform: rotate(180deg);
}

.cl-list,
.docs-post-content ul.cl-list {
  margin: 0 !important;
  padding: 2px 22px 16px 36px !important;
  list-style: disc !important;
}

.cl-list li,
.docs-post-content ul.cl-list li {
  margin: 6px 0 !important;
  font: 400 14px/1.6 var(--body);
  color: var(--d-body);
}

@media (max-width: 720px) {
  .cl-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cl-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 0;
  }

  .cl-latest {
    margin-top: 0;
  }

  .cl-date {
    flex-basis: 100%;
    margin-top: 0;
  }

  .cl-card {
    padding: 20px;
  }
}

/* ==========================================================================
   11. MCP Chat Demo Graphic (.mcp-chat-demo)
   ========================================================================== */
.mcp-chat-demo {
  margin: 22px 0 32px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-bg);
  overflow: hidden;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.3);
}

.mcp-chat-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--d-surface);
  border-bottom: 1px solid var(--d-border);
}

.mcp-chat-title {
  flex: 1;
  text-align: center;
  padding-right: 42px;
  color: var(--d-muted);
  font: 500 12px/1.2 var(--body);
}

.mcp-chat-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px 18px;
}

.mcp-msg {
  display: flex;
}

.mcp-msg-user {
  justify-content: flex-end;
}

.mcp-msg-ai {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.mcp-ai-steps {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--d-muted);
  font: 600 13.5px/1.35 var(--body);
}

.mcp-ai-steps > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mcp-ai-steps > span::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 1px;
  transform: rotate(-45deg) translateY(-1px);
  flex-shrink: 0;
}

.mcp-msg-user .mcp-bubble {
  max-width: 75%;
  padding: 8px 14px;
  border-radius: 18px;
  background: var(--d-surface-hover);
  color: var(--d-tx);
  font: 400 14.5px/1.45 var(--body);
}

.mcp-ai-text {
  max-width: 88%;
  color: var(--d-body);
  font: 400 14.5px/1.6 var(--body);
}

.mcp-chat-footer {
  padding: 0 20px 16px;
  user-select: none;
  pointer-events: none;
}

.mcp-chat-input-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--d-border-strong);
  border-radius: 16px;
  background: var(--d-surface);
}

.mcp-chat-placeholder {
  color: var(--d-muted);
  font: 400 14px/1.4 var(--body);
}

.mcp-chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0277bd;
  color: #ffffff;
  flex-shrink: 0;
}

/* Markdown tables have no .docs-table-wrap; on phones let them scroll on their own instead of widening the page */
@media (max-width: 900px) {
  .docs-post-content > table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
  }
}

/* Mobile docs menu: one sticky bar (section + current page) that opens the sidebar as a dropdown */
.docs-nav-toggle {
  display: none;
}

@media (max-width: 820px) {
  .docs-sidebar {
    position: sticky;
    top: 68px;
    z-index: 30;
    margin: -8px -20px 0;
    padding: 8px 20px;
    border-bottom: 1px solid var(--d-border);
    background: var(--d-bg);
    background: color-mix(in srgb, var(--d-bg) 88%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    overflow: visible;
  }
  .docs-nav-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 12px 9px 14px;
    border: 1px solid var(--d-border);
    border-radius: 10px;
    background: var(--d-surface);
    color: var(--d-tx);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .docs-nav-toggle-label {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
  }
  .docs-nav-toggle small {
    font: 600 10.5px/1.3 var(--disp);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--d-accent);
  }
  .docs-nav-toggle b {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font: 600 15px/1.35 var(--disp);
  }
  .docs-nav-toggle svg {
    flex: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--d-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
  }
  .docs-sidebar.open .docs-nav-toggle svg {
    transform: rotate(180deg);
  }
  .docs-sidebar-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 6px);
    max-height: calc(100vh - 170px);
    max-height: calc(100dvh - 170px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 10px 14px;
    border: 1px solid var(--d-border);
    border-radius: 14px;
    background: var(--d-bg);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.3s;
  }
  .docs-sidebar.open .docs-sidebar-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
  }
  .docs-mode-switch {
    margin-bottom: 10px;
  }
  .docs-mode-pill,
  .docs-mode-pill:visited {
    padding: 8px;
    font-size: 13px;
  }
  .docs-sidebar-link,
  .docs-sidebar-link:visited {
    padding: 9px 10px;
    font-size: 15px;
  }
  .docs-post-content :is(h2, h3, h4)[id] {
    scroll-margin-top: 150px;
  }
}

/* ==========================================================================
   8. Pure HTML/CSS RF Spectrum Allocation Figure (.docs-spectrum-*)
   ========================================================================== */
.docs-spectrum-figure {
  margin: 22px 0 30px;
}

.docs-spectrum-card {
  padding: 20px 20px 18px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surface);
}

.docs-spectrum-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--d-border);
}

.docs-spectrum-title {
  color: var(--d-tx);
  font: 600 14.5px/1.3 var(--disp);
}

.docs-spectrum-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font: 500 12px/1.3 var(--body);
  color: var(--d-muted);
}

.docs-spectrum-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.docs-spectrum-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}

.docs-spectrum-dot.is-ism {
  background: var(--d-green-tx);
}

.docs-spectrum-dot.is-licensed {
  background: var(--d-amber-tx);
}

.docs-spectrum-dot.is-restricted {
  background: var(--d-red-tx);
}

.docs-spectrum-tier + .docs-spectrum-tier {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--d-border);
}

.docs-spectrum-tier-label {
  margin-bottom: 8px;
  font: 600 12px/1.3 var(--mono);
  color: var(--d-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
}

.docs-spectrum-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(82px, 1fr));
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.docs-spectrum-track.is-midband {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
}

.docs-spectrum-track.is-mmwave {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.docs-spectrum-band {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 9px 10px;
  border-radius: 7px;
  border: 1px solid var(--d-border);
  background: var(--d-bg);
  min-height: 78px;
  text-align: left;
}

.docs-spectrum-band.is-ism {
  background: var(--d-green-bg);
  border-color: rgba(52, 211, 153, 0.35);
}

.docs-spectrum-band.is-licensed {
  background: var(--d-amber-bg);
  border-color: rgba(251, 191, 36, 0.32);
}

.docs-spectrum-band.is-restricted {
  background: var(--d-red-bg);
  border-color: rgba(248, 113, 113, 0.35);
}

.docs-spectrum-band.is-gap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  background: transparent;
  color: var(--d-muted);
  font: 500 11px/1.2 var(--mono);
  text-align: center;
  padding: 6px 4px;
}

.docs-spectrum-freq {
  font: 600 11px/1.25 var(--mono);
  color: var(--d-tx);
  margin-bottom: 4px;
  white-space: nowrap;
}

.docs-spectrum-band.is-ism .docs-spectrum-freq {
  color: var(--d-green-tx);
}

.docs-spectrum-band.is-licensed .docs-spectrum-freq {
  color: var(--d-amber-tx);
}

.docs-spectrum-band.is-restricted .docs-spectrum-freq {
  color: var(--d-red-tx);
}

.docs-spectrum-name {
  font: 600 12px/1.25 var(--body);
  color: var(--d-tx);
  margin-bottom: 5px;
}

.docs-spectrum-note {
  font: 400 11px/1.32 var(--body);
  color: var(--d-body);
}

.docs-spectrum-caption {
  margin-top: 10px;
  font: 400 13px/1.45 var(--body);
  color: var(--d-muted);
  text-align: left;
  text-wrap: pretty;
}

@media (max-width: 820px) {
  .docs-spectrum-track {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }
  .docs-spectrum-track.is-mmwave {
    grid-template-columns: 1fr;
  }
  .docs-spectrum-band.is-gap {
    min-height: 32px;
  }
}

/* ==========================================================================
   9. UCLA Deployment Page (/deployments/ucla/)
   ========================================================================== */
.ucla-filter-bar {
  margin-bottom: 14px;
}

.ucla-filter-search-wrap {
  flex: 1 1 220px;
}

.ucla-filter-search {
  width: 100%;
  min-width: 180px;
}

.ucla-dev-row[hidden] {
  display: none !important;
}

.ucla-handle-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--d-accent);
  font: 600 13.5px/1.4 var(--mono);
  cursor: pointer;
  text-align: left;
}

.ucla-handle-btn:hover {
  text-decoration: underline;
}

.cl-tab[hidden],
#ucla-modal-overview-box[hidden],
.ucla-s21-subbar[hidden],
.ucla-nonlin-bar[hidden] {
  display: none !important;
}

.ucla-modal-desc {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--d-body);
}

.ucla-modal-ports-line {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--d-muted);
}

.ucla-s21-subbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.ucla-subtabs {
  margin: 0;
  gap: 20px;
}

.ucla-subtabs .cl-tab {
  padding: 6px 0 8px;
  font-size: 13.5px;
}

.ucla-modal-trace-info {
  font-size: 13px;
  color: var(--d-muted);
}

.ucla-modal-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 300px;
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
}

.ucla-modal-stage img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.ucla-modal-stage img[hidden],
.ucla-modal-placeholder[hidden] {
  display: none !important;
}

.ucla-modal-placeholder {
  text-align: center;
  color: var(--d-muted);
  font-size: 13.5px;
}

.ucla-modal-placeholder p {
  margin: 0 0 6px;
}

.ucla-placeholder-path {
  margin: 0 !important;
  font-size: 12.5px;
}

.ucla-modal-foot {
  margin-top: 10px;
}

.ucla-modal-foot[hidden] {
  display: none !important;
}

.ucla-modal-foot-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   10. UCLA Pure HTML/CSS Device Schematic Diagram (Clean Technical Gray)
   ========================================================================== */

.ucla-schematic-wrap {
  --sch-grid: rgba(148, 163, 184, 0.04);
  --sch-coax-outer: #64748b;
  --sch-coax-core: #cbd5e1;
  --sch-boot: #1e293b;
  --sch-boot-border: #475569;
  --sch-pluto-shell: #141c28;
  --sch-pluto-border: #475569;
  --sch-pluto-bumper: #1c2636;
  --sch-pluto-face: #0e141f;
  --sch-pluto-face-border: #263244;
  --sch-cyl-top: #334155;
  --sch-cyl-hi: #475569;
  --sch-cyl-mid: #1e293b;
  --sch-cyl-bot: #0f172a;
  --sch-cyl-border: #94a3b8;
  --sch-hex-top: #334155;
  --sch-hex-mid: #475569;
  --sch-hex-bot: #1e293b;
  --sch-hex-border: #94a3b8;
  --sch-tx: #f8fafc;
  --sch-muted: #94a3b8;
  --sch-dim: #64748b;
  --sch-ant-radome-top: #334155;
  --sch-ant-radome-hi: #475569;
  --sch-ant-radome-mid: #1e293b;
  --sch-ant-radome-bot: #0f172a;

  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 10px;
  box-sizing: border-box;
  background-image:
    linear-gradient(var(--sch-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sch-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
  border-radius: 6px;
  user-select: none;
}

.ucla-schematic-wrap[hidden] {
  display: none !important;
}

[data-theme="light"] .ucla-schematic-wrap {
  --sch-grid: rgba(15, 23, 42, 0.035);
  --sch-coax-outer: #475569;
  --sch-coax-core: #cbd5e1;
  --sch-boot: #334155;
  --sch-boot-border: #1e293b;
  --sch-pluto-shell: #f1f5f9;
  --sch-pluto-border: #94a3b8;
  --sch-pluto-bumper: #dce4ee;
  --sch-pluto-face: #ffffff;
  --sch-pluto-face-border: #cbd5e1;
  --sch-cyl-top: #f8fafc;
  --sch-cyl-hi: #ffffff;
  --sch-cyl-mid: #e2e8f0;
  --sch-cyl-bot: #cbd5e1;
  --sch-cyl-border: #475569;
  --sch-hex-top: #cbd5e1;
  --sch-hex-mid: #e2e8f0;
  --sch-hex-bot: #94a3b8;
  --sch-hex-border: #475569;
  --sch-tx: #0f172a;
  --sch-muted: #475569;
  --sch-dim: #64748b;
  --sch-ant-radome-top: #475569;
  --sch-ant-radome-hi: #64748b;
  --sch-ant-radome-mid: #334155;
  --sch-ant-radome-bot: #1e293b;
}

.ucla-schematic-svg {
  display: block;
  max-width: 100%;
  height: 176px;
  width: auto;
  margin: 0 auto;
  overflow: visible;
}

.ucla-svg-poe-title {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 11.5px;
  font-weight: 700;
  fill: var(--sch-tx);
  letter-spacing: 0.4px;
}

.ucla-svg-poe-sub {
  font-family: var(--body, -apple-system, sans-serif);
  font-size: 8px;
  font-weight: 600;
  fill: var(--sch-dim);
  letter-spacing: 0.5px;
}

.ucla-svg-pluto-model {
  font-family: var(--body, -apple-system, sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  fill: var(--sch-dim);
}

.ucla-svg-pluto-name {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 18px;
  font-weight: 700;
  fill: var(--sch-tx);
  letter-spacing: 0.3px;
}

.ucla-svg-port-usb {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 7.5px;
  font-weight: 600;
  fill: var(--sch-muted);
  letter-spacing: 0.5px;
}

.ucla-svg-port-rf {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10px;
  font-weight: 600;
  fill: var(--sch-muted);
  letter-spacing: 0.4px;
}

.ucla-sch-coax-jacket {
  fill: none;
  stroke: var(--sch-coax-outer);
  stroke-width: 8;
  stroke-linecap: square;
  stroke-linejoin: round;
  transition: stroke 0.15s ease, filter 0.15s ease;
}

.ucla-sch-coax-core {
  fill: none;
  stroke: var(--sch-coax-core);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: round;
}

.ucla-sch-block-text {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 700;
  fill: var(--sch-tx);
  letter-spacing: 0.3px;
}

.ucla-sch-loop[hidden],
.ucla-sch-antenna-area[hidden],
.ucla-ant-chain-item[hidden],
.ucla-svg-poe-assembly[hidden],
.ucla-svg-pluto[hidden],
.ucla-sch-dev-group[hidden],
.ucla-sch-dev-group [data-sch-only][hidden],
.ucla-sch-dev-group [data-sch-except][hidden] {
  display: none !important;
}

.ucla-svg-patch {
  fill: var(--sch-pluto-bumper);
  stroke: var(--sch-muted);
  stroke-width: 0.8;
}

.ucla-svg-trace {
  fill: none;
  stroke: var(--sch-muted);
  stroke-width: 0.9;
  stroke-linejoin: round;
}

.ucla-svg-hole {
  fill: var(--sch-pluto-face);
  stroke: var(--sch-pluto-border);
  stroke-width: 1.2;
}

.ucla-svg-hole-mount {
  fill: var(--sch-pluto-face);
  stroke: var(--sch-pluto-border);
  stroke-width: 2;
}

.ucla-svg-pin {
  fill: none;
  stroke: var(--sch-muted);
  stroke-width: 0.8;
}

/* Interactive Clickable SVG Schematic Components */
.ucla-sch-interactive {
  cursor: pointer;
  outline: none;
}

.ucla-sch-interactive .ucla-svg-barrel,
.ucla-sch-interactive .ucla-svg-pluto-shell,
.ucla-sch-interactive use {
  transition: stroke 0.15s ease, filter 0.15s ease;
}

.ucla-sch-interactive:hover .ucla-svg-barrel,
.ucla-sch-interactive:focus-visible .ucla-svg-barrel,
.ucla-sch-interactive:hover .ucla-svg-pluto-shell,
.ucla-sch-interactive:focus-visible .ucla-svg-pluto-shell {
  stroke: #38bdf8;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.38));
}

.ucla-sch-interactive:hover use,
.ucla-sch-interactive:focus-visible use {
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.45)) brightness(1.08);
}

.ucla-sch-interactive:hover .ucla-sch-coax-jacket,
.ucla-sch-interactive:focus-visible .ucla-sch-coax-jacket {
  stroke: #38bdf8;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.35));
}

/* UCLA By the Numbers & Usage Breakdown */
.ucla-stats-strip {
  padding: 6px 0 10px;
  margin: 14px 0 34px;
}

.ucla-strip-panel {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ucla-strip-panel .stat {
  padding: 20px 16px;
}

.ucla-strip-panel .stat .n {
  font-size: clamp(28px, 3vw, 38px);
}

.ucla-strip-panel .stat .k {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.ucla-usage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.ucla-usage-grid[hidden] {
  display: none;
}

.ucla-usage-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ucla-usage-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  min-width: 0;
}

.ucla-usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ucla-usage-head h3 {
  margin: 0 !important;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--d-tx);
  letter-spacing: -0.01em;
}

.ucla-usage-pill {
  font: 500 11.5px/1.2 var(--mono);
  color: var(--tx2);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.ucla-type-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ucla-type-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: 8px;
  cursor: default;
  outline: none;
  transition: background 0.14s ease;
}

.ucla-type-row:hover,
.ucla-type-row:focus-visible {
  background: rgba(160, 190, 255, 0.06);
}

[data-theme="light"] .ucla-type-row:hover,
[data-theme="light"] .ucla-type-row:focus-visible {
  background: rgba(15, 23, 42, 0.04);
}

.ucla-type-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

.ucla-type-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.ucla-type-name {
  font-weight: 500;
  color: var(--d-tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ucla-type-badge {
  font: 500 10.5px/1.2 var(--mono);
  color: var(--tx3);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.ucla-type-val {
  font: 400 11.5px/1.2 var(--mono);
  color: var(--tx2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.ucla-type-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(160, 190, 255, 0.09);
  overflow: hidden;
}

.ucla-type-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--mag));
  transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ucla-type-bar-fill.is-other {
  background: var(--tx3);
  opacity: 0.65;
}

.ucla-bar-chart {
  display: grid;
  height: 74px;
  align-items: stretch;
  width: 100%;
}

.ucla-bar-chart-hour {
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
}

.ucla-bar-chart-day {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.ucla-bar-col {
  display: flex;
  align-items: flex-end;
  height: 100%;
  cursor: pointer;
  outline: none;
}

.ucla-bar {
  width: 100%;
  border-radius: 3px 3px 1px 1px;
  opacity: 0.86;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.ucla-bar.is-day {
  background: var(--cyan);
}

.ucla-bar.is-off,
.ucla-bar.is-peak {
  background: var(--mag);
}

.ucla-bar-col:hover .ucla-bar,
.ucla-bar-col:focus-visible .ucla-bar {
  opacity: 1;
  filter: brightness(1.18);
}

.ucla-chart-axis {
  margin-top: 6px;
  font: 400 11px/1.2 var(--mono);
  color: var(--tx3);
}

.ucla-chart-axis-hour {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
}

.ucla-chart-axis-hour span:nth-child(1) {
  grid-column: 1 / span 4;
  text-align: left;
}

.ucla-chart-axis-hour span:nth-child(2) {
  grid-column: 6 / span 3;
  text-align: center;
}

.ucla-chart-axis-hour span:nth-child(3) {
  grid-column: 12 / span 3;
  text-align: center;
}

.ucla-chart-axis-hour span:nth-child(4) {
  grid-column: 18 / span 3;
  text-align: center;
}

.ucla-chart-axis-hour span:nth-child(5) {
  grid-column: 21 / span 4;
  text-align: right;
}

.ucla-chart-axis-day {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}

.ucla-chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font: 400 11.5px/1.3 var(--mono);
  color: var(--tx3);
}

.ucla-chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ucla-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ucla-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.ucla-swatch.is-day {
  background: var(--cyan);
}

.ucla-swatch.is-off {
  background: var(--mag);
}

.ucla-chart-readout {
  color: var(--tx2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ucla-stats-tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #0b1120;
  border: 1px solid var(--line2);
  color: #f8fafc;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  font: 400 11.5px/1.35 var(--mono);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.ucla-stats-tip.is-visible {
  opacity: 1;
  transform: none;
}

.ucla-stats-tip-title {
  font-weight: 600;
  color: #f8fafc;
}

.ucla-stats-tip-val {
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

[data-theme="light"] .ucla-stats-tip {
  background: #0f172a;
  border-color: rgba(15, 23, 42, 0.25);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

[data-theme="light"] .ucla-usage-card {
  background: #fff;
  box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .ucla-usage-pill {
  background: #f8fafc;
}

[data-theme="light"] .ucla-type-bar-track {
  background: rgba(15, 23, 42, 0.08);
}

@media (max-width: 860px) {
  .ucla-strip-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ucla-strip-panel .stat {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .ucla-strip-panel .stat:nth-child(odd) {
    border-left: 0;
  }

  .ucla-strip-panel .stat:nth-child(1),
  .ucla-strip-panel .stat:nth-child(2) {
    border-top: 0;
  }

  .ucla-strip-panel .stat:nth-child(5) {
    grid-column: 1 / -1;
  }

  .ucla-usage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ucla-strip-panel {
    grid-template-columns: 1fr;
  }

  .ucla-strip-panel .stat {
    border-left: 0 !important;
    border-top: 1px solid var(--line) !important;
  }

  .ucla-strip-panel .stat:first-child {
    border-top: 0 !important;
  }

  .ucla-type-meta {
    flex-direction: column;
    gap: 2px;
  }
}

.ucla-hm-card {
  margin-top: 16px;
}

.ucla-hm-card[hidden] {
  display: none;
}

.ucla-hm-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 11px/1.2 var(--mono);
  color: var(--tx3);
  flex-wrap: wrap;
}

.ucla-hm-legend-label {
  color: var(--tx2);
  font-weight: 500;
}

.ucla-hm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ucla-hm-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.ucla-hm-scroll {
  overflow-x: auto;
  padding-bottom: 2px;
}

.ucla-hm-grid {
  display: grid;
  grid-template-columns: 146px repeat(var(--hm-cols, 28), minmax(16px, 1fr));
  gap: 4px;
  align-items: center;
  min-width: 680px;
}

.ucla-hm-corner,
.ucla-hm-dev {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #101622;
  padding-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ucla-hm-corner {
  font: 600 11.5px/1.2 var(--body);
  color: var(--tx2);
  align-self: end;
  padding-bottom: 2px;
}

.ucla-hm-dev {
  font: 500 11.5px/1.2 var(--mono);
  color: var(--d-tx);
  padding-top: 2px;
  padding-bottom: 2px;
}

.ucla-hm-dev-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--d-tx);
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ucla-hm-dev-btn:hover,
.ucla-hm-dev-btn:focus-visible {
  color: var(--d-accent);
  text-decoration: underline;
}

.ucla-hm-day-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  user-select: none;
}

.ucla-hm-month {
  font: 400 9.5px/1 var(--mono);
  color: var(--tx3);
}

.ucla-hm-daynum {
  font: 600 10.5px/1.1 var(--mono);
  color: var(--tx2);
}

.ucla-hm-cell {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 3px;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.12s ease, filter 0.12s ease;
}

.ucla-hm-cell:hover,
.ucla-hm-cell:focus-visible {
  box-shadow: inset 0 0 0 1.5px var(--d-accent);
  position: relative;
  z-index: 1;
}

.ucla-hm-cell.lv-0,
.ucla-hm-swatch.lv-0 {
  background: rgba(139, 184, 232, 0.08);
}

.ucla-hm-cell.lv-1,
.ucla-hm-swatch.lv-1 {
  background: #003b5c;
}

.ucla-hm-cell.lv-2,
.ucla-hm-swatch.lv-2 {
  background: #005587;
}

.ucla-hm-cell.lv-3,
.ucla-hm-swatch.lv-3 {
  background: #2774ae;
}

.ucla-hm-cell.lv-4,
.ucla-hm-swatch.lv-4 {
  background: #8bb8e8;
}

[data-theme="light"] .ucla-hm-corner,
[data-theme="light"] .ucla-hm-dev {
  background: #fff;
}

[data-theme="light"] .ucla-hm-cell.lv-0,
[data-theme="light"] .ucla-hm-swatch.lv-0 {
  background: #edf1f5;
}

[data-theme="light"] .ucla-hm-cell.lv-1,
[data-theme="light"] .ucla-hm-swatch.lv-1 {
  background: #cfe4f9;
}

[data-theme="light"] .ucla-hm-cell.lv-2,
[data-theme="light"] .ucla-hm-swatch.lv-2 {
  background: #8bb8e8;
}

[data-theme="light"] .ucla-hm-cell.lv-3,
[data-theme="light"] .ucla-hm-swatch.lv-3 {
  background: #2774ae;
}

[data-theme="light"] .ucla-hm-cell.lv-4,
[data-theme="light"] .ucla-hm-swatch.lv-4 {
  background: #003b5c;
}

@media (prefers-reduced-motion: reduce) {
  .ucla-type-bar-fill,
  .ucla-stats-tip,
  .ucla-hm-cell {
    transition: none !important;
  }
}
