:root {
  color-scheme: light;
  --ink: #202625;
  --muted: #626a67;
  --line: #dce2de;
  --accent: #17684f;
  --accent-light: #edf5ef;
  --warm: #976019;
  --paper: #ffffff;
  --surface: #f8faf9;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 "Segoe UI", Arial, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button, summary { cursor: pointer; }
img { max-width: 100%; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #b17826; outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 10px 16px; background: white; z-index: 20; }
.skip-link:focus { top: 8px; }
.site-header { border-bottom: 1px solid var(--line); background: white; position: sticky; top: 0; z-index: 10; }
.nav-inner { max-width: 1280px; padding: 14px 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 61px; }
.wordmark { font-size: 20px; font-weight: 700; }
.wordmark-dot { color: var(--accent); }
.nav-links { display: flex; gap: 28px; font-size: 13px; font-weight: 600; }
.nav-links a:hover { color: var(--accent); }
.paper-heading { text-align: center; padding-block: 46px 34px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 650; text-transform: uppercase; }
h1 { font-weight: 500; line-height: 1.25; margin: 0; font-family: Georgia, "Times New Roman", serif; }
.paper-name { display: block; font-size: 54px; margin-bottom: 10px; }
.paper-subtitle { display: block; font-size: 29px; max-width: 1020px; margin: auto; }
.authors { display: flex; justify-content: center; gap: 7px 20px; flex-wrap: wrap; margin: 24px 0 6px; font-size: 15px; }
.authors span { white-space: nowrap; }
sup { font-size: 10px; margin-left: 2px; }
.affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; font-size: 12px; color: var(--muted); margin: 0; }
.author-notes { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.paper-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 39px; padding: 7px 16px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 4px; }
.button:hover { background: var(--surface); border-color: #b6c2bb; }
.button-primary { background: var(--ink); border-color: var(--ink); color: white; }
.button-primary:hover { background: #3d4942; border-color: #3d4942; }
.button-primary img { filter: invert(1); }
.sample-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); margin-left: 8px; font-size: 13px; font-weight: 600; }
.sample-link:hover { text-decoration: underline; }
.abstract-section { display: grid; grid-template-columns: 145px 1fr; gap: 30px; padding: 28px 0 34px; border-top: 1px solid var(--line); }
h2 { margin: 0; font: 500 28px/1.3 Georgia, "Times New Roman", serif; }
.abstract-section h2 { font-size: 24px; }
.abstract-section p { margin: 0; font-size: 15px; line-height: 1.8; color: #414944; }
.method-section { padding: 26px 0 40px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading > div { display: flex; align-items: baseline; gap: 16px; }
.section-number { color: var(--accent); font: 500 12px/1.5 Consolas, monospace; }
.quiet-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.quiet-link:hover { color: var(--accent); text-decoration: underline; }
figure { margin: 25px 0 0; }
.method-image { display: block; width: 100%; height: auto; }
figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.samples-band { background: var(--surface); border-top: 1px solid var(--line); }
.audio-section { padding-top: 40px; padding-bottom: 32px; }
.audio-section + .audio-section { border-top: 1px solid #c7d2cb; }
.dataset-label { font-size: 12px; color: var(--muted); }
.task-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 16px 0 22px; }
.task-summary { margin: 0; color: var(--muted); font-size: 13px; }
.language-tabs { display: inline-flex; border: 1px solid #cbd5ce; border-radius: 5px; padding: 3px; background: #fff; flex-shrink: 0; }
.language-tabs button { border: 0; padding: 7px 15px; background: transparent; border-radius: 3px; font-size: 13px; font-weight: 600; min-height: 36px; }
.language-tabs button span { font-size: 10px; font-weight: 400; margin-left: 5px; opacity: 0.8; }
.language-tabs button[aria-selected="true"] { color: white; background: var(--accent); }
.language-tabs button:hover:not([aria-selected="true"]) { background: var(--surface); }
.sample { border-top: 1px solid var(--line); padding-block: 22px 28px; }
.sample-topline { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.sample-index { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sample-meta { font-size: 11px; color: var(--muted); }
.target-text { margin: 0 0 18px; font-size: 17px; line-height: 1.65; font-weight: 500; overflow-wrap: anywhere; }
.field-label { display: block; color: var(--muted); font-size: 10px; font-weight: 650; text-transform: uppercase; margin-bottom: 5px; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.audio-cell { min-width: 0; }
.audio-cell + .audio-cell { border-left: 1px solid var(--line); padding-left: 24px; }
.cell-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 28px; margin: 0 0 9px; }
.cell-heading h4 { margin: 0; font-size: 13px; font-weight: 600; }
.cell-heading .role { color: var(--muted); font-size: 11px; }
.cell-heading .iteration { white-space: nowrap; }
.model-iter4 .cell-heading { color: var(--accent); }
.model-cosy3 .cell-heading { color: var(--warm); }
.player { display: grid; grid-template-columns: 36px minmax(0, 1fr) 28px; gap: 9px; align-items: center; min-height: 44px; }
.icon-button { border: 1px solid var(--line); background: white; border-radius: 4px; width: 36px; height: 36px; padding: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-button img { width: 17px; height: 17px; max-width: none; }
.icon-button:hover { background: #e9efeb; border-color: #adbbb2; }
.model-iter4 .play-button { border-color: #adcbbb; background: var(--accent-light); }
.player.is-playing .play-button { background: var(--accent); border-color: var(--accent); }
.player.is-playing .play-button img { filter: invert(1); }
.player.is-loading .play-button img { animation: spin 1s linear infinite; }
.download-link { border: 0; background: transparent; width: 28px; padding: 5px; height: 32px; }
.timeline { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.timecode { color: var(--muted); font: 10px/1.3 Consolas, monospace; font-variant-numeric: tabular-nums; }
.seek { --progress: 0%; appearance: none; -webkit-appearance: none; cursor: pointer; width: 100%; height: 4px; border-radius: 0; outline-offset: 7px; margin: 9px 0 7px; background: linear-gradient(to right, var(--accent) var(--progress), #d5dfd8 var(--progress)); }
.seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.seek::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--accent); }
.seek:disabled { opacity: 0.5; cursor: default; }
.transcript { font-size: 12px; line-height: 1.65; color: var(--muted); margin: 12px 0 0; overflow-wrap: anywhere; }
details.transcript summary { font-size: 11px; }
details.transcript p { margin: 7px 0 0; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 23px; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.input-grid .audio-cell { border-left: 0; padding-left: 0; }
.input-grid .audio-cell + .audio-cell { padding-left: 28px; border-left: 1px solid var(--line); }
.input-grid .transcript { min-height: 20px; margin-top: 8px; }
.audio-error { grid-column: 1 / -1; margin: 4px 0 0; color: #a02626; font-size: 11px; }
.empty-state { padding: 24px 0; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 28px; border-top: 1px solid var(--line); }
.site-footer > span:nth-child(2) { color: var(--muted); font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1500px) {
  .container { width: min(1240px, calc(100% - 100px)); }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .nav-inner { padding: 12px 18px; }
  .nav-links { gap: 18px; font-size: 12px; }
  .wordmark { font-size: 18px; }
  .paper-heading { padding-block: 32px 26px; }
  .paper-name { font-size: 44px; }
  .paper-subtitle { font-size: 23px; line-height: 1.35; }
  .desktop-break { display: none; }
  .authors { gap: 5px 14px; font-size: 13px; margin-top: 20px; }
  .affiliations { flex-direction: column; font-size: 11px; margin-top: 12px; }
  .author-notes { font-size: 10px; max-width: 340px; margin: 7px auto 0; }
  .abstract-section { display: block; padding-block: 24px; }
  .abstract-section h2 { margin-bottom: 12px; }
  .abstract-section p { font-size: 14px; line-height: 1.75; }
  h2 { font-size: 25px; }
  .method-section { padding-block: 24px; }
  figure { margin-top: 18px; }
  figcaption { font-size: 11px; }
  .audio-section { padding-top: 28px; }
  .task-toolbar { flex-wrap: wrap; gap: 12px; }
  .comparison-grid { grid-template-columns: 1fr; gap: 14px; }
  .audio-cell + .audio-cell { border-left: 0; padding-left: 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .cell-heading { margin-bottom: 3px; min-height: 20px; }
  .player { grid-template-columns: 40px minmax(0, 1fr) 32px; gap: 12px; }
  .icon-button { width: 40px; height: 40px; }
  .download-link { width: 32px; }
  .timecode { font-size: 11px; }
  .seek { height: 5px; margin-bottom: 8px; }
  .target-text { font-size: 16px; }
  .input-grid { grid-template-columns: 1fr; gap: 15px; }
  .input-grid .audio-cell + .audio-cell { border-left: 0; padding-left: 0; padding-top: 14px; }
  .transcript { font-size: 12px; }
  .site-footer { flex-wrap: wrap; gap: 8px 20px; }
  .site-footer > span:nth-child(2) { order: 3; width: 100%; font-size: 11px; }
}
@media (max-width: 380px) {
  .nav-links { gap: 12px; }
  .nav-links a:first-child { display: none; }
  .paper-subtitle { font-size: 21px; }
  .sample-link { margin-top: 6px; }
  .language-tabs button { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .player.is-loading .play-button img { animation: none; }
}
