@font-face {
  font-family: DM Sans;
  src: url('/fonts/dm-sans.ttf');
}
@font-face {
  font-family: Space Grotesk;
  src: url('/fonts/space-grotesk.ttf');
}
:root {
  --bg: #f5f5f2;
  --surface: #fff;
  --chrome-bg: #fcfcfa;
  --ink: #262a29;
  --muted: #6a6d6a;
  --line: #e2e4dd;
  --accent: #6350c9;
  --accent-soft: #eeebfc;
  --green: #387759;
  --green-soft: #edf5ec;
  --amber: #9c702b;
  --radius: 12px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:not(:disabled):active {
  transform: scale(0.96);
}
button {
  transition:
    background-color 120ms,
    color 120ms,
    transform 120ms;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #8c7be4;
  outline-offset: 4px;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.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;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 20;
  padding: 12px;
  background: var(--ink);
  color: white;
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 42px;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: var(--chrome-bg);
}
.brand {
  display: flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 650;
  font-size: 22px;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand-slash {
  color: #9ca196;
  margin: 0 2px;
}
.brand-mark {
  width: 27px;
  height: 27px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-right: 12px;
}
.brand-mark i {
  background: var(--accent);
  border-radius: 2px;
}
.brand-mark i:nth-child(2) {
  border-radius: 7px 2px 2px 2px;
  background: #9c8be0;
}
.brand-mark i:nth-child(3) {
  border-radius: 2px 2px 2px 7px;
  background: #b9afea;
}
.lab-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.6px;
  font-weight: 550;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-left: 13px;
  padding: 4px 6px;
  color: #6a6d6a;
}
.topbar nav {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  gap: 24px;
  margin-left: 32px;
  height: 100%;
}
.nav-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 13px;
  position: relative;
  padding: 0 4px;
  color: var(--muted);
}
.nav-item.active {
  color: var(--ink);
  font-weight: 600;
}
.nav-item.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
}
.local-badge {
  margin-left: auto;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #646a62;
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  background: #66947c;
  display: inline-block;
  border-radius: 50%;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.icon-button:hover {
  background: #eceee7;
}
.export {
  border: 1px solid var(--line);
}
main {
  max-width: 1800px;
  margin: auto;
  padding: 20px 42px 0;
}
h1 > span {
  color: var(--accent);
}
.small-label {
  font-size: 10px;
  color: #5d6c54;
  font-weight: 600;
}
.text-button {
  font-size: 12px;
  color: #585a56;
  padding: 10px;
}
.text-button:hover {
  color: var(--accent);
  background: #eeeee8;
  border-radius: 6px;
}
.text-button span {
  margin-left: 10px;
}
.matrix-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.matrix-title > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 17px;
}
.matrix-title h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 0;
  font-weight: 600;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.live-label {
  font-size: 11px;
  color: #687063;
  display: flex;
  gap: 7px;
  align-items: center;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}
