.unified-module-page {
    min-width: 980px;
    overflow: hidden;
    background: #f4f7fb;
}

.unified-module-page .content-wrapper.unified-module-content {
    position: fixed;
    right: 0;
    bottom: 0;
    height: calc(100vh - 60px);
    padding: 0;
    overflow: hidden;
    background: #f4f7fb;
}

.unified-module-stage,
.unified-module-frame {
    width: 100%;
    height: 100%;
}

.unified-module-stage {
    position: relative;
    overflow: hidden;
}

.unified-module-frame {
    display: block;
    border: 0;
    background: #f4f7fb;
}

.unified-module-state {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f4f7fb;
}

.unified-module-state[hidden] { display: none; }

.unified-module-state-card {
    width: min(440px, calc(100vw - 320px));
    padding: 30px;
    border: 1px solid #e3e9f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(30, 64, 112, .09);
    text-align: center;
}

.unified-module-spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 18px;
    border: 3px solid #dbe7fb;
    border-top-color: #2d67eb;
    border-radius: 50%;
    animation: unified-module-spin .8s linear infinite;
}

.unified-module-state-card h1 {
    margin: 0 0 9px;
    color: #17243a;
    font-size: 18px;
    font-weight: 700;
}

.unified-module-state-card p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.unified-module-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

@keyframes unified-module-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .unified-module-page { min-width: 0; }
    .unified-module-page .content-wrapper.unified-module-content {
        left: 0;
        width: 100%;
    }
    .unified-module-state-card { width: min(440px, calc(100vw - 32px)); }
}
