:root {
  --bg: #dfe2e7;
  --surface: #edf0f3;
  --surface-strong: #ffffff;
  --surface-muted: #f5f6f8;
  --line: #c4cad1;
  --line-strong: #919aa4;
  --text: #121418;
  --muted: #434b55;
  --support: #42607d;
  --support-strong: #2e4761;
  --support-soft: #dce6f0;
  --highlight: #c97432;
  --highlight-soft: #f3dfcf;
  --accent: #1c2026;
  --accent-soft: #d9dee4;
  --chart-mid: #587492;
  --chart-soft: #9db1c6;
  --ui-font: "Aptos", "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  --display-font: "Aptos", "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  --mono-font: "Consolas", "SFMono-Regular", "Cascadia Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--ui-font);
  font-weight: 500;
  background: var(--bg);
  overflow-x: hidden;
}

button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
}

code,
pre {
  font-family: var(--mono-font);
}

code {
  font-size: 0.92em;
}

img {
  display: block;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.page-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
  overflow-x: hidden;
}

.site-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 10px 0 6px;
  text-align: center;
}

.site-hero h1 {
  max-width: 1040px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.65rem, 2.7vw, 2.7rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.hero-summary {
  max-width: 860px;
  margin: 0;
  color: var(--support-strong);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  color: var(--support-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
}

.hero-meta span + span::before {
  content: "/";
  margin-right: 16px;
  color: var(--line-strong);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.hero-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: min(100%, 166px);
  padding: 9px 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

.hero-link-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(28, 32, 38, 0.08);
}

.hero-link-button:focus-visible {
  outline-offset: 3px;
}

.hero-link-github {
  color: #ffffff;
  background: #111318;
}

.hero-link-github:hover {
  border-color: rgba(17, 19, 24, 0.2);
  background: #050608;
}

.hero-link-hf {
  color: #9a6500;
  background: rgba(255, 247, 235, 0.9);
}

.hero-link-hf:hover {
  border-color: rgba(201, 116, 50, 0.18);
  background: rgba(255, 247, 235, 0.96);
}

.hero-link-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-link-github .hero-link-icon {
  color: #ffffff;
}

.hero-link-hf .hero-link-icon {
  color: #d18d00;
}

.hero-link-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-link-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tab-button,
.button,
.match-button {
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 12px;
  color: var(--support-strong);
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.tab-button:hover {
  color: var(--highlight);
}

.tab-button.is-active {
  color: var(--support-strong);
  border-bottom-color: var(--highlight);
}

.tab-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
}

.tab-icon svg {
  width: 18px;
  height: 18px;
}

.tab-panels {
  margin-top: 28px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: grid;
  gap: 26px;
}

#panel-dataset > .content-section,
#panel-dataset > .dataset-stage {
  width: min(100%, 940px);
  margin: 0 auto;
  min-width: 0;
}

#panel-dataset {
  justify-items: center;
  overflow-x: clip;
}

#panel-benchmark > .content-section,
#panel-benchmark > .task-columns,
#panel-benchmark > .benchmark-visuals {
  width: min(100%, 940px);
  margin: 0 auto;
  min-width: 0;
}

#panel-benchmark {
  justify-items: center;
}

#panel-artifacts > .artifact-browser {
  width: min(100%, 940px);
  margin: 0 auto;
  min-width: 0;
}

#panel-artifacts {
  justify-items: center;
}

.content-section,
.segment-rail,
.viewer-panel,
.panel {
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  padding: 20px;
}

.content-section h2,
.content-section h3,
.rail-head h3,
.panel-head h3,
.overview-summary h2 {
  margin: 0 0 12px;
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--support-strong);
}

.content-section h2,
.overview-summary h2 {
  font-size: 1.46rem;
}

.content-section h3,
.rail-head h3,
.panel-head h3 {
  font-size: 1.08rem;
}

.content-section p {
  margin: 0;
  color: var(--text);
  line-height: 1.72;
}

.content-section p + p {
  margin-top: 12px;
}

