:root {
  --text: #172033;
  --muted: #626d80;
  --line: #d9e0ea;
  --soft: #f5f8fc;
  --paper: #ffffff;
  --blue: #245ea8;
  --blue-deep: #143b75;
  --cyan: #57b7d7;
  --amber: #d9992b;
  --rose: #d34f65;
  --shadow: 0 22px 60px rgba(28, 48, 78, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(87, 183, 215, 0.18), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(217, 153, 43, 0.12), transparent 22%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 460px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.58;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 94, 168, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 94, 168, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 58%);
  z-index: -1;
}

.page {
  width: calc(100% - 32px);
  max-width: 1060px;
  margin: 0 auto;
  padding: 42px 0 80px;
}

.paper-header {
  position: relative;
  max-width: 980px;
  margin: 0 auto 54px;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 54px) 10px;
  text-align: center;
  background: transparent;
}

.paper-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 92px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--amber));
  border-radius: 999px;
  transform: translateX(-50%);
}

.paper-header::after {
  content: none;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  margin: 0 auto 18px;
  max-width: 940px;
  font-size: clamp(34px, 4.35vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  color: #10192b;
}

h1 span {
  display: block;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 16px auto 0;
  color: #111827;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 760;
  line-height: 1.15;
  text-align: center;
}

.authors sup {
  margin-left: 2px;
  font-size: 0.58em;
}

.venue {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 620;
  text-align: center;
}

.venue sup {
  margin-right: 2px;
  font-size: 0.62em;
}

.link-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.link-bar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 22px 8px 15px;
  color: #fff;
  background: linear-gradient(180deg, #303744, #202633);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 18px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(24, 37, 57, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.link-bar a:hover {
  background: linear-gradient(180deg, #2b5a98, #183e75);
  box-shadow: 0 14px 28px rgba(36, 94, 168, 0.24);
  transform: translateY(-1px);
}

.link-bar a[aria-disabled="true"] {
  opacity: 0.86;
  cursor: not-allowed;
}

.link-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

svg.link-icon {
  padding: 1px;
}

.link-icon-image {
  padding: 2px;
  object-fit: contain;
  border-radius: 7px;
}

.result-spotlight {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 14px;
  margin: -22px auto 30px;
}

.spotlight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 132px;
  padding: 20px 20px 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 224, 234, 0.9);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(28, 48, 78, 0.09);
}

.spotlight-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(87, 183, 215, 0.26), transparent 68%);
}

.spotlight-card.primary {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(20, 59, 117, 0.98), rgba(36, 94, 168, 0.92)),
    radial-gradient(circle at 82% 20%, rgba(87, 183, 215, 0.38), transparent 28%);
  border-color: rgba(36, 94, 168, 0.35);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spotlight-card.primary .metric-label {
  color: rgba(255, 255, 255, 0.72);
}

.spotlight-card strong {
  display: block;
  margin: 12px 0 8px;
  color: #111b2e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 1.75vw, 28px);
  line-height: 1;
  white-space: nowrap;
}

.spotlight-card.primary strong {
  color: #fff;
}

.metric-delta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 10px;
  color: #17466f;
  background: #eaf7fd;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.metric-subvalue {
  display: block;
  margin: -2px 0 10px;
  color: #42506a;
  font-size: 16px;
  font-weight: 850;
}

.spotlight-card.primary .metric-delta {
  color: #143b75;
  background: #dff5ff;
}

.metric-delta.positive::before {
  content: "↑";
  margin-right: 6px;
}

.metric-delta.negative::before {
  content: "↓";
  margin-right: 6px;
}

.section {
  position: relative;
  padding: 42px clamp(18px, 4vw, 42px) 48px;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 224, 234, 0.86);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(28, 48, 78, 0.07);
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  right: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(87, 183, 215, 0.55), transparent);
}

.demo-section {
  display: flex;
  flex-direction: column;
  padding-bottom: 42px;
}

.demo-section .leaderboard-block {
  order: 1;
  margin: 0 0 40px;
  padding: 0 0 34px;
  background: none;
  border: 0;
  border-bottom: 1px solid #dbe7f5;
  border-radius: 0;
  box-shadow: none;
}

.demo-heading {
  order: 2;
  max-width: 780px;
  margin: 0 auto 24px;
  text-align: center;
}

.demo-heading p {
  margin-bottom: 0;
  text-align: center;
}

