/* Compact research homepage only. ugc.html and its shared assets are untouched. */
.compact-page { --shell: min(1240px, calc(100vw - 64px)); }
.compact-page h1, .compact-page h2, .compact-page h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
.compact-page h2 { font-size: clamp(38px, 4.4vw, 66px); line-height: 1.02; margin: 0; text-wrap: balance; }
.compact-page h2 em, .compact-page h3 em { color: #7b62c9; font-weight: 400; }
.compact-page .content-section { padding-block: 64px; }
.compact-page .section-index { padding: 0; margin: 0 0 22px; font-size: 10px; }
.compact-page .section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: end; margin-bottom: 30px; }
.compact-page .section-heading > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 420px; }
.compact-page .hero { display: block; min-height: 0; padding-block: 35px 30px; }
.compact-page .hero-copy { text-align: center; max-width: none; }
.compact-page .hero .eyebrow { justify-content: center; margin-bottom: 14px; font-size: 14px; letter-spacing: .18em; }
.compact-page .hero h1 { font-size: clamp(35px, 4.3vw, 62px); line-height: 1.04; letter-spacing: -.04em; }
.compact-page .hero h1 em { color: #7b62c9; }
.compact-page .hero-dek { margin: 15px auto 10px; font-size: 16px; }
.compact-page .authors { margin-bottom: 23px; font-size: 10px; }
.compact-page #hero-player { max-width: 960px; margin: auto; }
.compact-page .hero .media-caption { text-align: center; }
.media-player { min-width: 0; }
.media-player .compare { aspect-ratio: 16 / 9; border-radius: 12px; }
.media-player .compare video { object-fit: contain; background: #111; }
.media-controls { display: flex; align-items: center; gap: 14px; padding-top: 11px; min-height: 42px; color: var(--muted); }
.media-controls button { border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; min-width: 70px; font-size: 11px; color: inherit; background: transparent; cursor: pointer; }
.media-controls input { flex: 1; min-width: 30px; height: 3px; accent-color: #7b62c9; cursor: pointer; }
.media-controls output { font: 10px var(--mono); min-width: 34px; }
.player-status { font-size: 10px; color: #976022; }
.player-status:empty { display: none; }
.media-caption { margin: 10px 0 0; color: #565c52; font-size: 13px; line-height: 1.6; }
.fine-print { margin: 10px 0 0; font-size: 10px; line-height: 1.6; color: var(--muted); }
.spectrum-switch { margin: 28px 0; padding: 22px 26px; background: #e9e5da; border-radius: 12px; }
.spectrum-endpoints { display: flex; justify-content: space-between; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #77796e; }
#proxy-spectrum { display: block; width: calc(100% - 12px); margin: 16px 6px 10px; accent-color: #8265cc; cursor: pointer; }
.spectrum-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.spectrum-options button { border: 0; background: transparent; color: #83867b; padding: 8px 0; cursor: pointer; text-align: left; }
.spectrum-options button:nth-child(2) { text-align: center; }
.spectrum-options button:nth-child(3) { text-align: right; }
.spectrum-options strong { display: block; font-size: 15px; font-weight: 600; }
.spectrum-options small { display: block; font-size: 10px; margin-top: 6px; }
.spectrum-options button[aria-pressed="true"] { color: #6c50b8; }
#why-player { max-width: 1000px; margin-inline: auto; }
#idea .media-caption, #idea > .fine-print { text-align: center; }
.compact-page .method-section { background: #191c17; padding-bottom: 58px; }
.compact-page .method-section .section-heading > p { color: #b0b5a7; }
.method-figure { margin: 28px 0; }
.method-figure img { border-radius: 12px; }
.method-explanation { max-width: 1000px; margin: 25px auto 0; font-size: 15px; line-height: 1.8; color: #c6cabc; }
.interaction-tabs, .gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.interaction-tabs button, .gallery-filters button { border: 1px solid var(--line); border-radius: 99px; background: transparent; color: #6d7068; cursor: pointer; padding: 11px 19px; font-size: 12px; }
.interaction-tabs button[aria-pressed="true"], .gallery-filters button[aria-pressed="true"] { background: #252a21; color: #eef0e5; border-color: #252a21; }
.style-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-bottom: 14px; }
.style-controls label { display: flex; align-items: center; gap: 12px; color: #6d7068; font: 10px var(--mono); text-transform: uppercase; }
.style-controls label:last-child { justify-self: end; }
.style-controls select { max-width: 220px; padding: 10px 32px 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #faf8f2; color: var(--ink); font: 12px var(--sans); text-transform: none; cursor: pointer; }
.style-controls > span { font-size: 10px; color: #7e8174; }
#style-player { max-width: 1100px; margin-inline: auto; }
.proxy-strip { display: flex; align-items: center; gap: 20px; padding: 16px 0 0; }
.proxy-strip video { width: 166px; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 6px; background: #111; }
.proxy-strip p { margin: 6px 0; font-size: 13px; line-height: 1.5; }
.proxy-strip small { font-size: 10px; color: var(--muted); }
.ugc-application { background: #1e271b; color: #f4f1e7; padding: 58px 0; }
.ugc-compact { display: grid; grid-template-columns: 1fr .85fr; gap: 65px; align-items: center; }
.ugc-compact h2 em { color: #ccd9ac; }
.ugc-compact blockquote { font: 400 25px/1.2 var(--serif); letter-spacing: -.02em; margin: 24px 0 18px; max-width: 460px; }
.ugc-compact-copy > p:not(.section-index) { font-size: 13px; line-height: 1.65; color: #b4bdab; max-width: 470px; }
.ugc-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: #d0dbba; margin: 20px 0; }
.ugc-chain span { color: #839673; }
.ugc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ugc-launch { cursor: pointer; color: #26321c; background: #d2dfb5; border: 0; }
.ugc-links > a { font-size: 11px; text-underline-offset: 4px; color: #ced9bb; }
.ugc-compact-copy .fine-print { font-size: 10px !important; }
.ugc-compact-art { position: relative; margin: 0 0 26px; min-width: 0; }
.ugc-compact-art > img { height: 390px; width: 100%; object-fit: cover; border-radius: 12px; }
.ugc-compact-art > figcaption { position: absolute; top: 12px; left: 12px; padding: 7px 10px; background: #0008; font: 8px var(--mono); text-transform: uppercase; border-radius: 4px; }
.ugc-proxy-inset { position: absolute; right: 16px; bottom: -26px; width: 48%; padding: 7px; border-radius: 8px; background: #e1e6d9; color: #33462b; transform: rotate(-3deg); box-shadow: 0 10px 35px #0005; }
.ugc-proxy-inset img { aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; }
.ugc-proxy-inset span { display: block; padding-top: 6px; font: 8px var(--mono); }
.benchmark-pipeline { margin: 25px 0 42px; }
.benchmark-pipeline img { border-radius: 10px; border: 1px solid #ddd; }
.benchmark-heading-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.benchmark-heading-row h3 { font-size: 30px; margin: 0; }
.data-status { display: inline-block; border: 1px solid #d8b484; border-radius: 5px; padding: 7px 10px; color: #906333; background: #f4e9d5; font-size: 10px; line-height: 1.5; }
.table-scroll { overflow-x: auto; border-block: 1px solid var(--line); }
.benchmark-table { width: 100%; border-collapse: collapse; min-width: 830px; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.benchmark-table caption { caption-side: bottom; text-align: left; padding: 13px 0; font-size: 10px; color: #777b70; }
.benchmark-table th, .benchmark-table td { padding: 10px 12px; border-bottom: 1px solid #1618150f; }
.benchmark-table thead { background: #e9e5db; font-size: 10px; }
.benchmark-table tbody th { font-weight: 400; text-align: left; white-space: nowrap; }
.benchmark-table .table-group { background: #ece9e0; font-size: 10px; font-style: italic; color: #6a7163; }
.benchmark-table .ours-row { background: #8e74ff0d; }
.benchmark-table .ours-row th { font-weight: 700; color: #6c50b8; }
.user-study { display: grid; grid-template-columns: .9fr 1.1fr; gap: 65px; align-items: center; margin-top: 45px; padding-top: 30px; border-top: 1px solid var(--line); }
.user-study h3 { font-size: 42px; line-height: 1.05; margin: 16px 0; }
.user-study p { font-size: 13px; color: #6d7068; line-height: 1.6; max-width: 380px; }
.user-study .data-status { color: #906333; font-size: 11px; }
.user-study .fine-print { font-size: 10px; }
.user-study figure { margin: 0; min-width: 0; }
.user-study svg { width: 100%; overflow: visible; }
.user-study svg text { font: 12px var(--sans); fill: #505749; }
.user-study svg .radar-tick { font-size: 10px; fill: #8d9187; }
.user-study svg .radar-warning { font: 9px var(--mono); fill: #906333; }
.more-section { background: #eae6dc; }
.compact-page .camera-video-wall { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.camera-tile[hidden] { display: none !important; }
.gallery-toggle { display: block; margin: 24px auto 0; padding: 12px 24px; border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; font-size: 12px; }
.paper-footer { display: flex; align-items: start; justify-content: space-between; gap: 30px; padding-block: 35px; }
.paper-footer details { max-width: 70%; font-size: 12px; }
.paper-footer summary { cursor: pointer; }
.paper-footer pre { white-space: pre-wrap; font: 10px/1.7 var(--mono); }
#ugc-dialog { width: 96vw; max-width: 1800px; height: 94dvh; max-height: none; padding: 0; border: 1px solid #657159; background: #1e271b; color: #eeeede; border-radius: 14px; overflow: hidden; }
#ugc-dialog::backdrop { background: #080d09d9; backdrop-filter: blur(8px); }
#ugc-dialog[open] { display: flex; flex-direction: column; }
.ugc-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; flex-shrink: 0; padding: 10px 18px; font: 10px var(--mono); }
.ugc-dialog-toolbar > div { display: flex; align-items: center; gap: 24px; }
.ugc-dialog-toolbar a { font-size: 10px; }
.ugc-close { background: #d2dfb5; color: #1e271b; border: none; padding: 8px 14px; border-radius: 99px; cursor: pointer; }
#ugc-dialog iframe { display: block; width: 100%; flex: 1; min-height: 0; border: 0; }
.research-page:has(#ugc-dialog[open]) { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.compact-page :focus-visible { outline: 3px solid #8870e0; outline-offset: 4px; }
.compact-page .compare:focus-within { outline: 2px solid #8870e0; outline-offset: 3px; }
@media(max-width:1000px) {
 .compact-page { --shell: min(100% - 40px, 880px); }
 .ugc-compact { gap: 30px; }
 .style-controls > span { display: none; }
 .style-controls { grid-template-columns: 1fr 1fr; }
 .user-study { gap: 30px; }
}
@media(max-width:720px) {
 .compact-page { --shell: calc(100vw - 28px); }
 .compact-page .content-section { padding-block: 44px; }
 .compact-page .section-heading { grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
 .compact-page h2 { font-size: 40px; }
 .compact-page .section-heading > p { font-size: 13px; }
 .compact-page .hero { padding-top: 24px; }
 .compact-page .hero h1 { font-size: 35px; line-height: 1.06; }
 .compact-page .hero h1 br { display: none; }
 .compact-page .hero-dek { font-size: 13px; }
 .compact-page .authors { font-size: 9px; margin-bottom: 17px; }
 .media-player .media-label { top: 8px; font-size: 7px; padding: 6px 7px; }
 .media-player .media-label-left { left: 8px; }
 .media-player .media-label-right { right: 8px; }
 .media-player .compare-line span { width: 34px; height: 34px; }
 .media-caption { font-size: 11px; }
 .media-controls { gap: 8px; }
 .media-controls button { min-width: 60px; padding: 6px 10px; }
 .spectrum-switch { padding: 15px 10px; margin: 20px 0; }
 .spectrum-options { gap: 5px; }
 .spectrum-options strong { font-size: 11px; }
 .spectrum-options small { font-size: 8px; line-height: 1.5; }
 .spectrum-endpoints { font-size: 8px; }
 .method-explanation { font-size: 13px; line-height: 1.75; }
 .style-controls { gap: 10px; }
 .style-controls label { display: block; min-width: 0; width: 100%; }
 .style-controls select { width: 100%; max-width: none; font-size: 11px; margin-top: 6px; padding-left: 7px; }
 .interaction-tabs button, .gallery-filters button { padding: 9px 12px; font-size: 10px; }
 .proxy-strip { gap: 12px; }
 .proxy-strip video { width: 112px; }
 .proxy-strip p { font-size: 11px; }
 .proxy-strip .tiny-label { font-size: 8px; }
 .proxy-strip small { font-size: 8px; }
 .ugc-application { padding-block: 44px; }
 .ugc-compact, .user-study { grid-template-columns: 1fr; gap: 28px; }
 .ugc-compact-art > img { height: 270px; }
 .benchmark-heading-row { align-items: start; flex-direction: column; }
 .benchmark-heading-row h3 { font-size: 29px; }
 .user-study h3 { font-size: 36px; }
 .compact-page .camera-video-wall { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
 .paper-footer { flex-direction: column; gap: 20px; }
 .paper-footer details { max-width: 100%; }
 #ugc-dialog { width: 100vw; max-width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
 .ugc-dialog-toolbar { padding: 8px 10px; font-size: 8px; }
 .ugc-dialog-toolbar > div { gap: 10px; }
}