.search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  height: 37px;
  padding: 0 10px;
  gap: 8px;
  width: 210px;
  color: #898d86;
}
.search svg {
  width: 14px;
  height: 14px;
}
.search input {
  min-width: 0;
  width: 100%;
  outline: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
}
.search input::placeholder {
  color: #8c8e89;
}
.status-select select {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  height: 37px;
  padding: 0 28px 0 12px;
  font-size: 12px;
  color: #62675e;
  max-width: 175px;
}
.toolbar-spacer {
  flex: 1;
}
.segmented {
  display: flex;
  background: #e9ebe4;
  padding: 3px;
  border-radius: 7px;
  gap: 1px;
}
.segmented button {
  height: 30px;
  font-size: 11px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #646761;
  border-radius: 5px;
}
.segmented button svg {
  width: 14px;
  height: 14px;
}
.segmented button.selected {
  background: #fff;
  color: #393e37;
  box-shadow: 0 1px 3px #18270f15;
}
.primary-button {
  height: 37px;
  padding: 0 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.primary-button:hover {
  background: #454a41;
}
.primary-button > span {
  font-size: 16px;
}
.matrix-scroll {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #ced2c5 transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f0f1eb;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
  min-width: 1140px;
}
th,
td {
  border-bottom: 1px solid #dde1d5;
  border-right: 1px solid #dde1d5;
}
th:last-child,
td:last-child {
  border-right: 0;
}
thead th {
  height: 62px;
  text-align: left;
  background: #f8f9f4;
  font-size: 12px;
  font-weight: 550;
  padding: 14px 12px;
  vertical-align: middle;
}
thead th:first-child {
  width: 154px;
  position: sticky;
  left: 0;
  z-index: 3;
  color: #6b7063;
  font-size: 10px;
  padding-left: 17px;
  letter-spacing: 0.5px;
}
thead th.baseline-column {
  background: #efeefa;
}
thead th .col-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
}
thead th small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #676b5e;
  margin-top: 6px;
}
thead th .col-number {
  font-family: 'Space Grotesk';
  color: #6c7065;
  font-size: 10px;
}
.baseline-tag {
  background: #e0daf8;
  color: #655597;
  font-size: 8px;
  border-radius: 3px;
  padding: 3px 4px;
  white-space: nowrap;
}
tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 154px;
  padding: 20px 15px 20px 17px;
  text-align: left;
  vertical-align: middle;
  background: #fafaf7;
  font-size: 12px;
  font-weight: 600;
}
tbody th small {
  display: block;
  font-size: 9px;
  color: #6c7068;
  font-weight: 400;
  margin-top: 5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.model-icon {
  width: 26px;
  height: 26px;
  border: 1px solid #e0e3d7;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk';
  font-size: 10px;
  margin-bottom: 12px;
  background: #f0f1e9;
  color: #656e57;
}
.model-icon.model-3 {
  background: #e6edf7;
  color: #4c6993;
  border-color: #dce4f0;
}
.model-icon.model-4 {
  background: #f1e7f0;
  color: #855781;
  border-color: #eadde8;
}
tbody td {
  padding: 10px;
  vertical-align: top;
  height: 218px;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
.run-card {
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 2px #2534150a;
  overflow: hidden;
  border: 1px solid #e3e5dc;
  min-height: 196px;
  position: relative;
}
.run-card.selected {
  outline: 2px solid #8772d2;
  outline-offset: 1px;
}
.thumb {
  display: block;
  height: 126px;
  background: #f6f5f0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #eeeee8;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  outline: 1px solid oklch(0 0 0/0.1);
  outline-offset: -1px;
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1);
}
.thumb:hover img {
  transform: scale(1.035);
}
.thumb .open-hint {
  position: absolute;
  right: 7px;
  bottom: 7px;
  border-radius: 5px;
  background: #fffdf9eb;
  box-shadow: 0 1px 4px #0001;
  padding: 4px 6px;
  opacity: 0;
  font-size: 9px;
  transition: opacity 120ms;
}
.thumb:hover .open-hint,
.thumb:focus .open-hint {
  opacity: 1;
}
.mobile-preview .thumb {
  background: #dddeda;
  display: flex;
  justify-content: center;
}
.mobile-preview .thumb img {
  width: 60px;
  object-fit: cover;
  object-position: top;
}
.run-card-meta {
  padding: 9px 9px 7px;
}
.card-topline {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  justify-content: space-between;
  min-height: 17px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  white-space: nowrap;
  color: #7b8472;
}
.status:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.passed {
  color: #507d60;
}
.status.partial {
  color: #8f6d37;
}
.status.running,
.status.generated {
  color: #8070b3;
}
.status.failed {
  color: #9c5143;
}
.timing {
  color: #71746b;
  font-variant-numeric: tabular-nums;
  font-size: 9px;
}
.card-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.card-details {
  font-size: 10px;
  padding: 3px 0;
  color: #676d60;
}
.card-details:hover {
  color: var(--accent);
}
.choose {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #71746c;
  padding: 3px 0;
  cursor: pointer;
}
.choose input {
  width: 11px;
  height: 11px;
  margin: 0;
  accent-color: var(--accent);
}
.pending-card {
  border: 1px dashed #d8ddd0;
  background: #f5f6f0;
  border-radius: 7px;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6a6f63;
  font-size: 10px;
  padding: 15px;
  text-align: center;
}
.pending-glyph {
  font-size: 23px;
  font-weight: 300;
  color: #bbc2b0;
}
.pending-card.is-running {
  background: #f1eff8;
  border-color: #d6cdeb;
  color: #706088;
}
.pending-card.is-running .pending-glyph {
  color: #9d88c5;
}
.pending-card.failed-card {
  background: #f8f0ec;
  color: #896255;
  border-color: #e5d3c6;
}
.pending-card > small {
  font-size: 9px;
  line-height: 1.5;
  color: #696d5f;
}
.running-line {
  width: 45px;
  height: 3px;
  background: #e2dced;
  border-radius: 2px;
  overflow: hidden;
}
.running-line:after {
  content: '';
  display: block;
  width: 18px;
  height: 3px;
  background: #9a80ca;
  animation: progress 1800ms ease-in-out infinite;
}
@keyframes progress {
  50% {
    transform: translateX(27px);
  }
}
.site-footer {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding: 23px 0 27px;
  margin-top: 27px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #6a6e63;
}
.site-footer > span:first-child {
  font-family: 'Space Grotesk';
  font-size: 12px;
  color: #696e61;
}
.footer-divider {
  padding: 0 9px;
  color: #bac0b2;
}
.site-footer a:hover {
  color: var(--accent);
}
.footer-credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.compare-tray {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #dfdce7;
  background: #fff;
  padding: 10px 12px 10px 20px;
  border-radius: 13px;
  box-shadow: 0 5px 25px #28213420;
  z-index: 5;
  font-size: 12px;
}
.compare-tray .text-button {
  padding: 8px;
}
#empty-state {
  text-align: center;
  padding: 35px;
  font-size: 13px;
  color: var(--muted);
}
.section-heading {
  margin-bottom: 25px;
  max-width: 700px;
}
.section-heading h2 {
  font-family: 'Space Grotesk';
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-heading p {
  color: #676d60;
  font-size: 14px;
  line-height: 1.7;
}
.skill-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.skill-card,
.method-grid article {
  padding: 25px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.skill-card .skill-index {
  font-family: 'Space Grotesk';
  color: #786e93;
  font-size: 23px;
}
.skill-card :is(h2, h3) {
  font-size: 18px;
  margin: 20px 0 8px;
}
.skill-card p {
  font-size: 13px;
  line-height: 1.65;
  color: #6f7465;
}
.skill-card a {
  font-size: 12px;
  color: var(--accent);
  display: inline-block;
  padding: 7px 0;
}
.skill-card code {
  font-size: 10px;
  display: block;
  color: #707469;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.method-number {
  font-family: 'Space Grotesk';
  font-size: 23px;
  color: #76708a;
}
.method-grid :is(h2, h3) {
  font-size: 17px;
  font-weight: 550;
}
.method-grid p,
.method-note p {
  font-size: 13px;
  line-height: 1.8;
  color: #636a5b;
}
.method-note {
  margin-top: 20px;
  background: #ebece4;
  padding: 26px;
  border-radius: 10px;
}
.method-note :is(h2, h3) {
  font-size: 15px;
  font-weight: 550;
}
.method-note code {
  font-size: 12px;
  color: #525c44;
}
dialog {
  width: min(1000px, calc(100vw - 40px));
  max-height: 90vh;
  padding: 0;
  border: 1px solid #d9dbd3;
  border-radius: 16px;
  box-shadow: 0 24px 90px #19162633;
  color: var(--ink);
  background: var(--bg);
}
dialog::backdrop {
  background: #26273066;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f9faf6;
}
.dialog-top > span {
  font-size: 11px;
  color: #848b7a;
}
.dialog-top .icon-button {
  font-size: 16px;
}
#dialog-content {
  padding: 26px;
}
.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.detail-heading h2 {
  font-family: 'Space Grotesk';
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0 0 7px;
}
.detail-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.detail-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.detail-tabs button {
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.detail-tabs button.active {
  color: var(--accent);
  border-color: var(--accent);
}
.detail-image {
  display: block;
  width: 100%;
  border: 1px solid #e0e0db;
  border-radius: 7px;
}
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  background: #ebece5;
  padding: 16px;
  margin: 18px 0;
  border-radius: 8px;
  font-size: 11px;
}
.stats-row strong {
  display: block;
  font-size: 18px;
  font-family: 'Space Grotesk';
  font-weight: 500;
  margin-top: 5px;
}
.detail-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 16px 0;
  font-size: 12px;
  color: var(--accent);
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checks li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 24px 180px 1fr;
  gap: 10px;
  font-size: 12px;
}
.checks li .pass {
  color: var(--green);
}
.checks li .fail {
  color: #b46b4c;
}
.checks li small {
  font-size: 11px;
  line-height: 1.6;
  color: #8d9480;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.8;
  background: #ebece5;
  border-radius: 8px;
  padding: 20px;
  max-height: 470px;
  overflow: auto;
}
code {
  font-family: ui-monospace, monospace;
}
.brief-doc {
  line-height: 1.8;
  font-size: 13px;
  color: #636c58;
  white-space: pre-wrap;
  background: transparent;
  padding: 0;
  max-height: none;
}
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.comparison h3 {
  font-size: 15px;
  font-weight: 550;
  margin: 0 0 6px;
}
.comparison p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px;
}
.comparison a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  max-height: 65vh;
  overflow-y: auto;
}
.comparison img {
  width: 100%;
  display: block;
}
.rating-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.rating-form h3 {
  font-size: 14px;
  font-weight: 550;
}
.rating-form p {
  font-size: 11px;
  color: var(--muted);
}
.rating-stars {
  display: flex;
  gap: 7px;
  margin: 12px 0;
}
.rating-stars button {
  border: 1px solid #dfe2d5;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 12px;
}
.rating-stars button.selected {
  background: var(--accent-soft);
  border-color: #a899d9;
  color: var(--accent);
}
.rating-form textarea {
  width: 100%;
  min-height: 68px;
  border: 1px solid #dfe2d5;
  border-radius: 7px;
  padding: 12px;
  font: inherit;
  font-size: 12px;
  resize: vertical;
  background: #fff;
}
.rating-form .primary-button {
  margin-top: 10px;
}
.history-list {
  list-style: none;
  padding: 0;
}
.history-list li {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.history-list button {
  margin-left: auto;
  color: var(--accent);
  font-size: 12px;
}
.notice {
  border: 1px solid #dfd5bf;
  background: #faf5e9;
  border-radius: 8px;
  padding: 15px;
  font-size: 12px;
  color: #968056;
  line-height: 1.7;
}
.command-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.command-row pre {
  flex: 1;
  font-size: 12px;
}
.command-row button {
  flex-shrink: 0;
}
.run-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.run-options label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.run-options select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 26px;
  right: 25px;
  padding: 13px 18px;
  background: var(--ink);
  color: white;
  border-radius: 9px;
  font-size: 12px;
  z-index: 30;
}
@media (min-width: 1550px) {
  .thumb {
    height: 155px;
  }
  .run-card,
  .pending-card {
    min-height: 225px;
  }
  tbody td {
    height: 247px;
  }
}
@media (max-width: 1100px) {
  .topbar {
    padding: 0 25px;
    gap: 20px;
  }
  .topbar nav {
    margin-left: 10px;
    gap: 15px;
  }
  .lab-label {
    display: none;
  }
  main {
    padding: 20px 25px 0;
  }
  .matrix-title .muted {
    font-size: 11px;
  }
  .skill-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 0 18px;
    height: 67px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 19px;
  }
  .brand-mark {
    width: 22px;
    height: 22px;
    margin-right: 7px;
  }
  .topbar nav {
    margin-left: auto;
    gap: 10px;
  }
  .nav-item {
    font-size: 11px;
  }
  .local-badge,
  .export {
    display: none;
  }
  main {
    padding: 18px 18px 0;
  }
  .matrix-title > div:first-child {
    display: block;
  }
  .matrix-title .muted {
    display: block;
    margin-top: 7px;
    font-size: 10px;
  }
  .matrix-title h2 {
    font-size: 17px;
  }
  .live-label {
    font-size: 9px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .search {
    flex: 1;
    min-width: 130px;
    width: auto;
  }
  .status-select select {
    max-width: 145px;
    font-size: 11px;
  }
  .toolbar-spacer {
    display: none;
  }
  .segmented {
    margin-right: auto;
  }
  .primary-button {
    font-size: 11px;
    padding: 0 11px;
  }
  table {
    min-width: 1170px;
  }
  thead th:first-child,
  tbody th {
    width: 131px;
    padding-left: 12px;
  }
  .site-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    font-size: 9px;
    margin-top: 20px;
  }
  .site-footer > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
  .site-footer > a {
    margin-left: auto;
  }
  .compare-tray {
    width: calc(100vw - 24px);
    gap: 9px;
    padding: 9px 12px;
    font-size: 10px;
    justify-content: space-between;
  }
  .compare-tray .primary-button {
    font-size: 10px;
  }
  .skill-cards,
  .method-grid {
    grid-template-columns: 1fr;
  }
  .section-heading h2 {
    font-size: 26px;
  }
  .section-heading p {
    font-size: 13px;
  }
  .checks li {
    grid-template-columns: 18px 1fr;
    gap: 6px;
  }
  .checks li small {
    grid-column: 2;
  }
  .detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-heading h2 {
    font-size: 20px;
  }
  .stats-row {
    gap: 17px;
  }
  .stats-row strong {
    font-size: 16px;
  }
  #dialog-content {
    padding: 18px;
  }
  .comparison {
    gap: 9px;
  }
  .comparison h3 {
    font-size: 12px;
  }
  .comparison p {
    font-size: 10px;
  }
  .command-row {
    align-items: stretch;
    flex-direction: column;
  }
  .command-row pre {
    margin-bottom: 0;
  }
  .comparison a {
    max-height: 65vh;
  }
  dialog {
    width: calc(100vw - 20px);
  }
  .detail-tabs {
    gap: 16px;
  }
  .detail-tabs button {
    font-size: 11px;
  }
  .history-list li {
    flex-wrap: wrap;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.repair-label {
  color: #65518c;
  font-size: 10px;
  line-height: 1.4;
  margin-bottom: 5px;
}

#dialog-kicker {
  color: #626b56;
}
.review-grid label,
.run-options label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.review-grid select,
.review-grid input,
.run-options input {
  min-height: 42px;
  border: 1px solid #d8dcd1;
  border-radius: 7px;
  padding: 9px 11px;
  background: #fff;
  color: #293222;
  font: inherit;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 15px 0 22px;
}
.review-grid input {
  width: 100%;
  min-width: 0;
  font-weight: 400;
}
.rating-form h4 {
  margin-top: 24px;
}
.rating-form .muted {
  font-size: 12px;
}
.compare-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}
.compare-controls label,
.resume-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.preference-form {
  border-top: 1px solid #d8dcd1;
  margin-top: 24px;
  padding-top: 18px;
}
.preference-form label {
  display: block;
  font-size: 13px;
}
.preference-form textarea {
  width: 100%;
  border: 1px solid #d8dcd1;
  border-radius: 7px;
  padding: 12px;
  margin: 8px 0 12px;
  font: inherit;
  resize: vertical;
}
.preference-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.results-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 13px;
}
.results-summary span {
  color: #68715e;
}
.results-scroll {
  overflow-x: auto;
  border: 1px solid #d8dcd1;
  border-radius: 12px;
}
.results-table {
  min-width: 950px;
  width: 100%;
  table-layout: auto;
}
.results-table th,
.results-table td {
  padding: 16px;
  font-size: 12px;
  vertical-align: top;
  line-height: 1.7;
}
.results-table tbody th {
  width: 180px;
}
.results-table td {
  min-width: 90px;
}
.results-table td:nth-child(4),
.results-table td:nth-child(5) {
  min-width: 170px;
  max-width: 280px;
  overflow-wrap: anywhere;
}
.results-table .text-button {
  white-space: nowrap;
}
.preferences-heading {
  margin-top: 30px;
}
.preference-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.preference-list li {
  border: 1px solid #d8dcd1;
  border-radius: 9px;
  padding: 15px;
}
.preference-list strong,
.preference-list span,
.preference-list small {
  display: block;
  margin-bottom: 5px;
}
.preference-list span,
.preference-list small {
  font-size: 12px;
  color: #68715e;
}
.resume-option {
  margin-top: 14px;
}
.run-options input {
  max-width: 100%;
}
@media (max-width: 700px) {
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compare-controls,
  .results-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .compare-controls p {
    margin: 0;
  }
}

