:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --ink: #111827;
  --muted: #667085;
  --muted-strong: #475467;
  --line: #d8e1ec;
  --panel: #ffffff;
  --soft-panel: #edf3f8;
  --brand-blue: #174ea6;
  --brand-blue-dark: #103b7a;
  --accent: #2563a9;
  --accent-soft: #e7eff8;
  --warning: #bf7a14;
  --danger: #c2415d;
  --code-bg: #f6f8fd;
  --shadow: 0 20px 54px rgba(23, 78, 166, 0.08);
  --shadow-soft: 0 12px 30px rgba(17, 24, 39, 0.07);
  --content-width: 1080px;
  --guide-width: 1100px;
  --home-nav-width: 1220px;
  --nav-width: 1480px;
  --font-ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
}

body.page-awaiting-data[data-page="home"] .home-benchmark-columns,
body.page-awaiting-data[data-page="datasets"] main,
body.page-awaiting-data[data-page="account"] .account-main {
  visibility: hidden;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(37, 99, 169, 0.28);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.12;
}

h2 {
  font-size: 34px;
  font-weight: 640;
  line-height: 1.1;
}

h3 {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.25;
}

.hero {
  padding: 0 24px;
  border-bottom: 0;
  background: transparent;
}

.hero[hidden] {
  display: none;
}

.topline {
  width: min(100%, var(--nav-width));
  margin: 0 auto;
}

.hero:not(.hero-compact) .topline {
  width: min(100%, var(--home-nav-width));
}

