.product-scene {
    --scene-control-gutter: var(--content-inset, clamp(22px, 5.1vw, 96px));
}
.scene-presentation .menu-toggle { color: #f5f5f7; }
.scene-presentation .menu-toggle span { background: currentColor; }

.product-scene .scene-interface {
    position: absolute;
    inset: auto 0 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    height: auto;
    min-height: 80px;
    padding: 16px var(--scene-control-gutter);
    border: 0;
    border-top: 1px solid #ffffff1f;
    border-radius: 0;
    background: #151715f5;
    color: #f5f5f7;
    transform: none;
    backdrop-filter: none;
}

.product-scene .scene-interface[hidden] { display: none; }
.product-scene .scene-interface[inert] button { cursor: wait; }
.product-scene[data-model-ready="false"] .scene-hint { visibility: hidden; }

.product-scene :where(.scene-interface) button {
    position: static;
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #dedfdd;
    box-shadow: none;
    font: 400 13px/1.35 var(--font-sans);
    letter-spacing: 0;
    backdrop-filter: none;
    pointer-events: auto;
}

.product-scene .scene-interface button:hover { color: #fff; }
.product-scene .scene-interface button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.product-scene .scene-interface button[aria-pressed="true"],
.product-scene .scene-finish-toggle[aria-expanded="true"] { color: #fff; }
.product-scene .scene-interface button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.product-scene .scene-finish-toggle { display: inline-flex; align-items: center; justify-content: center; order: 1; }
.product-scene .scene-quality { order: 2; }
.product-scene .scene-quality[aria-pressed="true"],
.product-scene .scene-finish-toggle[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 8px; }
.product-scene .scene-finish-toggle[aria-expanded="true"] { background: transparent; border-color: transparent; }
.product-scene .scene-ar { display: inline-flex; align-items: center; justify-content: center; gap: 9px; order: 4; margin-left: auto; }
.product-scene .scene-reset { display: grid; place-items: center; order: 5; width: 44px; height: 44px; min-width: 44px; font-size: 26px; }
.product-scene .scene-interface:not(:has(.scene-ar:not([hidden]))) .scene-reset { margin-left: auto; }
.product-scene .scene-finish-toggle[hidden] { display: none !important; }
.product-scene .scene-reset svg { display: block; width: 24px; height: 24px; }
.product-scene .scene-ar svg { width: 17px; height: 17px; }

.product-scene .scene-view-controls {
    position: absolute;
    top: 16px;
    left: 50%;
    right: auto;
    bottom: auto;
    display: flex;
    gap: 24px;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: translateX(-50%);
    backdrop-filter: none;
}

.product-scene .scene-view-controls button {
    min-width: 64px;
    padding: 10px 2px;
    border-bottom: 1px solid transparent;
    font-size: 14px;
    white-space: nowrap;
}

.product-scene .scene-view-controls button[aria-pressed="true"] { border-bottom-color: #f5f5f7; }
.product-scene .scene-hint {
    position: absolute;
    right: auto;
    left: 50%;
    bottom: calc(100% + 18px);
    width: max-content;
    max-width: 32%;
    color: #f5f5f7cc;
    font: 400 12px/1.5 var(--font-sans);
    text-align: center;
    transform: translateX(-50%);
    text-shadow: 0 1px 5px #0008;
}

.product-scene .scene-quality-status {
    position: absolute;
    left: var(--scene-control-gutter);
    right: auto;
    bottom: calc(100% + 15px);
    max-width: 28%;
    color: #f5f5f7;
    font: 400 11px/1.5 var(--font-sans);
    text-shadow: 0 1px 5px #0008;
}

.product-scene[data-scene-finish-disclosure] .scene-finish-panel {
    display: none;
    position: absolute;
    z-index: 5;
    top: auto;
    right: auto;
    left: var(--scene-control-gutter);
    bottom: calc(var(--scene-interface-height, 80px) + 14px);
    width: 350px;
    max-width: calc(100% - 2 * var(--scene-control-gutter));
    max-height: calc(100% - var(--scene-interface-height, 80px) - 180px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #ffffff26;
    border-radius: 0;
    background: #171917;
    color: #f5f5f7;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: auto;
}

.product-scene[data-scene-finish-disclosure] .scene-finish-panel.is-open { display: grid; gap: 22px; }
.product-scene[data-scene-finish-disclosure] .scene-finishes,
.product-scene[data-scene-finish-disclosure] .scene-oil-controls,
.product-scene[data-scene-finish-disclosure] .scene-oil-controls[data-standalone="true"] { position: static; max-width: none; }
.product-scene .scene-finish-label { margin-bottom: 18px; color: #b9bcb8; font: 400 12px/1.5 var(--font-sans); }
.product-scene .scene-finish-label span { color: #f5f5f7; }
.product-scene .scene-finish-options { display: flex; flex-wrap: wrap; gap: 12px; }
.product-scene .scene-finish-swatch { width: 44px; height: 44px; border-radius: 50%; box-shadow: none; outline-offset: 3px; }
.product-scene .scene-finish-randomize { margin-top: 18px; min-height: 44px; padding: 9px 0; border: 0; border-bottom: 1px solid #ffffff40; color: #c9ccc7; font: 400 12px/1.5 var(--font-sans); }
.product-scene .scene-oil-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #b9bcb8; font: 400 12px/1.5 var(--font-sans); }
.product-scene .scene-oil-options { padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; gap: 18px; }
.product-scene .scene-oil-options button { min-height: 44px; padding: 10px 0; border-radius: 0; border-bottom: 1px solid transparent; color: #b9bcb8; font: 400 12px/1.5 var(--font-sans); }
.product-scene .scene-oil-options button[aria-pressed="true"] { background: none; color: #fff; border-bottom-color: #fff; }
.product-scene .scene-finish-status { font: 400 11px/1.5 var(--font-sans); }
.product-scene .product-ar-dialog { font-family: var(--font-sans); border-radius: 0; background: #fff; }
.product-scene .product-ar-dialog::backdrop { backdrop-filter: none; background: #10120fb8; }
.product-scene .product-ar-actions button { font-family: var(--font-sans); border-radius: 0; }
.product-scene[data-scene-debug] .scene-lighting-toggle { right: var(--scene-control-gutter); bottom: calc(var(--scene-interface-height, 80px) + 18px); }
.product-scene[data-scene-debug]:has(.scene-finish-panel.is-open) .scene-lighting-toggle { visibility: hidden; }

@media (min-width: 1081px) {
    .product-model-sticky .product-scene {
        height: calc(100% - var(--scene-interface-height, 80px));
        overflow: visible;
    }
    .product-model-sticky .scene-interface { top: 100%; bottom: auto; }
    .product-model-sticky .product-scene[data-scene-finish-disclosure] .scene-finish-panel { bottom: 14px; }
    .product-model-sticky .scene-poster { height: 100%; overflow: hidden; }
}

@media (max-width: 1080px) {
    .product-scene .scene-interface,
    .product-scene[data-scene-finish-disclosure] .scene-interface {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
        gap: 4px 16px;
        min-height: 0;
        padding: 8px var(--scene-control-gutter) max(10px, env(safe-area-inset-bottom));
    }
    .product-scene :where(.scene-interface) button { min-width: 0; }
    .product-scene .scene-view-controls {
        position: static;
        grid-column: 1 / -1;
        grid-row: 1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        width: 100%;
        transform: none;
    }
    .product-scene .scene-view-controls button { min-height: 44px; font-size: 13px; padding: 10px 4px; }
    .product-scene .scene-finish-toggle { grid-column: 1; grid-row: 2; justify-self: start; font-size: 12px; }
    .product-scene .scene-quality { grid-column: 2; grid-row: 2; justify-self: center; font-size: 12px; }
    .product-scene .scene-reset { grid-column: 3; grid-row: 2; justify-self: end; }
    .product-scene .scene-interface:not(:has(.scene-ar:not([hidden]))) .scene-reset { margin-left: 0; }
    .product-scene .scene-ar { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; margin-left: 0; border-top: 1px solid #ffffff1f; font-size: 12px; }
    .product-scene .scene-hint,
    .product-scene .scene-interface:has(.scene-ar:not([hidden])) .scene-hint { grid-row: auto; max-width: calc(100% - 44px); bottom: calc(100% + 13px); font-size: 11px; }
    .product-scene .scene-quality-status,
    .product-scene .scene-interface:has(.scene-ar:not([hidden])) .scene-quality-status { grid-row: auto; left: var(--scene-control-gutter); right: var(--scene-control-gutter); max-width: none; bottom: calc(100% + 9px); padding: 8px 12px; background: #171917; text-shadow: none; }
    .product-scene .scene-interface:has(.scene-quality-status:not([hidden])) .scene-hint { display: none; }
    .product-scene[data-scene-finish-disclosure] .scene-finish-panel { left: var(--scene-control-gutter); right: var(--scene-control-gutter); width: auto; max-width: none; bottom: calc(var(--scene-interface-height, 150px) + max(10px, env(safe-area-inset-bottom)) + 12px); max-height: calc(100% - var(--scene-interface-height, 150px) - 185px); padding: 22px; }

    .product-scene .scene-interface--public,
    .product-scene[data-scene-finish-disclosure] .scene-interface--public {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 44px 44px;
    }
    .product-scene .scene-interface--public .scene-ar {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        max-width: 100%;
        padding: 4px 0;
        border-top: 0;
        gap: 6px;
        font-size: 12px;
        line-height: 1.3;
        text-align: right;
    }
}
