:root {
  color-scheme: dark;
  --omni-ink: #172033;
  --omni-muted: #5f6c7b;
  --omni-line: #dce3ea;
  --omni-blue: #EE6363;
  --omni-cyan: #0891b2;
  --omni-green: #16a34a;
  --omni-amber: #d97706;
  --omni-surface: #ffffff;
}

.omni-hero {
  background: #07111f;
}

.omni-hero-grid {
  grid-template-rows: repeat(4, 1fr);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(238, 99, 99, 0.14)),
    #07111f;
}

.omni-hero-grid .grid-cell video {
  filter: saturate(1.04) contrast(1.04);
}

.omni-hero .hero-main-content .demo-desc {
  max-width: 920px;
  margin: 1.35rem auto 0;
}

.omni-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

#generalized-section {
  padding-bottom: 8rem;
}

.omni-section .demo-desc {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  color: var(--omni-muted);
}

.generalization-container {
  max-width: clamp(1320px, 95vw, 1920px) !important;
}

.generalization-container > .section-heading,
.generalization-container > .demo-desc {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.overview-container {
  width: min(94vw, 1320px) !important;
  max-width: 1320px !important;
}

.overview-container > .section-heading,
.overview-container > .demo-desc {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.overview-original-figure {
  width: min(60vw, 1280px);
  margin: 2rem auto 0;
  padding: clamp(0.45rem, 1vw, 0.8rem);
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: var(--omni-radius-sm);
  background: #ffffff;
  box-shadow: var(--omni-shadow-soft);
  overflow-x: auto;
}

.overview-original-figure img {
  display: block;
  width: 100%;
  min-width: 860px;
  height: auto;
  border-radius: 4px;
}

.overview-original-figure--contact-flow {
  margin-top: 1.05rem;
}

.overview-showcase {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.overview-view-tabs {
  justify-self: center;
}

.overview-panel-set {
  min-width: 0;
}

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

.overview-tab-panel--video,
.overview-tab-panel--framework {
  min-width: 0;
}

.overview-tab-panel--framework > .overview-original-figure:first-child {
  margin-top: 0;
}

.overview-video-figure {
  width: min(60vw, 1280px);
  margin: 0 auto;
  padding: clamp(0.45rem, 1vw, 0.8rem);
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: var(--omni-radius-sm);
  background: #ffffff;
  box-shadow: var(--omni-shadow-soft);
  overflow: hidden;
}

.overview-video-figure video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #000000;
}

.live-policy-section {
  padding: 5rem 0;
  overflow-x: clip;
}

.live-policy-container {
  box-sizing: border-box;
  width: 100vw !important;
  max-width: none !important;
  margin-left: 50% !important;
  transform: translateX(-50%);
  padding-left: clamp(138px, 1vw, 20px);
  padding-right: clamp(138px, 1vw, 20px);
}

.live-policy-section .demo-desc {
  max-width: 920px;
}

.overview-layout,
.recovery-layout,
.vlm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 2rem;
}

.overview-copy {
  display: grid;
  gap: 0.9rem;
}

.info-card,
.case-card,
.timeline-case,
.metric-card,
.stat-card,
.vlm-prompt {
  background: var(--omni-surface);
  border: 1px solid var(--omni-line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.info-card {
  padding: 1.1rem 1.2rem;
}

.info-card h3,
.case-card h3,
.timeline-case h3 {
  margin: 0 0 0.35rem;
  color: var(--omni-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.info-card p,
.case-card p,
.timeline-case p,
.recovery-steps p,
.vlm-prompt p {
  margin: 0;
  color: var(--omni-muted);
  line-height: 1.65;
}

.prompt-label {
  color: var(--omni-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(60vw, 1280px);
  gap: 0.9rem;
  margin-top: 1.25rem;
  margin-left: auto;
  margin-right: auto;
}

.metric-card,
.stat-card {
  padding: 1rem;
  text-align: center;
}

.metric-card span,
.stat-card span {
  display: block;
  color: var(--omni-blue);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.metric-card p,
.stat-card p {
  margin: 0.2rem 0 0;
  color: var(--omni-muted);
  line-height: 1.35;
}

.container.is-max-desktop.dataset-container {
  width: min(90vw, 1500px);
  max-width: clamp(1080px, 86vw, 1500px) !important;
}

.dataset-container > .section-heading,
.dataset-container > .demo-desc {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.dataset-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  width: 80%;
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  min-width: 0;
}

.dataset-primary {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 0.85rem;
  height: auto;
  min-width: 0;
}

.dataset-view-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.32rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.dataset-view-tab {
  min-height: 2.4rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--omni-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dataset-view-tab:hover,
.dataset-view-tab:focus-visible {
  color: var(--omni-ink);
  background: rgba(148, 163, 184, 0.12);
  outline: none;
}

.dataset-view-tab.is-active {
  background: linear-gradient(135deg, #8b5cf6 0%, #EE6363 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(238, 99, 99, 0.24);
}

.dataset-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 1rem;
  align-items: stretch;
  margin-top: 0;
  min-width: 0;
}

.dataset-main,
.embedded-viewer--dataset-cloud,
.dataset-side {
  display: grid;
  min-height: 0;
}

.dataset-main,
.embedded-viewer--dataset-cloud {
  height: 100%;
  min-width: 0;
}

.dataset-side {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.dataset-side .stat-card {
  min-width: 0;
  padding: 0.9rem 0.85rem;
}

.dataset-side .stat-card span {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.dataset-primary > .dataset-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 0.9rem;
  width: 100%;
  margin-top: 0;
  margin-left: 0;
  margin-right: auto;
  align-content: stretch;
  height: auto;
  min-height: 0;
}

.dataset-primary > .dataset-glb-gallery .dataset-glb-stage {
  aspect-ratio: 4 / 3;
  height: auto;
}

.dataset-video-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.07);
}

.dataset-video-card video {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

.dataset-glb-card {
  position: relative;
  display: block;
  border: 0;
  background: #f6f7f9;
}

.dataset-glb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.dataset-glb-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.dataset-glb-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dataset-video-card .generalization-video-label {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  max-width: calc(100% - 1.1rem);
  padding: 0.32rem 0.62rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  font-size: 0.82rem;
  line-height: 1.15;
  text-align: right;
  backdrop-filter: blur(8px);
}

.dataset-flip-card {
  min-width: 0;
  height: clamp(688px, 73.6vh, 896px);
  min-height: clamp(688px, 73.6vh, 896px);
  perspective: 1600px;
}

.dataset-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.68s cubic-bezier(0.2, 0.74, 0.18, 1);
}

.dataset-flip-card.is-flipped .dataset-flip-inner {
  transform: rotateY(180deg);
}

.dataset-flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.dataset-flip-front {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.dataset-flip-back {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  margin: 0;
  transform: rotateY(180deg);
}

.dataset-flip-card .dataset-flip-back {
  margin: 0;
}

.dataset-flip-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.tsne-panel {
  height: 100%;
  margin-top: 0;
  padding: 1rem;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  min-width: 0;
}

.tsne-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.tsne-header h3 {
  margin: 0;
  color: var(--omni-ink);
  font-size: 1rem;
  font-weight: 800;
}

.tsne-header p,
#tsne-status {
  margin: 0.2rem 0 0;
  color: var(--omni-muted);
  font-size: 0.86rem;
}

.tsne-canvas-wrap {
  display: grid;
  position: relative;
  min-width: 0;
  min-height: 0;
}

#dataset-tsne {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 6px;
  background: #f8fafc;
}

.tsne-label-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tsne-float-label {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 150px;
  padding: 0.28rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--skill-color) 50%, white);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #162033;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.13);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.1;
  pointer-events: auto;
  white-space: nowrap;
  transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.tsne-float-label::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--skill-color);
}

.tsne-float-label span {
  color: var(--omni-muted);
  font-size: 0.68rem;
}

.tsne-float-label.is-active {
  z-index: 3;
  border-color: var(--skill-color);
  transform: translate(-50%, -50%) scale(1.08);
}

.tsne-float-label.is-muted {
  opacity: 0.38;
}

.tsne-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin-top: 0.8rem;
}

.tsne-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--omni-muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.tsne-legend-item.is-active {
  color: var(--omni-ink);
}

.tsne-legend-item.is-muted {
  opacity: 0.42;
}

.tsne-legend-swatch {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
}

.dataset-gallery,
.case-grid,
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.case-card,
.timeline-case {
  padding: 0.8rem;
}

.generalization-demo {
  margin-top: 1.65rem;
}

.generalization-tab-row {
  display: grid;
  grid-template-columns: max-content auto;
  gap: 1.1rem;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.generalization-row-label {
  color: var(--omni-muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.generalization-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(136px, 1fr));
  gap: 0.7rem;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.42rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  background: rgba(241, 245, 249, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.generalization-tabs--skills {
  grid-template-columns: repeat(4, minmax(168px, 1fr));
  width: fit-content;
}

.generalization-tabs--secondary {
  display: flex;
  justify-content: center;
  width: fit-content;
  background: rgba(248, 250, 252, 0.9);
}

.generalization-tabs--secondary .generalization-tab {
  width: auto;
  min-width: 154px;
}

.generalization-tab {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  padding: 0.72rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: var(--omni-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.generalization-tab:hover,
.generalization-tab:focus-visible {
  border-color: var(--omni-cyan);
  color: var(--omni-cyan);
  background: rgba(8, 145, 178, 0.06);
  box-shadow: 0 6px 16px rgba(8, 145, 178, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.generalization-tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #8b5cf6 0%, #EE6363 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(238, 99, 99, 0.3);
}

.generalization-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 2.4rem;
  animation: generalization-panel-in 0.22s ease both;
}

.generalization-video-grid--carousel {
  display: block;
  min-height: auto;
}

.generalization-video-grid--multi {
  display: block;
  width: min(100%, 1488px);
  max-width: 1488px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.9rem;
}

.generalization-video-grid--paired {
  display: block;
  width: min(100%, 1488px);
  max-width: 1488px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.9rem;
}

.generalization-paired-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  align-items: stretch;
}

.generalization-feature-layout {
  display: flex;
  gap: 0.95rem;
  align-items: stretch;
}

.generalization-feature-main,
.generalization-feature-rail {
  min-width: 0;
}

.generalization-feature-main {
  flex: 1.78 1 0;
}

.generalization-feature-rail {
  flex: 0.74 1 0;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  align-self: stretch;
}

.generalization-video-grid--multi .generalization-video-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  justify-self: stretch;
  min-height: 0;
  padding: 0.28rem;
}

.generalization-video-grid--paired .generalization-video-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  padding: 0.28rem;
}

.generalization-video-grid--multi .generalization-video-card video,
.generalization-video-grid--multi .generalization-video-slot {
  order: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--omni-radius-sm);
}

.generalization-video-grid--multi .generalization-video-card--featured video,
.generalization-video-grid--multi .generalization-video-card--featured .generalization-video-slot {
  aspect-ratio: 3 / 2;
}

.generalization-video-grid--multi .generalization-video-card--compact video,
.generalization-video-grid--multi .generalization-video-card--compact .generalization-video-slot {
  aspect-ratio: auto;
  height: 100%;
}

.generalization-video-grid--multi .generalization-video-card--compact {
  flex: 1 1 0;
}

.generalization-video-grid--paired .generalization-video-card video,
.generalization-video-grid--paired .generalization-video-slot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--omni-radius-sm);
}

.generalization-video-grid--paired .generalization-video-card video {
  object-fit: cover;
}

.generalization-video-grid--paired .generalization-video-card--empty {
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.06), rgba(238, 99, 99, 0.08)),
    rgba(255, 255, 255, 0.96);
}

.generalization-video-grid--multi .generalization-video-card video {
  object-fit: cover;
}

.generalization-video-grid--multi .generalization-video-card--empty {
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.06), rgba(238, 99, 99, 0.08)),
    rgba(255, 255, 255, 0.96);
}

.generalization-video-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.11), 0 7px 14px rgba(15, 23, 42, 0.07);
}

.generalization-video-card.dataset-glb-card {
  border: 0;
  background: #f6f7f9;
}

.generalization-video-card video,
.generalization-video-slot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.generalization-video-card video {
  object-fit: cover;
  background: #0f172a;
}

.generalization-video-slot {
  display: grid;
  min-height: 0;
  box-sizing: border-box;
  grid-template-rows: auto auto auto;
  place-content: center;
  justify-items: center;
  gap: 0.35rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(238, 99, 99, 0.08)),
    repeating-linear-gradient(45deg, rgba(15, 23, 42, 0.04) 0 1px, transparent 1px 18px),
    #f8fafc;
  color: var(--omni-muted);
  text-align: center;
}

