/* DexBench v1.0 (GA) mockup. Loaded after brand.css; only new components and GA overrides live here. */

/* ---------- v1.0 tag beside the wordmark (logo design unchanged: Space Grotesk 600) ---------- */
.brand { align-items: center }
.ver-tag { display: inline-flex; align-items: center; font: 600 10.5px/1 var(--num); letter-spacing: .02em; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); border-radius: 999px; padding: 4px 7px 3px; white-space: nowrap }
.brand .ver-tag { margin-left: -2px; transform: translateY(-6px) }
.hs-title .ver-tag.hero { font-size: clamp(12px, 1.25vw, 17px); letter-spacing: 0; padding: .32em .6em .26em; margin-left: .35em; vertical-align: super; transform: translateY(-.15em); text-shadow: none; backdrop-filter: blur(6px); background: rgba(35, 179, 153, .18) }
.footer-brand .ver-tag.sm { font-size: 9.5px; padding: 3px 6px 2px; margin-left: -4px }
.task-summary span.tbc { display: inline-block; margin: 0 0 0 4px; font: 600 9px/1 var(--mono); color: #1b1203 }
.hs-slide.brand .hs-meta { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(0, 0, 0, .9) }
.obj-task span { white-space: nowrap }
.tbc { display: inline-block; font: 600 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #1b1203; background: var(--warn); border-radius: 4px; padding: 3px 5px; vertical-align: 1px; margin-left: 4px }

/* ---------- Hero: feature slides (01-04) ---------- */
.hs-slide.feat .hs-shade { background: linear-gradient(90deg, rgba(5, 8, 15, .9) 0%, rgba(5, 8, 15, .72) 38%, rgba(5, 8, 15, .12) 72%, rgba(5, 8, 15, 0) 100%), linear-gradient(180deg, transparent 60%, rgba(5, 8, 15, .6)) }
.hs-feat { position: absolute; left: clamp(28px, 4.5vw, 64px); top: 50%; transform: translateY(calc(-50% + 12px)); max-width: min(520px, 46%); opacity: 0; transition: opacity .5s .25s, transform .5s .25s }
.hs-slide.is-active .hs-feat { opacity: 1; transform: translateY(calc(-50% - 24px)) }
.hs-num { font: 600 clamp(40px, 5vw, 68px)/1 var(--num); color: var(--accent); letter-spacing: -.04em; margin-bottom: 16px }
.hs-num i { font-style: normal; font-size: .3em; color: rgba(255, 255, 255, .55); letter-spacing: .02em; margin-left: 8px; vertical-align: .9em }
.hs-feat .hs-eyebrow { margin-bottom: 10px }
.hs-ftitle { margin: 0 0 16px; font: 600 clamp(28px, 3.4vw, 48px)/1.08 var(--num); letter-spacing: -.035em; color: #fff; text-transform: none }
.hs-ftext { margin: 0; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.65; color: rgba(255, 255, 255, .84) }
.hs-tagline { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .18); font-weight: 600; color: #fff; font-size: clamp(14px, 1.15vw, 16px) }
.hs-on { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .82) }
.hs-on b { color: #fff; font-weight: 600; margin-right: 6px }
.hs-slide.feat .hs-foot { background: linear-gradient(180deg, transparent, rgba(5, 8, 15, .7)) }
@media (max-width: 760px) {
  .hs-feat { left: 20px; right: 20px; max-width: none; top: 24px; transform: none }
  .hs-slide.is-active .hs-feat { transform: none }
  .hs-ftext { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden }
  .hs-tagline, .hs-slide.feat .hs-foot .hs-eyebrow { display: none }
  .hs-slide.feat .hs-shade { background: rgba(5, 8, 15, .72) }
}

/* ---------- Scenes & tasks (overview) ---------- */
.scene-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; padding: 38px 0; border-top: 1px solid var(--line) }
.scene-row:first-of-type { border-top: 0; padding-top: 6px }
.scene-cut { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; background: radial-gradient(ellipse 70% 62% at 50% 55%, rgba(35, 179, 153, .14), rgba(35, 179, 153, 0) 70%) }
.scene-cut video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain }
.scene-orbit { position: absolute; left: 6px; bottom: 6px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
.scene-k { display: flex; align-items: center; gap: 10px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent) }
.scene-k span { color: var(--muted); letter-spacing: .08em }
.scene-k span::before { content: "·"; margin-right: 10px; color: var(--muted) }
.scene-info h3 { margin: 10px 0 8px; font: 600 30px/1.15 var(--num); letter-spacing: -.03em }
.scene-info > p { margin: 0 0 22px; font-size: 14px; color: var(--muted); max-width: 62ch }
.scene-tasks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.scene-tasks .tcard .tx { padding-top: 10px }
.scene-tasks .tcard .nm { font-size: 14.5px }
@media (max-width: 1000px) { .scene-row { grid-template-columns: 1fr; gap: 18px } .scene-cut { max-width: 560px } }
@media (max-width: 640px) { .scene-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

/* ---------- Diverse objects ---------- */
.obj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }
.obj { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .02); display: flex; flex-direction: column }
.obj-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000 }
.obj-media img { width: 100%; height: 100%; object-fit: cover; display: block }
.obj-cls { position: absolute; left: 14px; top: 14px; font: 600 12px var(--num); letter-spacing: .02em; color: #04110d; background: var(--accent); border-radius: 999px; padding: 6px 12px; z-index: 1 }
.obj-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 }
.obj-task { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none }
.obj-body p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6 }
.obj-more { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-top: 1px solid var(--line) }
.obj-more span { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px }
.obj-more a { font-size: 12px; color: var(--fg); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px }
.obj-more a:hover { border-color: var(--accent); color: var(--accent) }
@media (max-width: 900px) { .obj-grid { grid-template-columns: 1fr } }

