/* Gray mode Photo layout */
body.photo-ai3d-reference-page.photo-gray-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-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-mode-active:not(.photo-creative-active) .c_main > .c_l .parmaStyle {
    flex-direction: column !important;
}

body.photo-ai3d-reference-page.photo-gray-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-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-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-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-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn,
body.photo-ai3d-reference-page.photo-gray-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn.empty {
    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-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn .main,
body.photo-ai3d-reference-page.photo-gray-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn.empty .main {
    color: #1a1204 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.photo-ai3d-reference-page.photo-gray-mode-active:not(.photo-creative-active) .left-bottom-panel .submit-gen-btn[disabled] {
    opacity: 0.72;
    box-shadow: none !important;
}

body.photo-ai3d-reference-page.photo-gray-mode-active:not(.photo-creative-active) .photo-history-panel {
    display: none !important;
}

body.photo-ai3d-reference-page.photo-gray-mode-active:not(.photo-creative-active) .photo-param-dock {
    display: none !important;
}

body.photo-ai3d-reference-page.photo-gray-mode-active:not(.photo-creative-active) .photo-prompt-card--gray-docked {
    flex: 1 1 13rem;
    min-height: 5.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
}

body.photo-ai3d-reference-page.photo-gray-mode-active:not(.photo-creative-active) .photo-prompt-card--gray-docked .photo-prompt-wrap,
body.photo-ai3d-reference-page.photo-gray-mode-active:not(.photo-creative-active) .photo-prompt-card--gray-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-mode-active:not(.photo-creative-active) .photo-prompt-card--gray-docked .photo-prompt-input {
    flex: 1 1 8rem;
    min-height: 4.25rem;
}

body.photo-ai3d-reference-page.photo-gray-mode-active:not(.photo-creative-active) .photo-prompt-card--gray-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-mode-active:not(.photo-creative-active) .uploadAdd.has-upload .js-uploader__box,
body.photo-ai3d-reference-page.photo-gray-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-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-mode-active:not(.photo-creative-active) .uploader__file-list__item,
body.photo-ai3d-reference-page.photo-gray-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-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-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-mode-active:not(.photo-creative-active) .uploader__file-list__item:hover .uploader__file-list__button,
body.photo-ai3d-reference-page.photo-gray-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-mode-active:not(.photo-creative-active) .uploader__file-list__button .uploader__icon-button,
body.photo-ai3d-reference-page.photo-gray-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-mode-active:not(.photo-creative-active) .uploader__file-list__button .uploader__icon-button--crop {
    display: inline-flex;
}

body.photo-ai3d-reference-page.photo-gray-mode-active:not(.photo-creative-active) .uploader__file-list__button .uploader__icon-button--remove {
    background: #f04242;
}

body.photo-ai3d-reference-page.photo-gray-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;
}