.generalization-video-slot::before {
  content: "\25b6";
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 50%;
  background: rgba(238, 99, 99, 0.12);
  color: #EE6363;
  font-size: 1.15rem;
  line-height: 1;
}

.generalization-video-slot strong {
  color: var(--omni-ink);
  font-size: 0.98rem;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.generalization-video-slot span {
  font-size: 0.86rem;
  font-weight: 700;
}

.generalization-video-label {
  padding: 0.72rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--omni-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.generalization-carousel-shell {
  position: relative;
  display: block;
  padding: 1.65rem 3.25rem 1.45rem;
}

.generalization-carousel-track {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.generalization-carousel-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
  transition: opacity 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.generalization-carousel-media {
  overflow: hidden;
  border-radius: 20px;
}

.generalization-carousel-card video,
.generalization-carousel-card .generalization-video-slot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.generalization-carousel-card video {
  object-fit: cover;
  background: transparent;
}

.generalization-carousel-card .generalization-video-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.generalization-video-grid.is-fading .generalization-carousel-card--current {
  animation: generalization-carousel-fade 0.22s ease both;
}

.generalization-carousel-card--current {
  z-index: 1;
}

.generalization-carousel-card--prev,
.generalization-carousel-card--next {
  display: none;
}

.generalization-carousel-card--prev {
  margin-right: 0;
}

.generalization-carousel-card--next {
  margin-left: 0;
}

.generalization-carousel-card--prev .generalization-video-label,
.generalization-carousel-card--next .generalization-video-label {
  background: rgba(255, 255, 255, 0.7);
}

.generalization-carousel-card--current.is-active {
  box-shadow: 0 34px 58px rgba(15, 23, 42, 0.16);
}

.generalization-carousel-card--empty {
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.06), rgba(238, 99, 99, 0.08)),
    rgba(255, 255, 255, 0.96);
}

.generalization-carousel-card--empty .generalization-video-slot {
  padding: 1.25rem;
}

.generalization-carousel-card--empty .generalization-video-slot strong {
  font-size: 1rem;
}

.generalization-carousel-card--empty .generalization-video-slot span {
  max-width: 18rem;
  line-height: 1.45;
}

.generalization-carousel-arrow {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
}

.generalization-carousel-arrow--prev {
  left: 0;
  margin-right: 0;
}

.generalization-carousel-arrow--next {
  right: 0;
  margin-left: 0;
}

.generalization-carousel-arrow:hover,
.generalization-carousel-arrow:focus-visible {
  transform: translateY(calc(-50% - 1px));
  background: #ffffff;
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.12);
}

.generalization-carousel-arrow span {
  font-size: 1.7rem;
  line-height: 1;
}

.generalization-carousel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0 0.35rem;
  color: var(--omni-muted);
  font-size: 0.95rem;
}

.generalization-carousel-caption,
.generalization-carousel-counter {
  display: inline-flex;
  align-items: center;
}

.vlm-container {
  max-width: clamp(1416px, 96vw, 2160px) !important;
}

.vlm-showcase {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 1.2rem;
  align-items: stretch;
  margin-top: 2rem;
}

.vlm-video-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-content: start;
}

.vlm-video-column .generalization-video-card {
  position: relative;
  display: block;
  align-self: start;
  border-radius: 18px;
  border: 1px solid rgba(224, 232, 241, 0.9);
  background: #dfe8f2;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08), 0 6px 14px rgba(15, 23, 42, 0.05);
}

.vlm-video-column .generalization-video-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.68) 100%);
}

.vlm-video-column .generalization-video-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  border-top: 0;
  background: transparent;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  text-wrap: pretty;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.45);
}

.vlm-video-column .generalization-video-label::before {
  content: "";
  position: absolute;
  inset: -0.6rem -0.8rem;
  z-index: -1;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(51, 65, 85, 0.42));
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.vlm-video-column .generalization-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dataset-video-card .generalization-video-label,
.generalization-carousel-card .generalization-video-label,
.vlm-video-column .generalization-video-label {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  display: block;
  order: 1;
  min-height: 2.15rem;
  max-width: none;
  margin: 0;
  padding: 0.5rem 1rem 0.5rem 1.15rem;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.94) 100%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(238, 99, 99, 0.08));
  color: #172033;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  font-size: clamp(0.78rem, 0.82vw, 0.95rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
  white-space: normal;
  overflow-wrap: anywhere;
  backdrop-filter: blur(12px) saturate(1.12);
}

.dataset-video-card,
.generalization-carousel-card,
.vlm-video-column .generalization-video-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.55rem;
}

.dataset-glb-stage,
.dataset-video-card > video,
.generalization-carousel-media,
.vlm-video-column .generalization-video-card > video {
  order: 2;
  min-height: 0;
  border-radius: 12px;
}

.dataset-video-card .generalization-video-label::before,
.generalization-carousel-card .generalization-video-label::before,
.vlm-video-column .generalization-video-label::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: auto;
  top: 0.52rem;
  bottom: 0.52rem;
  width: 3px;
  height: auto;
  z-index: auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b5cf6 0%, #EE6363 100%);
  box-shadow: 0 0 12px rgba(238, 99, 99, 0.28);
}

.vlm-showcase .embedded-viewer {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
  margin-top: 0;
}

.vlm-showcase .embedded-viewer iframe {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

.baseline-container {
  width: min(96vw, 1944px) !important;
  max-width: min(96vw, 1944px) !important;
}

.baseline-tabs {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.baseline-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.45rem);
  width: min(100%, 1728px);
  margin: 2rem auto 0;
  align-items: stretch;
}

.baseline-video-grid--stack_boxes,
.baseline-video-grid--push_stack {
  width: min(100%, 1584px);
}

.baseline-video-grid--count-2 {
  width: min(100%, 1488px);
}

.baseline-video-grid--count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1800px);
}

.baseline-video-card--ours_cfgen {
  grid-column: 1 / -1;
}

.baseline-video-grid--count-3 .baseline-video-card--ours_cfgen {
  grid-column: auto;
}

.baseline-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.45rem;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
}

.baseline-status--failed,
.baseline-status--failure {
  background: rgba(238, 99, 99, 0.14);
  color: #b91c1c;
}

.baseline-status--error {
  background: rgba(15, 23, 42, 0.12);
  color: #334155;
}

@keyframes generalization-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes generalization-carousel-fade {
  from {
    opacity: 0.72;
    filter: saturate(0.9);
  }
  to {
    opacity: 1;
    filter: saturate(1);
  }
}

.recovery-steps {
  display: grid;
  gap: 0.85rem;
}

.recovery-steps div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--omni-line);
  border-radius: 8px;
  background: #fff;
}

.recovery-steps span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9f2ff;
  color: var(--omni-blue);
  font-weight: 800;
}

.recovery-browser {
  width: min(100%, 1584px);
  margin: 1.9rem auto 0;
}

.recovery-tabs {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  width: min(100%, 1488px);
  margin: 0 auto;
}

[data-recovery-browser] .recovery-tabs {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  width: min(100%, 1032px);
}

[data-chaining-browser] .recovery-tabs {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  width: min(100%, 1032px);
}

[data-chaining-browser] .recovery-tabs {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  width: min(100%, 860px);
}

.recovery-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 1488px);
  margin: 1.35rem auto 0;
}

.recovery-video-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.55rem;
}

.recovery-video-card video,
.recovery-video-card .generalization-video-slot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--omni-radius-sm);
}

.recovery-video-media {
  position: relative;
  width: 100%;
}

.recovery-video-card video {
  object-fit: cover;
}

.recovery-video-badge {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.76);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
}

.recovery-video-badge-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.76;
  text-transform: uppercase;
}

.recovery-video-badge strong {
  font-size: 0.78rem;
  font-weight: 900;
}

.vlm-layout {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.vlm-prompt {
  padding: 1.25rem;
}

.vlm-prompt .prompt-label:not(:first-child) {
  margin-top: 1.1rem;
}

.embedded-viewer {
  margin-top: 1.4rem;
  border: 1px solid var(--omni-line);
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.embedded-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--omni-line);
}

.embedded-viewer-header h3 {
  margin: 0;
  color: var(--omni-ink);
  font-size: 1rem;
  font-weight: 800;
}

.embedded-viewer-header p {
  margin: 0.25rem 0 0;
  color: var(--omni-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.embedded-viewer-header a {
  color: var(--omni-blue);
  font-weight: 800;
  white-space: nowrap;
}

.embedded-viewer iframe {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 520px;
  border: 0;
  background: #f4f5f7;
}

.policy-viewer-stage,
.embedded-viewer--policy iframe {
  height: calc(100vh - 150px);
  min-height: 900px;
}

.policy-viewer-stage {
  position: relative;
  background: #1b2433;
}

.embedded-viewer--policy iframe {
  height: 100%;
  min-height: 100%;
}

.policy-viewer-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 44%, rgba(238, 99, 99, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.18), rgba(30, 41, 59, 0.88) 56%),
    #1f2937;
}

.policy-viewer-stage.is-loading .policy-viewer-placeholder {
  display: none;
}

.embedded-viewer-load-stage {
  position: relative;
}

.embedded-viewer-load-stage iframe {
  display: block;
  width: 100%;
}

.embedded-viewer-load-stage.is-loading .policy-viewer-placeholder {
  display: none;
}

.policy-viewer-load-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: min(360px, 86vw);
  min-height: 96px;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: #111827;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.policy-viewer-load-button:hover {
  transform: translateY(-2px);
  border-color: rgba(238, 99, 99, 0.78);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.44);
}

