/* Youniton Docs — hand-written styles. Light and dark come from tokens; data-theme on <html> overrides the system choice. */

:root {
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft: #eef2ff;
  --accent-line: #c7d2fe;
  --accent-ink: #3730a3;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-sunk: #f1f5f9;
  --panel: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --code-bg: #0f1222;
  --code-ink: #e2e8f0;
  --code-cap: #a5b4fc;
  --code-line: #262a40;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px -12px rgb(15 23 42 / 0.18);
  --shadow-lg: 0 24px 60px -20px rgb(15 23 42 / 0.35);
  --get: #0f766e; --get-bg: #ccfbf1;
  --post: #4338ca; --post-bg: #e0e7ff;
  --put: #b45309; --put-bg: #fef3c7;
  --patch: #7e22ce; --patch-bg: #f3e8ff;
  --delete: #b91c1c; --delete-bg: #fee2e2;
  --info: #2563eb; --info-bg: #eff6ff; --info-line: #bfdbfe;
  --warn: #b45309; --warn-bg: #fffbeb; --warn-line: #fde68a;
  --ok: #047857; --ok-bg: #ecfdf5; --ok-line: #a7f3d0;
  --coming: #7c3aed; --coming-bg: #f5f3ff; --coming-line: #ddd6fe;
  --radius: 10px;
  --top-h: 112px;
  --side-w: 288px;
  --rail-w: 248px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #818cf8; --accent-strong: #a5b4fc; --accent-soft: #1e1b4b; --accent-line: #3730a3; --accent-ink: #c7d2fe;
    --bg: #0b0d17; --bg-soft: #10131f; --bg-sunk: #151929; --panel: #12152340;
    --ink: #e5e7eb; --ink-2: #cbd5e1; --ink-3: #94a3b8; --line: #1f2437; --line-2: #2b3149;
    --code-bg: #080a14; --code-line: #1c2033;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.6);
    --get: #5eead4; --get-bg: #0f2f2c; --post: #a5b4fc; --post-bg: #1e1f4b; --put: #fcd34d; --put-bg: #3a2a0a;
    --patch: #d8b4fe; --patch-bg: #2e1a47; --delete: #fca5a5; --delete-bg: #3f1416;
    --info: #93c5fd; --info-bg: #0f1b33; --info-line: #1e3a8a; --warn: #fcd34d; --warn-bg: #2a1f08; --warn-line: #78350f;
    --ok: #6ee7b7; --ok-bg: #062a20; --ok-line: #065f46; --coming: #c4b5fd; --coming-bg: #1c1336; --coming-line: #4c1d95;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #818cf8; --accent-strong: #a5b4fc; --accent-soft: #1e1b4b; --accent-line: #3730a3; --accent-ink: #c7d2fe;
  --bg: #0b0d17; --bg-soft: #10131f; --bg-sunk: #151929; --panel: #12152340;
  --ink: #e5e7eb; --ink-2: #cbd5e1; --ink-3: #94a3b8; --line: #1f2437; --line-2: #2b3149;
  --code-bg: #080a14; --code-line: #1c2033;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  --get: #5eead4; --get-bg: #0f2f2c; --post: #a5b4fc; --post-bg: #1e1f4b; --put: #fcd34d; --put-bg: #3a2a0a;
  --patch: #d8b4fe; --patch-bg: #2e1a47; --delete: #fca5a5; --delete-bg: #3f1416;
  --info: #93c5fd; --info-bg: #0f1b33; --info-line: #1e3a8a; --warn: #fcd34d; --warn-bg: #2a1f08; --warn-line: #78350f;
  --ok: #6ee7b7; --ok-bg: #062a20; --ok-line: #065f46; --coming: #c4b5fd; --coming-bg: #1c1336; --coming-line: #4c1d95;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.65 var(--font); font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--ink-3); }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(145deg, #6366f1, #4338ca); color: #fff; font-weight: 700; font-size: 16px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 2px 6px rgb(79 70 229 / 0.35); }
.brand-mark--sm { width: 26px; height: 26px; font-size: 14px; border-radius: 7px; }
/* the Youniton mark is an image with its own rounded square: no gradient and no shadow behind it; plain in light, outlined in dark */
img.brand-mark { display: block; background: none; box-shadow: none; flex: none; }
img.brand-mark.mk-dk { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.brand-mark.mk-lt { display: none; } :root:not([data-theme="light"]) img.brand-mark.mk-dk { display: block; } }
:root[data-theme="dark"] img.brand-mark.mk-lt { display: none; }
:root[data-theme="dark"] img.brand-mark.mk-dk { display: block; }
.brand-name { font-size: 16px; }
.brand-name span { color: var(--ink-3); font-weight: 500; }
.search-trigger { flex: 1 1 auto; max-width: 560px; margin-left: 24px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--ink-3); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.search-trigger:hover { border-color: var(--line-2); background: var(--bg-sunk); }
.search-ph { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kbd { display: inline-flex; align-items: center; gap: 2px; font: 500 11.5px/1 var(--mono); padding: 4px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--bg); color: var(--ink-3); }
.kbd--btn { cursor: pointer; }
.ask-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.ask-btn:hover { border-color: var(--accent); }
.top-links { margin-left: auto; display: flex; align-items: center; gap: 18px; font-weight: 500; white-space: nowrap; }
.top-links a { color: var(--ink-2); }
.top-links a:hover { color: var(--ink); text-decoration: none; }
.top-links .btn-signin { padding: 8px 14px; border-radius: 9px; background: var(--ink); color: var(--bg); }
.top-links .btn-signin:hover { color: var(--bg); opacity: .9; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; padding: 9px; }
.tabs { display: flex; gap: 22px; padding: 0 24px; height: 46px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; color: var(--ink-3); font-weight: 550; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr) var(--rail-w); max-width: 1600px; margin: 0 auto; }
.sidebar { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); border-right: 1px solid var(--line); overflow: hidden; }
.sidebar-inner { height: 100%; overflow-y: auto; padding: 22px 14px 18px 20px; display: flex; flex-direction: column; scrollbar-width: thin; }
.nav-section + .nav-section { margin-top: 22px; }
.nav-heading { margin: 0 0 8px 10px; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; color: var(--ink-3); font-variant: small-caps; text-transform: uppercase; }
.nav-list, .nav-children { list-style: none; margin: 0; padding: 0; }
.nav-row { display: flex; align-items: center; }
.nav-link { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-link .ico { width: 16px; height: 16px; color: var(--ink-3); }
.nav-link span:not(.pill) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link:hover { background: var(--bg-sunk); color: var(--ink); text-decoration: none; }
.nav-link.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.nav-link.is-active .ico { color: var(--accent); }
.nav-link.is-active::before { content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--accent); }
.chev, .nav-group-toggle { border: 0; background: none; cursor: pointer; color: var(--ink-3); }
.chev { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.chev:hover { background: var(--bg-sunk); color: var(--ink); }
.chev svg, .chev-ico { width: 14px; height: 14px; transition: transform .18s; }
.chev[aria-expanded="true"] svg, .nav-group-toggle[aria-expanded="true"] .chev-ico { transform: rotate(90deg); }
.nav-children { margin: 2px 0 6px 18px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-children--pages { margin-left: 8px; }
.nav-op { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; color: var(--ink-3); font-size: 13px; }
.nav-op:hover { background: var(--bg-sunk); color: var(--ink); text-decoration: none; }
.nav-op .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-op.is-active { color: var(--accent); }
.nav-group-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-group-toggle > span { display: flex; align-items: center; gap: 10px; }
.nav-group-toggle .ico { width: 16px; height: 16px; color: var(--ink-3); }
.nav-group-toggle:hover { background: var(--bg-sunk); color: var(--ink); }
.m { flex: none; display: inline-block; min-width: 34px; font: 600 9.5px/1 var(--mono); letter-spacing: .02em; text-align: center; padding: 3px 0; border-radius: 4px; }
.m--get { color: var(--get); background: var(--get-bg); }
.m--post { color: var(--post); background: var(--post-bg); }
.m--put { color: var(--put); background: var(--put-bg); }
.m--patch { color: var(--patch); background: var(--patch-bg); }
.m--delete { color: var(--delete); background: var(--delete-bg); }
.pill { margin-left: auto; flex: none; font-size: 10.5px; font-weight: 650; padding: 2px 7px; border-radius: 999px; letter-spacing: .01em; }
.pill--new { color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-line); }
.pill--coming { color: var(--coming); background: var(--coming-bg); border: 1px solid var(--coming-line); }
.powered { margin-top: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.powered:hover { text-decoration: none; border-color: var(--accent-line); }
.powered strong { display: block; color: var(--ink); font-size: 13.5px; }
.powered small { color: var(--ink-3); font-size: 12px; }
.scrim { display: none; }

/* ---------------------------------------------------------------- content */
.content { min-width: 0; padding: 30px 48px 0; outline: none; }
.article { max-width: 760px; margin: 0 auto; }
.shell--wide .article { max-width: 1040px; }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }
.page-head h1 { margin: 0; font-size: 36px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.lead { margin: 12px 0 0; font-size: 17.5px; line-height: 1.6; color: var(--ink-3); max-width: 70ch; }
.prose { margin-top: 28px; }
.prose > * { max-width: 70ch; }
.prose > .hero, .prose > .cards, .prose > .table-wrap, .prose > .code, .prose > .code-tabs, .prose > .steps, .prose > .callout, .prose > .prompt, .prose > .ops, .prose > .ref-toolbar, .prose > .oplist { max-width: none; }
.prose h2 { position: relative; margin: 44px 0 12px; font-size: 23px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 680; }
.prose h3 { position: relative; margin: 30px 0 8px; font-size: 18px; line-height: 1.35; font-weight: 650; }
.prose h4 { margin: 22px 0 8px; font-size: 14px; font-weight: 650; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--ink-3); }
.prose strong { color: var(--ink); font-weight: 620; }
.prose :not(pre) > code { font-size: .86em; padding: .12em .4em; border-radius: 5px; background: var(--bg-sunk); border: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; }
.anchor { position: absolute; left: -22px; top: 0; padding-right: 6px; color: var(--line-2); opacity: 0; font-weight: 500; }
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus { opacity: 1; text-decoration: none; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 12px; margin: 4px 0 34px; border-radius: 18px; overflow: hidden; border: 1px solid var(--accent-line); background:
  radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%),
  linear-gradient(160deg, var(--accent-soft), var(--bg) 70%); box-shadow: var(--shadow); }
