:root {
  --bg: #fdfcfa;
  --fg: #1d1d1f;
  --muted: #6b6b70;
  --rule: #e2e0dc;
  --accent: #c2410c;
  --bar: #c2410c;
  --track: #f1eeea;
  --todo-bg: #fff7e6;
  --todo-border: #f0c36d;
  --added: #15803d;
  --added-bg: #ecf7ef;
  --warn-bg: #fde2c8;
  --bad: #b91c1c;
  --bad-bg: #fdecec;
  --card: #f6f3ee;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --fg: #ececee;
    --muted: #9a9aa0;
    --rule: #34343a;
    --accent: #fb923c;
    --bar: #fb923c;
    --track: #232327;
    --todo-bg: #2b2414;
    --todo-border: #8a6a2a;
    --added: #4ade80;
    --added-bg: #15261b;
    --warn-bg: #5a3317;
    --bad: #f87171;
    --bad-bg: #3a1a1a;
    --card: #1e1e21;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 var(--serif);
}
main { max-width: 860px; margin: 0 auto; padding: 0 16px 80px; }

/* Sidebar table of contents: fixed in the left margin, only where the margin is wide enough. */
.toc { display: none; }
@media (min-width: 1240px) {
  .toc {
    display: block; position: fixed; top: 48px; left: 24px; width: 168px;
    max-height: calc(100vh - 96px); overflow-y: auto;
    font: 13px/1.4 var(--sans);
  }
  .toc .toc-title { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .toc a {
    display: block; padding: 4px 0 4px 10px; border-left: 2px solid var(--rule);
    color: var(--muted); text-decoration: none;
  }
  .toc a.sub { padding-left: 22px; font-size: 12px; }
  .toc a:hover { color: var(--fg); }
  .toc a.active { color: var(--fg); border-left-color: var(--accent); font-weight: 600; }
  .toc-toggle {
    border: 0; background: transparent; cursor: pointer; padding: 0 2px;
    font: 15px var(--sans); color: var(--muted);
  }
  .toc-toggle:hover { color: var(--fg); }
  /* Keep the wide figures clear of the sidebar. */
  body:not(.toc-collapsed) figure.viz-root { width: min(1120px, calc(100vw - 400px)); }
  body.toc-collapsed .toc { display: none; }
  body.toc-collapsed .toc-open { display: block; }
}
.toc-open {
  display: none; position: fixed; top: 44px; left: 24px; z-index: 5;
  font: 12px var(--sans); color: var(--muted); cursor: pointer;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; padding: 5px 10px;
}
.toc-open:hover { color: var(--fg); border-color: var(--muted); }

h1 { font-size: 2.1rem; line-height: 1.2; margin: 48px 0 4px; }

/* Title block: centered title, subtitle, authors with affiliation numbers, link buttons */
.title-block { text-align: center; padding: 56px 0 36px; border-bottom: 1px solid var(--rule); }
.title-block h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); letter-spacing: -0.01em; margin: 0; }
.subtitle { font-size: clamp(1.3rem, 4vw, 1.75rem); line-height: 1.3; color: var(--muted); font-style: italic; margin: 12px 0 0; }
.authors, .affiliations, .links {
  display: flex; flex-wrap: wrap; justify-content: center; font-family: var(--sans);
}
.authors {
  column-gap: 0.3em; margin-top: 28px; font-size: 15px; line-height: 1.6;
  /* a bit wider than the text column so all ten names can share one line */
  width: min(1040px, calc(100vw - 32px)); margin-left: 50%; transform: translateX(-50%);
}
.authors span, .affiliations span { white-space: nowrap; }
.authors .group { white-space: normal; max-width: 100%; }
.title-block sup { font-size: 0.7em; margin-left: 1px; color: var(--muted); }
.affiliations { gap: 4px 18px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.affiliations sup { margin: 0 2px 0 0; }
.links { gap: 10px; margin-top: 24px; }
.title-block .contact { margin-top: 6px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.title-block .contact a { color: inherit; text-decoration: none; }
.title-block .contact a:hover { text-decoration: underline; }
.title-block .date { margin-top: 10px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.links a, .links .soon {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; padding: 6px 18px; border-radius: 99px; text-decoration: none;
  border: 1px solid var(--rule); color: var(--fg);
}
.links svg { width: 16px; height: 16px; flex: none; }
.links .soon { color: var(--muted); cursor: default; }
.links a:hover { border-color: var(--fg); }
h2 {
  font-size: 1.5rem; margin: 56px 0 12px; padding-bottom: 6px;
  border-bottom: 1px dashed var(--rule);
}
h3 { font-size: 1.15rem; margin: 32px 0 8px; }

/* TL;DR card: soft neutral surface, body in the article serif, one accent pill
   (same shape as the figures' "lower is better" tag) as its only strong color. */
.tldr {
  margin: 40px 0 8px; padding: 22px 28px 24px;
  background: var(--card); border-radius: 12px;
  font: 17px/1.65 var(--serif);
}
.tldr h2 {
  display: inline-block; margin: 0 0 12px; padding: 3px 12px; border: 0; border-radius: 99px;
  background: var(--accent); color: var(--bg);
  font: 700 12px var(--sans); letter-spacing: 0.08em;
}
.tldr p { margin: 0 0 8px; }
.tldr ul { margin: 0; padding-left: 1.2em; }
.tldr li { margin-top: 6px; }
.tldr li::marker { color: var(--accent); }
.tldr .nowrap { white-space: nowrap; }
@media (max-width: 600px) { .tldr { padding: 18px 18px 20px; } }
a { color: var(--accent); }

table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 14px; margin: 16px 0; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
th[colspan] { text-align: center; border-bottom: 1px solid var(--rule); }
.table-wrap { overflow-x: auto; }

/* Small note under a table */
.table-note { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: -8px; }

/* Example: the TL;DR card's outline twin (same radius, accent label as text, no fill). */
.example { margin: 24px 0; padding: 16px 24px 18px; border: 1px solid var(--rule); border-radius: 12px; }
.example-label {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.example p { margin: 0; }
/* Highlighted paragraph, e.g. the call for examples */
.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; font-style: italic; }

/* Figure number + one-line takeaway, for readers who only look at the figures. */
.fig-cap { font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 10px; }
.fig-cap b { color: var(--fg); }

/* Collapsible details block */
.details { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 16px; margin: 20px 0; font-size: 15px; }
.details summary { cursor: pointer; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); }
.details[open] summary { margin-bottom: 4px; }
.details p { margin: 10px 0; }

/* Placeholder boxes for sections still to be written. Delete the class once filled. */
.todo {
  background: var(--todo-bg); border: 1px dashed var(--todo-border);
  border-radius: 6px; padding: 10px 14px; margin: 16px 0;
  font-family: var(--sans); font-size: 14px;
}
.todo::before { content: "TODO  "; font-weight: 700; }
/* Inline placeholder: small and quiet, still easy to find with search. */
.todo-inline { font-family: var(--sans); font-size: 12px; color: var(--muted); background: var(--todo-bg); padding: 0 4px; border-radius: 3px; }

/* Fig. 1: column chart in the style of artificialanalysis.ai (brand color per developer,
   value inside the bar, dashed grid, logo + rotated name under each bar). */
.viz-root, table.harness {
  --d-anthropic: #cc785c; --d-openai: #1f1f1f; --d-google: #34a853;
  --d-alibaba: #ff7018; --d-deepseek: #2243e6; --d-kimi: #047afe;
  --grid: #d9d7d2;
}
@media (prefers-color-scheme: dark) {
  .viz-root { --d-openai: #e6e6e6; --grid: #3a3a40; }
  table.harness { --d-openai: #e6e6e6; }
}
/* The figure is wider than the text column so the two panels fit side by side. */
figure.viz-root {
  width: min(1120px, calc(100vw - 32px)); margin: 24px 0 24px 50%; transform: translateX(-50%);
  font-family: var(--sans);
}
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; margin-top: 8px; }
@media (max-width: 900px) { .panels { grid-template-columns: 1fr; } }
.panel-title { font-weight: 600; font-size: 14px; margin-top: 12px; }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.toggle button {
  font: 13px var(--sans); padding: 6px 14px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
}
.toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.fig-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.fig-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.better {
  font: 700 15px var(--sans); letter-spacing: 0.02em; white-space: nowrap;
  padding: 5px 16px; border-radius: 99px;
  background: var(--accent); color: var(--bg);
}
.fig-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.plot-scroll { overflow: visible; }
@media (max-width: 600px) { .plot-scroll { overflow-x: auto; overflow-y: hidden; } .plot { min-width: 480px; } }
.plot { padding: 0 4px 0 56px; }
.plot-area { position: relative; height: 260px; margin-top: 20px; }
.gridline { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--grid); }
.cols { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.col { position: relative; }
.col .bar {
  position: absolute; bottom: 0; left: 50%; width: min(24px, 64%); transform: translateX(-50%);
  border-radius: 4px 4px 0 0; transition: height 0.4s ease;
}
.col .val {
  position: absolute; left: -4px; right: -4px; text-align: center; font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums; padding-bottom: 3px; transition: bottom 0.4s ease;
}
.col:hover .bar { filter: brightness(1.12); }
.under { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 150px; border-top: 1px solid var(--grid); }
.under > div { position: relative; }
.under .logo { display: block; width: 18px; height: 18px; margin: 7px auto 0; color: var(--fg); }
.under .logo svg { display: block; width: 100%; height: 100%; }
.under .name {
  position: absolute; top: 34px; right: 50%; white-space: nowrap; text-align: right;
  font-size: 11px; line-height: 1.25; transform-origin: 100% 0; transform: rotate(-45deg);
}
.under .name span { display: block; color: var(--muted); font-size: 10px; }

.tip {
  position: absolute; z-index: 2; pointer-events: none; background: var(--fg); color: var(--bg);
  font-size: 12px; line-height: 1.45; padding: 7px 10px; border-radius: 6px; white-space: nowrap;
  transform: translate(-50%, -100%); margin-top: -8px;
}
.tip.below { transform: translate(-50%, 0); margin-top: 8px; }
figcaption { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 8px; }
figcaption p { margin: 2px 0; }

/* Case study: one example at a time, picked with the tabs */
.cases { font-family: var(--sans); font-size: 15px; line-height: 1.55; margin-top: 16px; }
.case-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.case-tabs button {
  font: 14px var(--sans); padding: 7px 16px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--muted);
}
.case-tabs button:hover { color: var(--fg); border-color: var(--fg); }
.case-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.case { border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; }
.case-head h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.3rem; }
.case .tag { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 99px; background: var(--track); margin-right: 6px; color: var(--muted); }
.case .tag.label { background: var(--accent); color: var(--bg); }
.case p { margin: 0; }
.case code { font-size: 0.9em; background: var(--track); padding: 0 4px; border-radius: 3px; }
.case pre { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.case pre mark, .case blockquote mark, .msg mark { background: var(--warn-bg); color: inherit; padding: 0 2px; border-radius: 2px; }
/* Messages: the instruction (user) and the final message (agent), quoted in full */
.msg { padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.msg p, .msg ul, .msg ol { margin: 0 0 8px; }
.msg > :last-child { margin-bottom: 0; }
.msg ul, .msg ol { padding-left: 1.3em; }
.msg.user { background: var(--track); border-radius: 10px 10px 10px 2px; }
.msg.user code { background: var(--bg); }
.msg.agent { border: 1px solid var(--rule); border-radius: 10px 10px 2px 10px; }
.msg pre { background: var(--track); padding: 6px 10px; border-radius: 4px; }
.msg code { overflow-wrap: anywhere; }
/* Trajectory excerpts */
.tstep { margin-top: 10px; }
.slabel { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
blockquote.thought { margin: 4px 0 0; padding: 6px 12px; border-left: 3px solid var(--rule); color: var(--fg); font-size: 14px; }
.note { margin-top: 8px !important; font-size: 13.5px; color: var(--muted); }
.note::before { content: "Note. "; font-weight: 600; }

/* Example: four steps top to bottom on a rail (asked, what is modified, the agent did, it said).
   Each step is one short line; its quoted logs sit in a <details> right under it. */
.flow { list-style: none; padding: 0; margin: 18px 0 0; }
.flow > li { position: relative; padding: 0 0 18px 26px; }
.flow > li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); box-sizing: border-box; }
.flow > li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 2px; width: 1px; background: var(--rule); }
.flow > li.ours::before { border-color: var(--added); background: var(--added); }
.flow > li.said::before { border-color: var(--accent); background: var(--accent); }
.flow .k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.flow li.ours .k { color: var(--added); }
.flow li.said .k { color: var(--accent); }
.flow .line { font-size: 15px; }
.flow pre.lines { margin-top: 6px; font-size: 13px; line-height: 1.6; white-space: pre; overflow-x: auto; }
.flow .cut-wrap { overflow-x: auto; margin-top: 8px; }
table.cutoffs { width: auto; margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
table.cutoffs th, table.cutoffs td { padding: 3px 8px; text-align: center; }
table.cutoffs tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
table.cutoffs td.diff { background: var(--warn-bg); font-weight: 600; }
.flow q, .case .why q { font-style: italic; }
.flow details { margin-top: 6px; }
.flow details > summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.flow details > summary:hover { color: var(--fg); }
.flow details[open] > summary { margin-bottom: 6px; }
.flow details .tstep:first-of-type { margin-top: 0; }
/* What the user does not learn */
.case .verdict-badge { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 10px; border-radius: 99px; color: var(--bad); background: var(--bad-bg); border: 1px solid var(--bad); margin-right: 6px; }
.case .why { margin-top: 2px; padding: 10px 14px; border-left: 4px solid var(--bad); background: var(--bad-bg); border-radius: 0 6px 6px 0; font-size: 14px; }
.case .why .wk { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bad); margin-right: 6px; }
.case .contrast { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--rule); }
.case .contrast-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.case .contrast .flow { margin-top: 12px; }

