/* The Docs page (dashboard/docs.js), in the terminal's language (docs/DESIGN-LANGUAGE.md): --ob-* tokens from
   theme.css. Two spaces, Learn and Developers: a slim docs bar under the header carries the switch between them (a
   segmented control, the current space on a flat fill). Below it a quiet docs list on the left in groups with search
   on top, one reading column, the page's sections on the right. A space's landing page opens with "start here" cards. The column is at most 68ch of 15px text (16px on a phone); the current doc sits on a soft fill, "On this
   page" marks the section in view. Links in the text are ink at 510, never underlined. Code blocks are raised panels
   with a Copy button; their tinting is greys only. No accent stripes, nothing animates. Phones: a slim bar under the
   header opens the list as a bottom sheet. */
:root {
  --line: var(--ob-line);
  --line2: var(--ob-line-hi);
  --q8: color-mix(in srgb, var(--ob-ink) 8%, transparent);
  --q6: color-mix(in srgb, var(--ob-ink) 6%, transparent);
  --q4: color-mix(in srgb, var(--ob-ink) 4%, transparent);
  /* the grid, shared by the docs bar (so the switch sits over the list) and the page */
  --dcols: 240px minmax(0, 720px) 200px;
  --dgap: 56px;
  /* the one accent: Omnibook teal (docs/DESIGN-LANGUAGE.md), for the docs' figures, steps and eyebrows only */
  --tl: #5ec8c7;
  --tl-bg: rgba(94, 200, 199, 0.08);
  --tl-line: rgba(94, 200, 199, 0.3);
  --dpadx: 32px;
  --dbarh: 48px;
  --dstick: calc(var(--hdr, 52px) + var(--dbarh));
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: var(--sans); font-size: 14px; line-height: 1.45; font-feature-settings: "cv01", "ss03"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: var(--fg2); text-decoration: none; transition: color var(--ease), background-color var(--ease); }
@media (hover: hover) { a:hover { color: var(--fg); } }
.dim { color: var(--fg2); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--cyan) 72%, transparent); outline-offset: 0; }

/* three columns: the docs list, the reading column (68ch), the sections */
.docs { display: grid; font-size: 15px; grid-template-columns: var(--dcols); gap: var(--dgap); justify-content: center; padding: 36px var(--dpadx) 120px; }
.dside, .dtoc { position: sticky; top: calc(var(--dstick) + 28px); align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - var(--dstick) - 52px); overflow-y: auto; scrollbar-width: none; }
.dside::-webkit-scrollbar, .dtoc::-webkit-scrollbar { display: none; }
.dgrab { display: none; }
.dgrp { display: flex; flex-direction: column; gap: 2px; margin: 0 0 18px; }
.dside .dgl, .dtoc .dtl { font-size: 12px; font-weight: 510; color: var(--fg3); padding: 0 10px 6px; letter-spacing: 0.01em; }
.dside .dlist a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 510; line-height: 20px; color: var(--fg2); }
@media (hover: hover) { .dside .dlist a:hover { color: var(--fg); background: var(--q4); } }
.dside .dlist a[aria-current="page"] { color: var(--fg); background: var(--q6); }

/* search: a quiet field on the panel fill, results in place of the list while there is a query */
.dsearch { position: relative; display: flex; align-items: center; margin: 0 0 18px; }
.dsearch > svg { position: absolute; z-index: 1; left: 11px; width: 14px; height: 14px; color: var(--fg3); pointer-events: none; }
.dsearch input { width: 100%; height: 36px; padding: 0 34px 0 32px; border: 0; border-radius: 10px; background: var(--ob-fill); box-shadow: inset 0 0 0 1px var(--ob-line); color: var(--fg); font: 400 14px/20px var(--sans); -webkit-appearance: none; appearance: none; }
.dsearch input::placeholder { color: var(--fg3); }
.dsearch input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.dsearch input:focus, .dsearch input:focus-visible { outline: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
@media (hover: none) { .dkbd { display: none; } }
.dkbd { position: absolute; right: 8px; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; background: var(--q6); color: var(--fg3); font: 500 11px/1 var(--sans); }
.dsearch input:focus ~ .dkbd, .searching .dkbd { display: none; }
.dres { display: flex; flex-direction: column; gap: 2px; }
.dres[hidden], .dlist[hidden] { display: none; }
.dres .dr { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; color: var(--ink2); }
.dres .dr[aria-selected="true"] { background: var(--q6); }
@media (hover: hover) { .dres .dr:hover { background: var(--q4); } }
.dr-t { font-size: 14px; font-weight: 510; line-height: 20px; color: var(--fg); }
.dr-p { font-size: 12px; line-height: 16px; color: var(--fg3); }
.dr-x { font-size: 12.5px; line-height: 18px; color: var(--fg2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.dres mark { background: var(--q8); color: var(--fg); border-radius: 3px; padding: 0 1px; }
.dres-n { margin: 4px 10px; font-size: 13px; line-height: 19px; color: var(--fg2); }

/* "On this page": the active item is white text on a flat tint, as the left list marks its page (no rail: critic r9) */
.dtoc a { display: block; padding: 4px 10px; border-radius: 6px; font-size: 13px; line-height: 18px; color: var(--fg2); }
.dtoc a.l3 { padding-left: 22px; font-size: 12.5px; }
@media (hover: hover) { .dtoc a:hover { color: var(--fg); } }
.dtoc a[aria-current="true"] { color: var(--fg); background: var(--q6); }
.dtoc code { font-family: var(--mono); font-size: 0.92em; }

/* the reading column */
.dbody { min-width: 0; max-width: 720px; font-size: 15px; line-height: 1.65; color: var(--ink2); }
/* the page header: the group as a small teal eyebrow, the title, then the page's one-line description */
.dbody .deyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 510; line-height: 18px; color: var(--tl); }
.dbody h1 { font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: var(--fg); margin: 0 0 10px; }
.dbody h1 + p, .dbody .dlead { font-size: 17px; line-height: 1.55; color: var(--fg2); margin-bottom: 28px; }
.dbody .dlead b { color: var(--fg); font-weight: 510; }
.dbody h2 { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--fg); margin: 48px 0 12px; scroll-margin-top: calc(var(--dstick) + 16px); }
.dbody h3 { font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--fg); margin: 30px 0 8px; scroll-margin-top: calc(var(--dstick) + 16px); }
.dbody h4 { font-size: 14px; font-weight: 500; color: var(--fg); margin: 24px 0 6px; scroll-margin-top: calc(var(--dstick) + 16px); }
/* a heading's link: a small icon after it, shown on hover or keyboard focus; it copies the section's address */
.dbody .hl { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 6px; vertical-align: -3px; border-radius: 6px; color: var(--fg3); opacity: 0; }
.dbody .hl svg { width: 15px; height: 15px; }
.dbody .hl:focus-visible { opacity: 1; }
.dbody .hl.done { color: var(--ob-ok); opacity: 1; }
@media (hover: hover) { .dbody h2:hover .hl, .dbody h3:hover .hl, .dbody h4:hover .hl { opacity: 1; } .dbody .hl:hover { color: var(--fg); background: var(--q6); } }
.dbody p { margin: 0 0 16px; }
.dbody b { color: var(--fg); font-weight: 510; }
.dbody a { color: var(--fg); font-weight: 510; text-decoration: none; }
@media (hover: hover) { .dbody a:hover { color: var(--ob-brand-2); } }
.dbody ul, .dbody ol { margin: 0 0 16px; padding-left: 22px; }
.dbody li { margin: 6px 0; }
.dbody li::marker { color: var(--fg3); }
.dbody li > ul, .dbody li > ol { margin: 6px 0 0; }
/* a quote is a quiet raised note, no coloured bar */
.dbody blockquote { margin: 0 0 18px; padding: 14px 18px; background: var(--ob-surface); border: 1px solid var(--ob-surface-line); border-radius: 12px; color: var(--fg); }
.dbody code { font-family: var(--mono); font-size: 0.86em; padding: 1px 5px; border-radius: 5px; background: var(--q6); color: var(--fg); overflow-wrap: anywhere; }
/* code: a raised panel, its language and Copy on a thin header */
.dbody .code { margin: 0 0 20px; border-radius: 12px; background: var(--ob-surface); border: 1px solid var(--ob-surface-line); overflow: hidden; }
.dbody .code-h { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--ob-line-lo); font-size: 12px; font-weight: 510; color: var(--fg3); }
.dbody .copy { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--fg2); font: 510 12px/1 var(--sans); cursor: pointer; }
@media (hover: hover) { .dbody .copy:hover { color: var(--fg); background: var(--q6); } }
.dbody pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.dbody pre code { padding: 0; background: none; font-size: 13px; line-height: 1.6; white-space: pre; color: var(--ink2); overflow-wrap: normal; }
.dbody pre .tk { color: var(--fg); }
.dbody pre .ts { color: #b8c4d6; }
.dbody pre .tn { color: #e6dcc8; }
.dbody pre .tc { color: var(--fg3); }
.dbody .tw { overflow-x: auto; margin: 4px 0 20px; }
.dbody .tw:focus-visible { outline-offset: 2px; }
.dbody table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.dbody th { text-align: left; font-size: 12px; font-weight: 510; color: var(--fg2); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.dbody td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ob-line-lo); vertical-align: top; }
.dbody tr:last-child td { border-bottom: 0; }
.dbody td:first-child { color: var(--fg); }
.dbody td:first-child code { white-space: nowrap; }
.dretry { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ob-fill); color: var(--fg); font: 510 14px/1 var(--sans); cursor: pointer; }
/* previous / next: two quiet panels at the end of the page */
.dpn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 64px 0 0; padding-top: 28px; border-top: 1px solid var(--ob-line-lo); }
.dpn a { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px; background: transparent; border: 1px solid var(--ob-surface-line); color: var(--fg); font-weight: 510; min-width: 0; }
.dpn a span { font-size: 12px; font-weight: 510; color: var(--fg3); }
.dpn a b { font-size: 15px; font-weight: 510; overflow-wrap: anywhere; }
.dpn .dpn-i { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--fg3); }
.dpn .dpn-p { padding-left: 44px; } .dpn .dpn-p .dpn-i { left: 16px; transform: scaleX(-1); }
.dpn .dpn-n { text-align: right; align-items: flex-end; padding-right: 44px; } .dpn .dpn-n .dpn-i { right: 16px; }
@media (hover: hover) { .dpn a:hover { background: var(--ob-surface); border-color: var(--ob-line-hi); color: var(--fg); } .dpn a:hover .dpn-i { color: var(--tl); } }
/* sections are <details> (docs.js): open and plain on wider screens, folded to a 52px title on a phone */
.dsec > summary { display: block; list-style: none; cursor: default; }
.dsec > summary::-webkit-details-marker { display: none; }
.dsec > summary:focus-visible { outline: 0; }