.hero-copy { padding: 30px 8px 30px 30px; position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.hero-kicker .ico { width: 14px; height: 14px; }
.hero-title { margin: 0 0 10px; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
.hero-text { margin: 0 0 18px; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: relative; min-height: 260px; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--accent-line) 1px, transparent 1px), linear-gradient(90deg, var(--accent-line) 1px, transparent 1px); background-size: 28px 28px; opacity: .35; mask-image: radial-gradient(80% 80% at 60% 50%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(80% 80% at 60% 50%, #000 30%, transparent 75%); }
.hero-orb { position: absolute; width: 180px; height: 180px; right: 22%; top: 22%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a5b4fc, #4f46e5 55%, #312e81); filter: blur(2px); opacity: .55; box-shadow: 0 0 80px 20px rgb(79 70 229 / .35); }
.hero-pill { position: absolute; display: inline-flex; align-items: center; gap: 8px; max-width: 92%; padding: 7px 12px 7px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12px; white-space: nowrap; animation: float 7s ease-in-out infinite; }
.hero-pill code { font-family: var(--mono); color: var(--ink-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.hero-pill--0 { top: 9%; left: 6%; animation-delay: 0s; }
.hero-pill--1 { top: 25%; left: 30%; animation-delay: -1.2s; }
.hero-pill--2 { top: 42%; left: 2%; animation-delay: -2.4s; }
.hero-pill--3 { top: 58%; left: 26%; animation-delay: -3.6s; }
.hero-pill--4 { top: 74%; left: 8%; animation-delay: -4.8s; }
.hero-pill--5 { top: 88%; left: 32%; animation-delay: -6s; transform: translateY(-50%); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .hero-pill { animation: none; } }

/* method badge */
.method { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 3px 8px; border-radius: 6px; font: 650 12px/1.3 var(--mono); letter-spacing: .02em; }
.method--sm { min-width: 44px; padding: 2px 6px; font-size: 10.5px; }
.method--get { color: var(--get); background: var(--get-bg); }
.method--post { color: var(--post); background: var(--post-bg); }
.method--put { color: var(--put); background: var(--put-bg); }
.method--patch { color: var(--patch); background: var(--patch-bg); }
.method--delete { color: var(--delete); background: var(--delete-bg); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.btn:hover { text-decoration: none; border-color: var(--ink-3); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
:root[data-theme="dark"] .btn--primary { color: #0b0d17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { color: #0b0d17; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 22px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink-2); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { text-decoration: none; border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-1px); }
.card-ico { width: 22px; height: 22px; color: var(--accent); }
.card-title { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); }
.card-title .pill { margin-left: 0; }
.card-text { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

/* steps */
.steps { list-style: none; counter-reset: step; margin: 22px 0 26px; padding: 0; }
.step { position: relative; counter-increment: step; padding: 0 0 26px 48px; margin: 0; }
.step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 14px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.step::after { content: ""; position: absolute; left: 14.5px; top: 36px; bottom: 4px; width: 1px; background: var(--line-2); }
.step:last-child::after { display: none; }
.step-title { margin: 3px 0 8px !important; font-size: 17px !important; }
.step-body > :last-child { margin-bottom: 0; }

/* code */
.code, .code-tabs { margin: 14px 0 20px; border-radius: 12px; background: var(--code-bg); border: 1px solid var(--code-line); overflow: hidden; box-shadow: var(--shadow); }
.code figcaption, .code-tabs-bar { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--code-line); background: color-mix(in srgb, var(--code-bg) 80%, #4f46e5 6%); }
.code-cap { font: 500 12px/1.2 var(--mono); color: var(--code-cap); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.code-tabs-bar .code-cap { margin-left: auto; padding-left: 8px; }
.code pre, .code-tabs pre { margin: 0; padding: 14px 16px; overflow: auto; max-height: 520px; color: var(--code-ink); font-size: 12.8px; line-height: 1.6; tab-size: 2; }
.code pre code, .code-tabs pre code { white-space: pre; }
.copy { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid #ffffff1f; background: #ffffff0d; color: #cbd5e1; font-size: 12px; font-weight: 550; cursor: pointer; }
.copy:hover { background: #ffffff1c; color: #fff; }
.copy.is-done { color: #86efac; border-color: #86efac55; }
.copy--icon { margin-left: 8px; border-color: var(--line); background: var(--bg-soft); color: var(--ink-3); }
.copy--icon:hover { background: var(--bg-sunk); color: var(--ink); }
.copy--icon.is-done { color: var(--ok); border-color: var(--ok-line); }
.tablist { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tablist [role="tab"] { height: 40px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: #94a3b8; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tablist [role="tab"]:hover { color: #e2e8f0; }
.tablist [role="tab"][aria-selected="true"] { color: #fff; border-bottom-color: #818cf8; }
.tok-k { color: #c4b5fd; } .tok-s { color: #86efac; } .tok-n { color: #fcd34d; } .tok-c { color: #64748b; font-style: italic; } .tok-p { color: #93c5fd; }

/* prompt */
.prompt { margin: 14px 0 20px; border: 1px solid var(--accent-line); border-radius: 14px; background: linear-gradient(180deg, var(--accent-soft), var(--bg) 120px); overflow: hidden; }
.prompt-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; }
.prompt-head > .ico { width: 22px; height: 22px; color: var(--accent); }
.prompt-head > div { flex: 1; min-width: 0; }
.prompt-title { margin: 0 !important; font-weight: 650; color: var(--ink) !important; }
.prompt-sub { margin: 0 !important; font-size: 13px; color: var(--ink-3) !important; }
.prompt-text { margin: 0; padding: 14px 16px; max-height: 320px; overflow: auto; border-top: 1px solid var(--accent-line); background: var(--bg); color: var(--ink-2); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; }

/* callouts */
.callout { display: flex; gap: 12px; margin: 16px 0 20px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--info-line); background: var(--info-bg); }
.callout-ico { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--info); }
.callout p, .callout ul { color: var(--ink-2) !important; margin-bottom: 6px !important; }
.callout > div > :last-child { margin-bottom: 0 !important; }
.callout-title { font-weight: 650; color: var(--ink) !important; margin-bottom: 2px !important; }
.callout--warning { border-color: var(--warn-line); background: var(--warn-bg); }
.callout--warning .callout-ico { color: var(--warn); }
.callout--coming { border-color: var(--coming-line); background: var(--coming-bg); }
.callout--coming .callout-ico { color: var(--coming); }
.callout--success { border-color: var(--ok-line); background: var(--ok-bg); }
.callout--success .callout-ico { color: var(--ok); }

/* tables */
.table-wrap { margin: 12px 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 650; letter-spacing: .02em; color: var(--ink-3); background: var(--bg-soft); }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }
td p { margin: 0 0 4px !important; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); white-space: nowrap; }
a.chip:hover { text-decoration: none; border-color: var(--line-2); }
.chip-ico { width: 13px; height: 13px; }
.chip--pat { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }
.chip--ability { font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--ink); }
.chip--hdt { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.chip--agent, .chip--coming { color: var(--coming); background: var(--coming-bg); border-color: var(--coming-line); }
.chip--session { color: var(--ink-3); }
.chip--muted { color: var(--ink-3); background: transparent; }
.chip--feature { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--ink-3); background: transparent; border-style: dashed; }
.chip--warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
td .chip { margin: 0 4px 4px 0; }

/* op links */
.oplink { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 10px 3px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); vertical-align: middle; }
.oplink:hover { text-decoration: none; border-color: var(--accent-line); }
.oplink code { font-size: 12.5px !important; background: none !important; border: 0 !important; padding: 0 !important; color: var(--ink) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oplink-label { color: var(--ink-3); font-size: 13px; }
.oplist { list-style: none; padding: 0 !important; margin: 10px 0 20px !important; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.oplist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; min-width: 0; }
.oplist li > span { color: var(--ink-3); font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.oplink { min-width: 0; }
.oplink code { min-width: 0; }

/* ---------------------------------------------------------------- reference */
.ref-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.ref-counts { margin: 0 !important; color: var(--ink-3) !important; font-size: 13.5px; }
.ref-counts strong { color: var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 550; color: var(--ink-2); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); transition: background .15s; flex: none; }
.switch-track::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
body:not(.show-app) [data-app-only] { display: none !important; }
.ops { display: flex; flex-direction: column; }
.op { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.op:first-child { border-top: 0; padding-top: 4px; }
.op-title { margin: 0 0 10px !important; font-size: 21px !important; }
.op-path { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
.op-path .path { min-width: 0; flex: 1; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; background: none !important; border: 0 !important; padding: 0 !important; }
.op-desc { color: var(--ink-2); }
.op-note { font-size: 13.5px; color: var(--ink-3) !important; border-left: 3px solid var(--line-2); padding-left: 10px; }
.op-h { display: flex; align-items: center; gap: 8px; margin: 22px 0 8px !important; font-size: 13px !important; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ct { font: 500 11px/1 var(--mono); text-transform: none; letter-spacing: 0; color: var(--ink-3); padding: 3px 6px; border-radius: 5px; background: var(--bg-sunk); }
.req { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--delete); margin-left: 6px; }
table.params td { font-size: 13.5px; }
.pname { width: 32%; }
.pname code { font-size: 12.5px !important; font-weight: 600; }
.ptype { width: 22%; font-family: var(--mono); font-size: 12px !important; color: var(--ink-3) !important; overflow-wrap: anywhere; }
.pdesc { overflow-wrap: anywhere; }
.constraints { font-size: 12.5px; color: var(--ink-3) !important; }
.responses { display: flex; flex-direction: column; gap: 8px; }
.resp { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.resp > summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; list-style: none; font-size: 13.5px; }
.resp > summary::-webkit-details-marker { display: none; }
.resp > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s; flex: none; }
.resp[open] > summary::before { transform: rotate(45deg); }
.resp > summary .ct { margin-left: auto; }
.resp-desc { color: var(--ink-2); min-width: 0; }
.resp > .schema-mount, .resp > p { padding: 0 12px 12px; }
.resp--errors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 12px; font-size: 13px; background: var(--bg-soft); }
.resp--errors a { margin-left: auto; font-size: 13px; }
.err-label { font-weight: 650; color: var(--ink-3); margin-right: 4px; }
.status { display: inline-block; font: 650 11.5px/1 var(--mono); padding: 4px 6px; border-radius: 5px; }
.status--1, .status--2 { color: var(--ok); background: var(--ok-bg); }
.status--3 { color: var(--info); background: var(--info-bg); }
.status--4 { color: var(--warn); background: var(--warn-bg); }
.status--5 { color: var(--delete); background: var(--delete-bg); }

/* schema tree (rendered by docs.js) */
.schema { font-size: 13.5px; }
.schema-note { margin: 0 0 8px; color: var(--ink-3); font-size: 12.5px; }
.props { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.props .props { border: 0; border-left: 2px solid var(--accent-line); border-radius: 0; margin: 8px 0 2px 2px; }
.prop { padding: 9px 12px; border-top: 1px solid var(--line); }
.prop:first-child { border-top: 0; }
.prop-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.prop-name { font: 600 12.8px/1.4 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.prop-type { font: 500 12px/1.4 var(--mono); color: var(--accent); }
.prop-desc { margin: 3px 0 0 !important; color: var(--ink-2) !important; font-size: 13px; }
.prop-desc code, .prop-enum code { font-size: 11.5px !important; }
.prop-enum { margin: 4px 0 0 !important; font-size: 12.5px; color: var(--ink-3) !important; }
.expand { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.expand:hover { border-color: var(--accent-line); color: var(--accent); }
.expand::before { content: "+"; font-family: var(--mono); }
.expand[aria-expanded="true"]::before { content: "−"; }
.examples { margin-top: 20px; }
.examples .code, .examples .code-tabs { margin: 10px 0; }
.ex-label { margin: 18px 0 6px !important; font-size: 13px !important; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3) !important; font-weight: 650; }

/* operation index */
.ref-toolbar--filter { position: sticky; top: calc(var(--top-h) + 8px); z-index: 5; box-shadow: var(--shadow); }
.filter { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); color: var(--ink-3); }
.filter input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; }
.filter:focus-within { border-color: var(--accent); }
.ops-index td { font-size: 13.5px; }
.ops-index td:nth-child(2) a { display: block; }
.ops-index code.path { font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; background: none !important; border: 0 !important; padding: 0 !important; }
.row-sum { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.ops-index td:nth-child(3) { white-space: nowrap; color: var(--ink-3); }

/* ---------------------------------------------------------------- right rail */
.rail { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); }
.rail-inner { height: 100%; overflow-y: auto; padding: 30px 18px 90px 8px; scrollbar-width: thin; }
.toc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.toc-title .ico { width: 14px; height: 14px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: flex; align-items: center; gap: 6px; margin-left: -1px; padding: 4px 0 4px 12px; border-left: 2px solid transparent; color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.toc li a:hover { color: var(--ink); text-decoration: none; }
.toc li.toc-l3 a { padding-left: 24px; font-size: 12.5px; }
.toc li a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc .m { min-width: 30px; font-size: 9px; }

/* feedback */
.helpful { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 48px 0 0; padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.helpful p { margin: 0; }
.faces { display: flex; gap: 6px; }
.faces button { width: 38px; height: 38px; padding: 8px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink-3); cursor: pointer; transition: color .15s, border-color .15s, transform .1s; }
.faces button:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-1px); }
.faces button[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.helpful-thanks { font-size: 13px; color: var(--ok) !important; }

/* footer */
.footer { max-width: 1040px; margin: 40px auto 0; padding: 30px 0 34px; border-top: 1px solid var(--line); }
.footer-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 24px; }
.footer-brand p { margin: 10px 0 0; color: var(--ink-3); font-size: 13.5px; max-width: 32ch; }
.footer-h { margin: 0 0 10px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer ul a { color: var(--ink-3); font-size: 14px; }
.footer ul a:hover { color: var(--accent); }
.footer-note { margin: 26px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* theme switch */
.theme-switch { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
.theme-switch button { width: 32px; height: 32px; padding: 7px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-checked="true"] { background: var(--accent-soft); color: var(--accent); }

/* search dialog */
.search-dialog { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / .45); backdrop-filter: blur(3px); }
.search-panel { position: relative; width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-head { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 56px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.search-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 500 16px var(--font); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-hint { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; border-bottom: 1px solid var(--accent-line); }
.search-hint .ico { width: 16px; height: 16px; }
.search-filters { padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.search-filters label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.search-results li a { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); }
.search-results li a:hover { text-decoration: none; }
.search-results li[aria-selected="true"] a { background: var(--accent-soft); color: var(--ink); }
.sr-kind { flex: none; margin-top: 2px; }
.sr-kind .ico { width: 16px; height: 16px; color: var(--ink-3); }
.sr-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-title { font-weight: 600; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.sr-title mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-sub { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.sr-sub code { font-family: var(--mono); font-size: 11.5px; }
.sr-empty { padding: 24px; text-align: center; color: var(--ink-3); font-size: 14px; }
.search-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.search-foot .kbd { margin-right: 3px; }
body.is-locked { overflow: hidden; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  :root { --rail-w: 220px; --side-w: 264px; }
  .content { padding: 28px 32px 0; }
}
@media (max-width: 1100px) {
  .shell { grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .rail { display: none; }
}
@media (max-width: 860px) {
  :root { --top-h: 104px; }
  .topbar-row { height: 58px; padding: 0 16px; gap: 10px; }
  .menu-btn { display: inline-flex; }
  .search-trigger { margin-left: auto; max-width: none; flex: 0 0 auto; width: 40px; padding: 0; justify-content: center; }
  .search-trigger .search-ph, .search-trigger .kbd { display: none; }
  .ask-btn { width: 40px; padding: 0; justify-content: center; }
  .ask-btn span { display: none; }
  .top-links { margin-left: 0; gap: 10px; }
  .top-links a:not(.btn-signin) { display: none; }
  .top-links .btn-signin { padding: 7px 10px; font-size: 13px; }
  .tabs { padding: 0 16px; }
  .shell { display: block; }
  .sidebar { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; height: 100vh; width: min(320px, 86vw); background: var(--bg); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); visibility: hidden; }
  body.nav-open .sidebar { transform: none; visibility: visible; }
  .sidebar-inner { padding-top: 18px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgb(15 23 42 / .45); }
  .content { padding: 22px 16px 0; }
  .page-head h1 { font-size: 28px; }
  .lead { font-size: 16px; }
  .anchor { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 22px 20px 4px; }
  .hero-art { min-height: 230px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pname, .ptype { width: auto; }
  table.params tr { display: grid; grid-template-columns: 1fr auto; }
  table.params td.pdesc { grid-column: 1 / -1; padding-top: 0; }
  .ops-index thead { display: none; }
  .ops-index tr { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; border-bottom: 1px solid var(--line); }
  .ops-index td { border: 0; padding: 8px 10px; }
  .ops-index td:nth-child(3) { display: none; }
  .ops-index td:nth-child(4) { grid-column: 2; padding-top: 0; }
  .theme-switch { right: 12px; bottom: 12px; }
  .search-dialog { padding-top: 8px; }
  .search-panel { max-height: calc(100vh - 16px); }
  .search-foot { display: none; }
}
@media (max-width: 420px) {
  .brand-name span { display: none; }
}
.hero-pill code { background: none !important; border: 0 !important; padding: 0 !important; }
@media (max-width: 860px) { .code-tabs-bar .code-cap { display: none; } }
@media (max-width: 860px) { .hero-art { min-height: 290px; } .hero-pill--5 { top: 91%; } }

/* ---------------------------------------------------------------- site layer
   The docs use the tokens of the Youniton site (assets/css/site.css). Since 5 Dec 2026 this is the neutral corporate look (owner:
   "make it look more like Microsoft website looks like"; docs/design-2026-12-05.md of the website repository): white and grey
   surfaces, the ink and the green of the Youniton mark, Inter headings, a radius of 8 px (cards) and 4 px (buttons).
   The colours of the HTTP methods and of the warning stay: they are data colours of the reference.
   The docs layout, navigation and content stay as they are. */
:root {
  --accent: #1e3a8a; --accent-strong: #16224f; --accent-soft: #e9f0ff; --accent-line: #c5d3f5; --accent-ink: #16224f; --accent-on: #ffffff;
  --bg: #ffffff; --bg-soft: #f4f7fd; --bg-sunk: #edf2fb; --panel: #ffffff;
  --ink: #0b1437; --ink-2: #3a4263; --ink-3: #59607d; --line: #dbe3f3; --line-2: #8088a6;
  --code-bg: #0b1437; --code-line: #252d55; --code-cap: #a9b1cf;
  --info: #3a4263; --info-bg: #f4f7fd; --info-line: #dbe3f3;
  --ok: #0b1437; --ok-bg: #dcfbd4; --ok-line: #9fe58c;
  --coming: #3a4263; --coming-bg: #edf2fb; --coming-line: #dbe3f3;
  --post: #1e3a8a; --post-bg: #e9f0ff;
  --shadow: 0 1px 2px rgba(10,10,10,.06), 0 2px 6px rgba(10,10,10,.05);
  --shadow-lg: 0 2px 4px rgba(10,10,10,.08), 0 16px 40px rgba(10,10,10,.16);
  --focus: #0b1437;
  --display: "Sora", "Inter", system-ui, sans-serif; --brand: "Sora", "Inter", system-ui, sans-serif;
  --radius: 0px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #39ff14; --accent-strong: #74ff5a; --accent-soft: #141b3f; --accent-line: #2f3a78; --accent-ink: #74ff5a; --accent-on: #0b1437;
    --bg: #070b1d; --bg-soft: #0d1330; --bg-sunk: #141b3f; --panel: #141b3f;
    --ink: #ffffff; --ink-2: #c9cfe6; --ink-3: #9aa3c7; --line: #252d55; --line-2: #6c76a3;
    --code-bg: #0d1330; --code-line: #252d55;
    --info: #c9cfe6; --info-bg: #0d1330; --info-line: #252d55;
    --ok: #39ff14; --ok-bg: #12331c; --ok-line: #1c5c36;
    --coming: #c9cfe6; --coming-bg: #141b3f; --coming-line: #252d55;
    --post: #39ff14; --post-bg: #12331c;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.7);
    --focus: #ffffff;
  }
}
:root[data-theme="dark"] {
  --accent: #39ff14; --accent-strong: #74ff5a; --accent-soft: #141b3f; --accent-line: #2f3a78; --accent-ink: #74ff5a; --accent-on: #0b1437;
  --bg: #070b1d; --bg-soft: #0d1330; --bg-sunk: #141b3f; --panel: #141b3f;
  --ink: #ffffff; --ink-2: #c9cfe6; --ink-3: #9aa3c7; --line: #252d55; --line-2: #6c76a3;
  --code-bg: #0d1330; --code-line: #252d55;
  --info: #c9cfe6; --info-bg: #0d1330; --info-line: #252d55;
  --ok: #39ff14; --ok-bg: #12331c; --ok-line: #1c5c36;
  --coming: #c9cfe6; --coming-bg: #141b3f; --coming-line: #252d55;
  --post: #39ff14; --post-bg: #12331c;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.7);
  --focus: #ffffff;
}
:focus-visible { outline-color: var(--focus); }
.topbar { background: var(--bg); backdrop-filter: none; }
.brand { font-family: var(--brand); font-weight: 600; letter-spacing: -0.02em; }
.brand-name { font-size: 18px; }
img.brand-mark { display: block; width: 30px; height: 30px; background: none; box-shadow: none; border-radius: 0; }
img.brand-mark--sm { width: 26px; height: 26px; }
.top-links .btn-signin { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 4px; background: var(--accent); color: var(--accent-on); font-weight: 600; }
.search-trigger, .ask-btn, .menu-btn { border-radius: 4px; }
.page-head h1 { font-family: var(--display); font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; color: var(--ink); }
.prose h2, .prose h3 { font-family: var(--display); letter-spacing: -0.03em; }
.prose h2 { font-weight: 600; }
.footer .brand-name { font-size: 16px; }

/* The header and the footer follow the Youniton site (assets/css/site.css): the same height, the same link row with "Talk to us",
   the same footer columns and the same last line. The docs keep their search, the tabs and the layout. */
.topbar-row { height: 60px; }
.brand-name { font-size: 18px; letter-spacing: -0.03em; }
.brand-name span { font-size: 16px; }
.top-links { gap: 26px; font-size: 15px; font-weight: 400; }
.top-links .btn-signin { height: 36px; padding: 0 16px; font-size: 14px; font-weight: 600; transition: background-color .15s ease; }
.top-links .btn-signin:hover { background: var(--accent-strong); opacity: 1; text-decoration: none; }
.footer { max-width: 1120px; padding: 48px 0 40px; color: var(--ink-3); font-size: 14.5px; }
.footer-cols { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin-top: 14px; font-size: 14.5px; max-width: 24em; }
.footer-h { margin-bottom: 12px; font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.footer ul { gap: 8px; }
.footer ul a { font-size: 14.5px; }
.footer ul a:hover, .footer-bottom a:hover { color: var(--ink); text-decoration: none; }
.footer .brand-name { font-size: 19px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom > span:last-child { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { color: inherit; }
.footer-note { margin-top: 12px; }
@media (max-width: 1280px) { .top-links { gap: 18px; } .top-links a:first-child { display: none; } }
@media (max-width: 1100px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 860px) { .topbar-row { height: 58px; } .brand-name { font-size: 18px; } .top-links .btn-signin { height: 38px; padding: 0 14px; font-size: 13.5px; } }
@media (min-width: 861px) { :root { --top-h: 112px; } }

/* The neutral look of 5 Dec 2026: the parts that had their own colours or large radii. */
.skip { background: var(--ink); color: var(--bg); border-radius: 4px; }
.top-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.ask-btn { border-color: var(--line-2); background: var(--bg); color: var(--ink); }
.ask-btn:hover { border-color: var(--ink); }
.menu-btn { border: 0; }
.hero { border-radius: 8px; border-color: var(--line); background: var(--bg-soft); box-shadow: none; }
.hero-kicker { color: var(--ink-3); }
.hero-title { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; }
.hero-kicker, .nav-heading, .rail-title { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.hero-grid { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); opacity: .8; }
.hero-orb { display: none; }
.hero-pill { border-radius: 4px; }
.btn { height: 40px; padding: 0 18px; border-radius: 4px; }
.btn:hover { border-color: var(--ink); }
.btn--primary, .btn--primary:hover, .faces button[aria-pressed="true"] { color: var(--accent-on); }
:root[data-theme="dark"] .btn--primary { color: var(--accent-on); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { color: var(--accent-on); } }
.card, .code, .code-tabs, .prompt, .callout, .table-wrap, .ref-toolbar, .powered, .op-path, .resp, .props { border-radius: 6px; }
.card { padding: 20px; }
a.card:hover { border-color: var(--ink); box-shadow: none; transform: none; }
.code, .code-tabs { box-shadow: none; }
.code figcaption, .code-tabs-bar { background: var(--code-bg); }
.copy { border-radius: 4px; }
.copy:not(.copy--icon) { color: #d6d6d6; }
.copy:not(.copy--icon).is-done { color: #39ff14; border-color: #39ff1455; }
.tablist [role="tab"] { color: #a8a8a8; }
.tablist [role="tab"]:hover { color: #f5f5f5; }
.tablist [role="tab"][aria-selected="true"] { border-bottom-color: #39ff14; }
.tok-k { color: #ffffff; font-weight: 500; } .tok-s { color: #39ff14; } .tok-n { color: #ffffff; } .tok-c { color: #a8a8a8; } .tok-p { color: #d6d6d6; }
.prompt { border-color: var(--line); background: var(--bg-soft); }
.search-panel { border-radius: 8px; }
.search-results li a { border-radius: 4px; }
.theme-switch { border-radius: 4px; }
.theme-switch button { border-radius: 2px; }
.theme-switch button[aria-checked="true"] { background: var(--bg-sunk); color: var(--ink); }
.footer { color: var(--ink-3); font-size: 13.5px; }
.footer ul a { font-size: 13.5px; }
.footer ul a:hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { font-size: 12.5px; }

/* Fourth direction (owner, 5 Dec 2026; docs/design-2026-12-05.md): sharp corners, the navy primary button, headings of weight 500,
   the hero panel as a field. */
.page-head h1, .prose h2, .hero-title { font-weight: 500; }
.btn, .btn--primary, .top-links .btn-signin, .search-trigger, .ask-btn, .menu-btn, .card, .code, .code-tabs, .prompt, .callout, .table-wrap, .ref-toolbar, .powered, .op-path, .resp, .props, .hero, .hero-pill, .search-panel, .search-results li a, .theme-switch, .theme-switch button, .copy, .skip, .method { border-radius: 0; }
.btn--primary, .top-links .btn-signin { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--primary:hover, .top-links .btn-signin:hover { background: #1e3a8a; border-color: #1e3a8a; color: #ffffff; }
:root[data-theme="dark"] .btn--primary, :root[data-theme="dark"] .top-links .btn-signin { background: #39ff14; border-color: #39ff14; color: #0b1437; }
:root[data-theme="dark"] .btn--primary:hover, :root[data-theme="dark"] .top-links .btn-signin:hover { background: #74ff5a; border-color: #74ff5a; color: #0b1437; }
.hero { background: linear-gradient(115deg, #f3f7ff 0%, #e6efff 52%, #dff3fb 100%); }
:root[data-theme="dark"] .hero { background: linear-gradient(115deg, #0d1330 0%, #0f1b40 52%, #0b2238 100%); }
.copy.is-done, .copy:not(.copy--icon).is-done { color: #39ff14; border-color: #39ff1455; }
.tablist [role="tab"][aria-selected="true"] { border-bottom-color: #39ff14; }
.site-tabs a[aria-current="page"], .tabs-row a[aria-current="page"] { border-bottom-color: #39ff14; }
.tok-s { color: #9db4ff; } .tok-c { color: #a9b1cf; }