.matrix-table thead th:first-child,
.matrix-table tbody th {
  width: 154px;
}
#matrix .thumb {
  height: 132px;
}
#matrix tbody td {
  height: auto;
}
#matrix .run-card {
  min-height: 0;
}
#matrix .pending-card {
  min-height: 190px;
}
.detail-image.mobile-detail {
  width: min(100%, 390px);
  margin-inline: auto;
}
.comparison {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.comparison section {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.compare-pane {
  height: clamp(260px, 60vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  touch-action: pan-y;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: auto;
  scrollbar-gutter: stable;
}
.compare-pane:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.comparison .compare-pane a {
  overflow: visible;
  max-height: none;
  border: 0;
  border-radius: 0;
}
.comparison-mobile .compare-pane {
  width: 100%;
  max-width: 390px;
  margin-inline: auto;
}
.compare-controls {
  flex-wrap: wrap;
}
.compare-controls p {
  flex: 1 1 280px;
}
.matrix-table thead .sample-header th {
  position: static;
  width: 210px;
  height: 38px;
  padding: 9px 12px;
  color: #535b4c;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0;
  background: #f8f9f4;
}
.matrix-table thead .sample-header th.baseline-column {
  background: #efeefa;
}

.sample-condition-note {
  max-width: 820px;
  margin: 0 0 20px;
  color: #59614f;
  font-size: 13px;
  line-height: 1.6;
}
.results-table td small {
  display: block;
  margin-top: 5px;
  color: #59614f;
}
.sample-parents {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 8px;
}

/* Compact experiment controls: brief identity, comparison scope, and view tools. */
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1px;
}
.summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 18px;
}
.summary > div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.summary strong {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.summary strong span {
  color: var(--muted);
  font-weight: 400;
}
.summary > div > span {
  color: var(--muted);
  font-size: 11px;
}
.scope-controls {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfcfa;
  margin-bottom: 14px;
  box-shadow: 0 2px 3px #00000003;
}
.scope-main {
  display: grid;
  grid-template-columns: 250px 290px 210px minmax(0, 1fr);
  align-items: start;
  gap: 12px 10px;
  padding: 16px 14px;
}
.brief-selector {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.brief-art {
  display: grid;
  place-items: center;
  position: absolute;
  pointer-events: none;
  left: 5px;
  top: 5px;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: radial-gradient(#bcc4af 0.8px, transparent 0.8px) #e7ebdf;
  background-size: 5px 5px;
  box-shadow: inset 0 0 0 1px #00000008;
  overflow: hidden;
}
.brief-art span {
  font:
    400 20px/1 'Space Grotesk',
    sans-serif;
  color: var(--accent);
}
.brief-select-control {
  position: relative;
}
.brief-choice {
  min-width: 0;
  flex: 1;
}
.brief-choice > label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}
#task-select {
  width: 100%;
  min-height: 42px;
  padding: 4px 26px 4px 44px;
  text-overflow: ellipsis;
  border: 1px solid #d8dcd1;
  border-radius: 6px;
  background-color: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
#view-brief {
  font-size: 11px;
  color: var(--accent);
  min-height: 28px;
  padding: 4px;
}
#view-brief span {
  margin-left: 2px;
}
.scope-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.scope-fieldset legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
}
.scope-fieldset legend span {
  margin-left: 7px;
  color: var(--muted);
  font-weight: 400;
}
.scope-fieldset > p {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.check-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.check-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 120ms,
    border-color 120ms;
}
.check-options label:hover {
  border-color: #a99bd7;
}
.check-options label:has(input:checked) {
  background: #f0edfa;
  border-color: #c8bee8;
  color: #493b81;
}
.check-options label:has(input:focus-visible) {
  outline: 3px solid #8c7be4;
  outline-offset: 3px;
}
.check-options input {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  margin: 0;
}
.check-options input:focus-visible {
  outline: 0;
}
.choice-note {
  color: #6f638d;
  font-size: 10px;
  border-left: 1px solid #cec5e5;
  padding-left: 7px;
}
.scope-main > .scope-fieldset legend {
  margin-bottom: 8px;
}
.scope-main > .scope-fieldset {
  position: relative;
  align-self: stretch;
}
.scope-main > .scope-fieldset::before {
  content: '';
  position: absolute;
  top: -18px;
  bottom: 0;
  left: -5px;
  width: 1px;
  background: var(--line);
}
#skill-options {
  display: grid;
  grid-template-columns: repeat(4, 9.25rem);
  justify-content: start;
  grid-template-rows: repeat(2, auto);
  overflow-x: auto;
  padding: 3px;
  margin: -3px;
}
#skill-options label {
  font-size: 11px;
  padding-inline: 8px;
  white-space: nowrap;
}
#skill-options input {
  flex-shrink: 0;
}
#skill-options .choice-note {
  display: none;
}
#sample-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#sample-options input {
  flex-shrink: 0;
}
#sample-options label {
  white-space: nowrap;
  font-size: 11px;
  padding-inline: 8px;
}
#sample-selector legend span {
  display: none;
}
#sample-selection-help {
  margin: 7px 0 0;
  font-size: 10px;
}
.scope-controls .toolbar {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 8px 18px;
}
#pinned-matrix-header {
  position: fixed;
  overflow: hidden;
  z-index: 10;
  background: #f8f9f4;
  box-shadow: 0 3px 6px #00000012;
  pointer-events: none;
}
@media (min-width: 761px) and (max-width: 1420px) {
  .scope-main {
    grid-template-columns: minmax(250px, 1fr) 290px minmax(200px, 1fr);
  }
  #skill-selector {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  #skill-selector::before {
    display: none;
  }
  #skill-selector legend {
    float: left;
    width: 100%;
  }
  #skill-options {
    clear: both;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 64px;
    padding: 12px 18px 0;
    gap: 8px;
  }
  .topbar nav {
    flex-basis: 100%;
    height: 37px;
    justify-content: space-between;
    margin: 0;
  }
  .page-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }
  h1 {
    font-size: 25px;
  }
  .summary {
    gap: 14px;
  }
  .scope-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }
  .brief-selector {
    grid-row: auto;
    gap: 10px;
  }
  #task-select {
    font-size: 12px;
  }
  #skill-options {
    max-width: none;
    scrollbar-width: thin;
    padding-bottom: 7px;
  }
  .check-options {
    gap: 6px;
  }
  .check-options label {
    min-height: 38px;
    font-size: 11px;
    padding: 7px 9px;
  }
  .scope-main > .scope-fieldset {
    grid-column: auto;
    grid-row: auto;
  }
  #skill-selector::before {
    top: -26px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }
  #sample-selector::before {
    display: none;
  }
  .scope-main > .scope-fieldset legend {
    width: 100%;
    line-height: normal;
    margin-bottom: 8px;
  }
  .scope-main > .scope-fieldset .check-options {
    clear: both;
    margin-left: 0;
  }
  #sample-selection-help {
    margin-left: 0;
  }
  .scope-controls .toolbar {
    padding: 12px 14px;
  }
  .scope-controls .search {
    flex-basis: 120px;
    min-width: 100px;
  }
  .scope-controls .status-select select {
    max-width: 128px;
  }
  .matrix-title > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .matrix-title .muted {
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .check-options label {
    transition: none;
  }
}