/* the docs bar: the space switch, on the same grid as the page so it sits over the list; sticks under the header */
.dbar { position: sticky; top: var(--hdr, 52px); z-index: 15; background: var(--bg); border-bottom: 1px solid var(--line); }
.dbar-in { display: grid; grid-template-columns: var(--dcols); column-gap: var(--dgap); justify-content: center; align-items: center; height: var(--dbarh); padding: 0 var(--dpadx); font-size: 15px; }
.dbar-in > .dspace { grid-column: 1 / -1; justify-self: start; }
.dbar-pg, .dbar-s, .dscrim { display: none; }
/* the switch: a 34px segmented control on the input fill; each option is a 44px-tall tap, its pill drawn inside */
.dspace { position: relative; display: flex; isolation: isolate; }
.dspace::before { content: ""; position: absolute; inset: 7px 0; z-index: -1; border-radius: 10px; background: var(--ob-fill); }
.dspace a { position: relative; display: inline-flex; align-items: center; height: 48px; padding: 0 14px; font-size: 13.5px; font-weight: 510; line-height: 1; color: var(--fg2); white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.dspace a::before { content: ""; position: absolute; inset: 10px 3px; z-index: -1; border-radius: 7px; }
.dspace a[aria-current="page"] { color: var(--fg); }
.dspace a[aria-current="page"]::before { background: var(--ob-fill-hi); }
@media (hover: hover) { .dspace a:not([aria-current]):hover { color: var(--fg); } }
.dspace a:focus-visible { outline: 0; }
.dspace a:focus-visible::before { outline: 3px solid color-mix(in srgb, var(--cyan) 72%, transparent); }

/* "start here" cards on a space's landing page: four quiet panels, two by two */
.dbody .dcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 36px; }
.dbody .dcard { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 12px; background: var(--ob-surface); border: 1px solid var(--ob-surface-line); color: var(--fg); min-width: 0; }
.dbody .dcard b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.dbody .dcard span { font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--fg2); }
@media (hover: hover) { .dbody .dcard:hover { background: var(--ob-raise); color: var(--fg); } }
/* a page that is still being written */
.dbody .dsoon { color: var(--fg2); }
/* a ```diagram block: plain-text flow in monospace, a quiet box that scrolls on its own */
.dbody .diagram { margin: 4px 0 22px; border-radius: 12px; border: 1px solid var(--ob-surface-line); background: var(--q4); }
.dbody .diagram pre { padding: 16px 18px; }
.dbody .diagram code { padding: 0; background: none; font-family: var(--mono); font-size: 12.5px; line-height: 1.3; white-space: pre; color: var(--fg); overflow-wrap: normal; }
.dbody .diagram pre:focus-visible { outline-offset: -3px; border-radius: 12px; }

