/* World: a studio portrait. The page opens on the photographer's gray backdrop and the sweater blue is the only accent. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/bricolage-latin-opsz.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --studio: #adacb0;
  --paper: #f6f6f8;
  --panel: #ffffff;
  --ink: #0f1629;
  --ink-2: #1f2740;
  --muted: #4f5870;
  --line: #dcdde5;
  --blue: #274a8f;
  --blue-ink: #ffffff;
  --blue-soft: #e7ebf5;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--display); font-size: 18px; line-height: 1.55; font-optical-sizing: auto;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
::selection { background: var(--blue); color: var(--blue-ink); }
input, textarea { caret-color: var(--blue); }
.wrap { max-width: 1160px; margin: 0 auto; }
a { color: inherit; text-decoration-color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* header */
.bar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 4px 16px; padding-block: 12px; flex-wrap: wrap; font-size: 17px; }
.wordmark { font-weight: 700; letter-spacing: -.02em; text-decoration: none; font-size: 19px; }
.bar nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.bar nav a, .wordmark, footer a { display: inline-flex; align-items: center; min-height: 44px; }
.bar nav a { text-decoration: none; font-weight: 500; }
.bar nav a:hover { text-decoration: underline; }
.bar nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: 17px; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 10px; padding: 12px 22px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--blue-ink); }
.btn[disabled] { opacity: .55; cursor: default; }

