:root{--rapd:#1e3a5f;--orange:#ef713f}*{box-sizing:border-box}body{margin:0;color:#293343;background:#fff;font-family:Arial,Helvetica,sans-serif;font-size:17px;line-height:1.75}a{color:#276ab0;text-decoration:none}a:hover{text-decoration:underline}nav{max-width:1180px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:20px 28px;border-bottom:1px solid #edf0f3;font-size:14px}nav div{display:flex;gap:25px}.brand{font-weight:800;color:var(--rapd);font-size:19px}.brand span{font-weight:400;color:#718096;font-size:12px}main{max-width:1120px;padding:0 28px;margin:auto}.hero{text-align:center;padding:24px 0 8px}.eyebrow{text-transform:uppercase;letter-spacing:.15em;color:var(--orange);font-size:12px;font-weight:700}h1{font-size:42px;line-height:1.25;letter-spacing:-1.4px;color:#25354c;margin:18px auto 28px;max-width:1040px}h1 span{color:var(--rapd)}h1 small{font-size:32px;font-weight:500;letter-spacing:-.7px}.authors{font-size:19px;color:#2a67a4;margin-bottom:12px}sup{font-size:10px}.affiliations{font-size:14px;color:#687280;line-height:1.8}.publication-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:20px 0 12px}.button{display:inline-block;padding:9px 23px;border-radius:30px!important;font-size:14px}.lead{font-size:28px;font-weight:600;letter-spacing:-.6px;margin-bottom:8px;color:var(--rapd)}.subtitle{font-size:18px;color:#687280;margin-top:0}section{padding:44px 0;scroll-margin-top:30px}h2{text-align:center;font-size:30px;line-height:1.3;letter-spacing:-.6px;color:#27364b;margin:0 0 26px}h3{font-size:21px;line-height:1.4;color:var(--rapd);margin:28px 0 18px}.reading{max-width:820px;margin:auto}.reading p{text-align:justify}.section-intro{text-align:center;color:#687280;margin-top:-10px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);padding:30px 0;border-top:1px solid #e5eaf0;border-bottom:1px solid #e5eaf0;gap:16px}.metrics div{text-align:center}.metrics strong{font-size:35px;display:block;color:var(--rapd);line-height:1.4}.metrics span{font-size:12px;color:#687280}.note{font-size:13px;color:#697483;line-height:1.7}.center{text-align:center}.columns{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin:32px 0}.columns p{font-size:16px}.equation{background:#f4f7fa;padding:16px;text-align:center;border-radius:7px;font-family:Georgia,serif}figure{margin:25px 0 34px}object{width:100%;height:580px;border:1px solid #e6eaf0;border-radius:6px;background:#f8fafc}figcaption{text-align:center;font-size:13px;color:#687280;margin:12px auto;max-width:870px}figcaption a{white-space:nowrap;margin-left:8px}.table-scroll{overflow-x:auto;margin:20px 0;border:1px solid #e4e8ee;border-radius:7px}table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap;text-align:right}th,td{padding:12px 13px;border-bottom:1px solid #e5e9ee}thead{background:#f5f7fa;color:#536074}th:first-child{text-align:left}tbody th{font-weight:500}.ours{background:#edf2fa;color:#1e3a5f}.ours th{font-weight:700}details{background:#f5f7fa;padding:20px 26px;border-radius:8px;margin-top:30px}summary{cursor:pointer;font-weight:600}details p{font-size:15px}.citation-heading{display:flex;align-items:center;justify-content:space-between}.citation-heading h2{margin-bottom:0}button{cursor:pointer;padding:9px 15px;background:#fff;color:var(--rapd);border:1px solid #cbd5e1;border-radius:6px}pre{background:#f4f6f8;border-radius:8px;padding:24px;overflow:auto;font-size:13px;line-height:1.7}footer{background:#f7f8fa;padding:36px 25px;text-align:center;font-size:13px;color:#7a8491}footer p:first-child{color:var(--rapd);font-weight:700}.skip{position:absolute;top:-100px}.skip:focus{top:8px;background:white;padding:15px;z-index:5}:focus-visible{outline:3px solid #ef713f;outline-offset:4px}@media(max-width:700px){nav{padding:16px}nav div{gap:14px;font-size:12px}.brand span{display:none}main{padding:0 18px}.hero{padding-top:18px}h1{font-size:30px;letter-spacing:-.8px}h1 small{font-size:24px}.authors{font-size:16px;line-height:2}.affiliations{font-size:12px}.lead{font-size:25px}.subtitle{font-size:16px}.metrics{grid-template-columns:1fr 1fr;gap:24px}.columns{grid-template-columns:1fr;gap:12px}h2{font-size:26px}object{height:360px}.reading p{text-align:left}section{padding:34px 0}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

.paper-figure{display:block;width:100%;height:auto;margin:0 auto}

#continuous-representation .paper-figure{width:calc(100% / 1.5);height:auto;margin-inline:auto}

/* Figure 1: results on the left and teaser on the right. */
.teaser-pair{display:flex;gap:24px;align-items:center;justify-content:safe center;overflow-x:auto;padding-bottom:4px}
.teaser-pair .paper-figure{flex:0 0 auto;width:auto;height:var(--teaser-height,clamp(120px,24vw,280px));max-width:none;margin:0}
@media(max-width:700px){.teaser-pair{gap:12px}}


/* Add modest side whitespace to the reconstruction comparison. */
.paper-figure[src="assets/exp_render.png"]{width:80%;margin-inline:auto}


/* Five samples per viewport; prompts appear only in the modal. */
.sample-gallery{padding:20px 0 34px}
.gallery-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.gallery-heading h2{margin:0}
.gallery-track{--gallery-gap:12px;display:flex;gap:var(--gallery-gap);overflow-x:scroll;scroll-behavior:auto;scrollbar-width:auto;scrollbar-color:#8293a9 #edf0f3;padding-bottom:14px}
.gallery-track::-webkit-scrollbar{height:10px}
.gallery-track::-webkit-scrollbar-track{background:#edf0f3;border-radius:6px}
.gallery-track::-webkit-scrollbar-thumb{background:#8293a9;border-radius:6px}
.gallery-item{flex:0 0 calc((100% - 4 * var(--gallery-gap))/5);min-width:0;padding:0;border:0;border-radius:6px;background:#f4f6f8;overflow:hidden;cursor:zoom-in}
.gallery-item img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
#gallery-viewer{width:min(1000px,94vw);max-height:92vh;padding:20px;border:0;border-radius:10px;overflow-y:auto}
#gallery-viewer::backdrop{background:rgba(0,0,0,.78)}
#gallery-close{display:block;margin:0 0 16px auto}
#gallery-large{display:block;max-width:100%;max-height:70vh;width:auto;height:auto;margin:auto;object-fit:contain}
#gallery-prompt{max-width:820px;margin:16px auto 0;padding:14px 18px;border-radius:8px;background:#f5f7fa;color:#536074;font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;text-align:left}
body.gallery-modal-open{overflow:hidden}
@media(max-width:700px){.gallery-track{--gallery-gap:6px}.gallery-heading button{font-size:12px}#gallery-viewer{padding:12px}}

/* Keep the two method components in reading order on all screen sizes. */
.columns.method-stack{grid-template-columns:1fr;gap:24px}

/* Center the decoder comparison at 80% of the content width. */
.paper-figure[src="assets/fig2.png"]{width:80%;margin-inline:auto}

.author-email{display:inline-block;white-space:nowrap;font-size:13px;vertical-align:middle}
/* Opening highlight: gradient, padding, radius, and shadow from ai4ce.github.io/CRAG/. */
.tldr{width:100%;max-width:none;margin:20px auto;padding:8px;background:linear-gradient(45deg, #9860ff33, #d2cb0033);border-radius:8px;box-shadow:0 2px 5px rgba(0, 0, 0, 0.2);font-size:18px;line-height:1.5;text-align:center}

/* Tighten the title and opening figure spacing. */
.hero.publication-header{padding-top:12px;padding-bottom:4px}
.hero .publication-title{margin-top:8px}
.hero .publication-links{margin-bottom:6px}
#figure-1{margin-top:4px}

/* Publication button icons and the pending code release. */
.publication-links .button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-family:inherit;line-height:inherit;white-space:nowrap}
.button-icon{width:18px;height:18px;flex-shrink:0}
.publication-links .code-placeholder{cursor:default}
.publication-links .code-placeholder:hover{transform:none}
@media(max-width:480px){.publication-links{flex-wrap:wrap}}

/* Conference badge beside the navigation brand. */
nav{flex-wrap:wrap;gap:14px 20px}
.brand-group{display:inline-flex;align-items:center;gap:12px;flex-shrink:0}
.conference-badge{display:inline-flex;align-items:center;padding:5px 10px;border:2px solid var(--orange);border-radius:6px;background:#fff1e8;color:#9a3412;font-size:14px;font-weight:800;line-height:1.2;letter-spacing:.02em;white-space:nowrap}
@media(max-width:700px){.brand-group{gap:10px}.conference-badge{font-size:12px;padding:4px 8px}}

/* Resolution slider: fixed stage prevents layout jumps while dragging. */
#gallery-stage{height:min(58vh,620px);width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f4f6f8;border-radius:6px}
#gallery-stage #gallery-large{max-width:100%;max-height:100%;width:auto;height:auto;margin:auto}
#gallery-stage.actual-size{display:block;overflow:auto}
#gallery-stage.actual-size #gallery-large{max-width:none;max-height:none;margin:0}
#resolution-controls{max-width:820px;margin:16px auto 0}
#resolution-controls[hidden]{display:none}
.resolution-heading,.resolution-endpoints,.resolution-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}
.resolution-heading{display:grid;grid-template-columns:max-content 25% max-content;justify-content:center;align-items:center;font-size:15px;font-weight:600;white-space:nowrap}.resolution-range{position:relative;min-width:0}
#resolution-value{font-variant-numeric:tabular-nums;color:var(--rapd)}
#resolution-slider{display:block;width:100%;height:30px;margin:0;accent-color:var(--rapd);cursor:pointer;touch-action:pan-y}
.resolution-endpoints{position:absolute;top:100%;left:0;width:100%;font-size:12px;font-weight:400;color:#687280}
.resolution-actions{margin-top:26px;font-size:13px;flex-wrap:wrap}
#resolution-status{font-size:12px;color:#536074;min-height:1.75em;margin:8px 0 0}
@media(max-width:700px){#gallery-stage{height:45vh}.resolution-actions button{font-size:12px}}

.beyond-training-results tbody th,.beyond-training-results tbody td{font-weight:400}
