body {
    margin: 0;
    min-height: 100%;
    background-color: #fff;
    font-family: 'Google Sans', sans-serif;
    color: #333;
    font-size: 12px;
    line-height: 20px;
    overflow-x: hidden;
}

.section {
    text-align: center;
    margin-left: 30px;
    margin-right: 30px;
}

.container {
    padding-left: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 940px;
}

.title {
    margin-top: 0px;
    margin-bottom: 0px;
    font-family: 'Noto Sans', sans-serif;
    color: #4d4d4d;
    font-size: 50px;
    line-height: 65px;
    font-weight: 700;
    letter-spacing: 4px;
}

.subheader {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Google Sans', sans-serif;
    color: #333;
    font-size: 25px;
    line-height: 44px;
    font-weight: 500;
    letter-spacing: 0;
}

.publication-venue {
    font-family: 'Google Sans', sans-serif;
    color: #333;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
}

.is-3 {
    font-size: 2rem;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.tldr {
    margin-top: 30px;
    margin-bottom: 3px;
    font-family: 'Google Sans', sans-serif;
    color: #333;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
}

.base-row {
    margin-left: -10px;
    margin-right: -10px;
}

.base-col {
    position: relative;
    float: left;
    min-height: 1px;
    padding-left: 0px;
    padding-right: 0px;
    width: 100%;
}

.icon-col {
    width: 33.33%;
}

.icon-img {
    max-width: 35%;
    margin-right: auto;
    margin-bottom: 1px;
    margin-left: auto;
    padding-top: 0px;
}

.github-img-icon {
    max-width: 30%;
    margin-top: 6px;
    margin-bottom: 9px;
    opacity: .77;
}

.arxiv-img-icon {
    max-width: 20%;
    margin-top: 6px;
    margin-bottom: 9px;
    opacity: .9;
}

.link-block {
    display: block;
    max-width: 100%;
    margin-right: auto;
    margin-bottom: -14px;
    margin-left: auto;
    text-align: center;
}

.link-labels {
    display: inline-block;
    width: 60%;
    margin-top: 5px;
}

.link-labels-text {
    font-family: 'Google Sans', sans-serif;
    color: #333;
    font-size: 14px;
}

#main-video {
    width: 90%;
    margin-top: 0px;
    margin-bottom: 10px;
    border-radius: 15px;
}

#pipeline-img {
    width: 90%;
    margin-top: 10px;
    margin-right: 20px;
    margin-bottom: 10px;
}

.paragraph {
    margin-top: 0px;
    margin-bottom: 20px;
    font-family: 'Google Sans', sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-align: left;
}

.paragraph-center {
    margin-top: 0px;
    font-family: 'Google Sans', sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-align: center;
}

.add-top-padding {
    margin-top: 40px;
}

/* Carousel */
.video-container {
    flex: 1 0 100%;
    margin-right: 10px;
}

video {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.carousel-button {
    position: relative;
    align-items: center;
    top: -250px;
    margin-bottom: -250px;
    height: 4rem;
    background-color: #6dbdff;
    border: none;
    width: 5%;
    font-size: 2rem;
    padding: 0;
    cursor: pointer;
    opacity: 1.0;
    transition: color 100ms;
}

.carousel-button:hover,
.carousel-button:focus {
    background-color: #2196F3;
}

.carousel-button.left {
    left: -400px;
    border-radius: 2rem;
}

.carousel-button.right {
    right: -400px;
    border-radius: 2rem;
}

.carousel-slider-wrapper {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
}

.carousel-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* Experiment slide layout */
.experiment-slide {
    flex: 1 0 100%;
    scroll-snap-align: start;
    padding: 0 10px;
    box-sizing: border-box;
}

.experiment-columns {
    display: flex;
    gap: 20px;
}

.experiment-side {
    flex: 1;
}

.experiment-side video {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 418 / 480;
    object-fit: cover;
    object-position: top;
}

.experiment-label {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0;
    text-align: center;
}

.failure-label {
    color: #E63946;
}

.success-label {
    color: #2A9D8F;
}

.video-with-overlay {
    position: relative;
}

.input-overlay-wrapper {
    position: absolute;
    bottom: 12px;
    left: 8px;
    width: 30%;
    text-align: center;
}

.input-overlay-wrapper img {
    width: 100%;
    border-radius: 6px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.input-overlay-wrapper span {
    display: block;
    font-family: 'Google Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    margin-top: 2px;
}

.recon-gt-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.recon-gt-item {
    flex: 1;
    text-align: center;
}

.recon-gt-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.recon-gt-label {
    display: block;
    font-family: 'Google Sans', sans-serif;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Columns layout */
.columns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0 auto;
}

.column {
    flex: 1;
    max-width: 50%;
    box-sizing: border-box;
    padding: 1rem;
}

/* Citation */
.citation {
    background-color: #eaeaea;
    text-align: left;
    border-radius: 10px;
    padding-top: 3px;
}

.citation > h1 {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    padding: 10px;
}

.citation > pre {
    margin-bottom: 10px;
    margin-left: 10px;
    padding: 10px;
}

#codecell0 {
    margin-bottom: 10px;
    margin-left: 10px;
    overflow-y: scroll;
}

/* Results section */
.results-main {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 0 auto 16px;
}

.results-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 2;
}