.policy-viewer-load-button span {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

.policy-viewer-load-button small {
  color: var(--omni-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.embedded-viewer--glb iframe {
  height: min(78vh, 920px);
  min-height: 620px;
  filter: none;
  background: #f7f8fa;
}

.vlm-showcase .embedded-viewer--glb .embedded-viewer-load-stage {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  background: #f7f8fa;
}

.vlm-showcase .embedded-viewer--glb iframe {
  height: 100%;
  min-height: 0;
  background: #f7f8fa;
}

.embedded-viewer--dataset-cloud iframe {
  height: 100%;
  min-height: 0;
  background: #f6f7f9;
}

.live-policy-section .embedded-viewer--policy {
  width: 100%;
  max-width: none;
  margin: 1.4rem 0 0;
  transform: none;
}

.policy-link-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--omni-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.policy-link-panel h3 {
  margin: 0 0 0.25rem;
  color: var(--omni-ink);
  font-size: 1rem;
  font-weight: 800;
}

.policy-link-panel p {
  margin: 0;
  color: var(--omni-muted);
  line-height: 1.55;
}

.policy-link-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 8px;
  background: var(--omni-blue);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

@media screen and (max-width: 900px) {
  .live-policy-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .policy-viewer-stage,
  .embedded-viewer--policy iframe {
    height: 82vh;
    min-height: 680px;
  }

  .overview-layout,
  .recovery-layout,
  .vlm-layout,
  .vlm-showcase,
  .dataset-visual-grid,
  .dataset-showcase {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .dataset-gallery,
  .case-grid,
  .timeline-grid {
    grid-template-columns: 1fr 1fr;
  }

  .generalization-feature-layout {
    flex-direction: column;
  }

  .vlm-showcase {
    align-items: start;
  }

  .vlm-showcase .embedded-viewer {
    height: auto;
  }

  .vlm-showcase .embedded-viewer--glb .embedded-viewer-load-stage {
    flex: 0 0 auto;
    height: clamp(300px, 58vw, 460px);
  }

  .generalization-paired-layout {
    grid-template-columns: 1fr;
  }

  .recovery-video-grid {
    grid-template-columns: 1fr;
  }

  .generalization-feature-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    flex: none;
  }
}

@media screen and (max-width: 1280px) {
  .baseline-video-grid--comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dataset-visual-grid,
  .dataset-showcase {
    grid-template-columns: 1fr;
    height: auto;
  }

  .dataset-side {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dataset-video-card video {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .dataset-glb-stage {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .dataset-flip-card {
    height: clamp(656px, 72vh, 832px);
    min-height: clamp(656px, 72vh, 832px);
  }
}

@media screen and (max-width: 900px) {
  .dataset-primary > .dataset-glb-gallery {
    grid-template-columns: repeat(5, minmax(260px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 0.25rem;
  }

  .dataset-primary > .dataset-glb-gallery .dataset-glb-card {
    scroll-snap-align: start;
  }

  .generalization-carousel-shell {
    padding: 1.15rem 2.75rem;
  }

  .generalization-carousel-track {
    grid-template-columns: 1fr;
  }

  .generalization-carousel-card--prev,
  .generalization-carousel-card--next {
    margin: 0;
    display: none;
  }

  .generalization-carousel-card--prev {
    order: 2;
  }

  .generalization-carousel-card--current {
    order: 1;
  }

  .generalization-carousel-card--next {
    order: 3;
  }

  .generalization-carousel-arrow {
    width: 2.85rem;
    height: 2.85rem;
  }

  .generalization-carousel-arrow--prev {
    left: 0;
  }

  .generalization-carousel-arrow--next {
    right: 0;
  }

  .generalization-carousel-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .generalization-tab-row {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.45rem;
  }

  .generalization-row-label {
    text-align: left;
  }

  .generalization-tabs,
  .generalization-tabs--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .generalization-tabs--skills {
    width: 100%;
  }

  .generalization-tabs--secondary {
    display: grid;
  }

  .generalization-tabs--secondary .generalization-tab {
    width: 100%;
    min-width: 0;
  }

  .recovery-tabs {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 640px) {
  .omni-section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .metric-row,
  .dataset-gallery,
  .case-grid,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

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

  .dataset-flip-card {
    height: 608px;
    min-height: 608px;
  }

  .dataset-flip-card.is-flipped .dataset-flip-inner {
    transform: rotateY(180deg);
  }

  .dataset-view-tabs {
    width: 100%;
    justify-content: center;
  }

  .dataset-view-tab {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .tsne-header,
  .embedded-viewer-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .generalization-tabs {
    border-radius: 24px;
  }

  .generalization-tab-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .generalization-row-label {
    text-align: left;
  }

  .generalization-tab {
    min-width: 0;
    flex: 1 1 42%;
  }

  .generalization-video-grid {
    grid-template-columns: 1fr;
  }

  .generalization-video-grid--multi {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }

  .generalization-video-grid--paired {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }

  .generalization-feature-layout {
    flex-direction: column;
    gap: 0.85rem;
  }

  .generalization-paired-layout {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .generalization-feature-rail {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    flex: none;
  }

  .generalization-video-grid--carousel {
    min-height: auto;
  }

  .generalization-carousel-shell {
    padding: 0.75rem 0;
  }

  .generalization-carousel-track {
    grid-template-columns: 1fr;
  }

  .generalization-carousel-card--prev,
  .generalization-carousel-card--next {
    margin: 0;
    display: none;
  }

  .generalization-carousel-card--prev {
    order: 2;
  }

  .generalization-carousel-card--current {
    order: 1;
  }

  .generalization-carousel-card--next {
    order: 3;
  }

  .generalization-carousel-arrow {
    width: 2.55rem;
    height: 2.55rem;
    background: rgba(255, 255, 255, 0.88);
  }

  .generalization-carousel-arrow--prev {
    left: 0.65rem;
  }

  .generalization-carousel-track {
    order: initial;
  }

  .generalization-carousel-arrow--next {
    right: 0.65rem;
  }

  .generalization-carousel-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .baseline-video-grid--comparison {
    grid-template-columns: 1fr;
  }

  .embedded-viewer-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .embedded-viewer iframe {
    min-height: 560px;
  }

  .policy-viewer-stage,
  .embedded-viewer--policy iframe {
    height: 82vh;
    min-height: 680px;
  }

  .policy-link-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dataset-flip-inner {
    transition: none;
  }
}

/* Remove black frames around video modules on the OmniContact site only. */
.omni-hero-grid .grid-cell,
.generalization-video-card,
.dataset-video-card,
.embedded-viewer,
.demo-main-video-wrap,
.demo-multi-video-wrap,
.demo-video-grid-three .demo-video-cell,
.demo-side-by-side .demo-video-cell,
.hand-results-card,
.mujoco-session-section .mujoco-session-frame-wrap,
.how-section .how-planner-video-grid .demo-video-cell,
.how-section .how-top-videos .demo-video-cell,
.how-section .how-scale-row .demo-video-cell {
  border-color: transparent;
}

.generalization-video-card,
.embedded-viewer,
.demo-main-video-wrap,
.demo-side-by-side .demo-video-cell,
.hand-results-card,
.mujoco-session-section .mujoco-session-frame-wrap,
.how-section .how-planner-video-grid .demo-video-cell,
.how-section .how-top-videos .demo-video-cell,
.how-section .how-scale-row .demo-video-cell {
  background: var(--omni-surface);
}

.generalization-video-card video,
.dataset-video-card video,
.demo-main-video-wrap video,
.demo-side-by-side .demo-video-cell video,
.hand-results-card video,
.how-section .how-top-videos .demo-video-cell video,
.how-section .how-scale-row .demo-video-cell video,
.how-section .how-video-frame,
.mujoco-session-section .mujoco-session-frame-wrap iframe,
.embedded-viewer iframe {
  background: transparent;
}

/* System polish pass for the OmniContact project page. */
:root {
  --omni-radius: 10px;
  --omni-radius-sm: 8px;
  --omni-shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --omni-shadow-subtle: 0 6px 18px rgba(15, 23, 42, 0.055);
  --omni-caption-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.95));
}

.omni-section {
  padding-top: clamp(3.2rem, 6vw, 5rem);
  padding-bottom: clamp(3.2rem, 6vw, 5rem);
}

.omni-section .section-heading {
  margin-bottom: 1.55rem !important;
}

.omni-section .demo-desc {
  max-width: 820px;
  line-height: 1.65;
}

.omni-hero-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 3px;
}

.omni-hero-grid .grid-label {
  display: none;
}

.omni-hero-grid .grid-cell::before {
  background: rgba(2, 6, 23, 0.5);
}

.overview-system-figure,
.chain-stage-visual,
.recovery-visual {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: var(--omni-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)),
    radial-gradient(circle at 18% 18%, rgba(139, 92, 246, 0.12), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(238, 99, 99, 0.1), transparent 34%);
  box-shadow: var(--omni-shadow-soft);
}

.overview-system-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.1rem, 2vw, 1.7rem);
}

.overview-node {
  min-width: 0;
  padding: 1rem 1.05rem 1rem 1.25rem;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: var(--omni-radius-sm);
  background: #ffffff;
  box-shadow: var(--omni-shadow-subtle);
  border-left: 4px solid #8b5cf6;
}

.overview-node--policy {
  border-left-color: #EE6363;
}

.overview-node span,
.overview-loop span {
  display: block;
  color: var(--omni-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-node strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--omni-ink);
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  font-weight: 900;
  line-height: 1;
}

.overview-node em {
  display: block;
  margin-top: 0.45rem;
  color: var(--omni-muted);
  font-style: normal;
  line-height: 1.35;
}

.overview-flow {
  display: grid;
  min-width: 118px;
  justify-items: center;
  gap: 0.45rem;
  color: var(--omni-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.overview-flow i {
  display: block;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, #EE6363);
}

.overview-loop {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.overview-loop span {
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.overview-blueprint {
  --cfgen-accent: #d8bf63;
  --cfgen-ink: #6d5718;
  --cftrack-accent: #f08a4b;
  --cftrack-ink: #8b3f18;
  --overview-cream: #fff9df;
  --overview-peach: #fff0e7;
  --overview-green: #8fb39c;
  --overview-line: rgba(213, 190, 99, 0.86);
  --overview-orange-line: rgba(240, 111, 61, 0.9);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem;
  width: min(100%, 1260px);
  margin: 2rem auto 0;
  font-family: "Times New Roman", Georgia, serif;
  color: #141414;
}

.overview-panel {
  position: relative;
  min-width: 0;
  min-height: 430px;
  border: 2px dashed var(--overview-line);
  border-radius: 8px;
  background: var(--overview-cream);
  overflow: hidden;
}

.overview-panel--cftrack {
  border-color: var(--overview-orange-line);
  background: var(--overview-peach);
}

.overview-panel-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 50px;
  padding: 0 1rem;
  background: var(--cfgen-accent);
  color: #ffffff;
}

.overview-panel--cftrack .overview-panel-title {
  background: #f3a777;
}

.overview-panel-title span {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 900;
  line-height: 1;
}

.overview-panel-title small {
  color: rgba(255, 255, 255, 0.9);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-cfgen-body,
.overview-cftrack-body {
  position: relative;
  min-height: 380px;
  padding: 1rem;
}

.overview-cfgen-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) minmax(170px, 0.85fr) minmax(220px, 1fr);
  gap: 0.85rem;
}

.overview-cftrack-body {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.75rem;
}

.overview-example-stack,
.overview-generation-stack,
.overview-stage-card {
  min-width: 0;
}

.overview-example-stack,
.overview-generation-stack {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.overview-asset-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72px;
  margin: 0;
  border: 1px dashed rgba(112, 97, 40, 0.42);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.35)),
    repeating-linear-gradient(90deg, rgba(146, 127, 50, 0.12) 0 8px, transparent 8px 16px);
  color: rgba(48, 40, 20, 0.72);
  text-align: center;
  overflow: hidden;
}

.overview-asset-slot::after {
  content: attr(data-asset-slot);
  position: absolute;
  right: 0.4rem;
  bottom: 0.28rem;
  color: rgba(48, 40, 20, 0.42);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.overview-asset-slot span,
.overview-asset-slot small {
  position: relative;
  z-index: 1;
}

.overview-asset-slot span {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
}

.overview-asset-slot small {
  display: block;
  color: rgba(48, 40, 20, 0.55);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  line-height: 1.2;
}

.overview-asset-slot[data-src]:not([data-src=""]) {
  background-image: var(--overview-asset-image), linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  background-size: cover;
  background-position: center;
}

.overview-example-text {
  margin: -0.35rem 0 0;
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.18;
  text-align: center;
}

.overview-ai-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: center;
}

.overview-ai-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.42rem;
  border-radius: 7px;
  background: #111111;
  color: #ffffff;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.overview-ai-chip:nth-child(2) {
  background: linear-gradient(135deg, #17a2b8, #8b5cf6);
}

.overview-ai-chip:nth-child(3) {
  background: #d66b45;
}

.overview-adaptation-card,
.overview-param-card,
.overview-generator-card,
.overview-stage-card,
.overview-simulator-card,
.overview-state-card,
.overview-reward-card {
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(72, 56, 16, 0.08);
}

.overview-adaptation-card {
  display: grid;
  gap: 0.36rem;
  padding: 0.55rem;
  background: #d9c36d;
}

.overview-adaptation-card h3 {
  margin: 0 0 0.1rem;
  color: #000000;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.12;
}

.overview-adaptation-card span,
.overview-stage-grid span,
.overview-stage-row {
  display: grid;
  place-items: center;
  min-height: 1.9rem;
  border-radius: 5px;
  background: #ffffff;
  color: #111111;
  font-size: 0.82rem;
  line-height: 1.08;
  text-align: center;
}

.overview-param-card {
  border: 2px solid #111111;
  background: #f6f6f6;
  overflow: hidden;
}

.overview-param-card strong {
  display: block;
  padding: 0.26rem 0.5rem;
  border-bottom: 2px solid #111111;
  background: #d7d7d7;
  font-size: 0.92rem;
  text-align: center;
}

.overview-param-card ul {
  margin: 0;
  padding: 0.55rem 0.8rem 0.65rem 1.25rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.overview-generator-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 0.45rem;
  min-height: 74px;
  padding: 0.6rem;
  background: #dfca76;
  color: #ffffff;
}

.overview-generator-card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.16);
}

.overview-generator-card span {
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.05;
}

.overview-contact-strip {
  display: grid;
  align-content: end;
  min-height: 145px;
}

.overview-asset-slot--sequence {
  min-height: 132px;
}

.overview-stage-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 2px solid #d5bb5e;
  background: rgba(255, 255, 255, 0.62);
}

.overview-stage-card::before {
  content: "";
  position: absolute;
  inset: 0.65rem auto 0.65rem -2.6rem;
  width: 3.1rem;
  border: 2px dashed rgba(213, 190, 99, 0.82);
  border-right: 0;
  border-radius: 24px 0 0 24px;
  pointer-events: none;
}

.overview-stage-title {
  display: grid;
  place-items: center;
  min-height: 2.45rem;
  border-radius: 6px;
  background: #e7e7e9;
  font-size: 0.95rem;
}

.overview-stage-block--adapt {
  display: grid;
  gap: 0.45rem;
  padding: 0.5rem;
  border-radius: 6px;
  background: #d8c16b;
}

.overview-stage-block--adapt strong {
  text-align: center;
  font-size: 0.82rem;
}

.overview-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.overview-stage-row {
  min-height: 2.65rem;
  background: #e7e7e9;
}

.overview-stage-row--failure::after {
  content: "";
  position: absolute;
  right: -1.2rem;
  bottom: 2.15rem;
  width: 1rem;
  height: 1rem;
  border-right: 4px solid #0f2d3d;
  border-bottom: 4px solid #0f2d3d;
  transform: rotate(-45deg);
}

.overview-replan-label {
  position: absolute;
  left: -2.15rem;
  bottom: 3.1rem;
  color: #0f2d3d;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
}

.overview-replan-label::before {
  content: "x";
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  margin-right: 0.18rem;
  color: #f04d2f;
  font-size: 1rem;
  line-height: 1;
}

.overview-source-row {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr 1.15fr;
  gap: 0.65rem;
  align-items: stretch;
}

.overview-source-card {
  min-height: 83px;
  padding-top: 1.85rem;
  border-color: rgba(240, 111, 61, 0.42);
}

.overview-source-card strong {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  min-height: 1.6rem;
  padding: 0.15rem 0.45rem;
  background: var(--overview-green);
  color: #ffffff;
  font-size: 0.86rem;
  line-height: 1.2;
  text-align: left;
}

.overview-source-card--test strong {
  background: #d8c16b;
}

.overview-source-card--history strong {
  background: #262626;
}

.overview-policy-inputs {
  display: grid;
  grid-template-columns: 1.1fr 0.45fr 0.75fr;
  gap: 0.6rem;
  align-items: end;
  color: #111111;
  font-size: 0.86rem;
  line-height: 1.1;
  text-align: center;
}

.overview-policy-inputs span::after {
  content: "";
  display: block;
  width: 2px;
  height: 22px;
  margin: 0.15rem auto -0.12rem;
  background: #ee6f3d;
}

.overview-policy-bar {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  border: 2px solid #111111;
  border-radius: 6px;
  background: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
}

.overview-execution-row {
  display: grid;
  grid-template-columns: 1fr 0.55fr 0.55fr 0.5fr;
  gap: 0.65rem;
  align-items: center;
}

.overview-simulator-card,
.overview-state-card,
.overview-reward-card {
  display: grid;
  place-items: center;
  min-height: 70px;
  border: 2px solid #111111;
  background: #ffffff;
  text-align: center;
}

.overview-simulator-card strong {
  font-size: 1.2rem;
  font-weight: 500;
}

.overview-simulator-card span {
  color: #111111;
  font-size: 0.9rem;
}

.overview-state-card {
  border: 0;
}

.overview-state-card strong {
  font-size: 0.92rem;
}

.overview-discriminator-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 0.55rem;
  background: #f47d33;
  color: #ffffff;
  clip-path: polygon(0 0, 100% 18%, 100% 82%, 0 100%);
  text-align: center;
}

.overview-discriminator-card strong {
  max-width: 6.2rem;
  font-size: 1rem;
  line-height: 1.15;
}

.overview-reward-card {
  min-height: 92px;
  border-color: #ee6f3d;
  background: transparent;
}

.overview-reward-card span {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.2;
}

.metric-card,
.stat-card,
.info-card,
.timeline-case {
  border-color: rgba(203, 213, 225, 0.86);
  border-radius: var(--omni-radius);
  box-shadow: var(--omni-shadow-subtle);
}

.dataset-side {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.dataset-side .stat-card {
  padding: 0.72rem 0.55rem;
  box-shadow: none;
}

.dataset-side .stat-card span {
  font-size: clamp(1rem, 1.4vw, 1.28rem);
}

.dataset-side .stat-card p {
  font-size: 0.78rem;
  line-height: 1.2;
}

.dataset-gallery {
  align-content: stretch;
}

.dataset-video-card,
.generalization-carousel-card,
.generalization-video-grid--multi .generalization-video-card,
.recovery-video-card,
.vlm-video-column .generalization-video-card,
.baseline-video-grid .generalization-video-card {
  border-radius: var(--omni-radius);
  border: 1px solid rgba(203, 213, 225, 0.86);
  box-shadow: var(--omni-shadow-soft);
}

.baseline-video-grid .generalization-video-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.55rem;
}

.baseline-video-grid .generalization-video-card video {
  order: 2;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--omni-radius-sm);
}