@media (max-width: 1240px) { :root { --dcols: 220px minmax(0, 720px); --dgap: 48px; } .dtoc { display: none; } }
@media (max-width: 900px) { :root { --dcols: 200px minmax(0, 1fr); --dgap: 36px; --dpadx: 24px; } .docs { padding: 28px var(--dpadx) 96px; } }
@media (max-width: 760px) {
  :root { --dbarh: 48px; }
  .docs { display: block; padding: 0 16px 72px; }
  /* the bar, one 48px row under the header: the space switch, the page you're on (opens the list), search */
  .dbar-in { display: flex; align-items: center; gap: 8px; padding: 0 4px 0 12px; }
  .dspace { flex: none; }
  .dspace a { padding: 0 12px; }
  .dbar button { display: flex; align-items: center; min-height: 48px; border: 0; background: none; color: var(--fg); font: 510 14px/20px var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .dbar-pg { flex: 1; min-width: 0; justify-content: flex-end; gap: 8px; padding: 0 0 0 4px; text-align: right; }
  .dbar-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dbar-k { display: none; }
  .dbar-pg svg { flex: none; width: 10px; height: 6px; color: var(--fg2); }
  .dbar-s { flex: none; justify-content: center; width: 44px; padding: 0; color: var(--fg2); }
  .dbar-s svg { width: 18px; height: 18px; }
  /* the list: a bottom sheet over the bottom bar, its handle drags it down */
  .dscrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.66); touch-action: none; overscroll-behavior: contain; }
  .dside { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 61; display: none; max-height: 86vh; max-height: 86dvh; padding: 0 12px calc(16px + env(safe-area-inset-bottom)); gap: 0;
    background: #0d0d0f; border-radius: 20px 20px 0 0; box-shadow: 0 0 0 1px var(--ob-line-hi), 0 -24px 64px rgba(0, 0, 0, 0.6); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .dnav-open .dside { display: flex; }
  .dgrab { display: block; position: sticky; top: 0; z-index: 1; flex: none; height: 28px; margin: 0 -12px; background: #0d0d0f; touch-action: none; cursor: grab; }
  .dgrab::before { content: ""; position: absolute; left: 50%; top: 10px; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--ob-fill-hi); }
  .dsearch { position: sticky; top: 28px; z-index: 1; margin: 0 -12px 8px; padding: 0 12px 8px; background: #0d0d0f; }
  .dsearch > svg { left: 23px; }
  .dsearch input { height: 44px; font-size: 16px; }
  .dkbd { display: none; }
  .dgrp { margin-bottom: 12px; }
  .dside .dlist a { display: flex; align-items: center; min-height: 44px; font-size: 15px; padding: 0 12px; }
  .dres .dr { padding: 10px 12px; }
  .dbody { font-size: 16px; padding-top: 20px; }
  .dbody h1 { font-size: 26px; margin-bottom: 8px; }
  .dbody h1 + p, .dbody .dlead { font-size: 16px; margin-bottom: 22px; }
  .dbody .hl { display: none; }
  .dlong .dsec { border-top: 1px solid var(--line); }
  .dlong .dsec:last-of-type { border-bottom: 1px solid var(--line); }
  .dbody.dlong .dsec + p, .dbody.dlong .tw + .dsec, .dbody.dlong p + .dsec { margin-top: 8px; }
  .dlong .dsec > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; }
  .dlong .dsec > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--cyan) 72%, transparent); outline-offset: -3px; }
  .dlong .dsec > summary::after { content: ""; flex: none; width: 10px; height: 6px; margin-left: auto; background: var(--fg2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 6px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 6px no-repeat; }
  .dlong .dsec[open] > summary::after { transform: rotate(180deg); }
  .dbody.dlong .dsec h2 { font-size: 16.5px; margin: 0; padding: 0; border: 0; scroll-margin-top: calc(var(--dstick) + 8px); }
  .dbody h2 { font-size: 19px; margin-top: 40px; }
  .dbody h3, .dbody h4 { scroll-margin-top: calc(var(--dstick) + 8px); }
  .dlong .dsb { padding: 0 0 16px; }
  .dbody .code { margin-left: -4px; margin-right: -4px; }
  .dbody pre { padding: 12px 14px; }
  .dbody pre code { font-size: 12.5px; }
  .dbody .dcards { grid-template-columns: 1fr; gap: 8px; margin-bottom: 28px; }
  .dbody .dcard { padding: 14px 16px; }
  .dbody .diagram code { font-size: 11.5px; }
  .dbody .diagram pre { padding: 12px 14px; }
  .dpn { grid-template-columns: 1fr; gap: 8px; margin-top: 32px; }
  .dpn .dpn-n { text-align: left; align-items: flex-start; padding-right: 44px; }
  .dpn > span:empty { display: none; }
}
/* touch: links in the lists are 44px taps on a tablet too (critic r1: 34px at 768) */
@media (pointer: coarse) { .dside .dlist a, .dtoc a, .dres .dr { min-height: 44px; display: flex; } .dside .dlist a, .dtoc a { align-items: center; } .dbody .code-h { height: 44px; padding-right: 2px; } .dbody .copy { height: 44px; padding: 0 14px; } }
/* touch: a guide link in a table cell is a 44px tap (critic r4: 17px) */
@media (pointer: coarse) { .dbody td > a:only-child, .dbody li > a:only-child { display: inline-flex; align-items: center; min-height: 44px; } }
/* a narrow phone: the bar says "Pages" instead of the page's title */
@media (max-width: 359px) { .dbar-t { display: none; } .dbar-k { display: inline; color: var(--fg2); } .dspace a { padding: 0 10px; } .dbar-in { gap: 4px; } }
/* touch (r16 devices: the search box 36px and the heading link 24x24 on an iPad): a 44px search field (16px text, so
   iOS never zooms it) and the heading link shown dimmed, since a finger cannot hover */
@media (pointer: coarse) {
  .dsearch input { height: 44px; font-size: 16px; }
  .dbody .hl { opacity: 0.55; } /* its 44px tap is the ob-hit extension (nav.css) */
}

/* ---------- components (docs.js: ```cards, ```glance, ```flow, ```clock, ```payoff, ```belief, :::note/tip/warning,
   :::steps, :::tabs, :::details, docs-art figures). Mintlify's grammar in the app's language: hairline frames on the
   black ground, one teal accent for the figure's point, greys for everything else. Flat tints only: no accent stripes,
   no gradients, nothing animates. ---------- */
.dbody figure { margin: 0; }
.dbody figcaption { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--fg3); }
.dbody .ic { flex: none; width: 20px; height: 20px; }
/* a framed figure */
.dbody .xflow, .dbody .xclock, .dbody .xbelief, .dbody .xart { margin: 8px 0 28px; padding: 22px 22px 18px; border-radius: 14px; background: var(--ob-surface); border: 1px solid var(--ob-surface-line); }

/* cards: icon, title, one line; a linked card shows an arrow and lifts its edge on hover */
.dbody .xcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 28px; }
.dbody .xcards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dbody .xcards.c1 { grid-template-columns: minmax(0, 1fr); }
.dbody .xcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 12px; border: 1px solid var(--ob-surface-line); background: transparent; color: var(--fg); font-weight: 400; min-width: 0; transition: border-color var(--ease), background-color var(--ease); }
.dbody .xcard .xc-i { width: 20px; height: 20px; margin-bottom: 6px; color: var(--tl); }
.dbody .xcard > b { font-size: 15px; font-weight: 510; line-height: 1.35; color: var(--fg); padding-right: 18px; }
.dbody .xcard span b { font-size: inherit; font-weight: 510; padding: 0; }
.dbody .xcard span { font-size: 13.5px; line-height: 1.5; color: var(--fg2); }
.dbody .xcard span code { font-size: 0.9em; }
.dbody .xcard .xc-go { position: absolute; top: 18px; right: 16px; width: 15px; height: 15px; color: var(--fg3); transition: color var(--ease); }
@media (hover: hover) { .dbody a.xcard:hover { border-color: var(--ob-line-hi); background: var(--ob-surface); color: var(--fg); } .dbody a.xcard:hover .xc-go { color: var(--tl); } }

/* at a glance: key / value tiles in one hairline frame */
.dbody .xglance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 28px; border: 1px solid var(--ob-surface-line); border-radius: 12px; overflow: hidden; }
.dbody .xglance > div { padding: 14px 16px; border-right: 1px solid var(--ob-surface-line); border-bottom: 1px solid var(--ob-surface-line); margin: 0 -1px -1px 0; min-width: 0; }
.dbody .xglance dt { font-size: 12px; font-weight: 510; line-height: 16px; color: var(--fg3); }
.dbody .xglance dd { margin: 4px 0 0; font-size: 14.5px; font-weight: 510; line-height: 1.4; color: var(--fg); overflow-wrap: anywhere; }
.dbody .xglance dd code { font-weight: 400; }
/* a short last row: its tiles share the width */
.dbody .xglance > div:nth-child(3n+1):last-child { grid-column: span 3; }
.dbody .xglance > div:nth-child(3n+2):last-child { grid-column: span 2; }

/* a flow: stops on one line (vertical on a phone); the accent stop is the teal dot */
.dbody .xflow { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 14px; padding-left: 22px; }
.dbody .xflow li { position: relative; margin: 0; padding: 26px 0 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dbody .xflow li::before { content: ""; position: absolute; left: 6px; right: -20px; top: 6px; height: 1px; background: var(--ob-line-hi); }
.dbody .xflow li:last-child::before { display: none; }
.dbody .xflow .xf-dot { position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ob-surface); box-shadow: inset 0 0 0 1.5px var(--fg3); }
.dbody .xflow li.acc .xf-dot { background: var(--tl); box-shadow: 0 0 0 4px var(--tl-bg); }
.dbody .xflow b { font-size: 14px; font-weight: 510; line-height: 1.35; color: var(--fg); }
.dbody .xflow li.acc b { color: var(--tl); }
.dbody .xflow span { font-size: 12.5px; line-height: 1.45; color: var(--fg2); }

