* {
  box-sizing: border-box;
}
html {
  overflow-anchor: none;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: linear-gradient(125deg, #e1eaf5, #d4e3f3 55%, #e9eef4);
  color: #202d42;
  font:
    400 15px/1.55 Onest,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.page-sections a:not(.btn):hover,
.page-sections a:not(.btn):focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
a:hover {
  color: #a7472c;
}
:focus-visible {
  outline: 2px solid #a7472c;
  outline-offset: 4px;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2 {
  font-family: Unbounded, Onest, sans-serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}
h1,
#result-title {
  font-size: 40px;
  line-height: 1.25;
}
h2 {
  font-size: 32px;
  line-height: 1.3;
}
h3 {
  font-size: 18px;
  font-weight: 500;
}
h4 {
  font-size: 14px;
  font-weight: 500;
  color: #53677f;
  margin-bottom: 14px;
}
p {
  margin-top: 16px;
}
summary {
  cursor: pointer;
}
details p {
  margin-top: 12px;
}
details pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 260px;
  overflow: auto;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
.site-shell {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}
.page-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.section {
  padding: 36px;
  border: 1px solid #fff;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff70, #f4f8fc40);
  box-shadow: 0 8px 24px #748ea815;
  min-width: 0;
}
.cgpt-header {
  width: 100%;
  margin: 26px auto;
}
.cgpt-back-home {
  margin-bottom: 22px;
}
.benchmark-back-bottom {
  margin-top: 28px;
  margin-bottom: 0;
}
.cgpt-footer {
  width: 100%;
  margin-top: 14px;
}
.btn,
.show-all,
.copy-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid white;
  min-height: 44px;
  padding: 10px 24px;
  font:
    500 14px/24px Onest,
    sans-serif;
  box-shadow:
    inset 0 1px 2px #ffffff80,
    0 4px 12px #748ea81c;
  text-decoration: none;
  background: #ffffff60;
  color: #202d42;
}
.btn-dark {
  background: linear-gradient(160deg, #425469, #304052 50%, #1f2b3b);
  color: white;
}
.btn-dark:hover {
  color: white;
  background: #304052;
}
.intro-actions,
.inline-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 25px;
  font-size: 14px;
}
.inline-links a,
.intro-actions > a:not(.btn) {
  color: #943c25;
  text-underline-offset: 4px;
}
.intro-actions {
  column-gap: 32px;
  row-gap: 12px;
}
.intro-actions > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  font-size: 16px;
  line-height: 24px;
}
.fresh-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 30px;
  padding: 42px;
  min-height: 360px;
}
.lead {
  font-size: 17px;
  line-height: 1.65;
  margin: 22px 0;
}
.hero-puzzle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.hero-grid {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid white;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffffa0, #edf3fa60);
  box-shadow: 0 7px 20px #748ea812;
  min-width: 0;
}
.hero-puzzle > span,
.sample-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: 100%;
  line-height: 1;
  color: #738399;
  font-size: 18px;
}
.hero-grid .arc-grid {
  width: 100%;
  max-width: 200px;
  max-height: 200px;
}
.arc-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  aspect-ratio: var(--cols) / var(--rows);
  width: min(
    100%,
    calc(var(--cols) * 14px),
    calc(200px * var(--cols) / var(--rows))
  );
  max-height: 200px;
  min-height: 0;
  flex: none;
  background: #000;
}
.arc-grid .cell {
  display: block;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  border-top: 1px solid #555;
  border-left: 1px solid #555;
}
.arc-empty {
  font-size: 13px;
  color: #65758a;
  padding: 20px;
}
.comparison-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.comparison-pair > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 24px;
  border-left: 1px solid #b6c5d8;
}
.comparison-pair span,
.comparison-pair small {
  font-size: 14px;
  color: #62758d;
}
.comparison-pair strong {
  font:
    400 48px/1.2 Onest,
    sans-serif;
}
.comparison-pair > div:first-child strong {
  color: #a7472c;
}
.result-distribution {
  margin: 26px 0;
}
.stack-bar {
  display: flex;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  background: #d8e1ed;
}
.stack-bar i:nth-child(1) {
  width: 62.5%;
  background: #a7472c;
}
.stack-bar i:nth-child(2) {
  width: 10.833333%;
  background: #caa487;
}
.stack-bar i:nth-child(3) {
  width: 26.666667%;
  background: #8294ae;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
  font-size: 11px;
  color: #53677f;
}
.legend b {
  font-weight: 400;
}
.legend b:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  background: #a7472c;
}
.legend b:nth-child(2):before {
  background: #caa487;
}
.legend b:nth-child(3):before {
  background: #8294ae;
}
.result-method {
  margin-top: 22px;
  color: #556981;
  font-size: 14px;
}
.partial-scores {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: grid;
  gap: 6px;
}
.evidence-head p {
  font-size: 15px;
  margin-top: 8px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.filters button {
  border: 1px solid #c6d3e4;
  border-radius: 999px;
  font-size: 12px;
  padding: 8px 14px;
  background: #ffffff50;
  color: #53677f;
}
.filters button[aria-pressed="true"] {
  background: #273548;
  color: white;
  border-color: #273548;
}
.evidence-body {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}
.task-detail {
  padding: 24px;
  border: 1px solid white;
  background: #ffffff35;
  border-radius: 22px;
  overflow-anchor: none;
  min-width: 0;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #bccbd844;
}
.detail-top h3 {
  font:
    500 17px/1.4 Onest,
    sans-serif;
}
.task-verdict {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 400;
  color: #66788d;
  white-space: nowrap;
}
.task-verdict::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #8294ae;
}
.task-verdict.solved::before {
  background: #648877;
}
.task-verdict.partial::before {
  background: #b5916a;
}
.grid-figure[data-comparison="match"] {
  border-color: #b9cfc5;
}
.grid-figure[data-comparison="different"],
.grid-figure[data-comparison="invalid"] {
  border-color: #d5b9a8;
}
.grid-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.task-layout {
  display: grid;
  gap: 28px;
}
.training-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sample-card {
  padding: 16px;
  min-width: 0;
  border-bottom: 1px solid #cbd7e766;
}
.sample-card header {
  font:
    400 12px/1.4 Onest,
    sans-serif;
  color: #697c94;
  margin-bottom: 14px;
}
.sample-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.sample-grid {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: #e8eef655;
  border-radius: 8px;
  padding: 8px;
}
.sample-grid:first-child {
  justify-content: flex-end;
}
.sample-grid:last-child {
  justify-content: flex-start;
}
.sample-grid .arc-grid {
  width: min(
    100%,
    calc(var(--cols) * 14px),
    calc(170px * var(--cols) / var(--rows))
  );
  max-height: 170px;
}
.grid-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.grid-figure {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  border: 1px solid white;
  border-radius: 18px;
  background: #e9f0f880;
  padding: 16px;
}
.grid-figure figcaption {
  font:
    400 12px/1.4 Onest,
    sans-serif;
  color: #697c94;
  margin-bottom: 14px;
}
.grid-mat {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: #e8eef655;
  border-radius: 8px;
  padding: 8px;
}
.task-meta {
  margin-top: 20px;
  font-size: 13px;
}
.task-meta a {
  display: inline-block;
  margin: 12px 18px 0 0;
  color: #943c25;
}
.task-picker {
  border-top: 1px solid #c3d0df88;
  padding-top: 24px;
  min-width: 0;
}
.task-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 2px;
}
.task-list button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
  height: 57px;
  padding: 9px 12px;
  border: 1px solid #ffffffc0;
  background: #ffffff40;
  border-radius: 12px;
  overflow: hidden;
  line-height: 1.25;
  color: #202d42;
}
.task-code {
  font:
    400 13px Onest,
    sans-serif;
  white-space: nowrap;
}
.task-status {
  font-size: 10px;
  white-space: nowrap;
  color: #748196;
}
.task-list button[aria-pressed="true"] {
  border-color: #8ca3c2;
  background: #e2ebf7;
  box-shadow: inset 0 0 0 1px #8ca3c220;
}
.show-all {
  margin-top: 12px;
}
.repeat-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}
.step {
  border-top: 1px solid #adbed2;
  padding-top: 12px;
  min-width: 0;
}
.step > b {
  color: #a7472c;
  font-size: 11px;
}
.step h3 {
  font:
    500 18px/1.4 Onest,
    sans-serif;
  margin-top: 8px;
}
.step p {
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0;
}
.step a {
  font-size: 13px;
  color: #943c25;
}
.step details {
  font-size: 13px;
}
.command {
  background: rgb(248 251 255 / 72%);
  color: #485970;
  border: 1px solid rgb(116 142 168 / 20%);
  padding: 20px;
  border-radius: 16px;
  margin-top: 16px;
  min-width: 0;
}
.command code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 400 13px/24px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.copy-command {
  margin-top: 16px;
  max-width: 100%;
}
.copy-command:hover {
  background: rgb(255 255 255 / 85%);
}
.skip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-120%);
  background: white;
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  transform: none;
}
.load-error {
  padding: 24px;
}
.load-error button {
  margin-top: 12px;
}
@media (max-width: 760px) {
  .site-shell {
    width: calc(100% - 28px);
  }
  .section {
    padding: 22px;
    border-radius: 22px;
  }
  .fresh-intro {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
    gap: 24px;
    min-height: 0;
  }
  h1,
  #result-title {
    font-size: 27px;
  }
  h2 {
    font-size: 24px;
  }
  .hero-grid {
    padding: 10px;
  }
  .hero-puzzle {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
  }
  .lead {
    font-size: 16px;
  }
  .training-list,
  .repeat-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-figure {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }
  .grid-mat {
    height: 180px;
  }
  .sample-grid {
    min-height: 120px;
  }
  .task-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-detail {
    padding: 12px;
  }
  .comparison-pair {
    gap: 10px;
  }
  .comparison-pair > div {
    padding: 14px;
  }
  .comparison-pair strong {
    font-size: 32px;
  }
  .intro-actions {
    column-gap: 20px;
    row-gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.test-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 0 0 18px;
}
.test-control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.test-control-group > span {
  font-size: 12px;
  color: #65788f;
  margin-right: 6px;
}
.test-control-group button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #c4d1e2;
  border-radius: 999px;
  background: #ffffff60;
  color: #53677f;
  font:
    400 13px/20px Onest,
    sans-serif;
}
.test-control-group button[aria-pressed="true"] {
  background: #304052;
  color: white;
  border-color: #304052;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.test-controls {
  gap: 12px 18px;
  margin: 0 0 14px;
  padding: 8px 0;
  border-top: 1px solid #c3d0df55;
  border-bottom: 1px solid #c3d0df55;
}
.test-control-group {
  gap: 4px;
}
.test-control-group > span {
  font-size: 11px;
  color: #8493a6;
  margin-right: 3px;
}
.test-control-group button {
  min-width: 28px;
  min-height: 27px;
  padding: 3px 9px;
  border: 1px solid #d5deea;
  background: transparent;
  color: #72839a;
  font-size: 11px;
  line-height: 17px;
  box-shadow: none;
}
.test-control-group button[aria-pressed="true"] {
  background: #e8eef6;
  color: #304052;
  border-color: #aebfd4;
  box-shadow: none;
}
.test-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.test-heading h4 {
  margin: 0;
}
.test-heading .test-controls {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 10px;
}
.test-heading .test-control-group {
  gap: 3px;
}
.test-heading .test-control-group button {
  min-height: 25px;
  padding: 2px 8px;
  font-size: 10px;
}
.test-heading .test-control-group button[aria-pressed="true"] {
  background: #e8eef6;
  color: #304052;
  border-color: #aebfd4;
}
@media (max-width: 760px) {
  .test-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .test-heading .test-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

.task-source-links{display:flex;flex-wrap:wrap;gap:12px 22px;margin-top:20px;font-size:13px}.task-source-links a{color:#943c25;text-decoration:none}.task-source-links a:hover{text-decoration:underline;text-underline-offset:3px}
