body {
  font-family: 'Noto Sans', sans-serif;
  color: #4a4a4a;
}

a {
  color: #3273dc;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.4rem !important;
}

.publication-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.link-block {
  display: inline-flex;
}

.button .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-icon {
  width: 1rem;
  height: 1rem;
  display: block;
  filter: invert(1);
}

.paper-grid {
  margin-top: 0.5rem;
}

.paper-card {
  height: 100%;
  padding: 1.35rem 1.4rem;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.paper-card-empty {
  opacity: 0.88;
}

.paper-title {
  margin: 0 0 0.55rem;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.08rem;
  line-height: 1.45;
  color: #222;
}

.paper-title a {
  color: #1f3b73;
}

.paper-title a:hover {
  color: #3273dc;
  text-decoration: underline;
}

.paper-authors {
  min-height: 3.7rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #636363;
}

.paper-authors-muted {
  color: #9aa0a6;
}

.paper-meta {
  margin-top: 0.45rem;
  font-size: 0.83rem;
  line-height: 1.6;
  color: #8a8f98;
}

.teaser .hero-body {
  padding-top: 1.2rem;
  padding-bottom: 2.5rem;
}

.teaser-body {
  text-align: center;
}

.teaser-media-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.teaser-image {
  width: min(100%, 1780px);
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.figure-mini-caption {
  max-width: 920px;
  margin: 0.8rem auto 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #6b7280;
  text-align: center;
}

.abstract-content {
  font-size: 1.02rem;
  line-height: 1.85;
}

.method-columns {
  align-items: stretch;
}

.method-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.method-image,
.result-figure {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.method-image {
  aspect-ratio: 1.55 / 1;
  object-fit: contain;
  background: #fff;
}

.result-block {
  margin-bottom: 2rem;
}

.result-table th,
.result-table td {
  font-size: 0.9rem;
  vertical-align: middle;
}

.wide-figure {
  max-width: 960px;
  margin: 0 auto;
  display: block;
}

.examples-shell {
  max-width: 920px;
}

.example-tabs {
  margin-bottom: 1.75rem;
}

.tab-btn {
  margin: 0 0.35rem 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid #dbdbdb;
  border-radius: 999px;
  background: #ffffff;
  color: #4a4a4a;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: #3273dc;
  color: #3273dc;
}

.tab-btn.active,
.tab-btn.is-active {
  background: #363636;
  border-color: #363636;
  color: #ffffff;
}

.demo-panel {
  display: none;
}

.demo-panel.is-active {
  display: block;
}

.sample-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.sample-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ececec;
}

.sample-id {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: #3273dc;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #ebf3ff;
  color: #1f5fbf;
  font-size: 0.78rem;
  font-weight: 700;
}

.gt-box {
  background: #eef8f1;
  border-left: 4px solid #48c774;
  padding: 0.9rem 1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.25rem;
}

.correction-flow {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.dialogue-flow {
  max-width: 760px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  flex-direction: column;
  max-width: 72%;
}

.user-step {
  align-self: flex-start;
}

.model-step {
  align-self: flex-end;
}

.audio-step {
  max-width: 68%;
  min-width: 280px;
}

.step-label {
  margin-bottom: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.user-step .step-label {
  text-align: left;
}

.model-step .step-label {
  text-align: right;
}

.step-content {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  font-size: 0.96rem;
  line-height: 1.65;
}

.user-bubble {
  background: #edf4ff;
  border-bottom-left-radius: 4px;
}

.model-bubble {
  background: #eef8f1;
  border-bottom-right-radius: 4px;
}

.model-bubble.error {
  color: #8c2f2f;
}

.model-bubble.warning {
  color: #8a6100;
}

.model-bubble.correct {
  color: #1f7a4c;
  font-weight: 700;
}

.flow-step audio {
  width: 100%;
  display: block;
}

pre {
  background: #111827;
  color: #e5edf8;
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  border: 1px solid #1f2937;
}

.footer .content p {
  font-size: 0.95rem;
}

@media screen and (max-width: 768px) {
  .sample-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-step,
  .user-step,
  .model-step,
  .audio-step {
    align-self: stretch;
    max-width: 100%;
    min-width: 0;
  }

  .user-step .step-label,
  .model-step .step-label {
    text-align: left;
  }

  .figure-mini-caption {
    font-size: 0.84rem;
  }
}
