/* docs.geniffy.com. Layout: Vercel's docs frame, measured on vercel.com/docs at 1536 px: a 64 px bar, a 300 px
   sidebar, a 768 px column 80 px in, and a 240 px "On this page" rail 16 px from the edge. Light only, by
   Geniffy's rule. Approved 5 Oct 2026 from the preview at claude.ai/artifact/Qsy1UigqGPTeQPPxvv5itP. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --page: #fafafa;
  --surface: #ffffff;
  --line: #ebebeb;
  --line-soft: rgba(0, 0, 0, .08);
  --ink: #171717;
  --ink-2: #4d4d4d;
  --ink-3: #7d7d7d;
  --ink-4: #a8a8a8;
  --fill: #f2f2f2;
  --active: #ebebeb;
  --accent: #6b4fd1;
  --accent-soft: rgba(107, 79, 209, .10);
  --code-str: #227a3d;
  --code-kw: #a8336a;
  --code-num: #a35200;
  --match: #a35200;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bar: 64px;
  --side: 300px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-padding-top: 88px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
svg { flex: none; }
.ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: 6px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; }

/* the preview notice, until the SDKs and api.geniffy.com are public */
.notice { display: flex; justify-content: center; gap: 8px; padding: 9px 16px; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.5; text-align: center; }
.notice a { color: #fff; text-underline-offset: 3px; }

/* ── the frame ─────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar); background: var(--page); display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 24px; width: auto; display: block; }
.brand .slash { width: 1px; height: 22px; background: #c9c9c9; transform: rotate(20deg); margin: 0 2px; }
.brand b { font-size: 18px; font-weight: 600; letter-spacing: -.03em; color: var(--ink-2); line-height: 27px; }
.topnav { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.topnav > button, .topnav > a { height: 32px; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink-2); text-decoration: none; border-radius: 6px; }
.topnav > button:hover, .topnav > a:hover, .topnav > a[aria-current] { color: var(--ink); }
.topnav .ic { width: 12px; height: 12px; }
.bar .grow { flex: 1; }
.btn { height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; font-size: 14px; font-weight: 500; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { background: var(--fill); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn.dark:hover { background: #383838; }
.btn.lg { height: 40px; padding: 0 16px; font-size: 15px; }
.mob-only { display: none !important; }
.iconbtn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--ink-2); }
.iconbtn:hover { background: var(--fill); color: var(--ink); }
.frame { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); align-items: start; }

/* ── sidebar ───────────────────────────────────────────────────────────── */
.side { position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); overflow-y: auto; padding: 12px 12px 48px; scrollbar-width: thin; scrollbar-color: #d6d6d6 transparent; font-size: 14px; color: var(--ink-2);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
.search { width: 100%; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; border-radius: 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); font-size: 14px; }
.search:hover { box-shadow: 0 0 0 1px #d9d9d9; }
.search .lbl { flex: 1; text-align: left; }
.kbd { flex: none; font: 500 12px/1 var(--sans); color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 3px 5px; }
.grp { padding: 8px 8px 4px 10px; margin-top: 16px; font-size: 13px; line-height: 16px; color: var(--ink-3); }
.navroot > .grp:first-child { margin-top: 12px; }
.item { width: 100%; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 10px; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-size: 14px; line-height: 21px; text-align: left; }
.item:hover { color: var(--ink); background: var(--fill); }
.item.on { color: var(--ink); background: var(--active); }
.item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { font-style: normal; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 20px; color: var(--accent); background: var(--accent-soft); white-space: nowrap; }
.side .navsec { display: none; }
.side.drilled .navsec { display: block; }
.side.drilled .navroot { display: none; }
.drill { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; height: 36px; margin: 16px 0 8px; color: var(--ink); }
.drill button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--ink-2); }
.drill button:hover { background: var(--fill); color: var(--ink); }
.drill b { text-align: center; font-size: 14px; font-weight: 500; }