.hero-shell,
.layout {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.log-main {
  width: min(100%, var(--nav-width));
  margin: 0 auto;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(247, 248, 251, 0.96);
  transition: background 160ms ease, border-color 160ms ease;
}

.site-nav.is-scrolled {
  border-color: rgba(206, 213, 226, 0.82);
  background: rgba(247, 248, 251, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  width: min(calc(100% - 48px), var(--home-nav-width));
  min-height: 56px;
  margin: 0 auto;
  padding: 6px 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(18, 60, 181, 0.24);
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  font-size: 34px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.site-nav .brand-name {
  font-size: 22px;
  font-weight: 680;
}

.brand-part {
  display: inline-block;
}

.brand-qude {
  color: var(--brand-blue-dark);
}

.brand-leap {
  color: var(--brand-blue);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.site-nav .top-actions {
  justify-self: end;
  margin-left: 0;
  min-width: 164px;
}

.site-nav .top-actions.is-resolving {
  visibility: hidden;
}

.auth-link,
.account-trigger,
.account-menu-link,
.account-logout {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  text-decoration: none;
}

.auth-link:hover {
  color: var(--brand-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.auth-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
}

.account-trigger:hover {
  border-color: #9fb5d0;
  background: var(--soft-panel);
}

.account-menu-wrap {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 3px 10px 3px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.account-login {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
}

.account-avatar-fallback {
  background: var(--accent-soft);
  color: var(--brand-blue-dark);
  font-size: 13px;
  font-weight: 600;
}

.account-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.account-identity {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
}

.account-identity strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-link,
.account-logout {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.account-menu-link:hover,
.account-logout:hover {
  background: var(--soft-panel);
}

.view-tabs {
  display: flex;
  align-items: center;
  justify-self: center;
  min-width: 0;
  gap: 40px;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 32px;
  padding: 0 2px;
  color: var(--muted-strong);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: color 140ms ease;
  white-space: nowrap;
}

.view-tab::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 140ms ease, transform 140ms ease;
}

.view-tab:hover {
  color: var(--brand-blue-dark);
}

.view-tab.is-active {
  color: var(--brand-blue-dark);
  font-weight: 600;
}

.view-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.server-pill {
  overflow: hidden;
  max-width: min(520px, 45vw);
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
}

.hero-shell {
  display: grid;
  place-items: center;
  padding: 68px 0 56px;
}

.hero-copy {
  max-width: 880px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 auto;
  font-size: 36px;
  font-weight: 500;
}

.hero-lede {
  margin: 10px auto 0;
  max-width: 640px;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.55;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0 24px 76px;
}

.view-panel,
.leaderboard-section,
.guide-panel {
  width: min(100%, var(--content-width));
  min-width: 0;
  margin: 0 auto;
}

.view-panel {
  scroll-margin-top: 104px;
}

.view-panel[hidden] {
  display: none;
}

.section-heading {
  display: grid;
  justify-items: start;
  margin-bottom: 16px;
  text-align: left;
}

.select-control {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted-strong);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
}

.select-label {
  flex: 0 0 auto;
}

.select-picker {
  position: relative;
  min-width: 0;
}

.select-trigger {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px 0 14px;
  border: 1px solid #cfd9ee;
  border-radius: 6px;
  background: #ffffff;
  color: var(--brand-blue-dark);
  font: inherit;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.select-trigger:hover,
.select-control.is-open .select-trigger {
  border-color: #aebee6;
  background: #f7f9ff;
}

.select-trigger:disabled {
  cursor: default;
  opacity: 0.6;
}

.select-caret {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand-blue-dark);
  border-bottom: 2px solid var(--brand-blue-dark);
  transform: rotate(-45deg);
  transform-origin: center;
  transition: transform 230ms cubic-bezier(0.4, 0, 0.2, 1);
}

.select-control.is-open .select-caret {
  transform: rotate(45deg);
}

.select-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: grid;
  width: 100%;
  max-height: min(340px, calc(100vh - 180px));
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #cfd9ee;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.10);
  overscroll-behavior: contain;
}

.select-menu[hidden] {
  display: none;
}

.select-option {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.select-option:hover,
.select-option:focus-visible,
.select-option.is-selected {
  background: #eef3ff;
  color: var(--brand-blue-dark);
}

.select-option.is-selected {
  font-weight: 500;
}

.leaderboard-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.curve-section {
  min-width: 0;
}

.curve-frame {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #ffffff;
}

.curve-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 380px;
  aspect-ratio: 1024 / 520;
  overflow: visible;
}

.curve-frame.is-empty .curve-chart {
  height: 260px;
  min-height: 260px;
  aspect-ratio: auto !important;
}

.curve-frame.is-sparse .curve-chart {
  min-height: 320px;
}

.chart-grid-line {
  stroke: #e3e7ef;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-gridline {
  transition:
    transform 600ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 600ms ease;
}

.chart-tick-label {
  fill: var(--muted);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.chart-title {
  fill: var(--muted-strong);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
}

.chart-axis-label {
  fill: var(--muted-strong);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
}

.selected-p-guide {
  stroke: rgba(18, 60, 181, 0.24);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
  transition: x1 180ms ease, x2 180ms ease;
}

.curve-series {
  opacity: 1;
  transition: opacity 170ms ease;
}

.curve-series.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.curve-series-line {
  vector-effect: non-scaling-stroke;
  transition:
    d 600ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 120ms ease-out;
}

.curve-point,
.curve-label-connector {
  vector-effect: non-scaling-stroke;
}

.curve-point-group,
.curve-label-group {
  transition:
    transform 600ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 120ms ease-out;
}

.curve-label-group.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.curve-label-group.is-initializing {
  visibility: hidden;
  transition: none;
}

.curve-point {
  cursor: pointer;
  transition: r 150ms ease, opacity 150ms ease, stroke-width 150ms ease;
}

.curve-point.is-selected {
  stroke-width: 2.5;
}

.curve-upper-limit {
  stroke-dasharray: 2 1;
}

.curve-end-label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.curve-label-connector {
  opacity: 0.6;
}

.curve-tooltip {
  position: absolute;
  z-index: 5;
  display: grid;
  min-width: 170px;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid #d7dde8;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.3;
  pointer-events: none;
}

.curve-tooltip[hidden] {
  display: none;
}

.curve-tooltip strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 620;
}

.tooltip-line.is-emphasis {
  color: var(--brand-blue-dark);
  font-weight: 600;
}

.curve-frame .panel-status {
  position: absolute;
  inset: 50% auto auto 50%;
  width: max-content;
  max-width: calc(100% - 40px);
  padding: 10px 12px;
  border: 0;
  background: #ffffff;
  transform: translate(-50%, -50%);
  text-align: center;
}

.leaderboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
  margin-bottom: 10px;
}

.sweep-control {
  gap: 28px;
  font-size: 16px;
}

.sweep-control[hidden] {
  display: none;
}

.sweep-picker,
.sweep-menu {
  width: 112px;
}

.sweep-trigger {
  width: 112px;
  font-variant-numeric: tabular-nums;
}

#selected-sweep {
  flex: 1;
  padding-right: 8px;
  text-align: left;
}

.sweep-menu {
  z-index: 32;
  max-height: 260px;
}

.sweep-option {
  min-height: 36px;
  padding: 0 9px;
  color: var(--muted-strong);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.leaderboard-table-wrap {
  width: min(90%, 960px);
  margin: 24px auto 0;
}

.leaderboard-table-wrap.is-compact {
  width: min(82%, 680px);
}

.leaderboard-table-wrap.is-wide {
  width: min(90%, 960px);
}

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

.leaderboard-table th,
.leaderboard-table td {
  padding: 9px 8px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: right;
  vertical-align: middle;
}

.leaderboard-table th {
  border-top: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.leaderboard-table td {
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}

.leaderboard-table tbody tr {
  transition: background 130ms ease;
}

.leaderboard-table tbody tr:hover {
  background: rgba(238, 243, 255, 0.54);
}

.leaderboard-table .is-name {
  text-align: left;
}

.leaderboard-table .is-details {
  padding-right: 2px;
  padding-left: 2px;
  text-align: center;
}

.leaderboard-table .rank,
.leaderboard-table .is-rank {
  color: var(--muted-strong);
  font-variant-numeric: tabular-nums;
}

.leaderboard-table .leaderboard-cell:not(.is-name) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.leaderboard-table .is-primary {
  color: var(--brand-blue-dark);
  font-weight: 400;
}

.leaderboard-table .is-range,
.leaderboard-table .format-duration {
  color: var(--muted-strong);
  font-weight: 400;
}

.leaderboard-table .runtime,
.leaderboard-table .attempts {
  color: var(--muted-strong);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

.solver-toggle {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.solver-toggle[aria-pressed="false"] {
  color: var(--muted);
}

.solver-color {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 1.5px solid var(--solver-color);
  border-radius: 50%;
  background: var(--solver-color);
}

.leaderboard-details-toggle {
  display: inline-grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
}

.leaderboard-details-toggle:hover,
.leaderboard-details-toggle[aria-expanded="true"] {
  color: var(--brand-blue-dark);
}

.leaderboard-details-toggle:focus-visible {
  outline: 0;
  color: var(--brand-blue-dark);
}

.leaderboard-details-chevron {
  display: block;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
  transition: transform 230ms cubic-bezier(0.4, 0, 0.2, 1);
}

.leaderboard-details-toggle[aria-expanded="true"] .leaderboard-details-chevron {
  transform: rotate(45deg);
}

.leaderboard-table tbody tr.leaderboard-details-row,
.leaderboard-table tbody tr.leaderboard-details-row:hover {
  background: transparent;
}

.leaderboard-table td.leaderboard-details-cell {
  padding: 0 8px 12px;
  border-top: 0;
  text-align: left;
  white-space: normal;
}

.leaderboard-table td.leaderboard-details-spacer {
  padding: 0;
  border-top: 0;
}

.leaderboard-details-panel {
  padding: 12px 0 14px;
  animation: leaderboard-details-reveal 180ms ease-out;
}

@keyframes leaderboard-details-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.leaderboard-details-panel.is-loading,
.leaderboard-details-panel.has-error {
  color: var(--muted-strong);
  font-size: 15px;
}

.leaderboard-details-panel.has-error {
  color: var(--danger);
}

.leaderboard-details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 40px;
  margin: 0;
}

.leaderboard-detail-item {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  column-gap: 8px;
  min-width: 0;
}

.leaderboard-detail-item.is-wide {
  grid-column: 1 / -1;
}

.leaderboard-detail-item dt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leaderboard-detail-item dt::after {
  content: ":";
}

.leaderboard-detail-item dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
}

@media (prefers-reduced-motion: reduce) {
  .leaderboard-details-chevron,
  .leaderboard-details-panel {
    animation: none;
    transition: none;
  }
}

.solver-toggle[aria-pressed="false"] .solver-color {
  background: transparent;
}

.empty-state,
.error-state {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faff;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.55;
}

.error-state {
  color: var(--danger);
}

.panel-status {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faff;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.5;
}

.panel-status[hidden] {
  display: none;
}

.panel-status.is-error {
  border-color: rgba(194, 65, 93, 0.24);
  background: rgba(194, 65, 93, 0.06);
  color: var(--danger);
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav-link {
  flex: 0 0 auto;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted-strong);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.nav-link:hover {
  border-color: rgba(23, 78, 166, 0.34);
  background: var(--soft-panel);
  color: var(--brand-blue-dark);
}

.nav-fixed {
  margin-left: auto;
}

.guide-panel {
  max-width: var(--guide-width);
  padding-top: 0;
}

.guide-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  margin-bottom: 10px;
  padding-left: 72px;
}

.platform-control {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  margin: 0;
}

.platform-label {
  color: var(--muted-strong);
  font-size: 18px;
  font-weight: 500;
}

.platform-control .select-picker,
.platform-control .select-trigger,
.platform-control .select-menu {
  width: 200px;
  min-width: 0;
}

#selected-platform {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  min-width: 0;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  padding: 32px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.steps h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.step-index {
  display: block;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  margin: 3px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

.step-content {
  display: grid;
  min-width: 0;
  grid-column: 2;
  gap: 12px;
}

.step-copy {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.6;
}

.step-content > pre {
  margin-top: 0;
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0 4px 4px 0;
  background: var(--soft-panel);
}

.step-copy code {
  color: var(--brand-blue-dark);
  font-family: var(--font-mono);
  font-size: 0.94em;
}

[data-platform-content][hidden] {
  display: none;
}

.guide-notes {
  margin: 22px 0 28px 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
}

.guide-notes summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 0 2px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.guide-notes summary::-webkit-details-marker {
  display: none;
}

.guide-notes[open] summary .select-caret {
  transform: rotate(45deg);
}

.guide-notes-content {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin-top: 16px;
}

.guide-error-code {
  margin-right: 8px;
  color: var(--brand-blue-dark);
  font-family: var(--font-ui);
  font-size: 0.92em;
  font-weight: 700;
}

pre {
  position: relative;
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 18px 82px 18px 20px;
  border: 1px solid #dde4f2;
  border-radius: 4px;
  background: #ffffff;
  color: #28344d;
  font-family: var(--font-mono);
  font-size: 15.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: none;
}

code {
  font-family: inherit;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--brand-blue-dark);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  opacity: 0.82;
  box-shadow: none;
  transition: opacity 140ms ease, background 140ms ease, color 140ms ease;
}

pre:hover .copy-btn,
.copy-btn:focus-visible,
.copy-btn.copied {
  opacity: 1;
}

.copy-btn:hover,
.copy-btn.copied {
  background: #eef3ff;
  color: var(--brand-blue-dark);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Log page */

.hero-compact {
  padding: 24px 28px;
}

.hero-compact h1 {
  font-size: 44px;
}

.log-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  width: min(100%, var(--nav-width));
  margin: 0 auto;
}

.log-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.log-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 200ms ease;
}

.status-dot.connected {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(35, 103, 255, 0.12);
}

.log-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.log-counter {
  color: var(--muted);
  font-size: 14px;
}

.log-btn {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.log-btn:hover {
  border-color: rgba(23, 78, 166, 0.34);
  background: var(--soft-panel);
  color: var(--brand-blue-dark);
}

.log-main {
  padding: 24px 28px 56px;
}

.log-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 220px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.log-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.log-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--soft-panel);
  color: var(--muted);
  font-size: 14px;
  text-align: left;
  text-transform: uppercase;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.log-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.log-table tbody tr {
  transition: background 100ms ease;
}

.log-table tbody tr:hover {
  background: #f8faff;
}

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

.col-time { width: 90px; }
.col-method { width: 70px; font-weight: 900; }
.col-path { min-width: 200px; }
.col-status { width: 70px; font-weight: 900; }
.col-duration { width: 80px; }
.col-client { width: 130px; }

@media (max-width: 980px) {
  .hero {
    padding: 0 20px;
  }

  .layout,
  .log-main {
    grid-template-columns: 1fr;
    padding: 0 20px 48px;
  }

  .topline {
    margin-bottom: 22px;
  }

  .site-nav-inner {
    width: min(calc(100% - 40px), 1120px);
    min-height: 56px;
    gap: 18px;
    padding: 6px 0;
  }

  .site-nav .brand-name {
    font-size: 20px;
  }

  .view-tabs {
    gap: clamp(20px, 4vw, 36px);
  }

  .nav-link {
    padding: 12px 18px;
    font-size: 15px;
  }

  .hero-shell {
    padding: 54px 0 46px;
  }

  .server-pill {
    max-width: 100%;
  }

  .datasets-header {
    width: 100%;
  }

  .taskset-control {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .taskset-control .select-picker,
  .taskset-control .select-trigger,
  .taskset-control .select-menu {
    width: 100%;
  }

  h1 {
    font-size: 34px;
  }

  .hero-compact h1 {
    font-size: 28px;
  }

  .leaderboard-table-wrap {
    width: 100%;
  }

  .log-toolbar,
  .log-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-toolbar {
    margin-bottom: 14px;
  }

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

  .steps li:last-child {
    grid-column: auto;
  }

  .log-heading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .view-panel {
    scroll-margin-top: 96px;
  }

  .topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 24px);
    min-height: 88px;
    gap: 2px 14px;
    padding: 6px 0;
  }

  .site-nav .top-actions {
    min-width: 0;
  }

  .hero-shell,
  .layout {
    width: min(100%, 390px);
  }

  .site-nav .brand-name,
  .brand-name {
    font-size: 20px;
  }

  .view-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    width: 100%;
    gap: 4px;
  }

  .view-tab {
    min-height: 34px;
    padding-right: 0;
    padding-left: 0;
    font-size: 15px;
  }

  .auth-link {
    padding: 0;
    font-size: 15px;
  }

  .account-login {
    display: none;
  }

  .account-trigger {
    padding-right: 4px;
  }

  h1 {
    max-width: 320px;
    font-size: 28px;
  }

  .layout {
    gap: 0;
    padding-top: 0;
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-shell {
    padding: 42px 0 38px;
  }

  .curve-frame {
    margin-right: -4px;
    margin-left: -4px;
  }

  .curve-chart {
    min-height: 0;
  }

  .chart-tick-label,
  .chart-axis-label {
    font-size: 14px;
  }

  .curve-end-label {
    font-size: 14px;
  }

  .chart-title {
    font-size: 16px;
  }

  .leaderboard-toolbar,
  .sweep-control {
    width: 100%;
  }

  .leaderboard-toolbar {
    margin-bottom: 8px;
  }

  .sweep-control {
    justify-content: space-between;
  }

  .leaderboard-table-wrap {
    width: 100%;
    margin-top: 24px;
  }

  .leaderboard-table {
    display: block;
    min-width: 0;
    table-layout: auto;
  }

  .leaderboard-table thead {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .leaderboard-table tbody {
    display: grid;
    width: 100%;
  }

  .leaderboard-table tbody tr {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    box-sizing: border-box;
    gap: 7px 10px;
    padding: 12px 4px;
    border-top: 1px solid var(--line);
  }

  .leaderboard-table th,
  .leaderboard-table td {
    width: auto;
    padding: 0;
    border: 0;
    text-align: right;
  }

  .leaderboard-table td.is-rank {
    flex: 0 0 42px;
    width: auto;
    font-size: 15px;
    text-align: right;
  }

  .leaderboard-table td.is-name {
    flex: 1 1 calc(100% - 52px);
    min-width: 0;
    width: auto;
    font-size: 15px;
    text-align: left;
  }

  .leaderboard-table td.leaderboard-cell:not(.is-rank):not(.is-name) {
    display: flex;
    flex: 0 0 100%;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    width: auto;
    font-size: 15px;
    text-align: right;
    white-space: normal;
  }

  .leaderboard-table td.leaderboard-cell:not(.is-rank):not(.is-name)::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
  }

  .leaderboard-table td.leaderboard-cell.is-details {
    justify-content: space-between;
  }

  .leaderboard-table tbody tr.leaderboard-details-row {
    display: block;
    padding: 0 4px 12px;
    border-top: 0;
  }

  .leaderboard-table td.leaderboard-details-cell {
    display: block;
    width: 100%;
    padding: 0 4px;
    text-align: left;
  }

  .leaderboard-table td.leaderboard-details-spacer {
    display: none;
  }

  .leaderboard-details-panel {
    margin-inline: 0;
    padding: 10px 4px 12px;
  }

  .leaderboard-details-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .leaderboard-detail-item.is-wide {
    grid-column: auto;
  }

  .platform-control {
    justify-content: space-between;
    width: 100%;
    gap: 16px;
  }

  .platform-control .select-picker,
  .platform-control .select-trigger,
  .platform-control .select-menu {
    width: min(220px, calc(100vw - 132px));
  }

  .steps li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
    padding: 22px 0;
  }

  .step-index {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    min-height: 0;
    margin-top: 0;
  }

  .step-content {
    grid-column: 1;
  }

  .guide-notes {
    margin-left: 0;
  }

  pre {
    padding: 50px 14px 14px;
    font-size: 14px;
  }
}

