:root {
  --paper: #f5f5f0;
  --card: #fff;
  --ink: #24342d;
  --muted: #58685f;
  --line: #d9dfd5;
  --accent: #38634e;
  --tint: #e8eee5;
  --warm: #a65b35;
  font:
    15px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible,
pre:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  min-height: 42px;
  padding: 8px 13px;
}
button:hover {
  background: var(--tint);
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.page-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 30px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.brand {
  font:
    bold 30px/1 Georgia,
    serif;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -1.5px;
}
.page-header p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.page-header button {
  margin-left: auto;
  font-size: 13px;
}
.workspace {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  max-width: 1920px;
  margin: 0 auto;
}
aside {
  padding: 30px 18px 24px;
  border-right: 1px solid var(--line);
}
aside h1 {
  font:
    normal 25px/1.15 Georgia,
    serif;
  margin: 0 0 12px;
}
.intro {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 25px;
}
.categories {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.categories button {
  display: flex;
  justify-content: space-between;
  border-color: transparent;
  background: transparent;
  text-align: left;
  font-weight: 500;
}
.categories button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.categories span {
  font-size: 12px;
  opacity: 0.8;
}
.task-button {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-align: left;
  width: 100%;
  background: transparent;
  border-color: transparent;
  font-size: 13px;
  margin-bottom: 5px;
  padding: 11px 8px;
  line-height: 1.4;
}
.task-number {
  font:
    11px ui-monospace,
    monospace;
  color: var(--muted);
}
.task-button[aria-current] {
  background: var(--tint);
  border-color: #c4d4c1;
  color: #244e35;
  font-weight: 650;
}
.task-button[aria-current] .task-number {
  color: var(--accent);
}
main {
  min-width: 0;
  padding: 28px 28px 18px;
  outline: none;
}
.task-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.eyebrow {
  font:
    11px/1.5 ui-monospace,
    monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 7px;
}
h2 {
  font:
    normal 32px/1.15 Georgia,
    serif;
  margin: 0;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
.stepper button {
  font-size: 18px;
  padding: 4px 12px;
}
.task-prompt {
  font-size: 14px;
  max-width: 1000px;
  margin: 16px 0 23px;
  color: var(--muted);
}
.comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.panel {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.selectors {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
  padding: 18px 18px 12px;
}
.selectors label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  min-width: 0;
}
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 24px 9px 8px;
  background: #fafbf7;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
  min-height: 42px;
  cursor: pointer;
}
.result-state {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 18px 13px;
  font-size: 11px;
}
.state-label {
  color: var(--muted);
}
.status {
  color: #7e4b16;
  font-size: 11px;
}
.preview {
  width: 100%;
  height: clamp(350px, 34vw, 600px);
  background: #eef1e9;
  border-block: 1px solid var(--line);
  position: relative;
}
iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
  background: #eef1e9;
}
.placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
}
.actions a,
.actions button {
  font-size: 12px;
}
.actions button {
  background: none;
  border-color: transparent;
  padding: 5px 0;
  min-height: 34px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 17px 18px;
  border-top: 1px solid var(--line);
}
.stat dt {
  font-size: 11px;
  color: var(--muted);
}
.stat dd {
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  margin: 5px 0 0;
}
.stats .stat:first-child dd {
  color: var(--accent);
}
.metrics,
.checks {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
summary {
  cursor: pointer;
  min-height: 24px;
  color: var(--muted);
  padding: 2px 0;
}
.extra-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 15px 0;
}
.extra-stats dd {
  font-size: 14px;
}
.tool-names,
.metric-note {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.checks ul {
  padding-left: 18px;
  line-height: 1.9;
}
.passed {
  color: #285a3a;
}
.failed {
  color: #9c351f;
}
.response {
  padding: 20px;
  margin: 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.code {
  font:
    12px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre;
  overflow: auto;
  max-height: 620px;
  min-height: 300px;
  tab-size: 2;
  background: #fbfcf9;
}
.prose {
  font-size: 14px;
  line-height: 1.75;
  min-height: 150px;
}
.prose > :first-child {
  margin-top: 0;
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font: 650 16px/1.4 system-ui;
  margin: 22px 0 10px;
  letter-spacing: 0;
}
.prose h1 {
  font-size: 20px;
}
.prose h2 {
  font-size: 18px;
}
.prose p {
  margin: 0 0 14px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  font-size: 12px;
  margin: 16px 0;
  max-width: 100%;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
}
.prose th {
  background: #edf1e9;
}
.prose pre {
  padding: 12px;
  background: #f0f3ed;
  overflow: auto;
  font-size: 12px;
}
.prose code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}
.prose blockquote {
  margin: 15px 0;
  padding-left: 15px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px 0;
  font-size: 0.92em;
}
.katex {
  font-size: 1.05em;
}
.prose img {
  max-width: 100%;
}
footer {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 28px;
}
@media (min-width: 1600px) {
  main {
    padding: 35px 40px;
  }
  .comparison {
    gap: 26px;
  }
  .selectors {
    grid-template-columns: 1.2fr 1fr;
  }
  .preview {
    height: 540px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  aside {
    padding: 25px 12px;
  }
  main {
    padding: 24px 18px;
  }
  .comparison {
    gap: 12px;
  }
  .selectors {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }
  .result-state,
  .stats,
  .actions,
  .metrics,
  .checks {
    padding-left: 14px;
    padding-right: 14px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .response {
    padding: 16px;
  }
  h2 {
    font-size: 28px;
  }
}
@media (max-width: 760px) {
  .page-header {
    padding: 16px;
    gap: 12px;
  }
  .page-header p {
    display: none;
  }
  .workspace {
    display: block;
  }
  aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 16px 12px;
  }
  aside h1 {
    font-size: 23px;
  }
  .intro {
    margin-bottom: 16px;
  }
  .categories {
    flex-direction: row;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 12px;
  }
  .categories button {
    flex: 1;
    gap: 8px;
    justify-content: center;
    padding: 7px;
    font-size: 12px;
  }
  #task-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 8px;
  }
  .task-button {
    flex-shrink: 0;
    width: auto;
    max-width: 240px;
    margin: 0;
    padding: 10px 12px;
  }
  .comparison {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  main {
    padding: 22px 16px;
  }
  .selectors {
    grid-template-columns: 1fr 1fr;
  }
  .preview {
    height: 400px;
  }
  .task-heading {
    align-items: start;
  }
  .stepper {
    gap: 7px;
  }
  .stepper button {
    min-height: 38px;
    padding: 3px 10px;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stat dd {
    font-size: 14px;
  }
  .task-prompt {
    font-size: 13px;
  }
  .prose {
    font-size: 14px;
  }
  h2 {
    font-size: 27px;
  }
  .code {
    max-height: 470px;
  }
}
@media (max-width: 420px) {
  .selectors {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stepper span {
    display: none;
  }
  .preview {
    height: 340px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.reasoning-heading {
  grid-column: 1 / -1;
  font: 600 15px/1.4 system-ui;
  margin: 10px 0 -6px;
  color: var(--accent);
}
.model-heading {
  padding: 18px 18px 8px;
  font: 650 14px/1.5 system-ui;
  margin: 0;
}
@media (min-width: 761px) {
  .preview {
    height: clamp(300px, 25vw, 420px);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.prose [tabindex="0"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.evaluation-guide {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
}
.evaluation-guide[hidden] {
  display: none;
}
.evaluation-guide summary {
  color: var(--ink);
  font-weight: 600;
}
.evaluation-guide p {
  margin: 10px 0 0;
}
#evaluation-limits {
  color: var(--muted);
  font-size: 12px;
}
.insight {
  padding: 14px 16px;
  margin: 0 14px 15px;
  border: 1px solid #d3dfce;
  border-left: 3px solid #537749;
  border-radius: 5px;
  background: #f2f6ee;
  font-size: 12px;
  line-height: 1.65;
}
.insight-caveat {
  background: #fcf7e9;
  border-color: #e8dab6;
  border-left-color: #a87821;
}
.insight-issues {
  background: #fcf1eb;
  border-color: #e9cec0;
  border-left-color: #a55c36;
}
.insight-unavailable,
.insight-unchecked {
  background: #f5f5f2;
  border-color: var(--line);
  border-left-color: #7b857a;
}
.insight-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.insight-title {
  font: 650 13px/1.5 system-ui;
  margin: 0 0 7px;
}
.insight-summary {
  margin: 0;
}
.insight ul {
  padding-left: 17px;
  margin: 9px 0 0;
}
.insight li + li {
  margin-top: 6px;
}
.insight-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 10px;
  font-size: 11px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  letter-spacing: 0;
}
.brand-mark {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
}
.brand-type {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand-name {
  font:
    600 29px/0.9 Georgia,
    serif;
  letter-spacing: -1px;
}
.brand-context {
  font:
    11px/1.2 ui-monospace,
    monospace;
  letter-spacing: 0.3px;
  color: var(--muted);
}
.provenance {
  display: grid;
  gap: 3px;
}
.page-header .provenance p {
  display: block;
  font-size: 12px;
  line-height: 1.8;
}
.engine-model {
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 760px) {
  .page-header {
    flex-wrap: wrap;
  }
  .brand-mark {
    width: 39px;
    height: 39px;
  }
  .brand-name {
    font-size: 26px;
  }
  .brand-context {
    font-size: 10px;
  }
  .provenance {
    order: 2;
    flex-basis: 100%;
    gap: 5px;
  }
}