.dataset-video-card .generalization-video-label,
.generalization-carousel-card .generalization-video-label,
.generalization-video-grid--multi .generalization-video-label,
.recovery-video-card .generalization-video-label,
.vlm-video-column .generalization-video-label,
.baseline-video-grid .generalization-video-label {
  position: relative;
  order: 1;
  min-height: 2.05rem;
  padding: 0.5rem 1rem 0.5rem 1.15rem;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: var(--omni-radius-sm);
  background: var(--omni-caption-bg);
  color: var(--omni-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: clamp(0.76rem, 0.78vw, 0.9rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dataset-video-card .generalization-video-label::before,
.generalization-carousel-card .generalization-video-label::before,
.generalization-video-grid--multi .generalization-video-label::before,
.recovery-video-card .generalization-video-label::before,
.vlm-video-column .generalization-video-label::before,
.baseline-video-grid .generalization-video-label::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b5cf6 0%, #EE6363 100%);
  box-shadow: 0 0 12px rgba(238, 99, 99, 0.22);
}

.generalization-tab:disabled,
.generalization-tab[aria-disabled="true"] {
  color: #94a3b8;
  background: rgba(241, 245, 249, 0.72);
  border-color: rgba(203, 213, 225, 0.62);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.generalization-tab:disabled:hover,
.generalization-tab[aria-disabled="true"]:hover {
  transform: none;
  color: #94a3b8;
  background: rgba(241, 245, 249, 0.72);
}

.chain-stage-visual {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: center;
  min-height: 210px;
  padding: 1rem;
}

.chain-stage-visual span,
.recovery-visual div {
  display: grid;
  min-width: 0;
  min-height: 84px;
  place-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: var(--omni-radius-sm);
  background: rgba(255, 255, 255, 0.88);
  color: var(--omni-ink);
  font-weight: 900;
  text-align: center;
  box-shadow: var(--omni-shadow-subtle);
}

.chain-stage-visual i,
.recovery-visual i {
  display: none;
}

.chain-stage-visual--mixed span:nth-of-type(1),
.chain-stage-visual--endurance span:nth-of-type(4) {
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6, #EE6363);
}

.recovery-visual {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: center;
  min-height: 430px;
  padding: 1.1rem;
}

.recovery-visual div {
  align-content: center;
  gap: 0.35rem;
}

.recovery-visual span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(238, 99, 99, 0.12);
  color: #EE6363;
  font-weight: 900;
}

.recovery-visual strong {
  color: var(--omni-ink);
  font-size: 1rem;
}

.recovery-visual em {
  color: var(--omni-muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.3;
}

.embedded-viewer {
  border-radius: var(--omni-radius);
  border-color: rgba(203, 213, 225, 0.86);
  box-shadow: var(--omni-shadow-soft);
}

.embedded-viewer-header {
  min-height: 3.2rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(203, 213, 225, 0.78);
  background: rgba(248, 250, 252, 0.92);
}

.embedded-viewer-header h3 {
  font-size: 0.98rem;
}

.embedded-viewer-header a {
  min-height: 2rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
}

.live-policy-container {
  padding-left: clamp(24px, 4vw, 72px);
  padding-right: clamp(24px, 4vw, 72px);
}

.baseline-status {
  margin-left: 0.35rem;
  padding: 0.12rem 0.38rem;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

@media screen and (max-width: 1280px) {
  .omni-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
  }

  .overview-blueprint {
    grid-template-columns: 1fr;
  }

  .overview-panel {
    min-height: auto;
  }
}

@media screen and (max-width: 768px) {
  .overview-container {
    width: min(94vw, 680px) !important;
  }

  .overview-original-figure,
  .overview-video-figure,
  .metric-row {
    width: 100%;
  }

  .overview-blueprint {
    gap: 0.8rem;
    font-family: Georgia, "Times New Roman", serif;
  }

  .overview-panel-title {
    grid-template-columns: 1fr;
    gap: 0.18rem;
    padding: 0.65rem 0.8rem;
  }

  .overview-cfgen-body,
  .overview-source-row,
  .overview-execution-row {
    grid-template-columns: 1fr;
  }

  .overview-cftrack-body {
    gap: 0.85rem;
  }

  .overview-policy-inputs {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .overview-policy-inputs span::after {
    height: 14px;
  }

  .overview-stage-card::before,
  .overview-stage-row--failure::after,
  .overview-replan-label {
    display: none;
  }

  .overview-ai-row {
    grid-template-columns: 1fr;
  }

  .overview-source-card {
    min-height: 92px;
  }

  .overview-system-figure {
    grid-template-columns: 1fr;
  }

  .overview-flow {
    min-width: 0;
  }

  .overview-flow i {
    width: 4px;
    height: 38px;
  }

  .overview-loop,
  .dataset-side,
  .chain-stage-visual,
  .recovery-visual {
    grid-template-columns: 1fr;
  }

  .chain-stage-visual,
  .recovery-visual {
    min-height: auto;
  }

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

  .baseline-video-grid .generalization-video-label,
  .dataset-video-card .generalization-video-label,
  .generalization-carousel-card .generalization-video-label,
  .vlm-video-column .generalization-video-label {
    font-size: 0.78rem;
  }
}

.more-works-container {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}

.theme-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #172033;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  backdrop-filter: blur(12px);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(238, 99, 99, 0.76);
  background: #ffffff;
  color: var(--omni-blue);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  outline: none;
  transform: translateY(-1px);
}

/* Light mode keeps the red theme but uses the same dark material system. */
body:not(.omni-dark) {
  --primary-color: #EE6363;
  --primary-hover: #ff8585;
  --accent-color: #EE6363;
  --text-primary: #f6f7f9;
  --text-secondary: #a8afbb;
  --text-light: #6f7785;
  --background-primary: #050506;
  --background-secondary: #090a0d;
  --background-accent: #111318;
  --border-color: rgba(255, 255, 255, 0.13);
  --gradient-primary: linear-gradient(135deg, #ffffff 0%, #EE6363 78%, #ffb0b0 100%);
  --gradient-accent: linear-gradient(135deg, #EE6363 0%, #ffb0b0 100%);
  --gradient-subtle: linear-gradient(180deg, #0c0d10 0%, #060608 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.48);
  --shadow-xl: 0 28px 72px rgba(0, 0, 0, 0.58);
  --omni-ink: #f6f7f9;
  --omni-muted: #a6adba;
  --omni-line: rgba(255, 255, 255, 0.13);
  --omni-blue: #EE6363;
  --omni-cyan: #ff8585;
  --omni-green: #ffb0b0;
  --omni-amber: #EE6363;
  --omni-surface: #0d0f13;
  --omni-shadow-soft: 0 24px 58px rgba(0, 0, 0, 0.46);
  --omni-shadow-subtle: 0 14px 36px rgba(0, 0, 0, 0.32);
  --omni-caption-bg: linear-gradient(180deg, rgba(21, 23, 29, 0.96), rgba(9, 10, 13, 0.96));
  color: var(--text-primary);
  background:
    linear-gradient(90deg, rgba(238, 99, 99, 0.055) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #050506 0%, #090a0d 38%, #050506 100%);
  background-size: 96px 100%, auto;
}

body:not(.omni-dark) main {
  background: #050506;
}

body:not(.omni-dark) a {
  color: #ff8585;
}

body:not(.omni-dark) .hero.is-light,
body:not(.omni-dark) .omni-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 32%),
    #050506;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.omni-dark) #overview-section {
  background:
    linear-gradient(112deg, transparent 0%, rgba(238, 99, 99, 0.16) 28%, rgba(255, 176, 176, 0.08) 44%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    #090a0d;
}

body:not(.omni-dark) #live-policy-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    #050608;
}

body:not(.omni-dark) #dataset-section {
  background:
    linear-gradient(74deg, transparent 0%, transparent 24%, rgba(238, 99, 99, 0.18) 58%, rgba(255, 176, 176, 0.08) 72%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(238, 99, 99, 0.018)),
    #0c0e13;
}

body:not(.omni-dark) #generalized-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.014)),
    #07090d;
}

body:not(.omni-dark) #chaining-section {
  background:
    linear-gradient(150deg, rgba(238, 99, 99, 0.16) 0%, rgba(255, 176, 176, 0.07) 18%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    #101116;
}

body:not(.omni-dark) #recovery-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.008)),
    #06070a;
}

body:not(.omni-dark) #vlm-section {
  background:
    linear-gradient(24deg, transparent 0%, rgba(255, 176, 176, 0.08) 18%, rgba(238, 99, 99, 0.17) 42%, transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(238, 99, 99, 0.014)),
    #0b0d12;
}

body:not(.omni-dark) #comparison-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    #08090c;
}