/* ---------- Axes / sensing tweaks ---------- */
.axes-grid.wide .axis.on .axis-top em { color: var(--accent) }
/* (11/08) the wrist-camera card is a plain Policy input card now: no "New in v1.0" highlight */

/* ---------- Leaderboard ---------- */
.head-links { display: flex; gap: 20px; align-items: center }
.lb-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px }
.lb-hero .page-header { margin-bottom: 0 }
.lb-cta { display: flex; gap: 10px; flex: 0 0 auto; padding-bottom: 6px }
.lb-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; margin: 6px 0 22px; overflow: hidden }
.lb-stats div { padding: 16px 20px; border-left: 1px solid var(--line) }
.lb-stats div:first-child { border-left: 0 }
.lb-stats b { display: block; font: 600 26px/1.1 var(--num); letter-spacing: -.03em }
.lb-stats span { font-size: 12px; color: var(--muted) }
.lb-toolbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 6px }
.lb-toolbar .confidence-toggle { margin-left: auto }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px }
.seg button { font: 600 13px var(--sans); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer }
.seg button[aria-pressed=true] { background: var(--fg); color: var(--bg) }
.mock-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 14px; max-width: 110ch }
.mock-note .tbc { margin: 0 6px 0 0 }
.lb-wrap { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .015) }
table.lb { width: 100%; border-collapse: collapse; font-size: 14px }
.lb th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: bottom }
.lb th small { display: block; font-size: 9.5px; letter-spacing: .06em; text-transform: none; opacity: .75; margin-top: 3px }
.lb th.num, .lb td.num { text-align: right }
.lb td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle }
.lb tbody tr:last-child td { border-bottom: 0 }
.lb .rk { width: 64px; text-align: center }
/* The four scene columns share one width and centre their header and score, so the gaps between them are equal
   whatever the scene name's length; numbers use tabular figures so the decimals line up down a column. */
.lb th.sc, .lb td.sc { text-align: center; width: 9%; min-width: 116px; padding-left: 8px; padding-right: 8px }
.lb .num { font-variant-numeric: tabular-nums }
.rank { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 600 14px var(--num); color: var(--fg); border: 1px solid var(--line) }
.rank.podium { border-color: var(--accent); color: var(--accent); background: var(--accent-soft) }
.rank.r1 { background: var(--accent); color: #04110d }
.rank.ghost { border-style: dashed; color: var(--muted) }
.lb-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.lb-name b { font-size: 15.5px; font-weight: 600 }
.lb-name .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block }
.lb-meta { font-size: 12px; color: var(--muted); margin-top: 4px }
.badge { font: 600 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; padding: 3px 6px }
.badge.base { color: var(--muted); background: rgba(255, 255, 255, .07) }
.badge.ver { color: var(--accent); background: var(--accent-soft) }
.lb-mean { min-width: 150px }
.lb-mean b { font: 600 22px var(--num); letter-spacing: -.02em }
.lb-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin: 6px 0 0 auto; width: 120px; overflow: hidden }
.lb-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px }
.lb-wrap:not(.show-ci) .ci { display: none }
.lb .ci { display: block; font: 500 11px var(--num); color: var(--muted); margin-top: 4px }
.lb-sc { font: 500 16px var(--num) }
.lb-date { font: 500 12px var(--num); color: var(--muted); white-space: nowrap }
.lb-toggle { margin-left: 10px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; transition: transform .2s }
.lb-row.expandable { cursor: pointer }
.lb-row.expandable:hover td { background: rgba(255, 255, 255, .025) }
.lb-row.open .lb-toggle { transform: rotate(180deg); color: var(--accent); border-color: var(--accent) }
.lb-detail td { background: rgba(255, 255, 255, .02); padding-top: 8px }
.lb-tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px }
.lb-scene-h { font: 600 12px var(--sans); margin-bottom: 6px }
.lb-task { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 1px dashed var(--line) }
.lb-task b { font: 600 13px var(--num); color: var(--fg) }
.lb-task.na b { color: var(--muted); font-weight: 400 }
.lb-task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.button.sm { min-height: 36px; padding: 6px 14px; font-size: 13px; gap: 10px }
.button.disabled { opacity: .55; cursor: not-allowed; background: transparent; color: var(--fg); border-color: var(--line) }
.lb-how { margin: 56px 0 32px; padding-top: 48px; border-top: 1px solid var(--line) }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px }
.steps li { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: rgba(255, 255, 255, .02) }
.steps li > span { font: 600 13px var(--num); color: var(--accent) }
.steps h3 { margin: 10px 0 8px; font-size: 16px }
.steps p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6 }
.lb-taskgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px }
.lb-taskgrid .tcard .nm { font-size: 14px }
#lb-preview .table-note { display: flex; justify-content: space-between; align-items: center; gap: 20px }
#lb-preview .table-note .mock-note { margin: 0 }
@media (max-width: 1000px) { .steps, .lb-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)) } .lb-taskgrid { grid-template-columns: repeat(3, minmax(0, 1fr)) } .lb-hero { flex-direction: column; align-items: flex-start } }
@media (max-width: 640px) { .steps, .lb-tasks { grid-template-columns: 1fr } .lb-stats { grid-template-columns: repeat(2, 1fr) } .lb-stats div:nth-child(3) { border-left: 0 } .lb-taskgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) } #lb-preview .table-note { flex-direction: column; align-items: flex-start } }