.section-note,
.dataset-note,
.segment-summary,
.muted {
  color: var(--muted);
}

.section-note {
  font-size: 0.9rem;
  line-height: 1.62;
}

.compact-section {
  padding-top: 18px;
}

.overview-flow {
  display: grid;
  gap: 22px;
  width: min(100%, 940px);
  margin: 0 auto;
}

.overview-abstract,
.overview-section {
  display: grid;
  gap: 12px;
  width: 100%;
}

.overview-evidence {
  gap: 16px;
}

.overview-heading {
  margin: 0;
  color: var(--support-strong);
  font-family: var(--display-font);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.overview-copy-column {
  display: grid;
  gap: 8px;
  width: 100%;
}

.overview-copy-column p {
  margin: 0;
  line-height: 1.64;
  color: var(--text);
}

.overview-main-figure,
.overview-evidence-grid {
  width: 100%;
}

.overview-main-figure .figure-media.figure-media-wide {
  position: relative;
  max-width: none;
  min-height: clamp(250px, 31vw, 418px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.overview-main-figure .figure-media.figure-media-wide::after {
  display: none;
}

.overview-main-figure .figure-media.figure-media-wide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
}

.figure-grid {
  display: grid;
  gap: 28px;
  width: min(100%, 940px);
  margin: 0 auto;
}

.figure-block {
  display: grid;
  gap: 12px;
  margin: 0;
}

.figure-media,
.mini-table-wrap,
.code-block,
.chart-shell {
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
}

.figure-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 18px;
  overflow: hidden;
}

.figure-media.figure-media-wide {
  min-height: clamp(280px, 31vw, 440px);
  max-width: 900px;
  margin: 0 auto;
}

.figure-media.figure-media-frame {
  min-height: 0;
  padding: 0;
  background: var(--surface-muted);
}

.figure-media.figure-media-compact {
  height: clamp(188px, 24vw, 246px);
}

.figure-media img {
  height: 100%;
  object-fit: contain;
}

.figure-block figcaption {
  max-width: 72ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
}

.figure-block.overview-main-figure figcaption {
  width: calc(100% - 28px);
  max-width: 872px;
}

.alignment-paper-figure figcaption {
  width: calc(100% - 28px);
  max-width: 872px;
}

.benchmark-task1-block figcaption {
  width: calc(100% - 12px);
  max-width: 108ch;
}

.task2-chart-strip {
  margin-top: 4px;
  display: grid;
  gap: 10px;
}

.overview-evidence-grid {
  display: grid;
  gap: 28px;
}

.overview-evidence-figure,
.overview-chart-figure {
  align-content: start;
}

.overview-chart-figure {
  width: min(100%, 620px);
  margin: 0 auto;
}

.overview-diagnostics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.alignment-paper-figure,
.overview-alignment-section,
.overview-label-section,
.overview-diagnostics-section {
  width: min(100%, 940px);
  margin: 0 auto;
}

.overview-diagnostic-figure {
  width: 100%;
}

.figure-media.figure-media-frame.overview-diagnostic-media {
  height: clamp(248px, 24vw, 318px);
  min-height: 0;
  padding: 10px;
  background: #ffffff;
}

.overview-diagnostic-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.alignment-paper-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 40px minmax(0, 0.88fr);
  gap: 10px;
  align-items: stretch;
}