body:not(.omni-dark) .hero.is-light::before,
body:not(.omni-dark) .hero.is-light::after {
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.96), transparent);
}

body:not(.omni-dark) .hero.is-light::after {
  background: linear-gradient(to top, rgba(5, 5, 6, 0.96), transparent);
}

body:not(.omni-dark) .omni-hero,
body:not(.omni-dark) .omni-hero-grid {
  background: #020203;
}

body:not(.omni-dark) .omni-hero-grid .grid-cell::before {
  background:
    linear-gradient(180deg, rgba(2, 2, 3, 0.08), rgba(2, 2, 3, 0.24)),
    rgba(238, 99, 99, 0.025);
}

body:not(.omni-dark) .hero-main-overlay {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 2, 3, 0.28) 0%, rgba(2, 2, 3, 0.06) 46%, rgba(2, 2, 3, 0.22) 100%),
    linear-gradient(180deg, rgba(2, 2, 3, 0.1) 0%, rgba(2, 2, 3, 0.02) 50%, rgba(5, 5, 6, 0.2) 100%);
}

body:not(.omni-dark) .hero-main .publication-title {
  color: #ffffff !important;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.72);
}

body:not(.omni-dark) .hero-main .publication-title .title-main,
body:not(.omni-dark) .section-heading {
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 38%, #EE6363 76%, #ffb0b0 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body:not(.omni-dark) .hero-main .publication-title .title-sub,
body:not(.omni-dark) .omni-section .demo-desc {
  color: rgba(242, 244, 248, 0.82);
}

body:not(.omni-dark) .publication-links .button.is-dark {
  border: 1px solid rgba(238, 99, 99, 0.62) !important;
  background: rgba(238, 99, 99, 0.1) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 16px 38px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

body:not(.omni-dark) .publication-links .button.is-dark:hover,
body:not(.omni-dark) .button.is-dark:hover {
  background: #EE6363 !important;
  color: #050506 !important;
  box-shadow: 0 18px 46px rgba(238, 99, 99, 0.28);
}

body:not(.omni-dark) .button.is-dark {
  background: #111318 !important;
  color: #ffffff !important;
}

body:not(.omni-dark) .outline-panel {
  background: rgba(8, 9, 12, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

body:not(.omni-dark) .theme-toggle {
  background: rgba(238, 99, 99, 0.14);
  border-color: rgba(238, 99, 99, 0.62);
  color: #ffb0b0;
  box-shadow: 0 16px 36px rgba(238, 99, 99, 0.18), 0 18px 46px rgba(0, 0, 0, 0.36);
}

body:not(.omni-dark) .theme-toggle:hover,
body:not(.omni-dark) .theme-toggle:focus-visible {
  background: #EE6363;
  border-color: #ff8585;
  color: #050506;
  box-shadow: 0 18px 46px rgba(238, 99, 99, 0.28);
}

body:not(.omni-dark) .outline-panel-title,
body:not(.omni-dark) .outline-panel-title i,
body:not(.omni-dark) .outline-fold-icon {
  color: #f4f5f7;
}

body:not(.omni-dark) .outline-panel-title:hover,
body:not(.omni-dark) .outline-panel .outline-link:hover {
  background: rgba(238, 99, 99, 0.13);
}

body:not(.omni-dark) .outline-panel .outline-link {
  color: #a8afbb;
}

body:not(.omni-dark) .outline-panel .outline-link.active {
  color: #050506;
  background: linear-gradient(135deg, #EE6363 0%, #ffb0b0 100%);
}

body:not(.omni-dark) .scroll-to-top {
  background: #EE6363;
  color: #050506;
  box-shadow: 0 16px 36px rgba(238, 99, 99, 0.24);
}

body:not(.omni-dark) .scroll-to-top:hover {
  background: #ff8585;
}

body:not(.omni-dark) .info-card,
body:not(.omni-dark) .case-card,
body:not(.omni-dark) .timeline-case,
body:not(.omni-dark) .metric-card,
body:not(.omni-dark) .stat-card,
body:not(.omni-dark) .vlm-prompt,
body:not(.omni-dark) .policy-link-panel,
body:not(.omni-dark) .recovery-steps div,
body:not(.omni-dark) .overview-node,
body:not(.omni-dark) .overview-loop span,
body:not(.omni-dark) .chain-stage-visual span,
body:not(.omni-dark) .recovery-visual div {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #0d0f13;
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--omni-ink);
  box-shadow: var(--omni-shadow-subtle);
}

body:not(.omni-dark) .info-card h3,
body:not(.omni-dark) .case-card h3,
body:not(.omni-dark) .timeline-case h3,
body:not(.omni-dark) .policy-link-panel h3,
body:not(.omni-dark) .recovery-visual strong,
body:not(.omni-dark) .overview-node strong,
body:not(.omni-dark) .tsne-header h3,
body:not(.omni-dark) .embedded-viewer-header h3 {
  color: #ffffff;
}

body:not(.omni-dark) .info-card p,
body:not(.omni-dark) .case-card p,
body:not(.omni-dark) .timeline-case p,
body:not(.omni-dark) .recovery-steps p,
body:not(.omni-dark) .vlm-prompt p,
body:not(.omni-dark) .policy-link-panel p,
body:not(.omni-dark) .overview-node span,
body:not(.omni-dark) .overview-node em,
body:not(.omni-dark) .overview-flow,
body:not(.omni-dark) .overview-loop span,
body:not(.omni-dark) .metric-card p,
body:not(.omni-dark) .stat-card p,
body:not(.omni-dark) .recovery-visual em,
body:not(.omni-dark) .tsne-header p,
body:not(.omni-dark) #tsne-status,
body:not(.omni-dark) .generalization-row-label {
  color: var(--omni-muted);
}

body:not(.omni-dark) .metric-card span,
body:not(.omni-dark) .stat-card span,
body:not(.omni-dark) .prompt-label,
body:not(.omni-dark) .recovery-steps span,
body:not(.omni-dark) .recovery-visual span {
  color: #ff8585;
}

body:not(.omni-dark) .overview-system-figure,
body:not(.omni-dark) .chain-stage-visual,
body:not(.omni-dark) .recovery-visual {
  background:
    linear-gradient(90deg, rgba(238, 99, 99, 0.1) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(21, 23, 29, 0.96), rgba(7, 8, 10, 0.98));
  background-size: 44px 100%, auto;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: var(--omni-shadow-soft);
}

body:not(.omni-dark) .overview-node {
  border-left-color: #EE6363;
}

body:not(.omni-dark) .overview-node--policy {
  border-left-color: #ffb0b0;
}

body:not(.omni-dark) .overview-flow i,
body:not(.omni-dark) .chain-stage-visual--mixed span:nth-of-type(1),
body:not(.omni-dark) .chain-stage-visual--endurance span:nth-of-type(4),
body:not(.omni-dark) .dataset-video-card .generalization-video-label::before,
body:not(.omni-dark) .generalization-carousel-card .generalization-video-label::before,
body:not(.omni-dark) .generalization-video-grid--multi .generalization-video-label::before,
body:not(.omni-dark) .recovery-video-card .generalization-video-label::before,
body:not(.omni-dark) .vlm-video-column .generalization-video-label::before,
body:not(.omni-dark) .baseline-video-grid .generalization-video-label::before {
  background: linear-gradient(180deg, #EE6363 0%, #ffb0b0 100%);
  box-shadow: 0 0 16px rgba(238, 99, 99, 0.32);
}

body:not(.omni-dark) .overview-flow i {
  background: linear-gradient(90deg, #EE6363, #ffb0b0);
}

body:not(.omni-dark) .dataset-view-tabs,
body:not(.omni-dark) .generalization-tabs {
  background: rgba(13, 15, 19, 0.78);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 46px rgba(0, 0, 0, 0.34);
}

body:not(.omni-dark) .dataset-view-tab,
body:not(.omni-dark) .generalization-tab,
body:not(.omni-dark) .generalization-carousel-arrow {
  background: #101218;
  border-color: rgba(255, 255, 255, 0.13);
  color: #f5f6f8;
  box-shadow: none;
}

body:not(.omni-dark) .dataset-view-tab:hover,
body:not(.omni-dark) .dataset-view-tab:focus-visible,
body:not(.omni-dark) .generalization-tab:hover,
body:not(.omni-dark) .generalization-tab:focus-visible,
body:not(.omni-dark) .generalization-carousel-arrow:hover,
body:not(.omni-dark) .generalization-carousel-arrow:focus-visible {
  border-color: rgba(238, 99, 99, 0.72);
  background: rgba(238, 99, 99, 0.12);
  color: #ffb0b0;
  box-shadow: 0 12px 30px rgba(238, 99, 99, 0.14);
}

body:not(.omni-dark) .dataset-view-tab.is-active,
body:not(.omni-dark) .generalization-tab.is-active {
  background: linear-gradient(135deg, #EE6363 0%, #ffb0b0 100%);
  color: #050506;
  box-shadow: 0 16px 36px rgba(238, 99, 99, 0.22);
}

body:not(.omni-dark) .generalization-tab:disabled,
body:not(.omni-dark) .generalization-tab[aria-disabled="true"],
body:not(.omni-dark) .generalization-tab:disabled:hover,
body:not(.omni-dark) .generalization-tab[aria-disabled="true"]:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
  color: #5e6673;
  box-shadow: none;
}

body:not(.omni-dark) .tsne-panel,
body:not(.omni-dark) .embedded-viewer,
body:not(.omni-dark) .generalization-video-card,
body:not(.omni-dark) .dataset-video-card,
body:not(.omni-dark) .generalization-carousel-card,
body:not(.omni-dark) .generalization-video-grid--multi .generalization-video-card,
body:not(.omni-dark) .recovery-video-card,
body:not(.omni-dark) .vlm-video-column .generalization-video-card,
body:not(.omni-dark) .baseline-video-grid .generalization-video-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #0b0d11;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: var(--omni-shadow-soft);
}

body:not(.omni-dark) #dataset-tsne,
body:not(.omni-dark) .dataset-glb-stage,
body:not(.omni-dark) .embedded-viewer iframe,
body:not(.omni-dark) .embedded-viewer--glb iframe,
body:not(.omni-dark) .embedded-viewer--dataset-cloud iframe {
  background: #08090c;
}

body:not(.omni-dark) .embedded-viewer-header {
  background:
    linear-gradient(90deg, rgba(238, 99, 99, 0.12), transparent 58%),
    #101218;
  border-bottom-color: rgba(255, 255, 255, 0.13);
}

body:not(.omni-dark) .embedded-viewer-header a,
body:not(.omni-dark) .policy-link-panel a {
  background: rgba(238, 99, 99, 0.13);
  border: 1px solid rgba(238, 99, 99, 0.5);
  color: #ffb0b0;
}

body:not(.omni-dark) .embedded-viewer-header a:hover,
body:not(.omni-dark) .policy-link-panel a:hover {
  background: #EE6363;
  color: #050506;
}

body:not(.omni-dark) .policy-viewer-placeholder {
  background:
    linear-gradient(90deg, rgba(238, 99, 99, 0.16) 0 1px, transparent 1px 100%),
    linear-gradient(135deg, rgba(238, 99, 99, 0.24), rgba(29, 24, 24, 0.9) 44%, rgba(17, 19, 24, 0.94) 100%),
    #14161c;
  background-size: 52px 100%, auto, auto;
}

body:not(.omni-dark) .policy-viewer-load-button {
  background: rgba(245, 247, 250, 0.94);
  border-color: rgba(255, 176, 176, 0.72);
  color: #121417;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38), 0 0 42px rgba(238, 99, 99, 0.16);
}

body:not(.omni-dark) .policy-viewer-load-button:hover {
  border-color: #ff8585;
  box-shadow: 0 34px 92px rgba(238, 99, 99, 0.2);
}

body:not(.omni-dark) .policy-viewer-load-button small {
  color: #ffb0b0;
}

body:not(.omni-dark) .dataset-video-card .generalization-video-label,
body:not(.omni-dark) .generalization-carousel-card .generalization-video-label,
body:not(.omni-dark) .generalization-video-grid--multi .generalization-video-label,
body:not(.omni-dark) .recovery-video-card .generalization-video-label,
body:not(.omni-dark) .vlm-video-column .generalization-video-label,
body:not(.omni-dark) .baseline-video-grid .generalization-video-label {
  background: var(--omni-caption-bg);
  border-color: rgba(255, 255, 255, 0.13);
  color: #f6f7f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body:not(.omni-dark) .generalization-video-slot {
  background:
    linear-gradient(90deg, rgba(238, 99, 99, 0.08) 0 1px, transparent 1px 100%),
    #090a0d;
  background-size: 42px 100%, auto;
  color: var(--omni-muted);
}

body:not(.omni-dark) .generalization-video-slot::before {
  background: rgba(238, 99, 99, 0.14);
  color: #ff8585;
}

body:not(.omni-dark) .generalization-video-slot strong,
body:not(.omni-dark) .tsne-legend-item.is-active {
  color: #ffffff;
}

body:not(.omni-dark) .tsne-float-label {
  background: rgba(11, 13, 17, 0.9);
  border-color: color-mix(in srgb, var(--skill-color) 54%, #ffffff 12%);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.44);
}

body:not(.omni-dark) .tsne-float-label span,
body:not(.omni-dark) .tsne-legend-item,
body:not(.omni-dark) .generalization-carousel-meta {
  color: var(--omni-muted);
}

body:not(.omni-dark) .baseline-status--failed,
body:not(.omni-dark) .baseline-status--failure {
  background: rgba(238, 99, 99, 0.15);
  color: #ffb0b0;
}

body:not(.omni-dark) .baseline-status--error {
  background: rgba(255, 255, 255, 0.08);
  color: #a8afbb;
}

body:not(.omni-dark) .heading-anchor,
body:not(.omni-dark) .section-heading .heading-anchor {
  -webkit-text-fill-color: #777f8d;
}

body:not(.omni-dark) .heading-anchor:hover,
body:not(.omni-dark) .section-heading .heading-anchor:hover {
  -webkit-text-fill-color: #ff8585;
}

/* Dark launch theme: black surfaces, white typography, restrained orange signal. */
body.omni-dark {
  --primary-color: #ff6a00;
  --primary-hover: #ff8a1f;
  --accent-color: #ff6a00;
  --text-primary: #f6f7f9;
  --text-secondary: #a8afbb;
  --text-light: #6f7785;
  --background-primary: #050506;
  --background-secondary: #090a0d;
  --background-accent: #111318;
  --border-color: rgba(255, 255, 255, 0.13);
  --gradient-primary: linear-gradient(135deg, #ffffff 0%, #ff6a00 78%, #ffb15f 100%);
  --gradient-accent: linear-gradient(135deg, #ff6a00 0%, #ffb15f 100%);
  --gradient-subtle: linear-gradient(180deg, #0c0d10 0%, #060608 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.48);
  --shadow-xl: 0 28px 72px rgba(0, 0, 0, 0.58);
  --omni-ink: #f6f7f9;
  --omni-muted: #a6adba;
  --omni-line: rgba(255, 255, 255, 0.13);
  --omni-blue: #ff6a00;
  --omni-cyan: #ff9d2e;
  --omni-green: #ffb15f;
  --omni-amber: #ff6a00;
  --omni-surface: #0d0f13;
  --omni-shadow-soft: 0 24px 58px rgba(0, 0, 0, 0.46);
  --omni-shadow-subtle: 0 14px 36px rgba(0, 0, 0, 0.32);
  --omni-caption-bg: linear-gradient(180deg, rgba(21, 23, 29, 0.96), rgba(9, 10, 13, 0.96));
  color: var(--text-primary);
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.055) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #050506 0%, #090a0d 38%, #050506 100%);
  background-size: 96px 100%, auto;
}

body.omni-dark main {
  background: #050506;
}

body.omni-dark a {
  color: #ff9d2e;
}

body.omni-dark .hero.is-light,
body.omni-dark .omni-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 32%),
    #050506;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.omni-dark #overview-section {
  background:
    linear-gradient(112deg, transparent 0%, rgba(255, 106, 0, 0.16) 28%, rgba(255, 177, 95, 0.08) 44%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    #090a0d;
}

body.omni-dark #live-policy-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    #050608;
}

body.omni-dark #dataset-section {
  background:
    linear-gradient(74deg, transparent 0%, transparent 24%, rgba(255, 106, 0, 0.18) 58%, rgba(255, 177, 95, 0.08) 72%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 106, 0, 0.018)),
    #0c0e13;
}

body.omni-dark #generalized-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.014)),
    #07090d;
}

body.omni-dark #chaining-section {
  background:
    linear-gradient(150deg, rgba(255, 106, 0, 0.16) 0%, rgba(255, 177, 95, 0.07) 18%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    #101116;
}

body.omni-dark #recovery-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.008)),
    #06070a;
}

body.omni-dark #vlm-section {
  background:
    linear-gradient(24deg, transparent 0%, rgba(255, 177, 95, 0.08) 18%, rgba(255, 106, 0, 0.17) 42%, transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 106, 0, 0.014)),
    #0b0d12;
}