/* ---------- Shared site footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--soft-panel);
  color: var(--muted);
  font-family: var(--font-ui);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 21px 0 23px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a {
  color: var(--muted-strong);
  font-size: 15px;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-meta {
  flex: 0 0 auto;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

/* ---------- Benchmark page ---------- */
.benchmark-page {
  padding-top: 44px;
}

.benchmark-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 36px;
  align-items: end;
  padding: 18px 0 26px;
}

.benchmark-identity {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
}

.benchmark-cover {
  flex: 0 0 96px;
  width: 96px;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benchmark-cover .cover-monogram {
  font-size: 22px;
}

.benchmark-titles h1 {
  margin: 0;
  color: var(--ink);
  font: 650 clamp(26px, 4vw, 36px)/1.12 var(--font-ui);
}

.benchmark-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.benchmark-badge {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted-strong);
  font: 600 14px/1.2 var(--font-ui);
}

.benchmark-chips {
  display: flex;
  gap: 0;
  align-items: center;
  margin: 0;
}

.benchmark-chips > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: max-content;
  padding: 0 14px;
}

.benchmark-chips > div + div {
  border-left: 1px solid var(--line);
}

.benchmark-chips > div:first-child {
  padding-left: 0;
}

.benchmark-chips > div:last-child {
  padding-right: 0;
}