/* ── the page ──────────────────────────────────────────────────────────── */
.main { display: grid; grid-template-columns: minmax(0, 768px) 240px; column-gap: clamp(40px, 7.6vw, 116px); padding: 72px 16px 0 80px; min-width: 0; }
.main.wide { grid-template-columns: minmax(0, 1024px); }
.doc { min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; margin: -36px 0 28px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; color: var(--ink-4); }
.crumbs b { font-weight: 400; color: var(--ink); }
.head { display: flex; align-items: center; gap: 24px; }
.doc h1 { flex: 1; margin: 0; font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -.06em; text-wrap: balance; }
.doc h1 .badge { vertical-align: middle; letter-spacing: 0; margin-left: 8px; }
.lead { margin: 8px 0 0; }
.doc h2 { margin: 44px 0 12px; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.04em; }
.doc h3 { margin: 32px 0 8px; font-size: 19.2px; line-height: 26px; font-weight: 600; letter-spacing: -.02em; }
.doc p { margin: 16px 0; }
.doc strong { font-weight: 600; }
.doc a:not(.btn):not(.card):not(.nolink) { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(0, 0, 0, .34); }
.doc a:not(.btn):not(.card):not(.nolink):hover { text-decoration-color: var(--ink); }
.doc ul, .doc ol { margin: 16px 0; padding: 0; list-style: none; }
.doc li { position: relative; padding-left: 28px; margin: 9px 0; }
.doc ul > li::before { content: ""; position: absolute; left: 10px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: #cfcfcf; }
.doc ol { counter-reset: n; }
.doc ol > li { counter-increment: n; }
.doc ol > li::before { content: counter(n) "."; position: absolute; left: 6px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.doc blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--line); color: var(--ink-2); }
.doc code { font: 400 .9em/1 var(--mono); background: var(--fill); border: 1px solid var(--line-soft); border-radius: 4px; padding: 2px 5px; }
.doc pre code { font: inherit; background: none; border: 0; padding: 0; border-radius: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.tablewrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.doc th { text-align: left; font-weight: 500; color: var(--ink-2); background: var(--page); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.doc td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc td code { font-size: 13px; white-space: nowrap; }
.doc h2 a.anchor, .doc h3 a.anchor { text-decoration: none !important; }

.split { display: inline-flex; height: 32px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); background: var(--surface); position: relative; }
.split > button { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 14px; font-weight: 500; }
.split > button:first-child { border-right: 1px solid var(--line); }
.split > button:hover { background: var(--fill); }
.split > button:first-child:hover { border-radius: 6px 0 0 6px; }
.split > button:last-child:hover { border-radius: 0 6px 6px 0; }
.menu { position: absolute; z-index: 40; min-width: 260px; padding: 6px; background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .10); }
.menu button, .menu a { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; text-align: left; text-decoration: none; font-size: 14px; color: var(--ink); }
.menu button:hover, .menu a:hover, .menu a:focus-visible, .menu button:focus-visible { background: var(--fill); outline: none; }
.menu small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.4; margin-top: 1px; }
.menu .ic { margin-top: 3px; color: var(--ink-2); }

.prompt { margin: 20px 0 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); position: relative; }
.prompt .ph { display: flex; align-items: center; gap: 10px; height: 49px; padding: 8px 12px 8px 16px; background: var(--page); border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; font-size: 14px; color: var(--ink-2); }
.prompt .ph span { flex: 1; }
.prompt .pb { position: relative; padding: 18px 20px 22px; font-size: 15px; line-height: 24px; color: var(--ink-2); white-space: pre-wrap; overflow: hidden; }
.prompt:not(.open) .pb { max-height: 82px; }
.prompt:not(.open) .pb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--surface)); }
.pill { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); height: 32px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; }
.pill:hover { background: var(--fill); }
.prompt.open .chev-t { transform: rotate(180deg); }

.steps { margin: 28px 0 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; margin-left: 29px; }
.step + .step { margin-top: 48px; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-2); }
.step h3 { margin: 0 0 4px !important; line-height: 28px !important; }
.step h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(0, 0, 0, .34); font-weight: 600 !important; }
.step .sb { min-width: 0; }