#toggle-comparison-filters {
  display: none;
}
@media (max-width: 760px) {
  #toggle-comparison-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
    min-height: 40px;
    padding: 8px 0 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
  }
  #filter-selection-count {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    margin-top: 3px;
  }
  .filter-chevron {
    font-size: 18px;
    color: var(--muted);
  }
  #toggle-comparison-filters[aria-expanded='true'] .filter-chevron {
    transform: rotate(180deg);
  }
  .scope-controls.filters-collapsed #sample-selector,
  .scope-controls.filters-collapsed #skill-selector {
    display: none;
  }
}
@media (max-width: 360px) {
  .scope-controls .search {
    flex-basis: 100px;
  }
  .segmented button {
    font-size: 0;
    gap: 0;
    width: 36px;
    justify-content: center;
    padding: 0;
  }
}

/* Keep the expanded main navigation on one readable line on small screens. */
@media (max-width: 760px) {
  .topbar nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 18px;
  }
  .topbar .nav-item {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.mix-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  min-height: 36px;
}
.mix-mode-control input {
  accent-color: var(--accent);
}
.mix-mode-control[hidden] {
  display: none;
}

/* Experimental, display-only folding of individual model rows. */
.row-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 32px;
  padding: 3px 0;
  text-align: left;
  font: inherit;
  color: inherit;
  border-radius: 4px;
}
.row-toggle:hover {
  color: var(--accent);
}
.row-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.collapse-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.row-toggle[aria-expanded='true'] .collapse-chevron {
  transform: rotate(90deg);
}
.matrix-table .provider-start > th,
.matrix-table .provider-start > td {
  box-shadow: inset 0 1px #b8c0ae;
}
.collapsed-model-summary > span {
  display: block;
  position: sticky;
  left: 166px;
  width: max-content;
  max-width: calc(100vw - 220px);
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.matrix-table .model-row > th {
  padding-inline: 12px;
}
.model-row > th > small {
  padding-left: 20px;
}
.matrix-table .is-collapsed > th,
.matrix-table .is-collapsed > td {
  padding-block: 4px;
  background: #fafaf7;
  vertical-align: middle;
}
#expand-models {
  min-height: 32px;
  padding: 4px 6px;
  white-space: nowrap;
}
#expand-models:disabled {
  color: var(--muted);
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 760px) {
  .matrix-title {
    flex-wrap: wrap;
    gap: 4px;
  }
  .matrix-title > div:first-child {
    flex-wrap: wrap;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .topbar .local-badge {
    display: none;
  }
  .topbar .export {
    margin-left: auto;
    flex-shrink: 0;
  }
}

#provider-options {
  display: grid;
  grid-template-columns: repeat(3, 92px);
}
#provider-options label {
  font-size: 11px;
  padding-inline: 6px;
  white-space: nowrap;
}
#provider-options input {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .scope-main > .provider-selector::before {
    display: none;
  }
}
@media (min-width: 761px) and (max-width: 900px) {
  .scope-main {
    grid-template-columns: minmax(250px, 1fr) 290px;
  }
  #sample-selector {
    grid-column: 1 / -1;
    width: 224px;
  }
  #sample-selector::before {
    display: none;
  }
}
