:root {
  color-scheme: light;
  --bg: #fafaf7;
  --text: #242520;
  --line: #737b74;
  --border: #d5d9d3;
  --surface: #f4f5f1;
  --model: #eeebfb;
  --model-line: #7765b6;
  --harness: #e1f2eb;
  --harness-line: #39836d;
  --tool: #fbefdb;
  --tool-line: #a17b37;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0 auto;
  max-width: 920px;
  padding: 24px 16px 32px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
h1 {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 500;
}
figure {
  margin: 0;
}
.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.comparison > figure {
  min-width: 0;
}
.visual {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.controls button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.controls button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}
button:focus-visible {
  outline: 3px solid var(--model-line);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.label {
  fill: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 500;
}
.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 16px;
}
.node {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.4;
}
.model {
  fill: var(--model);
  stroke: var(--model-line);
}
.harness {
  fill: var(--harness);
  stroke: var(--harness-line);
}
.tool {
  fill: var(--tool);
  stroke: var(--tool-line);
}
.edge {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow {
  fill: var(--line);
}
.boundary {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
}
.quiet {
  stroke-dasharray: 4 4;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 640px) {
  .comparison {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  h1 {
    font-size: 22px;
  }
}
@media print {
  body {
    max-width: none;
  }
  .controls {
    display: none;
  }
  [data-panel][hidden] {
    display: block !important;
    margin-top: 24px;
  }
  figure,
  [data-panel] {
    break-inside: avoid;
  }
}
