:root {
    --paper: #faf9f6;
    --ink: #202b2a;
    --muted: #626c69;
    --orange: #c15a35;
    --orange-light: #f2dfd4;
    --teal: #416c64;
    --brand-gradient: linear-gradient(90deg, #0b8fbf 0%, #3d63d1 30%, #8a4cc9 55%, #d0453c 80%, #c15a35 100%);
    --line: #dedfd8;
    --font: Inter, "Helvetica Neue", Arial, sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    cursor: pointer
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 5px
}

.wrap {
    max-width: 1160px;
    margin: auto;
    padding-left: 40px;
    padding-right: 40px
}

.nav {
    height: 82px;
    max-width: 1320px;
    margin: auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line)
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0
}

.brand .tagline {
    padding-left: 18px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap
}

.wordmark {
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 1px
}

.wordmark-text {
    color: var(--ink)
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .wordmark-text {
        background: var(--brand-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent
    }
}

.wordmark-dot {
    color: var(--orange)
}

.mark {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: bold;
    background: var(--ink);
    color: var(--paper);
    width: 31px;
    height: 31px;
    border-radius: 7px;
    text-align: center;
    line-height: 27px;
    font-size: 29px
}

.mark span {
    color: #ed986e
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 13px;
    font-weight: 550
}

nav a:hover {
    color: var(--orange)
}

.nav-cta {
    border-left: 1px solid var(--line);
    padding-left: 30px
}

.nav-cta small {
    padding-left: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400
}

.hero {
    padding-top: 68px
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.7px;
    font-weight: 650
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: var(--orange);
    flex-shrink: 0
}

.eyebrow-line {
    width: 28px;
    height: 1px;
    background: var(--line);
    margin: 0 6px
}

h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.07;
    font-weight: 570;
    letter-spacing: -3.6px;
    margin: 29px 0 24px
}

h1>span {
    color: var(--orange)
}

.paper-title {
    font-family: "Times New Roman", Times, "Nimbus Roman", "Nimbus Roman No9 L", "TeX Gyre Termes", "Liberation Serif", Tinos, serif;
    font-size: 18px;
    font-weight: 400;
    font-variant-caps: small-caps;
    margin: 0 0 16px;
    line-height: 1.35
}

.hero-description {
    max-width: 620px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin: 0
}

.hero-description strong {
    font-weight: 550;
    color: var(--ink)
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 28px
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 21px;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--line)
}

.primary {
    background: var(--ink);
    color: white;
    border-color: var(--ink)
}

.primary:hover {
    background: var(--teal)
}

.secondary:hover {
    background: #eaece5
}

.unavailable {
    color: var(--muted);
    gap: 11px
}

.unavailable small {
    font-weight: 400;
    font-size: 10px
}

.hero-bottom {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.3fr;
    margin-top: 57px;
    padding: 30px 0 33px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    align-items: center
}

.hero-bottom>span {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65
}

.hero-bottom>span strong {
    color: var(--ink);
    font-weight: 550
}

.metric {
    border-left: 1px solid var(--line);
    padding-left: 34px;
    display: flex;
    flex-direction: column;
    align-self: stretch
}

.metric>strong {
    font-weight: 500;
    font-size: 35px;
    letter-spacing: -1.2px;
    line-height: 1.3
}

.metric>strong span {
    font-size: 27px;
    color: var(--orange)
}

.metric>span {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px
}

.overview {
    padding-top: 57px;
    padding-bottom: 65px
}

.section-label {
    font-size: 10px;
    letter-spacing: 1.8px;
    font-weight: 650;
    color: var(--muted);
    display: flex;
    justify-content: space-between
}

.section-label>span {
    letter-spacing: 0;
    font-weight: 400;
    color: #87918a
}

.section-heading {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 65px;
    align-items: end;
    margin: 23px 0 32px
}

h2 {
    font-size: 33px;
    line-height: 1.22;
    font-weight: 550;
    letter-spacing: -1.2px;
    margin: 0
}

.section-heading p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
    line-height: 1.8
}

.prism-intro {
    display: flex;
    align-items: center;
    gap: 18px;
}

.prism-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: contain;
}

.figure-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 20px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 9px;
    overflow: hidden
}

.figure-button img {
    width: 100%;
    height: auto;
    display: block
}

.figure-zoom {
    background: #ffffffed;
    font-size: 10px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 4px;
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 8px
}