body.omni-dark #comparison-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    #08090c;
}

body.omni-dark .hero.is-light::before,
body.omni-dark .hero.is-light::after {
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.96), transparent);
}

body.omni-dark .hero.is-light::after {
  background: linear-gradient(to top, rgba(5, 5, 6, 0.96), transparent);
}

body.omni-dark .omni-hero {
  background: #020203;
}

body.omni-dark .omni-hero-grid {
  background: #020203;
}

body.omni-dark .omni-hero-grid .grid-cell::before {
  background:
    linear-gradient(180deg, rgba(2, 2, 3, 0.08), rgba(2, 2, 3, 0.24)),
    rgba(255, 106, 0, 0.025);
}

body.omni-dark .hero-main-overlay {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 2, 3, 0.28) 0%, rgba(2, 2, 3, 0.06) 46%, rgba(2, 2, 3, 0.22) 100%),
    linear-gradient(180deg, rgba(2, 2, 3, 0.1) 0%, rgba(2, 2, 3, 0.02) 50%, rgba(5, 5, 6, 0.2) 100%);
}

body.omni-dark .hero-main .publication-title {
  color: #ffffff !important;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.72);
}

body.omni-dark .hero-main .publication-title .title-main,
body.omni-dark .section-heading {
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 38%, #ff6a00 76%, #ffb15f 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.omni-dark .hero-main .publication-title .title-sub,
body.omni-dark .omni-section .demo-desc {
  color: rgba(242, 244, 248, 0.82);
}

body.omni-dark .publication-links .button.is-dark {
  border: 1px solid rgba(255, 106, 0, 0.62) !important;
  background: rgba(255, 106, 0, 0.1) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 16px 38px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

body.omni-dark .publication-links .button.is-dark:hover,
body.omni-dark .button.is-dark:hover {
  background: #ff6a00 !important;
  color: #050506 !important;
  box-shadow: 0 18px 46px rgba(255, 106, 0, 0.28);
}

body.omni-dark .button.is-dark {
  background: #111318 !important;
  color: #ffffff !important;
}

body.omni-dark .outline-panel {
  background: rgba(8, 9, 12, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

body.omni-dark .theme-toggle {
  background: rgba(255, 106, 0, 0.14);
  border-color: rgba(255, 106, 0, 0.62);
  color: #ffb15f;
  box-shadow: 0 16px 36px rgba(255, 106, 0, 0.18), 0 18px 46px rgba(0, 0, 0, 0.36);
}

body.omni-dark .theme-toggle:hover,
body.omni-dark .theme-toggle:focus-visible {
  background: #ff6a00;
  border-color: #ff8a1f;
  color: #050506;
  box-shadow: 0 18px 46px rgba(255, 106, 0, 0.28);
}

body.omni-dark .outline-panel-title,
body.omni-dark .outline-panel-title i,
body.omni-dark .outline-fold-icon {
  color: #f4f5f7;
}

body.omni-dark .outline-panel-title:hover,
body.omni-dark .outline-panel .outline-link:hover {
  background: rgba(255, 106, 0, 0.13);
}

body.omni-dark .outline-panel .outline-link {
  color: #a8afbb;
}

body.omni-dark .outline-panel .outline-link.active {
  color: #050506;
  background: linear-gradient(135deg, #ff6a00 0%, #ffb15f 100%);
}

body.omni-dark .scroll-to-top {
  background: #ff6a00;
  color: #050506;
  box-shadow: 0 16px 36px rgba(255, 106, 0, 0.24);
}

body.omni-dark .scroll-to-top:hover {
  background: #ff8a1f;
}

body.omni-dark .info-card,
body.omni-dark .case-card,
body.omni-dark .timeline-case,
body.omni-dark .metric-card,
body.omni-dark .stat-card,
body.omni-dark .vlm-prompt,
body.omni-dark .policy-link-panel,
body.omni-dark .recovery-steps div,
body.omni-dark .overview-node,
body.omni-dark .overview-loop span,
body.omni-dark .chain-stage-visual span,
body.omni-dark .recovery-visual div {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #0d0f13;
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--omni-ink);
  box-shadow: var(--omni-shadow-subtle);
}

body.omni-dark .info-card h3,
body.omni-dark .case-card h3,
body.omni-dark .timeline-case h3,
body.omni-dark .policy-link-panel h3,
body.omni-dark .recovery-visual strong,
body.omni-dark .overview-node strong,
body.omni-dark .tsne-header h3,
body.omni-dark .embedded-viewer-header h3 {
  color: #ffffff;
}

body.omni-dark .info-card p,
body.omni-dark .case-card p,
body.omni-dark .timeline-case p,
body.omni-dark .recovery-steps p,
body.omni-dark .vlm-prompt p,
body.omni-dark .policy-link-panel p,
body.omni-dark .overview-node span,
body.omni-dark .overview-node em,
body.omni-dark .overview-flow,
body.omni-dark .overview-loop span,
body.omni-dark .metric-card p,
body.omni-dark .stat-card p,
body.omni-dark .recovery-visual em,
body.omni-dark .tsne-header p,
body.omni-dark #tsne-status,
body.omni-dark .generalization-row-label {
  color: var(--omni-muted);
}

body.omni-dark .metric-card span,
body.omni-dark .stat-card span,
body.omni-dark .prompt-label,
body.omni-dark .recovery-steps span,
body.omni-dark .recovery-visual span {
  color: #ff8a1f;
}

body.omni-dark .overview-system-figure,
body.omni-dark .chain-stage-visual,
body.omni-dark .recovery-visual {
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.1) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(21, 23, 29, 0.96), rgba(7, 8, 10, 0.98));
  background-size: 44px 100%, auto;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: var(--omni-shadow-soft);
}

body.omni-dark .overview-node {
  border-left-color: #ff6a00;
}

body.omni-dark .overview-node--policy {
  border-left-color: #ffb15f;
}

body.omni-dark .overview-flow i,
body.omni-dark .chain-stage-visual--mixed span:nth-of-type(1),
body.omni-dark .chain-stage-visual--endurance span:nth-of-type(4),
body.omni-dark .dataset-video-card .generalization-video-label::before,
body.omni-dark .generalization-carousel-card .generalization-video-label::before,
body.omni-dark .generalization-video-grid--multi .generalization-video-label::before,
body.omni-dark .recovery-video-card .generalization-video-label::before,
body.omni-dark .vlm-video-column .generalization-video-label::before,
body.omni-dark .baseline-video-grid .generalization-video-label::before {
  background: linear-gradient(180deg, #ff6a00 0%, #ffb15f 100%);
  box-shadow: 0 0 16px rgba(255, 106, 0, 0.32);
}

body.omni-dark .overview-flow i {
  background: linear-gradient(90deg, #ff6a00, #ffb15f);
}

body.omni-dark .dataset-view-tabs,
body.omni-dark .generalization-tabs {
  background: rgba(13, 15, 19, 0.78);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 46px rgba(0, 0, 0, 0.34);
}

body.omni-dark .dataset-view-tab,
body.omni-dark .generalization-tab,
body.omni-dark .generalization-carousel-arrow {
  background: #101218;
  border-color: rgba(255, 255, 255, 0.13);
  color: #f5f6f8;
  box-shadow: none;
}

body.omni-dark .dataset-view-tab:hover,
body.omni-dark .dataset-view-tab:focus-visible,
body.omni-dark .generalization-tab:hover,
body.omni-dark .generalization-tab:focus-visible,
body.omni-dark .generalization-carousel-arrow:hover,
body.omni-dark .generalization-carousel-arrow:focus-visible {
  border-color: rgba(255, 106, 0, 0.72);
  background: rgba(255, 106, 0, 0.12);
  color: #ffb15f;
  box-shadow: 0 12px 30px rgba(255, 106, 0, 0.14);
}

body.omni-dark .dataset-view-tab.is-active,
body.omni-dark .generalization-tab.is-active {
  background: linear-gradient(135deg, #ff6a00 0%, #ffb15f 100%);
  color: #050506;
  box-shadow: 0 16px 36px rgba(255, 106, 0, 0.22);
}

body.omni-dark .generalization-tab:disabled,
body.omni-dark .generalization-tab[aria-disabled="true"],
body.omni-dark .generalization-tab:disabled:hover,
body.omni-dark .generalization-tab[aria-disabled="true"]:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
  color: #5e6673;
  box-shadow: none;
}

body.omni-dark .tsne-panel,
body.omni-dark .embedded-viewer,
body.omni-dark .generalization-video-card,
body.omni-dark .dataset-video-card,
body.omni-dark .generalization-carousel-card,
body.omni-dark .generalization-video-grid--multi .generalization-video-card,
body.omni-dark .recovery-video-card,
body.omni-dark .vlm-video-column .generalization-video-card,
body.omni-dark .baseline-video-grid .generalization-video-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #0b0d11;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: var(--omni-shadow-soft);
}

body.omni-dark #dataset-tsne,
body.omni-dark .dataset-glb-stage,
body.omni-dark .embedded-viewer iframe,
body.omni-dark .embedded-viewer--glb iframe,
body.omni-dark .embedded-viewer--dataset-cloud iframe {
  background: #08090c;
}

body.omni-dark .embedded-viewer-header {
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.12), transparent 58%),
    #101218;
  border-bottom-color: rgba(255, 255, 255, 0.13);
}

body.omni-dark .embedded-viewer-header a,
body.omni-dark .policy-link-panel a {
  background: rgba(255, 106, 0, 0.13);
  border: 1px solid rgba(255, 106, 0, 0.5);
  color: #ffb15f;
}

body.omni-dark .embedded-viewer-header a:hover,
body.omni-dark .policy-link-panel a:hover {
  background: #ff6a00;
  color: #050506;
}

body.omni-dark .policy-viewer-placeholder {
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.16) 0 1px, transparent 1px 100%),
    linear-gradient(135deg, rgba(255, 106, 0, 0.24), rgba(29, 24, 20, 0.9) 44%, rgba(17, 19, 24, 0.94) 100%),
    #14161c;
  background-size: 52px 100%, auto, auto;
}