/* ---------- Partners ---------- */
.pt-fixed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 20px }
.pt-k { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px }
.pt-logos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px }
/* No white tiles: transparent cells with a hairline, every logo in one light gray (ga/logos/mono/) */
.ptile { height: 104px; border-radius: 12px; background: rgba(255, 255, 255, .02); display: grid; place-items: center; padding: 22px 26px; border: 1px solid var(--line); transition: border-color .2s, background .2s }
.ptile:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04) }
.ptile .plogo { max-width: 100%; max-height: 40px; object-fit: contain; opacity: .9 }
.ptile.big .plogo { max-height: 44px }
.plogo[data-logo="lg"], .plogo[data-logo="physicssimlab"] { max-height: 46px }
.plogo[data-logo="ndotlight"], .plogo[data-logo="spaceai"] { max-height: 26px }
.pm .plogo[data-logo="ndotlight"], .pm .plogo[data-logo="spaceai"], .pm .plogo[data-logo="postech"], .pm .plogo[data-logo="himart"], .pm .plogo[data-logo="hotel-lotte"] { max-height: 22px }
.pm .plogo[data-logo="snu"], .pm .plogo[data-logo="holiday"], .pm .plogo[data-logo="korea-university"], .pm .plogo[data-logo="cj-logistics"] { max-height: 40px }
.pt-flow { margin-top: 32px }
.pt-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent) }
.pt-track { display: flex; width: max-content; animation: pt-flow 60s linear infinite }
.pt-marquee:hover .pt-track { animation-play-state: paused }
.pt-set { display: flex; gap: 14px; padding-right: 14px }
.pm { flex: 0 0 auto; width: 180px; height: 72px; display: grid; place-items: center; padding: 12px 20px; opacity: .5; transition: opacity .2s }
.pm:hover { opacity: .95 }
.pm .plogo { max-width: 100%; max-height: 32px; object-fit: contain }
/* left to right: the track starts shifted by one set and moves back to zero */
@keyframes pt-flow { from { transform: translateX(-50%) } to { transform: translateX(0) } }
@media (prefers-reduced-motion: reduce) { .pt-track { animation: none } }
.pt-all { margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px }
.pt-all summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 10px }
.pt-all summary::-webkit-details-marker { display: none }
.pt-all summary::after { content: "+"; margin-left: auto; font: 400 20px var(--num); color: var(--accent) }
.pt-all[open] summary::after { content: "−" }
.pt-all summary span { font: 500 11px var(--num); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px }
.pt-list { display: grid; grid-template-columns: 1fr 1fr 2fr 1fr; gap: 24px; padding: 4px 0 22px }
.pl-col h4 { margin: 0 0 10px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: flex; gap: 8px }
.pl-col h4 span { color: var(--muted) }
.pl-col ul { margin: 0; padding: 0; list-style: none; columns: 1 }
.pl-col:nth-child(3) ul { columns: 2; column-gap: 24px }
.pl-col li { font-size: 14px; padding: 5px 0; border-bottom: 1px solid var(--line); break-inside: avoid }
@media (max-width: 900px) { .pt-fixed { grid-template-columns: 1fr } .pt-logos { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)) } .pt-list { grid-template-columns: 1fr 1fr } }

/* ---------- Sim-to-real ---------- */
.s2r-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px }
.s2r-col { border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px }
.s2r-col.next { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: linear-gradient(160deg, rgba(35, 179, 153, .08), rgba(35, 179, 153, 0) 60%) }
.s2r-k { display: flex; align-items: center; gap: 10px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px }
.s2r-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted) }
.s2r-col.next .s2r-k { color: var(--accent) }
.s2r-col.next .s2r-k i { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft) }
.s2r-col ul, .s2r-col ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px }
.s2r-col li { font-size: 14px; color: var(--muted); line-height: 1.6; padding-left: 26px; position: relative }
.s2r-col li b { color: var(--fg); font-weight: 600 }
.s2r-col.done li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700 }
.s2r-col ol { counter-reset: s }
.s2r-col.next li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font: 600 10px/17px var(--num); text-align: center }
.s2r-when { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font: 500 12px var(--mono); letter-spacing: .06em; color: var(--fg) }
.s2r-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 20px; padding: 18px 22px; border-radius: 12px; background: rgba(255, 255, 255, .03) }
.s2r-cta p { margin: 0; font-size: 14px; color: var(--muted) }
.s2r-cta .actions { display: flex; gap: 10px; flex: 0 0 auto }
@media (max-width: 900px) { .s2r-grid { grid-template-columns: 1fr } .s2r-cta { flex-direction: column; align-items: flex-start } }

