body {
  font-family: 'Noto Sans', sans-serif;
  color: #1c2430;
  background: #ffffff;
}

.navbar {
  border-bottom: 1px solid #edf0f4;
}

.navbar-item {
  font-family: 'Google Sans', sans-serif;
}

.publication-header {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
  color: #4b5563;
}

.author-block {
  display: inline-block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem auto 0;
  max-width: 920px;
}

.stat-card,
.metric-box {
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(31, 46, 70, 0.06);
}

.stat-value,
.metric-number {
  display: block;
  color: #185a9d;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label,
.metric-text {
  display: block;
  margin-top: 0.4rem;
  color: #5d6b7a;
  font-size: 0.9rem;
  line-height: 1.35;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser-image,
.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.teaser-image {
  max-width: 920px;
  margin: 0 auto 1.25rem;
}

.paper-figure {
  margin: 1rem auto 1.5rem;
  padding: 0.75rem;
  border: 1px solid #e3e9f0;
  border-radius: 8px;
  background: #ffffff;
  overflow-x: auto;
  box-shadow: 0 8px 24px rgba(31, 46, 70, 0.05);
}

.paper-figure.wide img {
  min-width: 760px;
}

.metric-row {
  margin-top: 0.5rem;
}

.section.is-light,
.hero.is-small {
  background: #f6f9fc;
}

.video-note {
  margin-top: 1rem;
  color: #5d6b7a;
}

.ablation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.ablation-grid .paper-figure {
  margin: 0;
}

.robot-transfer {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 100%;
}

.hierarchy-tree {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
  gap: 1.25rem;
  align-items: stretch;
  margin: 1rem 0 1.25rem;
}

.tree-diagram,
.tree-video-panel {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 46, 70, 0.05);
}

.tree-diagram {
  display: flex;
  min-height: 500px;
  padding: 1rem;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  position: relative;
}

.abstract-tree {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
}

.tree-edge {
  stroke: #b8c8d8;
  stroke-linecap: round;
  stroke-width: 2.3;
  transition: opacity 160ms ease, stroke 160ms ease, stroke-width 160ms ease;
}

.tree-edge.is-active {
  stroke: #2f9ae0;
  stroke-width: 3.4;
}

.tree-node {
  fill: #e6f0fa;
  stroke: #86a6c4;
  stroke-width: 1.8;
  transition: fill 160ms ease, stroke 160ms ease, stroke-width 160ms ease;
}

.tree-node.is-active {
  fill: #2f9ae0;
  stroke: #1d6fb8;
  stroke-width: 2.6;
}

.tree-node-halo {
  fill: rgba(47, 154, 224, 0.16);
  opacity: 0;
  transition: opacity 160ms ease;
}

.tree-node-halo.is-active {
  opacity: 1;
}

.tree-video-panel {
  padding: 0.9rem;
}

.layer-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.layer-tab {
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #f8fbfe;
  color: #334155;
  cursor: pointer;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0 0.5rem;
}

.layer-tab.is-active {
  border-color: #1d6fb8;
  background: #185a9d;
  color: #ffffff;
}

.tree-player video {
  display: block;
  width: 100%;
  max-height: 420px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
  background: #111827;
}

.tree-player p {
  margin: 0.65rem 0 0;
  color: #2f3a46;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  text-align: center;
}

.video-task-section {
  margin-top: 1.4rem;
}

.video-task-section .title {
  margin-bottom: 0.75rem;
}

.video-strip {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.85rem;
  scroll-snap-type: x proximity;
}

.video-card {
  flex: 0 0 min(280px, 72vw);
  scroll-snap-align: start;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.65rem;
  box-shadow: 0 8px 20px rgba(31, 46, 70, 0.05);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
  background: #111827;
}

.video-card p {
  margin: 0.55rem 0 0;
  color: #2f3a46;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.9rem;
  text-align: center;
}

.execution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.execution-card {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.75rem;
  box-shadow: 0 8px 20px rgba(31, 46, 70, 0.05);
}

.execution-card video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
  background: #111827;
}

.execution-card p {
  margin: 0.65rem 0 0;
  color: #2f3a46;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  text-align: center;
}

pre {
  border-radius: 8px;
}

.footer {
  background: #ffffff;
  border-top: 1px solid #edf0f4;
}

.footer .icon-link {
  margin: 0 0.35rem;
  color: #1f2937;
  font-size: 1.5rem;
}

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

  .publication-title {
    font-size: 2rem !important;
  }

  .ablation-grid,
  .hierarchy-tree {
    grid-template-columns: 1fr;
  }

  .execution-grid {
    gap: 0.5rem;
  }

  .execution-card {
    padding: 0.45rem;
  }

  .execution-card p {
    font-size: 0.82rem;
  }

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

@media screen and (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .metric-box {
    padding: 0.85rem;
  }
}
