/* Northstar Docs. The design follows usenrthstr.com (components/home/landing.module.css):
   Geist and Geist Mono, off-white paper, white cards with hairlines, black buttons, coral as the one accent. */
:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --bg-raise: #fbfbfa;
  --bg-hover: #efefeb;
  --line: #e4e4df;
  --line-strong: #d5d5cf;
  --ink: #111111;
  --ink-2: #333331;
  --muted: #6b6b68;
  --faint: #9c9c97;
  --cross: #9c9c97;
  --sig: #e9917a;
  --acc: #c0563a;
  --acc-soft: #fbebe5;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top: 60px;
  --side: 260px;
  --toc: 240px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
.px rect { fill: var(--sig); }

/* ── Top bar: the website's nav ────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top);
  display: flex; align-items: center; gap: 8px; padding: 0 20px 0 0; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 24px; width: var(--side); height: 100%; text-decoration: none; }
.brand span { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand .mark { color: #141413; flex: none; }
.brand .brand-docs { font: 500 11.5px/1 var(--sans); letter-spacing: 0; color: var(--acc); background: var(--acc-soft); padding: 4px 9px; border-radius: 999px; margin-left: 2px; }
.tabs { flex: 1; display: flex; justify-content: center; align-items: center; gap: 4px; }
.tab { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px; font: 500 13.5px/1.6 var(--sans); text-decoration: none; color: var(--muted); transition: color .15s, background .15s; }
a.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); background: var(--bg-hover); }
.tab-soon { color: var(--faint); cursor: default; }
.tab-soon em { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: #f1f1ed; color: var(--muted); }
.top-cta { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: 9px; font: 500 13.5px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.top-login { background: var(--card); border: 1px solid var(--line-strong); color: var(--ink); }
.top-login:hover { border-color: #b9b9b2; }
.top-start { background: var(--ink); color: #fff; }
.top-start:hover { background: #2a2a28; color: #fff; }
.menu-btn { display: none; }

/* ── Three columns ─────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) var(--toc); min-height: calc(100vh - var(--top)); }

.side {
  position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top)); overflow-y: auto;
  padding: 22px 14px 40px; border-right: 1px solid var(--line);
}
.search-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: 9px; background: var(--card); color: var(--faint); font: 13.5px var(--sans); cursor: pointer; text-align: left;
  transition: border-color .15s;
}
.search-btn:hover { border-color: #b9b9b2; }
.search-btn span { flex: 1; }
kbd { font: 500 11px/1 var(--mono); color: var(--muted); padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.side-group { margin-top: 28px; }
.side-title { margin: 0 0 6px; padding: 0 10px; font: 500 12.5px/1.4 var(--mono); color: var(--acc); }
.side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side li a {
  display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; color: var(--muted); text-decoration: none;
  transition: background .15s, color .15s;
}
.side li a:hover { color: var(--ink); }
.side li a.is-active { background: var(--bg-hover); color: var(--ink); font-weight: 500; }

.main { min-width: 0; display: flex; flex-direction: column; }
.doc { width: 100%; max-width: 780px; margin: 0 auto; padding: 64px 56px 40px; flex: 1; }

.toc { position: sticky; top: var(--top); align-self: start; max-height: calc(100vh - var(--top)); overflow-y: auto; padding: 44px 20px 40px; }
.toc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--ink); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent; font-size: 13px; line-height: 1.45; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--ink); }

/* ── The page ──────────────────────────────────────────────────────────────── */
.crumb { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 500 12.5px/1.4 var(--mono); color: var(--acc); }
.crumb i { display: none; }
.doc h1 { margin: 0 0 28px; font: 500 46px/1.04 var(--mono); letter-spacing: -0.06em; text-wrap: balance; }
/* Hero: a white stage on the website's faint grid, like its product scenes */
.hero { margin: 0 0 32px; border: 1px solid var(--line); border-radius: 18px; background-color: var(--card); background-image: linear-gradient(rgba(17,17,17,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px); background-size: 32px 32px; background-position: center; aspect-ratio: 920 / 300; overflow: hidden; }
.hero svg { display: block; width: 100%; height: 100%; overflow: visible; }
.h-drop { animation: h-drop 1s cubic-bezier(.3,.8,.3,1) both; }
.h-in { animation: h-in .8s var(--ease) both; }
.h-bob { animation: h-bob 3.2s ease-in-out infinite; }
.h-ghost { fill: none; stroke: #b9b9b2; stroke-width: 1; stroke-dasharray: 3 3; }
.h-line, .h-rule { stroke: var(--line-strong); stroke-width: 1; }
.h-rule { stroke: var(--line); }
.h-tag rect:first-child { fill: none; stroke: var(--line-strong); stroke-dasharray: 3 3; }
.h-tag text { font: 17px var(--sans); letter-spacing: -0.02em; fill: var(--faint); }
.h-tag.is-hi rect:first-child { fill: #fff; stroke-dasharray: none; }
.h-tag.is-hi text { fill: var(--ink); }
.h-end { fill: #141413; }
.h-num { font: 500 13px var(--mono); fill: var(--acc); }
@keyframes h-drop { 0% { opacity: 0; transform: translateY(-90px); } 70% { opacity: 1; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@keyframes h-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes h-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.doc .lede { margin: 0 0 32px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.doc h2 { margin: 72px 0 18px; font: 500 27px/1.12 var(--mono); letter-spacing: -0.05em; }
.doc h3 { margin: 40px 0 12px; font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }
.doc h2 + h3 { margin-top: 24px; }
.anchor { color: inherit; text-decoration: none; }
.anchor:hover { color: var(--acc); }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.doc p { margin: 0 0 20px; }
.doc ul, .doc ol { margin: 0 0 24px; padding-left: 0; }
.doc li { margin: 10px 0; }
.doc ul > li { list-style: none; position: relative; padding-left: 24px; }
.doc ul > li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 2px; background: var(--sig); }
.doc ol:not(.steps) > li { margin-left: 22px; padding-left: 4px; }
.doc ol:not(.steps) > li::marker { color: var(--acc); font: 500 13px var(--mono); }
.doc strong { color: inherit; font-weight: inherit; }
.doc a:not(.card):not(.btn):not(.anchor):not(.pager a) { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color .15s; }
.doc a:not(.card):not(.btn):not(.anchor):not(.pager a):hover { border-color: var(--ink); }
code { font: 0.86em var(--mono); background: #f1f1ed; color: var(--ink); padding: 2px 6px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* Buttons, as on the website: black, and white with a hairline */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px; font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a28; color: #fff; }
.btn-line { background: var(--card); border: 1px solid var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: #b9b9b2; }

/* Tables: a white card, like the website's app tables */
.table { margin: 12px 0 32px; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
th { text-align: left; font: 500 12px/1.4 var(--sans); color: var(--faint); padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--bg-raise); white-space: nowrap; }
td { padding: 13px 18px; border-bottom: 1px solid #efefeb; color: var(--ink-2); vertical-align: top; font-size: 14.5px; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); white-space: nowrap; font-weight: 500; }

/* Callouts */
.callout { display: flex; gap: 14px; align-items: flex-start; margin: 12px 0 32px; padding: 16px 18px; background: var(--acc-soft); border: 1px solid #f3d3c7; border-radius: 12px; }
.callout .px { flex: none; margin-top: 7px; }
.callout .px rect { fill: var(--acc); }
.callout p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* Cards: white, rounded, a hairline, lifting a little on hover */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 40px; }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.cols-1 { grid-template-columns: minmax(0, 1fr); }
.cards:not(.cols-3) > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: #b9b9b2; transform: translateY(-2px); }
.card .card-ico { margin-bottom: 8px; }
.card strong { font-size: 16px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }
.card span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.card .tl { color: var(--ink-2); font-weight: 500; }
.card .go { margin-top: auto; padding-top: 8px; font: 500 12.5px/1 var(--mono); color: var(--acc); }
.card .go::after { content: " →"; transition: margin .15s; }
a.card:hover .go::after { margin-left: 3px; }

/* Steps (Quickstart) */
.doc ol.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 0 40px; margin: 0 0 16px; }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 3px; font: 500 12.5px/1.5 var(--mono); color: var(--acc); }

/* Pager and footer */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 88px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; transition: border-color .15s; }
.pager a:hover { border-color: #b9b9b2; }
.pager a span { font: 500 12px/1 var(--mono); color: var(--faint); letter-spacing: 0; }
.pager-next { text-align: right; align-items: flex-end; }

/* Search */
.search { position: fixed; inset: 0; z-index: 60; background: rgba(17, 17, 17, 0.24); display: flex; justify-content: center; padding: 12vh 16px 16px; }
.search[hidden] { display: none; }
.search-box { width: 100%; max-width: 640px; max-height: 70vh; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px -24px rgba(40,30,20,.25); }
.search-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--line); color: var(--faint); }
.search-input input { flex: 1; border: 0; outline: 0; background: transparent; font: 16px var(--sans); color: var(--ink); }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; }
.search-results a.is-active, .search-results a:hover { background: var(--bg-hover); }
.search-results b { display: block; font-weight: 500; font-size: 15px; }
.search-results small { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.search-results .empty { padding: 20px 12px; color: var(--muted); font-size: 15px; }
mark { background: var(--acc-soft); color: var(--acc); }

/* ── Smaller screens ───────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .shell { grid-template-columns: var(--side) minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  :root { --side: 280px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .top { padding-right: 8px; }
  .brand { width: auto; padding: 0 16px; }
  .tabs, .top-login { display: none; }
  .top-start { margin-left: auto; }
  .menu-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 34px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; order: 3; }
  .side { position: fixed; top: var(--top); left: 0; z-index: 30; width: min(var(--side), 86vw); background: var(--bg); transform: translateX(-100%); transition: transform .3s var(--ease); }
  .side.is-open { transform: none; box-shadow: 24px 0 48px rgba(17,17,17,.12); }
  .doc { padding: 36px 16px 32px; }
  .doc h1 { font-size: 34px; }
  .doc h2 { font-size: 23px; margin-top: 48px; }
  .doc .lede { font-size: 16px; }
  .cards, .cards.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .foot { margin-top: 48px; padding: 32px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Product clips: the Northstar app, rebuilt from its own layout and tokens ─── */
.clip { position: relative; margin: 16px 0 40px; border: 1px solid var(--line); border-radius: 18px; background-color: var(--card); background-image: linear-gradient(rgba(17,17,17,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.028) 1px, transparent 1px); background-size: 32px 32px; background-position: center; aspect-ratio: 880 / 540; overflow: hidden; }
.clip-stage { position: absolute; left: 0; top: 0; width: 880px; height: 540px; transform-origin: 0 0; }
.c-block { position: absolute; }
.c-win { position: absolute; left: 40px; top: 16px; width: 800px; height: 509px; background: #fbfbfa; border: 1px solid #d5d5cf; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px -24px rgba(40,30,20,.25); overflow: hidden; }
.c-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #fbfbfa; border-bottom: 1px solid #e4e4df; }
.c-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcdcd6; }
.c-view { width: 1200px; height: 712px; transform: scale(.666667); transform-origin: 0 0; }
.c-cursor { position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none; transition-property: transform; transition-timing-function: cubic-bezier(.45,.05,.3,1); }
.c-cursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--acc); opacity: 0; transform: scale(.4); }
.c-cursor.click::after { animation: c-click .45s ease-out; }
@keyframes c-click { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }

/* timeline states */
.clip [data-on] { transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.clip [data-on]:not(.on) { opacity: 0; visibility: hidden; }
.clip .a-swap:not(.on), .clip .a-step-wrap:not(.on), .clip .a-tr[data-on]:not(.on), .clip .off { display: none !important; }
.clip .a-swap.on, .clip .a-step-wrap.on { animation: a-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes a-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* the app */
.a-app { position: relative; width: 1200px; height: 712px; display: flex; background: #F4F4F1; font: 14px/1.4 'Geist', system-ui, sans-serif; color: #1A1A18; letter-spacing: -0.005em; overflow: hidden; }
.a-app b { font-weight: 500; }
.a-ic { flex: none; }
.a-sp { flex: 1; }
.a-muted { color: #807D76; }
.a-side { flex: 0 0 236px; display: flex; flex-direction: column; padding: 12px 10px; gap: 2px; }
.a-ws { display: flex; align-items: center; gap: 9px; padding: 4px 6px 10px; font-size: 15px; }
.a-wsl { width: 22px; height: 22px; border-radius: 6px; background: #F76808; color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.a-tabs { display: flex; align-items: center; gap: 14px; padding: 2px 4px 10px; }
.a-tab { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 8px; color: #1A1A18; font-size: 14px; }
.a-tab.is-on { background: #E9E8E3; }
.a-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; margin-bottom: 8px; border: 1px solid #E8E7E3; border-radius: 8px; background: #fff; color: #A3A19A; font-size: 14px; }
.a-search span { flex: 1; }
.a-search kbd { font: 11px 'Geist Mono', monospace; color: #A3A19A; border: 1px solid #E8E7E3; border-radius: 5px; padding: 2px 5px; background: #F7F6F3; }
.a-nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: #1A1A18; }
.a-nav span { flex: 1; }
.a-nav.is-active { background: #E9E8E3; }
.a-sub { padding-left: 32px; }
.a-sub2 { padding-left: 40px; }
.a-group { margin: 14px 10px 4px; font-size: 12.5px; color: #A3A19A; display: flex; align-items: center; gap: 4px; }
.a-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.a-tg { width: 30px; height: 18px; border-radius: 9px; background: #E2E1DC; position: relative; transition: background .25s ease; }
.a-tg::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s ease; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.a-tg.is-on, .a-tg.flag { background: #1A1A18; }
.a-tg.is-on::after, .a-tg.flag::after { transform: translateX(12px); }
.a-userrow { display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; margin-top: 6px; border-top: 1px solid #E8E7E3; }
.a-userrow div { display: flex; flex-direction: column; font-size: 13px; }
.a-userrow small { color: #807D76; font-size: 11.5px; }
.a-me { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff 0 22%, transparent 23%), #7A5AF8; display: inline-block; flex: none; }
.a-main { position: relative; flex: 1; min-width: 0; margin: 8px 8px 8px 0; background: #fff; border: 1px solid #E8E7E3; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.a-head { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 20px; border-bottom: 1px solid #EFEEEA; font-size: 15px; }
.a-title { font-weight: 450; }
.a-connect { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; background: #1A1A18; color: #fff; font-size: 14px; font-weight: 500; }
.a-tool { height: 54px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 18px 0 20px; border-bottom: 1px solid #EFEEEA; font-size: 14px; }
.a-view { display: inline-flex; align-items: center; gap: 8px; }
.a-sbox { display: inline-flex; align-items: center; gap: 8px; width: 200px; height: 34px; padding: 0 10px; border: 1px solid #E8E7E3; border-radius: 8px; color: #A3A19A; }
.a-tl { display: inline-flex; align-items: center; gap: 6px; color: #45453F; font-size: 14px; }
.a-table { font-size: 14px; }
.a-tr { display: grid; align-items: center; min-height: 46px; border-bottom: 1px solid #EFEEEA; padding: 0 0 0 16px; }
.a-tr > span { display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 12px; overflow: hidden; white-space: nowrap; }
.a-th { min-height: 40px; color: #807D76; font-size: 13.5px; }
.a-cols { grid-template-columns: 34px 1.35fr 1.3fr .8fr .5fr 2.6fr 1.1fr .9fr; }
.a-cols-n { grid-template-columns: 34px 1.6fr 1.3fr 1fr; }
.a-cb { width: 15px; height: 15px; border: 1.5px solid #CFCEC8; border-radius: 4px; padding: 0 !important; }
.a-co b { font-weight: 500; }
.a-co small { color: #A3A19A; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.a-logo { border-radius: 6px; color: #fff; font-weight: 600; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.a-pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid #E8E7E3; border-radius: 999px; font-size: 13px; }
.a-avs { gap: 0 !important; }
.a-av { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-right: -6px; font-size: 9.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.a-sig { flex: none; display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.a-sig-blue { background: #EBF0FF; color: #2F5BEA; }
.a-sig-red { background: #FDECEC; color: #C4302B; }
.a-sig-amber { background: #FDF3E3; color: #A05A00; }
.a-sig-green { background: #E6F4EC; color: #1F7A4A; }
.a-sig-grey { background: #F2F1ED; color: #575550; }
.a-ev { color: #1A1A18; overflow: hidden; text-overflow: ellipsis; }
.a-sigcell > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.a-own { gap: 8px; }
.a-dash { color: #A3A19A; }
.a-row-h { position: relative; }
.a-ell { overflow: hidden; text-overflow: ellipsis; display: block !important; }
.a-crumb { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 22px; border-bottom: 1px solid #EFEEEA; font-size: 15px; }
.a-pagehead { display: flex; align-items: flex-start; padding: 24px 30px 18px; }
.a-pagehead h3 { margin: 0 0 4px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.a-pagehead p { margin: 0; font-size: 14px; max-width: 560px; }
.a-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid #E8E7E3; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.a-btn-dark { background: #1A1A18; color: #fff; border-color: #1A1A18; }
.a-input { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 11px; border: 1px solid #E2E1DC; border-radius: 8px; font-size: 14px; background: #fff; }
.a-area { min-height: 56px; align-items: flex-start; }
.a-area2 { min-height: 92px; align-items: flex-start; }
.a-caret { width: 1px; height: 16px; background: #1A1A18; animation: a-blink 1s steps(1) infinite; }
@keyframes a-blink { 50% { opacity: 0; } }
.a-app label { display: block; margin: 12px 0 6px; font-size: 12.5px; color: #807D76; }
.a-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.a-chips span { padding: 5px 10px; border: 1px solid #E2E1DC; border-radius: 7px; font-size: 13px; color: #575550; transition: all .25s ease; }
.a-chips .a-chip-sel.flag { border-color: #c0563a; color: #c0563a; background: #fbebe5; }
.a-seg { display: flex; border: 1px solid #E2E1DC; border-radius: 8px; padding: 2px; }
.a-seg span { flex: 1; text-align: center; padding: 6px 0; border-radius: 6px; font-size: 13px; color: #807D76; transition: all .25s ease; }
.a-seg .a-seg-a { background: #F2F1ED; color: #1A1A18; }
.a-seg:has(.a-seg-b.flag) .a-seg-a { background: transparent; color: #807D76; }
.a-seg .a-seg-b.flag { background: #1A1A18; color: #fff; }
.a-modal, .a-pop { position: absolute; z-index: 5; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(20,20,18,.08), 0 24px 56px -12px rgba(20,20,18,.28), 0 4px 8px -4px rgba(20,20,18,.06); padding: 20px 22px; }
.a-modal { left: 50%; top: 150px; width: 420px; margin-left: -92px; }
.a-modal.on, .a-pop.on { transform: none; }
.a-modal:not(.on), .a-pop:not(.on) { transform: translateY(8px) scale(.98); }
.a-modal-w { width: 460px; }
.a-pop { width: 320px; padding: 16px 18px; }
.a-modal-t { margin: 0 0 4px; font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.a-modal-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.a-small { font-size: 13px; margin: 0 0 12px; }
.a-toast { position: absolute; z-index: 6; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: #1A1A18; color: #fff; font-size: 13.5px; white-space: nowrap; box-shadow: 0 12px 32px -8px rgba(20,20,18,.3); }
.a-toast-top { bottom: auto; top: 70px; left: auto; right: 24px; transform: none; background: #fff; color: #1A1A18; box-shadow: 0 0 0 1px rgba(20,20,18,.08), 0 12px 32px -8px rgba(20,20,18,.18); }

/* data model visualizer */
.a-canvas { position: relative; flex: 1; margin: 0 30px 24px; border: 1px solid #E8E7E3; border-radius: 10px; background-image: radial-gradient(circle, #E2E1DC 1px, transparent 1.3px); background-size: 16px 16px; overflow: hidden; }
.a-find { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 8px; width: 220px; height: 34px; padding: 0 10px; background: #fff; border: 1px solid #E8E7E3; border-radius: 8px; color: #A3A19A; font-size: 14px; z-index: 2; }
.a-zoom { position: absolute; right: 136px; top: 14px; display: flex; border: 1px solid #E8E7E3; border-radius: 8px; background: #fff; z-index: 2; }
.a-zoom span { width: 34px; height: 32px; display: flex; align-items: center; justify-content: center; border-right: 1px solid #E8E7E3; }
.a-zoom span:last-child { border: 0; }
.a-auto { position: absolute; right: 14px; top: 14px; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #E8E7E3; border-radius: 8px; background: #fff; font-size: 14px; z-index: 2; }
.a-lines { position: absolute; left: 0; top: 0; }
.a-lines path { fill: none; stroke: #CFCEC8; stroke-width: 1.2; }
.a-card { position: absolute; width: 230px; background: #fff; border: 1px solid #E8E7E3; border-radius: 9px; box-shadow: 0 1px 2px rgba(20,20,18,.04); font-size: 12.5px; }
.a-card-h { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-bottom: 1px solid #EFEEEA; font-size: 13px; }
.a-card-r { display: flex; align-items: center; gap: 8px; padding: 5px 11px; }
.a-card-r code { font: 10.5px 'Geist Mono', monospace; color: #A3A19A; }
.a-rel { background: #FCFCFB; }
.a-card-add { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-top: 1px solid #EFEEEA; color: #807D76; }
.a-card-new.on { animation: a-drop .7s cubic-bezier(.3,.8,.3,1); }
@keyframes a-drop { 0% { opacity: 0; transform: translateY(-40px); } 70% { opacity: 1; transform: translateY(3px); } 100% { transform: none; } }
.a-newrow.on { animation: a-flash 2.4s ease; }
@keyframes a-flash { 0%, 40% { background: #fbebe5; } 100% { background: transparent; } }
.a-aib { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 5px; background: #fbebe5; color: #c0563a; font-size: 10.5px; font-weight: 500; }
.a-line-new.on { animation: a-draw .8s ease; }
@keyframes a-draw { from { opacity: 0; } to { opacity: 1; } }

/* graph panel */
.a-gpanel { position: absolute; top: 8px; right: 8px; bottom: 8px; width: 560px; z-index: 4; background: #fff; border: 1px solid #E8E7E3; border-radius: 10px; box-shadow: -18px 0 40px -28px rgba(20,20,18,.25); display: flex; flex-direction: column; }
.a-gpanel:not(.on) { transform: translateX(30px); }
.a-gp-h { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 20px; border-bottom: 1px solid #EFEEEA; font-size: 15px; }
.a-gp-rail { position: absolute; right: 14px; top: 70px; display: flex; flex-direction: column; gap: 16px; z-index: 2; }
.a-gp-g { height: 380px; border-bottom: 1px solid #EFEEEA; overflow: hidden; }
.a-gsvg { display: block; margin-left: -70px; margin-top: -10px; }
.a-ge { stroke: #D6D5D0; stroke-width: 1; }
.a-gn circle { fill: #8A8883; }
.a-gn text { font: 12.5px 'Geist', sans-serif; fill: #1A1A18; }
.a-gn-hot circle { fill: #3A3936; }
.a-gring { fill: none; stroke: #c0563a; stroke-width: 2; }
.clip .a-gring.on ~ * {}
.a-gp-d { padding: 16px 20px; font-size: 14px; }
.a-gp-d p { margin: 0; }
.a-gp-who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.a-gp-who .a-av { width: 32px; height: 32px; margin: 0; font-size: 11px; }
.a-gp-who div { display: flex; flex-direction: column; }
.a-gp-who small { color: #807D76; font-size: 12.5px; }
.a-gp-c { display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 2px 8px; padding: 8px 0; border-top: 1px solid #EFEEEA; }
.a-gp-c small { grid-column: 2 / -1; color: #807D76; font-size: 12.5px; }
.a-relchip { justify-self: start; padding: 1px 7px; border-radius: 5px; background: #F2F1ED; color: #575550; font-size: 11.5px; }

/* record + profile */
.a-rec { padding: 22px 30px; overflow: hidden; }
.a-rec-h { display: flex; align-items: center; gap: 14px; }
.a-rec-h .a-logo { border-radius: 10px; font-size: 18px; }
.a-rec-h h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.a-rec-h p { margin: 2px 0 0; font-size: 13.5px; }
.a-rtabs { display: flex; gap: 22px; margin: 18px 0 0; border-bottom: 1px solid #EFEEEA; font-size: 14px; color: #807D76; }
.a-rtabs span { padding: 0 0 10px; }
.a-rtabs .is-on { color: #1A1A18; box-shadow: inset 0 -2px #1A1A18; }
.a-doc { padding-top: 18px; }
.a-doc-t { display: flex; align-items: baseline; gap: 12px; }
.a-doc-t h4 { margin: 0; font-size: 17px; font-weight: 500; }
.a-doc-t .a-muted { font-size: 13px; }
.a-props { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 14px 0 6px; font-size: 13.5px; align-items: center; }
.a-props > span { display: flex; align-items: center; gap: 8px; }
.a-pcols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; }
.a-psec h5 { margin: 14px 0 6px; font-size: 13px; font-weight: 500; color: #807D76; }
.a-psec ul { margin: 0; padding: 0; list-style: none; }
.a-pl { position: relative; padding: 4px 0 4px 14px; font-size: 14px; line-height: 1.45; }
.a-pl::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: #CFCEC8; }
.a-pl-new.on { animation: a-flash 2.6s ease; border-radius: 6px; }
.a-qpop { position: absolute; z-index: 6; left: 700px; top: 470px; width: 340px; padding: 14px 16px; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px rgba(20,20,18,.08), 0 16px 40px -10px rgba(20,20,18,.25); font-size: 14px; }
.a-qpop p { margin: 6px 0 10px; line-height: 1.45; }
.a-qpop small { display: flex; align-items: center; gap: 8px; color: #807D76; font-size: 12.5px; }
.a-qpop .a-av { margin: 0; }

/* logs drawer */
.a-drawer { margin-top: auto; border-top: 1px solid #E8E7E3; }
.a-dtabs { display: flex; gap: 26px; height: 50px; align-items: center; padding: 0 24px; border-bottom: 1px solid #EFEEEA; font-size: 14px; }
.a-dt { display: inline-flex; align-items: center; gap: 7px; height: 100%; color: #807D76; }
.a-drawer:not(.flag) .a-dt-ev, .a-drawer.flag .a-dt-sig { color: #1A1A18; box-shadow: inset 0 -2px #1A1A18; }
.a-drawer.flag .a-db-ev, .a-drawer:not(.flag) .a-db-sig { display: none; }
.a-lcols { grid-template-columns: 1fr 1.1fr .9fr 3fr .5fr; }
.a-scols { grid-template-columns: .7fr 1.2fr 1.3fr 2.8fr .8fr; }
.a-rowin.on, .a-rowin2.on { animation: a-flash 2.4s ease; }
.a-swap.on .a-sig-red { animation: a-pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes a-pop { from { transform: scale(.7); } to { transform: none; } }

/* rev play editor */
.a-rp-bar { display: flex; align-items: center; gap: 18px; height: 56px; padding: 0 20px 0 30px; font-size: 14px; }
.a-rp-bar b { font-size: 15px; }
.a-ver { padding: 2px 7px; border: 1px solid #E8E7E3; border-radius: 6px; font-size: 12px; color: #807D76; }
.a-rp { flex: 1; display: flex; gap: 10px; padding: 0 10px 10px; }
.a-flow { position: relative; flex: 1; border: 1px solid #E8E7E3; border-radius: 10px; background-image: radial-gradient(circle, #E2E1DC 1px, transparent 1.3px); background-size: 16px 16px; display: flex; flex-direction: column; align-items: center; padding-top: 44px; }
.a-node { width: 250px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid #E2E1DC; border-radius: 9px; box-shadow: 0 1px 2px rgba(20,20,18,.04); }
.a-node-i { width: 32px; height: 32px; border-radius: 7px; background: #F2F1ED; display: flex; align-items: center; justify-content: center; }
.a-node div { display: flex; flex-direction: column; }
.a-node small { font-size: 12px; color: #807D76; }
.a-node b { font-size: 14px; }
.a-step-wrap { display: flex; flex-direction: column; align-items: center; }
.a-wire { width: 1.5px; height: 34px; background: #CFCEC8; }
.a-addstep { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px dashed #CFCEC8; border-radius: 8px; background: #fff; font-size: 14px; }
.a-menu { position: absolute; left: 50%; margin-left: 100px; top: 140px; width: 260px; padding: 8px; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px rgba(20,20,18,.08), 0 16px 40px -10px rgba(20,20,18,.25); display: flex; flex-direction: column; z-index: 3; font-size: 14px; }
.a-menu p { margin: 2px 8px 6px; font-size: 12px; }
.a-menu span { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px; }
.a-cfg { flex: 0 0 320px; border: 1px solid #E8E7E3; border-radius: 10px; padding: 18px; font-size: 14px; position: relative; }
.a-cfg-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.a-cfg-t { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.a-switch { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px; border: 1px solid #E8E7E3; border-radius: 9px; }
.a-switch .a-tg { margin-top: 2px; flex: none; }
.a-switch div { display: flex; flex-direction: column; gap: 2px; }
.a-switch small { font-size: 12.5px; }

/* wiki page */
.a-wiki { padding: 26px 60px; overflow: hidden; font-size: 14.5px; line-height: 1.6; }
.a-wiki h2 { margin: 0 0 4px; font-size: 26px; font-weight: 500; letter-spacing: -0.025em; }
.a-wiki h5 { margin: 16px 0 4px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.a-wiki p { margin: 0; color: #3D3C38; }
.a-rewrite { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; padding: 8px 12px; border-radius: 8px; background: #fbebe5; color: #c0563a; font-size: 13.5px; }
.a-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: a-rot .8s linear infinite; display: inline-block; flex: none; }
@keyframes a-rot { to { transform: rotate(360deg); } }
.a-wnew.on { animation: a-flash 3s ease; border-radius: 8px; margin: 0 -10px; padding: 0 10px 6px; }
.a-newtag { padding: 1px 7px; border-radius: 5px; background: #E6F4EC; color: #1F7A4A; font-size: 11.5px; font-weight: 500; }
.a-cite { display: inline-flex; padding: 1px 7px; border-radius: 5px; background: #F2F1ED; color: #575550; font-size: 12px; }

/* agent chat */
.a-chat { position: absolute; z-index: 5; right: 22px; top: 40px; bottom: 22px; width: 470px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(20,20,18,.08), 0 30px 70px -24px rgba(20,20,18,.35); display: flex; flex-direction: column; overflow: hidden; }
.a-chat-h { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-bottom: 1px solid #EFEEEA; font-size: 14px; }
.a-chat-h i { width: 10px; height: 10px; border-radius: 50%; background: #E2E1DC; }
.a-chat-h b { margin-left: 8px; }
.a-chat-b { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; font-size: 14px; }
.a-msg-u { align-self: flex-end; max-width: 80%; padding: 9px 13px; border-radius: 12px; background: #F2F1ED; }
.a-tool { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #E8E7E3; border-radius: 8px; font-size: 13px; }
.a-tool code { font: 12.5px 'Geist Mono', monospace; color: #c0563a; }
.a-tool .a-spin { color: #A3A19A; margin-left: auto; }
.a-ok { margin-left: auto; display: inline-flex; }
.a-ans { line-height: 1.5; }
.a-ans b { display: block; font-size: 13px; color: #807D76; }
.a-ans p { margin: 0; }
.a-chat-in { margin: 0 14px 14px; padding: 11px 13px; border: 1px solid #E2E1DC; border-radius: 10px; color: #A3A19A; font-size: 14px; }

/* api keys */
.a-ktable { margin: 0 30px; border: 1px solid #E8E7E3; border-radius: 10px; overflow: hidden; }
.a-ktable .a-tr:last-child { border-bottom: 0; }
.a-kcols { grid-template-columns: 1.6fr 1fr 1.2fr .9fr; }
.a-opts { display: flex; flex-direction: column; gap: 8px; }
.a-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #E2E1DC; border-radius: 9px; transition: border-color .25s ease, background .25s ease; }
.a-opt > i { width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.5px solid #CFCEC8; flex: none; transition: all .25s ease; }
.a-opt div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.a-opt small { font-size: 12.5px; }
.a-opts:not(.flag) .a-opt-1, .a-opts.flag .a-opt-2 { border-color: #1A1A18; background: #FAFAF8; }
.a-opts:not(.flag) .a-opt-1 > i, .a-opts.flag .a-opt-2 > i { border: 5px solid #1A1A18; }
.a-keybox { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid #E2E1DC; border-radius: 8px; background: #FAFAF8; }
.a-keybox code { flex: 1; font: 13px 'Geist Mono', monospace; }

/* Feature cards, as on the website's "how it works" steps: a scene on top, the text below, in one white card */
.cards.feature { gap: 14px; margin: 24px 0 48px; }
.cards.feature .card { padding: 0; gap: 0; overflow: hidden; }
.cards.feature .tile { display: block; aspect-ratio: 440 / 200; border-bottom: 1px solid var(--line); background-color: var(--bg-raise); background-image: linear-gradient(rgba(17,17,17,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.03) 1px, transparent 1px); background-size: 24px 24px; background-position: center; overflow: hidden; }
.cards.feature .tile svg { display: block; width: 100%; height: 100%; }
.cards.feature .tile .h-drop, .cards.feature .tile .h-in { animation: none; }
.cards.feature .tile g > g { transition: transform .5s var(--ease); }
.cards.feature a.card:hover .tile .h-drop { transform: translateY(-4px); }
.cards.feature .card strong { padding: 20px 22px 0; font-size: 17px; margin-bottom: 6px; }
.cards.feature .card span:not(.tile) { padding: 0 22px 22px; font-size: 14.5px; line-height: 1.6; }
.cards.feature > .card:last-child:nth-child(odd) { grid-column: auto; }
.tile .h-drop { transition: transform .5s var(--ease); }

/* Footer, as on the website: a hairline, the mark and name, the site, the socials */
.foot { width: 100%; max-width: 780px; margin: 64px auto 0; padding: 0 56px 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.foot::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--line); margin-bottom: 24px; }
.foot-brand { justify-self: start; display: inline-flex; align-items: center; gap: 8px; color: #141413; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.foot-site { font: 500 13px var(--mono); color: var(--muted); text-decoration: none; transition: color .15s; }
.foot-site:hover { color: var(--ink); }
.foot-social { justify-self: end; display: flex; gap: 14px; }
.foot-social a { color: var(--muted); display: inline-flex; transition: color .15s; }
.foot-social a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .foot { margin-top: 48px; padding: 0 16px 40px; grid-template-columns: 1fr auto; gap: 12px; }
  .foot-site { display: none; }
}