.benchmark-chips dt {
  color: var(--muted);
  font: 500 15px/1.3 var(--font-ui);
}

.benchmark-chips dd {
  margin: 0;
  color: var(--ink);
  font: 650 18px/1.3 var(--font-ui);
}

/* Codabench-style competition tab bar: full width, evenly spaced, active
   tab colored with a thick underline, a thin divider under the whole bar. */
.benchmark-tabs {
  position: sticky;
  z-index: 10;
  top: 56px;
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.benchmark-tabs button {
  flex: 1 1 0;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 16px 16px 13px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font: 650 16px/1 var(--font-ui);
  text-align: center;
}

.benchmark-tabs button[aria-selected="true"] {
  border-bottom-color: var(--brand-blue);
  color: var(--brand-blue);
}

.benchmark-tabs button:focus-visible,
.export-link:focus-visible {
  outline: 3px solid rgba(37, 99, 169, 0.25);
  outline-offset: -3px;
}

.tab-panel {
  min-width: 0;
  padding-top: 28px;
}

.tab-panel[hidden] {
  display: none;
}

.benchmark-toolbar {
  padding-top: 8px;
  padding-bottom: 14px;
}

.export-link {
  color: var(--brand-blue);
  font: 600 15px/1.4 var(--font-ui);
  text-decoration: none;
}

.curve-export {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
}

@media (max-width: 899px) {
  .benchmark-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .benchmark-chips {
    flex-wrap: wrap;
  }
}

/* ---------- Benchmark catalog ---------- */
.catalog-layout,
.guide-layout {
  padding-top: 56px;
}

.guide-layout {
  padding-top: 42px;
}

.catalog-header {
  padding-bottom: 20px;
}

body[data-page="guide"] .catalog-header {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.catalog-header h1 {
  margin: 6px 0 8px;
  color: var(--ink);
  font: 650 clamp(30px, 5vw, 44px)/1.1 var(--font-ui);
}

.catalog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding-top: 0;
  border-top: 0;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 230px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding-bottom: 4px;
}

.filter-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.catalog-sort-control,
.catalog-sort-picker,
.catalog-sort-control .select-trigger,
.catalog-sort-control .select-menu {
  width: 100%;
}

.catalog-sort-control {
  display: block;
}

.catalog-sort-control .select-trigger {
  min-height: 46px;
  color: var(--muted-strong);
  font: 500 15px/1 var(--font-ui);
}

.filter-label {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: var(--muted-strong);
  font: 600 14px/1.3 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Reusable search-input wrapper: a magnifying-glass glyph inset on the
   left, decorative (the field's own label/placeholder stays the accessible
   name). Any page that needs a search input reuses this, not a one-off. */
.search-field {
  position: relative;
  display: block;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.search-field input[type="search"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 12px 0 36px;
  background: var(--panel);
  color: var(--ink);
  font: 500 15px/1 var(--font-ui);
}

.catalog-results {
  min-width: 0;
}

@media (max-width: 620px) {
  .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Benchmark tab content ---------- */
.tab-copy {
  max-width: 820px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.65;
}

.tab-copy h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font: 650 20px/1.3 var(--font-ui);
}

.tab-copy a:not(.cta-primary),
.task-leaderboard-link {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.tab-copy a:not(.cta-primary):hover,
.task-leaderboard-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#get-started-tasks .task-leaderboard-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 16px;
}

.get-started-terms-note {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.get-started-terms-note a {
  color: var(--brand-blue);
  font-weight: 600;
}

/* Codabench-style Get Started: a left sidebar list of section names, one
   section rendered at a time as a single readable column to the right. */
.get-started-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
}

.get-started-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.get-started-nav-item {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 12px;
  background: transparent;
  color: var(--muted-strong);
  text-align: left;
  font: 500 15px/1.3 var(--font-ui);
  cursor: pointer;
}

.get-started-nav-item:hover {
  background: var(--soft-panel);
}

.get-started-nav-item:focus-visible {
  outline: 3px solid rgba(37, 99, 169, 0.25);
  outline-offset: -1px;
}

.get-started-nav-item[aria-selected="true"] {
  border-color: var(--line);
  background: var(--accent-soft);
  color: var(--brand-blue-dark);
  font-weight: 700;
}

.get-started-content {
  min-width: 0;
  max-width: 720px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.65;
}

.get-started-section[hidden] {
  display: none;
}

.get-started-section h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font: 650 28px/1.25 var(--font-ui);
}

.get-started-content a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.get-started-content a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.get-started-protocol-note {
  margin: 4px 0 0;
}

.get-started-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 28px;
  margin: 24px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.get-started-facts > div {
  display: grid;
  gap: 3px;
}

.get-started-facts dt {
  color: var(--muted);
  font: 600 14px/1.3 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.get-started-facts dd {
  margin: 0;
  color: var(--ink);
  font: 600 16px/1.3 var(--font-ui);
}

.get-started-summary-links {
  display: flex;
  gap: 24px;
  margin: 24px 0 0;
  font-size: 16px;
}

/* Participation: a plain sequential list in prose, not step cards. */
.participation-steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.participation-steps h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font: 650 16px/1.3 var(--font-ui);
}

.participation-steps p {
  margin: 0;
}

@media (max-width: 860px) {
  .get-started-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .get-started-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .get-started-nav-item {
    width: auto;
  }
}

/* ---------- My submissions ---------- */
#panel-my-submissions .tab-copy {
  width: 100%;
  max-width: none;
}

#panel-my-submissions .leaderboard-table-wrap {
  width: 100%;
  max-width: none;
}

#my-submissions-content {
  width: 100%;
}

.empty-state-panel {
  display: grid;
  gap: 14px;
  justify-items: start;
  max-width: 480px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft-panel);
  color: var(--muted-strong);
}

.empty-state-panel[hidden] {
  display: none;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--brand-blue-dark);
  font: 600 15px/1 var(--font-ui);
  cursor: pointer;
}

.load-more-btn:hover {
  background: var(--accent-soft);
}

.load-more-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.submissions-table th,
.submissions-table td {
  text-align: left;
}