/* ---------- Taxonomy (from taxonomy_section_v2, scoped) ---------- */
.taxo { border-bottom: 0 }
.taxo h2 { font-size: 34px; margin: 14px 0 }
.taxo .lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 860px; margin: 0 }
.taxo .lead b { color: var(--fg); font-weight: 500 }
.taxo .lead2 { font-size: 17px; line-height: 1.6; color: var(--fg); max-width: 860px; margin: 12px 0 0; font-weight: 500 }
.tx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0 40px }
.tx-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px 20px; display: flex; flex-direction: column }
.tx-stat .n { font: 600 56px/1 var(--num); color: var(--accent); letter-spacing: -.02em }
.tx-stat .n.inf { font-size: 60px }
.tx-stat .t { font-size: 17px; font-weight: 600; margin-top: 10px }
.tx-stat .d { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5 }
.tx-stat .inset { margin-top: auto; padding-top: 14px }
.tx-stat .inset .box { display: flex; align-items: center; gap: 12px; background: var(--accent-soft); border: 1px solid rgba(35, 179, 153, .4); border-radius: 10px; padding: 10px 12px }
.tx-stat .inset .num { font: 600 20px/1 var(--num); color: var(--accent); white-space: nowrap }
.tx-stat .inset .num small { font: 500 11px var(--mono); color: var(--muted); margin-left: 4px }
.tx-stat .inset .txt { font-size: 13px; line-height: 1.4; color: var(--fg) }
.tx-stat .inset .txt a { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap }
.anat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.tx-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column }
.tx-card .viz { height: 250px; background: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px) 0 0/22px 22px, var(--soft); border-bottom: 1px solid var(--line); padding: 26px 22px; position: relative }
.tx-card .body { padding: 18px 22px 22px }
.tx-card .body h3 { margin: 0; font-size: 19px; font-weight: 600 }
.tx-card .body h3 small { font: 500 11px var(--mono); color: var(--accent); letter-spacing: .12em; margin-left: 10px; vertical-align: middle; text-transform: uppercase }
.tx-card .body p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted) }
.taxo .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-content: center; height: 100% }
.xchip { font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--fg) }
.xchip.on { background: var(--accent); border-color: var(--accent); color: #04110d }
.xchip.more { border-style: dashed; color: var(--muted) }
.taxo .tree { position: relative; padding-left: 14px }
.taxo .tree .root { display: inline-block; background: var(--accent); color: #04110d; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 9px; margin-bottom: 12px }
.taxo .tree ul { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1.5px solid rgba(255, 255, 255, .22) }
.taxo .tree li { position: relative; margin: 0 0 9px; padding-left: 14px }
.taxo .tree li:before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1.5px; background: rgba(255, 255, 255, .22) }
.taxo .tree li span { display: block; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; font-size: 13px; color: var(--muted) }
.taxo .tree li span b { color: var(--accent); font-weight: 600 }
.taxo .tree li.more span { border-style: dashed; background: none }
.taxo .world li span { display: flex; justify-content: space-between; gap: 10px; color: var(--fg); font-weight: 500 }
.taxo .world li span em { font-style: normal; color: var(--muted); font-weight: 400 }
.taxo .world .plus { position: absolute; left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 1px solid rgba(255, 255, 255, .3); font: 10px/12px var(--mono); text-align: center; color: var(--muted) }
/* The dexbench.org link sits in the empty space right of the intro, bottom-aligned with its last line */
.tx-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 48px; align-items: end }
.tx-side { padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 14px; background: var(--accent-soft) }
.tx-side p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--muted) }
.tx-side .button { width: 100%; justify-content: center; white-space: nowrap }
@media (max-width: 900px) { .tx-stats, .anat, .tx-head { grid-template-columns: 1fr } .tx-head { gap: 20px } .tx-side { min-width: 0 } .tx-side .button { white-space: normal } }

/* ---------- Tasks index ---------- */
.scene-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; margin: 44px 0 18px; padding-top: 26px; border-top: 1px solid var(--line) }
.tasks-main .page-header + .scene-head { margin-top: 8px }
.sh-cut { aspect-ratio: 16 / 9; border-radius: 12px; background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(35, 179, 153, .14), transparent 70%) }
.sh-cut img { width: 100%; height: 100%; object-fit: contain; display: block }
.scene-head h2 { margin: 6px 0 4px; font: 600 24px var(--num); letter-spacing: -.02em }
.scene-head p { margin: 0; font-size: 13.5px; color: var(--muted) }
.tasks-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.astra-banner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0; margin: 56px 0 8px; border: 1px solid color-mix(in srgb, var(--proto) 55%, transparent); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--fg); background: linear-gradient(120deg, rgba(167, 139, 250, .12), rgba(167, 139, 250, 0) 65%) }
.astra-banner:hover { border-color: var(--proto) }
.ab-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 200px }
.ab-body { padding: 28px 32px }
.ab-body .eyebrow { color: var(--proto); margin-bottom: 12px }
.ab-body h3 { margin: 0 0 10px; font-size: 22px }
.ab-body p { margin: 0 0 14px; font-size: 14px; color: var(--muted) }
.ab-body .text-link { color: var(--proto) }
.ts-task { grid-template-columns: 44px minmax(0, 1fr) }
.ts-envhead { padding-bottom: 6px }
.ts-astra { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--proto) 60%, transparent); border-radius: 8px; text-decoration: none; color: var(--fg); font-size: 13px }
.ts-astra span { font-size: 12px; color: var(--muted) }
.ts-astra:hover, .ts-astra[aria-current=page] { border-style: solid; border-color: var(--proto); background: rgba(167, 139, 250, .08) }
@media (max-width: 900px) { .scene-head { grid-template-columns: 120px minmax(0, 1fr) } .tasks-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) } .astra-banner { grid-template-columns: 1fr } .ts-astra { flex: 0 0 auto; flex-direction: row; gap: 6px; border-radius: 999px; padding: 6px 12px } .ts-envhead { font-size: 11px } }

/* ---------- Task page: merged overview + variations; placeholders ---------- */
.var-merged { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line) }
.var-merged .var-intro h2 { margin-top: 0 }
.mock-slot { border: 1px dashed rgba(251, 191, 36, .45); border-radius: 12px; padding: 22px 24px; background: rgba(251, 191, 36, .04) }
.mock-slot p { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 80ch }
.mock-slot.big { padding: 36px 32px }
.mock-slot.big h2 { margin: 14px 0 6px }
.mock-slot .task-links { margin-top: 20px; flex-wrap: wrap }
.mock-k { font: 600 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #1b1203; background: var(--warn); border-radius: 4px; padding: 3px 6px }

/* ---------- Docs / get started ---------- */
.doc-actions { display: flex; gap: 12px; margin: -12px 0 6px }
.button.arxiv { background: transparent; color: var(--fg); border: 1px solid rgba(255, 255, 255, .3); gap: 12px }
.button.arxiv:hover { border-color: #b31b1b; background: rgba(179, 27, 27, .1); color: var(--fg) }
.ax-logo { font: 700 13px var(--num); color: #fff; background: #b31b1b; border-radius: 4px; padding: 3px 7px; letter-spacing: -.01em }
.button.arxiv em { font: 600 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px }
.resource.soon { opacity: .75 }
.resource.new h3::after { content: "New"; font: 600 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #04110d; background: var(--accent); border-radius: 4px; padding: 3px 6px; margin-left: 10px; vertical-align: 3px }

/* ---------- Toast for placeholder links ---------- */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--fg); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); transition: opacity .2s, transform .2s; max-width: min(560px, calc(100vw - 32px)) }
#toast.on { opacity: 1; transform: translate(-50%, 0) }
#toast b { color: var(--warn); margin-right: 6px }

/* ---------- Next steps (overview) ---------- */
.ns-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px }
.ns-card { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px 32px; background: linear-gradient(160deg, rgba(35, 179, 153, .09), rgba(35, 179, 153, 0) 55%), rgba(255, 255, 255, .015); overflow: hidden }
.ns-card:first-child { border-color: color-mix(in srgb, var(--accent) 45%, transparent) }
.ns-num { font: 600 64px/1 var(--num); letter-spacing: -.04em; color: var(--accent); margin-bottom: 18px }
.ns-card h3 { margin: 0 0 10px; font: 600 24px/1.2 var(--num); letter-spacing: -.02em }
.ns-card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 56ch }
@media (max-width: 800px) { .ns-grid { grid-template-columns: 1fr } }
.taxo + .next { border-top: 1px solid var(--line) }

