.ai3d-preview-stage-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(126, 164, 214, 0.1);
    background:
        radial-gradient(circle at 50% 82%, rgba(91, 132, 183, 0.16), transparent 34%),
        linear-gradient(180deg, #25282b 0%, #202326 54%, #1a1d21 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        inset 0 -34px 70px rgba(0, 0, 0, 0.34);
}

.ai3d-preview-stage-viewport::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 22%, rgba(255, 255, 255, 0.045), transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 28%, rgba(0, 0, 0, 0));
    pointer-events: none;
    opacity: 0.7;
}

.ai3d-preview-stage-viewport::after {
    display: none;
}

.ai3d-preview-axis {
    display: none;
}

.ai3d-preview-axis--x {
    left: 22px;
    bottom: 26px;
}

.ai3d-preview-axis--y {
    left: 22px;
    top: 22px;
}

.ai3d-preview-axis--z {
    left: 60px;
    bottom: 26px;
}

.ai3d-preview-reticle {
    display: none;
}

.ai3d-preview-workbench {
    position: absolute;
    top: 34px;
    right: 22px;
    bottom: 28px;
    z-index: 4;
    width: min(320px, calc(100% - 44px));
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(151, 178, 233, 0.14);
    background: linear-gradient(180deg, rgba(11, 16, 26, 0.9), rgba(8, 12, 20, 0.84));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.ai3d-preview-workbench-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ai3d-preview-workbench-title {
    margin-top: 6px;
    color: #f3f7ff;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
}

.ai3d-preview-workbench-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #b7c8ea;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.ai3d-preview-workbench-block {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.ai3d-preview-workbench-label {
    margin-bottom: 10px;
    color: #8fa0c1;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ai3d-preview-workbench-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai3d-preview-workbench-status strong {
    color: #eef4ff;
    font-size: 15px;
    font-weight: 600;
}

.ai3d-preview-workbench-status span,
.ai3d-preview-workbench-results,
.ai3d-preview-workbench-results a {
    color: #aab6cd;
    font-size: 12px;
    line-height: 1.75;
}

.ai3d-preview-workbench-results a {
    color: #90c8ff;
    text-decoration: underline;
}

.ai3d-preview-workbench-results ul {
    margin: 0;
    padding-left: 18px;
}

.ai3d-preview-workbench-results li + li {
    margin-top: 4px;
}

.ai3d-preview-mount {
    position: relative;
    z-index: 3;
    min-height: 520px;
    pointer-events: none;
}

.ai3d-preview-mount.is-viewer-active {
    pointer-events: none;
}

.ai3d-preview-grid-fallback {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.24s ease;
}

.ai3d-preview-grid-fallback::before {
    content: "";
    position: absolute;
    left: 3%;
    right: 3%;
    bottom: -6%;
    height: 58%;
    border-radius: 0;
    background:
        linear-gradient(rgba(126, 144, 166, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 144, 166, 0.22) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px;
    background-position: center center;
    box-shadow: none;
    opacity: 0.72;
    transform: perspective(980px) rotateX(70deg);
    transform-origin: center bottom;
}

.ai3d-preview-grid-fallback::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 163, 190, 0.34), transparent);
    opacity: 0.72;
}

.ai3d-preview-canvas-frame {
    height: 100%;
}

.ai3d-preview-format-badge {
    top: 18px;
    left: 18px;
}

.ai3d-preview-hud {
    max-width: calc(100% - 360px);
}

.ai3d-preview-stage-panel {
    z-index: 2;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 28px;
    pointer-events: none;
}

.ai3d-preview-stage-card {
    width: min(520px, calc(100% - 28px));
    padding: 24px 24px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(10, 14, 22, 0.84), rgba(7, 11, 18, 0.9));
    text-align: left;
    pointer-events: auto;
}

.ai3d-preview-stage-icon {
    width: 58px;
    height: 58px;
    margin: 0 0 16px;
    border-radius: 18px;
    font-size: 24px;
}

.ai3d-preview-stage-desc {
    margin: 10px 0 0;
}

.ai3d-preview-stage-guide {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.ai3d-preview-stage-guide li {
    position: relative;
    padding-left: 16px;
    color: #cad6eb;
    font-size: 12px;
    line-height: 1.7;
}

.ai3d-preview-stage-guide li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #6fb2ff;
}