.submissions-table td.submissions-task-cell {
  overflow: hidden;
  max-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submissions-table .submission-publication-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* ---------- Landing statistics ---------- */
.stats-strip {
  width: min(100%, var(--home-nav-width));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.stats-strip-inner > div {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 8px 22px;
  overflow: hidden;
  text-align: center;
}

.stats-strip dt {
  margin-top: 6px;
  color: var(--muted);
  font: 600 15px/1.35 var(--font-ui);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stats-strip dd {
  margin: 0;
  color: var(--brand-blue-dark);
  font: 650 28px/1 var(--font-ui);
  letter-spacing: -0.01em;
}

.home-section-link {
  margin: 18px 0 0;
  text-align: right;
}

.home-section-link a {
  color: var(--brand-blue);
  font: 600 16px/1.4 var(--font-ui);
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid rgba(37, 99, 169, 0.25);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  body {
    overflow-x: clip;
  }

  .benchmark-page,
  .catalog-layout {
    padding-right: 16px;
    padding-left: 16px;
  }

  .benchmark-page {
    padding-top: 24px;
  }

  .benchmark-identity {
    gap: 12px;
  }

  .benchmark-cover {
    flex-basis: 72px;
    width: 72px;
  }

  .benchmark-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .benchmark-chips > div {
    min-width: 0;
    padding: 9px;
  }

  .benchmark-tabs {
    max-width: 100vw;
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 6px;
  }

  .benchmark-tabs button {
    padding-right: 12px;
    padding-left: 12px;
  }

  .benchmark-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .curve-export {
    top: 10px;
    right: 12px;
  }

  .catalog-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .stats-strip-inner > div,
  .stats-strip-inner > div:first-child {
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }

  .stats-strip-inner > div:nth-child(2n) {
    border-right: 0;
  }

  .stats-strip-inner > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 32px);
    gap: 12px;
  }

  .site-footer-meta {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Login ---------- */
.login-page {
  min-height: 100vh;
  background: var(--bg);
}

.login-brand-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(calc(100% - 48px), var(--home-nav-width));
  min-height: 72px;
  margin: 0 auto;
}

.login-brand-header .brand-name {
  font-size: 22px;
  font-weight: 680;
}

.login-main {
  display: grid;
  width: min(calc(100% - 48px), 1080px);
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: 48px 0 72px;
  place-items: center;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(340px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
  width: 100%;
}

.login-form-column {
  width: 100%;
  max-width: 380px;
  justify-self: center;
}

.login-intro {
  text-align: center;
}

.login-intro h1 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.login-methods {
  margin-top: 32px;
}

.email-login-form {
  display: grid;
  gap: 12px;
}

.identity-link-form label,
.publish-form label {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 520;
}

.email-login-form input,
.identity-link-form input,
.publish-form input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #aebbd0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.email-login-form input::placeholder,
.identity-link-form input::placeholder,
.publish-form input::placeholder {
  color: #748197;
}

.email-login-form input:hover,
.identity-link-form input:hover,
.publish-form input:hover {
  border-color: #8297b6;
}

.email-login-form input:focus,
.identity-link-form input:focus,
.publish-form input:focus {
  border-color: var(--brand-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(24, 85, 180, 0.13);
}

.email-code-control,
.identity-code-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.identity-code-control button {
  min-width: 104px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--brand-blue);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.identity-code-control button:disabled {
  color: var(--muted);
  cursor: default;
}

.email-code-control {
  gap: 0;
  overflow: hidden;
  border: 1px solid #aebbd0;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.email-code-control:hover {
  border-color: #8297b6;
}

.email-code-control:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(24, 85, 180, 0.13);
}

.email-code-control input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.email-code-control input:hover,
.email-code-control input:focus {
  border: 0;
  box-shadow: none;
}

.email-code-control button {
  min-width: 108px;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand-blue);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.email-code-control button:hover:not(:disabled) {
  background: #f6f9ff;
}

.email-code-control button:disabled {
  color: var(--muted);
  cursor: default;
}

.login-method-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 24px 0;
  color: var(--muted);
  font-size: 13px;
}

.login-method-divider::before,
.login-method-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.login-method-divider span {
  padding: 0 2px;
}

.login-provider-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-provider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--brand-blue);
  border-radius: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease;
}

.login-github-button:hover,
.login-github-button:focus-visible {
  border-color: var(--brand-blue-dark);
  background: var(--brand-blue-dark);
  outline: 0;
}

.login-phone-button:disabled {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #ffffff;
  opacity: 0.52;
  cursor: default;
}

.login-coming-soon {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 400;
}

.login-account-note {
  margin-top: 26px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.login-status {
  margin-top: 4px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.45;
}

.login-status:empty {
  display: none;
}

.login-status.is-error {
  color: #a73535;
}

.login-visual {
  display: grid;
  min-width: 0;
  aspect-ratio: 732 / 392;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  background: var(--soft-panel);
}

.login-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 980px) {
  .login-main {
    min-height: calc(100dvh - 72px);
    padding: 40px 0 64px;
  }

  .login-shell {
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    gap: 40px;
  }

}

@media (max-width: 720px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 42px;
    width: min(100%, 560px);
  }

}

@media (max-width: 560px) {
  .login-brand-header,
  .login-main {
    width: min(calc(100% - 32px), var(--home-nav-width));
  }

  .login-brand-header {
    min-height: 64px;
  }

  .login-main {
    min-height: calc(100dvh - 64px);
    padding: 28px 0 48px;
  }

  .login-intro h1 {
    font-size: 28px;
  }

  .login-methods {
    margin-top: 30px;
  }
}

/* ---------- Home ---------- */
.home-hero {
  padding: 0 24px;
}

.home-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  width: min(100%, var(--home-nav-width));
  margin: 0 auto;
  padding: 84px 0 72px;
}

.home-hero-shell-solo {
  display: block;
  max-width: 680px;
  padding: 92px 0 76px;
  text-align: center;
}

.home-hero-shell-solo .home-hero-copy {
  text-align: center;
}

.home-hero-shell-solo .home-hero-copy h1,
.home-hero-shell-solo .home-lede {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.home-hero-shell-solo .home-cta-row {
  justify-content: center;
}

.home-hero-copy {
  min-width: 0;
  text-align: left;
}

.home-hero-copy h1 {
  max-width: 560px;
  margin: 0;
  font-size: 44px;
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.home-lede {
  max-width: 540px;
  margin: 18px 0 0;
  font-size: 17px;
}

.home-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 560;
  text-decoration: none;
  transition: background 140ms ease, box-shadow 140ms ease;
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(23, 78, 166, 0.22);
}

.cta-primary:hover {
  background: var(--brand-blue-dark);
}

.home-main {
  padding: 0 24px 8px;
}

.home-section {
  width: min(100%, var(--home-nav-width));
  margin: 0 auto;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.home-main > .home-section:first-child {
  padding-top: 48px;
  border-top: 0;
}

.home-section[aria-labelledby="get-started-title"] {
  border-top: 0;
}

.home-section-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
}

.citation-copy {
  margin-top: 14px;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.55;
}

.citation-block {
  margin-top: 18px;
}

/* Get started */
.get-started-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.get-started-step {
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.get-started-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand-blue);
  font-size: 15px;
  font-weight: 700;
}

.get-started-step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.get-started-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.get-started-step p a {
  color: var(--brand-blue);
  font-weight: 600;
}

/* About */
.protocol-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 52px;
  align-items: center;
  margin-top: 32px;
}

.home-cartoon {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9ff;
}

.home-cartoon img {
  display: block;
  width: 100%;
  height: auto;
}

.about-copy p {
  margin: 0 0 22px;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.7;
}

.protocol-points {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.protocol-points li {
  position: relative;
  min-width: 0;
  padding-left: 24px;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.58;
}

.protocol-points li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  content: "";
}

