﻿/* Gray V2 Photo layout */
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main {
    --photo-ai3d-left-total-width: calc(var(--photo-sidebar-width) + var(--ai3d-sidebar-pad) + var(--ai3d-sidebar-pad));
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l {
    flex-basis: var(--photo-ai3d-left-total-width) !important;
    width: var(--photo-ai3d-left-total-width) !important;
    min-width: var(--photo-ai3d-left-total-width) !important;
    max-width: var(--photo-ai3d-left-total-width) !important;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .parmaStyle {
    flex-direction: column !important;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .left-primary-panel {
    flex: 1 1 auto !important;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .left-top-panel {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .left-top-panel::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .left-bottom-panel {
    flex: 0 0 auto !important;
    position: sticky;
    bottom: 0;
    z-index: 8;
    background: linear-gradient(180deg, rgba(5, 14, 31, 0) 0%, rgba(5, 14, 31, 0.98) 26%);
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn.empty,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn.ready,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn.uploading,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn.generating,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn[disabled],
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn[data-photo-submit-state="ready"],
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn[data-photo-submit-state="uploading"],
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn[data-photo-submit-state="generating"] {
    border: 1px solid rgba(255, 210, 92, 0.86) !important;
    background: #f7c948 !important;
    background: linear-gradient(135deg, #ffe36a 0%, #f7b733 48%, #ef7d22 100%) !important;
    color: #1a1204 !important;
    box-shadow: 0 14px 28px rgba(239, 125, 34, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
    filter: none;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn .main,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn.empty .main,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn.ready .main,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn.uploading .main,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn.generating .main,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn[disabled] .main,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn[data-photo-submit-state="ready"] .main,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn[data-photo-submit-state="uploading"] .main,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn[data-photo-submit-state="generating"] .main {
    color: #1a1204 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn[disabled] {
    opacity: 1 !important;
    cursor: not-allowed;
    box-shadow: 0 10px 20px rgba(239, 125, 34, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
    filter: none !important;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-history-panel {
    display: none !important;
}


body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-param-dock {
    display: none !important;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-prompt-card--gray-v2-docked {
    flex: 1 1 13rem;
    min-height: 5.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-prompt-card--gray-v2-docked .photo-prompt-wrap,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-prompt-card--gray-v2-docked .photo-prompt-field {
    width: 100%;
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-prompt-card--gray-v2-docked .photo-prompt-input {
    flex: 1 1 8rem;
    min-height: 4.25rem;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-prompt-card--gray-v2-docked .photo-prompt-counter {
    margin-top: 0.45rem;
    color: rgba(198, 212, 238, 0.82);
    font-size: 0.92rem;
    text-align: left;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploadAdd.has-upload .js-uploader__box,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .js-uploader__box.has-upload {
    width: 100%;
    min-width: 0;
    position: relative;
    border: 1px dashed rgba(83, 110, 164, 0.72);
    border-radius: 12px;
    background: rgba(9, 18, 34, 0.62);
    overflow: hidden;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploadAdd .uploader__file-list:not(:empty) {
    width: 100%;
    height: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__item,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__item:only-child {
    width: 100% !important;
    height: 100%;
    aspect-ratio: auto;
    border: 1px solid rgba(96, 123, 181, 0.68);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(23, 36, 61, 0.92), rgba(9, 17, 32, 0.96)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        0 12px 26px rgba(0, 0, 0, 0.24);
    box-sizing: border-box;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__thumbnail .thumbnail {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    border-radius: 9px;
    object-fit: contain;
    object-position: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(76, 101, 155, 0.22), transparent 64%),
        linear-gradient(180deg, rgba(16, 27, 48, 0.96), rgba(7, 13, 25, 0.98));
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__button {
    inset: 0;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__item:hover .uploader__file-list__button,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__item:focus-within .uploader__file-list__button {
    opacity: 1;
    pointer-events: auto;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__button .uploader__icon-button,
body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__button .js-upload-remove-button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(231, 239, 255, 0.86);
    border-radius: 10px;
    background: rgba(13, 24, 44, 0.86);
    color: #fff;
    line-height: 1;
    pointer-events: auto;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__button .uploader__icon-button--crop {
    display: inline-flex;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__button .uploader__icon-button--remove {
    background: #f04242;
}

body.photo-ai3d-reference-page.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__button .uploader__icon-button svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* PHOTO_74_785X1396_GRAY_V2_THREE_ZONE_GUARD: only remap photo/74.html on the user's 785x1396 browser window. */
@media screen and (orientation: portrait) and (min-width: 760px) and (max-width: 790px) and (min-height: 1230px) and (max-height: 1310px) and (min-aspect-ratio: 9/16) and (max-aspect-ratio: 5/8) {
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) {
        --photo-gray74-top-height: 338px;
        --photo74-tune-top-left-x: 0px;
        --photo74-tune-top-left-y: 0px;
        --photo74-tune-top-left-width: 46%;
        --photo74-tune-top-left-height: 338px;
        --photo74-tune-top-left-font-size: 14px;
        --photo74-tune-top-left-button-height: 42px;
        --photo74-tune-top-right-x: 0px;
        --photo74-tune-top-right-y: 0px;
        --photo74-tune-top-right-width: 54%;
        --photo74-tune-top-right-height: 338px;
        --photo74-tune-top-right-font-size: 14px;
        --photo74-tune-top-right-button-height: 48px;
        --photo74-tune-top-font-size: 14px;
        --photo74-tune-submit-height: 48px;
        --photo74-tune-top-gap: 8px;
        --photo74-tune-top-padding: 12px;
        --photo74-tune-result-min-height: 744px;
        --photo74-tune-result-font-size: 14px;
        --photo74-tune-result-button-height: 42px;
        --photo74-tune-result-x: 0px;
        --photo74-tune-result-y: 0px;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main {
        display: grid !important;
        grid-template-rows: var(--photo-gray74-top-height) minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 8px !important;
        align-content: stretch !important;
        overflow: hidden !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_r {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l {
        grid-row: 1 !important;
        height: var(--photo-gray74-top-height) !important;
        min-height: 0 !important;
        max-height: var(--photo-gray74-top-height) !important;
        overflow: hidden !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .parmaStyle {
        display: grid !important;
        grid-template-columns: minmax(0, var(--photo74-tune-top-left-width)) minmax(0, var(--photo74-tune-top-right-width)) !important;
        gap: var(--photo74-tune-top-gap) !important;
        height: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .left-primary-panel,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-param-dock {
        display: grid !important;
        grid-template-rows: auto auto !important;
        gap: var(--photo74-tune-top-gap) !important;
        width: 100% !important;
        height: 100% !important;
        padding: var(--photo74-tune-top-padding) !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .left-primary-panel {
        min-width: 0 !important;
        align-content: start !important;
        height: var(--photo74-tune-top-left-height) !important;
        font-size: var(--photo74-tune-top-left-font-size) !important;
        transform: translate(var(--photo74-tune-top-left-x), var(--photo74-tune-top-left-y));
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .left-primary-panel button,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .left-primary-panel select,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .left-primary-panel .layui-btn,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .left-primary-panel .photo-model-select-trigger {
        min-height: var(--photo74-tune-top-left-button-height) !important;
        height: var(--photo74-tune-top-left-button-height) !important;
        font-size: var(--photo74-tune-top-left-font-size) !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-param-dock {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        padding: var(--photo74-tune-top-padding) !important;
        font-size: var(--photo74-tune-top-font-size) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-width: none !important;
        height: var(--photo74-tune-top-right-height) !important;
        font-size: var(--photo74-tune-top-right-font-size) !important;
        transform: translate(var(--photo74-tune-top-right-x), var(--photo74-tune-top-right-y));
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-param-dock::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .left-top-panel {
        min-height: auto !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    /* Upload section stacks order-no + uploader; model row must stay horizontal (V1.1 + count). */
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .left-top-panel > .paraPart > .wrap {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .left-top-panel > .photo-model-select-row > .wrap {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        flex-direction: row !important;
        align-items: center !important;
        column-gap: 8px !important;
        min-height: 0 !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-model-select-row .photo-model-custom-select {
        min-width: 0 !important;
        width: auto !important;
        max-width: 100% !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-model-select-row .photo-model-select-meta {
        flex: 0 0 auto !important;
        align-self: center !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-order-no-slot.is-visible {
        display: flex !important;
        margin: 0 !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_l .left-top-panel::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

    /* PHOTO_74_UPLOAD_CONTAINMENT_GUARD: keep restored/uploaded source preview inside the upload frame. */
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .uploadAdd.tc,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .uploadAdd.tc.has-upload,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .uploadAdd.tc.is-single-upload-filled {
        flex: 0 0 186px !important;
        order: 1 !important;
        align-self: stretch !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        height: 186px !important;
        min-height: 186px !important;
        max-height: 186px !important;
        padding: 12px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        contain: layout paint;
    }

    /* PHOTO_74_UPLOAD_ORDER_NO_CARD_TOP: show the order number above the uploaded preview in the 783x1392 outer-window layout. */
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .uploadAdd .photo-order-no-slot {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: auto !important;
        width: 100% !important;
        flex: 0 0 26px !important;
        order: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .js-uploader__box {
        flex: 1 1 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .uploadAdd .uploader__file-list:not(:empty),
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__item,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__item:only-child,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__thumbnail {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .uploader__file-list__thumbnail .thumbnail {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-model-select-row {
        order: 2 !important;
        margin: 8px 0 0 !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-prompt-card--gray-v2-docked {
        flex: 0 0 auto !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-prompt-card--gray-v2-docked .photo-prompt-input {
        min-height: 110px !important;
        flex: 0 0 110px !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-param-dock > .left-bottom-panel {
        margin-top: auto !important;
        padding-top: 10px !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-param-dock > .left-bottom-panel .formConfirm {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-param-dock > .left-bottom-panel .submit-gen-btn,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-param-dock > .left-bottom-panel .submit-gen-btn.empty,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-param-dock > .left-bottom-panel .submit-gen-btn.ready,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-param-dock > .left-bottom-panel .submit-gen-btn[data-photo-submit-state="ready"] {
        min-height: var(--photo74-tune-submit-height) !important;
        height: var(--photo74-tune-top-right-button-height) !important;
        font-size: var(--photo74-tune-top-right-font-size) !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .left-primary-panel > .left-bottom-panel {
        display: none !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-prompt-action-row {
        gap: 6px !important;
        margin-top: 8px !important;
        flex-wrap: nowrap !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-prompt-action {
        min-height: 30px !important;
        padding: 0 8px !important;
        font-size: var(--photo74-tune-top-right-font-size) !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel {
        position: static !important;
        margin-top: 0 !important;
        padding: 6px 0 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn.empty,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn.ready,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn[data-photo-submit-state="ready"] {
        min-height: 42px !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-points-text {
        margin-top: 6px !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_r {
        grid-row: 2 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        align-self: stretch !important;
        overflow: hidden !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .c_main > .c_r .resultPart,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-result-shell,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-result-workspace,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) #ds-result-panel,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) #ds-viewer-frame,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) #normal-result-panel,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .normal-result-panel {
        height: 100% !important;
        min-height: var(--photo74-tune-result-min-height) !important;
        max-height: none !important;
        font-size: var(--photo74-tune-result-font-size) !important;
        transform: translate(var(--photo74-tune-result-x), var(--photo74-tune-result-y));
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .normal-result-panel.has-image {
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .normal-result-panel.has-image .normal-result-image-wrap {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .normal-result-panel.has-image .normal-result-image {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-result-workspace .photo-batch-run-btn,
    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-result-workspace .photo-batch-run-btn--workspace {
        top: 12px !important;
        left: 12px !important;
        width: 128px !important;
        min-width: 128px !important;
        height: var(--photo74-tune-result-button-height) !important;
        min-height: var(--photo74-tune-result-button-height) !important;
        padding: 0 42px 0 12px !important;
        font-size: var(--photo74-tune-result-font-size) !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-result-workspace .photo-batch-run-btn__vip {
        top: 4px !important;
        right: 5px !important;
        min-width: 28px !important;
        height: 16px !important;
        line-height: 16px !important;
        font-size: 9px !important;
    }

    body.photo-ai3d-reference-page.photo-route-74.photo-gray-v2-mode-active:not(.photo-creative-active) .photo-result-workspace .photo-ds-camera-readout[data-ready="1"] {
        position: absolute;
        z-index: 13;
        display: block;
        top: calc(12px + var(--photo74-tune-result-button-height) + 6px);
        left: 12px;
        width: 128px;
        padding: 5px 7px;
        border: 1px solid rgba(125, 149, 198, 0.24);
        border-radius: 7px;
        box-sizing: border-box;
        background: rgba(7, 13, 27, 0.58);
        color: rgba(232, 239, 252, 0.82);
        font-family: "Segoe UI", Consolas, monospace;
        font-size: clamp(9px, calc(var(--photo74-tune-result-font-size) * 0.72), 11px);
        font-weight: 700;
        line-height: 1.28;
        letter-spacing: 0;
        white-space: pre-line;
        pointer-events: none;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.18);
    }
}