.demo-grid {
  display: grid;
  order: 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.demo-card {
  overflow: hidden;
  background: #101827;
  border: 1px solid rgba(36, 94, 168, 0.22);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(19, 38, 67, 0.14);
}

.demo-card video {
  display: block;
  width: 100%;
  aspect-ratio: 3342 / 1876;
  background: #070b12;
  object-fit: contain;
}

.demo-caption {
  padding: 15px 18px 17px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(20, 59, 117, 0.96), rgba(31, 49, 75, 0.96)),
    #172033;
}

.demo-caption span {
  color: #8edcf3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.demo-caption h3 {
  margin: 4px 0 0;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.3;
}

.section:first-of-type {
  border-top: 1px solid rgba(217, 224, 234, 0.86);
}

.abstract-showcase {
  padding: clamp(34px, 5vw, 54px);
}

.abstract-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.abstract-figure {
  margin: 0;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(28, 48, 78, 0.1);
}

.abstract-copy {
  display: grid;
  align-content: center;
}

.abstract-copy p {
  max-width: none;
  margin: 0 0 18px;
  color: #243048;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.4;
  text-align: left;
}

.abstract-copy p:first-child {
  font-weight: 700;
}

.abstract-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.abstract-points span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  color: #0f4e73;
  background: #e8f7fd;
  border: 1px solid #c9ebf7;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px auto 4px;
}

.contribution-card {
  min-height: 214px;
  padding: 22px 22px 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dfe5ef;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(28, 48, 78, 0.08);
}

.contribution-card h3 {
  margin: 0 0 12px;
  color: #121827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
  text-align: left;
}

.contribution-card p {
  margin: 0;
  color: #626b7a;
  font-size: 15px;
  font-weight: 520;
  line-height: 1.48;
  text-align: left;
}

h2 {
  position: relative;
  margin: 0 0 28px;
  font-size: clamp(28px, 3.6vw, 38px);
  text-align: center;
  color: #111b2e;
}

h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--amber));
  border-radius: 99px;
}

h3 {
  margin: 40px 0 14px;
  font-size: 21px;
  text-align: center;
  color: #172033;
}

p {
  margin: 0 auto 18px;
  max-width: 920px;
  color: #2b3447;
  font-size: 17.5px;
  text-align: justify;
}

figure {
  width: 100%;
  margin: 32px auto 8px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(28, 48, 78, 0.08);
}

.figure-compact {
  max-width: 700px;
}

.figure-case {
  max-width: 750px;
}

.figure-newcompact {
  max-width: 750px;
}

.figure-newcompact img {
  max-width: 484px;
}

figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

figcaption {
  max-width: 960px;
  margin: 14px auto 0;
  color: #536074;
  font-size: 15px;
  line-height: 1.48;
  text-align: center;
}

.table-block {
  margin-top: 40px;
  padding-top: 8px;
}

.table-block > h3 {
  display: table;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 16px;
  background: linear-gradient(180deg, #f7fbff, #eef6ff);
  border: 1px solid #dbe7f5;
  border-radius: 999px;
}

.leaderboard-block {
  margin: 30px auto 34px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(245, 250, 255, 0.98), rgba(255, 255, 255, 0.95)),
    radial-gradient(circle at 100% 0%, rgba(217, 153, 43, 0.12), transparent 32%);
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(28, 48, 78, 0.09);
}

.leaderboard-heading {
  max-width: 850px;
  margin: 0 auto 20px;
  text-align: center;
}

.leaderboard-heading h3 {
  margin-top: 4px;
}

.leaderboard-heading p:not(.leaderboard-kicker) {
  margin-bottom: 0;
  text-align: left;
}