.cb { margin: 20px 0; min-width: 0; }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button { height: 40px; padding: 0 2px; font-size: 14px; color: var(--ink-3); position: relative; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.code { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; position: relative; }
.code .chd { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.code .chd span { flex: 1; }
.code .chd .ic { width: 15px; height: 15px; }
.code pre { margin: 0; padding: 16px 20px; overflow-x: auto; font: 400 13px/22px var(--mono); color: var(--ink); tab-size: 2; }
.code .cp { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity .12s; background: var(--surface); }
.code:hover .cp, .code .cp:focus-visible { opacity: 1; }
.tk-s { color: var(--code-str); }
.tk-k { color: var(--code-kw); }
.tk-c { color: var(--ink-3); }
.tk-n { color: var(--code-num); }

.endpoint { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 4px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font: 500 14px/1 var(--mono); }
.endpoint .m { padding: 6px 8px; border-radius: 5px; font-size: 12px; letter-spacing: .02em; }
.endpoint .m.get { background: #e8f1fd; color: #1d4f91; }
.endpoint .m.post { background: #e9f5ec; color: #1a6b37; }
.endpoint .m.patch { background: #fdf3e2; color: #8a5300; }
.endpoint .m.delete { background: #fdeceb; color: #a1261d; }
.endpoint .p { padding-right: 2px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: block; min-height: 182px; padding: 24px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: inherit; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 0 0 1px #cfcfcf; }
.card .ci { width: 20px; height: 20px; color: var(--ink); stroke-width: 1.6; }
.card h4 { margin: 16px 0 8px; font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.card p { margin: 0 !important; font-size: 15px; line-height: 24px; color: var(--ink-2); }

.news { margin: 16px 0; border-top: 1px solid var(--line); }
.news a.nolink { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.news a.nolink:hover b { text-decoration: underline; text-underline-offset: 3px; }
.news time { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news b { font-weight: 500; }
.news span { display: block; font-size: 15px; color: var(--ink-2); line-height: 1.6; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 488px); gap: 48px; align-items: start; margin-bottom: 64px; }
.hero h1 { font-size: 60px !important; line-height: 60px !important; letter-spacing: -.06em !important; margin: 0 !important; }
.hero .lead { margin-top: 28px; font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 32ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .cb { margin: 4px 0 0; }

.updated { margin-top: 56px; font-size: 13px; color: var(--ink-3); }
details.related { margin-top: 40px; border-radius: 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
details.related summary { padding: 16px 20px; cursor: pointer; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 10px; }
details.related summary::-webkit-details-marker { display: none; }
details.related summary::before { content: ""; border: 5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; transition: transform .15s; }
details.related[open] summary::before { transform: rotate(90deg); }
details.related ul { margin: 0 20px 16px 26px !important; }
.pager { display: flex; justify-content: space-between; gap: 24px; margin: 64px 0 88px; }
.pager a { display: grid; gap: 4px; text-decoration: none !important; max-width: 48%; }
.pager a small { font-size: 13px; color: var(--ink-3); padding: 0 30px; }
.pager a span { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 400; }
.pager a.next { text-align: right; justify-items: end; margin-left: auto; }
.pager a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pager a .ic { color: var(--ink-3); }
.foot { border-top: 1px solid var(--line-soft); padding: 32px 24px 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.foot img { height: 20px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .grow { flex: 1; }

.toc { position: sticky; top: calc(var(--bar) + 32px); margin-top: -40px; max-height: calc(100vh - var(--bar) - 64px); overflow-y: auto; font-size: 14px; scrollbar-width: none; }
.toc h5 { margin: 0 0 16px; font-size: 14px; font-weight: 400; color: var(--ink-3); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { position: relative; display: block; padding: 4px 0 4px 16px; min-height: 32px; line-height: 24px; color: var(--ink-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc li.sub a { padding-left: 36px; }
.toc li a:hover { color: var(--ink); }
.toc li a.on { color: var(--ink); }
.toc li a.on::before { content: ""; position: absolute; left: -1px; top: 4px; bottom: 4px; width: 2px; background: var(--ink); border-radius: 2px; }

/* Ask AI: a panel on the right that the page makes room for */
:root { --ask: 400px; }
.app { transition: margin-right .2s ease; }
body.asking .app { margin-right: var(--ask); }
body.asking .toc { display: none; }
body.asking .main { grid-template-columns: minmax(0, 768px); }
.ask { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: var(--ask); background: var(--surface); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
body.asking .ask { transform: none; visibility: visible; }
.ask header { display: flex; align-items: center; gap: 2px; height: var(--bar); padding: 0 10px 0 18px; flex: none; }
.ask header b { flex: 1; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ask .feed { flex: 1; overflow-y: auto; padding: 8px 18px; display: flex; flex-direction: column; gap: 16px; }
.ask .feed .grow { flex: 1; }
.ask .sugg button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 0; font-size: 15px; text-align: left; color: var(--ink); }
.ask .sugg button:hover { text-decoration: underline; text-underline-offset: 3px; }
.ask .sugg .ic { color: var(--ink-2); }
.ask .tip { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ask .q { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 12px; background: var(--fill); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.ask .a { font-size: 15px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.ask .a code { font: .88em var(--mono); background: var(--fill); border: 1px solid var(--line-soft); border-radius: 4px; padding: 1px 4px; }
.ask .a .from { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.ask .a .from a { color: var(--ink-2); }
.ask .a.quiet { color: var(--ink-2); }
.ask .a.wait { color: var(--ink-3); }
.ask .a.wait::after { content: ""; display: inline-block; width: 1em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.ask form { margin: 8px 16px 16px; border: 1px solid var(--line); border-radius: 12px; position: relative; background: var(--surface); flex: none; }
.ask form:focus-within { border-color: #cfcfcf; }
.ask textarea { display: block; width: 100%; min-height: 96px; resize: none; border: 0; outline: 0; padding: 14px 52px 14px 16px; border-radius: 12px; font: 400 15px/1.5 var(--sans); color: var(--ink); background: none; }
.ask textarea::placeholder { color: var(--ink-4); }
.ask .send { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; }
.ask .send.ready { background: var(--ink); color: #fff; }
.ask .send:disabled { opacity: .6; cursor: default; }

/* search */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(250, 250, 250, .72); }
.sdlg { position: fixed; z-index: 61; top: 128px; left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 24px 64px rgba(0, 0, 0, .14); overflow: hidden; }
.sdlg .si { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); }
.sdlg input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 18px var(--sans); color: var(--ink); }
.sdlg input::placeholder { color: var(--ink-4); }
.sdlg .sl { padding: 12px 20px 6px; font-size: 13px; color: var(--ink-2); }
.sdlg .sr { max-height: min(60vh, 460px); overflow-y: auto; padding: 0 8px 8px; }
.res { display: flex; align-items: flex-start; gap: 14px; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.res.on { background: var(--fill); }
.res .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--ink-2); }
.res div { flex: 1; min-width: 0; }
.res b { display: block; font-size: 15px; font-weight: 400; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res span { display: block; font-size: 14px; line-height: 22px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res mark { background: none; color: var(--match); }
.res em { align-self: center; font-style: normal; font-size: 12px; color: var(--ink-2); padding: 2px 7px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.sdlg .none { padding: 28px 20px 32px; text-align: center; color: var(--ink-3); font-size: 14px; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mtools { display: none; }
.mtoc { position: fixed; z-index: 58; left: 12px; right: 12px; top: calc(var(--bar) + 8px); padding: 14px 16px; background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .12); max-height: 70vh; overflow-y: auto; }
.mtoc h5 { margin: 0 0 10px; font-size: 14px; font-weight: 400; color: var(--ink-3); }
.mtoc a { display: block; padding: 7px 0; text-decoration: none; color: var(--ink-2); }
.mtoc a.sub { padding-left: 16px; }

.lost { padding: 40px 0 96px; }
.lost h1 { margin-bottom: 12px !important; }

@media (max-width: 1279px) {
  .main { grid-template-columns: minmax(0, 768px); padding-left: 56px; padding-right: 32px; }
  .toc { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  :root { --bar: 56px; }
  .frame { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .side.drawer { display: block; position: fixed; z-index: 55; top: var(--bar); left: 0; right: 0; bottom: 0; height: auto; background: var(--page); padding: 12px 16px 48px; -webkit-mask-image: none; mask-image: none; }
  .topnav > button, .topnav > a, .desk-only { display: none !important; }
  .mob-only { display: inline-flex !important; }
  .bar { padding: 0 16px; }
  .main { padding: 20px 20px 0; }
  .crumbs { margin: 0 0 20px; }
  .mtools { display: flex; justify-content: space-between; margin-bottom: 28px; }
  .head .split { display: none; }
  .doc h1 { font-size: 32px; line-height: 40px; }
  .hero h1 { font-size: 44px !important; line-height: 46px !important; }
  .cards, .cards.three { grid-template-columns: minmax(0, 1fr); }
  .step { margin-left: 0; }
  .news a.nolink { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .notice { font-size: 13px; }
  body.asking .app { margin-right: 0; }
  .ask { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
