.docs-tag { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); padding: 4px 7px; border-radius: 2px; background: rgba(0, 229, 255,.1); margin-left: 4px; }
.docs-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 200px; gap: 40px; padding-block: 40px 80px; align-items: start; }
.side, .toc { position: sticky; top: 88px; display: grid; gap: 2px; max-height: calc(100vh - 110px); overflow-y: auto; }
.side .grp, .toc .grp { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.side .grp:first-child, .toc .grp:first-child { margin-top: 0; }
.side a, .toc a { color: var(--ink-2); font-size: 14px; padding: 5px 10px; border-radius: 2px; }
.side a:hover, .toc a:hover { color: var(--ink); background: rgba(255,255,255,.05); text-decoration: none; }
.side a[aria-current="page"] { color: var(--cyan); background: rgba(0, 229, 255,.08); }
.toc a { font-size: 13px; padding: 4px 8px; }
.doc { max-width: 760px; display: grid; gap: 16px; align-content: start; }
.doc h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.02; margin-bottom: 4px; }
.doc h2 { font-size: 26px; line-height: 1.15; margin-top: 22px; scroll-margin-top: 84px; }
.doc h3 { margin-top: 10px; scroll-margin-top: 84px; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc code { font: 500 .9em var(--mono); color: var(--ink); background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 2px; }
.doc :not(pre) > code { overflow-wrap: anywhere; }
.doc > :is(p, ul, ol, blockquote, .note), .doc li > p { max-width: 60ch; }
.doc pre { margin: 0; padding: 16px 18px; border-radius: 2px; background: var(--bg-2); border: 1px solid var(--line); overflow-x: auto; }
.doc pre code { background: none; padding: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.doc table.t td code { white-space: nowrap; }
.doc table.t td code.long { white-space: normal; }
.doc table.t td:has(> code.long) { min-width: 15rem; }
.doc .note.planned { --c: var(--violet); }
.doc .note.draft { --c: var(--amber); }
@media (max-width: 1180px) { .docs-grid { grid-template-columns: 210px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 820px) { .docs-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  .side { position: static; max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); } .side .grp { grid-column: 1 / -1; } }
.doc .ed { display: inline-block; font: 600 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px; vertical-align: 2px; margin-right: 4px; border: 1px solid; }
.doc .ed-community { color: var(--ok); border-color: rgba(63, 211, 138, .45); background: var(--ok-soft); }
.doc .ed-pro { color: var(--cyan); border-color: rgba(0, 229, 255, .45); background: rgba(0, 229, 255, .1); }
.doc .ed-enterprise { color: var(--violet); border-color: rgba(183, 165, 255, .45); background: var(--violet-soft); }
.doc .shot-pending { display: grid; gap: 6px; place-content: center; text-align: center; aspect-ratio: 21 / 8; max-width: 100%; margin: 8px 0 20px;
  border: 2px dashed rgba(255, 181, 71, .55); border-radius: 2px; background: repeating-linear-gradient(135deg, rgba(255, 181, 71, .05) 0 16px, transparent 16px 32px), var(--bg-2); }
.doc figure.shot { margin: 8px 0 22px; display: grid; gap: 8px; }
.doc figure.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 2px; background: var(--bg-2); }
.doc figure.shot figcaption { font-size: 13.5px; color: var(--muted); }
.doc .shot-pending b { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.doc .shot-pending span { font-size: 14.5px; color: var(--ink-2); padding: 0 16px; }
.doc .hw { margin: 8px 0 24px; }
.doc .hw-wide { display: none; } .doc .hw-tall { display: block; max-width: 420px; margin: 0; }

.ed-badge { --c: #9fb0c8; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 6px; border-radius: 2px; white-space: nowrap; vertical-align: 1px; margin-right: 4px;
  border: 1px solid color-mix(in srgb, var(--c) 48%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); cursor: default; outline-offset: 2px; }
.ed-badge.ed-pro { --c: #00e5ff; } .ed-badge.ed-enterprise { --c: #8fbef5; }
.ed-badge .ed-mark { color: var(--c); flex: none; }
.ed-badge .ed-name { font: 500 11px/1 var(--mono, "IBM Plex Mono", ui-monospace, monospace); letter-spacing: .08em; color: var(--ink, #f4f7fb); }
.ed-badge .ed-tip { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); padding: 7px 10px; border-radius: 2px; background: #0b111c; border: 1px solid rgba(216, 225, 234, .24);
  color: #f4f7fb; font: 500 12px/1.3 var(--body, "Inter", system-ui, sans-serif); letter-spacing: 0; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; }
.ed-badge:hover .ed-tip, .ed-badge:focus .ed-tip, .ed-badge:focus-within .ed-tip { opacity: 1; visibility: visible; }
.ed-badge.tip-left .ed-tip { right: auto; left: 0; }
.doc .hwc-fig { margin: 22px 0; max-width: none; }
.hwc { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr) 96px minmax(0, .9fr); align-items: stretch; }
.hwc-box { border: 1px solid var(--line-2); border-radius: 2px; background: var(--bg-2); padding: 12px 14px; display: grid; gap: 8px; align-content: start; }
.hwc-box.core { border-color: var(--cyan); }
.hwc-h { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.hwc ul, .hwc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hwc ol { counter-reset: s; }
.doc .hwc li { font-size: 13px; line-height: 1.45; color: var(--ink); max-width: none; margin: 0; }
.hwc ol li { counter-increment: s; } .hwc ol li::before { content: counter(s) " "; font: 500 11px var(--mono); color: var(--muted); margin-right: 4px; }
.doc .hwc-box p { margin: 0; font-size: 13px; color: var(--ink-2); max-width: none; }
.hwc-arrow { display: grid; align-content: center; justify-items: center; gap: 6px; padding: 0 6px; }
.hwc-arrow span { font: 500 10px/1.2 var(--mono); color: var(--ink-2); text-align: center; }
.hwc-arrow i { display: block; width: 100%; height: 2px; background: var(--cyan); position: relative; }
.hwc-arrow i::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--cyan); border-right-width: 0; }
.doc .hwc-cap { margin-top: 10px; font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: none; }
.hwc-cap b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 860px) {
  .hwc { grid-template-columns: minmax(0, 1fr); }
  .hwc ul, .hwc ol { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .hwc-arrow { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; padding: 5px 14px; }
  .hwc-arrow i { width: 2px; height: 16px; order: -1; } .hwc-arrow i::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top-color: var(--cyan); border-bottom-width: 0; }
}
.doc .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 20px 0 8px; max-width: none; }
.doc .tile { border: 1px solid var(--line-2); border-radius: 2px; background: var(--bg-2); padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.doc .tile b { color: var(--ink); font-size: 14px; } .doc .tile span { color: var(--ink-2); font-size: 13px; line-height: 1.45; }

.doc figure.dwg { --cs-paper: #0a1120; --cs-ground: #080d17; --cs-ground-2: #0d1422; --cs-line: rgba(216, 225, 234, .12); --cs-line-2: rgba(216, 225, 234, .22);
  --cs-ctl: #6b778c; --cs-ink: #f4f7fb; --cs-ink-2: #c3cddb; --cs-muted: #8794a9; --cs-label: #00e5ff; --cs-link: #4aa8ff;
  --cs-ok: #4ade80; --cs-amber: #fbbf24; --cs-red: #f87171; --cs-ok-f: rgba(74, 222, 128, .14); --cs-amber-f: rgba(251, 191, 36, .16); --cs-red-f: rgba(248, 113, 113, .14);
  --cs-g0: #00e5ff; --cs-g1: #1e90ff; --cs-ink-b: #d3effa; --cs-hi: #b9f6ff;
  --cs-sheet: rgba(10, 19, 33, .8); --cs-slab: rgba(13, 27, 47, .94); --cs-mark: rgba(9, 16, 28, .94); --cs-a-grid: .12; --cs-a-thin: .55;
  margin: 12px 0 26px; display: grid; border: 1px solid var(--cs-line-2); border-radius: 2px; overflow: hidden; background: var(--cs-ground-2); color-scheme: dark; }
.doc figure.dwg > .cs-sheet { border: 0; border-bottom: 1px solid var(--cs-line); border-radius: 0; }
.doc figure.dwg > .cs-sheet.pan { border: 1px solid var(--cs-ctl); }
.doc figure.dwg figcaption { display: grid; gap: 5px; padding: 12px 16px 13px; font: 500 11.5px/1.45 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cs-ink-2); }
.doc figure.dwg figcaption b { font-weight: 600; color: var(--cs-label); }
.doc figure.dwg figcaption .sub { font: 400 13.5px/1.5 var(--body, "Inter", system-ui, sans-serif); letter-spacing: 0; text-transform: none; color: var(--cs-muted); }
.doc figure.dwg .ch-code { font: 400 10px var(--mono); letter-spacing: 0; text-transform: none; fill: var(--cs-ink-2); }
.doc figure.dwg .ch-code.is-diff { fill: var(--cs-amber); }
.doc figure.dwg .ai-fn { fill: var(--cs-ink); font-weight: 600; }
.doc figure.dwg .ai-back { fill: var(--cs-ink); }
.doc figure.dwg .hw-sheet { padding: clamp(14px, 2vw, 24px); }