/* ---------- Leaderboard rows open the model page ---------- */
.lb-row[data-model] { cursor: pointer; user-select: none }
.lb-row[data-model]:hover td, .lb-row[data-model]:focus-visible td { background: rgba(255, 255, 255, .03) }
.lb-row[data-model]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px }
.lb .lb-date { vertical-align: middle }
.lb-upd { display: flex; flex-direction: column; align-items: flex-start; gap: 4px }
.lb-open { font: 600 12px var(--sans); color: var(--accent); text-decoration: none; white-space: nowrap }
.lb-open:hover { text-decoration: underline }
.lb-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 10px }
.lb-hint::before { content: "⇢"; color: var(--accent); margin-right: 6px }

/* ---------- Model page ---------- */
.mp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px }
.mp-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line) }
.mp-hero h1 { display: flex; align-items: center; gap: 14px; margin: 8px 0 10px }
.mp-hero h1 .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block }
.mp-hero .lede { margin: 0 0 12px }
.mp-badges { display: flex; gap: 8px }
.mp-score { display: flex; gap: 28px; align-items: flex-end; flex: 0 0 auto }
.mp-rank, .mp-mean { display: flex; flex-direction: column; align-items: flex-start; gap: 6px }
.mp-rank .rank { width: 52px; height: 52px; font-size: 22px }
.mp-mean b { font: 600 56px/1 var(--num); letter-spacing: -.03em; color: var(--accent) }
.mp-score em { font: 500 10.5px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.mp-mean span { font: 500 12px var(--num); color: var(--muted) }
.mp-nav { position: sticky; top: 88px; z-index: 3; display: flex; gap: 6px; margin: 18px 0 6px; padding: 8px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); overflow-x: auto }
.mp-nav a { font-size: 13px; color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap }
.mp-nav a:hover { color: var(--fg); background: rgba(255, 255, 255, .05) }
.mp-sec { padding: 40px 0 18px; scroll-margin-top: 150px }
.mp-sec .section-head h2 { margin: 0 0 8px }
.mp-tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 14px; background: rgba(255, 255, 255, .015) }
.mp-scene-h { font: 600 14px var(--sans); margin-bottom: 8px }
.mp-task { padding: 9px 0; border-bottom: 1px dashed var(--line) }
.mp-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline }
.mp-row a { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mp-row a:hover { color: var(--accent) }
.mp-row b { font: 600 16px var(--num) }
.mp-task.na .mp-row b { color: var(--muted); font-weight: 400 }
.mp-cells { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px }
.mc { display: inline-flex; align-items: baseline; gap: 5px; font: 600 12px var(--num); padding: 3px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--fg) }
.mc em { font: 500 9.5px var(--mono); font-style: normal; color: var(--accent) }
.mc i { font: 400 10px var(--num); font-style: normal; color: var(--muted) }
@media (max-width: 1000px) { .mp-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)) } .mp-hero { flex-direction: column; align-items: flex-start } }
@media (max-width: 600px) { .mp-tasks { grid-template-columns: 1fr } .mp-nav { top: 60px } }

/* ---------- Model page: ego-view episode videos ---------- */
.ep-tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .015) }
.ep-scene { display: flex; flex-direction: column; align-items: flex-start; gap: 6px }
.ep-sh { font: 600 13px var(--sans); margin-bottom: 2px }
.ep-scene .chip { text-align: left; display: inline-flex; align-items: center; gap: 8px; max-width: 100% }
.ep-scene .chip i { font: 600 10.5px var(--num); font-style: normal; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px }
.ep-scene .chip[aria-pressed="true"] i { color: #04110d; background: var(--accent) }
.ep-scene .chip.empty { color: var(--muted); border-style: dashed }
.ep-filters { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 14px }
.ep-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 12px }
.ep-note .tbc { margin: 0 6px 0 0 }
.ep-gal { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) }
.clip.ghost .vid { aspect-ratio: 16 / 9; display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px), #0b1120; border: 1px dashed rgba(255, 255, 255, .16) }
.ghost-k { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.mock-slot + .ep-gal { margin-top: 14px }
@media (max-width: 1000px) { .ep-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 600px) { .ep-tasks { grid-template-columns: 1fr } }
.ep-scene .chip { font-size: 12px; padding: 6px 11px; background: transparent; border-color: var(--line); line-height: 1.35 }
.ep-scene .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg) }
.ep-scene .chip.empty { opacity: .7 }