.results-cell {
    text-align: center;
    min-width: 0;
}

.results-label {
    font-family: 'Google Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #4d4d4d;
    margin: 0 0 4px;
    text-align: center;
}

model-viewer.results-viewer {
    display: block;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f0f0f0;
}

.results-gt-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.results-viewer.results-gt {
    border: 2px solid #333;
}

model-viewer.scout-chosen {
    border: 2px solid #2A9D8F;
}

model-viewer.scout-other {
    border: 2px solid #E63946;
}

.scout-tag {
    color: #2A9D8F;
    font-weight: 400;
    font-size: 13px;
}


.results-bottom {
    text-align: center;
    margin: 0 auto;
}


.results-thumb-area {
    display: flex;
    align-items: center;
    gap: 6px;
}

.results-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #6dbdff;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-arrow:hover {
    background: #2196F3;
}

.results-thumb-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    min-width: 0;
    padding: 4px 0;
    scrollbar-width: none;
}

.results-thumb-scroll::-webkit-scrollbar {
    display: none;
}

.results-thumb {
    flex-shrink: 0;
    width: 126px;
    padding: 2px;
    border: 3px solid transparent;
    border-radius: 8px;
    background: #f0f0f0;
    cursor: pointer;
    transition: border-color 0.2s;
    text-align: center;
}

.results-thumb:hover {
    border-color: #aaa;
}

.results-thumb.active-thumb {
    border-color: #2196F3;
}

.results-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
}

.results-thumb span {
    display: block;
    font-family: 'Google Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    margin-top: 2px;
}

.dext-img {
    display: block;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.dext-img-wrap {
    position: relative;
}

.dext-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 42%;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-family: 'Google Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 6px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.4;
}

.dext-overlay.dext-success {
    background: rgba(42, 157, 143, 0.85);
}

.dext-overlay.dext-fail {
    background: rgba(230, 57, 70, 0.85);
}

.active-dext-thumb {
    border-color: #2196F3 !important;
}

.active-grasp-thumb {
    border-color: #2196F3 !important;
}

.grasps-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
}

/* Evaluation examples */
.eval-examples {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.eval-example {
    text-align: center;
    flex: 0 1 200px;
}

.eval-example img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.eval-example span {
    display: block;
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #333;
    margin-top: 6px;
}

/* Metric pills */
.metrics-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.metric-pill {
    font-family: 'Google Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #4d4d4d;
    background: #f0f4f8;
    border: 1px solid #d0d8e0;
    border-radius: 20px;
    padding: 6px 14px;
}

/* Responsive */
@media screen and (max-width: 750px) {
    .column {
        max-width: 100%;
    }

    .carousel-button {
        top: -150px;
    }

}

@media screen and (max-width: 550px) {
    .subheader {
        font-size: 16px;
        line-height: 28px;
    }

    .title {
        font-size: 36px;
    }

    #pipeline-img {
        width: 95%;
        margin-right: 0px;
    }
}