.alignment-paper-sources,
.alignment-paper-result {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.alignment-paper-sources {
  align-self: center;
  align-content: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
}

.alignment-paper-source-block {
  display: grid;
  gap: 6px;
  align-content: start;
}

.alignment-paper-source-block + .alignment-paper-source-block {
  position: relative;
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.alignment-paper-source-block + .alignment-paper-source-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(var(--support-strong), var(--support-strong)) center / 13px 3px no-repeat,
    linear-gradient(var(--support-strong), var(--support-strong)) center / 3px 13px no-repeat,
    var(--surface-strong);
  z-index: 1;
}

.alignment-paper-source-block + .alignment-paper-source-block::after {
  display: none;
}

.alignment-paper-source-block + .alignment-paper-source-block > *:first-child {
  position: relative;
}

.alignment-paper-source-block + .alignment-paper-source-block > *:first-child::before,
.alignment-paper-source-block + .alignment-paper-source-block > *:first-child::after {
  display: none;
}

.alignment-paper-image.figure-media.figure-media-wide {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  border-color: #0d1117;
  background: #0d1117;
  overflow: hidden;
}

.alignment-paper-image.figure-media.figure-media-wide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.02), rgba(13, 17, 23, 0.18));
  pointer-events: none;
}

.alignment-paper-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.01);
}

.subfigure-label {
  margin: 0;
  color: var(--support-strong);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.alignment-paper-sources .subfigure-label {
  font-size: 0.79rem;
  line-height: 1.35;
}

.alignment-draft-table-wrap {
  padding: 0;
  overflow: hidden;
}

.alignment-draft-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.alignment-draft-table th,
.alignment-draft-table td {
  padding: 6px 7px;
  font-size: 0.65rem;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.alignment-draft-table th:nth-child(1),
.alignment-draft-table td:nth-child(1) {
  width: 12%;
  white-space: nowrap;
}

.alignment-draft-table th:nth-child(2),
.alignment-draft-table td:nth-child(2) {
  width: 11%;
  white-space: nowrap;
}

.alignment-draft-table th:nth-child(3),
.alignment-draft-table td:nth-child(3) {
  white-space: normal;
  width: 42%;
}

.alignment-draft-table th:nth-child(4),
.alignment-draft-table td:nth-child(4) {
  width: 21%;
}

.alignment-draft-table th:nth-child(5),
.alignment-draft-table td:nth-child(5) {
  width: 6%;
  white-space: nowrap;
}

.alignment-draft-table th:nth-child(6),
.alignment-draft-table td:nth-child(6) {
  width: 8%;
  text-align: center;
}

.alignment-draft-table tbody tr:last-child td {
  border-bottom: 0;
}

.alignment-paper-code {
  height: auto;
  min-height: 330px;
  margin: 0;
  padding: 10px 14px;
  font-size: 0.7rem;
  line-height: 1.38;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.alignment-paper-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.alignment-paper-flow-arrow {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(145, 154, 164, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(237, 240, 243, 0.96));
  box-shadow: 0 6px 14px rgba(46, 71, 97, 0.06);
}

.alignment-paper-flow-arrow::after {
  display: none;
}

.alignment-paper-result {
  align-self: center;
  gap: 10px;
  padding: 0;
}

.alignment-paper-flow-arrow::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--support-strong);
  border-right: 2px solid var(--support-strong);
  transform: rotate(45deg) translate(-1px, 1px);
}

.overview-diversity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.overview-subfigure {
  display: grid;
  gap: 10px;
}

.overview-diversity-chart {
  height: clamp(236px, 25vw, 286px);
  padding: 10px 10px 6px;
}

.overview-diversity-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.overview-summary-table-wrap {
  width: min(100%, 700px);
  margin: 0 auto;
  overflow: hidden;
}

.overview-summary-table {
  width: 100%;
  min-width: 0;
}

.overview-summary-table td:last-child,
.overview-summary-table th:last-child {
  text-align: right;
}

.overview-summary-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-group-row th {
  background: var(--support-soft);
  color: var(--support-strong);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alignment-figure {
  width: min(100%, 940px);
  margin: 0 auto;
}

.alignment-figure-wide figcaption {
  width: calc(100% - 24px);
  max-width: 92ch;
}

.overview-chart-figure .chart-shell {
  height: clamp(228px, 25vw, 294px);
  max-width: none;
  padding: 8px 8px 2px;
}

.alignment-layout {
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 0;
  align-items: start;
}

.alignment-panel {
  display: grid;
  min-width: 0;
}

.alignment-panel-image {
  width: 100%;
}

.alignment-panel-image .figure-media.figure-media-compact {
  height: clamp(244px, 28vw, 308px);
}

.alignment-media {
  position: relative;
  isolation: isolate;
  background: #171a1f;
}

.alignment-media::before {
  content: "";
  position: absolute;
  inset: -10px;
  background-image: var(--alignment-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(22px) saturate(0.9);
  transform: scale(1.04);
  opacity: 0.52;
  z-index: 0;
}

.alignment-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 26, 31, 0.4), rgba(23, 26, 31, 0.08) 18%, rgba(23, 26, 31, 0.08) 82%, rgba(23, 26, 31, 0.4));
  z-index: 0;
}