/* the clock: bars on a log time scale */
.dbody .xk-rows { display: flex; flex-direction: column; gap: 16px; }
.dbody .xk-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 18px; }
.dbody .xk-l { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dbody .xk-l b { font-size: 14px; font-weight: 510; line-height: 1.35; color: var(--fg); }
.dbody .xk-l span { font-size: 12.5px; line-height: 1.4; color: var(--fg3); }
.dbody .xk-t { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; height: 22px; }
.dbody .xk-b { display: block; flex: none; height: 8px; border-radius: 4px; background: var(--ob-fill-hi); font-style: normal; }
.dbody .xk-t em { flex: none; font-style: normal; font-size: 13px; font-weight: 510; color: var(--fg2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dbody .xk-row.acc .xk-b { background: var(--tl); }
.dbody .xk-row.acc .xk-t em, .dbody .xk-row.acc .xk-l b { color: var(--tl); }
.dbody .xk-ax { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; margin-top: 14px; }
.dbody .xk-ax > div { position: relative; height: 22px; border-top: 1px solid var(--ob-line); }
.dbody .xk-ax i { position: absolute; top: 0; padding-top: 6px; font-style: normal; font-size: 11.5px; color: var(--fg3); white-space: nowrap; transform: translateX(-50%); }
.dbody .xk-ax i:first-child { transform: none; }
.dbody .xk-ax i::before { content: ""; position: absolute; left: 50%; top: -1px; width: 1px; height: 5px; background: var(--ob-line-hi); }
.dbody .xk-ax i:first-child::before { left: 0; }

/* payoffs: a drawn sketch over a title and one line */
.dbody .xpay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 28px; }
.dbody .xp { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--ob-surface-line); overflow: hidden; min-width: 0; }
.dbody .xp-a { position: relative; padding: 16px 16px 22px; background: var(--ob-surface); border-bottom: 1px solid var(--ob-line-lo); }
.dbody .xp-a svg { display: block; width: 100%; height: 72px; overflow: visible; }
.dbody .xp-a i { position: absolute; right: 12px; bottom: 5px; font-style: normal; font-size: 11px; color: var(--fg3); }
.dbody .xp svg path { fill: none; vector-effect: non-scaling-stroke; }
.dbody .xp .pf-p { stroke: var(--tl); stroke-width: 1.75; stroke-linejoin: round; }
.dbody .xp .pf-f { fill: var(--tl-bg); stroke: none; }
.dbody .xp .pf-k { stroke: var(--fg3); stroke-width: 1; stroke-opacity: 0.6; }
.dbody .xp .pf-s { stroke: var(--ob-down-soft); stroke-opacity: 0.45; stroke-width: 1; }
.dbody .xp .pf-w { stroke: var(--ink2); stroke-width: 1.4; stroke-linejoin: round; }
.dbody .xp .pf-q { stroke: var(--fg3); stroke-width: 1; stroke-opacity: 0.6; stroke-linejoin: round; }
.dbody .xp .pf-hit { stroke: var(--tl); stroke-width: 3; stroke-linecap: round; }
.dbody .xp figcaption { margin: 0; padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.dbody .xp figcaption b { font-size: 14px; font-weight: 510; color: var(--fg); }
.dbody .xp figcaption span { font-size: 13px; line-height: 1.45; color: var(--fg2); }

/* one belief, every price: a line x length grid tinted by price */
.dbody .xb-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 14px; }
.dbody .xb-h .ic { width: 18px; height: 18px; color: var(--tl); }
.dbody .xb-h b { font-size: 14px; font-weight: 510; color: var(--fg); }
.dbody .xb-h span { font-size: 13px; color: var(--fg3); }
.dbody .xbelief .tw { margin: 0; }
.dbody .xbelief table { border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; margin: -3px; width: calc(100% + 6px); }
.dbody .xbelief th { padding: 6px 8px; border: 0; font-size: 12px; color: var(--fg3); text-align: center; }
.dbody .xbelief thead th:first-child, .dbody .xbelief tbody th { text-align: left; }
.dbody .xbelief tbody th { color: var(--fg); font-size: 13px; font-weight: 510; white-space: nowrap; }
.dbody .xbelief tbody th span { display: block; font-size: 11.5px; font-weight: 400; color: var(--fg3); }
.dbody .xbelief td { padding: 9px 6px; border: 0; border-radius: 6px; text-align: center; font-size: 13.5px; color: var(--fg); }
.dbody .xbelief tbody td.h0 { background: rgba(94, 200, 199, 0.03); color: var(--fg2); }
.dbody .xbelief tbody td.h1 { background: rgba(94, 200, 199, 0.06); }
.dbody .xbelief tbody td.h2 { background: rgba(94, 200, 199, 0.09); }
.dbody .xbelief tbody td.h3 { background: rgba(94, 200, 199, 0.12); }
.dbody .xbelief tbody td.h4 { background: rgba(94, 200, 199, 0.15); }
.dbody .xbelief tbody td.h5 { background: rgba(94, 200, 199, 0.19); }
.dbody .xbelief tbody td.h6 { background: rgba(94, 200, 199, 0.23); }
.dbody .xbelief tbody td.h7 { background: rgba(94, 200, 199, 0.27); }
.dbody .xbelief tbody td.h8 { background: rgba(94, 200, 199, 0.31); }
.dbody .xbelief tbody td.h9 { background: rgba(94, 200, 199, 0.36); }

/* callouts: an icon and a flat tint, the whole box edged (never a left stripe) */
.dbody .xcall { display: flex; gap: 12px; margin: 8px 0 24px; padding: 14px 16px; border-radius: 12px; background: var(--q4); border: 1px solid var(--ob-surface-line); color: var(--ink2); font-size: 14.5px; line-height: 1.6; }
.dbody .xcall-i { width: 18px; height: 18px; margin-top: 2px; color: var(--fg2); }
.dbody .xcall-b { min-width: 0; flex: 1; }
.dbody .xcall-b p, .dbody .xcall-b ul { margin-bottom: 8px; }
.dbody .xcall-b > :last-child { margin-bottom: 0; }
.dbody .xcall-b .xcall-t { color: var(--fg); font-weight: 510; margin-bottom: 2px; }
.dbody .xcall.tip { background: var(--tl-bg); border-color: rgba(94, 200, 199, 0.22); }
.dbody .xcall.tip .xcall-i { color: var(--tl); }
.dbody .xcall.warning { background: rgba(232, 176, 75, 0.07); border-color: rgba(232, 176, 75, 0.24); }
.dbody .xcall.warning .xcall-i { color: var(--amber); }
.dbody .xcall.check .xcall-i { color: var(--ob-ok); }

/* steps: numbers on a rail */
.dbody .xsteps { list-style: none; margin: 8px 0 28px; padding: 0; }
.dbody .xsteps > li { position: relative; margin: 0; padding: 0 0 22px 46px; }
.dbody .xsteps > li::before { content: ""; position: absolute; left: 14px; top: 35px; bottom: 6px; width: 1px; background: var(--ob-line); }
.dbody .xsteps > li:last-child { padding-bottom: 4px; }
.dbody .xsteps > li:last-child::before { display: none; }
.dbody .xs-n { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; border-radius: 50%; background: var(--ob-surface); box-shadow: inset 0 0 0 1px var(--ob-line-hi); font-size: 13px; font-weight: 510; color: var(--fg); font-variant-numeric: tabular-nums; }
.dbody .xs-b { min-width: 0; }
.dbody .xs-b p { margin-bottom: 10px; }
.dbody .xs-b > :last-child { margin-bottom: 0; }
.dbody .xs-b .xs-t { margin: 3px 0 6px; font-size: 15px; font-weight: 510; color: var(--fg); line-height: 1.45; }
.dbody .xs-b .code, .dbody .xs-b .xtabs { margin-top: 10px; margin-bottom: 10px; }

/* tabs: a bar of languages over the code; the first code block's Copy sits in the bar */
.dbody .xtabs { position: relative; margin: 8px 0 24px; border-radius: 12px; background: var(--ob-surface); border: 1px solid var(--ob-surface-line); overflow: hidden; }
.dbody .xt-bar { display: flex; gap: 2px; height: 42px; padding: 0 84px 0 6px; border-bottom: 1px solid var(--ob-line-lo); overflow-x: auto; scrollbar-width: none; }
.dbody .xt-bar::-webkit-scrollbar { display: none; }
.dbody .xt-bar button { position: relative; flex: none; height: 42px; padding: 0 10px; border: 0; background: none; color: var(--fg3); font: 510 13px/1 var(--sans); cursor: pointer; }
.dbody .xt-bar button[aria-selected="true"] { color: var(--fg); }
.dbody .xt-bar button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1.5px; border-radius: 1px; background: var(--tl); }
@media (hover: hover) { .dbody .xt-bar button:hover { color: var(--fg); } }
.dbody .xt-bar button:focus-visible { outline-offset: -3px; }
.dbody .xt-p > :not(.code) { margin-left: 16px; margin-right: 16px; }
.dbody .xt-p > :first-child:not(.code) { margin-top: 14px; }
.dbody .xt-p > :last-child:not(.code) { margin-bottom: 14px; }
.dbody .xt-p .code { margin: 0; border: 0; border-radius: 0; background: transparent; }
.dbody .xt-p > .code:first-child .code-h { position: absolute; top: 0; right: 0; height: 42px; border: 0; padding: 0 6px; background: var(--ob-surface); }
.dbody .xt-p > .code:first-child .code-h span { display: none; }
.dbody .xt-p > .code + .code { border-top: 1px solid var(--ob-line-lo); }