.protocol-points strong {
  color: var(--ink);
  font-weight: 600;
}

/* Sequential benchmark rows (Codabench-style list; index preview + full
   catalog both use this — a stacked column of rows, not a card grid). */
.benchmark-list {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.catalog-results .benchmark-list {
  margin-top: 0;
  border-top: 0;
}

.benchmark-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background 140ms ease;
}

.benchmark-row:hover,
.benchmark-row:focus-visible {
  background: #f9fbff;
}

.cover-media {
  overflow: hidden;
  background: var(--soft-panel);
}

.cover-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--accent-soft);
  color: var(--brand-blue);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.benchmark-row-cover {
  flex: 0 0 140px;
  width: 140px;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benchmark-row-cover .cover-monogram {
  font-size: 26px;
}

.benchmark-row-body {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 6px;
}

.benchmark-row-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.benchmark-row-intro {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.benchmark-row-publisher {
  color: var(--muted);
  font-size: 14px;
}

.benchmark-row-meta {
  display: flex;
  gap: 18px;
  margin-top: 2px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 500;
}

/* Home's Popular/Recent benchmarks: two sequential-row lists side by side,
   Codabench front-page style. Same row markup as the catalog, just denser. */
.home-benchmark-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 28px;
}

.home-benchmark-column-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.home-benchmark-column-heading h3 {
  color: var(--ink);
  font: 650 21px/1.3 var(--font-ui);
}

.home-benchmark-column-heading a {
  flex-shrink: 0;
  color: var(--brand-blue);
  font: 600 16px/1.4 var(--font-ui);
  text-decoration: none;
}

.home-benchmark-column-heading a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.benchmark-list.is-compact {
  margin-top: 0;
}

.benchmark-list.is-compact .benchmark-row {
  gap: 16px;
  padding: 18px 4px;
}

.benchmark-list.is-compact .benchmark-row-cover {
  flex-basis: 88px;
  width: 88px;
}

.benchmark-list.is-compact .benchmark-row-title {
  font-size: 17px;
}

.benchmark-list.is-compact .benchmark-row-intro {
  font-size: 15px;
}

@media (max-width: 860px) {
  .home-benchmark-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 980px) {
  .home-hero-shell {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0 48px;
  }

  .home-hero-shell-solo {
    padding: 56px 0 48px;
  }

  .home-hero-copy h1 {
    font-size: 36px;
  }

  .protocol-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .get-started-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-hero-copy h1 {
    max-width: none;
    font-size: 30px;
  }

  .home-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-primary {
    width: 100%;
  }

  .home-section {
    padding: 44px 0;
  }

  .home-section-title {
    font-size: 32px;
  }

  .protocol-points li {
    font-size: 16px;
  }

  .benchmark-row {
    flex-direction: column;
    gap: 14px;
  }

  .benchmark-row-cover {
    width: 100%;
    flex-basis: auto;
  }

  .benchmark-row-title {
    font-size: 19px;
  }
}

/* ---------- Account ---------- */
.datasets-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.datasets-header {
  padding: 56px 0 26px;
}

.datasets-header h1 {
  font-size: 32px;
  font-weight: 500;
}

.datasets-header p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.datasets-toolbar {
  display: flex;
  align-items: center;
  padding: 4px 0 18px;
}

.taskset-control {
  display: flex;
  align-items: center;
  flex-direction: row;
  max-width: 100%;
  min-width: 0;
  gap: 16px;
  font-size: 18px;
  font-weight: 500;
}

.taskset-control .select-picker,
.taskset-control .select-trigger {
  width: 420px;
  max-width: 100%;
}

.taskset-control .select-trigger {
  min-height: 46px;
  font-size: 18px;
  font-weight: 500;
}

.taskset-control .select-trigger > span:first-child,
.taskset-menu-option > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taskset-picker {
  position: relative;
}

.taskset-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  display: flex;
  align-items: stretch;
  max-height: min(420px, calc(100vh - 180px));
  padding: 5px;
  border: 1px solid #cfd9ee;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.10);
  overscroll-behavior: contain;
}

.taskset-menu[hidden],
.taskset-menu-panel[hidden] {
  display: none;
}

.taskset-menu-panel {
  width: 230px;
  min-width: 230px;
  overflow-y: auto;
  padding: 0 5px;
  border-left: 1px solid var(--line);
}

.taskset-menu-panel[data-taskset-level="benchmark"] {
  width: 250px;
  min-width: 250px;
}

.taskset-menu-panel[data-taskset-level="task"] {
  width: 300px;
  min-width: 300px;
}

.taskset-menu-panel:first-child {
  border-left: 0;
}

.taskset-menu-option,
.taskset-menu-back {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.taskset-menu-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 11px;
}

.taskset-menu-option:hover,
.taskset-menu-option:focus-visible,
.taskset-menu-option.is-expanded {
  background: #eef3ff;
  color: var(--brand-blue-dark);
}

.taskset-menu-option.is-selected {
  font-weight: 500;
}

.taskset-menu-arrow {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.taskset-menu-back {
  display: none;
  padding: 0 11px;
  color: var(--muted-strong);
}

.dataset-spec {
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
}

.dataset-spec-header {
  padding: 34px 0 28px;
}

.dataset-spec-header p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.dataset-spec-header h2 {
  margin-top: 5px;
  font-size: 28px;
  font-weight: 400;
}

.dataset-spec-groups {
  border-bottom: 1px solid var(--line);
}

.dataset-spec-group {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.dataset-spec-group h3 {
  color: var(--muted-strong);
  font-size: 18px;
  font-weight: 500;
}

.dataset-spec-group dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 36px;
  margin: 0;
}

.dataset-spec-field {
  min-width: 0;
}

.dataset-spec-field dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.dataset-spec-field dd {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: normal;
}

.dataset-spec-field dd code {
  color: var(--brand-blue-dark);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

@media (max-width: 980px) {
  .datasets-toolbar {
    gap: 18px;
  }

  .taskset-menu {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .taskset-menu-panel {
    width: 100%;
    min-width: 0;
    max-height: min(410px, calc(100vh - 190px));
    overflow-y: auto;
    padding: 0;
    border-left: 0;
  }

  .taskset-menu-back {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
  }

  .taskset-menu[data-active-level="benchmark"] .taskset-menu-panel:not([data-taskset-level="benchmark"]),
  .taskset-menu[data-active-level="family"] .taskset-menu-panel:not([data-taskset-level="family"]),
  .taskset-menu[data-active-level="task"] .taskset-menu-panel:not([data-taskset-level="task"]) {
    display: none;
  }
}

.account-main {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 56px 0 72px;
}

.terms-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 24px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--soft-panel);
}

.terms-prompt[hidden] {
  display: none;
}

.terms-prompt p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.terms-prompt a {
  color: var(--brand-blue-dark);
}

.terms-prompt button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--brand-blue);
  border-radius: 4px;
  background: var(--brand-blue);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.terms-prompt button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.terms-prompt .terms-status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
}

.account-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 0;
  border-bottom: 0;
}

.account-header h1 {
  margin: 7px 0 6px;
  font-size: clamp(30px, 3.5vw, 38px);
  font-weight: 500;
  letter-spacing: 0;
}

.account-handle,
.account-header-note,
.account-panel-heading p,
.submission-row p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.account-header-note {
  max-width: 320px;
  padding-bottom: 4px;
}