/* ---------- Get started: GitHub / Hugging Face / Manifold ---------- */
/* Get started (11/10): the header and buttons sit in one dark card with a teal glow, in both themes */
.get-hero { --fg: #f4f6f8; --muted: rgba(244, 246, 248, .68); color: var(--fg); position: relative; overflow: hidden; margin: 8px 0 40px; padding: 44px 48px 40px; border-radius: 20px; border: 1px solid rgba(35, 179, 153, .35); background: radial-gradient(120% 140% at 100% 0%, rgba(35, 179, 153, .32), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(94, 183, 255, .14), transparent 60%), linear-gradient(135deg, #0b1424, #05080f) }
.get-hero .page-header { margin-bottom: 26px }
.get-hero .eyebrow { color: #23b399 }
.get-hero h1, .get-hero .lede { color: var(--fg) }
.get-hero .lede { color: var(--muted) }
.get-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 }
@media (max-width: 600px) { .get-hero { padding: 28px 20px 24px; border-radius: 16px } }
.get-actions .button { gap: 10px; min-height: 52px; padding: 12px 22px; font-size: 15px; background: rgba(255, 255, 255, .03); color: var(--fg); border: 1px solid rgba(255, 255, 255, .22) }
.get-actions .button:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .45); color: var(--fg) }
.get-actions .button svg { width: 18px; height: 18px }
.get-actions .gh { background: #f4f6f8; color: #0b0f17; border-color: #f4f6f8 }
.get-actions .gh:hover { background: #fff; color: #0b0f17; border-color: #fff }
.hf-ic { font-size: 18px; line-height: 1 }
.get-actions .hf:hover { border-color: #ffd21e }
.get-actions .mfb { border-color: rgba(74, 222, 128, .55); background: rgba(74, 222, 128, .08) }
.get-actions .mfb:hover { border-color: #4ade80; background: rgba(74, 222, 128, .14) }
.get-actions .mfb em { font: 500 10px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #4ade80 }
.mf-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18) }
@media (max-width: 600px) { .get-actions .button { flex: 1 1 100% } }

/* Footer: smaller RLWRLD wordmark next to "by" (was 11px) */
.footer-by img { height: 8px }

/* Diverse objects: no description paragraph (11/08); keep the chip row tight under the task link */
.obj-body { gap: 12px }
.obj-more { margin-top: 0 }

/* Task pages of the 11 tasks new in v1.0 (11/08): cell cards state what each cell holds, no head-camera frame yet */
.vcell.spec .vcell-txt { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 46px 16px 16px; min-height: 128px; background: var(--panel) }
.vcell.spec .vcell-txt b { font: 600 30px/1 var(--num); color: var(--fg); letter-spacing: -.02em }
.vcell.spec .vcell-txt em { font: 600 10px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.vcell.spec .vcell-txt p { flex-basis: 100%; margin: 6px 0 0; font-size: 14px; color: var(--fg) }
.vcell.spec.o .vcell-txt, .vcell.spec.s .vcell-txt, .vcell.spec.p .vcell-txt { background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--panel) }
.vcells .vcell.spec figcaption span b { color: var(--fg) }
.vcells .vcell.spec figcaption span.hl b { color: var(--accent) }

/* Footer contact (11/08): the DexBench support group, dexbench@rlwrld.ai */
.footer-end { display: inline-flex; align-items: center; gap: 22px }
footer a.footer-mail { display: inline-flex; align-items: baseline; gap: 8px; color: var(--fg) }
.footer-mail em { font: 500 9.5px var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
footer a.footer-mail:hover { color: var(--accent) }
@media (max-width: 720px) { .footer-end { width: 100%; justify-content: space-between } }

/* 3D cell view of the v1.0 tasks (ga/ga3d.js): labels of the things in the start-pose view */
.vv-label.thing { color: var(--muted); background: rgba(5, 8, 15, .55) }

/* ---------- 11/08 (later) ---------- */
/* Sensing: six cards, three to a row. Next steps: three cards. */
.modal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
@media (max-width: 760px) { .modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 460px) { .modal-grid { grid-template-columns: 1fr } }
.ns-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
@media (max-width: 1000px) { .ns-grid { grid-template-columns: 1fr } }

/* Model page: scores as one table, a row per task, a column per cell */
.mt-wrap { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .015); overflow-x: auto }
.mt { width: 100%; min-width: 880px; border-collapse: collapse; margin: 0 }
.mt th, .mt td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle }
.mt thead th { font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .025); white-space: nowrap }
.mt thead th.cellh { cursor: help }
.mt th.num, .mt td.num { text-align: right; width: 104px }
.mt tbody th { font: 500 13.5px var(--sans); text-transform: none; letter-spacing: -.005em; color: var(--fg); white-space: nowrap }
.mt tbody th a { color: var(--fg); text-decoration: none }
.mt tbody th a:hover { color: var(--accent) }
.mt tr.mt-env th { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding: 18px 16px 8px; background: transparent }
.mt-v { font: 600 15px var(--num); font-variant-numeric: tabular-nums; color: var(--fg) }
.mt-score .mt-v { font-size: 18px; color: var(--accent) }
.mt-k { display: block; margin-top: 1px; font: 400 10.5px var(--num); font-variant-numeric: tabular-nums; color: var(--muted) }
.mt-bar { display: block; width: 64px; height: 3px; margin: 6px 0 0 auto; border-radius: 2px; background: var(--line); overflow: hidden }
.mt-bar span { display: block; height: 100%; background: var(--accent) }
.mt td.nc { color: var(--muted); opacity: .4; font-size: 18px }
.mt .pend { color: var(--muted) }
.mt tr.na th a { color: var(--muted) }
.mt tbody tr:not(.mt-env):hover { background: rgba(255, 255, 255, .025) }
.mt tbody tr:last-child > * { border-bottom: 0 }
.mt-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 2px 0; font-size: 12px; color: var(--muted) }
.mt-legend b { color: var(--fg); margin-right: 5px }