.leaderboard-kicker {
  margin: 0 auto;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.leaderboard {
  display: grid;
  gap: 5px;
  max-width: 920px;
  margin: 0 auto;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 72px minmax(230px, 1.35fr) 0.62fr 0.62fr minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid #e2e9f2;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(28, 48, 78, 0.05);
  line-height: 1.25;
}

.leaderboard-row.head {
  color: #536074;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-row.winner {
  border-color: rgba(217, 153, 43, 0.42);
  background: linear-gradient(90deg, #fff8e8, #ffffff 56%);
}

.leaderboard-row.muted-row {
  opacity: 0.72;
}

.leaderboard-row.ablation-row {
  background: linear-gradient(90deg, #fbfdff, #ffffff);
  border-style: dashed;
}

.rank {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  justify-self: center;
  color: #fff;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  border-radius: 999px;
  font-weight: 900;
}

.winner .rank {
  color: #23180a;
  background: linear-gradient(180deg, #ffd97b, #e8a936);
}

.agent-name {
  font-weight: 800;
}

.shift {
  display: inline-flex;
  justify-content: center;
  padding: 5px 10px;
  color: #0d5d48;
  background: #e8f8f2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.shift.soft {
  color: #637083;
  background: #eef2f7;
}

.shift.warning {
  color: #7a4b00;
  background: #fff4dc;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 48, 78, 0.07);
}

.narrow-table {
  max-width: 860px;
}

.small-table {
  max-width: 560px;
}

table {
  width: 100%;
  min-width: 880px;
  overflow: hidden;
  border-collapse: collapse;
  font-size: 14px;
}

.evaluation-results-wrap {
  overflow-x: hidden;
}

.evaluation-results-table {
  min-width: 0;
  table-layout: fixed;
  font-size: 13px;
  line-height: 1.25;
}

.evaluation-results-table .mode-column {
  width: 8%;
}

.evaluation-results-table .model-column {
  width: 23%;
}

.evaluation-results-table .metric-column {
  width: 8.625%;
}

.evaluation-results-table th,
.evaluation-results-table td {
  padding: 9px 4px;
}

.evaluation-results-table thead tr:nth-child(2) th {
  font-size: 12px;
}

.evaluation-results-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: clip;
}

.narrow-table table {
  min-width: 720px;
}

.small-table table {
  min-width: 420px;
}

.bar-chart {
  position: relative;
  max-width: 920px;
  margin: 28px auto 32px;
  padding: 24px 22px 70px 44px;
  overflow-x: auto;
  background: #fff;
}

.chart-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 86px);
  align-items: end;
  gap: 24px;
  min-width: 746px;
  height: 360px;
  padding: 0 4px;
  border-bottom: 2px solid #333;
  border-left: 2px solid #333;
}

.bar {
  position: relative;
  display: grid;
  grid-template-rows: 34px 1fr 48px;
  align-items: end;
  height: 100%;
  text-align: center;
}

.bar i {
  position: relative;
  display: block;
  width: 54px;
  height: calc(var(--value) * 1%);
  margin: 0 auto;
  background: #96cfe3;
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 0 0 1px rgba(30, 70, 90, 0.05);
}

.bar.accent i {
  background: #1297c3;
}

.bar.baseline i {
  background: #b7dce8;
}

.bar-value {
  align-self: end;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.bar-label {
  align-self: start;
  display: block;
  margin-top: 10px;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.05;
  transform: rotate(-18deg);
  transform-origin: top right;
  white-space: nowrap;
}

.model-badge {
  position: absolute;
  top: 16px;
  left: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #2f5fce;
  background: #fff;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  transform: translateX(-50%);
}

.model-badge.openai {
  color: #222;
  font-size: 21px;
}

.model-badge.qwen {
  color: #6b5cff;
}

.model-badge.mw {
  color: #222;
  font-size: 12px;
}

.model-badge.sawm {
  color: #0d6f92;
}

.chart-y-label {
  position: absolute;
  top: 172px;
  left: 4px;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  transform: rotate(-90deg);
}

th,
td {
  padding: 10px 11px;
  border: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: #15213a;
  background: linear-gradient(180deg, #f7faff, #eef3f9);
  font-weight: 700;
}

td {
  text-align: center;
}

tbody tr:nth-child(even) {
  background: #f9fbfe;
}

tbody tr:hover {
  background: #f0f7ff;
}

strong {
  font-weight: 800;
  color: #0f4e96;
}

.evaluation-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.evaluation-chart {
  min-width: 0;
  margin: 0;
  padding: 20px 16px 16px;
  overflow-x: auto;
}

.evaluation-chart-wide {
  grid-column: 1 / -1;
  padding-right: 22px;
  padding-left: 22px;
}

.evaluation-chart-wide .evaluation-chart-heading {
  display: flex;
  min-height: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.evaluation-chart-wide .evaluation-chart-legend {
  justify-content: flex-end;
  margin-top: 0;
}

.tradeoff-raster .evaluation-chart-heading {
  margin-bottom: 8px;
}

.tradeoff-raster img {
  display: block;
  width: 100%;
  filter: hue-rotate(-8deg) saturate(0.78) contrast(0.98);
}

.evaluation-chart-heading {
  min-height: 92px;
  margin-bottom: 10px;
}

.evaluation-chart-heading > div:first-child > span {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.evaluation-chart-heading h3 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.25;
  text-align: left;
}

.evaluation-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 11px;
  color: #5b687b;
  font-size: 9.5px;
  font-weight: 750;
}

.evaluation-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.compact-chart-shell {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 6px;
  min-width: 430px;
}

.compact-chart-shell.wide-shell {
  grid-template-columns: 34px minmax(0, 1fr);
  min-width: 900px;
}

.compact-chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 300px;
  padding: 24px 0 41px;
  color: #7a8495;
  font-size: 9px;
  line-height: 1;
  text-align: right;
}

.compact-bar-chart {
  position: relative;
  display: grid;
  align-items: stretch;
  gap: 5px;
  height: 300px;
  padding: 24px 2px 0;
  background-image: linear-gradient(to top, rgba(190, 202, 218, 0.62) 1px, transparent 1px);
  background-size: 100% 25%;
  border-bottom: 1px solid #9aa8ba;
}

.compact-bar-chart.eight-groups {
  grid-template-columns: repeat(8, minmax(44px, 1fr));
}

.compact-bar-chart.six-groups {
  grid-template-columns: repeat(6, minmax(56px, 1fr));
}

.compact-bar-chart.ten-groups {
  grid-template-columns: repeat(10, minmax(78px, 1fr));
  height: 330px;
  padding-top: 38px;
}

.wide-shell .compact-chart-axis {
  height: 330px;
  padding-top: 38px;
  padding-bottom: 54px;
}

.ten-groups .compact-chart-group {
  grid-template-rows: minmax(0, 1fr) 54px;
}

.ten-groups .compact-chart-group.featured::before {
  bottom: 49px;
}

.compact-chart-group {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 41px;
  min-width: 0;
  height: 100%;
}

.compact-chart-group.featured::before {
  content: "";
  position: absolute;
  inset: -8px -2px 36px;
  background: rgba(18, 151, 195, 0.08);
  border: 1px solid rgba(18, 151, 195, 0.2);
  border-radius: 5px 5px 0 0;
  pointer-events: none;
}

.compact-bars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  min-height: 0;
}

.compact-bars.triple {
  gap: 3px;
}

.compact-bars.quad {
  gap: 3px;
}

.compact-bar {
  position: relative;
  display: block;
  width: 14px;
  height: calc(var(--value) * 1%);
  min-height: 3px;
  background: var(--cyan);
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 0 0 1px rgba(26, 59, 86, 0.08);
  font-style: normal;
}

.compact-bars.triple .compact-bar {
  width: 12px;
}

.compact-bars.quad .compact-bar {
  width: 12px;
}

.compact-bar b {
  position: absolute;
  top: -15px;
  left: 50%;
  color: #354258;
  font-size: 7.5px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}

.compact-bar:nth-child(even) b {
  top: -26px;
}

.compact-bars.triple .compact-bar:nth-child(2) b {
  top: -38px;
}

.compact-bars.quad .compact-bar b {
  font-size: 7px;
}

.compact-bars.quad .compact-bar:nth-child(2) b {
  top: -26px;
}

.compact-bars.quad .compact-bar:nth-child(3) b {
  top: -15px;
}

.compact-bars.quad .compact-bar:nth-child(4) b {
  top: -26px;
}

.compact-bar.winning {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.68), 0 0 0 2px #0b789f;
}

