/* Sightline — marketing + app design system
   Layout: 1200px column on a hairline grid; sections split "title left / argument right";
   the product UI itself is the illustration, lit by a single sodium-lamp glow. */
:root {
  color-scheme: dark;
  /* neutrals, biased cool (blue-slate) */
  --bg: #08090b;
  --bg-2: #0d0f12;
  --panel: #111318;
  --panel-2: #161920;
  --line: #1f232b;
  --line-2: #2a2f39;
  --fg: #eceef2;
  --fg-2: #a4abb8;
  --fg-3: #6b7280;
  /* sodium-lamp accent, used sparingly */
  --accent: #ff8a4c;
  --accent-2: #ffb38a;
  --accent-ink: #1a0d05;
  /* semantic */
  --ok: #3ecf8e;
  --warn: #f2c94c;
  --bad: #f2555a;
  --info: #7aa7ff;
  --violet: #b59cff;

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --col: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; line-height: 1.05; }
p { margin: 0; text-wrap: pretty; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--f-mono); }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--fg-2); }
.dimmer { color: var(--fg-3); }

.wrap { max-width: calc(var(--col) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- type scale ---------- */
.t-hero { font-size: clamp(44px, 7.4vw, 92px); letter-spacing: -0.045em; line-height: .98; }
.t-h1 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -0.04em; }
.t-h2 { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -0.035em; line-height: 1.05; }
.t-h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; line-height: 1.2; }
.t-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--fg-2); letter-spacing: -0.01em; }
.t-body { font-size: 15px; color: var(--fg-2); }
.t-small { font-size: 13px; color: var(--fg-2); }
.eyebrow {
  font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.two-tone { color: var(--fg-3); }
.two-tone b { color: var(--fg); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-sm { --h: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { --h: 48px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 12%, transparent); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: color-mix(in srgb, var(--fg) 4%, transparent); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); border-color: #3a404c; }
.btn-link { color: var(--fg-2); padding: 0; height: auto; }
.btn-link:hover { color: var(--fg); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.kbd {
  font: 500 11px/1 var(--f-mono); color: var(--fg-3); border: 1px solid var(--line-2); border-bottom-width: 2px;
  padding: 3px 5px; border-radius: 5px; background: var(--panel);
}

/* ---------- announcement + nav ---------- */
.announce {
  border-bottom: 1px solid var(--line); font-size: 13px; color: var(--fg-2);
  display: flex; justify-content: center; padding: 10px var(--gut); text-align: center;
}
.announce a { display: inline-flex; gap: 8px; align-items: center; }
.announce a:hover { color: var(--fg); }
.announce .tag { font: 500 11px/1 var(--f-mono); color: var(--accent); letter-spacing: .04em; }

.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
[data-page="docs"] .nav .wrap { max-width: 1440px; }
.nav-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.03em; }
.logo svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; align-items: center; justify-content: center; }
.mnav { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mnav { display: block; position: fixed; inset: 64px 0 0; background: var(--bg); z-index: 49; padding: 16px var(--gut) 40px; overflow-y: auto; }
  .mnav[hidden] { display: none; }
  .mnav a { display: block; padding: 14px 0; font-size: 22px; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
  .mnav .btns { display: grid; gap: 10px; margin-top: 24px; }
  .mnav .btns .btn { --h: 48px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 8.5vw, 112px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .t-lead { max-width: 52ch; }
.sec-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.glow {
  position: absolute; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(80px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- product window (the hero illustration) ---------- */
.window {
  position: relative; border-radius: 14px; background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 40px 120px -30px rgba(0,0,0,.9), 0 -1px 0 0 rgba(255,255,255,.06) inset;
  overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 12px; color: var(--fg-3); }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #2c313b; }

/* app chrome shared by the marketing mocks and the real app pages */
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 560px; font-size: 13px; }
.side { border-right: 1px solid var(--line); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-2); }
.side .ws { display: flex; align-items: center; gap: 8px; padding: 6px 8px 12px; font-weight: 500; }
.side .ws .mark { width: 20px; height: 20px; border-radius: 5px; background: linear-gradient(135deg, var(--accent), #c2410c); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--accent-ink); }
.side a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; color: var(--fg-2); }
.side a svg { width: 15px; height: 15px; opacity: .8; }
.side a:hover { background: var(--panel); color: var(--fg); }
.side a.on { background: var(--panel-2); color: var(--fg); }
.side a .count { margin-left: auto; font: 500 11px var(--f-mono); color: var(--fg-3); }
.side .grp { font: 500 11px var(--f-mono); color: var(--fg-3); letter-spacing: .06em; text-transform: uppercase; padding: 14px 8px 6px; }
.main { min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 860px) { .app { grid-template-columns: minmax(0, 1fr); } .app > .side { display: none; } .search { min-width: 0; } }
.topbar { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.topbar .crumb { display: flex; align-items: center; gap: 8px; }
.topbar .crumb b { color: var(--fg); font-weight: 500; }
.topbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 7px; color: var(--fg-3); background: var(--bg-2); min-width: 200px; }
.search .kbd { margin-left: auto; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font: 500 11.5px/1 var(--f-sans); border: 1px solid var(--line-2); color: var(--fg-2); white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.pill.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.pill.info { color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); background: color-mix(in srgb, var(--info) 8%, transparent); }
.pill.acc { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* trace waterfall */
.wf { font-size: 12.5px; }
.wf-row { display: grid; grid-template-columns: minmax(180px, 34%) 1fr 64px; align-items: center; gap: 12px; height: 34px; padding: 0 16px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.wf-row:hover { background: color-mix(in srgb, var(--fg) 2.5%, transparent); }
.wf-row.sel { background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
.wf-name { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-name .ico { flex: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font: 600 9.5px var(--f-mono); }
.ico { display: inline-grid; place-items: center; flex: none; }
.ico.llm { background: color-mix(in srgb, var(--violet) 18%, transparent); color: var(--violet); }
.ico.tool { background: color-mix(in srgb, var(--info) 18%, transparent); color: var(--info); }
.ico.ret { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.ico.agt { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.ico.err { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.wf-track { position: relative; height: 100%; }
.wf-track::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--line); }
.bar { position: absolute; top: 50%; height: 10px; transform: translateY(-50%); border-radius: 3px; min-width: 3px; }
.bar.llm { background: linear-gradient(90deg, #8b74ff, var(--violet)); }
.bar.tool { background: linear-gradient(90deg, #4a7fe8, var(--info)); }
.bar.ret { background: linear-gradient(90deg, #22a06b, var(--ok)); }
.bar.agt { background: linear-gradient(90deg, #e2632a, var(--accent)); }
.bar.err { background: linear-gradient(90deg, #c83a3f, var(--bad)); }
.wf-dur { text-align: right; font: 12px var(--f-mono); color: var(--fg-3); }
.indent-1 { padding-left: 16px; } .indent-2 { padding-left: 32px; } .indent-3 { padding-left: 48px; }
.wf-axis { display: grid; grid-template-columns: minmax(180px, 34%) 1fr 64px; gap: 12px; padding: 0 16px; height: 30px; align-items: center; border-bottom: 1px solid var(--line); font: 11px var(--f-mono); color: var(--fg-3); }
.wf-axis .ticks { display: flex; justify-content: space-between; }

/* cards / tiles */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.tile { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 18px; letter-spacing: -0.02em; }
.tile p { color: var(--fg-2); font-size: 14.5px; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.bento > * { background: var(--bg); }
.b-4 { grid-column: span 4; } .b-3 { grid-column: span 3; } .b-2 { grid-column: span 2; } .b-6 { grid-column: span 6; }
@media (max-width: 900px) { .bento > * { grid-column: span 6; } }
.b-cell { padding: 32px; display: flex; flex-direction: column; gap: 10px; min-height: 340px; position: relative; overflow: hidden; }
.b-cell h3 { font-size: 19px; letter-spacing: -0.02em; }
.b-cell p { color: var(--fg-2); font-size: 14.5px; max-width: 44ch; }
.b-cell .viz { margin-top: auto; }

/* logos */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos > div { height: 96px; display: grid; place-items: center; color: var(--fg-3); border-right: 1px solid var(--line); transition: color .3s; }
.logos > div:last-child { border-right: 0; }
.logos > div:hover { color: var(--fg); }
.logos svg { height: 22px; width: auto; }
@media (max-width: 800px) { .logos { grid-template-columns: repeat(3, 1fr); } .logos > div:nth-child(3n) { border-right: 0; } .logos > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }

/* avatars */
.av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex: none; }
.av-sm { width: 20px; height: 20px; }
.av-lg { width: 48px; height: 48px; }
.av-txt { display: grid; place-items: center; font: 600 11px var(--f-sans); color: var(--fg); }

/* quote */
.quote { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.025em; }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.who small { display: block; color: var(--fg-3); font-size: 13px; }

/* forms */
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--fg-2); }
.input {
  height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, var(--line-2)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.input::placeholder { color: var(--fg-3); }

/* footer */
.footer { border-top: 1px solid var(--line); padding-block: 64px 40px; font-size: 14px; }
.f-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.f-grid h4 { font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px; }
.f-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-grid a { color: var(--fg-2); }
.f-grid a:hover { color: var(--fg); }
.f-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; color: var(--fg-3); font-size: 13px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.f-word { font-size: clamp(72px, 21.5vw, 290px); letter-spacing: -0.06em; line-height: .78; font-weight: 600; margin-top: 64px; background: linear-gradient(180deg, var(--panel-2) 10%, transparent 95%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; overflow: hidden; }
@media (max-width: 800px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-grid > :first-child { grid-column: 1 / -1; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; text-align: center; padding-block: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); }
.cta-band .t-h1 { max-width: 16ch; margin-inline: auto; }
.cta-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* utility */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.wrap-row { flex-wrap: wrap; }
.center { text-align: center; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.hide-sm { }
@media (max-width: 700px) { .hide-sm { display: none !important; } }

/* reveal: visible at rest, animates only when JS marks it pending */
.reveal.pending { opacity: 0; transform: translateY(14px); }
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.pending { opacity: 1; transform: none; }
}

/* page hero (inner pages) */
.phero { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 128px) clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.phero .t-h1 { max-width: 18ch; }
.phero .t-lead { max-width: 56ch; margin-top: 24px; }

.sample-note { font: 12px var(--f-mono); color: var(--fg-3); }

/* ---------- shared product mocks (trace inspector, evals, feed, code) ---------- */
  .hero { position: relative; padding-block: clamp(72px, 10vw, 120px) 0; overflow: hidden; }
.hero .glow.a { width: 900px; height: 520px; left: 50%; top: 420px; transform: translateX(-50%); opacity: .55; }
.hero-copy { position: relative; z-index: 1; display: grid; gap: 28px; justify-items: start; }
.hero h1 { max-width: 13ch; }
.hero .row-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.install { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 8px 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); font: 13px var(--f-mono); color: var(--fg-2); }
.install b { color: var(--accent); font-weight: 400; }
.install button { height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--panel-2); color: var(--fg-2); font: 12px var(--f-sans); }
.install button:hover { color: var(--fg); }
.hero-shot { position: relative; z-index: 1; margin-top: clamp(56px, 7vw, 88px); }
.hero-shot .window { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.hero-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); z-index: 2; pointer-events: none; }

.trace-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 520px; }
.inspector { border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--bg-2); }
.inspector h4 { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kv div { background: var(--panel); padding: 8px 10px; }
.kv small { display: block; font: 10.5px var(--f-mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .05em; }
.kv b { font: 500 13px var(--f-mono); }
.msg { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: var(--fg-2); background: var(--panel); }
.msg .role { font: 10.5px var(--f-mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 4px; }
.msg code { font: 11.5px var(--f-mono); color: var(--accent-2); }
.evalrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.evalrow .meter { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.evalrow .meter i { display: block; height: 100%; border-radius: 2px; }
.evalrow b { font: 500 12px var(--f-mono); width: 34px; text-align: right; }
.trace-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.trace-head h3 { font-size: 15px; letter-spacing: -0.015em; font-weight: 500; }
.trace-head .meta { display: flex; gap: 14px; margin-left: auto; font: 12px var(--f-mono); color: var(--fg-3); }
@media (max-width: 1080px) { .trace-split { grid-template-columns: minmax(0, 1fr); } .inspector { display: none; } }
@media (max-width: 640px) { .wf-row, .wf-axis { grid-template-columns: minmax(130px, 46%) 1fr; } .wf-dur, .wf-axis > :last-child { display: none; } .trace-head .meta { display: none; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stats > div { padding: 40px 28px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: clamp(32px, 3.6vw, 44px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats b em { font-style: normal; color: var(--fg-3); font-size: .6em; margin-left: 2px; }
.stats span { display: block; margin-top: 12px; color: var(--fg-2); font-size: 14px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .stats > div { padding: 28px 16px; } }

/* bento visuals */
.mini-wf { display: grid; gap: 7px; }
.mini-wf div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; font: 11px var(--f-mono); color: var(--fg-3); }
.mini-wf span { position: relative; height: 8px; }
.mini-wf span i { position: absolute; top: 0; height: 8px; border-radius: 2px; }
.cost-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--fg-2); }
.cost-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.stackbar { display: flex; height: 36px; border-radius: 6px; overflow: hidden; gap: 2px; }
.stackbar i { display: block; }
.query { font: 12.5px/1.8 var(--f-mono); padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--fg-2); }
.query .k { color: var(--violet); } .query .s { color: var(--ok); } .query .n { color: var(--accent); }
.results { display: grid; gap: 6px; margin-top: 10px; min-width: 0; }
.results > div { min-width: 0; }
.b-cell > * { min-width: 0; }
.results div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; }
.results div .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
.results div .mono { color: var(--fg-3); font-size: 11.5px; }
.replay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.replay .col { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--panel); font-size: 12.5px; color: var(--fg-2); display: grid; gap: 8px; }
.replay .col .h { display: flex; justify-content: space-between; font: 11px var(--f-mono); color: var(--fg-3); }
.replay del { color: var(--bad); text-decoration-color: color-mix(in srgb, var(--bad) 60%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.replay ins { color: var(--ok); text-decoration: none; background: color-mix(in srgb, var(--ok) 10%, transparent); }

/* evals */
.evals-panel { overflow-x: auto; }
.etable { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.etable th { text-align: left; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); padding: 14px 20px; border-bottom: 1px solid var(--line); }
.etable td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.etable tr:last-child td { border-bottom: 0; }
.etable td.num { font-family: var(--f-mono); font-size: 13px; }
.delta { white-space: nowrap; font: 500 12px var(--f-mono); padding: 2px 6px; border-radius: 5px; }
.delta.up { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.delta.down { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.dist { display: flex; gap: 2px; align-items: flex-end; height: 22px; width: 120px; }
.dist i { flex: 1; background: var(--line-2); border-radius: 1px; }
.dist i.hi { background: var(--accent); }
.eval-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.eval-top h3 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.eval-top .right { margin-left: auto; display: flex; gap: 8px; }
.eval-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.eval-points h3 { font-size: 16px; letter-spacing: -0.015em; margin-bottom: 8px; }
.eval-points p { color: var(--fg-2); font-size: 14.5px; }
@media (max-width: 800px) { .eval-points { grid-template-columns: 1fr; gap: 28px; } }

/* guardrails */
.guard { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .guard { grid-template-columns: 1fr; gap: 40px; } }
.feed { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feed > div { background: var(--panel); padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; }
.feed .sev { width: 3px; align-self: stretch; border-radius: 2px; }
.feed h4 { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.feed p { font-size: 13px; color: var(--fg-2); margin-top: 3px; }
.feed time { font: 11.5px var(--f-mono); color: var(--fg-3); white-space: nowrap; }
.checklist { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--fg-2); }
.checklist svg { flex: none; margin-top: 4px; color: var(--accent); }

/* developers */
.dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 900px) { .dev { grid-template-columns: 1fr; } }
.code { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.code-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); }
.code-tabs button { height: 30px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent; color: var(--fg-3); font-size: 13px; }
.code-tabs button[aria-selected="true"] { background: var(--panel-2); color: var(--fg); }
.code-tabs .cp { margin-left: auto; color: var(--fg-3); }
pre { margin: 0; padding: 20px; overflow-x: auto; font: 13px/1.75 var(--f-mono); color: var(--fg-2); }
.tk-k { color: var(--violet); } .tk-s { color: var(--ok); } .tk-c { color: var(--fg-3); } .tk-f { color: var(--info); } .tk-n { color: var(--accent); }
.integr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.integr > div { background: var(--bg); padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; min-height: 104px; }
.integr b { font-weight: 500; font-size: 14.5px; letter-spacing: -0.01em; }
.integr span { font-size: 12.5px; color: var(--fg-3); }
.integr .glyph { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line-2); display: grid; place-items: center; font: 600 12px var(--f-mono); color: var(--fg-2); margin-bottom: 10px; background: var(--panel); }
@media (max-width: 560px) { .integr { grid-template-columns: 1fr 1fr; } }

.testi { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 980px; }
.testi .quote::before { content: "\201C"; font-family: var(--f-serif); color: var(--accent); font-size: 1.6em; line-height: 0; vertical-align: -0.35em; margin-right: 4px; }