/* landing: studio band */
.studio { position: relative; background: var(--studio); margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }
.cover { position: relative; min-height: 640px; display: flex; align-items: center; padding-block: 24px 56px; }
.cover-text { position: relative; z-index: 1; max-width: 640px; }
h1 { margin: 0 0 18px; font-weight: 800; font-size: clamp(56px, 10.5vw, 112px); line-height: .92; letter-spacing: -.035em; }
.hook { margin: 0 0 14px; font-size: clamp(25px, 3.6vw, 38px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; max-width: 15em; }
.sub { margin: 0 0 30px; max-width: 28em; font-size: 20px; line-height: 1.45; color: var(--ink-2); }
.cover-photo { position: absolute; right: 0; bottom: 0; height: 100%; aspect-ratio: 1800 / 1410; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 26%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%); mask-composite: intersect; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ask { margin-top: 26px; max-width: 460px; }
.ask label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.ask-row { display: flex; gap: 8px; }
.ask input { flex: 1; min-width: 0; font: inherit; font-size: 17px; color: var(--ink); background: var(--panel); border: 1.5px solid var(--ink); border-radius: 10px; padding: 11px 14px; }
.ask input::placeholder { color: var(--muted); }


.statement { padding-block: 72px 40px; }
.statement p { margin: 0 0 1em; max-width: 33em; font-size: clamp(20px, 2.3vw, 26px); line-height: 1.45; letter-spacing: -.01em; font-weight: 500; }
.statement p:last-child { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* inner pages */
.page { padding-block: clamp(24px, 6vh, 64px) 80px; max-width: 800px; }
.portrait-sm { width: 104px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--studio); margin: 0 0 26px; }
.portrait-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page h1 { font-size: clamp(46px, 8.4vw, 88px); }
.lead { margin: 0 0 8px; max-width: 30em; font-size: clamp(20px, 2.6vw, 25px); line-height: 1.38; letter-spacing: -.01em; }
.email a { display: inline-block; padding-block: 8px; }
.facts a { display: inline-block; padding-block: 8px; }
.email { margin: 44px 0 14px; font-weight: 700; font-size: clamp(26px, 5vw, 46px); line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.copied { color: var(--muted); font-size: 16px; }

/* ask me anything: a plain chat window with a photo in the corner */
body.chat-page { padding: 0; height: 100vh; height: 100dvh; display: flex; overflow: hidden; }
.chat-app { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 860px; margin: 0 auto; min-height: 0; }
.chat-top { display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: var(--paper); }
.chat-top .back, .chat-top .top-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; border-radius: 22px; font-weight: 500; }
.chat-top .top-link { padding-inline: 12px; }
.chat-top .back:hover, .chat-top .top-link:hover { background: var(--blue-soft); color: var(--ink); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.who b { display: block; line-height: 1.2; font-weight: 700; }
.who small { display: block; color: var(--muted); font-size: 14px; line-height: 1.25; }
.mini { width: 44px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--studio); flex: none; }
.mini img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; display: block; }
.chat-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.live { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.log { flex: 1; overflow-y: auto; padding: 20px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 14px; scrollbar-color: var(--studio) transparent; }
.empty { margin: auto; text-align: center; padding: 28px 16px; max-width: 560px; }
#offline { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: none; }
.empty .big { width: 96px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; background: var(--studio); }
.empty .big img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; display: block; }
.empty-title { margin: 0 0 8px; font-weight: 800; font-size: clamp(34px, 6vw, 52px); line-height: 1.02; letter-spacing: -.03em; }
.empty p { color: var(--muted); }
.empty p:not(.empty-title) { margin: 0 0 22px; }
.empty .empty-title { color: var(--ink); }
.suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.suggest button { font: inherit; font-size: 16px; color: var(--ink); background: var(--panel); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.suggest button:hover { border-color: var(--blue); color: var(--blue); }
.turn { display: flex; gap: 10px; align-items: flex-start; max-width: 92%; }
.turn.you { align-self: flex-end; }
.turn.bot .mini { width: 32px; margin-top: 2px; }
.msg { padding: 10px 15px; border-radius: 16px; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.msg.you { background: var(--blue); color: var(--blue-ink); border-bottom-right-radius: 4px; }
.msg.bot { background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.note { align-self: stretch; background: transparent; border: 1px dashed var(--muted); }
.msg.note .actions { margin-top: 14px; }
.composer { padding: 8px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: var(--paper); }
.form { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 28px; padding: 6px 6px 6px 20px; }
.form:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.form input { flex: 1; min-width: 0; font: inherit; font-size: 18px; color: var(--ink); background: transparent; border: 0; outline: 0; padding: 10px 0; }
.form input::placeholder { color: var(--muted); }
.send { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--blue); color: var(--blue-ink); border: 0; display: grid; place-items: center; cursor: pointer; }
.send .ico { width: 22px; height: 22px; }
.send:hover { background: var(--ink); }
.send[disabled] { opacity: .45; cursor: default; }
.fine { margin: 10px 4px 0; text-align: center; font-size: 13.5px; line-height: 1.4; color: var(--muted); }

/* evals */
.evals h2 { margin: 44px 0 12px; font-size: 28px; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.steps { margin: 0 0 16px; padding-left: 1.3em; } .steps li { margin-bottom: 12px; }
.plain { margin: 0 0 16px; padding-left: 1.2em; } .plain li { margin-bottom: 8px; }
.scores { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.scores li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.score-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.score-top span { color: var(--muted); white-space: nowrap; }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--blue); }
.judge-note { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.judge-note.warn { color: var(--ink); }

/* agents */
.prose h2 { margin-top: 48px; font-size: 28px; letter-spacing: -.02em; }
.prose ul { margin: 0 0 16px; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.facts { margin: 12px 0 0; display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 10px 22px; padding: 22px; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 14px; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85em; background: var(--blue-soft); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; overflow-wrap: anywhere; }

footer { max-width: 1160px; margin: 0 auto; padding-block: 28px 44px; border-top: 1.5px solid var(--ink); display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; color: var(--muted); }
footer a { color: inherit; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { opacity: 0; } }
.cover-text > * { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
.cover-text > :nth-child(2) { animation-delay: .08s; } .cover-text > :nth-child(3) { animation-delay: .16s; } .cover-text > :nth-child(4) { animation-delay: .24s; } .cover-text > :nth-child(5) { animation-delay: .32s; }
.cover-photo { animation: settle 1s ease-out both; }

@media (max-width: 1239px) {
  h1 { font-size: clamp(56px, 12vw, 112px); }
  .cover { flex-direction: column; align-items: stretch; min-height: 0; padding-block: 8px 0; }
  .cover-text { max-width: none; padding-bottom: 8px; }
  .cover-photo { position: relative; width: 100vw; height: auto; aspect-ratio: auto; margin: 8px calc(50% - 50vw) 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%); -webkit-mask-composite: source-over; mask-composite: add; }
  .cover-photo img { height: auto; max-height: 640px; object-position: 50% 20%; }
}
@media (max-width: 760px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; } .facts dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cover-text > *, .cover-photo { animation: none; } .btn { transition: none; } }
.evals details { margin: 10px 0; }
.evals summary { cursor: pointer; padding: 10px 0; min-height: 44px; }
.evals .group { border-top: 1px solid var(--line, rgba(0,0,0,.14)); }
.evals .count { color: var(--muted, #666); font-size: .9em; margin-left: 6px; }
.evals .then { color: var(--muted, #666); font-size: .85em; padding: 0 4px; }
.evals li { margin: 8px 0; }

/* contact: topics and tips */
.sec { margin: 56px 0 8px; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; line-height: 1.15; }
.muted-p { margin: 0 0 18px; color: var(--muted); }
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.topic { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 44px; padding: 18px 20px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.topic b { font-size: 20px; letter-spacing: -.01em; }
.topic span { color: var(--muted); font-size: 16px; line-height: 1.4; }
.topic:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-2px); }
.helps { margin: 12px 0 0; padding-left: 1.2em; max-width: 34em; }
.helps li { margin-bottom: 8px; }
@media (max-width: 560px) { .topics { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .topic { transition: none; } .topic:hover { transform: none; } }

/* mcp page */
.copyrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 4px; }
.copyrow code { flex: 1 1 320px; padding: 14px 16px; font-size: 15px; border: 1.5px solid var(--line); background: var(--panel); border-radius: 10px; }
.sub3 { margin: 26px 0 4px; font-size: 19px; letter-spacing: -.01em; }

/* navbar stays on screen on every page */
.topbar { position: sticky; top: 0; z-index: 60; background: var(--paper); margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); box-shadow: 0 1px 0 rgba(15, 22, 41, .08); }
body.home .topbar { background: var(--studio); box-shadow: none; }
.topbar .bar { padding-block: 6px; }
.bar nav .short { display: none; }
body.chat-page { flex-direction: column; }
body.chat-page .topbar { flex: none; margin-inline: 0; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
body.chat-page .chat-app { flex: 1 1 0; }
@media (max-width: 520px) { .bar nav .long { display: none; } .bar nav .short { display: inline; } .bar nav { gap: 4px 16px; } .bar { flex-wrap: nowrap; } .wordmark { font-size: 17px; } .bar nav a { font-size: 16px; } }


/* ask page: the evals sit opposite the name and photo */
.chat-top { justify-content: space-between; }
.evals-pill { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 6px 14px; text-decoration: none; color: var(--ink); background: var(--panel); border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14.5px; line-height: 1.2; white-space: nowrap; transition: border-color .15s, color .15s; }
.evals-pill b { font-weight: 800; letter-spacing: -.01em; }
.evals-pill .meta { color: var(--muted); }
.evals-pill .meta span { font-weight: 700; color: var(--blue); }
.evals-pill:hover { border-color: var(--blue); color: var(--blue); }
.evals-pill .short { display: none; } .evals-pill { font-weight: 700; }
@media (max-width: 760px) { .evals-pill .long { display: none; } .evals-pill .short { display: inline; } .evals-pill { padding-inline: 12px; } }
@media (prefers-reduced-motion: reduce) { .evals-pill { transition: none; } }

/* frosted, see-through navbar once scrolled */
.topbar { transition: background-color .2s, box-shadow .2s, backdrop-filter .2s; }
.topbar.scrolled, body.home .topbar.scrolled { background: rgba(246, 246, 248, .55); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(15, 22, 41, .06); }
@media (prefers-reduced-motion: reduce) { .topbar { transition: none; } }

/* contact page: text and email on the left, the whole photo on the right */
.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); grid-template-areas: "text photo" "more photo"; column-gap: 72px; align-content: start; padding-block: clamp(28px, 6vh, 72px) 80px; }
.c-text { grid-area: text; }
.c-more { grid-area: more; margin-top: 44px; max-width: 30em; }
.c-photo { grid-area: photo; margin: 0; align-self: start; position: sticky; top: 84px; }
.c-photo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 16px; background: var(--studio); }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.c-text h1 { font-size: clamp(46px, 7.6vw, 84px); margin-bottom: 18px; }
.c-text .lead { max-width: 26em; }
.c-text .email { margin: 36px 0 16px; font-size: clamp(24px, 4vw, 42px); }
.mini-h { margin: 0 0 8px; font-size: 20px; letter-spacing: -.01em; }
.c-more .helps { margin: 0 0 26px; }
.muted-p.tight { margin: 0 0 4px; font-size: 16px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (max-width: 900px) { .c-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "photo" "more"; } .c-photo { position: static; max-width: 440px; margin-top: 36px; } .c-more { margin-top: 36px; } }

.c-text h1 { margin-bottom: 8px; }
.c-grid { grid-template-rows: auto 1fr; }
.c-more { align-self: start; margin-top: 32px; }
@media (max-width: 900px) { .c-grid { grid-template-rows: none; } }

.c-more { max-width: 34em; margin-top: 40px; }
.mini-h { margin-bottom: 4px; }
.rows { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: 12px; min-height: 78px; padding: 16px 12px 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color .15s, padding .15s; }
.row .rt { display: flex; flex-direction: column; gap: 2px; }
.row .rt b { font-size: clamp(21px, 2.8vw, 26px); letter-spacing: -.02em; line-height: 1.15; }
.row .rt span { color: var(--muted); font-size: 16px; }
.row .ico { color: var(--blue); transition: transform .15s; }
.row:hover { background: var(--blue-soft); padding-left: 14px; color: var(--ink); }
.row:hover .ico { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .row, .row .ico { transition: none; } .row:hover { padding-left: 4px; } .row:hover .ico { transform: none; } }

/* evals page: a technical, dashboard-style view of the suite */
.ev { --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding-block: clamp(24px, 5vh, 56px) 80px; }
.ev h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 18px; }
.ev code, .ev .chip, .ev .k, .ev .lab, .ev .val, .ev th, .ev-crumb, .ev-tabs { font-family: var(--mono); }
.ev code { background: none; padding: 0; font-size: 13px; color: var(--ink-2); overflow-wrap: normal; }
.ev-crumb { margin: 0 0 10px; font-size: 13px; color: var(--muted); } .ev-crumb b { color: var(--ink); font-weight: 600; } .ev-crumb .sl { padding: 0 4px; }
.ev-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.ev-stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ev-stats .k { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ev-stats .v { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ev-tabs { position: sticky; top: 56px; z-index: 5; display: flex; gap: 4px; padding: 8px 0; margin-bottom: 8px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 13px; overflow-x: auto; }
.ev-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 8px; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.ev-tabs a:hover { background: var(--blue-soft); color: var(--blue); }
.ev-tabs i { font-style: normal; font-size: 11.5px; background: var(--line); border-radius: 999px; padding: 1px 8px; }
.ev-sec { margin-top: 36px; scroll-margin-top: 120px; }
.ev-sec h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.01em; }
.ev-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.ev-card.tbl { overflow-x: auto; }
.ev-card.scroll { max-height: 640px; overflow: auto; }
.ev table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ev th, .ev td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.ev thead th { position: sticky; top: 0; z-index: 2; background: #fbfbfd; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ev tbody tr:last-child td, .ev tbody tr:last-child th { border-bottom: 0; }
.ev tbody tr:hover { background: #f8f9fc; }
.ev .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .ev .num .of { color: var(--muted); }
.chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.chip.code { background: var(--blue-soft); color: var(--blue); } .chip.judge { background: var(--ink); color: #fff; } .chip.cat { background: #eceef4; color: var(--ink-2); }
.ev details { margin-top: 6px; } .ev summary { cursor: pointer; color: var(--blue); font-size: 13px; min-height: 28px; display: flex; align-items: center; } .ev details p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.ev-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.matrix th.mx, .matrix td.mx { text-align: center; padding-inline: 6px; } .matrix th.mx span { display: block; } .matrix th.mx small { display: block; font-weight: 500; letter-spacing: 0; color: var(--muted); text-transform: none; }
.matrix tbody th { font-weight: 500; white-space: nowrap; }
.cell { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; } .cell.code { background: var(--blue); } .cell.judge { background: var(--ink); } .cell.off { background: #e6e8ef; }
.dist { padding: 16px 18px; } .dist h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); }
.dist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dist li { display: grid; grid-template-columns: 78px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: 13px; }
.dist .bar { height: 12px; background: #eceef4; border-radius: 4px; overflow: hidden; } .dist .bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.dist .val { text-align: right; font-variant-numeric: tabular-nums; }
.dist .key { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-family: var(--mono); }
.dataset .in { max-width: 520px; } .dataset .in code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pips { display: inline-flex; gap: 2px; vertical-align: middle; } .pip { width: 6px; height: 14px; border-radius: 2px; display: block; } .pip.code { background: var(--blue); } .pip.judge { background: var(--ink); } .pip.off { background: #e6e8ef; }
.dataset .n { font-size: 12px; color: var(--muted); font-family: var(--mono); margin-left: 6px; }
@media (max-width: 900px) { .ev-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ev-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .ev-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ev table { font-size: 14px; } }
.ev-two { grid-template-columns: minmax(0, 1fr); }
.ev-two > *, .ev-card { min-width: 0; }
.ev { overflow-x: clip; }
.dist ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 36px; }
@media (max-width: 700px) { .dist ul { grid-template-columns: minmax(0, 1fr); } .matrix { min-width: 640px; } .dataset { min-width: 700px; } .ev table:not(.matrix):not(.dataset) { min-width: 640px; } }

.dist progress.bar { appearance: none; -webkit-appearance: none; width: 100%; height: 12px; border: 0; border-radius: 4px; overflow: hidden; background: #eceef4; }
.dist progress.bar::-webkit-progress-bar { background: #eceef4; border-radius: 4px; }
.dist progress.bar::-webkit-progress-value { background: var(--blue); border-radius: 4px; }
.dist progress.bar::-moz-progress-bar { background: var(--blue); border-radius: 4px; }
.dist li { grid-template-columns: 90px minmax(0, 1fr) 28px; } .dist .lab { white-space: nowrap; }

.dist svg.bar { display: block; width: 100%; height: 12px; }

.dist .segs { display: flex; gap: 3px; width: 100%; } .dist .seg { flex: 1 1 0; height: 14px; border-radius: 3px; background: #eceef4; display: block; } .dist .seg.on { background: var(--blue); }

.ev > .ev-sec > .key { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-family: var(--mono); }

/* the assistant is switched off (its budget is used up): hide the ways in */
.chat-off [data-ai], .chat-off li:has(> [data-ai]) { display: none !important; }
