:root {
  --bg: #fafaf9;
  --fg: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --accent: #16a34a;
  --surface: #f2f2f0;
  --s1: #2a78d6;
  --s2: #eb6834;
  --neg: #e34948;
  --grid: #e4e4e7;
  --logo: #1d302b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0d;
    --fg: #f4f4f5;
    --muted: #8b8b93;
    --line: #232326;
    --accent: #4ade80;
    --surface: #161618;
    --s1: #3987e5;
    --s2: #d95926;
    --neg: #e66767;
    --grid: #26262a;
    --logo: #f4f4f5;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; }
header .mark {
  display: block;
  width: 36px; height: 31px;
  color: var(--logo);
  margin-bottom: 40px;
}
.crumb .glyph { width: 15px; height: 13px; color: var(--logo); vertical-align: -2px; margin-right: 8px; }
h1 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.lede { color: var(--muted); margin-top: 12px; max-width: 46ch; }
section { margin-top: 80px; }
h2 { color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
ul { list-style: none; }
li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
li:first-child { border-top: 1px solid var(--line); }
.name { font-weight: 500; }
.desc { color: var(--muted); grid-column: 1 / -1; font-size: 15px; }
.status { color: var(--muted); align-self: center; }
.status.live::before,
.status.training::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--muted);
}
.status.training::before { background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .status.training::before { animation: none; } }
footer {
  margin-top: auto;
  padding-top: 96px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
a:hover { border-color: var(--fg); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 520px) { footer { flex-direction: column-reverse; gap: 16px; } }
header a.home { border: 0; }
.prose { margin-top: 64px; }
.prose h2 { margin: 40px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose li { display: list-item; padding: 2px 0; border: 0; }
.prose strong { color: var(--fg); font-weight: 500; }
.updated { margin-top: 12px; color: var(--muted); }

/* model list links */
li a.name { border: 0; }
li a.name::after { content: " →"; color: var(--muted); }
li a.name:hover::after { color: var(--fg); }

/* model pages */
.crumb { color: var(--muted); border: 0; display: inline-block; margin-bottom: 40px; }
.crumb:hover { color: var(--fg); }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--muted); }
.page section { margin-top: 64px; }
.page section > p { color: var(--muted); font-size: 15px; }
.page section > p + p { margin-top: 12px; }
.page h3 { font-size: 16px; font-weight: 500; margin: 32px 0 4px; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; }
code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.86em; }
pre {
  margin-top: 16px; padding: 16px; overflow-x: auto;
  background: var(--surface); border-radius: 8px;
  font: 400 12.5px/1.6 "JetBrains Mono", ui-monospace, monospace;
}
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.kv div { border-top: 1px solid var(--line); padding-top: 12px; }
.kv b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.kv span { color: var(--muted); font-size: 13px; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr 1fr; } }
table.data { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
table.data th { color: var(--muted); font-weight: 400; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
details.table { margin-top: 8px; font-size: 13px; color: var(--muted); }
details.table summary { cursor: pointer; }

/* charts */
.chart { margin-top: 20px; position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { fill: var(--muted); font: 400 12px Inter, system-ui, sans-serif; }
.chart text.v { fill: var(--fg); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .zero { stroke: var(--muted); stroke-width: 1; }
.chart .hit { fill: transparent; }
.chart .row:hover .hit { fill: var(--surface); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.tip {
  position: fixed; pointer-events: none; z-index: 10; display: none;
  background: var(--fg); color: var(--bg); border-radius: 6px; padding: 8px 10px;
  font-size: 12px; line-height: 1.5; max-width: 260px;
}
.tip b { font-weight: 500; }

/* demos */
.demo { margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.demo select, .demo textarea, .demo button {
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px;
}
.demo select { padding: 6px 8px; font-size: 14px; max-width: 100%; }
.demo textarea { width: 100%; min-height: 84px; padding: 10px; margin-top: 12px; resize: vertical; font-size: 15px; }
.demo button { padding: 7px 14px; font-size: 14px; cursor: pointer; background: var(--fg); color: var(--bg); border-color: var(--fg); }
.demo button:disabled { opacity: 0.5; cursor: default; }
.demo .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips button { background: transparent; color: var(--muted); border-color: var(--line); font-size: 12.5px; padding: 4px 10px; }
.chips button:hover, .chips button[aria-pressed="true"] { color: var(--fg); border-color: var(--fg); }
.status-line { color: var(--muted); font-size: 13px; }
.out { margin-top: 16px; }
.out .verdict { font-size: 18px; font-weight: 500; }
.out .verdict small { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 8px; }
.bars { margin-top: 10px; display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: minmax(80px, 34%) 1fr 52px; gap: 10px; align-items: center; font-size: 13px; }
.bar .lbl { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .track { display: block; height: 8px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--s1); border-radius: 4px; transition: width .25s; }
.bar.top .lbl { color: var(--fg); }
.bar .pct { text-align: right; font-variant-numeric: tabular-nums; }
.state { margin-top: 12px; padding: 12px; background: var(--surface); border-radius: 8px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.q { margin-top: 12px; font-size: 14px; }
.q .type { color: var(--muted); }

/* docs (generated by scripts/build-jet-docs.mjs) */
p.crumb a { border: 0; }
p.crumb a:hover { color: var(--fg); }
.docs-nav a[aria-current="page"] { color: var(--fg); border-color: var(--fg); }
.doc { margin-top: 56px; }
.doc h2 {
  font: 400 13px/1.6 "JetBrains Mono", ui-monospace, monospace;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
  margin: 64px 0 12px;
}
.doc > h2:first-child { margin-top: 0; }
.doc h3 { font-size: 16px; font-weight: 500; margin: 32px 0 6px; }
.doc p, .doc li { color: var(--muted); font-size: 15px; }
.doc p + p { margin-top: 12px; }
.doc strong { color: var(--fg); font-weight: 500; }
.doc ul, .doc ol { margin: 12px 0; padding-left: 20px; }
.doc ul { list-style: disc; }
.doc li { display: list-item; padding: 2px 0; border: 0; }
.doc table.data { display: block; overflow-x: auto; margin: 16px 0; }
.doc table.data td[align="right"], .doc table.data th[align="right"] { text-align: right; font-variant-numeric: tabular-nums; }
.doc table.data td:first-child, .doc table.data th:first-child { white-space: nowrap; }
.doc pre { margin: 16px 0; }
.doc pre.mermaid { background: transparent; padding: 0; text-align: center; font: inherit; }
.doc img { max-width: 100%; border-radius: 8px; }