/* details: a folded section */
.dbody .xdet { margin: 8px 0 16px; border: 1px solid var(--ob-surface-line); border-radius: 12px; }
.dbody .xdet + .xdet { margin-top: -8px; }
.dbody .xdet > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 510; color: var(--fg); }
.dbody .xdet > summary::-webkit-details-marker { display: none; }
.dbody .xdet > summary::after { content: ""; flex: none; width: 10px; height: 6px; margin-left: auto; background: var(--fg2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 6px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 6px no-repeat; }
.dbody .xdet[open] > summary::after { transform: rotate(180deg); }
.dbody .xdet > summary:focus-visible { outline-offset: -3px; border-radius: 12px; }
@media (hover: hover) { .dbody .xdet > summary:hover { background: var(--q4); border-radius: 11px; } }
.dbody .xdet-b { padding: 2px 16px 4px; font-size: 14.5px; }
.dbody .xdet-b > :last-child { margin-bottom: 12px; }

/* a hand-drawn figure (dashboard/docs-art/*.svg), inlined: it styles itself with these classes. A figure may carry a
   wide and a tall drawing (.a-wide / .a-tall); a phone shows the tall one. */
.dbody .xart-s svg { display: block; width: 100%; height: auto; }
.dbody .xart-s .a-tall { display: none; }
.dbody .xart-x .xart-s { display: none; }
.dbody .xart-s .a-line { stroke: var(--ob-line-hi); fill: none; }
.dbody .xart-s .a-faint { stroke: var(--ob-line); fill: none; }
.dbody .xart-s .a-mute { fill: var(--fg3); }
.dbody .xart-s .a-ink { fill: var(--fg); }
.dbody .xart-s .a-ink2 { fill: var(--fg2); }
.dbody .xart-s .a-tl { fill: var(--tl); }
.dbody .xart-s .a-tls { stroke: var(--tl); fill: none; }
.dbody .xart-s .a-box { fill: var(--ob-card); stroke: var(--ob-line-hi); }
.dbody .xart-s .a-tlbox { fill: var(--tl-bg); stroke: var(--tl-line); }
.dbody .xart-s text { font-family: var(--sans); }

@media (max-width: 900px) {
  .dbody .xcards.c3, .dbody .xpay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dbody .xk-row, .dbody .xk-ax { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .dbody .xflow, .dbody .xclock, .dbody .xbelief, .dbody .xart { padding: 18px 16px 14px; margin-left: -4px; margin-right: -4px; }
  .dbody .xart-s .a-wide { display: none; }
  .dbody .xart-s .a-tall { display: block; }
  .dbody .xcards, .dbody .xcards.c3 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dbody .xcard { padding: 14px 40px 14px 50px; }
  .dbody .xcard > b { padding-right: 0; }
  .dbody .xcard .xc-i { position: absolute; left: 16px; top: 15px; margin: 0; }
  .dbody .xcard .xc-go { top: 17px; }
  .dbody .xglance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dbody .xglance > div { padding: 12px 14px; }
  .dbody .xglance > div:nth-child(n):last-child { grid-column: auto; }
  .dbody .xglance > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* the flow turns vertical: stops down a rail */
  .dbody .xflow { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; padding-left: 16px; }
  .dbody .xflow li { padding: 0 0 18px 28px; }
  .dbody .xflow li:last-child { padding-bottom: 2px; }
  .dbody .xflow li::before { left: 6px; right: auto; top: 16px; bottom: -2px; width: 1px; height: auto; }
  .dbody .xflow .xf-dot { top: 3px; }
  .dbody .xflow span { font-size: 13.5px; }
  .dbody .xk-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dbody .xk-ax { grid-template-columns: minmax(0, 1fr); }
  .dbody .xk-ax > span { display: none; }
  .dbody .xpay { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dbody .xp-a { padding: 12px 12px 20px; }
  .dbody .xp-a svg { height: 56px; }
  .dbody .xp figcaption { padding: 10px 12px 12px; }
  .dbody .xp figcaption span { font-size: 12.5px; }
  .dbody .xbelief td { padding: 8px 2px; font-size: 12.5px; }
  .dbody .xbelief th { padding: 6px 4px; }
  .dbody .xbelief tbody th { font-size: 12px; padding-left: 0; }
  .dbody .xsteps > li { padding-left: 42px; }
  .dbody .xtabs { margin-left: -4px; margin-right: -4px; }
  .dbody .xcall { font-size: 15px; }
}
@media (pointer: coarse) { .dbody .xt-bar, .dbody .xt-bar button { height: 44px; } .dbody .xt-p > .code:first-child .code-h { height: 44px; } }

/* ---------- the design pass (r27, vihan: "no colors, no design… looking just plain"). Colour with meaning on the black
   ground: teal is the docs' accent (eyebrows, the current page, links, step numbers, focus); green and red say pays and
   loses; a calm blue is the end and time; amber warns; violet and blue are the other agents and tiles. Flat tints and
   one soft single-hue glow behind the hero art; no gradients across hues, no left stripes, nothing animates. ---------- */
:root {
  --tl: #5ec8c7; --tl-bg: rgba(94, 200, 199, 0.09); --tl-line: rgba(94, 200, 199, 0.32);
  --c-up: #34d399; --c-up-bg: rgba(52, 211, 153, 0.1);
  --c-dn: #f87171; --c-dn-bg: rgba(248, 113, 113, 0.1);
  --c-bl: #7ea6f6; --c-bl-bg: rgba(126, 166, 246, 0.1);
  --c-vi: #b39cf0; --c-vi-bg: rgba(179, 156, 240, 0.1);
  --c-am: #e8b04b; --c-am-bg: rgba(232, 176, 75, 0.1);
  --q2: color-mix(in srgb, var(--ob-ink) 2.5%, transparent);
  --panel: #0b0d0f;
  --dcols: 240px minmax(0, 740px) 200px;
}
@media (max-width: 1240px) { :root { --dcols: 220px minmax(0, 740px); } }
@media (max-width: 900px) { :root { --dcols: 200px minmax(0, 1fr); } }
:focus-visible { outline-color: color-mix(in srgb, var(--tl) 80%, transparent); }

/* the docs list: the current page is a teal pill */
.dside .dlist a[aria-current="page"] { color: var(--tl); background: var(--tl-bg); }
.dside .dgl { color: var(--fg2); text-transform: none; }
.dtoc a[aria-current="true"] { color: var(--tl); background: transparent; box-shadow: none; }
.dspace a[aria-current="page"] { color: var(--fg); }
.dsearch input:focus, .dsearch input:focus-visible { box-shadow: inset 0 0 0 1px var(--tl-line), 0 0 0 3px var(--tl-bg); }

/* type and rhythm */
.dbody { max-width: 740px; font-size: 16px; line-height: 1.7; }
.dbody .deyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--tl); margin-bottom: 10px; }
.dbody h1 { font-size: 40px; font-weight: 560; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 14px; }
.dbody h1 + p, .dbody .dlead { font-size: 18px; line-height: 1.6; color: var(--fg2); margin-bottom: 36px; }
.dbody h2 { font-size: 23px; font-weight: 560; letter-spacing: -0.015em; margin: 64px 0 16px; padding-top: 32px; border-top: 1px solid var(--ob-line); }
.dbody h3 { font-size: 17.5px; font-weight: 560; margin-top: 36px; }
.dbody .dsec:first-of-type h2 { margin-top: 40px; }
.dbody .hl { color: var(--tl); }
.dbody a { color: var(--tl); font-weight: 510; }
@media (hover: hover) { .dbody a:hover { color: #8fe0df; } }
.dbody p a, .dbody li a, .dbody td a { color: var(--tl); text-decoration: none; } /* r27 critic: no faint underline; teal text, underline on hover */
@media (hover: hover) { .dbody p a:hover, .dbody li a:hover, .dbody td a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.dbody b { color: var(--fg); }
.dbody li::marker { color: var(--tl); }
.dbody ol > li::marker { font-weight: 600; font-size: 0.92em; }
.dbody code { background: rgba(126, 166, 246, 0.1); color: #c9d8fb; border: 1px solid rgba(126, 166, 246, 0.14); padding: 0 5px; }
.dbody blockquote { background: var(--q2); border-color: var(--ob-line); }

/* tables: a tinted head, zebra rows, in a rounded frame */
.dbody .tw { border: 1px solid var(--ob-line); border-radius: 12px; }
.dbody table { font-size: 14.5px; }
.dbody th { background: var(--q4); color: var(--fg); font-size: 12.5px; font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--ob-line); }
.dbody td { padding: 11px 14px; border-bottom: 1px solid var(--ob-line-lo); }
.dbody tbody tr:nth-child(even) td { background: var(--q2); }
.dbody td:first-child { color: var(--fg); font-weight: 510; }
.dbody .xbelief .tw { border: 0; border-radius: 0; }
.dbody .xbelief th { background: none; border: 0; }

/* code: a deep panel, the language as a chip, calm syntax colours */
.dbody .code { background: #0a0c10; border-color: rgba(126, 166, 246, 0.14); border-radius: 14px; }
.dbody .code-h { background: rgba(255, 255, 255, 0.02); border-bottom-color: rgba(126, 166, 246, 0.1); }
.dbody .code-h > span { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; background: var(--c-bl-bg); color: var(--c-bl); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; }
.dbody .copy { color: var(--fg2); }
@media (hover: hover) { .dbody .copy:hover { color: var(--tl); background: var(--tl-bg); } }
.dbody pre { padding: 16px 18px; }
.dbody pre code { color: #d6dbe4; font-size: 13.5px; line-height: 1.7; border: 0; }
.dbody pre .tk { color: #8fb8ff; }
.dbody pre .ts { color: #9fdcb5; }
.dbody pre .tn { color: #f2c27b; }
.dbody pre .tl { color: #c3a6ff; }
.dbody pre .tc { color: #6f7785; font-style: italic; }
.dbody pre .tv { color: #f2c27b; }
/* r27: tx (was tw, the table wrapper's class) */ .dbody pre .tx { color: #c3a6ff; }
.dbody pre .tf { color: #7fd6d5; }

/* tabs as pills over the code */
.dbody .xtabs { background: #0a0c10; border-color: rgba(126, 166, 246, 0.14); border-radius: 14px; }
.dbody .xt-bar { align-items: center; gap: 4px; padding-left: 8px; background: rgba(255, 255, 255, 0.02); border-bottom-color: rgba(126, 166, 246, 0.1); }
.dbody .xt-bar button { height: 28px; padding: 0 12px; border-radius: 8px; color: var(--fg2); }
.dbody .xt-bar button[aria-selected="true"] { color: var(--tl); background: var(--tl-bg); box-shadow: inset 0 0 0 1px var(--tl-line); }
.dbody .xt-bar button[aria-selected="true"]::after { display: none; }
.dbody .xt-p > .code:first-child .code-h { background: transparent; }
@media (pointer: coarse) { .dbody .xt-bar button { height: 34px; } }

/* hues: one per card, clock row, tile */
.dbody .hu0 { --h: var(--tl); --hb: var(--tl-bg); }
.dbody .hu1 { --h: var(--c-up); --hb: var(--c-up-bg); }
.dbody .hu2 { --h: var(--c-am); --hb: var(--c-am-bg); }
.dbody .hu3 { --h: var(--c-vi); --hb: var(--c-vi-bg); }
.dbody .hu4 { --h: var(--c-bl); --hb: var(--c-bl-bg); }

/* cards: an icon in a tinted tile; a linked card lifts with a teal edge and glow */
.dbody .xcard { background: var(--panel); border-color: var(--ob-line); border-radius: 14px; padding: 20px 20px 18px; transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.dbody .xc-tile { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 10px; background: var(--hb, var(--tl-bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h, var(--tl)) 22%, transparent); }
.dbody .xcard .xc-i { width: 19px; height: 19px; margin: 0; color: var(--h, var(--tl)); }
.dbody .xcard > b { font-size: 15.5px; font-weight: 560; }
.dbody .xcard span:not(.xc-tile) { font-size: 14px; color: var(--fg2); }
@media (hover: hover) {
  .dbody a.xcard:hover { border-color: var(--tl-line); background: #0c1112; box-shadow: 0 0 0 4px rgba(94, 200, 199, 0.06), 0 12px 32px -16px rgba(94, 200, 199, 0.35); transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) { .dbody a.xcard:hover { transform: none; } }

/* at a glance: tinted keys, a raised panel */
.dbody .xglance { background: var(--panel); border-color: var(--ob-line); border-radius: 14px; }
.dbody .xglance > div { border-color: var(--ob-line); }
.dbody .xglance dt { color: var(--tl); font-weight: 600; letter-spacing: 0.01em; }
.dbody .xglance dd { font-size: 15px; }

/* framed figures: a tinted panel */
.dbody .xflow, .dbody .xclock, .dbody .xbelief, .dbody .xart { background: var(--panel); border-color: rgba(94, 200, 199, 0.14); border-radius: 16px; }
/* flow: numbered stops on a teal line; the accent stop glows */
.dbody .xflow { padding-top: 24px; }
.dbody .xflow li { padding-top: 38px; }
.dbody .xflow li::before { top: 13px; left: 14px; background: var(--tl-line); }
.dbody .xflow .xf-dot { width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center; background: #0b1213; box-shadow: inset 0 0 0 1px var(--tl-line); color: var(--tl); font-size: 12px; font-weight: 600; font-style: normal; }
.dbody .xflow li.acc .xf-dot { background: var(--tl); color: #031414; box-shadow: 0 0 0 5px rgba(94, 200, 199, 0.14), 0 0 22px rgba(94, 200, 199, 0.45); }
.dbody .xflow b { font-size: 14.5px; font-weight: 560; }
/* clock: each row its own hue, the accent row teal and glowing */
.dbody .xk-b { height: 10px; border-radius: 5px; background: var(--h, var(--fg3)); opacity: 0.75; }
.dbody .xk-t em { color: var(--h, var(--fg2)); }
.dbody .xk-row.acc .xk-b { background: var(--tl); opacity: 1; box-shadow: 0 0 16px rgba(94, 200, 199, 0.45); }
.dbody .xk-row.acc .xk-l b { color: var(--tl); }
/* belief: a heatmap, green by price */
.dbody .xbelief td { color: var(--fg); font-weight: 510; }
.dbody .xbelief tbody td.h0 { background: rgba(126, 166, 246, 0.05); color: var(--fg3); }
.dbody .xbelief tbody td.h1 { background: rgba(126, 166, 246, 0.08); color: var(--fg2); }
.dbody .xbelief tbody td.h2 { background: rgba(94, 200, 199, 0.09); }
.dbody .xbelief tbody td.h3 { background: rgba(94, 200, 199, 0.13); }
.dbody .xbelief tbody td.h4 { background: rgba(94, 200, 199, 0.18); }
.dbody .xbelief tbody td.h5 { background: rgba(52, 211, 153, 0.2); }
.dbody .xbelief tbody td.h6 { background: rgba(52, 211, 153, 0.26); }
.dbody .xbelief tbody td.h7 { background: rgba(52, 211, 153, 0.32); }
.dbody .xbelief tbody td.h8 { background: rgba(52, 211, 153, 0.4); color: #eafff5; }
.dbody .xbelief tbody td.h9 { background: rgba(52, 211, 153, 0.5); color: #f2fff9; }
.dbody .xb-h b { color: var(--tl); }

/* payoffs: green where it pays, red where it loses, the end in blue */
.dbody .xp { background: var(--panel); border-color: var(--ob-line); border-radius: 14px; }
.dbody .xp-a { background: #090b0d; }
.dbody .xp .pf-f { fill: var(--c-up-bg); }
.dbody .xp .pf-l { fill: var(--c-dn-bg); stroke: none; }
.dbody .xp .pf-p { stroke: var(--ink2); stroke-width: 1.75; }
.dbody .xp .pf-t { stroke: var(--c-up); stroke-width: 1; stroke-opacity: 0.5; }
.dbody .xp .pf-s { stroke: var(--c-dn); stroke-opacity: 0.5; }
.dbody .xp .pf-e { stroke: var(--c-bl); stroke-width: 1; stroke-opacity: 0.6; }
.dbody .xp .pf-hit { stroke: var(--c-up); }
.dbody .xp figcaption b { font-weight: 560; }

/* callouts: blue note, teal tip, amber warning */
.dbody .xcall { border-radius: 14px; padding: 16px 18px; }
.dbody .xcall.note, .dbody .xcall.info { background: var(--c-bl-bg); border-color: rgba(126, 166, 246, 0.26); }
.dbody .xcall.note .xcall-i, .dbody .xcall.info .xcall-i { color: var(--c-bl); }
.dbody .xcall.tip { background: var(--tl-bg); border-color: rgba(94, 200, 199, 0.28); }
.dbody .xcall.warning { background: var(--c-am-bg); border-color: rgba(232, 176, 75, 0.3); }
.dbody .xcall.check { background: var(--c-up-bg); border-color: rgba(52, 211, 153, 0.26); }
.dbody .xcall-b .xcall-t { color: var(--fg); }

/* steps: teal numbers on a teal rail */
.dbody .xs-n { background: var(--tl-bg); box-shadow: inset 0 0 0 1px var(--tl-line); color: var(--tl); font-weight: 600; }
.dbody .xsteps > li::before { background: var(--tl-line); opacity: 0.6; }
.dbody .xs-b .xs-t { font-weight: 560; font-size: 16px; }

/* details */
.dbody .xdet { background: var(--panel); border-color: var(--ob-line); border-radius: 14px; }
.dbody .xdet[open] > summary { color: var(--tl); }

/* previous / next */
.dpn a { background: var(--panel); border-color: var(--ob-line); border-radius: 14px; }
@media (hover: hover) { .dpn a:hover { border-color: var(--tl-line); background: #0c1112; } .dpn a:hover b { color: var(--tl); } }

/* ---------- the landing headers ---------- */
.dbody .dhero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 8px 28px; margin: 0 0 40px; padding: 30px 28px 26px; border-radius: 20px; background: #070a0b; border: 1px solid rgba(94, 200, 199, 0.16); overflow: hidden; isolation: isolate; }
/* one soft teal glow behind the art (a single hue) */
.dbody .dhero::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(94, 200, 199, 0.16), rgba(94, 200, 199, 0)); }
.dbody .dhero-t { min-width: 0; }
.dbody .dhero h1 { font-size: 42px; margin-bottom: 14px; }
.dbody .dhero .dlead { margin-bottom: 0; font-size: 17px; }
.dbody .dhero .dorigin { margin: 12px 0 0; font-size: 13px; }
.dbody .dhero-a { min-width: 0; }
.dbody .dhero-art { display: block; width: 100%; height: auto; font-family: var(--sans); }
.dhero-art .hz-up { fill: var(--c-up-bg); }
.dhero-art .hz-dn { fill: var(--c-dn-bg); }
.dhero-art .hg { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.dhero-art .hf { stroke-width: 1; }
.dhero-art .hf.hv { fill: rgba(179, 156, 240, 0.07); stroke: rgba(179, 156, 240, 0.4); }
.dhero-art .hf.ht { fill: rgba(94, 200, 199, 0.09); stroke: rgba(94, 200, 199, 0.55); }
.dhero-art .hf.hb { fill: rgba(126, 166, 246, 0.08); stroke: rgba(126, 166, 246, 0.5); }
.dhero-art .hm { fill: none; stroke-width: 1; stroke-opacity: 0.7; }
.dhero-art .hm.hv { stroke: var(--c-vi); } .dhero-art .hm.ht { stroke: var(--tl); } .dhero-art .hm.hb { stroke: var(--c-bl); }
.dhero-art .hd.hv { fill: var(--c-vi); } .dhero-art .hd.ht { fill: var(--tl); } .dhero-art .hd.hb { fill: var(--c-bl); }
.dhero-art .hbeat { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.dhero-art .hend { stroke: var(--c-bl); stroke-width: 1; stroke-opacity: 0.6; }
.dhero-art .hpx { fill: none; stroke: #fff; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.dhero-art .hnow { fill: #fff; }
.dhero-art .hnow-g { fill: rgba(94, 200, 199, 0.25); }
.dhero-art .hlab { font-size: 11.5px; font-weight: 600; }
.dhero-art .hlab.up { fill: var(--c-up); } .dhero-art .hlab.dn { fill: var(--c-dn); } .dhero-art .hlab.en { fill: var(--c-bl); } .dhero-art .hlab.nw { fill: var(--fg2); font-weight: 510; }
.dhero-art .hl1 { font-size: 11.5px; font-weight: 600; fill: var(--fg); }
.dhero-art .hl2 { font-size: 11px; fill: var(--fg3); }
/* the Developers header: one request out and back */
.dbody .dhero.dev { grid-template-columns: minmax(0, 1fr); }
.dbody .dhero.dev::before { right: -200px; top: -260px; }
.dbody .dv { display: flex; align-items: center; gap: 0; margin-top: 18px; }
.dbody .dv-n { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 12px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--h) 30%, transparent); }
.dbody .dv-i { grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--hb); color: var(--h); }
.dbody .dv-i .ic { width: 18px; height: 18px; }
.dbody .dv-n b { font-size: 13.5px; font-weight: 600; color: var(--fg); line-height: 1.3; }
.dbody .dv-n small { font-size: 11.5px; color: var(--fg3); line-height: 1.3; }
.dbody .dv-l { position: relative; flex: none; width: 28px; height: 1px; background: var(--tl-line); }
.dbody .dv-l::after { content: ""; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--tl); border-right: 0; }
.dbody .dv-n small code { font-size: 10.5px; padding: 0 3px; }

@media (max-width: 1100px) and (min-width: 761px) {
  .dbody .dhero { grid-template-columns: minmax(0, 1fr); }
  .dbody .dhero-a { max-width: 460px; }
}
@media (max-width: 760px) {
  .dbody { font-size: 16px; }
  .dbody h1 { font-size: 30px; }
  .dbody h1 + p, .dbody .dlead { font-size: 16.5px; }
  .dbody h2 { font-size: 20px; margin-top: 44px; padding-top: 24px; }
  .dbody.dlong h2 { border-top: 0; padding-top: 0; }
  .dbody .dhero { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 16px; margin: 0 -4px 32px; gap: 18px; border-radius: 18px; }
  .dbody .dhero h1 { font-size: 32px; }
  .dbody .dhero-a { margin: 0 -6px; }
  .dbody .dv { flex-direction: column; align-items: stretch; margin-top: 4px; }
  .dbody .dv-l { width: 1px; height: 20px; margin-left: 26px; }
  .dbody .dv-l::after { right: -3px; top: auto; bottom: 0; border: 3.5px solid transparent; border-top: 5px solid var(--tl); border-bottom: 0; }
  .dbody .xflow .xf-dot { width: 25px; height: 25px; }
  .dbody .xflow li { padding: 2px 0 20px 40px; }
  .dbody .xflow li::before { left: 12px; top: 28px; }
  .dbody .xflow .xf-dot { top: 0; }
  .dbody .xc-tile { width: 32px; height: 32px; margin: 0; }
  .dbody .xcard { padding: 16px 40px 16px 62px; }
  .dbody .xcard .xc-tile { position: absolute; left: 16px; top: 14px; }
  .dbody .xcard .xc-i { position: static; }
  .dbody th, .dbody td { padding: 10px 12px; }
}

/* ---------- docs-visuals: ```bars (limits against a max) and ```chat (a conversation mock) ---------- */
.dbody .xbars { margin: 8px 0 28px; padding: 22px 22px 18px; border-radius: 16px; background: var(--panel); border: 1px solid rgba(94, 200, 199, 0.14); display: flex; flex-direction: column; gap: 16px; }
.dbody .xchat { margin: 8px 0 28px; padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid rgba(94, 200, 199, 0.14); display: flex; flex-direction: column; gap: 12px; }
.dbody .xc-m { display: flex; align-items: flex-start; gap: 10px; max-width: 88%; }
.dbody .xc-m p { margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.dbody .xc-m.you { align-self: flex-end; }
.dbody .xc-m.you p { background: var(--tl); color: #031414; border-bottom-right-radius: 5px; font-weight: 510; }
.dbody .xc-m.ai p { background: #12161a; color: var(--ink2); border: 1px solid var(--ob-line); border-bottom-left-radius: 5px; }
.dbody .xc-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--c-vi-bg); color: var(--c-vi); }
.dbody .xc-m.card .xc-av { background: var(--tl-bg); color: var(--tl); }
.dbody .xc-av .ic { width: 17px; height: 17px; }
.dbody .xc-m.card { max-width: 100%; width: 100%; }
.dbody .xc-card { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #0d1214; border: 1px solid var(--tl-line); }
.dbody .xc-card > b { font-size: 15px; font-weight: 560; color: var(--fg); }
.dbody .xc-card > span { font-size: 13.5px; color: var(--fg2); line-height: 1.5; }
.dbody .xc-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--q4); border: 1px solid var(--ob-line-lo); }
.dbody .xc-q:first-of-type { margin-top: 10px; }
.dbody .xc-q > span { font-size: 13.5px; font-weight: 510; color: var(--fg); }
.dbody .xc-q > b { grid-row: 1 / 3; grid-column: 2; font-size: 15px; font-weight: 600; color: var(--c-up); font-variant-numeric: tabular-nums; }
.dbody .xc-q > small { font-size: 12px; color: var(--fg3); }
@media (max-width: 760px) {
  .dbody .xbars, .dbody .xchat { padding: 16px 14px; margin-left: -4px; margin-right: -4px; }
  .dbody .xc-m { max-width: 94%; }
}

/* ---------- r27 restraint (founder, 21 Nov: "overcorrecting... looks childish... like AI slop"; "the things that are
   clickable should look different than the things that are not"). One accent (teal); colour only where it means
   something (pays / loses, a warning); no glows, no hue per card. ---------- */
/* the left list: group names are labels in teal, pages are plain links; hover lifts, the current page is a quiet pill */
.dside .dgl { color: var(--tl); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; text-transform: none; padding: 18px 10px 6px; }
.dside a { color: var(--fg2); }
@media (hover: hover) { .dside a:hover { color: var(--fg); background: var(--q4, rgba(255, 255, 255, 0.04)); } }
/* card icons: one neutral tile on every card (the five-hue cycle read as decoration) */
.dbody .hu0, .dbody .hu1, .dbody .hu2, .dbody .hu3, .dbody .hu4 { --h: var(--fg2); --hb: rgba(255, 255, 255, 0.05); }
@media (hover: hover) { .dbody a.xcard:hover { box-shadow: none; background: var(--panel); border-color: rgba(255, 255, 255, 0.22); } }
/* no glows */
.dbody .dhero::before { display: none; }
.dbody .xflow li.acc .xf-dot { box-shadow: none; }
.dbody .xk-row.acc .xk-b { box-shadow: none; }
.dbody .xk-b { background: var(--fg3); opacity: 0.6; }
/* the hero's agents: neutral lines, the accent only on one */
.dhero-art .hm.hv, .dhero-art .hm.hb { stroke: var(--fg3); } .dhero-art .hd.hv, .dhero-art .hd.hb { fill: var(--fg3); }
/* chrome stays grey: language chips, chat avatars */
.dbody .code-h > span { background: rgba(255, 255, 255, 0.06); color: var(--fg3); font-weight: 500; }
.dbody .xc-av { background: rgba(255, 255, 255, 0.06); color: var(--fg2); }
/* notes are neutral; only tips (teal) and warnings (amber) carry a colour */
.dbody .xcall.note, .dbody .xcall.info { background: rgba(255, 255, 255, 0.03); border-color: var(--ob-line); }
.dbody .xcall.note .xcall-i, .dbody .xcall.info .xcall-i { color: var(--fg2); }
/* the belief grid: one teal ramp, not blue to green */
.dbody .xbelief tbody td.h0 { background: rgba(94, 200, 199, 0.03); }
.dbody .xbelief tbody td.h1 { background: rgba(94, 200, 199, 0.05); }
.dbody .xbelief tbody td.h5 { background: rgba(94, 200, 199, 0.22); }
.dbody .xbelief tbody td.h6 { background: rgba(94, 200, 199, 0.27); }
.dhero-art .hf.hv, .dhero-art .hf.hb { fill: rgba(255, 255, 255, 0.025); stroke: rgba(255, 255, 255, 0.18); }
/* teal means "label" in the left list: the current page is white on a quiet pill, so it never reads as a group name */
.dside a[aria-current="page"] { color: var(--ob-ink, #fff) !important; background: rgba(255, 255, 255, 0.07) !important; box-shadow: none !important; font-weight: 500; }
/* teal has one meaning in the docs: a group label in the left list (founder's ask). Links are white with a subtle
   underline (clickable), other labels are muted grey (critic: teal had meant both "click me" and "label") */
.dbody p a, .dbody li a, .dbody td a { color: var(--ob-ink, #fff) !important; text-decoration: underline !important; text-decoration-color: rgba(255, 255, 255, 0.3) !important; text-underline-offset: 3px; }
@media (hover: hover) { .dbody p a:hover, .dbody li a:hover, .dbody td a:hover { text-decoration-color: rgba(255, 255, 255, 0.8) !important; } }
.dtoc a[aria-current="true"] { color: var(--ob-ink, #fff) !important; }
.dbody .deyebrow { color: var(--fg3) !important; }
.dbody .xglance dt { color: var(--fg3) !important; font-weight: 500; }
/* r27 responsive: the page you're on wraps to a second line in the phone's docs bar instead of "How the exc…" (360-480) */
@media (min-width: 360px) and (max-width: 480px) {
  .dbar-t { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: 13px; line-height: 16px; text-wrap: balance; }
}