.compact-bar.best-baseline {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 0 0 1px var(--blue-deep);
}

.agent-safety,
.legend-dot.agent-safety {
  background: #91cce0;
}

.prompt-injection,
.legend-dot.prompt-injection {
  background: #138fbd;
}

.accuracy,
.legend-dot.accuracy {
  background: var(--blue-deep);
}

.f1-score,
.legend-dot.f1-score {
  background: var(--cyan);
}

.step-score,
.legend-dot.step-score {
  background: var(--amber);
}

.low-risk-completion,
.legend-dot.low-risk-completion {
  background: var(--blue-deep);
}

.high-risk-completion,
.legend-dot.high-risk-completion {
  background: var(--rose);
}

.low-risk-refusal,
.legend-dot.low-risk-refusal {
  background: var(--amber);
}

.high-risk-refusal,
.legend-dot.high-risk-refusal {
  background: #2f9f98;
}

.ten-groups .compact-chart-group > span {
  padding-top: 9px;
  overflow: visible;
  font-size: 8px;
  line-height: 1.18;
  white-space: normal;
}

.compact-chart-group > span {
  position: relative;
  z-index: 1;
  align-self: start;
  display: block;
  padding: 7px 1px 0;
  overflow: hidden;
  color: #46536a;
  font-size: 8.5px;
  font-weight: 750;
  line-height: 1.08;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-chart-group.featured > span {
  color: #0c6689;
  font-weight: 900;
}

.evaluation-chart figcaption {
  min-height: 42px;
  margin-top: 12px;
  font-size: 12.5px;
  text-align: left;
}

.case-study-heading {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.case-study-heading > span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-study-heading h2 {
  margin-bottom: 14px;
}

.case-study-heading p {
  margin-bottom: 0;
  color: #526078;
  text-align: center;
}

.case-study-matrix {
  margin: 0;
  padding: 18px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.case-tile {
  display: grid;
  grid-template-rows: auto 248px auto;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  background: #fff;
}

.case-tile:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.case-tile:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.case-tile-heading > span {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-tile:nth-child(2) .case-tile-heading > span {
  color: var(--rose);
}

.case-tile:nth-child(3) .case-tile-heading > span {
  color: var(--blue-deep);
}

.case-tile:nth-child(4) .case-tile-heading > span {
  color: var(--amber);
}

.case-tile-heading h3 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}

.case-tile > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
}

.case-tile > a:hover {
  background: #eef7fb;
  border-color: #b9dcec;
}

.case-tile img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.compact-case img {
  width: auto;
  max-width: 100%;
}

.case-tile > p {
  margin: 0;
  color: #626d80;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
}

.case-study-matrix > figcaption {
  margin-top: 16px;
}

.visitor-counter {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  color: #526078;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 224, 234, 0.95);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(28, 48, 78, 0.12);
  backdrop-filter: blur(10px);
  font-size: 12px;
  line-height: 1;
}

.visitor-counter > span:not(.visitor-divider) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.visitor-counter svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.visitor-counter strong {
  color: var(--blue-deep);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.visitor-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.citation-section > p {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: 17.5px;
  font-weight: 500;
  text-align: left;
}

.citation-card {
  position: relative;
  padding: 28px 30px;
  overflow: hidden;
  color: #f7f7f7;
  background:
    radial-gradient(circle at 100% 0%, rgba(87, 183, 215, 0.14), transparent 28%),
    linear-gradient(135deg, #242424, #171717);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(13, 20, 32, 0.2);
}

.citation-card pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

.citation-card code {
  color: #f5f6f8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.copy-citation {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: #9b8cff;
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(155, 140, 255, 0.62);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.copy-citation:hover {
  background: rgba(42, 36, 72, 0.82);
}

.copy-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
}

.copy-icon::before,
.copy-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.copy-icon::before {
  top: 4px;
  left: 1px;
  opacity: 0.7;
}

.copy-icon::after {
  top: 0;
  left: 5px;
  background: transparent;
}

@media (max-width: 720px) {
  .page {
    width: calc(100% - 22px);
    max-width: 1060px;
    padding-top: 34px;
  }

  h1 {
    max-width: 100%;
    font-size: 29px;
    overflow-wrap: anywhere;
  }

  .paper-header {
    padding: 28px 18px 6px;
  }

  .paper-header::after {
    display: none;
  }

  .authors {
    gap: 8px 14px;
    font-size: 16px;
  }

  .venue {
    font-size: 16px;
  }

  p {
    font-size: 16px;
    text-align: left;
  }

  .section {
    padding: 32px 14px 36px;
  }

  .abstract-grid {
    grid-template-columns: 1fr;
  }

  .abstract-copy p {
    font-size: 16px;
  }

  .contribution-grid {
    grid-template-columns: 1fr;
  }

  .contribution-card {
    min-height: auto;
  }

  figure {
    padding: 10px;
  }

  figcaption {
    text-align: left;
  }

  .link-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .link-bar a {
    justify-content: center;
    min-width: 0;
  }

  .result-spotlight {
    grid-template-columns: 1fr;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-block {
    padding: 16px;
  }

  .leaderboard {
    overflow-x: auto;
  }

  .leaderboard-row {
    min-width: 760px;
  }

  .visitor-counter {
    bottom: 10px;
    left: 10px;
    padding: 8px 11px;
  }

  .citation-card {
    padding: 46px 14px 18px;
  }

  .copy-citation {
    top: 12px;
    right: 12px;
  }
}