.account-workspace {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 52px;
  padding-top: 36px;
}

.account-sidebar {
  position: sticky;
  top: 82px;
  align-self: start;
  display: grid;
  gap: 2px;
}

.account-sidebar-link {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.account-sidebar-link:hover {
  background: #f7f9fc;
  color: var(--ink);
}

.account-sidebar-link.is-active {
  border-left-color: var(--brand-blue);
  background: var(--soft-panel);
  color: var(--brand-blue-dark);
  font-weight: 500;
}

.account-content,
.account-panel {
  min-width: 0;
}

.account-panel[hidden] {
  display: none;
}

.account-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: 0;
}

.account-panel-heading h2 {
  margin: 0 0 5px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0;
}

.account-profile-form {
  width: 100%;
  max-width: 720px;
}

.account-avatar-setting {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  min-height: 78px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.account-avatar-setting[hidden] {
  display: none;
}

.account-avatar-actions {
  display: flex;
  align-items: center;
}

.account-profile-setting-label {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 500;
}

.account-avatar-preview {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: #e8eef9;
  color: var(--brand-blue-dark);
  place-items: center;
  font-size: 17px;
  font-weight: 600;
}

.account-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar-preview img[hidden],
.account-avatar-preview span[hidden] {
  display: none;
}

.account-avatar-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.account-avatar-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--panel);
  color: var(--brand-blue-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.account-avatar-actions button[hidden] {
  display: none;
}

.account-avatar-actions button:hover:not(:disabled) {
  border-color: #aebee6;
  background: var(--soft-panel);
}

.account-avatar-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.account-avatar-status {
  width: 100%;
  max-width: 720px;
  margin: 8px 0 0;
}

.account-avatar-status.is-error {
  color: #a73535;
}

.account-profile-current {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 68px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.account-profile-current[hidden] {
  display: none;
}

.account-profile-setting-value {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.account-profile-setting-value.is-empty {
  color: var(--muted);
  font-weight: 400;
}

.account-profile-current button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.account-profile-current button:hover {
  color: var(--brand-blue-dark);
}

.account-profile-editor {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 68px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.account-profile-editor[hidden] {
  display: none;
}

.account-profile-editor input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: 500 15px/1 var(--font-ui);
  transition: border-color 140ms ease;
}

.account-profile-form.is-setup {
  max-width: 520px;
}

.account-profile-editor.is-setup {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
}

.account-profile-editor.is-setup .account-profile-setting-label {
  display: none;
}

.account-profile-editor input::placeholder {
  color: #748197;
}

.account-profile-editor input:hover {
  border-color: #aebee6;
}

.account-profile-editor input:focus {
  border-color: var(--brand-blue);
  outline: 0;
}

.account-profile-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.account-profile-submit {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--brand-blue);
  border-radius: 6px;
  background: var(--brand-blue);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.account-profile-submit:hover:not(:disabled) {
  border-color: var(--brand-blue-dark);
  background: var(--brand-blue-dark);
}

.account-profile-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.account-profile-cancel {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--brand-blue-dark);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.account-profile-cancel:hover {
  border-color: #aebee6;
  background: var(--soft-panel);
}

.account-profile-status {
  margin: 10px 0 0;
  max-width: 720px;
}

.account-profile-status.is-error {
  color: #a73535;
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 0;
}

.account-summary > div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 4px 24px 24px 0;
}

.account-summary dt {
  color: var(--muted);
  font-size: 14px;
}

.account-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 500;
}

.account-overview-recent {
  margin-top: 34px;
}

.account-preference {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.account-preference label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}

.account-preference .account-status {
  margin: 8px 0 0 26px;
}

.account-subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.account-subheading h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.account-subheading button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.account-row-action,
.submission-pagination button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--brand-blue-dark);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.account-row-action:hover,
.submission-pagination button:hover:not(:disabled) {
  border-color: #9fb5d0;
  background: var(--soft-panel);
}

.submission-pagination button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.55;
}

.account-list,
.submission-history {
  border-top: 0;
}

.account-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.account-list-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-list-row strong,
.submission-row strong {
  font-size: 15px;
  font-weight: 500;
}

.account-list-row span {
  color: var(--muted);
  font-size: 14px;
}

.account-solver-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 220px;
  gap: 20px;
}

.account-solver-row > strong,
.account-solver-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-solver-row > span:last-child {
  text-align: right;
}

.identity-link-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto;
  gap: 8px 12px;
  align-items: end;
  max-width: 760px;
  margin-top: 22px;
}

.identity-link-form[hidden] {
  display: none;
}

.identity-link-form label {
  align-self: end;
}

.identity-link-form label:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
}

.identity-link-form > input {
  grid-column: 1;
}

.identity-code-control {
  grid-column: 2;
}

.identity-link-form > button,
.identity-link-action,
.challenge-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--brand-blue);
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.identity-link-action {
  width: fit-content;
  margin-top: 18px;
}

.identity-link-action[hidden] {
  display: none;
}

.identity-link-form > button:hover,
.identity-link-action:hover,
.challenge-action:hover {
  border-color: var(--brand-blue);
  background: var(--soft-panel);
}

.account-status,
.account-empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.account-empty {
  margin: 0;
  padding: 22px 0;
  border-bottom: 0;
}

.submission-row {
  display: grid;
  grid-template-columns: minmax(175px, 0.9fr) minmax(220px, 1.15fr) 165px minmax(190px, auto);
  align-items: center;
  gap: 20px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.submission-row-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.submission-benchmark {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submission-date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.submission-status {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--soft-panel);
  color: var(--muted-strong);
  font-size: 14px;
  text-transform: capitalize;
}

.submission-publication {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff4dc;
  color: #7a5314;
  font-size: 14px;
  text-transform: capitalize;
}

.submission-publication-published {
  background: #e8f5ed;
  color: #25623f;
}

.submission-publication-discarded {
  background: #f1f2f4;
  color: var(--muted-strong);
}

.submission-publication-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.submission-publication-actions.is-empty {
  min-width: 190px;
}

.submission-publication-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--brand-blue-dark);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.submission-publication-actions button:disabled {
  cursor: default;
  opacity: 0.5;
}

.submission-publication-message {
  color: var(--muted);
  font-size: 14px;
}

.submission-status-completed {
  background: #e8f5ed;
  color: #25623f;
}

.submission-status-failed,
.submission-status-expired {
  background: #fbecec;
  color: #9b3434;
}