body.omni-dark .policy-viewer-load-button {
  background: rgba(245, 247, 250, 0.94);
  border-color: rgba(255, 177, 95, 0.72);
  color: #121417;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38), 0 0 42px rgba(255, 106, 0, 0.16);
}

body.omni-dark .policy-viewer-load-button:hover {
  border-color: #ff8a1f;
  box-shadow: 0 34px 92px rgba(255, 106, 0, 0.2);
}

body.omni-dark .policy-viewer-load-button small {
  color: #ffb15f;
}

body.omni-dark .dataset-video-card .generalization-video-label,
body.omni-dark .generalization-carousel-card .generalization-video-label,
body.omni-dark .generalization-video-grid--multi .generalization-video-label,
body.omni-dark .recovery-video-card .generalization-video-label,
body.omni-dark .vlm-video-column .generalization-video-label,
body.omni-dark .baseline-video-grid .generalization-video-label {
  background: var(--omni-caption-bg);
  border-color: rgba(255, 255, 255, 0.13);
  color: #f6f7f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.omni-dark .generalization-video-slot {
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.08) 0 1px, transparent 1px 100%),
    #090a0d;
  background-size: 42px 100%, auto;
  color: var(--omni-muted);
}

body.omni-dark .generalization-video-slot::before {
  background: rgba(255, 106, 0, 0.14);
  color: #ff8a1f;
}

body.omni-dark .generalization-video-slot strong,
body.omni-dark .tsne-legend-item.is-active {
  color: #ffffff;
}

body.omni-dark .tsne-float-label {
  background: rgba(11, 13, 17, 0.9);
  border-color: color-mix(in srgb, var(--skill-color) 54%, #ffffff 12%);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.44);
}

body.omni-dark .tsne-float-label span,
body.omni-dark .tsne-legend-item,
body.omni-dark .generalization-carousel-meta {
  color: var(--omni-muted);
}

body.omni-dark .baseline-status--failed,
body.omni-dark .baseline-status--failure {
  background: rgba(255, 106, 0, 0.15);
  color: #ffb15f;
}

body.omni-dark .baseline-status--error {
  background: rgba(255, 255, 255, 0.08);
  color: #a8afbb;
}

body.omni-dark .heading-anchor,
body.omni-dark .section-heading .heading-anchor {
  -webkit-text-fill-color: #777f8d;
}

body.omni-dark .heading-anchor:hover,
body.omni-dark .section-heading .heading-anchor:hover {
  -webkit-text-fill-color: #ff8a1f;
}

.dataset-video-card .generalization-video-label {
  min-height: 2.35rem;
  padding-top: 0.58rem;
  padding-bottom: 0.58rem;
}

.dataset-video-card .generalization-video-label::before {
  top: 0.34rem;
  bottom: 0.34rem;
  width: 4px;
}

.vlm-video-column .generalization-video-card {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #0f172a;
}

.vlm-video-column .generalization-video-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.vlm-video-column .generalization-video-card > video {
  display: block;
  width: 100%;
  order: initial;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
  object-fit: cover;
}

body.omni-dark .vlm-video-column .generalization-video-label,
.vlm-video-column .generalization-video-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  font-size: clamp(0.82rem, 0.84vw, 0.98rem);
  font-weight: 800;
  line-height: 1.28;
  text-align: left;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.55);
  backdrop-filter: none;
}

body.omni-dark .vlm-video-column .generalization-video-label::before,
.vlm-video-column .generalization-video-label::before {
  display: none;
}

.video-speed-badge {
  display: none;
}

.vlm-corl-card .video-speed-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.76);
  color: #ff8c2a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
}

body.omni-dark .vlm-corl-card .generalization-video-label,
.vlm-corl-card .generalization-video-label {
  left: 4.45rem;
  right: 0.85rem;
  bottom: 0.95rem;
}

/* Baseline Comparison: designed as a comparison board, not a card pile. */
#comparison-section .baseline-container {
  box-sizing: border-box;
  width: min(95vw, 1776px) !important;
  max-width: min(95vw, 1776px) !important;
}

#comparison-section .baseline-tabs {
  width: min(100%, 1536px);
  margin-top: 1.1rem;
}

#comparison-section .baseline-video-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.32fr) repeat(2, minmax(240px, 0.68fr)) !important;
  grid-auto-rows: minmax(205px, auto);
  gap: clamp(0.85rem, 1.25vw, 1.15rem);
  width: min(100%, 1632px) !important;
  max-width: 1632px;
  margin: clamp(1.45rem, 2vw, 2rem) auto 0;
  align-items: stretch;
}

#comparison-section .baseline-video-grid--count-2 {
  grid-template-columns: repeat(2, minmax(360px, 1fr)) !important;
  width: min(100%, 1416px) !important;
}

#comparison-section .baseline-video-grid--count-3 {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr) !important;
  width: min(100%, 1416px) !important;
}

#comparison-section .baseline-video-grid--count-4 {
  grid-template-columns: minmax(0, 1.28fr) repeat(2, minmax(240px, 0.7fr)) !important;
}

#comparison-section .baseline-video-grid--count-4 .baseline-video-card--lessmimic {
  grid-column: 2 / span 2;
}

#comparison-section .baseline-video-card {
  position: relative;
  display: block !important;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #090b10;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

#comparison-section .baseline-video-card--ours_cfgen {
  grid-column: 1;
  grid-row: 1 / span 2;
  order: -1;
  border-color: rgba(238, 99, 99, 0.42);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(238, 99, 99, 0.12);
}

#comparison-section .baseline-video-grid--count-2 .baseline-video-card--ours_cfgen {
  grid-row: auto;
}

#comparison-section .baseline-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: inherit;
}

#comparison-section .baseline-video-card--ours_cfgen video {
  aspect-ratio: auto;
  min-height: 430px;
}

#comparison-section .baseline-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.54) 0%, transparent 28%),
    linear-gradient(0deg, rgba(5, 6, 10, 0.38) 0%, transparent 34%);
}

#comparison-section .baseline-video-card .generalization-video-label {
  position: absolute;
  left: 0.72rem;
  top: 0.72rem;
  right: auto;
  z-index: 2;
  display: inline-flex;
  max-width: calc(100% - 1.44rem);
  min-height: 0;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 8, 12, 0.74);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font-size: clamp(0.78rem, 0.78vw, 0.92rem);
  font-weight: 850;
  line-height: 1;
  text-align: left;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(12px);
}

#comparison-section .baseline-video-card--ours_cfgen .generalization-video-label {
  background: linear-gradient(135deg, rgba(238, 99, 99, 0.9), rgba(255, 161, 161, 0.74));
  color: #111217;
}

#comparison-section .baseline-video-card .generalization-video-label::before {
  display: none;
}

#comparison-section .baseline-status {
  position: absolute;
  top: 0.72rem;
  right: 0.72rem;
  z-index: 3;
  margin-left: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 8, 12, 0.74);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

#comparison-section .baseline-status--success {
  color: #86efac;
}

#comparison-section .baseline-status--failed,
#comparison-section .baseline-status--failure {
  color: #fda4af;
}

#comparison-section .baseline-status--partial {
  color: #facc15;
}

#comparison-section .baseline-status--error {
  color: #cbd5e1;
}

@media screen and (max-width: 1180px) {
  #comparison-section .baseline-video-grid,
  #comparison-section .baseline-video-grid--count-2,
  #comparison-section .baseline-video-grid--count-3 {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto;
    width: min(100%, 860px) !important;
  }

  #comparison-section .baseline-video-card--ours_cfgen,
  #comparison-section .baseline-video-grid--count-4 .baseline-video-card--lessmimic {
    grid-column: auto;
    grid-row: auto;
  }

  #comparison-section .baseline-video-card--ours_cfgen video {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

@media screen and (max-width: 760px) {
  #comparison-section .baseline-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  #comparison-section .baseline-video-grid,
  #comparison-section .baseline-video-grid--count-2,
  #comparison-section .baseline-video-grid--count-3 {
    width: 100% !important;
  }

  #comparison-section .baseline-video-card {
    padding: 0.55rem;
  }
}

/* VLM captions should sit directly on the video, without a subtitle bar. */
#vlm-section .vlm-video-column {
  align-content: start;
}

#vlm-section .vlm-video-column .generalization-video-card,
body.omni-dark #vlm-section .vlm-video-column .generalization-video-card,
body:not(.omni-dark) #vlm-section .vlm-video-column .generalization-video-card {
  align-self: start;
  height: auto;
}

#vlm-section .embedded-viewer--glb .embedded-viewer-load-stage,
body.omni-dark #vlm-section .embedded-viewer--glb .embedded-viewer-load-stage,
body:not(.omni-dark) #vlm-section .embedded-viewer--glb .embedded-viewer-load-stage {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

#vlm-section .embedded-viewer-header,
body.omni-dark #vlm-section .embedded-viewer-header,
body:not(.omni-dark) #vlm-section .embedded-viewer-header {
  min-height: 0;
  padding: 0.5rem 0.7rem;
}

#vlm-section .embedded-viewer-header h3,
body.omni-dark #vlm-section .embedded-viewer-header h3,
body:not(.omni-dark) #vlm-section .embedded-viewer-header h3 {
  font-size: 0.9rem;
  line-height: 1.2;
}

#vlm-section .embedded-viewer-header a,
body.omni-dark #vlm-section .embedded-viewer-header a,
body:not(.omni-dark) #vlm-section .embedded-viewer-header a {
  min-height: 1.7rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
}

#vlm-section .vlm-video-column .generalization-video-label,
body.omni-dark #vlm-section .vlm-video-column .generalization-video-label,
body:not(.omni-dark) #vlm-section .vlm-video-column .generalization-video-label {
  display: block;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.78),
    0 0 2px rgba(0, 0, 0, 0.92);
}

#vlm-section .vlm-video-column .generalization-video-label::before,
body.omni-dark #vlm-section .vlm-video-column .generalization-video-label::before,
body:not(.omni-dark) #vlm-section .vlm-video-column .generalization-video-label::before {
  display: none !important;
}

