/* 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 a { display: flex; align-items: center; text-decoration: none; color: inherit; }
.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 img.ci { display: block; object-fit: contain; }
.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 .body > * { margin: 0 0 8px; }
.ask .a .body > :last-child { margin-bottom: 0; }
.ask .a ul, .ask .a ol { padding: 0; list-style: none; }
.ask .a li { position: relative; padding-left: 22px; }
.ask .a li + li { margin-top: 4px; }
.ask .a ul > li::before { content: ""; position: absolute; left: 7px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: #cfcfcf; }
.ask .a ol { counter-reset: n; }
.ask .a ol > li { counter-increment: n; }
.ask .a ol > li::before { content: counter(n) "."; position: absolute; left: 2px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ask .a b { font-weight: 600; }
.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; } }

/* ── tabs, 5 Oct 2026: five tabs by what a reader came to do, each with its own sidebar ─────────────────── */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
:root { --display: "Bricolage Grotesque", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.bar { box-shadow: inset 0 -1px 0 var(--line); }
.topnav { align-self: stretch; gap: 2px; margin-left: 14px; }
.topnav > a.tab { position: relative; height: 100%; padding: 0 10px; border-radius: 0; color: var(--ink-2); }
.topnav > a.tab:hover { color: var(--ink); }
.topnav > a.tab.on { color: var(--ink); font-weight: 500; }
.topnav > a.tab.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--ink); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--fill); color: var(--ink); }
.item .logo { width: 16px; height: 16px; object-fit: contain; flex: none; }
.logo-openai { transform: scale(1.3); }
.tabpick { flex-wrap: wrap; gap: 6px; padding: 6px 2px 10px; }
.tabpick .tp { padding: 6px 10px; border-radius: 999px; font-size: 13px; color: var(--ink-2); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.tabpick .tp.on { color: #fff; background: var(--ink); box-shadow: none; }
@media (max-width: 1279px) { .topnav > a.tab { padding: 0 7px; font-size: 13.5px; } .topnav > a.tab.on::after { left: 7px; right: 7px; } }
@media (max-width: 1023px) { .tabpick.mob-only { display: flex !important; } }

/* ── the home page, from the preview of 5 Oct 2026: the hero is Geniffy working ──────────────────────────── */
.main.home { grid-template-columns: minmax(0, 1120px); padding: 56px 48px 0 64px; }
.home .doc { padding-bottom: 96px; }
.h-hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: start; }
.h-intro h1 { margin: 8px 0 22px; font: 650 clamp(44px, 5vw, 66px)/.98 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.h-lead { margin: 0 0 28px; max-width: 30em; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.h-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.h-install { display: inline-flex; align-items: center; max-width: 100%; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 13px var(--mono); color: var(--ink-2); overflow: hidden; }
.h-install > button { align-self: stretch; padding: 0 12px; color: var(--ink-3); border-right: 1px solid var(--line); }
.h-install > button[aria-pressed="true"] { color: var(--ink); background: var(--fill); }
.h-install code { padding: 9px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-install code b { color: var(--ink); font-weight: 500; }
.h-install .h-copy { border-right: 0; border-left: 1px solid var(--line); display: inline-flex; align-items: center; }
.h-install .h-copy:hover { color: var(--ink); }

.h-trace { min-width: 0; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .04), 0 24px 48px -28px rgba(23, 23, 23, .18); }
.h-thead { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0 16px; border-bottom: 1px solid var(--line); }
.h-tabs { display: flex; gap: 18px; }
.h-tabs button { position: relative; padding: 8px 0 12px; font-size: 13.5px; color: var(--ink-3); }
.h-tabs button:hover { color: var(--ink); }
.h-tabs button[aria-selected="true"] { color: var(--ink); }
.h-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.h-replay { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 12px; font-size: 12.5px; color: var(--ink-3); }
.h-replay:hover { color: var(--ink); }
.h-replay .ic { width: 13px; height: 13px; }
.h-pane { padding: 6px 0 10px; }
.h-moment { position: relative; padding: 16px 20px 16px 52px; border-bottom: 1px solid var(--line-soft); transition: background .5s ease; }
.h-moment:last-child { border-bottom: 0; }
.h-moment::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .5s ease; }
.h-moment.on { background: linear-gradient(90deg, var(--accent-soft), rgba(107, 79, 209, 0) 70%); }
.h-moment.on::before { background: var(--accent); }
.h-num { position: absolute; left: 20px; top: 17px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 500 11px var(--mono); color: var(--ink-3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.h-moment.on .h-num { color: #fff; background: var(--accent); box-shadow: none; }
.h-label { margin-bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.h-code { margin: 0; font: 13px/1.6 var(--mono); color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.h-q { border-radius: 3px; transition: background .35s ease, box-shadow .35s ease; }
.h-q.lit { background: var(--accent-soft); box-shadow: 0 2px 0 rgba(107, 79, 209, .45); }
.h-out { margin-top: 10px; display: grid; gap: 6px; }
.h-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.h-chip { padding: 2px 7px; border-radius: 999px; font: 500 11.5px var(--mono); color: var(--accent); background: var(--accent-soft); }
.h-fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 10px; border-radius: 8px; font-size: 14px; line-height: 1.55; color: var(--ink); background: var(--fill); transition: box-shadow .3s ease, background .3s ease; }
.h-fact:hover, .h-fact.lit { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(107, 79, 209, .45); }
.h-why { font-size: 12px; color: var(--ink-3); }
.h-why b { font-weight: 500; color: var(--ink-2); }
.h-ctx { font: 13px/1.7 var(--mono); color: var(--ink); }
.h-src { color: var(--accent); white-space: nowrap; }
.h-none { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--fill); }
.h-mono { font: 13px var(--mono); color: var(--ink-3); }
.h-none span:last-child { font-size: 14px; line-height: 1.55; color: var(--ink); }
.h-term { padding: 6px 0; font: 13px/1.75 var(--mono); color: var(--ink); }
.h-lite { padding: 12px 20px; }
.h-sys { color: var(--ink-3); }
.h-you::before { content: "> "; color: var(--ink-4); }
.h-cl { position: relative; margin: 2px 0; padding-left: 18px; font: 14px/1.6 var(--sans); color: var(--ink-2); }
.h-cl::before { content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #d97757; }
.h-cl q { color: var(--ink); }
.h-note { margin: 2px 0 0 18px; font: 12px var(--mono); color: var(--ink-4); }

.doc .h-apps h2, .doc .h-news h2, .doc .h-browse h2 { margin: 0 0 8px; font: 600 28px/1.15 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.h-apps { margin-top: 72px; }
.h-shead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 14px; }
.doc .h-shead p { margin: 0; font-size: 14px; color: var(--ink-3); }
.doc .h-apps ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.doc .h-apps li { margin: 0; padding: 0; }
.doc .h-apps li::before { display: none; }
.h-apps li + li { box-shadow: -1px 0 0 var(--line); }
.doc .h-apps a { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; text-decoration: none; font-weight: 400; transition: background .2s ease; }
.doc .h-apps a:hover { background: var(--fill); }
.h-mark { width: 22px; height: 22px; display: block; object-fit: contain; }
.h-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.h-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }
.h-how { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }

.h-ways { margin-top: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.h-way { display: flex; flex-direction: column; padding-top: 18px; border-top: 1px solid var(--ink); }
.doc .h-way h3 { margin: 0 0 8px; font: 600 20px/1.25 var(--display); letter-spacing: -.015em; }
.doc .h-way p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.doc ul.h-links { margin: auto 0 0; padding: 0; display: grid; }
.doc .h-links li { margin: 0; padding: 0; }
.doc .h-links li::before { display: none; }
.doc .h-links a, .doc a.h-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.doc a.h-more { border-top: 0; padding: 0; justify-content: flex-start; font-size: 14px; }
.h-links a span, .h-more span { color: var(--ink-4); transition: transform .2s ease, color .2s ease; }
.h-links a:hover span, .h-more:hover span { color: var(--ink); transform: translateX(3px); }
.h-prompt { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 12.5px/1.6 var(--mono); color: var(--ink-2); }
.h-prompt b { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px 4px 0; font: 500 12.5px var(--sans); color: var(--ink); }
.h-prompt .iconbtn { width: 28px; height: 28px; }

.h-news { margin-top: 80px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.doc .h-news p { margin: 0 0 12px; font-size: 14px; color: var(--ink-3); }
.doc ul.h-log { margin: 0; padding: 0; }
.doc .h-log li { margin: 0; padding: 0; }
.doc .h-log li::before { display: none; }
.doc .h-log a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 400; }
.h-log li:last-child a { border-bottom: 1px solid var(--line); }
.h-log time { font: 12.5px/1.7 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.h-log b { font-size: 15px; font-weight: 500; }
.h-log span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.doc .h-log a:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-4); }

.h-browse { margin-top: 80px; }
.h-cols { margin-top: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.doc .h-cols h3 { margin: 0 0 6px; font: 500 12px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.doc .h-cols h3 a { text-decoration: none; font-weight: 500; }
.doc .h-cols h3 a:hover { color: var(--ink); }
.doc .h-cols ul { margin: 0; padding: 0; }
.doc .h-cols li { margin: 0; padding: 0; }
.doc .h-cols li::before { display: none; }
.doc .h-cols li a { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 400; text-decoration: none; color: var(--ink-2); }
.doc .h-cols li a:hover { color: var(--ink); }
.h-cols .logo { width: 15px; height: 15px; object-fit: contain; flex: none; }

@media (max-width: 1400px) { .doc .h-apps ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } .h-apps li:nth-child(4) { box-shadow: 0 -1px 0 var(--line); } .h-apps li:nth-child(n+5) { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); } .h-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 1279px) { .main.home { padding: 48px 32px 0 40px; } .h-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 1023px) {
  .main.home { padding: 28px 20px 0; }
  .h-ways, .h-news { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .h-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .main.home { padding: 24px 16px 0; }
  .h-intro h1 { font-size: 42px; }
  .doc .h-apps ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-apps li { box-shadow: none !important; border-top: 1px solid var(--line); }
  .h-apps li:nth-child(-n+2) { border-top: 0; }
  .h-apps li:nth-child(even) { border-left: 1px solid var(--line); }
  .h-moment { padding: 14px 14px 14px 44px; } .h-num { left: 14px; } .h-lite { padding: 12px 14px; }
  .doc .h-log a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .h-install code { font-size: 12px; padding: 9px 10px; }
  .h-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ── the changelog: months, a filter by topic, RSS; it can grow for years and stay easy to read ──────────── */
.cl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 8px; }
.cl-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-filter button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cl-filter button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px #cfcfcf; }
.cl-filter button[aria-pressed="true"] { color: #fff; background: var(--ink); box-shadow: none; }
.doc a.cl-rss { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.doc a.cl-rss:hover { color: var(--ink); }
.cl-rss .ic { width: 15px; height: 15px; }
.cl-month h2 { scroll-margin-top: 88px; }
.cl-month h2 a { text-decoration: none !important; font-weight: 600 !important; }
.cl-entry { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.cl-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 3px; }
.cl-meta time { font: 13px/1.5 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-topic { padding: 1px 8px; border-radius: 999px; font-size: 12px; line-height: 20px; color: var(--accent); background: var(--accent-soft); }
.doc .cl-body h3 { margin: 0 0 6px; font-size: 17px; line-height: 26px; }
.doc .cl-body h3 a { text-decoration: none; font-weight: 600; }
.doc .cl-body h3 a:hover { text-decoration: underline; }
.doc .cl-body p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.doc .cl-none { color: var(--ink-3); }
.h-when { display: flex; flex-direction: column; gap: 4px; }
.h-when em { font-style: normal; font-size: 12px; color: var(--accent); }
.doc .h-subs { display: flex; gap: 18px; }
@media (max-width: 640px) {
  .cl-entry { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cl-meta { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

/* ── tiles: a compact grid of apps, each with its official mark ───────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 24px; }
.doc a.tile { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 8px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; transition: box-shadow .15s; }
.doc a.tile:hover { box-shadow: 0 0 0 1px #cfcfcf; }
.tile .tl { width: 20px; height: 20px; object-fit: contain; flex: none; }
.tile span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1023px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