.figure-button:hover {
    border-color: var(--orange)
}

.caption {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin: 14px 0 0
}

.method-band {
    padding: 62px 0;
    background: #eeefe9;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.stages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    margin: 33px 0
}

.stages article {
    display: flex;
    gap: 18px;
    height: 100%
}

.stages article>div {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%
}

.stage-number {
    font-size: 11px;
    color: var(--orange);
    line-height: 28px;
    font-weight: 650
}

.stages h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px
}

.stages p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 14px
}

.stage-tag {
    font-size: 13px;
    font-weight: 550;
    color: var(--teal);
    margin-top: auto
}

.results {
    padding-top: 65px;
    padding-bottom: 65px
}

.score-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: 36px
}

.score-strip article {
    margin: 24px 0;
    padding: 0 29px;
    border-left: 1px solid var(--line)
}

.score-strip article:first-child {
    border: 0;
    padding-left: 0
}

.score-strip article>span {
    font-size: 10px;
    letter-spacing: 1.3px;
    font-weight: 600
}

.score-strip strong {
    display: block;
    font-size: 52px;
    font-weight: 450;
    letter-spacing: -2px;
    color: var(--orange);
    line-height: 1.3;
    margin: 9px 0
}

.score-strip small {
    font-size: 29px
}

.score-strip p {
    font-size: 12px;
    color: var(--muted);
    margin: 0
}

.comparison-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 35px 0 23px;
    gap: 16px
}

.comparison-head h3 {
    font-size: 17px;
    letter-spacing: -.3px;
    font-weight: 550;
    margin: 0
}

.comparison-head p {
    font-size: 13px;
    color: var(--muted);
    margin: 5px 0 0
}

.segmented {
    display: flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 6px;
    flex-shrink: 0
}

.segmented button {
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-size: 11px;
    padding: 7px 14px;
    color: var(--muted)
}

.segmented button[aria-pressed=true] {
    background: var(--ink);
    color: white
}

.bar-row {
    display: grid;
    grid-template-columns: 190px 1fr 65px;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
    font-size: 13px
}

.bar-track {
    background: #eeeee8;
    height: 23px;
    border-radius: 3px;
    overflow: hidden
}

.bar {
    height: 100%;
    width: 0;
    transition: width .35s ease;
    border-radius: 3px
}

.bar.muted {
    background: #b5bdb5
}

.bar.native {
    background: var(--teal)
}

.bar.prism {
    background: var(--orange)
}

.bar-row strong {
    text-align: right;
    font-size: 13px;
    font-weight: 550;
    font-variant-numeric: tabular-nums
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap
}

.sota-key {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin: 0
}

.sota-key .scale-bar {
    width: 28px
}

.sota-wrap {
    position: relative;
    overflow-x: auto;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink)
}

.sota-wrap:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px
}

.sota {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums
}

.sota th,
.sota td {
    padding: 9px 12px;
    text-align: left;
    font-weight: 400;
    white-space: nowrap
}

.sota thead th {
    padding-top: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.4;
    text-transform: uppercase;
    vertical-align: bottom
}

.sota tbody tr+tr th,
.sota tbody tr+tr td {
    border-top: 1px solid #ecebe5
}

.sota th[scope=row] {
    font-weight: 550
}

.sota sub,
.sota sup {
    line-height: 0
}

.sota th[scope=row] sup,
.caption sup {
    color: var(--muted);
    font-weight: 400;
    padding-left: 2px
}

.sota .group th {
    padding-top: 18px;
    padding-bottom: 6px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1px;
    color: var(--orange)
}

.sota .group th span {
    padding-left: 8px;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0
}

.sota .num {
    text-align: right
}

.sota .na,
.sota .flag.no {
    color: #a3a9a6
}

.sota .flag {
    text-align: center
}

.sota .scale {
    width: 1%
}

.scale-cell {
    display: flex;
    align-items: center;
    gap: 10px
}

.scale-track {
    display: block;
    width: 90px
}

.scale-value {
    width: 46px;
    text-align: right;
    flex-shrink: 0
}

.scale-bar {
    display: block;
    min-width: 3px;
    height: 4px;
    border-radius: 2px;
    background: #b5bdb5
}

.sota .ours th,
.sota .ours td {
    background: #f5e9e2;
    border-top-color: transparent
}