pre { background: var(--track); padding: 12px 14px; border-radius: 6px; overflow-x: auto; font-size: 13px; }
blockquote { margin: 16px 0; padding-left: 14px; border-left: 3px solid var(--rule); color: var(--muted); }
/* Instruction we add to the agent's instruction file: card surface, accent opening quote. */
blockquote.instr {
  position: relative; margin: 20px 0; padding: 14px 20px 14px 50px;
  background: var(--card); border: 0; border-radius: 10px; color: var(--fg);
}
blockquote.instr::before {
  content: "\201C"; position: absolute; left: 16px; top: 4px;
  font: 700 40px/1 var(--serif); color: var(--accent);
}
footer { text-align: center; font: 13px var(--sans); color: var(--muted); padding: 32px 16px; border-top: 1px solid var(--rule); }

/* Fig. 2: heatmap, agents x deviation categories. One hue (--bar) mixed into the page surface, light -> dark
   for low -> high; the mix flips with the surface in dark mode. */
figure.heat-fig { margin: 24px 0; font-family: var(--sans); }
.heat-wrap { position: relative; overflow-x: auto; margin-top: 12px; }
table.heat { border-collapse: separate; border-spacing: 2px; width: 100%; min-width: 520px; margin: 0; font-size: 13px; table-layout: fixed; }
table.heat col.agent-col { width: 26%; }
table.heat col.gap-col { width: 10px; }
table.heat th, table.heat td { border: 0; padding: 0; }
table.heat thead th { overflow-wrap: anywhere; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding: 0 2px 6px; vertical-align: bottom; }
table.heat th.agent { text-align: left; }
table.heat td.agent { white-space: nowrap; padding: 3px 10px 3px 0; line-height: 1.25; }
table.heat td.agent span { display: block; color: var(--muted); font-size: 11px; }
table.heat td.cell {
  text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; border-radius: 4px;
  padding: 9px 4px; outline-offset: 1px;
}
table.heat td.cell.hi { color: #1d1d1f; }
table.heat td.cell:hover, table.heat td.cell:focus { outline: 2px solid var(--fg); }
table.heat .gap { width: 10px; }
table.heat tfoot td.agent { font-weight: 600; border-top: 1px solid var(--rule); padding-top: 8px; }
table.heat tfoot td.cell { box-shadow: inset 0 0 0 1px var(--muted); }
.heat-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.heat-legend .ramp { width: 160px; height: 10px; border-radius: 3px; }

td.nowrap { white-space: nowrap; }
/* Harness table: a dot in the developer's color from Fig. 1 marks each harness. */
table.harness tr.h-anthropic { --h: var(--d-anthropic); }
table.harness tr.h-alibaba { --h: var(--d-alibaba); }
table.harness tr.h-openai { --h: var(--d-openai); }
table.harness tr.h-kimi { --h: var(--d-kimi); }
table.harness tr.h-google { --h: var(--d-google); }
table.harness tr.h-deepseek { --h: var(--d-deepseek); }
table.harness thead th { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--fg); }
table.harness th, table.harness td { padding-top: 9px; padding-bottom: 9px; }
table.harness th:first-child, table.harness td:first-child { padding-left: 24px; }
table.harness tbody td:first-child { position: relative; font-weight: 600; }
table.harness tbody td:first-child::before { content: ""; position: absolute; left: 6px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--h); }
table.harness tbody td:last-child { font-family: var(--serif); font-size: 15px; color: var(--muted); }

