/* =========================================================
   Private RAG Assistant · live demo
   Uses the portfolio's tokens (IBM Plex, indigo + cyan) so it
   reads as part of zakatabish.online.
   ========================================================= */
:root {
  --paper: #F5F6FA; --paper-2: #EBEDF5; --ink: #12131C; --mute: #5B6076; --rule: #DBDEEA;
  --accent: #5645D6; --accent-lo: #ECE9FC; --accent2: #0C8C86; --accent2-lo: #E1F5F2;
  --card: #FFFFFF; --ok: #17944B; --warn: #B7791F; --bad: #C2334D;
  --sparse: #D9480F; --dense: #0B7FA8; --fused: #12131C;
  --stage: radial-gradient(120% 90% at 30% 20%, #FFFFFF 0%, #EEF0F7 55%, #E4E7F1 100%);
  --g0: #5645D6; --g1: #D3365A; --g2: #B7791F; --g3: #0C8C86; --g4: #1E6FD9; --g5: #2F8F3A; --g6: #9B3FC2;
  --f-sans: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --f-serif: "IBM Plex Serif", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --t: 220ms cubic-bezier(.2, .7, .3, 1);
  --r: 12px;
  --top-h: 56px;
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #0A0C13; --paper-2: #10131D; --ink: #E7E9F5; --mute: #8991AC; --rule: #212537;
  --accent: #8B7DFF; --accent-lo: #191531; --accent2: #3FE0D0; --accent2-lo: #0E211F;
  --card: #12151F; --ok: #4ADE93; --warn: #F4B740; --bad: #FF7A90;
  --sparse: #FFB347; --dense: #38E8FF; --fused: #FFFFFF;
  --stage: radial-gradient(120% 90% at 30% 20%, #161A2B 0%, #0C0F18 55%, #07080D 100%);
  --g0: #8B7DFF; --g1: #FF7A90; --g2: #F4B740; --g3: #3FE0D0; --g4: #4AA8FF; --g5: #7EE081; --g6: #E58BFF;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font: 400 15px/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
code, kbd { font-family: var(--f-mono); font-size: .86em; }
code { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; padding: .05em .3em; }
kbd { border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 0 .3em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: block; font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent2); margin: 0 0 .7rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── top bar ─────────────────────────────────────────── */
.top {
  height: var(--top-h); display: flex; align-items: center; gap: 1rem;
  padding: 0 clamp(.75rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20;
}
.top__brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; min-width: 0; }
.top__logo {
  width: 30px; height: 30px; border-radius: 8px; flex: none; position: relative;
  background: #0A0C13; box-shadow: inset 0 0 0 1px rgba(139,125,255,.5);
}
.top__logo i { position: absolute; inset: 9px; border-radius: 50%; background: #3FE0D0; box-shadow: 0 0 10px #3FE0D0; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.75); opacity: .7; } }
.top__name { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.top__name b { font-weight: 600; white-space: nowrap; }
.top__name small { color: var(--mute); font-size: .74rem; white-space: nowrap; }

.top__status {
  margin-left: auto; display: flex; align-items: center; gap: .5rem;
  font: 400 .8rem/1 var(--f-mono); color: var(--mute); min-width: 0;
}
.top__status span#statusText { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; animation: breathe 1.2s infinite; }
.top__status.is-ready .dot { background: var(--ok); animation: none; box-shadow: 0 0 8px var(--ok); }
.top__bar { width: 90px; height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; flex: none; }
.top__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s; }
.top__status.is-ready .top__bar { display: none; }
.top__acts { display: flex; align-items: center; gap: .4rem; }

.tbtn {
  display: inline-flex; align-items: center; gap: .35rem; height: 32px; padding: 0 .7rem;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--card);
  font-size: .82rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color var(--t), color var(--t);
}
.tbtn:hover { border-color: var(--accent); color: var(--accent); }
.tbtn--sm { height: 26px; font-size: .74rem; padding: 0 .55rem; }
.top__fs { display: none; }
.is-embed .top__fs { display: inline-flex; }
.is-embed .top__wide { display: none; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: none; height: 30px; padding: 0 .65rem; font-size: .78rem; cursor: pointer; color: var(--mute); }
.seg button[aria-pressed="true"] { background: var(--accent-lo); color: var(--accent); }

/* ── layout ──────────────────────────────────────────── */
.app {
  display: grid; height: calc(100dvh - var(--top-h));
  grid-template-columns: clamp(320px, 32vw, 440px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(220px, 34%);
  grid-template-areas: "chat stage" "chat insp";
}
.chat { grid-area: chat; border-right: 1px solid var(--rule); display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.stage { grid-area: stage; position: relative; overflow: hidden; background: var(--stage); min-height: 0; }
.insp { grid-area: insp; border-top: 1px solid var(--rule); display: flex; flex-direction: column; min-height: 0; background: var(--paper); }

@media (max-width: 900px) {
  .app { height: auto; display: flex; flex-direction: column; }
  .stage { height: min(56vh, 520px); order: 1; }
  .chat { order: 2; border-right: 0; border-top: 1px solid var(--rule); }
  .chat__scroll { max-height: none; }
  .composer { position: sticky; bottom: 0; }
  .insp { order: 3; min-height: 420px; }
}
@media (max-width: 640px) {
  .top { gap: .5rem; }
  .top__name small, .top__status span#statusText, .seg { display: none; }
  .top__status { margin-left: auto; }
  .stage { height: 50vh; }
  .stage__help { display: none; }
}

/* ── chat ────────────────────────────────────────────── */
.chat__scroll { flex: 1; overflow-y: auto; padding: 1.3rem 1.2rem 1rem; scroll-behavior: smooth; }
.intro h1 { font: 500 1.45rem/1.25 var(--f-serif); letter-spacing: -.01em; margin: 0 0 .8rem; }
.intro p { color: var(--mute); margin: 0 0 .8rem; font-size: .92rem; }
.intro p b { color: var(--ink); font-weight: 500; }
.intro__honest { border-left: 2px solid var(--accent2); padding-left: .75rem; font-size: .85rem !important; }
.intro .eyebrow { margin-top: 1.2rem; }
.presets { display: flex; flex-direction: column; gap: .45rem; }
.preset {
  text-align: left; border: 1px solid var(--rule); background: var(--card); border-radius: 10px;
  padding: .6rem .75rem; cursor: pointer; font-size: .88rem; line-height: 1.4;
  transition: border-color var(--t), transform var(--t);
}
.preset:hover { border-color: var(--accent); transform: translateX(2px); }
.preset small { display: block; font: 500 .68rem/1.2 var(--f-mono); color: var(--accent2); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .2rem; }
.more { margin-top: .8rem; }
.more summary { cursor: pointer; color: var(--accent); font-size: .85rem; }
.presets--all { margin-top: .6rem; max-height: 340px; overflow-y: auto; padding-right: .3rem; }
.presets--all .preset { font-size: .82rem; padding: .45rem .6rem; }

.msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.msg { animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.msg--user { align-self: flex-end; max-width: 88%; background: var(--accent); color: #fff; padding: .6rem .85rem; border-radius: 14px 14px 4px 14px; font-size: .92rem; }
[data-theme="dark"] .msg--user { color: #0A0C13; }
.msg--bot { background: var(--card); border: 1px solid var(--rule); border-radius: 4px 14px 14px 14px; padding: .85rem .95rem; }
.msg__head { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .55rem; }
.badge { font: 500 .68rem/1 var(--f-mono); padding: .28rem .45rem; border-radius: 99px; border: 1px solid var(--rule); color: var(--mute); white-space: nowrap; }
.badge--ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.badge--warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.badge--bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.badge--sim { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.trace { list-style: none; padding: 0; margin: 0 0 .6rem; font: 400 .76rem/1.5 var(--f-mono); color: var(--mute); }
.trace li { position: relative; padding-left: .95rem; animation: rise .25s ease-out both; }
.trace li::before { content: "›"; color: var(--accent2); position: absolute; left: 0; }
.trace li b { color: var(--ink); font-weight: 500; }
.trace .de { color: var(--accent2); }

.answer { font-size: .93rem; line-height: 1.6; }
.answer p { margin: 0 0 .55rem; }
.answer ul { margin: 0 0 .55rem; padding-left: 1.1rem; }
.answer li { margin-bottom: .3rem; }
.answer q { font-style: italic; quotes: "„" "“"; }
.answer .caret { display: inline-block; width: .5em; height: 1em; vertical-align: -.15em; background: var(--accent2); animation: blink .8s steps(2) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.cite {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.35em; height: 1.35em;
  padding: 0 .25em; margin: 0 .08em; border-radius: 5px; border: 0; cursor: pointer; vertical-align: .1em;
  font: 600 .7rem/1 var(--f-mono); background: var(--accent2-lo); color: var(--accent2);
}
.cite:hover { background: var(--accent2); color: var(--paper); }
.answer__note { font-size: .78rem; color: var(--mute); border-top: 1px dashed var(--rule); padding-top: .5rem; margin-top: .6rem; }

.thinking { display: flex; gap: .3rem; padding: .3rem 0; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: bounce 1s infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-4px); opacity: .5; } }

.srcs { margin-top: .7rem; display: flex; flex-direction: column; gap: .4rem; }
.src {
  border: 1px solid var(--rule); border-radius: 9px; padding: .5rem .6rem; cursor: pointer; background: var(--paper);
  transition: border-color var(--t); text-align: left; width: 100%;
}
.src:hover, .src.is-on { border-color: var(--accent2); }
.src__h { display: flex; gap: .45rem; align-items: baseline; font-size: .8rem; }
.src__h b { font: 600 .74rem/1 var(--f-mono); color: var(--accent2); flex: none; }
.src__h span { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src__h em { font-style: normal; color: var(--mute); margin-left: auto; font: 400 .7rem/1 var(--f-mono); flex: none; }
.src__q { margin: .3rem 0 0; font-size: .78rem; color: var(--mute); line-height: 1.45; }
mark { background: color-mix(in srgb, var(--accent2) 22%, transparent); color: inherit; border-radius: 2px; padding: 0 .1em; }

.composer { border-top: 1px solid var(--rule); padding: .7rem .9rem .75rem; background: var(--paper); }
.composer__row { display: flex; gap: .5rem; align-items: flex-end; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); padding: .35rem .35rem .35rem .75rem; transition: border-color var(--t), box-shadow var(--t); }
.composer__row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-lo); }
.composer textarea { flex: 1; border: 0; outline: 0; resize: none; background: none; padding: .45rem 0; max-height: 140px; font-size: .95rem; line-height: 1.4; }
.send { width: 36px; height: 36px; border-radius: 9px; border: 0; background: var(--accent); cursor: pointer; display: grid; place-items: center; flex: none; transition: background var(--t), opacity var(--t); }
.send svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .send svg { stroke: #0A0C13; }
.send:hover { background: var(--accent2); }
.send:disabled { opacity: .4; cursor: default; }
.composer__meta { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .5rem; font-size: .74rem; color: var(--mute); }
.filter { display: flex; align-items: center; gap: .35rem; }
.filter select { border: 1px solid var(--rule); border-radius: 6px; background: var(--card); padding: .15rem .3rem; font-size: .76rem; max-width: 190px; }

/* ── stage ───────────────────────────────────────────── */
.stage__gl, .stage__gl canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__gl canvas { cursor: grab; touch-action: none; }
.stage__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.slabel { position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 .7rem/1.2 var(--f-mono); transition: opacity .3s; will-change: transform; }
.slabel--group { color: var(--c); letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 0 6px var(--paper), 0 0 2px var(--paper); }
.slabel--group.is-off { opacity: .15 !important; }
.slabel--core { display: flex; flex-direction: column; align-items: center; color: var(--ink); text-align: center; }
.slabel--core b { font: 600 .78rem/1.2 var(--f-mono); color: var(--accent); }
.slabel--core small { color: var(--mute); font-size: .66rem; }
.slabel--core.is-hot b { color: var(--accent2); text-shadow: 0 0 10px var(--accent2); }
.slabel--tenant { color: var(--mute); font-size: .62rem; opacity: .8; }
.slabel--query { background: var(--card); border: 1px solid var(--dense); color: var(--ink); padding: .25rem .5rem; border-radius: 99px; font-size: .7rem; box-shadow: 0 4px 18px rgba(0,0,0,.18); }

.stage__hud { position: absolute; top: .8rem; left: .8rem; right: .8rem; pointer-events: none; }
.steps { list-style: none; margin: 0; padding: .35rem; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--card) 78%, transparent); border: 1px solid var(--rule); border-radius: 12px; backdrop-filter: blur(8px); width: max-content; max-width: 100%; pointer-events: auto; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: .4rem; align-items: center; padding: .3rem .55rem; border-radius: 8px; flex: none; color: var(--mute); transition: background var(--t), color var(--t); }
.steps li i { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.steps li span { font: 500 .74rem/1.1 var(--f-sans); }
.steps li small { font: 400 .62rem/1.1 var(--f-mono); opacity: .8; }
.steps li.is-active { background: var(--accent-lo); color: var(--accent); }
.steps li.is-active i { background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); animation: breathe 1s infinite; }
.steps li.is-done { color: var(--ink); }
.steps li.is-done i { background: var(--ok); border-color: var(--ok); }
.steps li.is-sim.is-active { color: var(--accent2); background: var(--accent2-lo); }

.legend { position: absolute; left: .8rem; bottom: .8rem; display: flex; flex-direction: column; gap: .15rem; pointer-events: auto; }
.legend button { display: flex; align-items: center; gap: .4rem; border: 0; background: none; padding: .1rem .2rem; cursor: pointer; font: 400 .7rem/1.3 var(--f-mono); color: var(--mute); text-align: left; border-radius: 4px; }
.legend button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.legend button:hover, .legend button[aria-pressed="true"] { color: var(--ink); }
.legend button.is-off { opacity: .35; }
.stage__keys { position: absolute; right: .8rem; bottom: .8rem; display: flex; align-items: center; gap: .7rem; font: 400 .68rem/1 var(--f-mono); color: var(--mute); flex-wrap: wrap; justify-content: flex-end; }
.k { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3rem; vertical-align: -.05em; }
.k--sparse { background: var(--sparse); box-shadow: 0 0 6px var(--sparse); }
.k--dense { background: var(--dense); box-shadow: 0 0 6px var(--dense); }
.k--fused { background: var(--fused); box-shadow: 0 0 6px var(--fused); }
.stage__help { position: absolute; right: .8rem; top: 4.4rem; width: 220px; font-size: .72rem; line-height: 1.45; color: var(--mute); text-align: right; pointer-events: none; }
@media (max-width: 1280px) { .stage__help { display: none; } }
@media (max-width: 640px) { .legend { display: none; } }
.tip { position: absolute; z-index: 5; pointer-events: none; max-width: 260px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: .4rem .55rem; font-size: .74rem; line-height: 1.35; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.tip b { display: block; font: 500 .7rem/1.3 var(--f-mono); color: var(--accent2); }

/* ── inspector ───────────────────────────────────────── */
.tabs { display: flex; gap: .15rem; padding: .45rem .6rem 0; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; flex: none; }
.tabs button { border: 0; background: none; padding: .5rem .7rem; font-size: .8rem; color: var(--mute); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button.has-news::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent2); margin-left: .35rem; vertical-align: .2em; }
.panes { flex: 1; overflow: auto; min-height: 0; }
.pane { padding: .8rem 1rem 1.2rem; }
.empty { color: var(--mute); font-size: .85rem; max-width: 60ch; }

.rlists { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.rlist h4 { margin: 0 0 .35rem; font: 500 .72rem/1.3 var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: .35rem; }
.rlist ol { margin: 0; padding-left: 1.4rem; font: 400 .72rem/1.55 var(--f-mono); color: var(--mute); }
.rlist li.is-top { color: var(--ink); }
.rlist li.is-top::marker { color: var(--accent2); }
.qline { font: 400 .78rem/1.5 var(--f-mono); color: var(--mute); margin: 0 0 .8rem; word-break: break-word; }
.qline b { color: var(--ink); font-weight: 500; }
.tok { display: inline-block; padding: 0 .3em; margin: 0 .15em .15em 0; border-radius: 4px; background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink); }
.tok--miss { opacity: .45; text-decoration: line-through; }

table.tbl { width: 100%; border-collapse: collapse; font-size: .78rem; }
.tbl th { text-align: left; font: 500 .66rem/1.2 var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .05em; padding: .35rem .4rem; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl td { padding: .4rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl td.num { font-family: var(--f-mono); white-space: nowrap; }
.tbl tr { cursor: pointer; }
.tbl tr:hover td { background: var(--paper-2); }
.tbl .swatch { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: .35rem; }
.rrfbar { display: inline-block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2)); vertical-align: middle; margin-left: .35rem; }
.tablewrap { overflow-x: auto; }

pre.prompt { margin: 0; font: 400 .74rem/1.55 var(--f-mono); white-space: pre-wrap; word-break: break-word; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 10px; padding: .8rem .9rem; max-height: none; }
.prompt .sys { color: var(--accent); }
.prompt .src-h { color: var(--accent2); font-weight: 500; }
.ptools { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; font: 400 .74rem/1.4 var(--f-mono); color: var(--mute); margin-bottom: .7rem; }
.ptools b { color: var(--ink); font-weight: 500; }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.check h4 { margin: 0 0 .5rem; font: 500 .74rem/1.3 var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.check ul { margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.check li { display: flex; gap: .45rem; padding: .2rem 0; }
.check li::before { content: "✓"; color: var(--ok); font-weight: 600; }
.check li.is-x::before { content: "×"; color: var(--bad); }
.check li.is-i::before { content: "·"; color: var(--mute); }
.meter { margin: .35rem 0 .6rem; }
.meter__row { display: grid; grid-template-columns: 120px 1fr 44px; gap: .5rem; align-items: center; font-size: .76rem; margin-bottom: .3rem; }
.meter__row span:last-child { font-family: var(--f-mono); text-align: right; }
.meter__track { height: 6px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.meter__track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 4px; transition: width .8s cubic-bezier(.2,.7,.3,1); }
.bigscore { font: 500 2rem/1 var(--f-serif); }
.bigscore small { font: 400 .8rem/1 var(--f-mono); color: var(--mute); margin-left: .4rem; }

.audit { display: flex; flex-direction: column; gap: .5rem; }
.audit pre { margin: 0; font: 400 .72rem/1.5 var(--f-mono); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 8px; padding: .6rem .7rem; white-space: pre-wrap; word-break: break-word; }
.audit .k { width: auto; height: auto; display: inline; box-shadow: none; margin: 0; background: none; color: var(--accent); }

.chunkview h3 { font: 500 1.05rem/1.3 var(--f-serif); margin: 0 0 .2rem; }
.chunkview .meta { font: 400 .74rem/1.5 var(--f-mono); color: var(--mute); margin: 0 0 .7rem; }
.chunkview .body { font-size: .86rem; line-height: 1.65; white-space: pre-wrap; max-width: 80ch; }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; font-size: .86rem; }
.about h3 { font: 500 1rem/1.3 var(--f-serif); margin: 0 0 .5rem; }
.about ol, .about ul { margin: 0; padding-left: 1.1rem; color: var(--mute); }
.about li { margin-bottom: .45rem; }
.about li b { color: var(--ink); font-weight: 500; }

.nojs { padding: 2rem; text-align: center; }

/* embedded in the playground: no sticky top, a bit tighter */
.is-embed .top { position: static; }
.is-embed .intro h1 { font-size: 1.25rem; }
