/* North ML design system. One accent, one warm neutral palette, dark by default.
   Tokens on :root; light via [data-theme=light] or the system setting when nothing is stored. */
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* North ML: night sky. Deep blue-black, ice-white type, the logo's aurora gradient as the single accent.
   Geist throughout, tight and large; Geist Mono for metadata. Glass, glow and depth, used sparingly. */
:root {
  color-scheme: dark;
  --bg: #020308; --bg-2: #05070d; --surface: #090c14; --raised: #0e121c;
  --line: rgba(200, 215, 255, .1); --line-2: rgba(200, 215, 255, .2);
  --ink: #f4f6fb; --ink-2: #aeb6c8; --ink-3: #7c869c;
  --accent: #9fb0ff; --accent-solid: #4a5df2; --accent-ink: #ffffff; --accent-soft: rgba(130, 150, 255, .14); --accent-line: rgba(159, 176, 255, .5);
  --aurora: linear-gradient(100deg, #5d7dff 0%, #9a5cf5 45%, #f05bb0 100%); --grad: var(--aurora); --glow: #6a5cf5;
  --ok: #7fd6b0; --warn: #e6bf72; --danger: #ff8a7a;
  --code-bg: #04060b; --code-str: #f4a6d0; --code-key: #cdd3e6; --code-num: #e6bf72; --code-com: #6c7690;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -24px rgba(0, 0, 10, .8);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --display-wdth: 100; --display-w: 300;
  --serif: var(--display);
  --r-1: 6px; --r-2: 6px; --r-3: 4px;
  --gutter: 20px; --max: 1200px;
  --t: 180ms cubic-bezier(.2, .7, .2, 1);
  --nav-h: 60px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fd; --bg-2: #eef2fa; --surface: #e8edf8; --raised: #ffffff;
  --line: rgba(20, 30, 70, .09); --line-2: rgba(20, 30, 70, .19);
  --ink: #0b1020; --ink-2: #414960; --ink-3: #66708a;
  --accent: #3446e0; --accent-solid: #3446e0; --accent-ink: #ffffff; --accent-soft: rgba(52, 70, 224, .08); --accent-line: rgba(52, 70, 224, .4);
  --aurora: linear-gradient(100deg, #3d52f0 0%, #8a3ff0 50%, #e0409f 100%); --grad: var(--aurora); --glow: #8a6cf5;
  --ok: #2f7d5b; --warn: #8d6514; --danger: #b23a2b;
  --code-bg: #0b0e18; --code-str: #f4a6d0; --code-key: #d4daee; --code-num: #e6bf72; --code-com: #77819b;
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 16px 40px -22px rgba(30, 40, 100, .3);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
  color-scheme: light;
  --bg: #f6f8fd; --bg-2: #eef2fa; --surface: #e8edf8; --raised: #ffffff;
  --line: rgba(20, 30, 70, .09); --line-2: rgba(20, 30, 70, .19);
  --ink: #0b1020; --ink-2: #414960; --ink-3: #66708a;
  --accent: #3446e0; --accent-solid: #3446e0; --accent-ink: #ffffff; --accent-soft: rgba(52, 70, 224, .08); --accent-line: rgba(52, 70, 224, .4);
  --aurora: linear-gradient(100deg, #3d52f0 0%, #8a3ff0 50%, #e0409f 100%); --grad: var(--aurora); --glow: #8a6cf5;
  --ok: #2f7d5b; --warn: #8d6514; --danger: #b23a2b;
  --code-bg: #0b0e18; --code-str: #f4a6d0; --code-key: #d4daee; --code-num: #e6bf72; --code-com: #77819b;
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 16px 40px -22px rgba(30, 40, 100, .3);
  }
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--r-1); z-index: 100; transition: top var(--t); }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-feature-settings: "calt" 0; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* type */
.display { font-family: var(--display); font-weight: var(--display-w); letter-spacing: -.022em; line-height: 1.06; text-wrap: balance; }
.display, .h3, .spec-name, .paper-t, .mq, .stats b, .price-big, .docs-body h2, .longform h2, .px-h { font-optical-sizing: auto; }
.h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.04; }
.h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.1; }
.h3 { font-family: var(--display); font-weight: var(--display-w); font-size: 1.5rem; line-height: 1.2; letter-spacing: -.012em; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow b { color: var(--accent); font-weight: 500; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.prose { max-width: 66ch; color: var(--ink-2); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose a, .link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color var(--t); }
.prose a:hover, .link:hover { text-decoration-color: var(--accent); }
code.k, .prose code { font: 13px var(--mono); background: var(--surface); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
kbd { font: 500 11px/1 var(--mono); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 3px 5px; min-width: 20px; text-align: center; display: inline-block; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background var(--t), border-color var(--t), color var(--t); }
.btn:hover { background: var(--raised); border-color: var(--ink-3); }
.btn:active { transform: translateY(.5px); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); filter: opacity(.86); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface); color: var(--ink); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn.is-busy::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-1); color: var(--ink-3); transition: background var(--t), color var(--t); flex: none; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.field { display: grid; gap: 6px; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12.5px; }
.input, select.input, textarea.input { width: 100%; height: 38px; padding: 0 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-1); transition: border-color var(--t), box-shadow var(--t); }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 88px; line-height: 1.5; }
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus-visible, .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.form-msg { min-height: 1.4em; font-size: 13.5px; color: var(--ink-3); }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { width: 30px; height: 18px; border-radius: 99px; background: var(--line-2); position: relative; transition: background var(--t); flex: none; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: transform var(--t); }
.switch input:checked + i { background: var(--accent-solid); }
.switch input:checked + i::after { transform: translateX(12px); background: #fff; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--bg-2); gap: 2px; }
.seg button { height: 28px; padding: 0 10px; border-radius: 4px; font-size: 13px; color: var(--ink-3); transition: background var(--t), color var(--t); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed=true], .seg button.on { background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }

/* surfaces */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.panel-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 500; }
.panel-b { padding: 16px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 99px; font: 500 11.5px/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.badge.accent { color: var(--accent); border-color: var(--accent-line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.ok { background: var(--ok); } .dot.busy { background: var(--warn); } .dot.down { background: var(--danger); }
.bar { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 4px; transition: width 400ms cubic-bezier(.2, .7, .2, 1); }
.bar.high > i { background: var(--warn); } .bar.full > i { background: var(--danger); }
.note { padding: 14px 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: var(--surface); border-radius: var(--r-1); color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.note b { color: var(--ink); font-weight: 600; }
.skel { background: linear-gradient(90deg, var(--surface), var(--raised), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-1); height: 14px; }
.empty { display: grid; place-items: center; text-align: center; gap: 6px; padding: 40px 16px; color: var(--ink-3); }
.empty b { color: var(--ink); font-weight: 500; }
.errbox { border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--ink); border-radius: var(--r-1); padding: 12px 14px; font-size: 14px; }

/* layout helpers */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kv { display: grid; gap: 4px; }
.kv .lbl { font: 500 11.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font: 500 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--raised) 60%, transparent); }
th.r, td.r { text-align: right; }
td.k, .keycode { font-family: var(--mono); font-size: 12.5px; }
tr.empty-row td { text-align: center; color: var(--ink-3); padding: 28px; }

/* code block with header bar */
.code { border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--code-bg); overflow: hidden; text-align: left; }
.code-bar { display: flex; align-items: center; gap: 4px; padding: 0 8px 0 14px; height: 38px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.code-bar .name { font: 12px var(--mono); color: var(--ink-3); margin-right: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-tabs { display: flex; gap: 2px; margin-right: auto; }
.code-tabs button { height: 26px; padding: 0 9px; border-radius: 4px; font: 12px var(--mono); color: var(--ink-3); }
.code-tabs button:hover { color: var(--ink); }
.code-tabs button[aria-selected=true] { color: var(--ink); background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.code-copy { height: 26px; padding: 0 8px; border-radius: 4px; font: 12px var(--mono); color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.code-copy:hover { color: var(--ink); background: var(--raised); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 12.5px/1.65 var(--mono); color: var(--code-key); tab-size: 2; }
.code pre code { font: inherit; }
.t-s { color: var(--code-str); } .t-n { color: var(--code-num); } .t-c { color: var(--code-com); font-style: italic; } .t-k { color: var(--ink); } .t-p { color: var(--accent); }

/* site chrome */
.site-nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-nav .container { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.mark { width: auto; height: 18px; flex: none; }
.nav-links { display: none; gap: 2px; margin-left: 8px; }
.nav-links a { padding: 6px 10px; border-radius: var(--r-1); color: var(--ink-2); font-size: 14px; transition: color var(--t), background var(--t); }
.nav-links a:hover, .nav-links a[aria-current=page] { color: var(--ink); background: var(--surface); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cmdk-btn { display: none; align-items: center; gap: 10px; height: 32px; padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-1); color: var(--ink-3); font-size: 13px; background: var(--bg-2); transition: border-color var(--t), color var(--t); }
.cmdk-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.nav-toggle { display: inline-grid; }
.nav-sheet { position: fixed; top: calc(var(--nav-h) + 8px); right: max(var(--gutter), calc((100vw - var(--max)) / 2)); z-index: 41; width: min(360px, calc(100vw - 24px)); max-height: calc(100dvh - var(--nav-h) - 24px); overflow: auto; padding: 8px; border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--raised); box-shadow: var(--shadow); display: grid; align-content: start; gap: 2px; }
.nav-sheet a { padding: 11px 12px; border-radius: var(--r-1); font-size: 14px; color: var(--ink-2); transition: background var(--t), color var(--t); }
.nav-sheet a:hover, .nav-sheet a:focus-visible { background: var(--surface); color: var(--ink); }
@media (min-width: 880px) { .nav-links { display: flex; } .cmdk-btn { display: inline-flex; } .nav-toggle { display: none; } }
@media (max-width: 879px) { .nav-right .btn.hide-sm { display: none; } }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--ink-3); }
.site-foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 48px 0 40px; color: var(--ink-3); font-size: 13.5px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.foot-grid h4 { font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-grid li + li { margin-top: 8px; }
.foot-grid a:hover { color: var(--ink); }
.foot-lead { grid-column: 1 / -1; display: grid; gap: 10px; max-width: 36ch; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12.5px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-lead { grid-column: auto; } }

/* no hero texture or scanlines: the page is type and paper. Classes kept so markup stays valid. */
.texture { position: relative; }
.scan { position: relative; }

.px-scrim { position: fixed; inset: 0; background: rgba(8, 7, 5, .55); z-index: 29; }
.px-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); font-weight: 600; font-size: 13px; flex: none; }

/* dialog, toast, command palette */
dialog.dlg { border: 1px solid var(--line-2); background: var(--raised); color: var(--ink); border-radius: var(--r-3); padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); box-shadow: var(--shadow), 0 40px 80px -20px rgba(0, 0, 0, .5); overflow: auto; }
dialog.dlg.wide { width: min(860px, calc(100vw - 32px)); }
dialog.dlg::backdrop { background: rgba(8, 7, 5, .62); backdrop-filter: blur(2px); }
dialog.dlg[open] { animation: pop 180ms cubic-bezier(.2, .7, .2, 1); }
.dlg-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { font-size: 15px; font-weight: 600; }
.dlg-b { padding: 20px; display: grid; gap: 14px; }
.dlg-f { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); padding: 9px 14px; border-radius: var(--r-1); font-size: 13.5px; box-shadow: var(--shadow); animation: rise 180ms cubic-bezier(.2, .7, .2, 1); max-width: calc(100vw - 32px); }
dialog.cmdk { border: 1px solid var(--line-2); background: var(--raised); color: var(--ink); border-radius: var(--r-3); padding: 0; width: min(600px, calc(100vw - 24px)); margin: 12vh auto auto; box-shadow: var(--shadow), 0 50px 100px -20px rgba(0, 0, 0, .6); overflow: hidden; }
dialog.cmdk::backdrop { background: rgba(8, 7, 5, .55); backdrop-filter: blur(3px); }
dialog.cmdk[open] { animation: pop 150ms cubic-bezier(.2, .7, .2, 1); }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 52px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.cmdk-in input { flex: 1; background: none; border: 0; outline: none; font-size: 16px; color: var(--ink); height: 100%; min-width: 0; }
.cmdk-list { max-height: min(52vh, 420px); overflow-y: auto; padding: 6px; }
.cmdk-group { padding: 10px 10px 4px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cmdk-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; height: 38px; padding: 0 10px; border-radius: var(--r-1); color: var(--ink-2); font-size: 14px; }
.cmdk-item[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.cmdk-item .hint { margin-left: auto; display: flex; gap: 4px; }
.cmdk-item .sub { color: var(--ink-3); font-size: 12.5px; margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-empty { padding: 28px; text-align: center; color: var(--ink-3); }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* the request / response panel (Codex-style) */
.exchange { display: grid; border: 1px solid var(--line-2); border-radius: var(--r-3); overflow: hidden; background: var(--code-bg); box-shadow: var(--shadow); }
.exchange > div { min-width: 0; }
.ex-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); font: 12px var(--mono); color: var(--ink-3); }
.ex-bar .verb { color: var(--accent); }
.ex-bar .grow { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.exchange pre { padding: 14px 16px; font: 12.5px/1.65 var(--mono); color: var(--code-key); overflow-x: auto; min-height: 160px; white-space: pre; }
.ex-res { border-top: 1px solid var(--line); }
.caret::after { content: ""; display: inline-block; width: 7px; height: 14px; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@media (min-width: 900px) { .exchange { grid-template-columns: 1fr 1fr; } .ex-res { border-top: 0; border-left: 1px solid var(--line); } }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .caret::after { animation: none; }
}

/* The kestrel photograph, untinted, with a plain caption beneath. */
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; border-radius: var(--r-2); background: var(--surface); }
/* polish: details that make the system feel finished. Nothing here changes layout. */
html { scrollbar-color: var(--line-2) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); background-clip: padding-box; border: 3px solid transparent; }
input, textarea { caret-color: var(--accent); }
.btn { box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 1px 2px rgba(0, 0, 0, .12); }
.btn.ghost { box-shadow: none; }
.btn.primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -8px rgba(0, 0, 0, .55); }
:root[data-theme="light"] .btn.primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px -8px rgba(20, 20, 40, .45); }
.btn.primary:active { filter: opacity(.8); }
.panel, .note, .exchange, .table-wrap { transition: border-color var(--t), box-shadow var(--t); }
.nav-links a, .nav-sheet a { border-radius: var(--r-1); }
.site-nav { background: color-mix(in srgb, var(--bg) 78%, transparent); }
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }

.hero-photo figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }

/* consistency pass: rhythm, wrapping and overflow guards shared by every page */
main { min-height: calc(100dvh - var(--nav-h) - 280px); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
p, li, h1, h2, h3, td { overflow-wrap: break-word; }
pre, .table-wrap, .code pre { max-width: 100%; }
.container > :first-child { margin-top: 0; }
.prose, .lede, .lp-sub { line-height: 1.65; }
.prose h2 { margin-top: 2em; margin-bottom: .6em; }
.prose h3 { margin-top: 1.6em; margin-bottom: .5em; }
.btn, .badge, .chip { -webkit-tap-highlight-color: transparent; }
.btn:focus-visible, .chip:focus-visible, .input:focus-visible { outline-offset: 2px; }
.panel + .panel, .note + .note { margin-top: 16px; }
.site-foot { margin-top: clamp(64px, 8vw, 96px); }
img { height: auto; }
@media (max-width: 480px) {
  .btn.lg { height: 44px; padding: 0 16px; }
  .site-foot { padding: 36px 0 32px; }
  th, td { padding-left: 10px; padding-right: 10px; }
}


/* ---- night sky: chrome ---- */
.brand { font: 600 17px/1 var(--sans); letter-spacing: -.02em; }
.site-nav { background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); }
.nav-links a { font: 500 13.5px var(--sans); }
.nav-links a:hover, .nav-links a[aria-current=page] { background: var(--accent-soft); color: var(--ink); border-radius: 99px; }
.btn { border-radius: 99px; box-shadow: none; }
.btn.primary, :root[data-theme="light"] .btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: 0 0 0 0 transparent; }
.btn.primary:hover { filter: none; background: var(--ink); box-shadow: 0 0 28px -4px var(--glow); }
.panel, .table-wrap, .note { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.site-foot { background: transparent; }
@media (min-width: 900px) { :root { --gutter: 32px; } }

/* ---- cinematic: shared type and components ---- */
.display, .h1, .h2, .h3 { font-weight: 300; letter-spacing: -.05em; }
.h1 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: .95; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1; }
.h3 { font-size: 1.6rem; letter-spacing: -.035em; }
.eyebrow { font: 500 11.5px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow b { color: var(--accent); }
.lede { color: var(--ink-2); font-weight: 300; }
.site-nav { background: linear-gradient(color-mix(in srgb, var(--bg) 85%, transparent), color-mix(in srgb, var(--bg) 40%, transparent)); border-bottom-color: transparent; }
.panel, .table-wrap, .note, .exchange { border-radius: var(--r-3); border-color: var(--line-2); background: var(--bg-2); }
th { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.input, select.input, textarea.input { border-radius: var(--r-1); background: var(--bg-2); }
.site-foot { border-top: 1px solid var(--line); }
.foot-grid h4 { letter-spacing: .24em; }
.btn.primary { background: var(--ink); color: var(--bg); }
@keyframes nm-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* cinematic page glow: a faint aurora over the top of every content page (not the app workspaces) */
body:not([data-product]):not(.landing)::before { content: ""; position: absolute; inset: 0 0 auto 0; height: min(90vh, 760px); z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 82% -8%, rgba(120, 90, 245, .26), transparent 70%), radial-gradient(50% 55% at 8% 0%, rgba(50, 190, 160, .16), transparent 70%), radial-gradient(40% 40% at 55% 0%, rgba(240, 91, 176, .1), transparent 70%); }
body { position: relative; isolation: isolate; }
:root[data-theme="light"] body:not([data-product]):not(.landing)::before { opacity: .55; }
.rs-h1, .rs-ph-name { font-weight: 300; letter-spacing: -.055em; }
.rs-h1 em { font-weight: 300; }
.price-grid { background: transparent; border-radius: var(--r-3); border-color: var(--line-2); }
.price-grid .accent { background: linear-gradient(160deg, rgba(120, 90, 245, .16), transparent 70%); }
.price-big { font-weight: 300; letter-spacing: -.05em; font-size: clamp(2.4rem, 4vw, 3.4rem); }
.paper-t, .spec-name, .px-h { font-weight: 300; letter-spacing: -.04em; }

/* ---- low-compute mode (html.lite, set in nm.js) ---- */
html.lite *, html.lite *::before, html.lite *::after { animation: none !important; scroll-behavior: auto !important; }
html.lite .site-nav, html.lite .landing .win, html.lite .cmds { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite .landing .win, html.lite .exchange, html.lite .bx { box-shadow: none !important; }
html.lite .sky { filter: none !important; }
html.lite .rv { opacity: 1; transform: none; transition: none; }