/* Keep the live viewer header action readable on the dark header. */
#live-policy-section .embedded-viewer-header a,
body.omni-dark #live-policy-section .embedded-viewer-header a,
body:not(.omni-dark) #live-policy-section .embedded-viewer-header a {
  background: rgba(238, 99, 99, 0.16);
  border-color: rgba(238, 99, 99, 0.72);
  color: #ffd6d6 !important;
  text-shadow: none;
}

#live-policy-section .embedded-viewer-header a:hover,
#live-policy-section .embedded-viewer-header a:focus-visible,
body.omni-dark #live-policy-section .embedded-viewer-header a:hover,
body.omni-dark #live-policy-section .embedded-viewer-header a:focus-visible,
body:not(.omni-dark) #live-policy-section .embedded-viewer-header a:hover,
body:not(.omni-dark) #live-policy-section .embedded-viewer-header a:focus-visible {
  background: #EE6363;
  border-color: #ff9f9f;
  color: #050506 !important;
  outline: none;
}

/* Video captions should not draw an outer frame around the label text. */
.generalization-video-label,
.dataset-video-card .generalization-video-label,
.generalization-carousel-card .generalization-video-label,
.generalization-video-grid--multi .generalization-video-label,
.recovery-video-card .generalization-video-label,
.vlm-video-column .generalization-video-label,
.baseline-video-grid .generalization-video-label,
#comparison-section .baseline-video-card .generalization-video-label,
body.omni-dark .generalization-video-label,
body:not(.omni-dark) .generalization-video-label,
body.omni-dark .dataset-video-card .generalization-video-label,
body:not(.omni-dark) .dataset-video-card .generalization-video-label,
body.omni-dark .generalization-carousel-card .generalization-video-label,
body:not(.omni-dark) .generalization-carousel-card .generalization-video-label,
body.omni-dark .generalization-video-grid--multi .generalization-video-label,
body:not(.omni-dark) .generalization-video-grid--multi .generalization-video-label,
body.omni-dark .recovery-video-card .generalization-video-label,
body:not(.omni-dark) .recovery-video-card .generalization-video-label,
body.omni-dark .vlm-video-column .generalization-video-label,
body:not(.omni-dark) .vlm-video-column .generalization-video-label,
body.omni-dark .baseline-video-grid .generalization-video-label,
body:not(.omni-dark) .baseline-video-grid .generalization-video-label {
  border: 0 !important;
}

/* Cross-browser sizing normalization for Chrome, Edge, and Firefox. */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

#main-content {
  overflow-x: clip;
}

#main-content .container.is-max-desktop {
  width: min(calc(100% - 2rem), 1536px);
  max-width: 1536px !important;
}

.hero-main .hero-body {
  padding: clamp(3rem, 8svh, 5.5rem) 1.5rem clamp(2rem, 5svh, 4rem);
}

.hero-main .container {
  width: min(calc(100% - 2rem), 1344px);
  max-width: 1344px !important;
}

@media screen and (min-width: 769px) {
  .hero-main .publication-title {
    font-size: clamp(2.8rem, 4.8vw, 4.25rem) !important;
  }

  .hero-main .publication-links .button {
    font-size: clamp(0.85rem, 0.72vw, 1rem) !important;
    padding: 0.55rem 1rem !important;
  }
}

.overview-container,
.generalization-container,
.vlm-container,
.baseline-container,
.container.is-max-desktop.dataset-container {
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 1584px) !important;
  max-width: 1584px !important;
}

.generalization-container {
  width: min(calc(100% - 2rem), 1632px) !important;
  max-width: 1632px !important;
}

.baseline-container {
  width: min(calc(100% - 2rem), 1728px) !important;
  max-width: 1728px !important;
}

.live-policy-container {
  width: min(calc(100% - 2rem), 1920px) !important;
  max-width: 1920px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none;
  padding-left: 0;
  padding-right: 0;
}

.policy-viewer-stage,
.embedded-viewer--policy iframe {
  height: min(94svh, 988px);
  min-height: 728px;
}

@supports not (height: 1svh) {
  .hero-main .hero-body {
    padding: clamp(3rem, 8vh, 5.5rem) 1.5rem clamp(2rem, 5vh, 4rem);
  }

  .policy-viewer-stage,
  .embedded-viewer--policy iframe {
    height: min(94vh, 988px);
  }
}

.embedded-viewer iframe {
  height: min(70svh, 700px);
  min-height: 500px;
}

.embedded-viewer--policy iframe,
.embedded-viewer--dataset-cloud iframe,
.vlm-showcase .embedded-viewer--glb iframe {
  height: 100%;
  min-height: 0;
}

.dataset-flip-card {
  height: clamp(620px, 68svh, 820px);
  min-height: clamp(620px, 68svh, 820px);
}

@supports not (height: 1svh) {
  .dataset-flip-card {
    height: clamp(620px, 68vh, 820px);
    min-height: clamp(620px, 68vh, 820px);
  }
}

@media screen and (max-width: 900px) {
  #main-content .container.is-max-desktop,
  .overview-container,
  .generalization-container,
  .vlm-container,
  .baseline-container,
  .container.is-max-desktop.dataset-container,
  .live-policy-container {
    width: min(calc(100% - 1rem), 100%) !important;
    max-width: none !important;
  }

  .policy-viewer-stage,
  .embedded-viewer--policy iframe {
    height: 94svh;
    min-height: 728px;
  }
}

@media screen and (max-width: 640px) {
  .hero-main .container {
    width: min(calc(100% - 1rem), 100%);
  }

  .policy-viewer-stage,
  .embedded-viewer--policy iframe {
    height: 84svh;
    min-height: 624px;
  }

  .embedded-viewer iframe {
    min-height: 420px;
  }
}

.overview-framework-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(1.25rem, 2.4vw, 2rem);
  align-items: stretch;
  margin-top: 2rem;
}

.overview-framework-figure {
  min-width: 0;
  margin: 0;
  padding: clamp(0.45rem, 0.8vw, 0.7rem);
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--omni-shadow-soft);
}

.overview-framework-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.overview-framework-copy {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "features"
    "metrics";
  gap: clamp(0.95rem, 1.55vw, 1.25rem);
  align-content: center;
  min-width: 0;
  height: 100%;
  padding: clamp(0.75rem, 1.4vw, 1.05rem) clamp(0.35rem, 0.8vw, 0.75rem);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.overview-framework-copy::before {
  display: none;
}

.overview-framework-copy::after {
  display: none;
}

.overview-framework-intro {
  display: grid;
  grid-area: intro;
  gap: 0.62rem;
}

.overview-kicker {
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ff8585;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.overview-framework-intro h3 {
  margin: 0;
  color: var(--omni-ink);
  max-width: 13.5em;
  font-size: clamp(1.55rem, 2.25vw, 2.1rem);
  font-weight: 900;
  line-height: 1.04;
}

.overview-framework-copy p {
  margin: 0;
  color: var(--omni-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.overview-flow-map {
  position: relative;
  grid-area: features;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.26rem;
  width: 100%;
  padding-left: 0.35rem;
}

.overview-flow-map::before {
  content: "";
  position: absolute;
  left: 1.18rem;
  top: 0.82rem;
  bottom: 0.82rem;
  width: 0.42rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 120, 164, 0.12), rgba(255, 67, 98, 0.48) 34%, rgba(255, 129, 61, 0.42) 72%, rgba(255, 120, 164, 0.12)),
    #ff4d73;
  box-shadow:
    0 0 8px rgba(255, 92, 124, 0.34),
    0 0 22px rgba(255, 82, 113, 0.2),
    0 0 38px rgba(255, 132, 64, 0.11);
  opacity: 0.7;
  transition: opacity 180ms ease;
}

.overview-flow-map::after {
  content: "";
  position: absolute;
  left: 0.58rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1.65rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 105, 145, 0.16), rgba(255, 111, 80, 0.09));
  filter: blur(13px);
  opacity: 0.38;
  transition: opacity 180ms ease;
}

.overview-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-height: 0;
  padding: 0.82rem 0 0.82rem 3.45rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.overview-feature::before {
  display: none;
}

.overview-feature::after {
  display: none;
}

.overview-feature:last-child::before {
  display: none;
}

.overview-feature:hover {
  transform: none;
  filter: none;
}

.overview-feature:hover::after {
  display: none;
}

.overview-feature > span {
  display: none;
}

.overview-feature > span::before {
  display: none;
}

.overview-feature div {
  min-width: 0;
  animation: none;
  transition: none;
}

.overview-feature h4 {
  margin: 0 0 0.2rem;
  color: var(--omni-ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.12;
}

.overview-feature p {
  font-size: 0.82rem;
  line-height: 1.36;
}

.overview-framework-metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.1vw, 1rem);
  margin-top: 0.25rem;
  padding: 0.95rem 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
}

.overview-framework-metrics .metric-card {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left;
}

.overview-framework-metrics .metric-card:nth-child(n + 3) {
  margin-top: 0;
}

.overview-framework-metrics .metric-card span {
  display: inline-block;
  color: #ff6f86;
  font-size: clamp(1.08rem, 1.48vw, 1.36rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    0 0 3px rgba(255, 112, 134, 0.52),
    0 0 8px rgba(255, 79, 113, 0.32);
}

.overview-framework-metrics .metric-card p {
  margin-top: 0.28rem;
  font-size: 0.68rem;
  line-height: 1.16;
}

@media screen and (max-width: 900px) {
  .overview-framework-layout {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 640px) {
  .overview-framework-layout {
    margin-top: 1.35rem;
  }

  .overview-framework-metrics {
    grid-template-columns: 1fr 1fr;
    padding: 0.85rem 0 0;
    border: 0;
    background: transparent;
  }
}

body:not(.omni-dark) .overview-framework-copy,
body.omni-dark .overview-framework-copy {
  border-color: transparent;
}

body.omni-dark .overview-framework-copy {
  background: transparent;
}

body:not(.omni-dark) .overview-framework-intro h3,
body:not(.omni-dark) .overview-feature h4,
body.omni-dark .overview-framework-intro h3,
body.omni-dark .overview-feature h4 {
  color: #ffffff;
}

body:not(.omni-dark) .overview-framework-copy p,
body.omni-dark .overview-framework-copy p {
  color: var(--omni-muted);
}

body:not(.omni-dark) .overview-feature,
body.omni-dark .overview-feature {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body:not(.omni-dark) .overview-feature > span {
  background:
    radial-gradient(circle, rgba(255, 237, 242, 0.78) 0 0.14rem, transparent 0.17rem),
    radial-gradient(circle, rgba(255, 89, 125, 0.48) 0 0.38rem, transparent 0.43rem);
}

body.omni-dark .overview-feature > span {
  background:
    radial-gradient(circle, rgba(255, 237, 242, 0.78) 0 0.14rem, transparent 0.17rem),
    radial-gradient(circle, rgba(255, 89, 125, 0.48) 0 0.38rem, transparent 0.43rem);
}

@media screen and (max-width: 1180px) {
  .overview-flow-map {
    grid-template-columns: 1fr;
  }

  .overview-feature {
    min-height: 0;
  }

  .overview-framework-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "features"
      "metrics";
  }

  .overview-framework-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body:not(.omni-dark) .overview-framework-metrics,
body.omni-dark .overview-framework-metrics {
  border-color: rgba(255, 255, 255, 0.12);
}

body:not(.omni-dark) .overview-framework-metrics .metric-card,
body.omni-dark .overview-framework-metrics .metric-card {
  border-color: transparent;
  background: transparent !important;
  box-shadow: none;
}

@-moz-document url-prefix() {
  .live-policy-container {
    width: min(calc(100% - 1.2rem), 2112px) !important;
    max-width: 2112px !important;
  }

  .policy-viewer-stage,
  .embedded-viewer--policy iframe {
    height: min(107vh, 1196px);
    min-height: 936px;
  }

  .container.is-max-desktop.dataset-container {
    width: min(calc(100% - 1.2rem), 1944px) !important;
    max-width: 1944px !important;
  }

  .dataset-showcase {
    width: min(94%, 1480px);
  }

  .dataset-flip-card {
    height: clamp(760px, 78vh, 960px);
    min-height: clamp(760px, 78vh, 960px);
  }

  .dataset-primary > .dataset-glb-gallery {
    gap: 1rem;
  }

  .tsne-panel {
    padding: 1.15rem;
  }
}

@-moz-document url-prefix() {
  @media screen and (max-width: 900px) {
    .policy-viewer-stage,
    .embedded-viewer--policy iframe {
      height: 94vh;
      min-height: 806px;
    }

    .dataset-flip-card {
      height: 700px;
      min-height: 700px;
    }
  }
}
