@supports not (zoom: 1) {
    body.ai3d-page-active {
        transform: none !important;
        width: 100% !important;
        min-height: 100vh !important;
    }
}

.ai3d-page {
    --ai3d-stage-gap: 12px;
    --ai3d-stage-gap-fluid: clamp(8px, 1.6vh, 14px);
    --ai3d-header-height: var(--home-header-height, 72px);
    --ai3d-sidebar-width: 200px;
    --ai3d-workspace-height: calc(100vh - var(--ai3d-header-height, 72px) - var(--ai3d-stage-gap, 12px));
    --ai3d-workspace-height-dvh: calc(100dvh - var(--ai3d-header-height, 72px) - var(--ai3d-stage-gap, 12px));
    min-height: var(--ai3d-workspace-height);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--ai3d-stage-gap) 0 0;
}

@supports (height: clamp(1px, 2px, 3px)) {
    .ai3d-page {
        --ai3d-stage-gap: var(--ai3d-stage-gap-fluid);
    }
}

@supports (height: 100dvh) {
    .ai3d-page {
        --ai3d-workspace-height: var(--ai3d-workspace-height-dvh);
    }
}

.ai3d-shell {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    max-width: none;
    margin: 0;
    grid-template-columns: var(--ai3d-sidebar-width) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.ai3d-left {
    display: flex;
    flex-direction: column;
    position: relative;
    top: auto;
    flex: 0 0 var(--ai3d-sidebar-width);
    max-width: var(--ai3d-sidebar-width);
    width: var(--ai3d-sidebar-width);
    min-width: var(--ai3d-sidebar-width);
    align-self: stretch;
    height: var(--ai3d-workspace-height);
    min-height: var(--ai3d-workspace-height);
    max-height: var(--ai3d-workspace-height);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    padding: 10px 10px 12px;
    border-radius: 20px;
}

.ai3d-left::-webkit-scrollbar {
    width: 8px;
}

.ai3d-left::-webkit-scrollbar-track {
    background: rgba(12, 18, 28, 0.24);
    border-radius: 999px;
}

.ai3d-left::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(90, 131, 213, 0.68), rgba(53, 83, 141, 0.82));
    border-radius: 999px;
    border: 1px solid rgba(8, 12, 20, 0.36);
}

.ai3d-left {
    scrollbar-width: thin;
    scrollbar-color: rgba(90, 131, 213, 0.82) rgba(12, 18, 28, 0.24);
}

.ai3d-left-config-grid {
    flex: 0 0 auto;
}

.ai3d-left-submit {
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 3;
    flex-shrink: 0;
    padding-top: 12px;
    padding-bottom: 2px;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0), rgba(9, 13, 22, 0.92) 26%, rgba(9, 13, 22, 0.98) 100%);
}