.sota .ours th {
    box-shadow: inset 3px 0 0 var(--orange);
    font-weight: 650
}

.sota .ours .scale-bar {
    background: var(--orange)
}

.ours-tag {
    margin-left: 6px;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange)
}

@media(max-width:760px) {
    .sota {
        min-width: 600px;
        font-size: 12px
    }

    .sota th,
    .sota td {
        padding-left: 8px;
        padding-right: 8px
    }

    .scale-value {
        width: 38px
    }

    .scale-track {
        width: 40px
    }

    .sota th[scope=row],
    .sota thead th:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background: var(--paper);
        box-shadow: inset -1px 0 0 var(--line)
    }

    .sota .ours th[scope=row] {
        background: #f5e9e2;
        box-shadow: inset 3px 0 0 var(--orange), inset -1px 0 0 var(--line)
    }
}

.result-note {
    font-size: 10px;
    color: var(--muted);
    margin: 26px 0 0;
    max-width: 880px;
    line-height: 1.8
}

.demo-band {
    padding: 60px 0;
    background: #f1ede7;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.demos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.demo {
    margin: 0
}

.demo video {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    border-radius: 7px;
    background: #202b2a
}

.demo figcaption {
    font-size: 14px;
    font-weight: 550;
    margin-top: 11px;
    line-height: 1.5
}

.demo figcaption small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 3px
}

.reproduce {
    padding-top: 64px;
    padding-bottom: 40px
}

.reproduce-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 90px;
    margin-top: 23px
}

.reproduce-grid p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 445px
}

.release-state {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    margin-top: 24px;
    color: var(--muted)
}

.recipe {
    border-left: 1px solid var(--line);
    padding-left: 34px
}

.recipe-label {
    font-size: 10px;
    letter-spacing: 1.7px;
    color: var(--muted)
}

.recipe ol {
    list-style: none;
    padding: 0;
    margin: 20px 0 0
}

.recipe li {
    display: flex;
    gap: 19px;
    margin: 18px 0
}

.recipe li>span {
    font-size: 10px;
    color: var(--orange);
    line-height: 23px
}

.recipe strong {
    font-size: 15px;
    font-weight: 550
}

.recipe p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
    margin: 3px 0 0
}

.notes {
    padding-bottom: 36px;
    font-size: 12px;
    color: var(--muted)
}

.notes p {
    margin: 7px 0
}

footer {
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 110px
}

footer .wordmark {
    font-size: 19px
}

footer p {
    font-size: 12px;
    color: var(--muted);
    flex: 1
}

footer>.footer-arxiv {
    font-size: 11px;
    color: var(--muted)
}

footer>.footer-arxiv:hover {
    color: var(--orange)
}

dialog {
    width: 95vw;
    max-width: 1500px;
    padding: 48px 20px 20px;
    border: 0;
    border-radius: 8px;
    background: white
}

dialog::backdrop {
    background: #132521cc
}

dialog img {
    display: block;
    width: 100%;
    height: auto
}

.close-dialog {
    position: absolute;
    top: 10px;
    right: 18px;
    background: transparent;
    border: 0;
    font-size: 13px
}

.skip {
    position: absolute;
    top: -60px;
    left: 16px;
    padding: 8px;
    background: var(--ink);
    color: white;
    z-index: 5
}

.skip:focus {
    top: 10px
}

@media(min-width:1500px) {
    .wrap {
        max-width: 1240px
    }
}

