.zibll-ops-page {
    --zibll-ops-accent: #2f80ed;
    --zibll-ops-accent-2: #6c5ce7;
    width: calc(100% - 32px) !important;
    max-width: 1600px !important;
    margin: 24px auto 36px;
    padding: 0;
}

.zibll-ops-shell {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid rgba(125, 125, 125, 0.14);
    border-radius: 18px !important;
}

.zibll-ops-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 106px;
    padding: 22px 26px;
    overflow: hidden;
    border-bottom: 1px solid rgba(125, 125, 125, 0.12);
    background:
        radial-gradient(circle at 8% 10%, rgba(47, 128, 237, 0.12), transparent 33%),
        linear-gradient(135deg, rgba(47, 128, 237, 0.045), rgba(108, 92, 231, 0.035));
}

.zibll-ops-heading::after {
    position: absolute;
    right: -90px;
    bottom: -135px;
    z-index: -1;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.13), transparent 67%);
    content: "";
    pointer-events: none;
}

.zibll-ops-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 15px;
}

.zibll-ops-brand-mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 15px;
    background: linear-gradient(145deg, var(--zibll-ops-accent), var(--zibll-ops-accent-2));
    box-shadow: 0 12px 28px rgba(47, 128, 237, 0.24);
    color: #fff;
    font: 700 21px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.04em;
}

.zibll-ops-brand-copy {
    min-width: 0;
}

.zibll-ops-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--zibll-ops-accent);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.16em;
}

.zibll-ops-brand-copy h1 {
    margin: 0;
    color: inherit;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.3;
}

.zibll-ops-brand-copy p {
    max-width: 720px;
    margin: 5px 0 0;
    color: var(--muted-color, #7b8493);
    font-size: 13px;
    line-height: 1.65;
}

.zibll-ops-heading-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.zibll-ops-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(47, 128, 237, 0.2);
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.08);
    color: #2f80ed;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.zibll-ops-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2f80ed;
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.12);
}

.zibll-ops-status.is-ready {
    border-color: rgba(34, 197, 94, 0.17);
    background: rgba(34, 197, 94, 0.08);
    color: #2aaa5e;
}

.zibll-ops-status.is-ready .zibll-ops-status-dot {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.zibll-ops-status.is-error {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.08);
    color: #dc3f3f;
}

.zibll-ops-status.is-error .zibll-ops-status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.zibll-ops-fullscreen-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    gap: 7px;
    padding: 8px 13px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--zibll-ops-accent), #3974d9);
    box-shadow: 0 8px 20px rgba(47, 128, 237, 0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.zibll-ops-fullscreen-button:hover,
.zibll-ops-fullscreen-button:focus-visible {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(47, 128, 237, 0.28);
}

.zibll-ops-fullscreen-button:focus-visible {
    outline: 3px solid rgba(47, 128, 237, 0.25);
    outline-offset: 2px;
}

.zibll-ops-fullscreen-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.zibll-ops-frame-wrap {
    position: relative;
    height: clamp(620px, 76vh, 920px);
    margin: 14px;
    overflow: hidden;
    border: 1px solid rgba(125, 125, 125, 0.2);
    border-radius: 14px;
    background: #1d1f23;
    box-shadow: 0 16px 40px rgba(12, 16, 24, 0.14);
    isolation: isolate;
}

.zibll-online-photoshop-frame {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #1d1f23;
    opacity: 1;
}

.zibll-ops-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #1d1f23;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.zibll-ops-loading-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.zibll-ops-loading-copy strong {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.zibll-ops-loading-copy small {
    color: rgba(255, 255, 255, 0.43);
    font-size: 11px;
    line-height: 1.4;
}

.zibll-ops-frame-wrap.is-ready .zibll-ops-loading,
.zibll-ops-frame-wrap.is-error .zibll-ops-loading {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.zibll-ops-error {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background:
        radial-gradient(circle at 50% 30%, rgba(47, 128, 237, 0.13), transparent 34%),
        #1d1f23;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.zibll-ops-error[hidden] {
    display: none !important;
}

.zibll-ops-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
    color: #72b9ff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.zibll-ops-error strong {
    color: #fff;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.4;
}

.zibll-ops-error p {
    margin: 7px 0 17px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.6;
}

.zibll-ops-error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.zibll-ops-error-actions button,
.zibll-ops-error-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.zibll-ops-error-actions button {
    border: 0;
    background: linear-gradient(135deg, var(--zibll-ops-accent), #3974d9);
    box-shadow: 0 8px 20px rgba(47, 128, 237, 0.22);
    color: #fff;
}

.zibll-ops-error-actions a {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.78);
}

.zibll-ops-error-actions button:hover,
.zibll-ops-error-actions button:focus-visible,
.zibll-ops-error-actions a:hover,
.zibll-ops-error-actions a:focus-visible {
    color: #fff;
    filter: brightness(1.08);
    outline: 2px solid rgba(105, 183, 255, 0.35);
    outline-offset: 2px;
}

.zibll-ops-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.17);
    border-top-color: #69b7ff;
    border-radius: 50%;
    animation: zibll-ops-spin 0.8s linear infinite;
}

.zibll-ops-frame-wrap:fullscreen {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
}

html.zibll-ops-page-locked,
html.zibll-ops-page-locked body {
    overflow: hidden !important;
}

.zibll-ops-frame-wrap.is-expanded {
    position: fixed;
    inset: 0;
    z-index: 999999;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.zibll-ops-stage-exit {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(18, 21, 27, 0.82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.zibll-ops-frame-wrap:fullscreen .zibll-ops-stage-exit,
.zibll-ops-frame-wrap.is-expanded .zibll-ops-stage-exit {
    display: inline-flex;
}

.zibll-ops-stage-exit:hover,
.zibll-ops-stage-exit:focus-visible {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(35, 39, 48, 0.94);
    outline: none;
}

.zibll-ops-stage-exit svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

@keyframes zibll-ops-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .zibll-ops-page {
        width: 100% !important;
        margin: 10px auto 22px;
        padding: 0 6px;
    }

    .zibll-ops-shell {
        border-radius: 13px !important;
    }

    .zibll-ops-heading {
        align-items: flex-start;
        min-height: 0;
        padding: 16px;
    }

    .zibll-ops-brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 18px;
    }

    .zibll-ops-eyebrow,
    .zibll-ops-brand-copy p,
    .zibll-ops-status {
        display: none;
    }

    .zibll-ops-brand-copy h1 {
        margin-top: 8px;
        font-size: 18px;
    }

    .zibll-ops-fullscreen-button {
        width: 38px;
        min-height: 38px;
        padding: 0;
        border-radius: 10px;
    }

    .zibll-ops-fullscreen-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    .zibll-ops-frame-wrap {
        height: calc(100svh - 150px);
        min-height: 560px;
        margin: 6px;
        border-radius: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zibll-ops-fullscreen-button,
    .zibll-ops-loading {
        transition: none;
    }

    .zibll-ops-spinner {
        animation-duration: 1.6s;
    }
}