/* Ego clips: the stereo pair is 2 × 640 × 360 side by side; show the left camera only */
.vid.lcam { aspect-ratio: 16 / 9 }
.vid.lcam img, .vid.lcam video { width: 200%; max-width: none; height: 100%; object-fit: fill }
.vid.lcam video { cursor: pointer }
.vcell-img { aspect-ratio: 16 / 9; overflow: hidden }
.vcell-img img { width: 200%; max-width: none; object-fit: fill }

/* Scene orbits: square clips on black, on a black stage card in both themes. No mix-blend-mode: blending a playing
   video costs a compositing pass per frame and dropped ~6 % of frames while the task-card loops also played. */
.scene-cut { aspect-ratio: 1 / 1; overflow: hidden; background: #000; border-radius: 22px; box-shadow: 0 0 0 1px var(--line) }
.scene-cut .scene-orbit { left: 14px; bottom: 12px; color: rgba(244, 246, 248, .55) }
.sh-cut { aspect-ratio: 1 / 1; overflow: hidden; background: #000; border-radius: 12px }
.scene-head { grid-template-columns: 150px minmax(0, 1fr) }
@media (max-width: 900px) { .scene-head { grid-template-columns: 110px minmax(0, 1fr) } }

/* Theme switch in the header */
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: 4px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; flex: none }
.theme-toggle:hover { color: var(--fg); border-color: var(--muted) }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.theme-toggle .i-sun { display: none }
:root[data-theme="light"] .theme-toggle .i-sun { display: block }
:root[data-theme="light"] .theme-toggle .i-moon { display: none }

/* Protocol: cells per task */
.pc-table td.pc-on { color: var(--accent); font-size: 11px }
.pc-table td.pc-off { color: var(--muted); opacity: .45 }
.pc-table th .muted { font-weight: 400; text-transform: none; letter-spacing: 0 }
.pc-notes { margin: 12px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.65 }
.pc-notes li { margin: 3px 0 }

/* ---------- Light theme (11/08): overrides for colours the dark design hard-codes ---------- */
:root[data-theme="light"] .top { background: rgba(250, 250, 250, .92); border-bottom-color: var(--line) }
:root[data-theme="light"] .footer-by img, :root[data-theme="light"] footer img[src*="logo_white"] { filter: invert(1) }
/* partner logos are light-grey mono PNGs: darken them on the light page */
:root[data-theme="light"] .ptile img, :root[data-theme="light"] .pm img { filter: brightness(.28) }
:root[data-theme="light"] .ptile { background: rgba(17, 24, 39, .025) }

/* Leaderboard (11/08): small notes removed; the preview keeps only its Submit button, on the right */
#lb-preview .table-note { justify-content: flex-end }

/* v1.0 baselines: colours for the two families the EA site did not have */
:root { --rldx: #2fbf8f; --fastwam: #e5627b }
:root[data-theme="light"] { --rldx: #13865f; --fastwam: #c23a55 }
.lb-cov { display: block; font: 500 10px var(--mono); letter-spacing: .04em; color: var(--muted); margin-top: 2px }

/* ---------- Model page: Watch it run (v1.0 replay + head camera) ---------- */
.wr { display: grid; gap: 16px }
.wr-stage { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 14px; align-items: start }
@media (max-width: 900px) { .wr-stage { grid-template-columns: 1fr } }
.wr-3d { position: relative; min-width: 0 }
.wr-host { position: relative; min-height: 360px; border-radius: 12px; overflow: hidden; background: var(--panel) }
.wr-3d > .wr-poster { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: auto; border-radius: 12px 12px 0 0; pointer-events: none }
.wr-badge { position: absolute; top: 10px; right: 10px; z-index: 2; max-width: 46%; display: grid; gap: 1px; text-align: right; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 84%, transparent); pointer-events: none }
.wr-badge b { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--warn) }
.wr-badge span { font-size: 12.5px; color: var(--fg); font-variant-numeric: tabular-nums }
@media (max-width: 600px) { .wr-3d { display: grid; gap: 8px } .wr-badge { position: static; order: -1; max-width: none; text-align: left } .wr-3d > .wr-poster { display: none } }  /* badge above the stage, clear of the camera buttons */
.wr-ego { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel) }
.wr-cap { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line) }
.wr-sync { font-family: var(--mono); font-variant-numeric: tabular-nums }
.wr-ego video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #000 }
.wr-facts { margin: 0; padding: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 13.5px }
.wr-facts dt { color: var(--muted) } .wr-facts dd { margin: 0; font-variant-numeric: tabular-nums }
.wr-facts .ok { color: var(--ok) } .wr-facts .bad { color: var(--bad) }
.wr-note3d { display: block; color: var(--muted); font-size: 12px; margin-top: 2px } .wr-note3d:empty { display: none }
.wr-empty { display: grid; place-items: center; min-height: 360px; color: var(--muted); font-size: 14px; text-align: center; padding: 24px }
.wr-tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px }
@media (max-width: 900px) { .wr-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 520px) { .wr-tasks { grid-template-columns: 1fr } }
.wr-scene { display: grid; gap: 5px; align-content: start }
.wr-scene h3 { margin: 0 0 2px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.wr-task { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: 13px var(--sans); cursor: pointer }
.wr-task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.wr-task b { font: 500 12px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums }
.wr-task i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); opacity: .7 }
.wr-task[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)) }
.wr-task[aria-pressed="true"] b { color: var(--accent) }
.wr-task:disabled { opacity: .45; cursor: not-allowed }
.wr-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center }
.wr-seg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.wr-seg > span { margin-right: 4px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.wr-seg button { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: 500 12.5px var(--sans); padding: 5px 12px; border-radius: 999px; cursor: pointer }
.wr-seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg) }
.wr-seg button:disabled { opacity: .4; cursor: not-allowed }
.wr button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

