:root {
  --ink: #12100d;
  --muted: #6f6a61;
  --paper: #f7f2e8;
  --paper-2: #fffaf1;
  --line: #ded4c4;
  --accent: #9f3f25;
  --accent-2: #183a37;
  --success: #206f4a;
  --warning: #a56718;
  --shadow: 0 24px 80px rgba(18, 16, 13, 0.11);
  font-synthesis-weight: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: white; padding: 10px 14px; border-radius: 999px; z-index: 10; }
.skip-link:focus { top: 16px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 24px clamp(20px, 5vw, 72px); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(18px); background: rgba(247, 242, 232, .82); border-bottom: 1px solid rgba(222, 212, 196, .7); }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; letter-spacing: -.04em; }
.topnav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a { text-decoration: none; color: var(--muted); padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.topnav a:hover, .topnav a:focus-visible { background: var(--paper-2); color: var(--ink); outline: none; }
main { padding: 0 clamp(20px, 5vw, 72px) 72px; }
.hero { min-height: 620px; display: grid; align-content: center; max-width: 1060px; padding: 72px 0 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-size: 12px; font-weight: 700; margin: 0 0 16px; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; letter-spacing: -.035em; line-height: 1; margin: 0; }
h1 { font-size: clamp(52px, 10vw, 118px); max-width: 980px; }
h2 { font-size: clamp(36px, 5vw, 68px); }
h3 { font-size: clamp(28px, 4vw, 44px); }
.hero-copy { max-width: 680px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); margin: 28px 0 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid var(--ink); transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.primary { background: var(--ink); color: white; }
.secondary { background: transparent; color: var(--ink); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 80px; }
.metric-card { background: var(--paper-2); border: 1px solid var(--line); padding: 22px; border-radius: 28px; box-shadow: var(--shadow); }
.metric-card span { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.metric-card strong { display: block; font-size: 42px; letter-spacing: -.06em; margin-top: 10px; }
.metric-card small { color: var(--muted); }
.section-shell { margin-top: 72px; background: rgba(255, 250, 241, .64); border: 1px solid var(--line); border-radius: 36px; padding: clamp(24px, 4vw, 44px); }
.section-heading { max-width: 780px; margin-bottom: 28px; }
.section-heading p:last-child { color: var(--muted); font-size: 18px; }
.toolbar { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; margin: 26px 0; }
.toolbar label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#searchInput { min-width: min(100%, 360px); height: 48px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; background: white; color: var(--ink); font: inherit; }
#searchInput:focus { outline: 3px solid rgba(159, 63, 37, .2); border-color: var(--accent); }
.segmented { display: flex; gap: 6px; padding: 5px; background: #eee4d4; border-radius: 999px; }
.segment { border: 0; background: transparent; color: var(--muted); min-height: 38px; padding: 0 14px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.segment.active { background: var(--ink); color: white; }
.scorecard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.score-row { border: 1px solid var(--line); border-radius: 26px; padding: 20px; background: white; display: grid; gap: 12px; cursor: pointer; transition: border-color .18s ease, transform .18s ease; }
.score-row:hover, .score-row:focus-visible { border-color: var(--accent); transform: translateY(-2px); outline: none; }
.score-row header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.badge.pass { background: #dfeee5; color: var(--success); }
.badge.warn { background: #f5e5ca; color: var(--warning); }
.score-row h3 { font-family: "IBM Plex Sans"; font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.score-row p { color: var(--muted); margin: 0; }
.score-meta { display: flex; gap: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.evidence-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.parameter-rail { position: sticky; top: 104px; align-self: start; }
.rail-title { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; margin-bottom: 12px; }
.nav-button { width: 100%; text-align: left; border: 1px solid transparent; background: transparent; border-radius: 18px; padding: 12px; color: var(--muted); cursor: pointer; font-weight: 700; }
.nav-button.active, .nav-button:hover, .nav-button:focus-visible { background: white; color: var(--ink); border-color: var(--line); outline: none; }
.evidence-panel { background: white; border: 1px solid var(--line); border-radius: 30px; padding: clamp(20px, 4vw, 36px); min-height: 520px; }
.detail-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.detail-kpis div { border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.detail-kpis span { color: var(--muted); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.detail-kpis strong { font-size: 24px; }
.timeline { display: grid; gap: 12px; margin: 24px 0; }
.iteration { border-left: 3px solid var(--line); padding: 4px 0 4px 16px; }
.iteration.pass { border-left-color: var(--success); }
.iteration.fail { border-left-color: var(--accent); }
.iteration h4 { margin: 0 0 6px; }
.iteration p { margin: 0; color: var(--muted); }
.iteration-card { border: 1px solid var(--line); border-radius: 26px; padding: 18px; background: #fff; display: grid; gap: 16px; }
.iteration-card.pass { border-color: rgba(32, 111, 74, .35); }
.iteration-card.fail { border-color: rgba(159, 63, 37, .34); }
.iteration-card header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.iteration-card h4 { margin: 4px 0 0; font-size: 18px; }
.iteration-label { color: var(--muted); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.evidence-list { display: grid; gap: 10px; margin: 0; }
.evidence-list div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.evidence-list dt { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.evidence-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.patch-box, .chat-box { background: #f8f4ed; border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin-top: 18px; }
.patch-box.compact { margin-top: 0; }
.patch-box h5 { margin: 0 0 8px; font-size: 14px; letter-spacing: -.01em; }
.patch-box code { display: block; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #3b2b23; margin-top: 10px; }
.chat-details { border: 1px solid var(--line); border-radius: 20px; background: #fbf8f2; padding: 12px 14px; }
.chat-details summary { cursor: pointer; font-weight: 800; color: var(--accent-2); }
.chat-details[open] summary { margin-bottom: 12px; }
.chat { display: grid; gap: 10px; margin-top: 12px; }
.message { padding: 12px 14px; border-radius: 18px; max-width: 86%; }
.message.tester { background: #fff; border: 1px solid var(--line); justify-self: start; }
.message.bot { background: #eaf0ed; justify-self: end; }
.message small { display: block; color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 11px; margin-bottom: 4px; }
.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.method-grid article { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.method-grid p { color: var(--muted); margin-bottom: 0; }
.prompt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.prompt-kpis article { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.prompt-kpis span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.prompt-kpis strong { display: block; font-size: 24px; margin-top: 8px; letter-spacing: -.04em; }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.prompt-details { background: white; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.prompt-details summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 800; }
.prompt-details summary small { color: var(--muted); font-weight: 700; }
.prompt-details pre { margin: 0; max-height: 460px; overflow: auto; background: #17130f; color: #f7f2e8; padding: 18px; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.diff-details pre { color: #f4eadb; }
.diff-view { max-height: 520px; overflow: auto; background: #fff; border-top: 1px solid var(--line); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.diff2html-wrapper { max-height: 680px; overflow: auto; border-top: 1px solid var(--line); background: #fff; }
.diff2html-wrapper .d2h-file-header { display: none; }
.diff2html-wrapper .d2h-file-wrapper { border: 0; margin: 0; }
.diff2html-wrapper .d2h-code-line,
.diff2html-wrapper .d2h-code-side-line { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.diff2html-wrapper .d2h-code-line-ctn { white-space: pre-wrap; }
.diff-line { display: grid; grid-template-columns: 28px minmax(0, 1fr); min-height: 26px; border-bottom: 1px solid rgba(18, 16, 13, .04); }
.inline-diff .diff-line { grid-template-columns: 28px 54px 54px minmax(0, 1fr); }
.diff-line span { display: grid; place-items: center; font-weight: 800; user-select: none; }
.diff-line code { white-space: pre-wrap; padding: 4px 10px; overflow-wrap: anywhere; }
.diff-line b { color: #8c7f70; font-weight: 500; font-size: 11px; padding: 5px 8px; text-align: right; border-right: 1px solid rgba(18, 16, 13, .06); }
.diff-line.add { background: #fff; color: #24292f; }
.diff-line.add > span:first-child { background: #dafbe1; }
.diff-line.remove { background: #fff; color: #24292f; }
.diff-line.remove > span:first-child { background: #ffebe9; }
.diff-line.meta { background: #f6f8fa; color: #57606a; }
.diff-line.meta span { background: #eaeef2; }
.diff-line.context { background: #fff; color: #24292f; }
.diff-line.skip { background: #f6f8fa; color: #6e7781; font-style: italic; }
.diff-token { display: inline !important; place-items: initial !important; font-weight: inherit !important; user-select: text !important; }
.diff-token.add { background: #aceebb; color: #0f5132; border-radius: 3px; }
.diff-token.remove { background: #ffd7d5; color: #842029; border-radius: 3px; }
.diff-token.same { background: transparent; color: inherit; }
.patch-ledger { display: grid; gap: 12px; margin-top: 22px; }
.patch-ledger h4 { margin: 0 0 4px; }
.ledger-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; background: white; border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.ledger-row strong { display: block; margin-top: 6px; }
.ledger-row p { color: var(--muted); margin: 8px 0 0; }
.ledger-row code { background: #f8f4ed; border: 1px solid var(--line); border-radius: 16px; padding: 12px; white-space: pre-wrap; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #3b2b23; max-height: 240px; overflow: auto; }
.empty { color: var(--muted); padding: 32px; border: 1px dashed var(--line); border-radius: 24px; background: white; }
@media (max-width: 980px) { .metrics-grid, .scorecard, .method-grid, .prompt-kpis, .prompt-grid, .ledger-row { grid-template-columns: 1fr 1fr; } .evidence-shell { grid-template-columns: 1fr; } .parameter-rail { position: static; } }
@media (max-width: 640px) { .topbar { align-items: flex-start; gap: 16px; flex-direction: column; } .metrics-grid, .scorecard, .detail-kpis, .method-grid, .prompt-kpis, .prompt-grid, .ledger-row, .evidence-list div { grid-template-columns: 1fr; } .hero { min-height: auto; } .message { max-width: 100%; } }
@media print { .topbar, .toolbar, .parameter-rail, .hero-actions { display: none; } body { background: white; } .section-shell, .metric-card, .evidence-panel { box-shadow: none; break-inside: avoid; } }