.alignment-media-foreground {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.alignment-shell {
  width: 100%;
}

.alignment-loading {
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  min-height: 220px;
  padding: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.alignment-example {
  display: grid;
  gap: 14px;
}

.alignment-specimen {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.alignment-example-frame.figure-media.figure-media-compact {
  height: clamp(272px, 30vw, 340px);
}

.alignment-specimen-copy {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  padding: 16px;
  align-content: start;
}

.alignment-example-label {
  color: var(--support-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.alignment-example-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.alignment-example-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.alignment-example-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 3px 8px;
  color: var(--support-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.alignment-example-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.alignment-specimen-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 0;
}

.alignment-specimen-meta div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.alignment-specimen-meta dt {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alignment-specimen-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.alignment-stage {
  display: grid;
  gap: 10px;
}

.alignment-stage-header {
  display: grid;
  gap: 4px;
}

.alignment-stage-kicker {
  color: var(--support-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alignment-stage-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.alignment-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.alignment-source-card,
.alignment-output-card {
  display: grid;
  gap: 0;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
}

.alignment-source-card {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 238px;
}

.alignment-output-card {
  background: var(--surface-muted);
}

.alignment-source-card-header {
  display: grid;
  gap: 3px;
  padding: 12px 12px 0;
}

.alignment-source-card-header strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.alignment-source-role,
.alignment-source-file {
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.03em;
}

.alignment-source-role {
  color: var(--support-strong);
  font-weight: 700;
  text-transform: uppercase;
}

.alignment-source-subline {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.alignment-state-wrap,
.alignment-output-card .code-block {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.alignment-state-wrap {
  min-height: 0;
  max-height: 232px;
}

.alignment-output-card .code-block {
  max-height: 304px;
}

.alignment-state-table {
  table-layout: fixed;
}

.alignment-state-table th,
.alignment-state-table td {
  padding: 7px 7px;
  font-size: clamp(0.6rem, 0.74vw, 0.67rem);
  white-space: nowrap;
}

.alignment-state-table th:nth-child(1),
.alignment-state-table td:nth-child(1) {
  width: 24%;
  text-align: center;
}

.alignment-state-table th:nth-child(1),
.alignment-state-table td:nth-child(1),
.alignment-state-table th:nth-child(2),
.alignment-state-table td:nth-child(2) {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.alignment-state-table th:nth-child(2),
.alignment-state-table td:nth-child(2) {
  width: 12%;
  text-align: center;
}

.alignment-state-table th:nth-child(3),
.alignment-state-table td:nth-child(3) {
  width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alignment-state-table th:nth-child(4),
.alignment-state-table td:nth-child(4) {
  width: 24%;
  font-variant-numeric: tabular-nums;
}

.alignment-source-list {
  list-style: none;
  margin: 0;
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.alignment-source-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.alignment-source-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.alignment-source-list span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.alignment-source-list code {
  color: var(--support-strong);
  font-size: 0.73rem;
}

.alignment-source-text {
  margin: 0;
  padding: 10px 12px 12px;
  color: var(--text);
  font-size: 0.81rem;
  line-height: 1.62;
}

.alignment-fusion-band {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 14px 18px;
}

.alignment-fusion-kicker {
  color: var(--support-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.alignment-fusion-title {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.alignment-fusion-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 76ch;
}

.alignment-output-stage {
  background: var(--surface-muted);
}

.alignment-output-header {
  display: grid;
}

.mini-table-wrap {
  overflow: auto;
}

.mini-table {
  min-width: 0;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.mini-table thead {
  background: var(--support-soft);
}

.mini-table th,
.mini-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(0.64rem, 0.88vw, 0.72rem);
  text-align: left;
  word-break: break-word;
}

.mini-table th {
  font-weight: 700;
}

.mini-table th:nth-child(1),
.mini-table td:nth-child(1) {
  width: 16%;
}

.mini-table th:nth-child(2),
.mini-table td:nth-child(2) {
  width: 11%;
}

.mini-table th:nth-child(3),
.mini-table td:nth-child(3) {
  width: 41%;
}

.code-block {
  height: 100%;
  margin: 0;
  padding: 12px 14px;
  background: var(--surface-muted);
  color: var(--support-strong);
  font-size: clamp(0.62rem, 0.84vw, 0.7rem);
  line-height: 1.48;
  overflow: auto;
  white-space: pre;
  word-break: normal;
}

.chart-block {
  gap: 10px;
}

.chart-shell {
  height: clamp(300px, 28vw, 390px);
  width: 100%;
  padding: 16px 16px 8px;
  max-width: 900px;
  margin: 0 auto;
}

.chart-shell.chart-shell-small {
  height: 246px;
  max-width: none;
}

.chart-shell canvas {
  width: 100% !important;
  height: 100% !important;
}

.match-selector {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  flex-wrap: nowrap;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.match-button {
  flex: 0 0 auto;
  min-width: 56px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--mono-font);
  font-size: 0.84rem;
  font-weight: 700;
  scroll-snap-align: start;
}

.match-button.is-active {
  border-color: var(--support-strong);
  background: var(--support-strong);
  color: #ffffff;
}

.match-button:disabled {
  color: #727983;
  background: var(--accent-soft);
  cursor: default;
}

.match-selector.is-dragging,
.segment-list.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.dataset-stage {
  display: grid;
  gap: 22px;
  min-width: 0;
  width: 100%;
}

.dataset-combined-panel,
.dataset-detail-panel {
  display: grid;
  min-width: 0;
  width: 100%;
}

.rail-head,
.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.dataset-combined-panel {
  gap: 16px;
}

.dataset-detail-panel {
  gap: 16px;
}

.dataset-segment-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dataset-segment-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.dataset-segment-heading h3,
.dataset-detail-panel .panel-head h3 {
  margin: 0;
}

.dataset-segment-pill,
.segment-chip-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--support-soft);
  color: var(--support-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.filter span {
  white-space: nowrap;
}

.filter select {
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-strong);
}

.segment-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  max-height: none;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.segment-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 64px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  font-weight: 700;
  scroll-snap-align: start;
}

.segment-button:hover {
  border-color: var(--line-strong);
}

.segment-button.is-active {
  border-color: var(--support-strong);
  background: var(--support-strong);
  color: #ffffff;
}

.segment-button-head,
.tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.segment-index,
.tag-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--support-soft);
  color: var(--support-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.segment-index {
  font-family: var(--mono-font);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.segment-button.is-active .segment-index {
  color: #ffffff;
}

.segment-button.is-active .segment-chip-label {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.button {
  color: var(--muted);
  font-weight: 700;
}

.button:hover:not(:disabled) {
  color: var(--highlight);
}

.button:disabled {
  color: #8a9098;
  cursor: default;
}

.video-wrap {
  border: 1px solid var(--line);
  background: #111111;
  max-width: 100%;
  min-width: 0;
}

.video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111111;
}

.source-audio-panel {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.source-audio-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.source-audio-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.source-audio-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.source-audio-label {
  flex: 0 0 auto;
  color: var(--support-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-audio-status {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-audio-progress {
  position: relative;
  height: 5px;
  overflow: hidden;
  border: 1px solid #d4dbe2;
  background: #eef2f5;
}

.source-audio-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--support-strong), var(--highlight));
  transition: width 120ms linear;
}

.source-audio-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-audio-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--support-strong);
  background: var(--support-strong);
  color: #ffffff;
  text-decoration: none;
}

.source-audio-actions .source-audio-icon-button {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--support-strong);
}

.source-audio-icon-button:hover:not(:disabled),
.source-audio-icon-button:focus-visible {
  border-color: var(--highlight);
  color: var(--highlight);
}

.source-audio-icon-button:disabled,
.source-audio-link[aria-disabled="true"] {
  border-color: var(--line);
  background: var(--accent-soft);
  color: #7c838c;
  cursor: default;
  pointer-events: none;
}

.source-audio-icon {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.source-audio-actions .source-audio-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.source-audio-icon-pause {
  display: none;
}

.source-audio-play.is-playing .source-audio-icon-play {
  display: none;
}

.source-audio-play.is-playing .source-audio-icon-pause {
  display: block;
}

.source-audio-player {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.source-audio-player iframe,
.source-audio-player div {
  display: block;
  width: 100%;
  height: 100%;
}

.meta-chips,
.event-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.meta-chip,
.event-item,
.state-card {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.meta-chip-label,
.label {
  margin: 0 0 6px;
  color: var(--support-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-chip-value,
.event-item p,
.state-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.panel.wide {
  grid-column: 1 / -1;
}

.commentary-block + .commentary-block,
.tag-stack,
.event-list,
.state-grid {
  margin-top: 16px;
}

.lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
}

.tag-stack,
.event-list,
.state-grid {
  display: grid;
  gap: 12px;
}

.event-item p + p,
.state-card p + p {
  margin-top: 6px;
}

.state-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.state-card-head {
  margin: 0 0 10px;
}

.state-player-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--support-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
}

.benchmark-visuals {
  display: grid;
  gap: 22px;
}

.task-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.task1-metric-groups {
  display: grid;
  gap: 18px;
  width: 100%;
}

.task1-metric-group {
  display: grid;
  gap: 10px;
}

.task1-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.chart-shell-label,
.chart-shell-sublabel {
  margin: 0;
  color: var(--support-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chart-shell.chart-shell-task1-metric {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 238px;
  max-width: none;
}

.chart-shell.chart-shell-task2-metric {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 238px;
  max-width: none;
}

.chart-shell-sublabel {
  font-size: 0.74rem;
}

.task2-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.benchmark-task2-table {
  min-width: 1660px;
}

.benchmark-task2-table thead tr:first-child th {
  text-align: center;
}

.benchmark-task2-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.benchmark-task2-table .table-best {
  color: var(--support-strong);
  font-weight: 700;
}

.benchmark-task2-table tbody tr.is-overall td {
  background: var(--surface-muted);
}

.benchmark-visuals > .figure-block,
.benchmark-visuals .task2-chart-strip,
.benchmark-visuals .task2-chart-grid,
.benchmark-visuals .chart-block {
  width: 100%;
  min-width: 0;
}

.artifact-browser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.artifact-sidebar,
.artifact-viewer {
  min-width: 0;
}

.artifact-sidebar {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.artifact-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.artifact-sidebar-head h3 {
  margin: 0;
  color: var(--support-strong);
  font-family: var(--display-font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.artifact-sidebar-head span {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--support-strong);
  font-family: var(--mono-font);
  font-size: 0.76rem;
  font-weight: 700;
}

.artifact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  max-height: clamp(180px, 32vh, 340px);
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.artifact-file-button {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--support-strong);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.artifact-file-button:hover {
  border-color: var(--line);
  background: var(--surface-muted);
}

.artifact-file-button.is-active {
  border-color: var(--support-strong);
  background: var(--surface-strong);
  color: var(--support-strong);
  box-shadow: inset 3px 0 0 var(--highlight);
}

.artifact-file-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: var(--line-strong);
}

.artifact-file-button.is-active .artifact-file-icon {
  color: var(--highlight);
}

.artifact-file-icon svg {
  width: 17px;
  height: 17px;
}

.artifact-file-title {
  min-width: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  font-family: var(--mono-font);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.36;
}

.artifact-viewer {
  display: grid;
  min-height: clamp(560px, 72vh, 900px);
}

.artifact-markdown-body {
  min-width: 0;
  max-width: none;
  overflow-x: auto;
  color: var(--text);
  background: transparent;
}

.artifact-markdown-body.markdown-body {
  font-family: var(--ui-font);
}

.artifact-markdown-body.markdown-body pre {
  max-height: 520px;
  overflow: auto;
}

.artifact-markdown-body.markdown-body table {
  display: block;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.artifact-raw-markdown {
  margin: 0;
  white-space: pre-wrap;
}

.table-wrap {
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  max-width: 100%;
}

.dataset-detail-panel .table-wrap {
  max-height: clamp(320px, 50vh, 540px);
  position: relative;
  isolation: isolate;
}

.dataset-detail-panel table {
  border-collapse: separate;
  border-spacing: 0;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.state-compact-table {
  min-width: 960px;
}

.state-compact-table td:last-child {
  min-width: 360px;
}

thead {
  background: var(--support-soft);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

th,
td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.92rem;
  text-align: left;
}

th {
  font-weight: 700;
}

.dataset-detail-panel thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--support-soft);
  box-shadow: inset 0 1px 0 var(--line-strong), inset 0 -1px 0 var(--line-strong);
}

.dataset-detail-panel tbody td {
  background: var(--surface-strong);
}

.state-unit-list {
  display: grid;
  gap: 4px;
}

.state-unit-item {
  display: block;
  line-height: 1.5;
}

.flat-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.flat-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.flat-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.empty-state {
  padding: 14px 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .task-columns,
  .dataset-stage,
  .detail-grid,
  .artifact-browser {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .benchmark-visuals > .figure-block {
    max-width: 900px;
    margin: 0 auto;
  }

  .task1-metric-grid {
    grid-template-columns: 1fr;
  }

  .task2-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alignment-paper-layout,
  .overview-diversity-grid,
  .overview-diagnostics-grid {
    grid-template-columns: 1fr;
  }

  .alignment-paper-flow {
    width: 100%;
    min-height: 24px;
  }

  .alignment-paper-flow-arrow {
    transform: rotate(90deg);
  }

  .alignment-paper-flow-arrow::before {
    transform: rotate(45deg) translate(-1px, 1px);
  }

  .alignment-specimen {
    grid-template-columns: 1fr;
  }

  .alignment-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alignment-input-grid > .alignment-source-card:last-child {
    grid-column: 1 / -1;
  }

}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1280px);
    padding-top: 20px;
  }

  .site-hero h1 {
    font-size: 1.52rem;
  }

  .hero-summary {
    font-size: 0.94rem;
  }

  .hero-meta {
    gap: 8px 12px;
    font-size: 0.84rem;
  }

  .hero-meta span + span::before {
    margin-right: 12px;
  }

  .hero-links {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-link-button {
    width: 100%;
    min-width: 0;
  }

  .tab-nav {
    gap: 18px;
  }

  .task2-chart-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .content-section,
  .segment-rail,
  .viewer-panel,
  .panel {
    padding: 16px;
  }

  .figure-media,
  .figure-media.figure-media-wide {
    min-height: 240px;
    padding: 12px;
  }

  .chart-shell {
    height: 300px;
    padding: 12px 12px 6px;
  }

  .chart-shell.chart-shell-small {
    height: 240px;
  }

  .alignment-layout {
    width: 100%;
  }

  .alignment-input-grid,
  .alignment-specimen-meta {
    grid-template-columns: 1fr;
  }

  .meta-chips,
  .event-summary,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .source-audio-panel {
    padding: 10px;
  }

  .source-audio-main {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .source-audio-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .source-audio-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .source-audio-status {
    white-space: normal;
  }
}