/* Fig. 4: changing the harness, grouped horizontal bars (model = group, harness = row). */
figure.swap-fig { margin: 24px 0; font-family: var(--sans); }
.swap {
  position: relative; display: grid; grid-template-columns: minmax(110px, 30%) 1fr 1fr;
  gap: 5px 20px; align-items: center; font-size: 13px; margin-top: 12px;
}
.swap-head { font-weight: 600; font-size: 12px; color: var(--muted); }
.swap-grp {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; font-weight: 600;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule);
}
.swap-grp .logo { width: 16px; height: 16px; color: var(--fg); }
.swap-grp .logo svg { display: block; width: 100%; height: 100%; }
.swap-lab { font-size: 12px; line-height: 1.25; color: var(--muted); }
.swap-lab.own { color: var(--fg); font-weight: 600; }
.swap-lab span { font-weight: 400; color: var(--muted); }
.swap-track {
  position: relative; height: 18px; margin-right: 26px;
  background: repeating-linear-gradient(to right, transparent 0 calc(25% - 1px), var(--grid) calc(25% - 1px) 25%);
}
.swap-bar { height: 100%; border-radius: 0 4px 4px 0; }
.swap-bar.other { opacity: 0.45; }
.swap-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--fg); }
.swap-val {
  position: absolute; top: 50%; transform: translateY(-50%); padding-left: 5px;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.swap-track:hover .swap-bar { filter: brightness(1.12); }

/* Back-to-top button, bottom right; appears once the reader has scrolled past the title. */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 18px var(--sans); text-decoration: none;
  background: var(--bg); color: var(--fg); border: 1px solid var(--rule);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--muted); }

/* Citation block with a copy button in its top-right corner. */
.cite { position: relative; }
.cite pre { padding-right: 72px; }
.cite-copy {
  position: absolute; top: 8px; right: 8px; font: 12px var(--sans); cursor: pointer;
  background: var(--bg); color: var(--muted); border: 1px solid var(--rule); border-radius: 5px; padding: 3px 10px;
}
.cite-copy:hover { color: var(--fg); border-color: var(--muted); }