.submission-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.submission-pagination span {
  min-width: 58px;
  color: var(--muted-strong);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 720px) {
  .account-main {
    width: min(100% - 32px, 1040px);
    padding-top: 48px;
  }

  .account-header {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .account-header-note {
    max-width: none;
  }

  .account-workspace {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 26px;
  }

  .account-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .account-sidebar-link {
    border-bottom: 2px solid transparent;
    border-left: 0;
    text-align: center;
  }

  .account-sidebar-link.is-active {
    border-bottom-color: var(--brand-blue);
    border-left: 0;
  }

  .account-summary > div {
    padding-right: 12px;
  }

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

  .account-avatar-setting,
  .account-profile-current {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    padding: 16px 0;
  }

  .account-avatar-setting .account-profile-setting-label,
  .account-profile-current .account-profile-setting-label {
    grid-column: 1 / -1;
  }

  .account-profile-editor:not(.is-setup) {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0;
  }

  .account-profile-editor:not(.is-setup) .account-profile-actions {
    justify-self: start;
  }

  .account-profile-actions {
    align-self: flex-start;
  }

  .datasets-header h1 {
    font-size: 30px;
  }

  .dataset-spec-group {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dataset-spec-group dl {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dataset-spec-header h2 {
    font-size: 23px;
  }

  .dataset-spec-group h3 {
    font-size: 17px;
  }

  .dataset-spec-field dt {
    font-size: 14px;
  }

  .dataset-spec-field dd {
    font-size: 16px;
  }

  .identity-link-form {
    grid-template-columns: 1fr;
  }

  .identity-link-form label:nth-of-type(2),
  .identity-link-form > input,
  .identity-code-control {
    grid-column: 1;
    grid-row: auto;
  }

  .identity-link-form > button,
  .identity-link-action {
    width: 100%;
  }

  .submission-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 18px 0;
  }

  .submission-benchmark {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .submission-publication-actions.is-empty {
    display: none;
  }

  .account-solver-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 16px;
    padding: 14px 0;
  }

  .account-solver-row > span:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }

  .submission-pagination {
    justify-content: space-between;
  }

}

/* ---------- CLI activation ---------- */
.activation-page {
  min-height: 100vh;
  background: var(--bg);
}

.activation-brand {
  width: min(calc(100% - 48px), var(--home-nav-width));
  margin: 0 auto;
  padding: 24px 0;
}

.activation-main {
  display: grid;
  min-height: calc(100vh - 92px);
  place-items: center;
  padding: 40px 24px 120px;
}

.activation-main > .terms-prompt {
  width: min(100%, 620px);
}

.activation-panel {
  width: min(100%, 440px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.activation-panel h1 {
  margin-bottom: 12px;
  font-size: 30px;
}

.activation-panel > p:first-of-type {
  margin-bottom: 24px;
  color: var(--muted-strong);
  line-height: 1.55;
}

#activation-code {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: 500 20px/1 var(--font-mono);
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

#activation-code:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(37, 99, 169, 0.16);
}

.activation-status {
  min-height: 48px;
  padding: 14px 0 8px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.45;
}

.activation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.activation-actions button,
.activation-sign-in {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: 500 15px/1 var(--font-ui);
}

.activation-actions button {
  cursor: pointer;
}

.activation-deny {
  background: var(--panel);
  color: var(--muted-strong);
}

.activation-approve {
  border-color: var(--brand-blue) !important;
  background: var(--brand-blue);
  color: #fff;
}

.activation-sign-in {
  display: grid;
  margin-top: 12px;
  place-items: center;
  background: var(--brand-blue);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 560px) {
  .activation-brand {
    width: min(calc(100% - 32px), var(--home-nav-width));
    padding-top: 18px;
  }

  .activation-main {
    align-items: start;
    padding: 56px 16px 64px;
  }

  .activation-panel {
    padding: 26px 20px;
  }
}

/* ---------- Page selectors ---------- */
.guide-toolbar {
  gap: 14px 24px;
  flex-wrap: wrap;
}

.benchmark-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 20px 0 14px;
}

.benchmark-select-control .select-picker,
.benchmark-select-control .select-trigger,
.benchmark-select-control .select-menu {
  width: 320px;
  max-width: 100%;
}

.benchmark-select-control {
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
}

.benchmark-select-control .select-trigger {
  min-height: 46px;
  font-size: 15px;
  font-weight: 500;
}

.benchmark-select-control .select-option {
  min-height: 40px;
  font-size: 15px;
  font-weight: 400;
}

.benchmark-select-control .select-trigger > span:first-child,
.benchmark-select-control .select-option {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .view-tabs {
    gap: 18px;
  }

  .benchmark-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding-top: 16px;
  }

  .benchmark-select-control {
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
    width: 100%;
  }

  .benchmark-select-control .select-picker,
  .benchmark-select-control .select-trigger,
  .benchmark-select-control .select-menu {
    width: 100%;
  }

  .taskset-control {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .taskset-control .select-picker,
  .taskset-control .select-trigger,
  .taskset-control .select-menu {
    width: 100%;
  }

  .guide-toolbar {
    padding-left: 0;
  }
}

.publish-main {
  width: min(100% - 48px, 1080px);
}

.publish-workspace {
  display: grid;
  gap: 56px;
  padding-top: 32px;
}

.publish-new-challenge,
.publish-mine {
  min-width: 0;
}

.publish-form {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.publish-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.publish-image-field > label,
.publish-advanced-section > h3 {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.publish-placeholder-field {
  display: block;
}

.publish-placeholder-field input {
  min-height: 48px;
  padding: 0 15px;
  font-size: 14px;
}

.publish-advanced {
  display: grid;
  gap: 18px;
  padding-top: 6px;
}

.publish-advanced > h2 {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.publish-credential-grid,
.publish-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.publish-advanced-settings {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 620px;
}

.publish-advanced-section {
  display: grid;
  gap: 10px;
}

.publish-advanced-section h3 {
  margin: 0;
}

.publish-form-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 6px;
}

.publish-submit {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--brand-blue);
  border-radius: 7px;
  background: var(--brand-blue);
  color: #ffffff;
  font: 600 15px/1 var(--font-ui);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 78, 166, 0.16);
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.publish-submit:hover {
  background: var(--brand-blue-dark);
  box-shadow: 0 12px 26px rgba(23, 78, 166, 0.22);
  transform: translateY(-1px);
}

.publish-submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.publish-status {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 3px solid var(--brand-blue);
  background: var(--soft-panel);
}

.publish-status[hidden] {
  display: none;
}

.publish-headline {
  font-size: 15px;
}

.publish-headline.is-error {
  color: var(--danger);
}

.publish-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publish-step {
  display: grid;
  grid-template-columns: 18px minmax(110px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
}

.publish-step.is-failed .publish-step-mark {
  color: var(--danger);
}

.publish-step.is-ok .publish-step-mark {
  color: var(--brand-blue);
}

.publish-step span:last-child {
  color: var(--muted);
}

.challenge-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.challenge-table th,
.challenge-table td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.challenge-table th {
  color: var(--muted);
  font-weight: 500;
}

.challenge-status {
  color: var(--muted-strong);
  font-weight: 600;
  text-transform: capitalize;
}

.challenge-status-live {
  color: #25623f;
}

.challenge-status-failed {
  color: var(--danger);
}

.challenge-controls {
  padding-right: 0;
  text-align: right;
}

.challenge-control-group {
  display: flex;
  gap: 8px;
  justify-content: end;
}

.challenge-action {
  min-height: 38px;
  padding: 0 12px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .publish-main {
    width: min(100% - 32px, 1080px);
  }

  .publish-workspace {
    gap: 48px;
    padding-top: 32px;
  }

  .publish-credential-grid,
  .publish-resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .publish-form-actions,
  .publish-submit {
    width: 100%;
  }

  .challenge-table,
  .challenge-table tbody,
  .challenge-table tr,
  .challenge-table td {
    display: block;
    width: 100%;
  }

  .challenge-table thead {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
  }

  .challenge-table tr {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .challenge-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 5px 0;
    border: 0;
    text-align: right;
  }

  .challenge-table td:not(:first-child):not(.challenge-controls)::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
  }

  .challenge-controls {
    padding-top: 12px !important;
  }

  .challenge-control-group {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-notes .select-caret,
  .publish-submit {
    transition: none;
  }
}