@media(max-width:760px) {
    .nav {
        height: 70px;
        padding: 0 22px
    }

    .wordmark {
        font-size: 20px
    }

    nav {
        gap: 16px;
        font-size: 11px
    }

    .nav-cta {
        border: 0;
        padding-left: 0
    }

    nav a[href="#demonstrations"] {
        display: none
    }

    .wrap {
        padding-left: 24px;
        padding-right: 24px
    }

    .hero {
        padding-top: 42px
    }

    .eyebrow {
        font-size: 8px;
        letter-spacing: 1.2px;
        gap: 7px
    }

    .eyebrow-line {
        width: 14px;
        margin: 0
    }

    h1 {
        font-size: 46px;
        letter-spacing: -2.3px;
        line-height: 1.12;
        margin-top: 25px
    }

    .paper-title {
        font-size: 14px
    }

    .hero-description {
        font-size: 15px
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 8px
    }

    .button {
        padding: 10px 14px;
        gap: 12px;
        font-size: 11px
    }

    .hero-bottom {
        grid-template-columns: 1fr 1fr;
        gap: 23px;
        margin-top: 37px;
        padding: 25px 0
    }

    .metric {
        padding-left: 20px
    }

    .metric:nth-child(3) {
        border: 0;
        padding: 0
    }

    .metric>strong {
        font-size: 31px
    }

    .metric>span {
        font-size: 11px
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 20px
    }

    .prism-intro {
        gap: 16px;
    }

    .prism-icon {
        width: 52px;
        height: 52px;
    }

    h2 {
        font-size: 29px
    }

    .overview,
    .results {
        padding-top: 42px;
        padding-bottom: 42px
    }

    .method-band,
    .demo-band {
        padding: 42px 0
    }

    .stages {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .figure-button {
        padding: 8px
    }

    .figure-zoom {
        font-size: 8px;
        padding: 2px 5px
    }

    .caption {
        font-size: 12px
    }

    .score-strip article {
        padding: 0 13px
    }

    .score-strip strong {
        font-size: 36px;
        letter-spacing: -1px
    }

    .score-strip small {
        font-size: 20px
    }

    .score-strip article>span {
        font-size: 8px;
        letter-spacing: .6px
    }

    .score-strip p {
        font-size: 11px;
        line-height: 1.5
    }

    .comparison-head {
        align-items: flex-start;
        flex-direction: column
    }

    .bar-row {
        grid-template-columns: 124px 1fr 46px;
        gap: 10px;
        font-size: 12px
    }

    .bar-row strong {
        font-size: 12px
    }

    .bar-track {
        height: 20px
    }

    .demos {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: auto;
        gap: 25px
    }

    .reproduce-grid {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .recipe {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 24px 0 0
    }

    .reproduce {
        padding-top: 42px
    }

    footer {
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 25px;
        padding-bottom: 25px
    }

    footer p {
        flex-basis: 65%;
        margin: 0
    }

    footer>.footer-arxiv {
        flex-basis: 100%
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .bar {
        transition: none
    }
}

.authors {
    max-width: 1020px;
    margin: 23px 0 22px
}

.authors p {
    display: flex;
    flex-wrap: wrap;
    column-gap: 19px;
    row-gap: 5px;
    margin: 0;
    font-size: 12px;
    font-weight: 550
}

.authors sup {
    color: var(--orange);
    font-size: 8px;
    margin-left: 3px
}

.authors .affiliations {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 9px;
    gap: 9px 22px
}

.citation {
    padding-top: 12px;
    padding-bottom: 28px
}

.citation-head {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.citation h3 {
    font-size: 16px;
    font-weight: 550
}

.citation button {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 7px 13px;
    background: transparent;
    font-size: 11px
}

.citation pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 22px;
    background: #eeefe9;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: 11px/1.8 monospace
}

.citation #copy-status {
    font-size: 11px;
    color: var(--muted);
    min-height: 18px;
    margin: 0
}

@media(max-width:760px) {
    .authors p {
        font-size: 11px;
        gap: 6px 14px
    }

    .authors .affiliations {
        font-size: 10px;
        gap: 4px 12px
    }

    .citation pre {
        font-size: 10px;
        padding: 15px
    }

    nav a {
        white-space: nowrap
    }
}

@media(max-width:1100px) {
    .brand .tagline {
        display: none
    }
}

@media(max-width:520px) {
    .nav-cta small {
        display: none
    }
}

@media(max-width:420px) {
    nav a[href="#motivation"] {
        display: none
    }
}

.demo-benchmark {
    display: block;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 9px
}
/* Bottleneck analysis: archived measurements and matched transition retrieval. */
.bottleneck { padding-top: 68px; padding-bottom: 68px; }
.bottleneck-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0 20px; }
.bottleneck-controls > p { color: var(--muted); font-size: 12px; margin: 0; }
.bottleneck-switch { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 30px; }
.bottleneck-switch button { border: 0; border-radius: 24px; padding: 8px 18px; background: transparent; color: var(--muted); font-size: 13px; }
.bottleneck-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bottleneck-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.bottleneck-metric { padding: 22px; }
.bottleneck-metric + .bottleneck-metric { border-left: 1px solid var(--line); }
.bottleneck-metric h3 { font-size: 13px; font-weight: 550; margin: 0 0 15px; }
.bottleneck-values { display: flex; gap: 26px; }
.bottleneck-values div { display: flex; flex-direction: column; }
.bottleneck-values span { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.bottleneck-values strong { font-size: clamp(19px, 2.1vw, 26px); font-weight: 550; white-space: nowrap; }
.bottleneck-values .prism strong { color: var(--teal); }
.bottleneck-metric > p { font-size: 11px; color: var(--muted); margin: 9px 0 0; }
.bottleneck-reading { color: var(--muted); font-size: 13px; margin: 14px 0 32px; }
.neighbor-explorer { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.neighbor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.neighbor-eyebrow { font-size: 10px; letter-spacing: 1.2px; color: var(--muted); }
.neighbor-toolbar p { font-size: 14px; margin: 5px 0 0; }
.neighbor-picker { width: 43%; min-width: 0; }
.neighbor-picker label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.neighbor-picker select { width: 100%; padding: 10px 28px 10px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; text-overflow: ellipsis; }
.neighbor-picker select:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.bottleneck-protocol { margin-top: 20px; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.bottleneck-protocol summary { cursor: pointer; font-weight: 550; }
.bottleneck-protocol > div { max-width: 850px; color: var(--muted); }
.bottleneck-protocol a { color: var(--teal); text-decoration: underline; }
.bottleneck-error { padding: 24px; }

.clip-comparison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 24px; }
.clip-card { min-width: 0; }
.clip-card h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.clip-card.native h3 { color: #bd5835; }
.clip-card.prism h3 { color: #26786a; }
.clip-card video { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #e7e6e0; }
.clip-instruction { font-size: 13px; line-height: 1.5; margin: 12px 0 6px; min-height: 3em; }
.clip-detail { font-size: 10px; color: var(--muted); margin: 0 0 12px; }
.clip-controls { display: flex; align-items: center; gap: 14px; margin: 25px 24px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f0f0ea; }
.clip-controls button { border: 0; padding: 9px 14px; border-radius: 5px; font-size: 12px; white-space: nowrap; }
.clip-play { background: var(--ink); color: var(--paper); min-width: 132px; }
.clip-play:disabled { opacity: .55; }
.clip-restart { background: none; color: var(--ink); }
.clip-scrubber { flex: 1; min-width: 50px; accent-color: var(--teal); cursor: pointer; }
.clip-step { font-size: 11px; color: var(--muted); white-space: nowrap; }
.neighbor-footnote, .neighbor-selection-note { margin: 0; padding: 16px 24px; color: var(--muted); font-size: 11px; line-height: 1.7; border-top: 1px solid var(--line); }
.neighbor-selection-note { background: #f1f1eb; }
@media (max-width: 800px) {
  .bottleneck-controls { align-items: flex-start; flex-direction: column; }
  .bottleneck-metric { padding: 15px 12px; }
  .bottleneck-values { gap: 13px; }
  .clip-comparison { gap: 10px; padding: 0 16px; }
  .clip-instruction { font-size: 11px; }
  .clip-controls { flex-wrap: wrap; margin: 20px 16px; }
}
@media (max-width: 560px) {
  .bottleneck { padding-top: 44px; padding-bottom: 44px; }
  .bottleneck-metrics { grid-template-columns: 1fr; }
  .bottleneck-metric + .bottleneck-metric { border-left: 0; border-top: 1px solid var(--line); }
  .bottleneck-metric { padding: 16px 20px; }
  .bottleneck-values strong { font-size: 25px; }
  .bottleneck-values { gap: 45px; }
  .neighbor-toolbar { align-items: stretch; flex-direction: column; gap: 14px; padding: 18px; }
  .neighbor-picker { width: 100%; }
  .clip-comparison { grid-template-columns: 1fr; gap: 22px; padding: 0 18px; }
  .clip-instruction { min-height: 0; font-size: 13px; }
  .clip-card video { max-height: 300px; }
  .clip-controls { position: sticky; bottom: 8px; z-index: 3; box-shadow: 0 4px 20px #202b2a18; }
  .clip-scrubber { flex-basis: 60%; }
  .neighbor-footnote, .neighbor-selection-note { padding: 16px 18px; }
}

.clip-comparison { padding-top: 24px; }
.clip-scrubber:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