/* ---------- Layout polish (11/09): one type scale, content-edge alignment, phone width ----------
   Headings: page title 52 (h1), section 32 (home and docs h2), sub-section 24, card or block title 20,
   small card title 16. Inside the task column (task pages, the Astra trial) the sections use 24,
   since that column is ~920 px next to the side menu. */
:root { --fs-sub: 24px; --fs-block: 20px; --fs-card: 16px }

/* Home: the taxonomy section heads like every other section (was 34 px with its own margins) */
.taxo h2 { font-size: 32px; margin: 0 0 10px }
.taxo .lead, .taxo .lead2 { font-size: 15px; line-height: 1.7; max-width: 64ch }
/* Home: scene titles on the sub-section step, under the 32 px section title */
.scene-info h3 { font-size: var(--fs-sub) }
.tx-card .body h3 { font-size: var(--fs-block) }
.modal h3, .steps h3 { font-size: var(--fs-card) }
.ab-body h3 { font-size: var(--fs-sub) }
/* Section-head links keep their size; the text beside them wraps instead (phone overflow) */
.section-head > .head-links, .section-head > .text-link { flex: 0 0 auto }

/* Task pages: the title row spans the column, so the pager ends on the right edge (the header's
   850 px cap is for the text); prev's tip opens leftwards like next's, inside the page */
.task-header { max-width: none }
.task-header .lede { max-width: 64ch }
.pager-btn[rel=prev] .pager-tip { left: auto; right: 0 }
.axes-head h2, .var-intro h2 { font-size: var(--fs-sub) }
.var-merged .var-intro h2 { margin: 0 0 10px }
.var-sub { font-size: var(--fs-block) }
.tasks-main .task-links + p { margin-top: 12px }

/* Tables without a frame: first and last columns on the content edges, like the text above them */
.tw:not(.lb-wrap, .mt-wrap, .score-table) > table :is(th, td):first-child { padding-left: 0 }
.tw:not(.lb-wrap, .mt-wrap, .score-table) > table :is(th, td):last-child { padding-right: 0 }
details > .tw:not(.lb-wrap, .mt-wrap, .score-table) > table :is(th, td):first-child { padding-left: 16px }
details > .tw:not(.lb-wrap, .mt-wrap, .score-table) > table :is(th, td):last-child { padding-right: 16px }
/* A definition list after a table starts a new block */
.tw + .facts, .tw + dl.facts { margin-top: 28px }
.pc-notes { padding-left: 1.1em }

/* Astra trial: the same section rhythm as the task pages */
.astra-page > .eyebrow { margin-bottom: 18px }
.astra-page > h1 { margin-top: 0 }
.astra-page .notice { margin: 0 0 20px; max-width: none }
.astra-page > p { max-width: 80ch }
.astra-page > p.small { margin: 12px 0 0 }
.astra-page > h3 { font-size: var(--fs-sub); margin: 48px 0 12px; padding-top: 32px; border-top: 1px solid var(--line) }
.astra-page > h3 + p { margin-top: 0 }
.astra-page > h4 { font-size: var(--fs-card); font-weight: 600; margin: 32px 0 6px !important }
.astra-page .tw th { white-space: normal; vertical-align: bottom; line-height: 1.35 }
.astra-page .tw th .ci { display: block; white-space: normal }
.astra-page .tw td:first-child { white-space: nowrap }
.astra-page .tw th, .astra-page .tw td { padding-left: 12px; padding-right: 12px }
.astra-page .tw > table :is(th, td):first-child { padding-left: 0 }
.astra-page .tw > table :is(th, td):last-child { padding-right: 0 }
.astra-page details { margin: 12px 0 0 !important }
.astra-page details > .tw > table :is(th, td):first-child { padding-left: 20px }
.astra-page details > .tw > table :is(th, td):last-child { padding-right: 20px }
.astra-page .gal { gap: 16px; margin-top: 4px }
.astra-page .gal .clip { border-radius: 12px; background: rgba(255, 255, 255, .02); display: flex; flex-direction: column }
.astra-page .gal .clip > div:last-child { padding: 14px 16px 16px !important }
.astra-page .filters { margin: 16px 0 12px }
/* Row labels (GA-O, OpenWAM-alpha) do not break inside a name */
.tw:not(.lb-wrap, .mt-wrap, .score-table) > table td:first-child b { white-space: nowrap }

/* Home Updates box (11/09): a card with a dated timeline that scrolls inside once it is taller than ~4 entries */
.updates { border-bottom: 0; padding-bottom: 0 }
.upd-box { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 22px 26px 16px }
.upd-box h2 { font-size: 22px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line) }
.upd-list { list-style: none; margin: 0; padding: 0 8px 0 0; max-height: 216px; overflow-y: auto; position: relative }
.upd-list li { display: grid; grid-template-columns: 22px 108px minmax(0, 1fr); align-items: baseline; padding: 9px 0; position: relative }
.upd-list li::before { content: ""; grid-column: 1; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--panel); justify-self: center; position: relative; top: -1px; z-index: 1 }
.upd-list li::after { content: ""; position: absolute; left: 10.5px; top: 0; bottom: 0; width: 1px; background: var(--line) }
.upd-list li:first-child::after { top: 50% }
.upd-list li:last-child::after { bottom: 50% }
.upd-list li.new::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.upd-list time { grid-column: 2; font: 500 12.5px var(--mono); color: var(--muted) }
.upd-list li.new time { color: var(--accent); font-weight: 600 }
.upd-list p { grid-column: 3; margin: 0; font-size: 14.5px; line-height: 1.55 }
.upd-list a { color: var(--accent); font-weight: 600; text-decoration: none }
.upd-list a:hover { text-decoration: underline }
@media (max-width: 640px) { .upd-box { padding: 18px 16px 12px } .upd-list li { grid-template-columns: 22px minmax(0, 1fr) } .upd-list time { grid-column: 2 } .upd-list p { grid-column: 2 } }
